@ukpc-lib/react 0.16.10 → 0.16.11

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.
@@ -1,15 +1,15 @@
1
- var N7=require("./index.css");const be=require("react/jsx-runtime"),X=require("react"),Vv=require("axios"),Od=require("react-query"),aa=require("@mui/material"),Ep=require("react-router-dom");require("@r2wc/react-to-web-component");const Rm=require("moment"),Uv=require("react-dom");function vI(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function yI(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=vI(X);function Qo(t){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(t)}function rs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bI(t,e){if(Qo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nT(t){var e=bI(t,"string");return Qo(e)=="symbol"?e:e+""}function p0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nT(r.key),r)}}function is(t,e,n){return e&&p0(t.prototype,e),n&&p0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zh(t,e){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zh(t,e)}function kp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zh(t,e)}function zd(t,e){if(e&&(Qo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sl(t)}function Ua(t){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ua(t)}function Ha(t,e,n){return(e=nT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rT(t){if(Array.isArray(t))return t}function wI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function iT(t,e){if(t){if(typeof t=="string")return g0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g0(t,e):void 0}}function oT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(t){return rT(t)||wI(t)||iT(t)||oT()}function m0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function v0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var SI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},TI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||SI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,v0(v0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Na=new TI,vu=function(){function t(){rs(this,t),this.observers={}}return is(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(f){f.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),t}();function td(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function y0(t){return t==null?"":""+t}function CI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Hv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function b0(t,e,n){var r=Hv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function EI(t,e,n,r){var i=Hv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Jh(t,e){var n=Hv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function kI(t,e,n){var r=Jh(t,n);return r!==void 0?r:Jh(e,n)}function sT(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):sT(t[r],e[r],n):t[r]=e[r]);return t}function lf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var DI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function PI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return DI[e]}):t}var Dp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,OI=[" ",",","?","!",";"];function _I(t,e,n){e=e||"",n=n||"";var r=OI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function Qh(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),f=i[c];f===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(e.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+a).join(n);return p?Qh(f,p,n):void 0}i=i[r[o]]}return i}}function w0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ph(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?w0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RI(t){var e=AI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zd(this,i)}}function AI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var II=function(t){kp(n,t);var e=RI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return rs(this,n),i=e.call(this),Dp&&vu.call(Sl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return is(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];a&&typeof a!="string"&&(y=y.concat(a)),a&&typeof a=="string"&&(y=y.concat(f?a.split(f):a)),i.indexOf(".")>-1&&(y=i.split("."));var g=Jh(this.data,y);return g||!p||typeof a!="string"?g:Qh(this.data&&this.data[i]&&this.data[i][o],a,f)}},{key:"addResource",value:function(i,o,a,c){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=[i,o];a&&(y=y.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(y=i.split("."),c=o,o=y[1]),this.addNamespaces(o),b0(this.data,y,c),f.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in a)(typeof a[f]=="string"||Object.prototype.toString.apply(a[f])==="[object Array]")&&this.addResource(i,o,f,a[f],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),c=a,a=o,o=y[1]),this.addNamespaces(o);var g=Jh(this.data,y)||{};c?sT(g,a,f):g=ph(ph({},g),a),b0(this.data,y,g),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ph(ph({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(vu),aT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function MI(t){var e=LI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zd(this,i)}}function LI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S0={},T0=function(t){kp(n,t);var e=MI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rs(this,n),i=e.call(this),Dp&&vu.call(Sl(i)),CI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Sl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Na.create("translator"),i}return is(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!_I(i,a,c);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(f=T.shift()),i=T.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,a){var c=this;if(Qo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Qo(o)==="object"&&(o=Fi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),g=y.key,T=y.namespaces,E=T[T.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var j=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(E).concat(j).concat(g),usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:g}var R=this.resolve(i,o),H=R&&R.res,U=R&&R.usedKey||g,ne=R&&R.exactUsedKey||g,q=Object.prototype.toString.apply(H),ie=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,le=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof H!="string"&&typeof H!="boolean"&&typeof H!="number";if(le&&H&&ae&&ie.indexOf(q)<0&&!(typeof x=="string"&&q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,H,Fi(Fi({},o),{},{ns:T})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=ze,R):ze}if(p){var tt=q==="[object Array]",Qe=tt?[]:{},et=tt?ne:U;for(var Ye in H)if(Object.prototype.hasOwnProperty.call(H,Ye)){var pe="".concat(et).concat(p).concat(Ye);Qe[Ye]=this.translate(pe,Fi(Fi({},o),{joinArrays:!1,ns:T})),Qe[Ye]===pe&&(Qe[Ye]=H[Ye])}H=Qe}}else if(le&&typeof x=="string"&&q==="[object Array]")H=H.join(x),H&&(H=this.extendTranslation(H,i,o,a));else{var fe=!1,Ce=!1,Oe=o.count!==void 0&&typeof o.count!="string",Ne=n.hasDefaultValue(o),me=Oe?this.pluralResolver.getSuffix(A,o.count,o):"",Te=o["defaultValue".concat(me)]||o.defaultValue;!this.isValidLookup(H)&&Ne&&(fe=!0,H=Te),this.isValidLookup(H)||(Ce=!0,H=g);var Le=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,He=Le&&Ce?void 0:H,je=Ne&&Te!==H&&this.options.updateMissing;if(Ce||fe||je){if(this.logger.log(je?"updateKey":"missingKey",A,E,g,je?Te:H),p){var Fe=this.resolve(g,Fi(Fi({},o),{},{keySeparator:!1}));Fe&&Fe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ve=[],nt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&nt&&nt[0])for(var ct=0;ct<nt.length;ct++)Ve.push(nt[ct]);else this.options.saveMissingTo==="all"?Ve=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ve.push(o.lng||this.language);var pt=function(yt,Je,At){var Mt=Ne&&At!==H?At:He;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Je,Mt,je,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Je,Mt,je,o),c.emit("missingKey",yt,E,Je,H)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Oe?Ve.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],g+yt,o["defaultValue".concat(yt)]||Te)})}):pt(Ve,g,Te))}H=this.extendTranslation(H,i,o,R,a),Ce&&H===g&&this.options.appendNamespaceToMissingKey&&(H="".concat(E,":").concat(g)),(Ce||fe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(g):g,fe?H:void 0):H=this.options.parseMissingKeyHandler(H))}return f?(R.res=H,R):H}},{key:"extendTranslation",value:function(i,o,a,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Fi(Fi({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Fi(Fi({},a),{interpolation:Fi(Fi({},this.options.interpolation),a.interpolation)}));var y=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(y){var T=i.match(this.interpolator.nestingRegexp);g=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Fi(Fi({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),y){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;g<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var H=arguments.length,U=new Array(H),ne=0;ne<H;ne++)U[ne]=arguments[ne];return f&&f[0]===U[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var j=a.postProcess||this.options.postProcess,R=typeof j=="string"?[j]:j;return i!=null&&R&&R.length&&a.applyPostProcessor!==!1&&(i=aT.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Fi({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;f=A;var I=E.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var j=a.count!==void 0&&typeof a.count!="string",R=j&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),H=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",U=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(ne){o.isValidLookup(c)||(g=ne,!S0["".concat(U[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(S0["".concat(U[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(U.join(", "),`" won't get resolved as namespace "`).concat(g,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),U.forEach(function(q){if(!o.isValidLookup(c)){y=q;var ie=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ie,A,q,ne,a);else{var x;j&&(x=o.pluralResolver.getSuffix(q,a.count,a));var le="".concat(o.options.pluralSeparator,"zero");if(j&&(ie.push(A+x),R&&ie.push(A+le)),H){var ae="".concat(A).concat(o.options.contextSeparator).concat(a.context);ie.push(ae),j&&(ie.push(ae+x),R&&ie.push(ae+le))}}for(var ze;ze=ie.pop();)o.isValidLookup(c)||(p=ze,c=o.getResource(q,ne,ze,a))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:y,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(vu);function Eg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var C0=function(){function t(e){rs(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}return is(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Eg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Eg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Eg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(f){a.indexOf(f)<0&&c(i.formatLanguageCode(f))}),a}}]),t}(),FI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],NI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},jI=["v1","v2","v3"],E0={zero:0,one:1,two:2,few:3,many:4,other:5};function BI(){var t={};return FI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:NI[e.fc]}})}),t}var $I=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.languageUtils=e,this.options=n,this.logger=Na.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=BI()}return is(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return E0[a]-E0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!jI.includes(this.options.compatibilityJSON)}}]),t}();function k0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?k0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=kI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Qh(t,n,r),o===void 0&&(o=Qh(e,n,r))),o}var VI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rs(this,t),this.logger=Na.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return is(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:PI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?lf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?lf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?lf(r.nestingPrefix):r.nestingPrefixEscaped||lf("$t("),this.nestingSuffix=r.nestingSuffix?lf(r.nestingSuffix):r.nestingSuffixEscaped||lf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(j){return j.replace(/\$/g,"$$$$")}var T=function(R){if(R.indexOf(a.formatSeparator)<0){var H=D0(r,y,R,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(H,void 0,i,oa(oa(oa({},o),r),{},{interpolationkey:R})):H}var U=R.split(a.formatSeparator),ne=U.shift().trim(),q=U.join(a.formatSeparator).trim();return a.format(D0(r,y,ne,a.options.keySeparator,a.options.ignoreJSONStructure),q,i,oa(oa(oa({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,A=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return a.escapeValue?g(a.escape(R)):g(R)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var R=c[1].trim();if(f=T(R),f===void 0)if(typeof E=="function"){var H=E(n,c,o);f=typeof H=="string"?H:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(A){f=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!a.useRawValueToEscape&&(f=y0(f));var U=j.safeValue(f);if(n=n.replace(c[0],U),A?(j.regex.lastIndex+=f.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,f;function p(E,A){var I=this.nestingOptionsSeparator;if(E.indexOf(I)<0)return E;var j=E.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(j[1]);E=j[0],R=this.interpolate(R,f);var H=R.match(/'/g),U=R.match(/"/g);(H&&H.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),A&&(f=oa(oa({},A),f))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),ne),"".concat(E).concat(I).concat(R)}return delete f.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var y=[];f=oa({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),y=T,g=!0}if(c=r(p.call(this,a[1].trim(),f),f),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=y0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),g&&(c=y.reduce(function(E,A){return i.format(E,A,o.lng,oa(oa({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function P0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),f=xI(c),p=f[0],y=f.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:e,formatOptions:n}}function uf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var HI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rs(this,t),this.logger=Na.create("formatter"),this.options=e,this.formats={number:uf(function(n,r){var i=new Intl.NumberFormat(n,vl({},r));return function(o){return i.format(o)}}),currency:uf(function(n,r){var i=new Intl.NumberFormat(n,vl(vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:uf(function(n,r){var i=new Intl.DateTimeFormat(n,vl({},r));return function(o){return i.format(o)}}),relativetime:uf(function(n,r){var i=new Intl.RelativeTimeFormat(n,vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:uf(function(n,r){var i=new Intl.ListFormat(n,vl({},r));return function(o){return i.format(o)}})},this.init(e)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=uf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var g=UI(y),T=g.formatName,E=g.formatOptions;if(o.formats[T]){var A=p;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},j=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[T](p,j,vl(vl(vl({},E),a),I))}catch(R){o.logger.warn(R)}return A}else o.logger.warn("there was no format function for ".concat(T));return p},n);return f}}]),t}();function O0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function WI(t){var e=zI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zd(this,i)}}function zI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function YI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var GI=function(t){kp(n,t);var e=WI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return rs(this,n),a=e.call(this),Dp&&vu.call(Sl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Na.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return is(n,[{key:"queueLoad",value:function(i,o,a,c){var f=this,p={},y={},g={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&f.store.hasResourceBundle(E,I)?f.state[j]=2:f.state[j]<0||(f.state[j]===1?y[j]===void 0&&(y[j]=!0):(f.state[j]=1,A=!1,y[j]===void 0&&(y[j]=!0),p[j]===void 0&&(p[j]=!0),T[I]===void 0&&(T[I]=!0)))}),A||(g[E]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),a&&this.store.addResourceBundle(f,p,a),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){EI(g.loaded,[f],p),YI(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(T){y[T]||(y[T]={});var E=g.loaded[T];E.length&&E.forEach(function(A){y[T][A]===void 0&&(y[T][A]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,a){var c=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:f,wait:p,callback:y});return}this.readingCalls++;var g=function(I,j){if(c.readingCalls--,c.waitingReads.length>0){var R=c.waitingReads.shift();c.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&j&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,f+1,p*2,y)},p);return}y(I,j)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(A){return g(null,A)}).catch(g):g(null,E)}catch(A){g(A)}return}return T(i,o,g)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.toLoad.forEach(function(y){a.loadOne(y)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),f=c[0],p=c[1];this.read(f,p,"read",void 0,void 0,function(y,g){y&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&g&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var g=_0(_0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,g):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(A){return y(null,A)}).catch(y):y(null,E)}catch(A){y(A)}else T(i,o,a,c,y,g)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(vu);function R0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Qo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Qo(e[2])==="object"||Qo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function A0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function I0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ma(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?I0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qI(t){var e=XI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return zd(this,i)}}function XI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gh(){}function KI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var ep=function(t){kp(n,t);var e=qI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(rs(this,n),r=e.call(this),Dp&&vu.call(Sl(r)),r.options=A0(i),r.services={},r.logger=Na,r.modules={external:[]},KI(Sl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),zd(r,Sl(r));setTimeout(function(){r.init(i,o)},0)}return r}return is(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=R0();this.options=Ma(Ma(Ma({},c),this.options),A0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ma(Ma({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?Na.init(f(this.modules.logger),this.options):Na.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=HI);var y=new C0(this.options);this.store=new II(this.options.resources,this.options);var g=this.services;g.logger=Na,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new $I(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new VI(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new GI(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var H=arguments.length,U=new Array(H>1?H-1:0),ne=1;ne<H;ne++)U[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(U))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new T0(this.services,this.options),this.translator.on("*",function(R){for(var H=arguments.length,U=new Array(H>1?H-1:0),ne=1;ne<H;ne++)U[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,a||(a=gh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments),i}});var I=td(),j=function(){var H=function(ne,q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(q),a(ne,q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return H(null,i.t.bind(i));i.changeLanguage(i.options.lng,H)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh,c=a,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return c();var p=[],y=function(E){if(E){var A=o.services.languageUtils.toResolveHierarchy(E);A.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(f)y(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(T){return y(T)})}this.options.preload&&this.options.preload.forEach(function(T){return y(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=td();return i||(i=this.languages),o||(o=this.options.ns),a||(a=gh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),a(f)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&aT.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=td();this.emit("languageChanging",i);var f=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(f(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},y=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||f(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(A){p(A,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,f=function p(y,g){var T;if(Qo(g)!=="object"){for(var E=arguments.length,A=new Array(E>2?E-2:0),I=2;I<E;I++)A[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([y,g].concat(A))}else T=Ma({},g);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var j=c.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(y)?R=y.map(function(H){return"".concat(T.keyPrefix).concat(j).concat(H)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(y):y,c.t(R,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=a,f}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var y=function(E,A){var I=o.services.backendConnector.state["".concat(E,"|").concat(A)];return I===-1||I===2};if(a.precheck){var g=a.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=td();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){a.options.ns.indexOf(f)<0&&a.options.ns.push(f)}),this.loadResources(function(f){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=td();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new C0(R0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh,c=Ma(Ma(Ma({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Ma({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new T0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,T=new Array(g>1?g-1:0),E=1;E<g;E++)T[E-1]=arguments[E];f.emit.apply(f,[y].concat(T))}),f.init(c,a),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(vu);Ha(ep,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new ep(t,e)});var oi=ep.createInstance();oi.createInstance=ep.createInstance;oi.createInstance;oi.dir;oi.init;oi.loadResources;oi.reloadResources;oi.use;oi.changeLanguage;oi.getFixedT;var lT=oi.t;oi.exists;oi.setDefaultNamespace;oi.hasLoadedNamespace;oi.loadNamespaces;oi.loadLanguages;const uT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},ZI="true",cT=t=>{window.location.href=`${t}/authentication/login`},fT=t=>{window.location.href=`${t}/authentication/logout`},es=Vv.create({withCredentials:!0});let kg=!1,Am=[];const M0=t=>{Am.forEach(e=>{t?e.reject(t):e.resolve()}),Am=[]},pf=new Map;function Im(t){var r;const e=((r=t.method)==null?void 0:r.toUpperCase())||"GET",n=t.url||"";return`${e}:${n}`}function JI(t){try{const e=t==null?void 0:t.url,n=(t==null?void 0:t.baseURL)||window.location.origin,i=new URL(e,n).pathname.split("/").filter(Boolean);return i.length<=3?`/${i.join("/")}`||"/":`/${i[0]}/.../${i[i.length-1]}`}catch{return(t==null?void 0:t.url)||""}}function QI(t,e){var a,c,f,p,y,g,T,E;const n=(a=t.response)==null?void 0:a.status,r=(c=e==null?void 0:e.method)==null?void 0:c.toUpperCase(),i=JI(e),o=((p=(f=t.response)==null?void 0:f.data)==null?void 0:p.errorMessage)||((g=(y=t.response)==null?void 0:y.data)==null?void 0:g.message)||((E=(T=t.response)==null?void 0:T.data)==null?void 0:E.title)||t.message||"Unexpected error";if(typeof n=="number"&&n>=500){const A=[n?`HTTP ${n}`:null,r,i].filter(Boolean);return`${A.join(" ")}${A.length?" - ":""}${o}`}return`${o}`}function dT(t,e){var o,a,c,f,p,y,g,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((f=(c=t.response)==null?void 0:c.data)==null?void 0:f.message),i=r===uT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return kg?new Promise((A,I)=>{Am.push({resolve:A,reject:I})}).then(()=>es(n)).catch(A=>Promise.reject(A)):(n._retry=!0,kg=!0,es.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(M0(null),es(n))).catch(A=>(M0(A),Promise.reject(A))).finally(()=>{kg=!1}));if(((y=t.response)==null?void 0:y.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const A=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=A;return}return cT(window.env.AUTHEN_DOMAIN)}if(((g=t.response)==null?void 0:g.status)===403||(t==null?void 0:t.httpStatus)===403)(T=e==null?void 0:e.handle403)==null||T.call(e,t);else{const A=QI(t,n);!(e!=null&&e.disabledPushNotify)&&Yd(lT(`${A}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)}return r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const eM=es.interceptors.request.use(t=>{var r;if(((r=t.headers)==null?void 0:r.X_AUTO_CANCEL)!=="true")return t;const e=Im(t);if(pf.has(e)){const i=pf.get(e);i==null||i.abort(),pf.delete(e)}const n=new AbortController;return t.signal=n.signal,pf.set(e,n),t},t=>Promise.reject(t)),tM=es.interceptors.response.use(t=>{const e=Im(t.config);return pf.delete(e),t},async t=>{if(Vv.isCancel(t))return Promise.reject({...t,isCanceled:!0});if(t.config){const e=Im(t.config);pf.delete(e)}return dT(t)});function nM(t){return Vv.isCancel(t)||(t==null?void 0:t.isCanceled)===!0}const rM=t=>{const e=Od.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||es,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Od.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},hT=t=>{const e=Od.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||es,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Od.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Wv=X.createContext({}),iM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=rM({axiosInstance:r,baseUrl:n}),a=hT({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?be.jsx(aa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:be.jsx(aa.CircularProgress,{})}):be.jsx(Wv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},oM=()=>X.useContext(Wv);function sM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function aM(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}var pT=[],lM=pT.forEach,uM=pT.slice;function cM(t){return lM.call(uM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var L0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,fM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!L0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!L0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},F0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=fM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},dM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=F0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&F0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},hM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var f=o[a].substring(0,c);f===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},nd=null,N0=function(){if(nd!==null)return nd;try{nd=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{nd=!1}return nd},pM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&N0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&N0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},rd=null,j0=function(){if(rd!==null)return rd;try{rd=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{rd=!1}return rd},gM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&j0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&j0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},mM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},vM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},yM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},bM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},gT=!1;try{document.cookie,gT=!0}catch{}var mT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];gT||mT.splice(1,1);function wM(){return{order:mT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var vT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=cM(r,this.options||{},wM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(dM),this.addDetector(hM),this.addDetector(pM),this.addDetector(gM),this.addDetector(mM),this.addDetector(vM),this.addDetector(yM),this.addDetector(bM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();vT.type="languageDetector";function zv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const xM=Object.freeze(Object.defineProperty({__proto__:null,default:zv},Symbol.toStringTag,{value:"Module"}));var Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function SM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function TM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var B0={};function Mm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&B0[e[0]]||(typeof e[0]=="string"&&(B0[e[0]]=new Date),TM.apply(void 0,e))}var yT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function $0(t,e,n){t.loadNamespaces(e,yT(t,n))}function V0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,yT(t,r))}function CM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(f,p){var y=e.services.backendConnector.state["".concat(f,"|").concat(p)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function EM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Mm("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):CM(t,e,n)}var kM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,DM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},PM=function(e){return DM[e]},OM=function(e){return e.replace(kM,PM)};function U0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function H0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Lm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:OM};function _M(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lm=H0(H0({},Lm),t)}function RM(){return Lm}var bT;function AM(t){bT=t}function IM(){return bT}var MM={type:"3rdParty",init:function(e){_M(e.options.react),AM(e)}},wT=X.createContext(),LM=function(){function t(){rs(this,t),this.usedNamespaces={}}return is(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function FM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],f=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function NM(t,e){return rT(t)||FM(t,e)||iT(t,e)||oT()}function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jM=function(e,n){var r=X.useRef();return X.useEffect(function(){r.current=e},[e,n]),r.current};function xT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=X.useContext(wT)||{},i=r.i18n,o=r.defaultNS,a=n||i||IM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new LM),!a){Mm("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,ze){return typeof ze=="string"?ze:ze&&Qo(ze)==="object"&&typeof ze.defaultValue=="string"?ze.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}a.options.react&&a.options.react.wait!==void 0&&Mm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Dg(Dg(Dg({},RM()),a.options.react),e),y=p.useSuspense,g=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(le){return EM(le,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],g)}var I=X.useState(A),j=NM(I,2),R=j[0],H=j[1],U=T.join();e.lng&&(U="".concat(e.lng).concat(U));var ne=jM(U),q=X.useRef(!0);X.useEffect(function(){var le=p.bindI18n,ae=p.bindI18nStore;q.current=!0,!E&&!y&&(e.lng?V0(a,e.lng,T,function(){q.current&&H(A)}):$0(a,T,function(){q.current&&H(A)})),E&&ne&&ne!==U&&q.current&&H(A);function ze(){q.current&&H(A)}return le&&a&&a.on(le,ze),ae&&a&&a.store.on(ae,ze),function(){q.current=!1,le&&a&&le.split(" ").forEach(function(tt){return a.off(tt,ze)}),ae&&a&&ae.split(" ").forEach(function(tt){return a.store.off(tt,ze)})}},[a,U]);var ie=X.useRef(!0);X.useEffect(function(){q.current&&!ie.current&&H(A),ie.current=!1},[a,g]);var x=[R,a,E];if(x.t=R,x.i18n=a,x.ready=E,E||!E&&!y)return x;throw new Promise(function(le){e.lng?V0(a,e.lng,T,function(){return le()}):$0(a,T,function(){return le()})})}function BM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=X.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return X.createElement(wT.Provider,{value:i},r)}var ST=[],$M=ST.forEach,VM=ST.slice;function UM(t){return $M.call(VM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function HM(t){return t?typeof t=="function"?new t:t:null}function WM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function z0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var TT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};rs(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=UM(i,this.options||{},WM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||HM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(y){if(y>=a)return i(new Error("non of the backend loaded data",!0));var g=y===a-1,T=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,E=o.backends[y];E.read?z0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,y),f(y-1,I),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(j&&o.options.refreshExpirationTime&&j+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[y+1];R&&R.read&&z0(R,n,r,function(H,U){H||U&&(Object.keys(U).length<=T||(f(y,U),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,U)))})}}else p(y+1)}):p(y+1)},f=function p(y,g){if(!(y<0)){var T=o.backends[y];T.save&&T.save(n,r,g),p(y-1,g)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,c):y=p(n,r,i,o),y&&typeof y.then=="function"?y.then(function(g){return a(null,g)}).catch(a):a(null,y)}catch(g){a(g)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}]),t}();TT.type="backend";function Fm(t){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fm(t)}function CT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Fm(XMLHttpRequest))==="object"}function zM(t){return!!t&&typeof t.then=="function"}function YM(t){return zM(t)?t:Promise.resolve(t)}function GM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nm={exports:{}},mh={exports:{}},Y0;function qM(){return Y0||(Y0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Di<"u"&&Di,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,f={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(pe){return pe&&DataView.prototype.isPrototypeOf(pe)}if(f.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(pe){return pe&&y.indexOf(Object.prototype.toString.call(pe))>-1};function T(pe){if(typeof pe!="string"&&(pe=String(pe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(pe)||pe==="")throw new TypeError('Invalid character in header field name: "'+pe+'"');return pe.toLowerCase()}function E(pe){return typeof pe!="string"&&(pe=String(pe)),pe}function A(pe){var fe={next:function(){var Ce=pe.shift();return{done:Ce===void 0,value:Ce}}};return f.iterable&&(fe[Symbol.iterator]=function(){return fe}),fe}function I(pe){this.map={},pe instanceof I?pe.forEach(function(fe,Ce){this.append(Ce,fe)},this):Array.isArray(pe)?pe.forEach(function(fe){this.append(fe[0],fe[1])},this):pe&&Object.getOwnPropertyNames(pe).forEach(function(fe){this.append(fe,pe[fe])},this)}I.prototype.append=function(pe,fe){pe=T(pe),fe=E(fe);var Ce=this.map[pe];this.map[pe]=Ce?Ce+", "+fe:fe},I.prototype.delete=function(pe){delete this.map[T(pe)]},I.prototype.get=function(pe){return pe=T(pe),this.has(pe)?this.map[pe]:null},I.prototype.has=function(pe){return this.map.hasOwnProperty(T(pe))},I.prototype.set=function(pe,fe){this.map[T(pe)]=E(fe)},I.prototype.forEach=function(pe,fe){for(var Ce in this.map)this.map.hasOwnProperty(Ce)&&pe.call(fe,this.map[Ce],Ce,this)},I.prototype.keys=function(){var pe=[];return this.forEach(function(fe,Ce){pe.push(Ce)}),A(pe)},I.prototype.values=function(){var pe=[];return this.forEach(function(fe){pe.push(fe)}),A(pe)},I.prototype.entries=function(){var pe=[];return this.forEach(function(fe,Ce){pe.push([Ce,fe])}),A(pe)},f.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(pe){if(pe.bodyUsed)return Promise.reject(new TypeError("Already read"));pe.bodyUsed=!0}function R(pe){return new Promise(function(fe,Ce){pe.onload=function(){fe(pe.result)},pe.onerror=function(){Ce(pe.error)}})}function H(pe){var fe=new FileReader,Ce=R(fe);return fe.readAsArrayBuffer(pe),Ce}function U(pe){var fe=new FileReader,Ce=R(fe);return fe.readAsText(pe),Ce}function ne(pe){for(var fe=new Uint8Array(pe),Ce=new Array(fe.length),Oe=0;Oe<fe.length;Oe++)Ce[Oe]=String.fromCharCode(fe[Oe]);return Ce.join("")}function q(pe){if(pe.slice)return pe.slice(0);var fe=new Uint8Array(pe.byteLength);return fe.set(new Uint8Array(pe)),fe.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(pe){this.bodyUsed=this.bodyUsed,this._bodyInit=pe,pe?typeof pe=="string"?this._bodyText=pe:f.blob&&Blob.prototype.isPrototypeOf(pe)?this._bodyBlob=pe:f.formData&&FormData.prototype.isPrototypeOf(pe)?this._bodyFormData=pe:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)?this._bodyText=pe.toString():f.arrayBuffer&&f.blob&&p(pe)?(this._bodyArrayBuffer=q(pe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(pe)||g(pe))?this._bodyArrayBuffer=q(pe):this._bodyText=pe=Object.prototype.toString.call(pe):this._bodyText="",this.headers.get("content-type")||(typeof pe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var pe=j(this);if(pe)return pe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var pe=j(this);return pe||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(H)}),this.text=function(){var pe=j(this);if(pe)return pe;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(ze)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(pe){var fe=pe.toUpperCase();return x.indexOf(fe)>-1?fe:pe}function ae(pe,fe){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');fe=fe||{};var Ce=fe.body;if(pe instanceof ae){if(pe.bodyUsed)throw new TypeError("Already read");this.url=pe.url,this.credentials=pe.credentials,fe.headers||(this.headers=new I(pe.headers)),this.method=pe.method,this.mode=pe.mode,this.signal=pe.signal,!Ce&&pe._bodyInit!=null&&(Ce=pe._bodyInit,pe.bodyUsed=!0)}else this.url=String(pe);if(this.credentials=fe.credentials||this.credentials||"same-origin",(fe.headers||!this.headers)&&(this.headers=new I(fe.headers)),this.method=le(fe.method||this.method||"GET"),this.mode=fe.mode||this.mode||null,this.signal=fe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ce)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ce),(this.method==="GET"||this.method==="HEAD")&&(fe.cache==="no-store"||fe.cache==="no-cache")){var Oe=/([?&])_=[^&]*/;if(Oe.test(this.url))this.url=this.url.replace(Oe,"$1_="+new Date().getTime());else{var Ne=/\?/;this.url+=(Ne.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function ze(pe){var fe=new FormData;return pe.trim().split("&").forEach(function(Ce){if(Ce){var Oe=Ce.split("="),Ne=Oe.shift().replace(/\+/g," "),me=Oe.join("=").replace(/\+/g," ");fe.append(decodeURIComponent(Ne),decodeURIComponent(me))}}),fe}function tt(pe){var fe=new I,Ce=pe.replace(/\r?\n[\t ]+/g," ");return Ce.split("\r").map(function(Oe){return Oe.indexOf(`
3
- `)===0?Oe.substr(1,Oe.length):Oe}).forEach(function(Oe){var Ne=Oe.split(":"),me=Ne.shift().trim();if(me){var Te=Ne.join(":").trim();fe.append(me,Te)}}),fe}ie.call(ae.prototype);function Qe(pe,fe){if(!(this instanceof Qe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');fe||(fe={}),this.type="default",this.status=fe.status===void 0?200:fe.status,this.ok=this.status>=200&&this.status<300,this.statusText=fe.statusText===void 0?"":""+fe.statusText,this.headers=new I(fe.headers),this.url=fe.url||"",this._initBody(pe)}ie.call(Qe.prototype),Qe.prototype.clone=function(){return new Qe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Qe.error=function(){var pe=new Qe(null,{status:0,statusText:""});return pe.type="error",pe};var et=[301,302,303,307,308];Qe.redirect=function(pe,fe){if(et.indexOf(fe)===-1)throw new RangeError("Invalid status code");return new Qe(null,{status:fe,headers:{location:pe}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(fe,Ce){this.message=fe,this.name=Ce;var Oe=Error(fe);this.stack=Oe.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Ye(pe,fe){return new Promise(function(Ce,Oe){var Ne=new ae(pe,fe);if(Ne.signal&&Ne.signal.aborted)return Oe(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function Te(){me.abort()}me.onload=function(){var He={status:me.status,statusText:me.statusText,headers:tt(me.getAllResponseHeaders()||"")};He.url="responseURL"in me?me.responseURL:He.headers.get("X-Request-URL");var je="response"in me?me.response:me.responseText;setTimeout(function(){Ce(new Qe(je,He))},0)},me.onerror=function(){setTimeout(function(){Oe(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Oe(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Oe(new a.DOMException("Aborted","AbortError"))},0)};function Le(He){try{return He===""&&c.location.href?c.location.href:He}catch{return He}}me.open(Ne.method,Le(Ne.url),!0),Ne.credentials==="include"?me.withCredentials=!0:Ne.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(f.blob?me.responseType="blob":f.arrayBuffer&&Ne.headers.get("Content-Type")&&Ne.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),fe&&typeof fe.headers=="object"&&!(fe.headers instanceof I)?Object.getOwnPropertyNames(fe.headers).forEach(function(He){me.setRequestHeader(He,E(fe.headers[He]))}):Ne.headers.forEach(function(He,je){me.setRequestHeader(je,He)}),Ne.signal&&(Ne.signal.addEventListener("abort",Te),me.onreadystatechange=function(){me.readyState===4&&Ne.signal.removeEventListener("abort",Te)}),me.send(typeof Ne._bodyInit>"u"?null:Ne._bodyInit)})}return Ye.polyfill=!0,c.fetch||(c.fetch=Ye,c.Headers=I,c.Request=ae,c.Response=Qe),a.Headers=I,a.Request=ae,a.Response=Qe,a.fetch=Ye,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(mh,mh.exports)),mh.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Di<"u"&&Di.fetch?n=Di.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof GM<"u"&&typeof window>"u"){var r=n||qM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Nm,Nm.exports);var ET=Nm.exports;const kT=Eu(ET),G0=yI({__proto__:null,default:kT},[ET]);function q0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function X0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(n),!0).forEach(function(r){XM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XM(t,e,n){return(e=KM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KM(t){var e=ZM(t,"string");return Ec(e)=="symbol"?e:e+""}function ZM(t,e){if(Ec(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ec(t){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(t)}var Tl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Tl=global.fetch:typeof window<"u"&&window.fetch?Tl=window.fetch:Tl=fetch);var _d;CT()&&(typeof global<"u"&&global.XMLHttpRequest?_d=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(_d=window.XMLHttpRequest));var tp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?tp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(tp=window.ActiveXObject));!Tl&&G0&&!_d&&!tp&&(Tl=kT||G0);typeof Tl!="function"&&(Tl=void 0);var jm=function(e,n){if(n&&Ec(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},K0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):Tl(e,n).then(o).catch(r)},Z0=!1,JM=function(e,n,r,i){e.queryStringParams&&(n=jm(n,e.queryStringParams));var o=X0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=X0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},Z0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{K0(n,c,i,f)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(y){delete c[y]}),K0(n,c,i,f),Z0=!0}catch(y){i(y)}}},QM=function(e,n,r,i){r&&Ec(r)==="object"&&(r=jm("",r).slice(1)),e.queryStringParams&&(n=jm(n,e.queryStringParams));try{var o;_d?o=new _d:o=new tp("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},eL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Tl&&n.indexOf("file:")!==0)return JM(e,n,r,i);if(CT()||typeof ActiveXObject=="function")return QM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Df(t){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Df(t)}function J0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Pg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J0(Object(n),!0).forEach(function(r){DT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,PT(r.key),r)}}function rL(t,e,n){return e&&nL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DT(t,e,n){return(e=PT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PT(t){var e=iL(t,"string");return Df(e)=="symbol"?e:e+""}function iL(t,e){if(Df(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var oL=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return DT({},r,i||"")},parseLoadPayload:function(n,r){},request:eL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},OT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};tL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return rL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Pg(Pg(Pg({},oL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Df(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=YM(f),f.then(function(p){if(!p)return a(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(y,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message){var T=y.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var A,I;try{typeof g.data=="string"?A=a.options.parse(g.data,i,o):A=g.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,f,function(I,j){p+=1,y.push(I),g.push(j),p===n.length&&typeof a=="function"&&a(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}])}();OT.type="backend";var Yv=(t=>(t.en="en",t.de="de",t))(Yv||{});oi.use(vT).use(TT).use(MM).init({initImmediate:!0,supportedLngs:["en","de"],fallbackLng:"en",nonExplicitSupportedLngs:!0,load:"languageOnly",ns:["translation"],fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator"],caches:["localStorage"],convertDetectedLanguage:t=>t==null?void 0:t.split("-")[0]},backend:{backends:[OT],backendOptions:[{loadPath:t=>{var i,o,a;const n=(Array.isArray(t)?t[0]:t||"en").split("-")[0];return`${((i=window==null?void 0:window.env)==null?void 0:i.TRANSLATION_URL)??((o=window==null?void 0:window.env)==null?void 0:o.VITE_BASE_URL)??((a=window==null?void 0:window.env)==null?void 0:a.REACT_APP_BASE_URL)??`${location.protocol}//${location.host}`}/translations/${n}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function sL(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||Yv.en)},[]),{language:t,setLanguage:e}}const _T=X.createContext({}),aL=()=>X.useContext(_T),lL=oi,ki=lT,uL=()=>xT(),cL=({children:t})=>{const e=sL();return be.jsx(_T.Provider,{value:e,children:be.jsx(BM,{i18n:oi,children:t})})},mr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};var RT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Q0=X.createContext&&X.createContext(RT),fL=["attr","size","title"];function dL(t,e){if(t==null)return{};var n=hL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hL(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function np(){return np=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},np.apply(this,arguments)}function ew(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rp(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ew(Object(n),!0).forEach(function(r){pL(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pL(t,e,n){return e=gL(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gL(t){var e=mL(t,"string");return typeof e=="symbol"?e:e+""}function mL(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function AT(t){return t&&t.map((e,n)=>X.createElement(e.tag,rp({key:n},e.attr),AT(e.child)))}function Pp(t){return e=>X.createElement(vL,np({attr:rp({},t.attr)},e),AT(t.child))}function vL(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=dL(t,fL),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),X.createElement("svg",np({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:rp(rp({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return Q0!==void 0?X.createElement(Q0.Consumer,null,n=>e(n)):e(RT)}function yL(t){return Pp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function bL(t){return Pp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const IT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Og(t){return t+" !important"}const MT=t=>{const e={...t.colors};return aa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:IT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Og(e.primary200),"&:hover":{backgroundColor:Og(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:yL,next:bL}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Og(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function tw(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||mr[i]})}),n}function LT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function wL(t){var c,f,p;const{data:e,isFetching:n}=Od.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var T;(T=y==null?void 0:y.theme)!=null&&T[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var T,E;LT((T=y==null?void 0:y.theme)==null?void 0:T.favicon);const g=tw(mr,(E=y==null?void 0:y.theme)==null?void 0:E.keyColor);Object.keys(g).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,g[A])}),document.documentElement.style.setProperty("font-family",IT.fontFamily)}}),r=tw(mr,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=MT({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const FT=X.createContext({}),xL=()=>X.useContext(FT),SL=t=>{var o;const{children:e,brandTheme:n}=t,r=wL(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return be.jsx(FT.Provider,{value:r,children:be.jsx(aa.ThemeProvider,{theme:i,children:e})})},TL=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function NT({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return be.jsxs(be.Fragment,{children:[be.jsx("style",{type:"text/css",children:TL}),be.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:be.jsxs("div",{className:"modal-container",children:[be.jsx("h3",{className:"modal-title",children:ki("components.logoutPage.title",{defaultValue:"Log out"})}),be.jsxs("p",{className:"text-sm",children:[" ",ki("components.logoutPage.confirmLogOut",{defaultValue:"Are you sure you want to log out?"})]}),be.jsxs("div",{className:"modal-footer",children:[be.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:ki("commonElement.button.cancel",{defaultValue:"Cancel"})}),be.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:ki("commonElement.button.confirm",{defaultValue:"Comfirm"})})]})]})})]})}const CL=X.memo(({notification:t,notiPath:e,markAllAsReadState:n,brandColors:r,onMark:i,showDetail:o,onToggleDetail:a})=>{var R,H;const[c,f]=X.useState({id:t.id,isRead:t.isRead}),p=c.isRead===!1?"unread":"read",y={borderColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500,backgroundColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500},g=()=>{const U=!t.isRead;i&&i(t.id,U,e)};X.useEffect(()=>{f(n?U=>({...U,isRead:!0}):{id:t.id,isRead:t.isRead})},[n,t.id,t.isRead]);const T=()=>{typeof a=="function"&&a()},E=U=>{const ne=Rm(),q=Rm(U),ie=ne.diff(q,"days"),x=ne.diff(q,"minutes"),le=ne.diff(q,"months"),ae=ne.diff(q,"years");if(console.log("diffInMonths",le),x<1)return"Just now";if(ie===0){if(x<=60)return`${x} minute${x>1?"s":""} ago`;const ze=Math.floor(x/60);return console.log("diffIhours",ze),`${ze} hour${ze>1?"s":""} ago`}if(ie===1)return"Yesterday";if(ie>=2&&ie<7)return`${ie} days ago`;if(ie<30){const ze=Math.floor(ie/7);return`${ze} week${ze>1?"s":""} ago`}return le===0||le===1?"1 month ago":le<12?`${le} months ago`:ae===0||ae===1?"1 year ago":"Over 1 year ago"},A=t!=null&&t.data?(R=t==null?void 0:t.data)==null?void 0:R.length:0,I=t!=null&&t.contextUrl?"a":"p",j=(U,ne)=>{var q,ie;if((U==null?void 0:U.actionKey)!=null){if((q=U==null?void 0:U.data)!=null&&q.brandName)return ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}`,{defaultValue:`${U==null?void 0:U.message}`,brandName:U.data.brandName});switch(U==null?void 0:U.notificationType){case"deleteMultiple":return U!=null&&U.data&&((ie=U==null?void 0:U.data)==null?void 0:ie.length)>1?ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}_multiple`,{defaultValue:`${U==null?void 0:U.actionKey}`,count:ne}):ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}_single`,{defaultValue:`${U==null?void 0:U.actionKey}`});default:return ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}`,{defaultValue:`${U==null?void 0:U.message}`})}}return U.message};return be.jsx(be.Fragment,{children:be.jsxs("div",{className:"notitification-item__container",children:[be.jsx("div",{className:"notification-item__image-container",children:be.jsx("img",{src:!t.actorAvatarUrl||t.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":t.actorAvatarUrl,onError:({currentTarget:U})=>{console.log("img on error",U),U.onerror=null,U.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:t.actorName})}),be.jsxs("div",{style:{width:"calc(100% - 56px)"},children:[be.jsxs("div",{className:"notification-item__content-wrapper",children:[be.jsxs("div",{className:"notification-item__content",children:[be.jsx("p",{className:"notification-item__user-name",children:t.actorName}),be.jsxs(I,{href:t.contextUrl,style:{cursor:t!=null&&t.contextUrl?"pointer":"unset",textDecoration:"none",color:"inherit"},children:[j(t,A),be.jsx("span",{style:{color:t.contextUrl?"#007BFF":"#292929"},children:` ${t!=null&&t.context?t.context:""}`})]}),(t==null?void 0:t.notificationType)==="deleteMultiple"&&be.jsxs("button",{style:{color:mr.primary400,textDecoration:"underline"},onClick:T,children:[o?`${ki("notificationAdmin.notify.hideText",{defaultValue:"Hide"})} `:`${ki("notificationAdmin.notify.showText",{defaultValue:"Show"})} `,ki("notificationAdmin.notify.detailText",{defaultValue:"details"})]})]}),be.jsx("div",{className:"notification-item__time",children:be.jsx("p",{children:E(t.createdAt)})}),be.jsx("button",{className:`${p} notification-item__read-at`,"aria-label":"Mark as read",style:y,onClick:g})]}),o&&be.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:be.jsx("ul",{children:(H=t==null?void 0:t.data)==null?void 0:H.map((U,ne)=>be.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[be.jsx("span",{style:{backgroundColor:mr.primary400},className:"list-dot"}),be.jsx("span",{style:{width:"calc(100% - 12px)"},children:U.name})]},ne))})})]})]})})}),jT=X.createContext({}),EL=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return be.jsx(jT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};function nw(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function kL(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function DL(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var y=e(p);y?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!e(T);T++)f=T;a.push(c,f)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var PL=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},OL=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_L=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},rw=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},RL=function(t){_L(e,t);function e(){var n,r,i,o;PL(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=rw(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!nw(y)||!nw(g))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=g,i._ensureRowsLoaded(y,g)},i._setRef=function(p){i._listRef=p},r),rw(i,o)}return OL(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,T=DL({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var y=r[p],g=r[p+1],T=o(y,g);T!=null&&T.then(function(){if(kL({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent);function Pf(){return Pf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pf.apply(null,arguments)}const AL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pf}},Symbol.toStringTag,{value:"Module"}));function BT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Zh(t,e)}const IL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function Gv({children:t,styles:e=[],...n}){return be.jsxs("div",{...n,children:[[IL,...e].map((r,i)=>be.jsx("style",{type:"text/css",children:r},i)),t]})}function ML(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var qv=ML,LL=typeof Di=="object"&&Di&&Di.Object===Object&&Di,FL=LL,NL=FL,jL=typeof self=="object"&&self&&self.Object===Object&&self,BL=NL||jL||Function("return this")(),$T=BL,$L=$T,VL=function(){return $L.Date.now()},UL=VL,HL=/\s/;function WL(t){for(var e=t.length;e--&&HL.test(t.charAt(e)););return e}var zL=WL,YL=zL,GL=/^\s+/;function qL(t){return t&&t.slice(0,YL(t)+1).replace(GL,"")}var XL=qL,KL=$T,ZL=KL.Symbol,VT=ZL,iw=VT,UT=Object.prototype,JL=UT.hasOwnProperty,QL=UT.toString,id=iw?iw.toStringTag:void 0;function e2(t){var e=JL.call(t,id),n=t[id];try{t[id]=void 0;var r=!0}catch{}var i=QL.call(t);return r&&(e?t[id]=n:delete t[id]),i}var t2=e2,n2=Object.prototype,r2=n2.toString;function i2(t){return r2.call(t)}var o2=i2,ow=VT,s2=t2,a2=o2,l2="[object Null]",u2="[object Undefined]",sw=ow?ow.toStringTag:void 0;function c2(t){return t==null?t===void 0?u2:l2:sw&&sw in Object(t)?s2(t):a2(t)}var f2=c2;function d2(t){return t!=null&&typeof t=="object"}var h2=d2,p2=f2,g2=h2,m2="[object Symbol]";function v2(t){return typeof t=="symbol"||g2(t)&&p2(t)==m2}var y2=v2,b2=XL,aw=qv,w2=y2,lw=NaN,x2=/^[-+]0x[0-9a-f]+$/i,S2=/^0b[01]+$/i,T2=/^0o[0-7]+$/i,C2=parseInt;function E2(t){if(typeof t=="number")return t;if(w2(t))return lw;if(aw(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=aw(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=b2(t);var n=S2.test(t);return n||T2.test(t)?C2(t.slice(2),n?2:8):x2.test(t)?lw:+t}var k2=E2,D2=qv,_g=UL,uw=k2,P2="Expected a function",O2=Math.max,_2=Math.min;function R2(t,e,n){var r,i,o,a,c,f,p=0,y=!1,g=!1,T=!0;if(typeof t!="function")throw new TypeError(P2);e=uw(e)||0,D2(n)&&(y=!!n.leading,g="maxWait"in n,o=g?O2(uw(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ie){var x=r,le=i;return r=i=void 0,p=ie,a=t.apply(le,x),a}function A(ie){return p=ie,c=setTimeout(R,e),y?E(ie):a}function I(ie){var x=ie-f,le=ie-p,ae=e-x;return g?_2(ae,o-le):ae}function j(ie){var x=ie-f,le=ie-p;return f===void 0||x>=e||x<0||g&&le>=o}function R(){var ie=_g();if(j(ie))return H(ie);c=setTimeout(R,I(ie))}function H(ie){return c=void 0,T&&r?E(ie):(r=i=void 0,a)}function U(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function ne(){return c===void 0?a:H(_g())}function q(){var ie=_g(),x=j(ie);if(r=arguments,i=this,f=ie,x){if(c===void 0)return A(f);if(g)return clearTimeout(c),c=setTimeout(R,e),E(f)}return c===void 0&&(c=setTimeout(R,e)),a}return q.cancel=U,q.flush=ne,q}var HT=R2;const Rg=Eu(HT);var A2=HT,I2=qv,M2="Expected a function";function L2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(M2);return I2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),A2(t,e,{leading:r,maxWait:e,trailing:i})}var F2=L2;const N2=Eu(F2);var gf=function(){return gf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gf.apply(this,arguments)};function WT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function zT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var YT=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function GT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function qT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function XT(t){return".".concat(t.split(" ").join("."))}var Xv=!!(typeof window<"u"&&window.document&&window.document.createElement),j2=Object.freeze({__proto__:null,addClasses:GT,canUseDOM:Xv,classNamesToQuery:XT,getElementDocument:zT,getElementWindow:WT,getOptions:YT,removeClasses:qT}),df=null,cw=null;Xv&&window.addEventListener("resize",function(){cw!==window.devicePixelRatio&&(cw=window.devicePixelRatio,df=null)});function fw(){if(df===null){if(typeof document>"u")return df=0,df;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),df=n}return df}var iu=WT,Ag=zT,B2=YT,ou=GT,su=qT,_o=XT,od=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.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=iu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ou(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(){su(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){su(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;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)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,f,p,y,g,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,R=r.axis[r.draggedAxis].track,H=(a=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,U=r.axis[r.draggedAxis].scrollbar,ne=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,q=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var ie=j-((T=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ie=r.draggedAxis==="x"&&r.isRtl?((A=(E=R.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-U.size-ie:ie;var x=ie/(H-U.size),le=x*(ne-q);r.draggedAxis==="x"&&r.isRtl&&(le=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-le:le),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=le}},this.onEndDrag=function(i){r.isDragging=!1;var o=Ag(r.el),a=iu(r.el);i.preventDefault(),i.stopPropagation(),su(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=gf(gf({},t.defaultOptions),n),this.classNames=gf(gf({},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=N2(this._onMouseMove,64),this.onWindowResize=Rg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Rg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Rg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.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:fw()}catch{return fw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Ag(e),i=iu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Xv&&(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(_o(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_o(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_o(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_o(this.classNames.offset)),this.maskEl=this.el.querySelector(_o(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_o(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_o(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_o(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(_o(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_o(this.classNames.scrollbar)))||null,this.options.autoHide||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=iu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=iu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=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 f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="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 g=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(a-f),g=~~((c-o.size)*y);g=e==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=e==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"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&&(ou(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.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(su(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),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):su(n.scrollbar.el,this.classNames.hover)):(su(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),su(this.axis[e].track.el,this.classNames.hover),su(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"),this.isDragging=!0;var i=Ag(this.el),o=iu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=iu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-g:this.mouseX-g,I=A<0?-1:1,j=I===-1?E-T:E+T,R=40,H=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)):E<j&&(E+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)))};H()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=iu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,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=B2,t.helpers=j2,t}(),Zo=function(){return Zo=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zo.apply(this,arguments)};function $2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Kv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=$2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},y={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(od.defaultOptions,E)?p[E]=o[E]:y[E]=o[E]});var g=Zo(Zo({},od.defaultOptions.classNames),p.classNames),T=Zo(Zo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||od.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||od.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new od(a.current,Zo(Zo(Zo({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Zo({"data-simplebar":"init",ref:a},y),kn.createElement("div",{className:g.wrapper},kn.createElement("div",{className:g.heightAutoObserverWrapperEl},kn.createElement("div",{className:g.heightAutoObserverEl})),kn.createElement("div",{className:g.mask},kn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Zo(Zo({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):kn.createElement("div",Zo({},T),kn.createElement("div",{className:g.contentEl},n)))),kn.createElement("div",{className:g.placeholder})),kn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},kn.createElement("div",{className:g.scrollbar})),kn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},kn.createElement("div",{className:g.scrollbar})))});Kv.displayName="SimpleBar";const KT='[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}';function ZT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=ZT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=ZT(t))&&(r&&(r+=" "),r+=e);return r}const Rd=t=>typeof t=="number"&&!isNaN(t),xc=t=>typeof t=="string",Jo=t=>typeof t=="function",jh=t=>xc(t)||Jo(t)?t:null,Bm=t=>X.isValidElement(t)||xc(t)||Jo(t)||Rd(t);function V2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Op(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:T,playToast:E}=a;const A=r?`${e}--${f}`:e,I=r?`${n}--${f}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const R=g.current,H=A.split(" "),U=ne=>{ne.target===g.current&&(E(),R.removeEventListener("animationend",U),R.removeEventListener("animationcancel",U),j.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...H))};R.classList.add(...H),R.addEventListener("animationend",U),R.addEventListener("animationcancel",U)},[]),X.useEffect(()=>{const R=g.current,H=()=>{R.removeEventListener("animationend",H),i?V2(R,y,o):y()};T||(p?H():(j.current=1,R.className+=` ${I}`,R.addEventListener("animationend",H)))},[T]),X.createElement(X.Fragment,null,c)}}function dw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const so=new Map;let Ad=[];const $m=new Set,U2=t=>$m.forEach(e=>e(t)),JT=()=>so.size>0;function QT(t,e){var n;if(e)return!((n=so.get(e))==null||!n.isToastActive(t));let r=!1;return so.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function eC(t,e){Bm(t)&&(JT()||Ad.push({content:t,options:e}),so.forEach(n=>{n.buildToast(t,e)}))}function hw(t,e){so.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)})}function H2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(y,g,T){let E=1,A=0,I=[],j=[],R=[],H=g;const U=new Map,ne=new Set,q=()=>{R=Array.from(U.values()),ne.forEach(le=>le())},ie=le=>{j=le==null?[]:j.filter(ae=>ae!==le),q()},x=le=>{const{toastId:ae,onOpen:ze,updateId:tt,children:Qe}=le.props,et=tt==null;le.staleId&&U.delete(le.staleId),U.set(ae,le),j=[...j,le.props.toastId].filter(Ye=>Ye!==le.staleId),q(),T(dw(le,et?"added":"updated")),et&&Jo(ze)&&ze(X.isValidElement(Qe)&&Qe.props)};return{id:y,props:H,observe:le=>(ne.add(le),()=>ne.delete(le)),toggle:(le,ae)=>{U.forEach(ze=>{ae!=null&&ae!==ze.props.toastId||Jo(ze.toggle)&&ze.toggle(le)})},removeToast:ie,toasts:U,clearQueue:()=>{A-=I.length,I=[]},buildToast:(le,ae)=>{if((Le=>{let{containerId:He,toastId:je,updateId:Fe}=Le;const Ve=He?He!==y:y!==1,nt=U.has(je)&&Fe==null;return Ve||nt})(ae))return;const{toastId:ze,updateId:tt,data:Qe,staleId:et,delay:Ye}=ae,pe=()=>{ie(ze)},fe=tt==null;fe&&A++;const Ce={...H,style:H.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(Le=>{let[He,je]=Le;return je!=null})),toastId:ze,updateId:tt,data:Qe,closeToast:pe,isIn:!1,className:jh(ae.className||H.toastClassName),bodyClassName:jh(ae.bodyClassName||H.bodyClassName),progressClassName:jh(ae.progressClassName||H.progressClassName),autoClose:!ae.isLoading&&(Oe=ae.autoClose,Ne=H.autoClose,Oe===!1||Rd(Oe)&&Oe>0?Oe:Ne),deleteToast(){const Le=U.get(ze),{onClose:He,children:je}=Le.props;Jo(He)&&He(X.isValidElement(je)&&je.props),T(dw(Le,"removed")),U.delete(ze),A--,A<0&&(A=0),I.length>0?x(I.shift()):q()}};var Oe,Ne;Ce.closeButton=H.closeButton,ae.closeButton===!1||Bm(ae.closeButton)?Ce.closeButton=ae.closeButton:ae.closeButton===!0&&(Ce.closeButton=!Bm(H.closeButton)||H.closeButton);let me=le;X.isValidElement(le)&&!xc(le.type)?me=X.cloneElement(le,{closeToast:pe,toastProps:Ce,data:Qe}):Jo(le)&&(me=le({closeToast:pe,toastProps:Ce,data:Qe}));const Te={content:me,props:Ce,staleId:et};H.limit&&H.limit>0&&A>H.limit&&fe?I.push(Te):Rd(Ye)?setTimeout(()=>{x(Te)},Ye):x(Te)},setProps(le){H=le},setToggle:(le,ae)=>{U.get(le).toggle=ae},isToastActive:le=>j.some(ae=>ae===le),getSnapshot:()=>R}}(a,o,U2);so.set(a,f);const p=f.observe(c);return Ad.forEach(y=>eC(y.content,y.options)),Ad=[],()=>{p(),so.delete(a)}},setProps(c){var f;(f=so.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=so.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:QT,count:i==null?void 0:i.length}}function W2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(U){const ne=o.current;a.canDrag&&ne&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?U.clientX-a.start:U.clientY-a.start,a.start!==U.clientX&&(a.canCloseOnClick=!1),ne.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function R(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",R);const U=o.current;if(a.canDrag&&a.didMove&&U){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();U.style.transition="transform 0.2s, opacity 0.2s",U.style.removeProperty("transform"),U.style.removeProperty("opacity")}}(E=so.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const H={onPointerDown:function(U){if(t.draggable===!0||t.draggable===U.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",R);const ne=o.current;a.canCloseOnClick=!0,a.canDrag=!0,ne.style.transition="none",t.draggableDirection==="x"?(a.start=U.clientX,a.removalDistance=ne.offsetWidth*(t.draggablePercent/100)):(a.start=U.clientY,a.removalDistance=ne.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(U){const{top:ne,bottom:q,left:ie,right:x}=o.current.getBoundingClientRect();U.nativeEvent.type!=="touchend"&&t.pauseOnHover&&U.clientX>=ie&&U.clientX<=x&&U.clientY>=ne&&U.clientY<=q?I():A()}};return c&&f&&(H.onMouseEnter=I,t.stacked||(H.onMouseLeave=A)),g&&(H.onClick=U=>{y&&y(U),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:H}}function z2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:T}=t;const E=o||f&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(A.transform=`scaleX(${p})`);const I=wl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),j=Jo(a)?a({rtl:y,type:i,defaultClassName:I}):wl(I,a),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,...R}))}let Y2=1;const tC=()=>""+Y2++;function G2(t){return t&&(xc(t.toastId)||Rd(t.toastId))?t.toastId:tC()}function vd(t,e){return eC(t,e),e.toastId}function ip(t,e){return{...e,type:e&&e.type||t,toastId:G2(e)}}function vh(t){return(e,n)=>vd(e,ip(t,n))}function xn(t,e){return vd(t,ip("default",e))}xn.loading=(t,e)=>vd(t,ip("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=xc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,T)=>{if(g==null)return void xn.dismiss(r);const E={type:y,...c,...n,data:T},A=xc(g)?{render:g}:g;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Jo(t)?t():t;return p.then(y=>f("success",a,y)).catch(y=>f("error",o,y)),p},xn.success=vh("success"),xn.info=vh("info"),xn.error=vh("error"),xn.warning=vh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>vd(t,ip("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(JT()){if(e==null||xc(n=e)||Rd(n))so.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=so.get(e.containerId);r?r.removeToast(e.id):so.forEach(i=>{i.removeToast(e.id)})}}else Ad=Ad.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),so.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=QT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=so.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:tC()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,vd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return $m.add(t),()=>{$m.delete(t)}},xn.play=t=>hw(!0,t),xn.pause=t=>hw(!1,t);const q2=typeof window<"u"?X.useLayoutEffect:X.useEffect,yh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ig={info:function(t){return X.createElement(yh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(yh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(yh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(yh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},X2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=W2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:R,bodyStyle:H,progressClassName:U,progressStyle:ne,updateId:q,role:ie,progress:x,rtl:le,toastId:ae,deleteToast:ze,isIn:tt,isLoading:Qe,closeOnClick:et,theme:Ye}=t,pe=wl("Toastify__toast",`Toastify__toast-theme--${Ye}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":le},{"Toastify__toast--close-on-click":et}),fe=Jo(I)?I({rtl:le,position:A,type:y,defaultClassName:pe}):wl(pe,I),Ce=function(Te){let{theme:Le,type:He,isLoading:je,icon:Fe}=Te,Ve=null;const nt={theme:Le,type:He};return Fe===!1||(Jo(Fe)?Ve=Fe({...nt,isLoading:je}):X.isValidElement(Fe)?Ve=X.cloneElement(Fe,nt):je?Ve=Ig.spinner():(ct=>ct in Ig)(He)&&(Ve=Ig[He](nt))),Ve}(t),Oe=!!x||!f,Ne={closeToast:T,type:y,theme:Ye};let me=null;return a===!1||(me=Jo(a)?a(Ne):X.isValidElement(a)?X.cloneElement(a,Ne):function(Te){let{closeToast:Le,theme:He,ariaLabel:je="close"}=Te;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${He}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Le(Fe)},"aria-label":je},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ne)),X.createElement(E,{isIn:tt,done:ze,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":tt,className:fe,...i,style:j,ref:r},X.createElement("div",{...tt&&{role:ie},className:Jo(R)?R({type:y}):wl("Toastify__toast-body",R),style:H},Ce!=null&&X.createElement("div",{className:wl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Qe})},Ce),X.createElement("div",null,c)),me,X.createElement(z2,{...q&&!Oe?{key:`pb-${q}`}:{},rtl:le,theme:Ye,delay:f,isRunning:e,isIn:tt,closeToast:T,hide:g,type:y,style:ne,className:U,controlledProgress:Oe,progress:x||0})))},_p=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},K2=Op(_p("bounce",!0));Op(_p("slide",!0));Op(_p("zoom"));Op(_p("flip"));const Z2={position:"top-right",transition:K2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function J2(t){let e={...Z2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=H2(e),{className:p,style:y,rtl:g,containerId:T}=e;function E(I){const j=wl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Jo(p)?p({position:I,rtl:g,defaultClassName:j}):wl(j,jh(p))}function A(){n&&(i(!0),xn.play())}return q2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),R=12,H=(I=e.position)==null?void 0:I.includes("top");let U=0,ne=0;Array.from(j).reverse().forEach((q,ie)=>{const x=q;x.classList.add("Toastify__toast--stacked"),ie>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=H?"top":"bot");const le=U*(r?.2:1)+(r?0:R*ie);x.style.setProperty("--y",`${H?le:-1*le}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?ne:0))),U+=x.offsetHeight,ne+=.025})}},[r,f,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const R=j.length?{...y}:{...y,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:R,key:`container-${I}`},j.map(H=>{let{content:U,props:ne}=H;return X.createElement(X2,{...ne,stacked:n,collapseAll:A,isIn:c(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},U)}))}))}function Q2(){return be.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),be.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function eF(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),be.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function tF(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),be.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Zv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},nF=({closeToast:t})=>be.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:be.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),Jv=(t,e)=>{xn.success(t,{icon:be.jsx(eF,{}),bodyStyle:{},style:{...Zv,background:mr.successLight,borderColor:mr.success,color:mr.success},...e})},Yd=(t,e)=>{xn.error(t,{icon:be.jsx(Q2,{}),style:{...Zv,background:mr.dangerLight,borderColor:mr.danger,color:mr.danger},...e})},rF=(t,e)=>{xn.error(t,{icon:be.jsx(tF,{}),style:{...Zv,background:mr.warningLight,borderColor:mr.warning,color:mr.warning},...e})},iF=t=>{xn(t,{closeButton:nF,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:mr.textPrimary}})};function nC(t){let e=null;return()=>(e==null&&(e=t()),e)}function oF(t,e){return t.filter(n=>n!==e)}function sF(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class aF{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=sF(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=oF(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class lF{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const rC="__NATIVE_FILE__",iC="__NATIVE_URL__",oC="__NATIVE_TEXT__",sC="__NATIVE_HTML__",pw=Object.freeze(Object.defineProperty({__proto__:null,FILE:rC,HTML:sC,TEXT:oC,URL:iC},Symbol.toStringTag,{value:"Module"}));function Mg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Vm={[rC]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[sC]:{exposeProperties:{html:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[iC]:{exposeProperties:{urls:(t,e)=>Mg(t,e,"").split(`
4
- `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[oC]:{exposeProperties:{text:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function uF(t,e){const n=Vm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new lF(n);return r.loadDataTransfer(e),r}function Lg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Vm).filter(n=>{const r=Vm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const cF=nC(()=>/firefox/i.test(navigator.userAgent)),aC=nC(()=>!!window.safari);class gw{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let f=0,p=a.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const E=n[y];if(E<e)f=y+1;else if(E>e)p=y-1;else return r[y]}c=Math.max(0,p);const g=e-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+a[c]*g*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],R=c+j;p.push(3*R/((R+j)/A+(R+c)/I))}}p.push(a[a.length-1]);const y=[],g=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;y.push((T-A-j)*I),g.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const fF=1;function lC(t){const e=t.nodeType===fF?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function bh(t){return{x:t.clientX,y:t.clientY}}function dF(t){var e;return t.nodeName==="IMG"&&(cF()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function hF(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return aC()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function pF(t,e,n,r,i){const o=dF(e),c=lC(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=t,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=hF(o,e,p,y),I=()=>{let ie=new gw([0,.5,1],[f.y,f.y/y*A,f.y+A-y]).interpolate(T);return aC()&&o&&(ie+=(window.devicePixelRatio-1)*A),ie},j=()=>new gw([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(g),{offsetX:R,offsetY:H}=i,U=R===0||R,ne=H===0||H;return{x:U?R:j(),y:ne?H:I()}}let gF=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function mF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mF(t,i,n[i])})}return t}class vF{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return mw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return mw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(pw).some(n=>pw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=uF(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&lC(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=bh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Lg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||g;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),U=pF(g,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,U.x,U.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Lg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:bh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=bh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Lg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:bh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new gF(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new aF(this.isNodeInDocument)}}let wh;function yF(){return wh||(wh=new Image,wh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),wh}const uC=function(e,n,r){return new vF(e,n,r)};var Sc=[],bF=function(){return Sc.some(function(t){return t.activeTargets.length>0})},wF=function(){return Sc.some(function(t){return t.skippedTargets.length>0})},vw="ResizeObserver loop completed with undelivered notifications.",xF=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:vw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=vw),window.dispatchEvent(t)},Id;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Id||(Id={}));var Tc=function(t){return Object.freeze(t)},SF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Tc(this)}return t}(),cC=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Qv=function(t){return t instanceof SVGElement&&"getBBox"in t},fC=function(t){if(Qv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},yw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},TF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},yd=typeof window<"u"?window:{},xh=new WeakMap,bw=/auto|scroll/,CF=/^tb|vertical/,EF=/msie|trident/i.test(yd.navigator&&yd.navigator.userAgent),La=function(t){return parseFloat(t||"0")},kf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new SF((n?e:t)||0,(n?t:e)||0)},ww=Tc({devicePixelContentBoxSize:kf(),borderBoxSize:kf(),contentBoxSize:kf(),contentRect:new cC(0,0,0,0)}),dC=function(t,e){if(e===void 0&&(e=!1),xh.has(t)&&!e)return xh.get(t);if(fC(t))return xh.set(t,ww),ww;var n=getComputedStyle(t),r=Qv(t)&&t.ownerSVGElement&&t.getBBox(),i=!EF&&n.boxSizing==="border-box",o=CF.test(n.writingMode||""),a=!r&&bw.test(n.overflowY||""),c=!r&&bw.test(n.overflowX||""),f=r?0:La(n.paddingTop),p=r?0:La(n.paddingRight),y=r?0:La(n.paddingBottom),g=r?0:La(n.paddingLeft),T=r?0:La(n.borderTopWidth),E=r?0:La(n.borderRightWidth),A=r?0:La(n.borderBottomWidth),I=r?0:La(n.borderLeftWidth),j=g+p,R=f+y,H=I+E,U=T+A,ne=c?t.offsetHeight-U-t.clientHeight:0,q=a?t.offsetWidth-H-t.clientWidth:0,ie=i?j+H:0,x=i?R+U:0,le=r?r.width:La(n.width)-ie-q,ae=r?r.height:La(n.height)-x-ne,ze=le+j+q+H,tt=ae+R+ne+U,Qe=Tc({devicePixelContentBoxSize:kf(Math.round(le*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:kf(ze,tt,o),contentBoxSize:kf(le,ae,o),contentRect:new cC(g,f,le,ae)});return xh.set(t,Qe),Qe},hC=function(t,e,n){var r=dC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Id.DEVICE_PIXEL_CONTENT_BOX:return a;case Id.BORDER_BOX:return i;default:return o}},kF=function(){function t(e){var n=dC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Tc([n.borderBoxSize]),this.contentBoxSize=Tc([n.contentBoxSize]),this.devicePixelContentBoxSize=Tc([n.devicePixelContentBoxSize])}return t}(),pC=function(t){if(fC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},DF=function(){var t=1/0,e=[];Sc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var y=new kF(p.target),g=pC(p.target);c.push(y),p.lastReportedSize=hC(p.target,p.observedBox),g<t&&(t=g)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},xw=function(t){Sc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(pC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},PF=function(){var t=0;for(xw(t);bF();)t=DF(),xw(t);return wF()&&xF(),t>0},Fg,gC=[],OF=function(){return gC.splice(0).forEach(function(t){return t()})},_F=function(t){if(!Fg){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return OF()}).observe(n,r),Fg=function(){n.textContent="".concat(e?e--:e++)}}gC.push(t),Fg()},RF=function(t){_F(function(){requestAnimationFrame(t)})},Bh=0,AF=function(){return!!Bh},IF=250,MF={attributes:!0,characterData:!0,childList:!0,subtree:!0},Sw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Tw=function(t){return t===void 0&&(t=0),Date.now()+t},Ng=!1,LF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=IF),!Ng){Ng=!0;var r=Tw(e);RF(function(){var i=!1;try{i=PF()}finally{if(Ng=!1,e=r-Tw(),!AF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,MF)};document.body?n():yd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Sw.forEach(function(n){return yd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Sw.forEach(function(n){return yd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Um=new LF,Cw=function(t){!Bh&&t>0&&Um.start(),Bh+=t,!Bh&&Um.stop()},FF=function(t){return!Qv(t)&&!TF(t)&&getComputedStyle(t).display==="inline"},NF=function(){function t(e,n){this.target=e,this.observedBox=n||Id.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=hC(this.target,this.observedBox,!0);return FF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),jF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Sh=new WeakMap,Ew=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Th=function(){function t(){}return t.connect=function(e,n){var r=new jF(e,n);Sh.set(e,r)},t.observe=function(e,n,r){var i=Sh.get(e),o=i.observationTargets.length===0;Ew(i.observationTargets,n)<0&&(o&&Sc.push(i),i.observationTargets.push(new NF(n,r&&r.box)),Cw(1),Um.schedule())},t.unobserve=function(e,n){var r=Sh.get(e),i=Ew(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Sc.splice(Sc.indexOf(r),1),r.observationTargets.splice(i,1),Cw(-1))},t.disconnect=function(e){var n=this,r=Sh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),BF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Th.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Th.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Th.unobserve(this,e)},t.prototype.disconnect=function(){Th.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const mC=X.createContext({});function $F(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const ey=X.createContext(null),vC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function VF(t=!0){const e=X.useContext(ey);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const ty=typeof window<"u",UF=ty?X.useLayoutEffect:X.useEffect,Ro=t=>t;let Ff=Ro,yu=Ro;process.env.NODE_ENV!=="production"&&(Ff=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},yu=(t,e)=>{if(!t)throw new Error(e)});function ny(t){let e;return()=>(e===void 0&&(e=t()),e)}const Of=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ja=t=>t*1e3,Cl=t=>t/1e3,HF={useManualTiming:!1};function WF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,y=!1,g=!1)=>{const E=g&&r?e:n;return y&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const Ch=["read","resolveKeyframes","update","preRender","render","postRender"],zF=40;function yC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Ch.reduce((R,H)=>(R[H]=WF(o),R),{}),{read:c,resolveKeyframes:f,update:p,preRender:y,render:g,postRender:T}=a,E=()=>{const R=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,zF),1),i.timestamp=R,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),y.process(i),g.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Ch.reduce((R,H)=>{const U=a[H];return R[H]=(ne,q=!1,ie=!1)=>(n||A(),U.schedule(ne,q,ie)),R},{}),cancel:R=>{for(let H=0;H<Ch.length;H++)a[Ch[H]].cancel(R)},state:i,steps:a}}const{schedule:Fn,cancel:bu,state:Ei,steps:jg}=yC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ro,!0),bC=X.createContext({strict:!1}),kw={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"]},_f={};for(const t in kw)_f[t]={isEnabled:e=>kw[t].some(n=>!!e[n])};function YF(t){for(const e in t)_f[e]={..._f[e],...t[e]}}const GF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function op(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||GF.has(t)}let wC=t=>!op(t);function qF(t){t&&(wC=e=>e.startsWith("on")?!op(e):t(e))}try{qF(require("@emotion/is-prop-valid").default)}catch{}function XF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(wC(i)||n===!0&&op(i)||!e&&!op(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Dw=new Set;function Rp(t,e,n){t||Dw.has(e)||(console.warn(e),Dw.add(e))}function KF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Rp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Ap=X.createContext({});function Md(t){return typeof t=="string"||Array.isArray(t)}function Ip(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ry=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iy=["initial",...ry];function Mp(t){return Ip(t.animate)||iy.some(e=>Md(t[e]))}function xC(t){return!!(Mp(t)||t.variants)}function ZF(t,e){if(Mp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Md(n)?n:void 0,animate:Md(r)?r:void 0}}return t.inherit!==!1?e:{}}function JF(t){const{initial:e,animate:n}=ZF(t,X.useContext(Ap));return X.useMemo(()=>({initial:e,animate:n}),[Pw(e),Pw(n)])}function Pw(t){return Array.isArray(t)?t.join(" "):t}const QF=Symbol.for("motionComponentSymbol");function mf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function eN(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):mf(n)&&(n.current=r))},[e])}const oy=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tN="framerAppearId",SC="data-"+oy(tN),{schedule:sy}=yC(queueMicrotask,!1),TC=X.createContext({});function nN(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Ap),f=X.useContext(bC),p=X.useContext(ey),y=X.useContext(vC).reducedMotion,g=X.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const T=g.current,E=X.useContext(TC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&rN(g.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[SC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return UF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),sy.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,I)}),j.current=!1))}),T}function rN(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:CC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&mf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function CC(t){if(t)return t.options.allowProjection!==!1?t.projection:CC(t.parent)}function iN({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&YF(t);function c(p,y){let g;const T={...X.useContext(vC),...p,layoutId:oN(p)},{isStatic:E}=T,A=JF(p),I=r(p,E);if(!E&&ty){sN(T,t);const j=aN(T);g=j.MeasureLayout,A.visualElement=nN(i,I,T,e,j.ProjectionNode)}return be.jsxs(Ap.Provider,{value:A,children:[g&&A.visualElement?be.jsx(g,{visualElement:A.visualElement,...T}):null,n(i,p,eN(I,A.visualElement,y),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const f=X.forwardRef(c);return f[QF]=i,f}function oN({layoutId:t}){const e=X.useContext(mC).id;return e&&t!==void 0?e+"-"+t:t}function sN(t,e){const n=X.useContext(bC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ff(!1,r):yu(!1,r)}}function aN(t){const{drag:e,layout:n}=_f;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lN=["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 ay(t){return typeof t!="string"||t.includes("-")?!1:!!(lN.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ow(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ly(t,e,n,r){if(typeof e=="function"){const[i,o]=Ow(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Ow(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Hm=t=>Array.isArray(t),uN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cN=t=>Hm(t)?t[t.length-1]||0:t,Bi=t=>!!(t&&t.getVelocity);function $h(t){const e=Bi(t)?t.get():t;return uN(e)?e.toValue():e}function fN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:dN(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const EC=t=>(e,n)=>{const r=X.useContext(Ap),i=X.useContext(ey),o=()=>fN(t,e,r,i);return n?o():$F(o)};function dN(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=$h(o[T]);let{initial:a,animate:c}=t;const f=Mp(t),p=xC(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;if(g&&typeof g!="boolean"&&!Ip(g)){const T=Array.isArray(g)?g:[g];for(let E=0;E<T.length;E++){const A=ly(t,T[E]);if(A){const{transitionEnd:I,transition:j,...R}=A;for(const H in R){let U=R[H];if(Array.isArray(U)){const ne=y?U.length-1:0;U=U[ne]}U!==null&&(i[H]=U)}for(const H in I)i[H]=I[H]}}}return i}const Nf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Nf),kC=t=>e=>typeof e=="string"&&e.startsWith(t),DC=kC("--"),hN=kC("var(--"),uy=t=>hN(t)?pN.test(t.split("/*")[0].trim()):!1,pN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Pl=(t,e,n)=>n>e?e:n<t?t:n,jf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ld={...jf,transform:t=>Pl(0,1,t)},Eh={...jf,default:1},Gd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Gd("deg"),Ba=Gd("%"),Ot=Gd("px"),gN=Gd("vh"),mN=Gd("vw"),_w={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},vN={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},yN={rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:Eh,scaleX:Eh,scaleY:Eh,scaleZ:Eh,skew:au,skewX:au,skewY:au,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Ld,originX:_w,originY:_w,originZ:Ot},Rw={...jf,transform:Math.round},cy={...vN,...yN,zIndex:Rw,size:Ot,fillOpacity:Ld,strokeOpacity:Ld,numOctaves:Rw},bN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wN=Nf.length;function xN(t,e,n){let r="",i=!0;for(let o=0;o<wN;o++){const a=Nf[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=PC(c,cy[a]);if(!f){i=!1;const y=bN[a]||a;r+=`${y}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function fy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Rc.has(f)){a=!0;continue}else if(DC(f)){i[f]=p;continue}else{const y=PC(p,cy[f]);f.startsWith("origin")?(c=!0,o[f]=y):r[f]=y}}if(e.transform||(a||n?r.transform=xN(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:y=0}=o;r.transformOrigin=`${f} ${p} ${y}`}}const SN={offset:"stroke-dashoffset",array:"stroke-dasharray"},TN={offset:"strokeDashoffset",array:"strokeDasharray"};function CN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?SN:TN;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Aw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function EN(t,e,n){const r=Aw(e,t.x,t.width),i=Aw(n,t.y,t.height);return`${r} ${i}`}function dy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g){if(fy(t,p,g),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=EN(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&CN(T,a,c,f,!1)}const hy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),OC=()=>({...hy(),attrs:{}}),py=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _C(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const RC=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 AC(t,e,n,r){_C(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(RC.has(i)?i:oy(i),e.attrs[i])}const sp={};function kN(t){Object.assign(sp,t)}function IC(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!sp[t]||t==="opacity")}function gy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(Bi(i[a])||e.style&&Bi(e.style[a])||IC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function MC(t,e,n){const r=gy(t,e,n);for(const i in t)if(Bi(t[i])||Bi(e[i])){const o=Nf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function DN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Iw=["x","y","width","height","cx","cy","r"],PN={useVisualState:EC({scrapeMotionValuesFromProps:MC,createRenderState:OC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(Rc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Iw.length;c++){const f=Iw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{DN(n,r),Fn.render(()=>{dy(r,i,py(n.tagName),t.transformTemplate),AC(n,r)})})}})},ON={useVisualState:EC({scrapeMotionValuesFromProps:gy,createRenderState:hy})};function LC(t,e,n){for(const r in e)!Bi(e[r])&&!IC(r,n)&&(t[r]=e[r])}function _N({transformTemplate:t},e){return X.useMemo(()=>{const n=hy();return fy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function RN(t,e){const n=t.style||{},r={};return LC(r,n,t),Object.assign(r,_N(t,e)),r}function AN(t,e){const n={},r=RN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function IN(t,e,n,r){const i=X.useMemo(()=>{const o=OC();return dy(o,e,py(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};LC(o,t.style,t),i.style={...o,...i.style}}return i}function MN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(ay(n)?IN:AN)(r,o,a,n),p=XF(r,typeof n=="string",t),y=n!==X.Fragment?{...p,...f,ref:i}:{},{children:g}=r,T=X.useMemo(()=>Bi(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function LN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ay(r)?PN:ON,preloadedFeatures:t,useRender:MN(i),createVisualElement:e,Component:r};return iN(a)}}function FC(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 Lp(t,e,n){const r=t.getProps();return ly(r,e,n!==void 0?n:r.custom,t)}const FN=ny(()=>window.ScrollTimeline!==void 0);class NN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(FN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class jN extends NN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function my(t,e){return t?t[e]||t.default||t:void 0}const Wm=2e4;function NC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Wm;)e+=n,r=t.next(e);return e>=Wm?1/0:e}function vy(t){return typeof t=="function"}function Mw(t,e){t.timeline=e,t.onfinish=null}const yy=t=>Array.isArray(t)&&typeof t[0]=="number",BN={linearEasing:void 0};function $N(t,e){const n=ny(t);return()=>{var r;return(r=BN[e])!==null&&r!==void 0?r:n()}}const ap=$N(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Of(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function BC(t){return!!(typeof t=="function"&&ap()||!t||typeof t=="string"&&(t in zm||ap())||yy(t)||Array.isArray(t)&&t.every(BC))}const fd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,zm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fd([0,.65,.55,1]),circOut:fd([.55,0,1,.45]),backIn:fd([.31,.01,.66,-.59]),backOut:fd([.33,1.53,.69,.99])};function $C(t,e){if(t)return typeof t=="function"&&ap()?jC(t,e):yy(t)?fd(t):Array.isArray(t)?t.map(n=>$C(n,e)||zm.easeOut):zm[t]}const sa={x:!1,y:!1};function VC(){return sa.x||sa.y}function VN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function UC(t,e){const n=VN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Lw(t){return e=>{e.pointerType==="touch"||VC()||t(e)}}function UN(t,e,n={}){const[r,i,o]=UC(t,n),a=Lw(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const y=Lw(g=>{p(g),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const HC=(t,e)=>e?t===e?!0:HC(t,e.parentElement):!1,by=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,HN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WN(t){return HN.has(t.tagName)||t.tabIndex!==-1}const dd=new WeakSet;function Fw(t){return e=>{e.key==="Enter"&&t(e)}}function Bg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const zN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Fw(()=>{if(dd.has(n))return;Bg(n,"down");const i=Fw(()=>{Bg(n,"up")}),o=()=>Bg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Nw(t){return by(t)&&!VC()}function YN(t,e,n={}){const[r,i,o]=UC(t,n),a=c=>{const f=c.currentTarget;if(!Nw(c)||dd.has(f))return;dd.add(f);const p=e(c),y=(E,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",T),!(!Nw(E)||!dd.has(f))&&(dd.delete(f),typeof p=="function"&&p(E,{success:A}))},g=E=>{y(E,n.useGlobalTarget||HC(f,E.target))},T=E=>{y(E,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!WN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>zN(p,i),i)}),o}function GN(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const WC=new Set(["width","height","top","left","right","bottom",...Nf]);let Vh;function qN(){Vh=void 0}const $a={now:()=>(Vh===void 0&&$a.set(Ei.isProcessing||HF.useManualTiming?Ei.timestamp:performance.now()),Vh),set:t=>{Vh=t,queueMicrotask(qN)}};function wy(t,e){t.indexOf(e)===-1&&t.push(e)}function xy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let Sy=class{constructor(){this.subscriptions=[]}add(e){return wy(this.subscriptions,e),()=>xy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function zC(t,e){return e?t*(1e3/e):0}const jw=30,XN=t=>!isNaN(parseFloat(t));let KN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=$a.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$a.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=XN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Rp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.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=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$a.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jw);return zC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Fd(t,e){return new KN(t,e)}function ZN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Fd(n))}function JN(t,e){const n=Lp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=cN(o[a]);ZN(t,a,c)}}function QN(t){return!!(Bi(t)&&t.add)}function Ym(t,e){const n=t.getValue("willChange");if(QN(n))return n.add(e)}function YC(t){return t.props[SC]}const GC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ej=1e-7,tj=12;function nj(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=GC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>ej&&++c<tj);return a}function qd(t,e,n,r){if(t===e&&n===r)return Ro;const i=o=>nj(o,0,1,t,n);return o=>o===0||o===1?o:GC(i(o),e,r)}const qC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,XC=t=>e=>1-t(1-e),KC=qd(.33,1.53,.69,.99),Ty=XC(KC),ZC=qC(Ty),JC=t=>(t*=2)<1?.5*Ty(t):.5*(2-Math.pow(2,-10*(t-1))),Cy=t=>1-Math.sin(Math.acos(t)),QC=XC(Cy),eE=qC(Cy),tE=t=>/^0[^.\s]+$/u.test(t);function rj(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||tE(t):!0}const bd=t=>Math.round(t*1e5)/1e5,Ey=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ij(t){return t==null}const oj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ky=(t,e)=>n=>!!(typeof n=="string"&&oj.test(n)&&n.startsWith(t)||e&&!ij(n)&&Object.prototype.hasOwnProperty.call(n,e)),nE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ey);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},sj=t=>Pl(0,255,t),$g={...jf,transform:t=>Math.round(sj(t))},yc={test:ky("rgb","red"),parse:nE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+$g.transform(t)+", "+$g.transform(e)+", "+$g.transform(n)+", "+bd(Ld.transform(r))+")"};function aj(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Gm={test:ky("#"),parse:aj,transform:yc.transform},vf={test:ky("hsl","hue"),parse:nE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(bd(e))+", "+Ba.transform(bd(n))+", "+bd(Ld.transform(r))+")"},ji={test:t=>yc.test(t)||Gm.test(t)||vf.test(t),parse:t=>yc.test(t)?yc.parse(t):vf.test(t)?vf.parse(t):Gm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yc.transform(t):vf.transform(t)},lj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uj(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ey))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(lj))===null||n===void 0?void 0:n.length)||0)>0}const rE="number",iE="color",cj="var",fj="var(",Bw="${}",dj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Nd(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(dj,f=>(ji.test(f)?(r.color.push(o),i.push(iE),n.push(ji.parse(f))):f.startsWith(fj)?(r.var.push(o),i.push(cj),n.push(f)):(r.number.push(o),i.push(rE),n.push(parseFloat(f))),++o,Bw)).split(Bw);return{values:n,split:c,indexes:r,types:i}}function oE(t){return Nd(t).values}function sE(t){const{split:e,types:n}=Nd(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===rE?o+=bd(i[a]):c===iE?o+=ji.transform(i[a]):o+=i[a]}return o}}const hj=t=>typeof t=="number"?0:t;function pj(t){const e=oE(t);return sE(t)(e.map(hj))}const wu={test:uj,parse:oE,createTransformer:sE,getAnimatableNone:pj},gj=new Set(["brightness","contrast","saturate","opacity"]);function mj(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Ey)||[];if(!r)return t;const i=n.replace(r,"");let o=gj.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const vj=/\b([a-z-]*)\(.*?\)/gu,qm={...wu,getAnimatableNone:t=>{const e=t.match(vj);return e?e.map(mj).join(" "):t}},yj={...cy,color:ji,backgroundColor:ji,outlineColor:ji,fill:ji,stroke:ji,borderColor:ji,borderTopColor:ji,borderRightColor:ji,borderBottomColor:ji,borderLeftColor:ji,filter:qm,WebkitFilter:qm},Dy=t=>yj[t];function aE(t,e){let n=Dy(t);return n!==qm&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const bj=new Set(["auto","none","0"]);function wj(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!bj.has(o)&&Nd(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=aE(n,i)}const $w=t=>t===jf||t===Ot,Vw=(t,e)=>parseFloat(t.split(", ")[e]),Uw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Vw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Vw(o[1],t):0}},xj=new Set(["x","y","z"]),Sj=Nf.filter(t=>!xj.has(t));function Tj(t){const e=[];return Sj.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Rf={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:Uw(4,13),y:Uw(5,14)};Rf.translateX=Rf.x;Rf.translateY=Rf.y;const Cc=new Set;let Xm=!1,Km=!1;function lE(){if(Km){const t=Array.from(Cc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Tj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Km=!1,Xm=!1,Cc.forEach(t=>t.complete()),Cc.clear()}function uE(){Cc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Km=!0)})}function Cj(){uE(),lE()}class Py{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cc.add(this),Xm||(Xm=!0,Fn.read(uE),Fn.resolveKeyframes(lE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const f=r.readValue(n,c);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const cE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ej=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kj(t){const e=Ej.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Dj=4;function fE(t,e,n=1){yu(n<=Dj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=kj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return cE(a)?parseFloat(a):a}return uy(i)?fE(i,e,n+1):i}const dE=t=>e=>e.test(t),Pj={test:t=>t==="auto",parse:t=>t},hE=[jf,Ot,Ba,au,mN,gN,Pj],Hw=t=>hE.find(dE(t));class pE extends Py{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),uy(p))){const y=fE(p,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!WC.has(r)||e.length!==2)return;const[i,o]=e,a=Hw(i),c=Hw(o);if(a!==c)if($w(a)&&$w(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)rj(e[i])&&r.push(i);r.length&&wj(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Rf[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Rf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Ww=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wu.test(t)||t==="0")&&!t.startsWith("url("));function Oj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _j(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Ww(i,e),c=Ww(o,e);return Ff(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Oj(t)||(n==="spring"||vy(n))&&r}const Rj=t=>t!==null;function Fp(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Rj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Aj=40;class gE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$a.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Aj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Cj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$a.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!_j(e,r,i,o))if(a)this.options.duration=0;else{f&&f(Fp(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function Vg(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 Ij({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=Vg(f,c,t+1/3),o=Vg(f,c,t),a=Vg(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function lp(t,e){return n=>n>0?e:t}const Ug=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Mj=[Gm,yc,vf],Lj=t=>Mj.find(e=>e.test(t));function zw(t){const e=Lj(t);if(Ff(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===vf&&(n=Ij(n)),n}const Yw=(t,e)=>{const n=zw(t),r=zw(e);if(!n||!r)return lp(t,e);const i={...n};return o=>(i.red=Ug(n.red,r.red,o),i.green=Ug(n.green,r.green,o),i.blue=Ug(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),yc.transform(i))},Fj=(t,e)=>n=>e(t(n)),Xd=(...t)=>t.reduce(Fj),Zm=new Set(["none","hidden"]);function Nj(t,e){return Zm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function jj(t,e){return n=>Kn(t,e,n)}function Oy(t){return typeof t=="number"?jj:typeof t=="string"?uy(t)?lp:ji.test(t)?Yw:Vj:Array.isArray(t)?mE:typeof t=="object"?ji.test(t)?Yw:Bj:lp}function mE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Oy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Bj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function $j(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const Vj=(t,e)=>{const n=wu.createTransformer(e),r=Nd(t),i=Nd(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Zm.has(t)&&!i.values.length||Zm.has(e)&&!r.values.length?Nj(t,e):Xd(mE($j(r,i),i.values),n):(Ff(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),lp(t,e))};function vE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Oy(t)(t,e)}const Uj=5;function yE(t,e,n){const r=Math.max(e-Uj,0);return zC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Gw=.001;function Hj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Ff(t<=ja(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Pl(Xn.minDamping,Xn.maxDamping,a),t=Pl(Xn.minDuration,Xn.maxDuration,Cl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=Jm(p,a),A=Math.exp(-g);return Gw-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=Jm(Math.pow(p,2),a);return(-i(p)+Gw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=zj(i,o,c);if(t=ja(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const Wj=12;function zj(t,e,n){let r=n;for(let i=1;i<Wj;i++)r=r-t(r)/e(r);return r}function Jm(t,e){return t*Math.sqrt(1-e*e)}const Yj=["duration","bounce"],Gj=["stiffness","damping","mass"];function qw(t,e){return e.some(n=>t[n]!==void 0)}function qj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!qw(t,Gj)&&qw(t,Yj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Hj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function bE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:p,mass:y,duration:g,velocity:T,isResolvedFromDuration:E}=qj({...n,velocity:-Cl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(f*y)),j=a-o,R=Cl(Math.sqrt(f/y)),H=Math.abs(j)<5;r||(r=H?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=H?Xn.restDelta.granular:Xn.restDelta.default);let U;if(I<1){const q=Jm(R,I);U=ie=>{const x=Math.exp(-I*R*ie);return a-x*((A+I*R*j)/q*Math.sin(q*ie)+j*Math.cos(q*ie))}}else if(I===1)U=q=>a-Math.exp(-R*q)*(j+(A+R*j)*q);else{const q=R*Math.sqrt(I*I-1);U=ie=>{const x=Math.exp(-I*R*ie),le=Math.min(q*ie,300);return a-x*((A+I*R*j)*Math.sinh(le)+q*j*Math.cosh(le))/q}}const ne={calculatedDuration:E&&g||null,next:q=>{const ie=U(q);if(E)c.done=q>=g;else{let x=0;I<1&&(x=q===0?ja(A):yE(U,q,ie));const le=Math.abs(x)<=r,ae=Math.abs(a-ie)<=i;c.done=le&&ae}return c.value=c.done?a:ie,c},toString:()=>{const q=Math.min(NC(ne),Wm),ie=jC(x=>ne.next(q*x).value,q,30);return q+"ms "+ie}};return ne}function Xw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const H=le=>-I*Math.exp(-le/r),U=le=>R+H(le),ne=le=>{const ae=H(le),ze=U(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:ze};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=bE({keyframes:[T.value,A(T.value)],velocity:yE(U,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>=q?ie.next(le-q):(!ae&&ne(le),T)}}}const Xj=qd(.42,0,1,1),Kj=qd(0,0,.58,1),wE=qd(.42,0,.58,1),Zj=t=>Array.isArray(t)&&typeof t[0]!="number",Kw={linear:Ro,easeIn:Xj,easeInOut:wE,easeOut:Kj,circIn:Cy,circInOut:eE,circOut:QC,backIn:Ty,backInOut:ZC,backOut:KC,anticipate:JC},Zw=t=>{if(yy(t)){yu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return qd(e,n,r,i)}else if(typeof t=="string")return yu(Kw[t]!==void 0,`Invalid easing type '${t}'`),Kw[t];return t};function Jj(t,e,n){const r=[],i=n||vE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||Ro:e;c=Xd(f,c)}r.push(c)}return r}function Qj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Jj(e,r,i),f=c.length,p=y=>{if(a&&y<t[0])return e[0];let g=0;if(f>1)for(;g<t.length-2&&!(y<t[g+1]);g++);const T=Of(t[g],t[g+1],y);return c[g](T)};return n?y=>p(Pl(t[0],t[o-1],y)):p}function eB(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Of(0,e,r);t.push(Kn(n,1,i))}}function tB(t){const e=[0];return eB(e,t.length-1),e}function nB(t,e){return t.map(n=>n*e)}function rB(t,e){return t.map(()=>e||wE).splice(0,t.length-1)}function up({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Zj(r)?r.map(Zw):Zw(r),o={done:!1,value:e[0]},a=nB(n&&n.length===e.length?n:tB(e),t),c=Qj(a,e,{ease:Array.isArray(i)?i:rB(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const iB=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>bu(e),now:()=>Ei.isProcessing?Ei.timestamp:$a.now()}},oB={decay:Xw,inertia:Xw,tween:up,keyframes:up,spring:bE},sB=t=>t/100;class _y extends gE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Py,c=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=vy(n)?n:oB[n]||up;let f,p;c!==up&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=Xd(sB,vE(e[0],e[1])),e=[0,100]);const y=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=NC(y));const{calculatedDuration:g}=y,T=g+i,E=T*(r+1)-i;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:le}=this.options;return{done:!0,value:le[le.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:y,resolvedDuration:g}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-T*(this.speed>=0?1:-1),H=this.speed>=0?R<0:R>y;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let U=this.currentTime,ne=o;if(E){const le=Math.min(this.currentTime,y)/g;let ae=Math.floor(le),ze=le%1;!ze&&le>=1&&(ze=1),ze===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?(ze=1-ze,I&&(ze-=I/g)):A==="mirror"&&(ne=a)),U=Pl(0,1,ze)*g}const q=H?{done:!1,value:f[0]}:ne.next(U);c&&(q.value=c(q.value));let{done:ie}=q;!H&&p!==null&&(ie=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return x&&i!==void 0&&(q.value=Fp(f,this.options,i)),j&&j(q.value),x&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Cl(e.calculatedDuration):0}get time(){return Cl(this.currentTime)}set time(e){e=ja(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Cl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=iB,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const aB=new Set(["opacity","clipPath","filter","transform"]);function lB(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=$C(c,i);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const uB=ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),cp=10,cB=2e4;function fB(t){return vy(t.type)||t.type==="spring"||!BC(t.ease)}function dB(t,e){const n=new _y({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<cB;)r=n.sample(o),i.push(r.value),o+=cp;return{times:void 0,keyframes:i,duration:o-cp,ease:"linear"}}const xE={anticipate:JC,backInOut:ZC,circInOut:eE};function hB(t){return t in xE}class Jw extends gE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new pE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ap()&&hB(o)&&(o=xE[o]),fB(this.options)){const{onComplete:g,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=dB(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const y=lB(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(Mw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:g}=this.options;c.set(Fp(e,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Cl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Cl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ja(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ro;const{animation:r}=n;Mw(r,e)}return Ro}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:g,element:T,...E}=this.options,A=new _y({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=ja(this.time);p.setWithVelocity(A.sample(I-cp).value,A.sample(I).value,cp)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return uB()&&r&&aB.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const pB={type:"spring",stiffness:500,damping:25,restSpeed:10},gB=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),mB={type:"keyframes",duration:.8},vB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yB=(t,{keyframes:e})=>e.length>2?mB:Rc.has(t)?t.startsWith("scale")?gB(e[1]):pB:vB;function bB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}const Ry=(t,e,n,r={},i,o)=>a=>{const c=my(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ja(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};bB(c)||(y={...y,...yB(t,y)}),y.duration&&(y.duration=ja(y.duration)),y.repeatDelay&&(y.repeatDelay=ja(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let g=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(g=!0)),g&&!o&&e.get()!==void 0){const T=Fp(y.keyframes,c);if(T!==void 0)return Fn.update(()=>{y.onUpdate(T),y.onComplete()}),new jN([])}return!o&&Jw.supports(y)?new Jw(y):new _y(y)};function wB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function SE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in f){const T=t.getValue(g,(o=t.latestValues[g])!==null&&o!==void 0?o:null),E=f[g];if(E===void 0||y&&wB(y,g))continue;const A={delay:n,...my(a||{},g)};let I=!1;if(window.MotionHandoffAnimation){const R=YC(t);if(R){const H=window.MotionHandoffAnimation(R,g,Fn);H!==null&&(A.startTime=H,I=!0)}}Ym(t,g),T.start(Ry(g,T,E,t.shouldReduceMotion&&WC.has(g)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&JN(t,c)})}),p}function Qm(t,e,n={}){var r;const i=Lp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(SE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:g,staggerDirection:T}=o;return xB(t,e,y+p,g,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,y]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>y())}else return Promise.all([a(),c(n.delay)])}function xB(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(SB).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(Qm(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function SB(t,e){return t.sortNodePosition(e)}function TB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Qm(t,e,n);else{const i=typeof e=="function"?Lp(t,e,n.custom):e;r=Promise.all(SE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const CB=iy.length;function TE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?TE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<CB;n++){const r=iy[n],i=t.props[r];(Md(i)||i===!1)&&(e[r]=i)}return e}const EB=[...ry].reverse(),kB=ry.length;function DB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>TB(t,n,r)))}function PB(t){let e=DB(t),n=Qw(),r=!0;const i=f=>(p,y)=>{var g;const T=Lp(t,y,f==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,y=TE(t.parent)||{},g=[],T=new Set;let E={},A=1/0;for(let j=0;j<kB;j++){const R=EB[j],H=n[R],U=p[R]!==void 0?p[R]:y[R],ne=Md(U),q=R===f?H.isActive:null;q===!1&&(A=j);let ie=U===y[R]&&U!==p[R]&&ne;if(ie&&r&&t.manuallyAnimateOnMount&&(ie=!1),H.protectedKeys={...E},!H.isActive&&q===null||!U&&!H.prevProp||Ip(U)||typeof U=="boolean")continue;const x=OB(H.prevProp,U);let le=x||R===f&&H.isActive&&!ie&&ne||j>A&&ne,ae=!1;const ze=Array.isArray(U)?U:[U];let tt=ze.reduce(i(R),{});q===!1&&(tt={});const{prevResolvedValues:Qe={}}=H,et={...Qe,...tt},Ye=Ce=>{le=!0,T.has(Ce)&&(ae=!0,T.delete(Ce)),H.needsAnimating[Ce]=!0;const Oe=t.getValue(Ce);Oe&&(Oe.liveStyle=!1)};for(const Ce in et){const Oe=tt[Ce],Ne=Qe[Ce];if(E.hasOwnProperty(Ce))continue;let me=!1;Hm(Oe)&&Hm(Ne)?me=!FC(Oe,Ne):me=Oe!==Ne,me?Oe!=null?Ye(Ce):T.add(Ce):Oe!==void 0&&T.has(Ce)?Ye(Ce):H.protectedKeys[Ce]=!0}H.prevProp=U,H.prevResolvedValues=tt,H.isActive&&(E={...E,...tt}),r&&t.blockInitialAnimation&&(le=!1),le&&(!(ie&&x)||ae)&&g.push(...ze.map(Ce=>({animation:Ce,options:{type:R}})))}if(T.size){const j={};T.forEach(R=>{const H=t.getBaseTarget(R),U=t.getValue(R);U&&(U.liveStyle=!0),j[R]=H??null}),g.push({animation:j})}let I=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(g):Promise.resolve()}function c(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(f,p)}),n[f].isActive=p;const g=a(f);for(const T in n)n[T].protectedKeys={};return g}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Qw(),r=!0}}}function OB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!FC(e,t):!1}function ac(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qw(){return{animate:ac(!0),whileInView:ac(),whileHover:ac(),whileTap:ac(),whileDrag:ac(),whileFocus:ac(),exit:ac()}}let ku=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},_B=class extends ku{constructor(e){super(e),e.animationState||(e.animationState=PB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ip(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},RB=0,AB=class extends ku{constructor(){super(...arguments),this.id=RB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const IB={animation:{Feature:_B},exit:{Feature:AB}};function jd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Kd(t){return{point:{x:t.pageX,y:t.pageY}}}const MB=t=>e=>by(e)&&t(e,Kd(e));function wd(t,e,n,r){return jd(t,e,MB(n),r)}const ex=(t,e)=>Math.abs(t-e);function LB(t,e){const n=ex(t.x,e.x),r=ex(t.y,e.y);return Math.sqrt(n**2+r**2)}let CE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Wg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=LB(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ei;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Hg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Wg(g.type==="pointercancel"?this.lastMoveEventInfo:Hg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!by(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Kd(e),c=Hg(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ei;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,Wg(c,this.history)),this.removeListeners=Xd(wd(this.contextWindow,"pointermove",this.handlePointerMove),wd(this.contextWindow,"pointerup",this.handlePointerUp),wd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bu(this.updatePoint)}};function Hg(t,e){return e?{point:e(t.point)}:t}function tx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Wg({point:t},e){return{point:t,delta:tx(t,EE(e)),offset:tx(t,FB(e)),velocity:NB(e,.1)}}function FB(t){return t[0]}function EE(t){return t[t.length-1]}function NB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=EE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ja(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const kE=1e-4,jB=1-kE,BB=1+kE,DE=.01,$B=0-DE,VB=0+DE;function ts(t){return t.max-t.min}function UB(t,e,n){return Math.abs(t-e)<=n}function nx(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=ts(n)/ts(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=jB&&t.scale<=BB||isNaN(t.scale))&&(t.scale=1),(t.translate>=$B&&t.translate<=VB||isNaN(t.translate))&&(t.translate=0)}function xd(t,e,n,r){nx(t.x,e.x,n.x,r?r.originX:void 0),nx(t.y,e.y,n.y,r?r.originY:void 0)}function rx(t,e,n){t.min=n.min+e.min,t.max=t.min+ts(e)}function HB(t,e,n){rx(t.x,e.x,n.x),rx(t.y,e.y,n.y)}function ix(t,e,n){t.min=e.min-n.min,t.max=t.min+ts(e)}function Sd(t,e,n){ix(t.x,e.x,n.x),ix(t.y,e.y,n.y)}function WB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function ox(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 zB(t,{top:e,left:n,bottom:r,right:i}){return{x:ox(t.x,n,i),y:ox(t.y,e,r)}}function sx(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 YB(t,e){return{x:sx(t.x,e.x),y:sx(t.y,e.y)}}function GB(t,e){let n=.5;const r=ts(t),i=ts(e);return i>r?n=Of(e.min,e.max-r,t.min):r>i&&(n=Of(t.min,t.max-i,e.min)),Pl(0,1,n)}function qB(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 ev=.35;function XB(t=ev){return t===!1?t=0:t===!0&&(t=ev),{x:ax(t,"left","right"),y:ax(t,"top","bottom")}}function ax(t,e,n){return{min:lx(t,e),max:lx(t,n)}}function lx(t,e){return typeof t=="number"?t:t[e]||0}const ux=()=>({translate:0,scale:1,origin:0,originPoint:0}),yf=()=>({x:ux(),y:ux()}),cx=()=>({min:0,max:0}),gr=()=>({x:cx(),y:cx()});function Os(t){return[t("x"),t("y")]}function PE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function KB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ZB(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 zg(t){return t===void 0||t===1}function tv({scale:t,scaleX:e,scaleY:n}){return!zg(t)||!zg(e)||!zg(n)}function fc(t){return tv(t)||OE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function OE(t){return fx(t.x)||fx(t.y)}function fx(t){return t&&t!=="0%"}function fp(t,e,n){const r=t-n,i=e*r;return n+i}function dx(t,e,n,r,i){return i!==void 0&&(t=fp(t,i,r)),fp(t,n,r)+e}function nv(t,e=0,n=1,r,i){t.min=dx(t.min,e,n,r,i),t.max=dx(t.max,e,n,r,i)}function _E(t,{x:e,y:n}){nv(t.x,e.translate,e.scale,e.originPoint),nv(t.y,n.translate,n.scale,n.originPoint)}const hx=.999999999999,px=1.0000000000001;function JB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&wf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,_E(t,a)),r&&fc(o.latestValues)&&wf(t,o.latestValues))}e.x<px&&e.x>hx&&(e.x=1),e.y<px&&e.y>hx&&(e.y=1)}function bf(t,e){t.min=t.min+e,t.max=t.max+e}function gx(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);nv(t,e,n,o,r)}function wf(t,e){gx(t.x,e.x,e.scaleX,e.scale,e.originX),gx(t.y,e.y,e.scaleY,e.scale,e.originY)}function RE(t,e){return PE(ZB(t.getBoundingClientRect(),e))}function QB(t,e,n){const r=RE(t,n),{scroll:i}=e;return i&&(bf(r.x,i.offset.x),bf(r.y,i.offset.y)),r}const AE=({current:t})=>t?t.ownerDocument.defaultView:null,e$=new WeakMap;let t$=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kd(y).point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Os(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Ba.test(R)){const{projection:H}=this.visualElement;if(H&&H.layout){const U=H.layout.layoutBox[j];U&&(R=ts(U)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Fn.postRender(()=>A(y,g)),Ym(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=n$(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>Os(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new CE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:AE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!kh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=WB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&mf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zB(i.layoutBox,n):this.constraints=!1,this.elastic=XB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Os(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=qB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!mf(e))return!1;const r=e.current;yu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QB(r,i.root,this.visualElement.getTransformPagePoint());let a=YB(i.layout.layoutBox,o);if(n){const c=n(KB(a));this.hasMutatedConstraints=!!c,c&&(a=PE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Os(y=>{if(!kh(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Ym(this.visualElement,e),r.start(Ry(e,r,0,n,this.visualElement,!1))}stopAnimation(){Os(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Os(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Os(n=>{const{drag:r}=this.getProps();if(!kh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Os(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();i[a]=GB({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Os(a=>{if(!kh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;e$.set(this.visualElement,this);const e=this.visualElement.current,n=wd(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();mf(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=jd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Os(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=ev,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function kh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function n$(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let r$=class extends ku{constructor(e){super(e),this.removeGroupControls=Ro,this.removeListeners=Ro,this.controls=new t$(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ro}unmount(){this.removeGroupControls(),this.removeListeners()}};const mx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let i$=class extends ku{constructor(){super(...arguments),this.removePointerDownListener=Ro}onPointerDown(e){this.session=new CE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:mx(e),onStart:mx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=wd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Uh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const sd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=vx(t,e.target.x),r=vx(t,e.target.y);return`${n}% ${r}%`}},o$={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=wu.parse(t);if(i.length>5)return r;const o=wu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let s$=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;kN(a$),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Uh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),sy.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function IE(t){const[e,n]=VF(),r=X.useContext(mC);return be.jsx(s$,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(TC),isPresent:e,safeToRemove:n})}const a$={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:o$};function l$(t,e,n){const r=Bi(t)?t:Fd(t);return r.start(Ry("",r,e,n)),r.animation}function u$(t){return t instanceof SVGElement&&t.tagName!=="svg"}const c$=(t,e)=>t.depth-e.depth;let f$=class{constructor(){this.children=[],this.isDirty=!1}add(e){wy(this.children,e),this.isDirty=!0}remove(e){xy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(c$),this.isDirty=!1,this.children.forEach(e)}};function d$(t,e){const n=$a.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(bu(r),t(o-e))};return Fn.read(r,!0),()=>bu(r)}const ME=["TopLeft","TopRight","BottomLeft","BottomRight"],h$=ME.length,yx=t=>typeof t=="string"?parseFloat(t):t,bx=t=>typeof t=="number"||Ot.test(t);function p$(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,g$(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,m$(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<h$;a++){const c=`border${ME[a]}Radius`;let f=wx(e,c),p=wx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||bx(f)===bx(p)?(t[c]=Math.max(Kn(yx(f),yx(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function wx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const g$=LE(0,.5,QC),m$=LE(.5,.95,Ro);function LE(t,e,n){return r=>r<t?0:r>e?1:n(Of(t,e,r))}function xx(t,e){t.min=e.min,t.max=e.max}function Es(t,e){xx(t.x,e.x),xx(t.y,e.y)}function Sx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Tx(t,e,n,r,i){return t-=e,t=fp(t,1/n,r),i!==void 0&&(t=fp(t,1/i,r)),t}function v$(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=Tx(t.min,e,n,c,i),t.max=Tx(t.max,e,n,c,i)}function Cx(t,e,[n,r,i],o,a){v$(t,e[n],e[r],e[i],e.scale,o,a)}const y$=["x","scaleX","originX"],b$=["y","scaleY","originY"];function Ex(t,e,n,r){Cx(t.x,e,y$,n?n.x:void 0,r?r.x:void 0),Cx(t.y,e,b$,n?n.y:void 0,r?r.y:void 0)}function kx(t){return t.translate===0&&t.scale===1}function FE(t){return kx(t.x)&&kx(t.y)}function Dx(t,e){return t.min===e.min&&t.max===e.max}function w$(t,e){return Dx(t.x,e.x)&&Dx(t.y,e.y)}function Px(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function NE(t,e){return Px(t.x,e.x)&&Px(t.y,e.y)}function Ox(t){return ts(t.x)/ts(t.y)}function _x(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let x$=class{constructor(){this.members=[]}add(e){wy(this.members,e),e.scheduleRender()}remove(e){if(xy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function S$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:g,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const dc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},hd=typeof window<"u"&&window.MotionDebug!==void 0,Yg=["","X","Y","Z"],T$={visibility:"hidden"},Rx=1e3;let C$=0;function Gg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function jE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=YC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&jE(r)}function BE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=C$++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hd&&(dc.totalNodes=dc.resolvedTargetDeltas=dc.recalculatedProjection=0),this.nodes.forEach(D$),this.nodes.forEach(A$),this.nodes.forEach(I$),this.nodes.forEach(P$),hd&&window.MotionDebug.record(dc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new f$)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Sy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=u$(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=d$(T,250),Uh.hasAnimatedSinceResize&&(Uh.hasAnimatedSinceResize=!1,this.nodes.forEach(Ix))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||j$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),H=!this.targetLayout||!NE(this.targetLayout,A)||E,U=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const ne={...my(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||Ix(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bu(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(M$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ax);return}this.isUpdating||this.nodes.forEach(_$),this.isUpdating=!1,this.nodes.forEach(R$),this.nodes.forEach(E$),this.nodes.forEach(k$),this.clearAllSnapshots();const c=$a.now();Ei.delta=Pl(0,1e3/60,c-Ei.timestamp),Ei.timestamp=c,Ei.isProcessing=!0,jg.update.process(Ei),jg.preRender.process(Ei),jg.render.process(Ei),Ei.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(O$),this.sharedNodes.forEach(L$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!FE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||fc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),B$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some($$))){const{scroll:y}=this.root;y&&(bf(f.x,y.offset.x),bf(f.y,y.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(Es(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:g,options:T}=y;y!==this.root&&g&&T.layoutScroll&&(g.wasRoot&&Es(f,a),bf(f.x,g.offset.x),bf(f.y,g.offset.y))}return f}applyTransform(a,c=!1){const f=gr();Es(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&wf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fc(y.latestValues)&&wf(f,y.latestValues)}return fc(this.latestValues)&&wf(f,this.latestValues),f}removeTransform(a){const c=gr();Es(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!fc(p.latestValues))continue;tv(p.latestValues)&&p.updateSnapshot();const y=gr(),g=p.measurePageBox();Es(y,g),Ex(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fc(this.latestValues)&&Ex(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Ei.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ei.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),Sd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),_E(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),Sd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hd&&dc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||tv(this.parent.latestValues)||OE(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 a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ei.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;JB(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sx(this.prevProjectionDelta.x,this.projectionDelta.x),Sx(this.prevProjectionDelta.y,this.projectionDelta.y)),xd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!_x(this.projectionDelta.x,this.prevProjectionDelta.x)||!_x(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),hd&&dc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yf(),this.projectionDelta=yf(),this.projectionDeltaWithTransform=yf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=yf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,H=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(N$));this.animationProgress=0;let U;this.mixTargetDelta=ne=>{const q=ne/1e3;Mx(g.x,a.x,q),Mx(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F$(this.relativeTarget,this.relativeTargetOrigin,T,q),U&&w$(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=gr()),Es(U,this.relativeTarget)),I&&(this.animationValues=y,p$(y,p,this.latestValues,q,H,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Uh.hasAnimatedSinceResize=!0,this.currentAnimation=l$(0,Rx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Rx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&$E(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const g=ts(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=ts(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Es(c,f),wf(c,y),xd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Gg("z",a,p,this.animationValues);for(let y=0;y<Yg.length;y++)Gg(`rotate${Yg[y]}`,a,p,this.animationValues),Gg(`skew${Yg[y]}`,a,p,this.animationValues);a.render();for(const y in p)a.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return T$;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=$h(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=$h(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=S$(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in sp){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=sp[I],H=p.transform==="none"?T[I]:j(T[I],g);if(R){const U=R.length;for(let ne=0;ne<U;ne++)p[R[ne]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?$h(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ax),this.root.sharedNodes.clear()}}}function E$(t){t.updateLayout()}function k$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Os(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ts(T);T.min=r[g].min,T.max=T.min+E}):$E(o,n.layoutBox,r)&&Os(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ts(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=yf();xd(c,r,n.layoutBox);const f=yf();a?xd(f,t.applyTransform(i,!0),n.measuredBox):xd(f,r,n.layoutBox);const p=!FE(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=gr();Sd(A,n.layoutBox,T.layoutBox);const I=gr();Sd(I,r,E.layoutBox),NE(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function D$(t){hd&&dc.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 P$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function O$(t){t.clearSnapshot()}function Ax(t){t.clearMeasurements()}function _$(t){t.isLayoutDirty=!1}function R$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ix(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function A$(t){t.resolveTargetDelta()}function I$(t){t.calcProjection()}function M$(t){t.resetSkewAndRotation()}function L$(t){t.removeLeadSnapshot()}function Mx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Lx(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function F$(t,e,n,r){Lx(t.x,e.x,n.x,r),Lx(t.y,e.y,n.y,r)}function N$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const j$={duration:.45,ease:[.4,0,.1,1]},Fx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Nx=Fx("applewebkit/")&&!Fx("chrome/")?Math.round:Ro;function jx(t){t.min=Nx(t.min),t.max=Nx(t.max)}function B$(t){jx(t.x),jx(t.y)}function $E(t,e,n){return t==="position"||t==="preserve-aspect"&&!UB(Ox(e),Ox(n),.2)}function $$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const V$=BE({attachResizeListener:(t,e)=>jd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qg={current:void 0},VE=BE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qg.current){const t=new V$({});t.mount(window),t.setOptions({layoutScroll:!0}),qg.current=t}return qg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),U$={pan:{Feature:i$},drag:{Feature:r$,ProjectionNode:VE,MeasureLayout:IE}};function Bx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,Kd(e)))}let H$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=UN(e,n=>(Bx(this.node,n,"Start"),r=>Bx(this.node,r,"End"))))}unmount(){}},W$=class extends ku{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=Xd(jd(this.node.current,"focus",()=>this.onFocus()),jd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function $x(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,Kd(e)))}let z$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=YN(e,n=>($x(this.node,n,"Start"),(r,{success:i})=>$x(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const rv=new WeakMap,Xg=new WeakMap,Y$=t=>{const e=rv.get(t.target);e&&e(t)},G$=t=>{t.forEach(Y$)};function q$({root:t,...e}){const n=t||document;Xg.has(n)||Xg.set(n,{});const r=Xg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(G$,{root:t,...e})),r[i]}function X$(t,e,n){const r=q$(e);return rv.set(t,n),r.observe(t),()=>{rv.delete(t),r.unobserve(t)}}const K$={some:0,all:1};let Z$=class extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:K$[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return X$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(J$(e,n))&&this.startObserver()}unmount(){}};function J$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Q$={inView:{Feature:Z$},tap:{Feature:z$},focus:{Feature:W$},hover:{Feature:H$}},eV={layout:{ProjectionNode:VE,MeasureLayout:IE}},iv={current:null},UE={current:!1};function tV(){if(UE.current=!0,!!ty)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iv.current=t.matches;t.addListener(e),e()}else iv.current=!1}const nV=[...hE,ji,wu],rV=t=>nV.find(dE(t)),Vx=new WeakMap;function iV(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Bi(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Rp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(Bi(o))t.addValue(r,Fd(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Fd(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ux=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oV=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Py,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.renderScheduledAt=0,this.scheduleRender=()=>{const E=$a.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:y}=a;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Mp(n),this.isVariantNode=xC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];f[E]!==void 0&&Bi(A)&&A.set(f[E],!1)}}mount(e){this.current=e,Vx.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)),UE.current||tV(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iv.current,process.env.NODE_ENV!=="production"&&Rp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Vx.delete(this.current),this.projection&&this.projection.unmount(),bu(this.notifyUpdate),bu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),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){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Rc.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in _f){const n=_f[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=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<Ux.length;r++){const i=Ux[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=iV(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&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=Fd(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(cE(i)||tE(i))?i=parseFloat(i):!rV(i)&&wu.test(n)&&(i=aE(e,n)),this.setBaseTarget(e,Bi(i)?i.get():i)),Bi(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ly(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Bi(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},HE=class extends oV{constructor(){super(...arguments),this.KeyframeResolver=pE}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Bi(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function sV(t){return window.getComputedStyle(t)}let aV=class extends HE{constructor(){super(...arguments),this.type="html",this.renderInstance=_C}readValueFromInstance(e,n){if(Rc.has(n)){const r=Dy(n);return r&&r.default||0}else{const r=sV(e),i=(DC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return RE(e,n)}build(e,n,r){fy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return gy(e,n,r)}},lV=class extends HE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=Dy(n);return r&&r.default||0}return n=RC.has(n)?n:oy(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return MC(e,n,r)}build(e,n,r){dy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){AC(e,n,r,i)}mount(e){this.isSVGTag=py(e.tagName),super.mount(e)}};const uV=(t,e)=>ay(t)?new lV(e):new aV(e,{allowProjection:t!==X.Fragment}),cV=LN({...IB,...Q$,...U$,...eV},uV),fV=KF(cV);function ov(t,e,n){var r,i,o,a,c;e==null&&(e=100);function f(){var y=Date.now()-a;y<e&&y>=0?r=setTimeout(f,e-y):(r=null,n||(c=t.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,a=Date.now();var y=n&&!r;return r||(r=setTimeout(f,e)),y&&(c=t.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}ov.debounce=ov;var dV=ov;const Hx=Eu(dV);function hV(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,c]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=e?typeof e=="number"?e:e.scroll:null,y=e?typeof e=="number"?e:e.resize:null,g=X.useRef(!1);X.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[T,E,A]=X.useMemo(()=>{const H=()=>{if(!f.current.element)return;const{left:U,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:ze}=f.current.element.getBoundingClientRect(),tt={left:U,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:ze};f.current.element instanceof HTMLElement&&i&&(tt.height=f.current.element.offsetHeight,tt.width=f.current.element.offsetWidth),Object.freeze(tt),g.current&&!vV(f.current.lastBounds,tt)&&c(f.current.lastBounds=tt)};return[H,y?Hx(H,y):H,p?Hx(H,p):H]},[c,i,p,y]);function I(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(H=>H.removeEventListener("scroll",A,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function j(){f.current.element&&(f.current.resizeObserver=new o(A),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(H=>H.addEventListener("scroll",A,{capture:!0,passive:!0})))}const R=H=>{!H||H===f.current.element||(I(),f.current.element=H,f.current.scrollContainers=WE(H),j())};return gV(A,!!n),pV(E),X.useEffect(()=>{I(),j()},[n,A,E]),X.useEffect(()=>I,[]),[R,a,T]}function pV(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function gV(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function WE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...WE(t.parentElement)]}const mV=["x","y","top","bottom","left","right","width","height"],vV=(t,e)=>mV.every(n=>t[n]===e[n]),zE=X.createContext({dragDropManager:void 0});function ks(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Wx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yx={INIT:"@@redux/INIT"+zx(),REPLACE:"@@redux/REPLACE"+zx()};function yV(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function bV(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(SV(t))return"date";if(xV(t))return"error";var n=wV(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function wV(t){return typeof t.constructor=="function"?t.constructor.name:null}function xV(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function SV(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function cf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=bV(t)),e}function YE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ks(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ks(1):"Expected the enhancer to be a function. Instead, received: '"+cf(n)+"'");return n(YE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ks(2):"Expected the root reducer to be a function. Instead, received: '"+cf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?ks(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(4):"Expected the listener to be a function. Instead, received: '"+cf(I)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?ks(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(f)throw new Error(process.env.NODE_ENV==="production"?ks(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var H=c.indexOf(I);c.splice(H,1),a=null}}}function T(I){if(!yV(I))throw new Error(process.env.NODE_ENV==="production"?ks(7):"Actions must be plain objects. Instead, the actual type was: '"+cf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?ks(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?ks(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var j=a=c,R=0;R<j.length;R++){var H=j[R];H()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(10):"Expected the nextReducer to be a function. Instead, received: '"+cf(I));i=I,T({type:Yx.REPLACE})}function A(){var I,j=g;return I={subscribe:function(H){if(typeof H!="object"||H===null)throw new Error(process.env.NODE_ENV==="production"?ks(11):"Expected the observer to be an object. Instead, received: '"+cf(H)+"'");function U(){H.next&&H.next(y())}U();var ne=j(U);return{unsubscribe:ne}}},I[Wx]=function(){return this},I}return T({type:Yx.INIT}),r={dispatch:T,subscribe:g,getState:y,replaceReducer:E},r[Wx]=A,r}function Ht(t,e,...n){if(TV()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function TV(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function CV(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function EV(t,e){return t.filter(n=>n!==e)}function GE(t){return typeof t=="object"}function kV(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function DV(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ay="dnd-core/INIT_COORDS",Np="dnd-core/BEGIN_DRAG",Iy="dnd-core/PUBLISH_DRAG_SOURCE",jp="dnd-core/HOVER",Bp="dnd-core/DROP",$p="dnd-core/END_DRAG";function Gx(t,e){return{type:Ay,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const PV={type:Ay,payload:{clientOffset:null,sourceClientOffset:null}};function OV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Gx(o)),_V(n,c,f);const p=IV(n,c);if(p==null){t.dispatch(PV);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");RV(a),y=a(p)}t.dispatch(Gx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;AV(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Np,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function _V(t,e,n){Ht(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ht(n.getSource(r),"Expected sourceIds to be registered.")})}function RV(t){Ht(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function AV(t){Ht(GE(t),"Item must be an object.")}function IV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function MV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MV(t,i,n[i])})}return t}function FV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();NV(r),$V(r).forEach((a,c)=>{const f=jV(a,c,i,r),p={type:Bp,payload:{dropResult:LV({},n,f)}};t.dispatch(p)})}}function NV(t){Ht(t.isDragging(),"Cannot call drop while not dragging."),Ht(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function jV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return BV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function BV(t){Ht(typeof t>"u"||GE(t),"Drop result must either be an object or undefined.")}function $V(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function VV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();UV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:$p}}}function UV(t){Ht(t.isDragging(),"Cannot call endDrag while not dragging.")}function sv(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function HV(t){return function(n,{clientOffset:r}={}){WV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return YV(i,a,c),zV(i,o,a),GV(i,o,a),{type:jp,payload:{targetIds:i,clientOffset:r||null}}}}function WV(t){Ht(Array.isArray(t),"Expected targetIds to be an array.")}function zV(t,e,n){Ht(e.isDragging(),"Cannot call hover while not dragging."),Ht(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ht(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ht(o,"Expected targetIds to be registered.")}}function YV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);sv(o,n)||t.splice(r,1)}}function GV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function qV(t){return function(){if(t.getMonitor().isDragging())return{type:Iy}}}function XV(t){return{beginDrag:OV(t),publishDragSource:qV(t),hover:HV(t),drop:FV(t),endDrag:VV(t)}}class KV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=XV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function ZV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function qE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function JV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:qE(ZV(e,r),n)}function QV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:qE(e,n)}const Td=[],My=[];Td.__IS_NONE__=!0;My.__IS_ALL__=!0;function e3(t,e){return t===Td?!1:t===My||typeof e>"u"?!0:DV(e,t).length>0}class t3{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ht(typeof e=="function","listener must be a function."),Ht(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!e3(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ht(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ht(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ht(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return sv(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ht(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!sv(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return JV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const qx=typeof global<"u"?global:self,XE=qx.MutationObserver||qx.WebKitMutationObserver;function KE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function n3(t){let e=1;const n=new XE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const r3=typeof XE=="function"?n3:KE;class i3{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=r3(this.flush),this.requestErrorThrow=KE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class o3{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class s3{create(e){const n=this.freeTasks,r=n.length?n.pop():new o3(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const ZE=new i3,a3=new s3(ZE.registerPendingError);function l3(t){ZE.enqueueTask(a3.create(t))}const Ly="dnd-core/ADD_SOURCE",Fy="dnd-core/ADD_TARGET",Ny="dnd-core/REMOVE_SOURCE",Vp="dnd-core/REMOVE_TARGET";function u3(t){return{type:Ly,payload:{sourceId:t}}}function c3(t){return{type:Fy,payload:{targetId:t}}}function f3(t){return{type:Ny,payload:{sourceId:t}}}function d3(t){return{type:Vp,payload:{targetId:t}}}function h3(t){Ht(typeof t.canDrag=="function","Expected canDrag to be a function."),Ht(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ht(typeof t.endDrag=="function","Expected endDrag to be a function.")}function p3(t){Ht(typeof t.canDrop=="function","Expected canDrop to be a function."),Ht(typeof t.hover=="function","Expected hover to be a function."),Ht(typeof t.drop=="function","Expected beginDrag to be a function.")}function av(t,e){if(e&&Array.isArray(t)){t.forEach(n=>av(n,!1));return}Ht(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Rs;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Rs||(Rs={}));let g3=0;function m3(){return g3++}function v3(t){const e=m3().toString();switch(t){case Rs.SOURCE:return`S${e}`;case Rs.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Xx(t){switch(t[0]){case"S":return Rs.SOURCE;case"T":return Rs.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Kx(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class y3{addSource(e,n){av(e),h3(n);const r=this.addHandler(Rs.SOURCE,e,n);return this.store.dispatch(u3(r)),r}addTarget(e,n){av(e,!0),p3(n);const r=this.addHandler(Rs.TARGET,e,n);return this.store.dispatch(c3(r)),r}containsHandler(e){return Kx(this.dragSources,e)||Kx(this.dropTargets,e)}getSource(e,n=!1){return Ht(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ht(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Xx(e)===Rs.SOURCE}isTargetId(e){return Xx(e)===Rs.TARGET}removeSource(e){Ht(this.getSource(e),"Expected an existing source."),this.store.dispatch(f3(e)),l3(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ht(this.getTarget(e),"Expected an existing target."),this.store.dispatch(d3(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ht(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ht(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=v3(e);return this.types.set(i,n),e===Rs.SOURCE?this.dragSources.set(i,r):e===Rs.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const b3=(t,e)=>t===e;function w3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function x3(t,e,n=b3){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function S3(t=Td,e){switch(e.type){case jp:break;case Ly:case Fy:case Vp:case Ny:return Td;case Np:case Iy:case $p:case Bp:default:return My}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=kV(n,r);if(!(i.length>0||!x3(n,r)))return Td;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function T3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){T3(t,i,n[i])})}return t}const Zx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function E3(t=Zx,e){const{payload:n}=e;switch(e.type){case Ay:case Np:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case jp:return w3(t.clientOffset,n.clientOffset)?t:C3({},t,{clientOffset:n.clientOffset});case $p:case Bp:return Zx;default:return t}}function k3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){k3(t,i,n[i])})}return t}const D3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function P3(t=D3,e){const{payload:n}=e;switch(e.type){case Np:return ff({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Iy:return ff({},t,{isSourcePublic:!0});case jp:return ff({},t,{targetIds:n.targetIds});case Vp:return t.targetIds.indexOf(n.targetId)===-1?t:ff({},t,{targetIds:EV(t.targetIds,n.targetId)});case Bp:return ff({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case $p:return ff({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function O3(t=0,e){switch(e.type){case Ly:case Fy:return t+1;case Ny:case Vp:return t-1;default:return t}}function _3(t=0){return t+1}function R3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){R3(t,i,n[i])})}return t}function I3(t={},e){return{dirtyHandlerIds:S3(t.dirtyHandlerIds,{type:e.type,payload:A3({},e.payload,{prevTargetIds:CV(t,"dragOperation.targetIds",[])})}),dragOffset:E3(t.dragOffset,e),refCount:O3(t.refCount,e),dragOperation:P3(t.dragOperation,e),stateId:_3(t.stateId)}}function M3(t,e=void 0,n={},r=!1){const i=L3(r),o=new t3(i,new y3(i)),a=new KV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function L3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return YE(I3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function F3(t,e){if(t==null)return{};var n=N3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function N3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Jx=0;const Hh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var JE=X.memo(function(e){var{children:n}=e,r=F3(e,["children"]);const[i,o]=j3(r);return X.useEffect(()=>{if(o){const a=QE();return++Jx,()=>{--Jx===0&&(a[Hh]=null)}}},[]),be.jsx(zE.Provider,{value:i,children:n})});function j3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=B3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function B3(t,e=QE(),n,r){const i=e;return i[Hh]||(i[Hh]={dragDropManager:M3(t,e,n,r)}),i[Hh]}function QE(){return typeof global<"u"?global:window}var $3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const V3=Eu($3),kc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function ek(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);V3(r,a)||(i(a),n&&n())},[r,t,n]);return kc(o),[r,o]}function U3(t,e,n){const[r,i]=ek(t,e,n);return kc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function tk(t,e,n){return U3(e,t||(()=>({})),()=>n.reconnect())}function nk(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function H3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function W3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Kg=!1,Zg=!1;class z3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ht(!Kg,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Kg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Kg=!1}}isDragging(){if(!this.sourceId)return!1;Ht(!Zg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Zg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Jg=!1;class Y3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ht(!Jg,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Jg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Jg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function G3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function q3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function lv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=t[p],g=e[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function uv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function X3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function K3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return X3(r),Z3(r,n?o=>t(o,n):t)}}function rk(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=K3(r);e[n]=()=>i}}),e}function Qx(t,e){typeof t=="function"?t(e):t.current=e}function Z3(t,e){const n=t.ref;return Ht(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Qx(n,r),Qx(e,r)}}):X.cloneElement(t,{ref:e})}class J3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!lv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!lv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=rk({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,uv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,uv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Q3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!lv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=rk({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,uv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rl(){const{dragDropManager:t}=X.useContext(zE);return Ht(t!=null,"Expected drag drop context"),t}function eU(t,e){const n=Rl(),r=X.useMemo(()=>new J3(n.getBackend()),[n]);return kc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),kc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function tU(){const t=Rl();return X.useMemo(()=>new z3(t),[t])}class nU{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function rU(t,e,n){const r=X.useMemo(()=>new nU(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function iU(t){return X.useMemo(()=>{const e=t.type;return Ht(e!=null,"spec.type must be defined"),e},[t])}function oU(t,e,n){const r=Rl(),i=rU(t,e,n),o=iU(t);kc(function(){if(o!=null){const[c,f]=q3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function ik(t,e){const n=nk(t,e);Ht(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=tU(),i=eU(n.options,n.previewOptions);return oU(n,r,i),[tk(n.collect,r,i),H3(i),W3(i)]}function sU(t){const n=Rl().getMonitor(),[r,i]=ek(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function aU(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function lU(t){const e=Rl(),n=X.useMemo(()=>new Q3(e.getBackend()),[e]);return kc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function uU(){const t=Rl();return X.useMemo(()=>new Y3(t),[t])}function cU(t){const{accept:e}=t;return X.useMemo(()=>(Ht(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class fU{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function dU(t,e){const n=X.useMemo(()=>new fU(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function hU(t,e,n){const r=Rl(),i=dU(t,e),o=cU(t);kc(function(){const[c,f]=G3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function dp(t,e){const n=nk(t,e),r=uU(),i=lU(n.options);return hU(n,r,i),[tk(n.collect,r,i),aU(i)]}var ok=t=>{throw TypeError(t)},sk=(t,e,n)=>e.has(t)||ok("Cannot "+n),Nt=(t,e,n)=>(sk(t,e,"read from private field"),n?n.call(t):e.get(t)),Ps=(t,e,n)=>e.has(t)?ok("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hc=(t,e,n,r)=>(sk(t,e,"write to private field"),e.set(t,n),n),lu,pU=class{constructor(){Ps(this,lu),this.register=t=>{Nt(this,lu).push(t)},this.unregister=t=>{for(;Nt(this,lu).indexOf(t)!==-1;)Nt(this,lu).splice(Nt(this,lu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,lu))e.backendChanged(t)},hc(this,lu,[])}};lu=new WeakMap;var Xo,pd,Ko,yl,pc,cv,fv,dv,Wh,zh,gd,ak=class Yh{constructor(e,n,r){if(Ps(this,Xo),Ps(this,pd),Ps(this,Ko),Ps(this,yl),Ps(this,pc),Ps(this,cv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
1
+ var N7=require("./index.css");const be=require("react/jsx-runtime"),X=require("react"),Vv=require("axios"),Od=require("react-query"),aa=require("@mui/material"),_d=require("react-router-dom");require("@r2wc/react-to-web-component");const Rm=require("moment"),Uv=require("react-dom");function vI(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function yI(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=vI(X);function Qo(t){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qo(t)}function rs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bI(t,e){if(Qo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function nT(t){var e=bI(t,"string");return Qo(e)=="symbol"?e:e+""}function p0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nT(r.key),r)}}function is(t,e,n){return e&&p0(t.prototype,e),n&&p0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jh(t,e){return Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Jh(t,e)}function kp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jh(t,e)}function Yd(t,e){if(e&&(Qo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sl(t)}function Ua(t){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ua(t)}function Ha(t,e,n){return(e=nT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rT(t){if(Array.isArray(t))return t}function wI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function iT(t,e){if(t){if(typeof t=="string")return g0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g0(t,e):void 0}}function oT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xI(t){return rT(t)||wI(t)||iT(t)||oT()}function m0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function v0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var SI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},TI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||SI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,v0(v0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Na=new TI,vu=function(){function t(){rs(this,t),this.observers={}}return is(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(f){f.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),t}();function td(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function y0(t){return t==null?"":""+t}function CI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Hv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function b0(t,e,n){var r=Hv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function EI(t,e,n,r){var i=Hv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Qh(t,e){var n=Hv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function kI(t,e,n){var r=Qh(t,n);return r!==void 0?r:Qh(e,n)}function sT(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):sT(t[r],e[r],n):t[r]=e[r]);return t}function lf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var DI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function PI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return DI[e]}):t}var Dp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,OI=[" ",",","?","!",";"];function _I(t,e,n){e=e||"",n=n||"";var r=OI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function ep(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),f=i[c];f===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(e.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+a).join(n);return p?ep(f,p,n):void 0}i=i[r[o]]}return i}}function w0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?w0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function RI(t){var e=AI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function AI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var II=function(t){kp(n,t);var e=RI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return rs(this,n),i=e.call(this),Dp&&vu.call(Sl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return is(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];a&&typeof a!="string"&&(y=y.concat(a)),a&&typeof a=="string"&&(y=y.concat(f?a.split(f):a)),i.indexOf(".")>-1&&(y=i.split("."));var g=Qh(this.data,y);return g||!p||typeof a!="string"?g:ep(this.data&&this.data[i]&&this.data[i][o],a,f)}},{key:"addResource",value:function(i,o,a,c){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=[i,o];a&&(y=y.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(y=i.split("."),c=o,o=y[1]),this.addNamespaces(o),b0(this.data,y,c),f.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in a)(typeof a[f]=="string"||Object.prototype.toString.apply(a[f])==="[object Array]")&&this.addResource(i,o,f,a[f],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),c=a,a=o,o=y[1]),this.addNamespaces(o);var g=Qh(this.data,y)||{};c?sT(g,a,f):g=gh(gh({},g),a),b0(this.data,y,g),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?gh(gh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(vu),aT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function MI(t){var e=LI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function LI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S0={},T0=function(t){kp(n,t);var e=MI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return rs(this,n),i=e.call(this),Dp&&vu.call(Sl(i)),CI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Sl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Na.create("translator"),i}return is(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!_I(i,a,c);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(f=T.shift()),i=T.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,a){var c=this;if(Qo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Qo(o)==="object"&&(o=Fi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),g=y.key,T=y.namespaces,E=T[T.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var j=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(E).concat(j).concat(g),usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:g}var R=this.resolve(i,o),H=R&&R.res,U=R&&R.usedKey||g,ne=R&&R.exactUsedKey||g,q=Object.prototype.toString.apply(H),ie=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,le=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof H!="string"&&typeof H!="boolean"&&typeof H!="number";if(le&&H&&ae&&ie.indexOf(q)<0&&!(typeof x=="string"&&q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,H,Fi(Fi({},o),{},{ns:T})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=ze,R):ze}if(p){var tt=q==="[object Array]",Qe=tt?[]:{},et=tt?ne:U;for(var Ye in H)if(Object.prototype.hasOwnProperty.call(H,Ye)){var pe="".concat(et).concat(p).concat(Ye);Qe[Ye]=this.translate(pe,Fi(Fi({},o),{joinArrays:!1,ns:T})),Qe[Ye]===pe&&(Qe[Ye]=H[Ye])}H=Qe}}else if(le&&typeof x=="string"&&q==="[object Array]")H=H.join(x),H&&(H=this.extendTranslation(H,i,o,a));else{var fe=!1,Ce=!1,Oe=o.count!==void 0&&typeof o.count!="string",Ne=n.hasDefaultValue(o),me=Oe?this.pluralResolver.getSuffix(A,o.count,o):"",Te=o["defaultValue".concat(me)]||o.defaultValue;!this.isValidLookup(H)&&Ne&&(fe=!0,H=Te),this.isValidLookup(H)||(Ce=!0,H=g);var Le=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,He=Le&&Ce?void 0:H,je=Ne&&Te!==H&&this.options.updateMissing;if(Ce||fe||je){if(this.logger.log(je?"updateKey":"missingKey",A,E,g,je?Te:H),p){var Fe=this.resolve(g,Fi(Fi({},o),{},{keySeparator:!1}));Fe&&Fe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Ve=[],nt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&nt&&nt[0])for(var ct=0;ct<nt.length;ct++)Ve.push(nt[ct]);else this.options.saveMissingTo==="all"?Ve=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ve.push(o.lng||this.language);var pt=function(yt,Je,At){var Mt=Ne&&At!==H?At:He;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Je,Mt,je,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Je,Mt,je,o),c.emit("missingKey",yt,E,Je,H)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Oe?Ve.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],g+yt,o["defaultValue".concat(yt)]||Te)})}):pt(Ve,g,Te))}H=this.extendTranslation(H,i,o,R,a),Ce&&H===g&&this.options.appendNamespaceToMissingKey&&(H="".concat(E,":").concat(g)),(Ce||fe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(g):g,fe?H:void 0):H=this.options.parseMissingKeyHandler(H))}return f?(R.res=H,R):H}},{key:"extendTranslation",value:function(i,o,a,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Fi(Fi({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Fi(Fi({},a),{interpolation:Fi(Fi({},this.options.interpolation),a.interpolation)}));var y=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(y){var T=i.match(this.interpolator.nestingRegexp);g=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Fi(Fi({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),y){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;g<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var H=arguments.length,U=new Array(H),ne=0;ne<H;ne++)U[ne]=arguments[ne];return f&&f[0]===U[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var j=a.postProcess||this.options.postProcess,R=typeof j=="string"?[j]:j;return i!=null&&R&&R.length&&a.applyPostProcessor!==!1&&(i=aT.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Fi({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;f=A;var I=E.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var j=a.count!==void 0&&typeof a.count!="string",R=j&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),H=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",U=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(ne){o.isValidLookup(c)||(g=ne,!S0["".concat(U[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(S0["".concat(U[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(U.join(", "),`" won't get resolved as namespace "`).concat(g,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),U.forEach(function(q){if(!o.isValidLookup(c)){y=q;var ie=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ie,A,q,ne,a);else{var x;j&&(x=o.pluralResolver.getSuffix(q,a.count,a));var le="".concat(o.options.pluralSeparator,"zero");if(j&&(ie.push(A+x),R&&ie.push(A+le)),H){var ae="".concat(A).concat(o.options.contextSeparator).concat(a.context);ie.push(ae),j&&(ie.push(ae+x),R&&ie.push(ae+le))}}for(var ze;ze=ie.pop();)o.isValidLookup(c)||(p=ze,c=o.getResource(q,ne,ze,a))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:y,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(vu);function Eg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var C0=function(){function t(e){rs(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}return is(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Eg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Eg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Eg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(f){a.indexOf(f)<0&&c(i.formatLanguageCode(f))}),a}}]),t}(),FI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],NI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},jI=["v1","v2","v3"],E0={zero:0,one:1,two:2,few:3,many:4,other:5};function BI(){var t={};return FI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:NI[e.fc]}})}),t}var $I=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.languageUtils=e,this.options=n,this.logger=Na.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=BI()}return is(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return E0[a]-E0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!jI.includes(this.options.compatibilityJSON)}}]),t}();function k0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?k0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function D0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=kI(t,e,n);return!o&&i&&typeof n=="string"&&(o=ep(t,n,r),o===void 0&&(o=ep(e,n,r))),o}var VI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rs(this,t),this.logger=Na.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return is(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:PI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?lf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?lf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?lf(r.nestingPrefix):r.nestingPrefixEscaped||lf("$t("),this.nestingSuffix=r.nestingSuffix?lf(r.nestingSuffix):r.nestingSuffixEscaped||lf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(j){return j.replace(/\$/g,"$$$$")}var T=function(R){if(R.indexOf(a.formatSeparator)<0){var H=D0(r,y,R,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(H,void 0,i,oa(oa(oa({},o),r),{},{interpolationkey:R})):H}var U=R.split(a.formatSeparator),ne=U.shift().trim(),q=U.join(a.formatSeparator).trim();return a.format(D0(r,y,ne,a.options.keySeparator,a.options.ignoreJSONStructure),q,i,oa(oa(oa({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,A=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return a.escapeValue?g(a.escape(R)):g(R)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var R=c[1].trim();if(f=T(R),f===void 0)if(typeof E=="function"){var H=E(n,c,o);f=typeof H=="string"?H:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(A){f=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!a.useRawValueToEscape&&(f=y0(f));var U=j.safeValue(f);if(n=n.replace(c[0],U),A?(j.regex.lastIndex+=f.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,f;function p(E,A){var I=this.nestingOptionsSeparator;if(E.indexOf(I)<0)return E;var j=E.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(j[1]);E=j[0],R=this.interpolate(R,f);var H=R.match(/'/g),U=R.match(/"/g);(H&&H.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),A&&(f=oa(oa({},A),f))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),ne),"".concat(E).concat(I).concat(R)}return delete f.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var y=[];f=oa({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),y=T,g=!0}if(c=r(p.call(this,a[1].trim(),f),f),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=y0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),g&&(c=y.reduce(function(E,A){return i.format(E,A,o.lng,oa(oa({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function P0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),f=xI(c),p=f[0],y=f.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:e,formatOptions:n}}function uf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var HI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rs(this,t),this.logger=Na.create("formatter"),this.options=e,this.formats={number:uf(function(n,r){var i=new Intl.NumberFormat(n,vl({},r));return function(o){return i.format(o)}}),currency:uf(function(n,r){var i=new Intl.NumberFormat(n,vl(vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:uf(function(n,r){var i=new Intl.DateTimeFormat(n,vl({},r));return function(o){return i.format(o)}}),relativetime:uf(function(n,r){var i=new Intl.RelativeTimeFormat(n,vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:uf(function(n,r){var i=new Intl.ListFormat(n,vl({},r));return function(o){return i.format(o)}})},this.init(e)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=uf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var g=UI(y),T=g.formatName,E=g.formatOptions;if(o.formats[T]){var A=p;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},j=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[T](p,j,vl(vl(vl({},E),a),I))}catch(R){o.logger.warn(R)}return A}else o.logger.warn("there was no format function for ".concat(T));return p},n);return f}}]),t}();function O0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function WI(t){var e=zI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function zI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function YI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var GI=function(t){kp(n,t);var e=WI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return rs(this,n),a=e.call(this),Dp&&vu.call(Sl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Na.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return is(n,[{key:"queueLoad",value:function(i,o,a,c){var f=this,p={},y={},g={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&f.store.hasResourceBundle(E,I)?f.state[j]=2:f.state[j]<0||(f.state[j]===1?y[j]===void 0&&(y[j]=!0):(f.state[j]=1,A=!1,y[j]===void 0&&(y[j]=!0),p[j]===void 0&&(p[j]=!0),T[I]===void 0&&(T[I]=!0)))}),A||(g[E]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),a&&this.store.addResourceBundle(f,p,a),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){EI(g.loaded,[f],p),YI(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(T){y[T]||(y[T]={});var E=g.loaded[T];E.length&&E.forEach(function(A){y[T][A]===void 0&&(y[T][A]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,a){var c=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:f,wait:p,callback:y});return}this.readingCalls++;var g=function(I,j){if(c.readingCalls--,c.waitingReads.length>0){var R=c.waitingReads.shift();c.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&j&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,f+1,p*2,y)},p);return}y(I,j)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(A){return g(null,A)}).catch(g):g(null,E)}catch(A){g(A)}return}return T(i,o,g)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.toLoad.forEach(function(y){a.loadOne(y)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),f=c[0],p=c[1];this.read(f,p,"read",void 0,void 0,function(y,g){y&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&g&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var g=_0(_0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,g):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(A){return y(null,A)}).catch(y):y(null,E)}catch(A){y(A)}else T(i,o,a,c,y,g)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(vu);function R0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Qo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Qo(e[2])==="object"||Qo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function A0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function I0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ma(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?I0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):I0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qI(t){var e=XI();return function(){var r=Ua(t),i;if(e){var o=Ua(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Yd(this,i)}}function XI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function mh(){}function KI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var tp=function(t){kp(n,t);var e=qI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(rs(this,n),r=e.call(this),Dp&&vu.call(Sl(r)),r.options=A0(i),r.services={},r.logger=Na,r.modules={external:[]},KI(Sl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Yd(r,Sl(r));setTimeout(function(){r.init(i,o)},0)}return r}return is(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=R0();this.options=Ma(Ma(Ma({},c),this.options),A0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ma(Ma({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?Na.init(f(this.modules.logger),this.options):Na.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=HI);var y=new C0(this.options);this.store=new II(this.options.resources,this.options);var g=this.services;g.logger=Na,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new $I(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new VI(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new GI(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var H=arguments.length,U=new Array(H>1?H-1:0),ne=1;ne<H;ne++)U[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(U))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new T0(this.services,this.options),this.translator.on("*",function(R){for(var H=arguments.length,U=new Array(H>1?H-1:0),ne=1;ne<H;ne++)U[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,a||(a=mh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(R){i[R]=function(){var H;return(H=i.store)[R].apply(H,arguments),i}});var I=td(),j=function(){var H=function(ne,q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(q),a(ne,q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return H(null,i.t.bind(i));i.changeLanguage(i.options.lng,H)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh,c=a,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return c();var p=[],y=function(E){if(E){var A=o.services.languageUtils.toResolveHierarchy(E);A.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(f)y(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(T){return y(T)})}this.options.preload&&this.options.preload.forEach(function(T){return y(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=td();return i||(i=this.languages),o||(o=this.options.ns),a||(a=mh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),a(f)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&aT.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=td();this.emit("languageChanging",i);var f=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(f(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},y=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||f(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(A){p(A,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,f=function p(y,g){var T;if(Qo(g)!=="object"){for(var E=arguments.length,A=new Array(E>2?E-2:0),I=2;I<E;I++)A[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([y,g].concat(A))}else T=Ma({},g);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var j=c.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(y)?R=y.map(function(H){return"".concat(T.keyPrefix).concat(j).concat(H)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(y):y,c.t(R,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=a,f}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var y=function(E,A){var I=o.services.backendConnector.state["".concat(E,"|").concat(A)];return I===-1||I===2};if(a.precheck){var g=a.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=td();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){a.options.ns.indexOf(f)<0&&a.options.ns.push(f)}),this.loadResources(function(f){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=td();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new C0(R0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mh,c=Ma(Ma(Ma({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Ma({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new T0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,T=new Array(g>1?g-1:0),E=1;E<g;E++)T[E-1]=arguments[E];f.emit.apply(f,[y].concat(T))}),f.init(c,a),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(vu);Ha(tp,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new tp(t,e)});var oi=tp.createInstance();oi.createInstance=tp.createInstance;oi.createInstance;oi.dir;oi.init;oi.loadResources;oi.reloadResources;oi.use;oi.changeLanguage;oi.getFixedT;var lT=oi.t;oi.exists;oi.setDefaultNamespace;oi.hasLoadedNamespace;oi.loadNamespaces;oi.loadLanguages;const uT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},ZI="true",cT=t=>{window.location.href=`${t}/authentication/login`},fT=t=>{window.location.href=`${t}/authentication/logout`},es=Vv.create({withCredentials:!0});let kg=!1,Am=[];const M0=t=>{Am.forEach(e=>{t?e.reject(t):e.resolve()}),Am=[]},pf=new Map;function Im(t){var r;const e=((r=t.method)==null?void 0:r.toUpperCase())||"GET",n=t.url||"";return`${e}:${n}`}function JI(t){try{const e=t==null?void 0:t.url,n=(t==null?void 0:t.baseURL)||window.location.origin,i=new URL(e,n).pathname.split("/").filter(Boolean);return i.length<=3?`/${i.join("/")}`||"/":`/${i[0]}/.../${i[i.length-1]}`}catch{return(t==null?void 0:t.url)||""}}function QI(t,e){var a,c,f,p,y,g,T,E;const n=(a=t.response)==null?void 0:a.status,r=(c=e==null?void 0:e.method)==null?void 0:c.toUpperCase(),i=JI(e),o=((p=(f=t.response)==null?void 0:f.data)==null?void 0:p.errorMessage)||((g=(y=t.response)==null?void 0:y.data)==null?void 0:g.message)||((E=(T=t.response)==null?void 0:T.data)==null?void 0:E.title)||t.message||"Unexpected error";if(typeof n=="number"&&n>=500){const A=[n?`HTTP ${n}`:null,r,i].filter(Boolean);return`${A.join(" ")}${A.length?" - ":""}${o}`}return`${o}`}function dT(t,e){var o,a,c,f,p,y,g,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((f=(c=t.response)==null?void 0:c.data)==null?void 0:f.message),i=r===uT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return kg?new Promise((A,I)=>{Am.push({resolve:A,reject:I})}).then(()=>es(n)).catch(A=>Promise.reject(A)):(n._retry=!0,kg=!0,es.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(M0(null),es(n))).catch(A=>(M0(A),Promise.reject(A))).finally(()=>{kg=!1}));if(((y=t.response)==null?void 0:y.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const A=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=A;return}return cT(window.env.AUTHEN_DOMAIN)}if(((g=t.response)==null?void 0:g.status)===403||(t==null?void 0:t.httpStatus)===403)(T=e==null?void 0:e.handle403)==null||T.call(e,t);else{const A=QI(t,n);!(e!=null&&e.disabledPushNotify)&&Gd(lT(`${A}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)}return r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const eM=es.interceptors.request.use(t=>{var r;if(((r=t.headers)==null?void 0:r.X_AUTO_CANCEL)!=="true")return t;const e=Im(t);if(pf.has(e)){const i=pf.get(e);i==null||i.abort(),pf.delete(e)}const n=new AbortController;return t.signal=n.signal,pf.set(e,n),t},t=>Promise.reject(t)),tM=es.interceptors.response.use(t=>{const e=Im(t.config);return pf.delete(e),t},async t=>{if(Vv.isCancel(t))return Promise.reject({...t,isCanceled:!0});if(t.config){const e=Im(t.config);pf.delete(e)}return dT(t)});function nM(t){return Vv.isCancel(t)||(t==null?void 0:t.isCanceled)===!0}const rM=t=>{const e=Od.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||es,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Od.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},hT=t=>{const e=Od.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||es,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Od.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Wv=X.createContext({}),iM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=rM({axiosInstance:r,baseUrl:n}),a=hT({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?be.jsx(aa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:be.jsx(aa.CircularProgress,{})}):be.jsx(Wv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},oM=()=>X.useContext(Wv);function sM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function aM(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}var pT=[],lM=pT.forEach,uM=pT.slice;function cM(t){return lM.call(uM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var L0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,fM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!L0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!L0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},F0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=fM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},dM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=F0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&F0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},hM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var f=o[a].substring(0,c);f===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},nd=null,N0=function(){if(nd!==null)return nd;try{nd=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{nd=!1}return nd},pM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&N0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&N0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},rd=null,j0=function(){if(rd!==null)return rd;try{rd=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{rd=!1}return rd},gM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&j0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&j0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},mM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},vM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},yM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},bM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},gT=!1;try{document.cookie,gT=!0}catch{}var mT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];gT||mT.splice(1,1);function wM(){return{order:mT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var vT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};rs(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=cM(r,this.options||{},wM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(dM),this.addDetector(hM),this.addDetector(pM),this.addDetector(gM),this.addDetector(mM),this.addDetector(vM),this.addDetector(yM),this.addDetector(bM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();vT.type="languageDetector";function zv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const xM=Object.freeze(Object.defineProperty({__proto__:null,default:zv},Symbol.toStringTag,{value:"Module"}));var Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function SM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function TM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var B0={};function Mm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&B0[e[0]]||(typeof e[0]=="string"&&(B0[e[0]]=new Date),TM.apply(void 0,e))}var yT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function $0(t,e,n){t.loadNamespaces(e,yT(t,n))}function V0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,yT(t,r))}function CM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(f,p){var y=e.services.backendConnector.state["".concat(f,"|").concat(p)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function EM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Mm("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):CM(t,e,n)}var kM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,DM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},PM=function(e){return DM[e]},OM=function(e){return e.replace(kM,PM)};function U0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function H0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?U0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Lm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:OM};function _M(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lm=H0(H0({},Lm),t)}function RM(){return Lm}var bT;function AM(t){bT=t}function IM(){return bT}var MM={type:"3rdParty",init:function(e){_M(e.options.react),AM(e)}},wT=X.createContext(),LM=function(){function t(){rs(this,t),this.usedNamespaces={}}return is(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function FM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],f=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function NM(t,e){return rT(t)||FM(t,e)||iT(t,e)||oT()}function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Dg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jM=function(e,n){var r=X.useRef();return X.useEffect(function(){r.current=e},[e,n]),r.current};function xT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=X.useContext(wT)||{},i=r.i18n,o=r.defaultNS,a=n||i||IM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new LM),!a){Mm("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,ze){return typeof ze=="string"?ze:ze&&Qo(ze)==="object"&&typeof ze.defaultValue=="string"?ze.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}a.options.react&&a.options.react.wait!==void 0&&Mm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Dg(Dg(Dg({},RM()),a.options.react),e),y=p.useSuspense,g=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(le){return EM(le,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],g)}var I=X.useState(A),j=NM(I,2),R=j[0],H=j[1],U=T.join();e.lng&&(U="".concat(e.lng).concat(U));var ne=jM(U),q=X.useRef(!0);X.useEffect(function(){var le=p.bindI18n,ae=p.bindI18nStore;q.current=!0,!E&&!y&&(e.lng?V0(a,e.lng,T,function(){q.current&&H(A)}):$0(a,T,function(){q.current&&H(A)})),E&&ne&&ne!==U&&q.current&&H(A);function ze(){q.current&&H(A)}return le&&a&&a.on(le,ze),ae&&a&&a.store.on(ae,ze),function(){q.current=!1,le&&a&&le.split(" ").forEach(function(tt){return a.off(tt,ze)}),ae&&a&&ae.split(" ").forEach(function(tt){return a.store.off(tt,ze)})}},[a,U]);var ie=X.useRef(!0);X.useEffect(function(){q.current&&!ie.current&&H(A),ie.current=!1},[a,g]);var x=[R,a,E];if(x.t=R,x.i18n=a,x.ready=E,E||!E&&!y)return x;throw new Promise(function(le){e.lng?V0(a,e.lng,T,function(){return le()}):$0(a,T,function(){return le()})})}function BM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=X.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return X.createElement(wT.Provider,{value:i},r)}var ST=[],$M=ST.forEach,VM=ST.slice;function UM(t){return $M.call(VM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function HM(t){return t?typeof t=="function"?new t:t:null}function WM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function z0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var TT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};rs(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return is(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=UM(i,this.options||{},WM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||HM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(y){if(y>=a)return i(new Error("non of the backend loaded data",!0));var g=y===a-1,T=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,E=o.backends[y];E.read?z0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,y),f(y-1,I),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(j&&o.options.refreshExpirationTime&&j+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[y+1];R&&R.read&&z0(R,n,r,function(H,U){H||U&&(Object.keys(U).length<=T||(f(y,U),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,U)))})}}else p(y+1)}):p(y+1)},f=function p(y,g){if(!(y<0)){var T=o.backends[y];T.save&&T.save(n,r,g),p(y-1,g)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,c):y=p(n,r,i,o),y&&typeof y.then=="function"?y.then(function(g){return a(null,g)}).catch(a):a(null,y)}catch(g){a(g)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}]),t}();TT.type="backend";function Fm(t){"@babel/helpers - typeof";return Fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fm(t)}function CT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Fm(XMLHttpRequest))==="object"}function zM(t){return!!t&&typeof t.then=="function"}function YM(t){return zM(t)?t:Promise.resolve(t)}function GM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Nm={exports:{}},vh={exports:{}},Y0;function qM(){return Y0||(Y0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Di<"u"&&Di,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,f={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(pe){return pe&&DataView.prototype.isPrototypeOf(pe)}if(f.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(pe){return pe&&y.indexOf(Object.prototype.toString.call(pe))>-1};function T(pe){if(typeof pe!="string"&&(pe=String(pe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(pe)||pe==="")throw new TypeError('Invalid character in header field name: "'+pe+'"');return pe.toLowerCase()}function E(pe){return typeof pe!="string"&&(pe=String(pe)),pe}function A(pe){var fe={next:function(){var Ce=pe.shift();return{done:Ce===void 0,value:Ce}}};return f.iterable&&(fe[Symbol.iterator]=function(){return fe}),fe}function I(pe){this.map={},pe instanceof I?pe.forEach(function(fe,Ce){this.append(Ce,fe)},this):Array.isArray(pe)?pe.forEach(function(fe){this.append(fe[0],fe[1])},this):pe&&Object.getOwnPropertyNames(pe).forEach(function(fe){this.append(fe,pe[fe])},this)}I.prototype.append=function(pe,fe){pe=T(pe),fe=E(fe);var Ce=this.map[pe];this.map[pe]=Ce?Ce+", "+fe:fe},I.prototype.delete=function(pe){delete this.map[T(pe)]},I.prototype.get=function(pe){return pe=T(pe),this.has(pe)?this.map[pe]:null},I.prototype.has=function(pe){return this.map.hasOwnProperty(T(pe))},I.prototype.set=function(pe,fe){this.map[T(pe)]=E(fe)},I.prototype.forEach=function(pe,fe){for(var Ce in this.map)this.map.hasOwnProperty(Ce)&&pe.call(fe,this.map[Ce],Ce,this)},I.prototype.keys=function(){var pe=[];return this.forEach(function(fe,Ce){pe.push(Ce)}),A(pe)},I.prototype.values=function(){var pe=[];return this.forEach(function(fe){pe.push(fe)}),A(pe)},I.prototype.entries=function(){var pe=[];return this.forEach(function(fe,Ce){pe.push([Ce,fe])}),A(pe)},f.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(pe){if(pe.bodyUsed)return Promise.reject(new TypeError("Already read"));pe.bodyUsed=!0}function R(pe){return new Promise(function(fe,Ce){pe.onload=function(){fe(pe.result)},pe.onerror=function(){Ce(pe.error)}})}function H(pe){var fe=new FileReader,Ce=R(fe);return fe.readAsArrayBuffer(pe),Ce}function U(pe){var fe=new FileReader,Ce=R(fe);return fe.readAsText(pe),Ce}function ne(pe){for(var fe=new Uint8Array(pe),Ce=new Array(fe.length),Oe=0;Oe<fe.length;Oe++)Ce[Oe]=String.fromCharCode(fe[Oe]);return Ce.join("")}function q(pe){if(pe.slice)return pe.slice(0);var fe=new Uint8Array(pe.byteLength);return fe.set(new Uint8Array(pe)),fe.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(pe){this.bodyUsed=this.bodyUsed,this._bodyInit=pe,pe?typeof pe=="string"?this._bodyText=pe:f.blob&&Blob.prototype.isPrototypeOf(pe)?this._bodyBlob=pe:f.formData&&FormData.prototype.isPrototypeOf(pe)?this._bodyFormData=pe:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)?this._bodyText=pe.toString():f.arrayBuffer&&f.blob&&p(pe)?(this._bodyArrayBuffer=q(pe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(pe)||g(pe))?this._bodyArrayBuffer=q(pe):this._bodyText=pe=Object.prototype.toString.call(pe):this._bodyText="",this.headers.get("content-type")||(typeof pe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(pe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var pe=j(this);if(pe)return pe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var pe=j(this);return pe||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(H)}),this.text=function(){var pe=j(this);if(pe)return pe;if(this._bodyBlob)return U(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then(ze)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(pe){var fe=pe.toUpperCase();return x.indexOf(fe)>-1?fe:pe}function ae(pe,fe){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');fe=fe||{};var Ce=fe.body;if(pe instanceof ae){if(pe.bodyUsed)throw new TypeError("Already read");this.url=pe.url,this.credentials=pe.credentials,fe.headers||(this.headers=new I(pe.headers)),this.method=pe.method,this.mode=pe.mode,this.signal=pe.signal,!Ce&&pe._bodyInit!=null&&(Ce=pe._bodyInit,pe.bodyUsed=!0)}else this.url=String(pe);if(this.credentials=fe.credentials||this.credentials||"same-origin",(fe.headers||!this.headers)&&(this.headers=new I(fe.headers)),this.method=le(fe.method||this.method||"GET"),this.mode=fe.mode||this.mode||null,this.signal=fe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ce)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ce),(this.method==="GET"||this.method==="HEAD")&&(fe.cache==="no-store"||fe.cache==="no-cache")){var Oe=/([?&])_=[^&]*/;if(Oe.test(this.url))this.url=this.url.replace(Oe,"$1_="+new Date().getTime());else{var Ne=/\?/;this.url+=(Ne.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function ze(pe){var fe=new FormData;return pe.trim().split("&").forEach(function(Ce){if(Ce){var Oe=Ce.split("="),Ne=Oe.shift().replace(/\+/g," "),me=Oe.join("=").replace(/\+/g," ");fe.append(decodeURIComponent(Ne),decodeURIComponent(me))}}),fe}function tt(pe){var fe=new I,Ce=pe.replace(/\r?\n[\t ]+/g," ");return Ce.split("\r").map(function(Oe){return Oe.indexOf(`
3
+ `)===0?Oe.substr(1,Oe.length):Oe}).forEach(function(Oe){var Ne=Oe.split(":"),me=Ne.shift().trim();if(me){var Te=Ne.join(":").trim();fe.append(me,Te)}}),fe}ie.call(ae.prototype);function Qe(pe,fe){if(!(this instanceof Qe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');fe||(fe={}),this.type="default",this.status=fe.status===void 0?200:fe.status,this.ok=this.status>=200&&this.status<300,this.statusText=fe.statusText===void 0?"":""+fe.statusText,this.headers=new I(fe.headers),this.url=fe.url||"",this._initBody(pe)}ie.call(Qe.prototype),Qe.prototype.clone=function(){return new Qe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Qe.error=function(){var pe=new Qe(null,{status:0,statusText:""});return pe.type="error",pe};var et=[301,302,303,307,308];Qe.redirect=function(pe,fe){if(et.indexOf(fe)===-1)throw new RangeError("Invalid status code");return new Qe(null,{status:fe,headers:{location:pe}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(fe,Ce){this.message=fe,this.name=Ce;var Oe=Error(fe);this.stack=Oe.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Ye(pe,fe){return new Promise(function(Ce,Oe){var Ne=new ae(pe,fe);if(Ne.signal&&Ne.signal.aborted)return Oe(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function Te(){me.abort()}me.onload=function(){var He={status:me.status,statusText:me.statusText,headers:tt(me.getAllResponseHeaders()||"")};He.url="responseURL"in me?me.responseURL:He.headers.get("X-Request-URL");var je="response"in me?me.response:me.responseText;setTimeout(function(){Ce(new Qe(je,He))},0)},me.onerror=function(){setTimeout(function(){Oe(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Oe(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Oe(new a.DOMException("Aborted","AbortError"))},0)};function Le(He){try{return He===""&&c.location.href?c.location.href:He}catch{return He}}me.open(Ne.method,Le(Ne.url),!0),Ne.credentials==="include"?me.withCredentials=!0:Ne.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(f.blob?me.responseType="blob":f.arrayBuffer&&Ne.headers.get("Content-Type")&&Ne.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),fe&&typeof fe.headers=="object"&&!(fe.headers instanceof I)?Object.getOwnPropertyNames(fe.headers).forEach(function(He){me.setRequestHeader(He,E(fe.headers[He]))}):Ne.headers.forEach(function(He,je){me.setRequestHeader(je,He)}),Ne.signal&&(Ne.signal.addEventListener("abort",Te),me.onreadystatechange=function(){me.readyState===4&&Ne.signal.removeEventListener("abort",Te)}),me.send(typeof Ne._bodyInit>"u"?null:Ne._bodyInit)})}return Ye.polyfill=!0,c.fetch||(c.fetch=Ye,c.Headers=I,c.Request=ae,c.Response=Qe),a.Headers=I,a.Request=ae,a.Response=Qe,a.fetch=Ye,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(vh,vh.exports)),vh.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Di<"u"&&Di.fetch?n=Di.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof GM<"u"&&typeof window>"u"){var r=n||qM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Nm,Nm.exports);var ET=Nm.exports;const kT=Eu(ET),G0=yI({__proto__:null,default:kT},[ET]);function q0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function X0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(n),!0).forEach(function(r){XM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XM(t,e,n){return(e=KM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KM(t){var e=ZM(t,"string");return Ec(e)=="symbol"?e:e+""}function ZM(t,e){if(Ec(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ec(t){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(t)}var Tl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Tl=global.fetch:typeof window<"u"&&window.fetch?Tl=window.fetch:Tl=fetch);var Rd;CT()&&(typeof global<"u"&&global.XMLHttpRequest?Rd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Rd=window.XMLHttpRequest));var np;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?np=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(np=window.ActiveXObject));!Tl&&G0&&!Rd&&!np&&(Tl=kT||G0);typeof Tl!="function"&&(Tl=void 0);var jm=function(e,n){if(n&&Ec(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},K0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):Tl(e,n).then(o).catch(r)},Z0=!1,JM=function(e,n,r,i){e.queryStringParams&&(n=jm(n,e.queryStringParams));var o=X0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=X0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},Z0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{K0(n,c,i,f)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(y){delete c[y]}),K0(n,c,i,f),Z0=!0}catch(y){i(y)}}},QM=function(e,n,r,i){r&&Ec(r)==="object"&&(r=jm("",r).slice(1)),e.queryStringParams&&(n=jm(n,e.queryStringParams));try{var o;Rd?o=new Rd:o=new np("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},eL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Tl&&n.indexOf("file:")!==0)return JM(e,n,r,i);if(CT()||typeof ActiveXObject=="function")return QM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Df(t){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Df(t)}function J0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Pg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J0(Object(n),!0).forEach(function(r){DT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,PT(r.key),r)}}function rL(t,e,n){return e&&nL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DT(t,e,n){return(e=PT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function PT(t){var e=iL(t,"string");return Df(e)=="symbol"?e:e+""}function iL(t,e){if(Df(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var oL=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return DT({},r,i||"")},parseLoadPayload:function(n,r){},request:eL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},OT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};tL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return rL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Pg(Pg(Pg({},oL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Df(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=YM(f),f.then(function(p){if(!p)return a(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(y,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message){var T=y.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var A,I;try{typeof g.data=="string"?A=a.options.parse(g.data,i,o):A=g.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,f,function(I,j){p+=1,y.push(I),g.push(j),p===n.length&&typeof a=="function"&&a(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}])}();OT.type="backend";var Yv=(t=>(t.en="en",t.de="de",t))(Yv||{});oi.use(vT).use(TT).use(MM).init({initImmediate:!0,supportedLngs:["en","de"],fallbackLng:"en",nonExplicitSupportedLngs:!0,load:"languageOnly",ns:["translation"],fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator"],caches:["localStorage"],convertDetectedLanguage:t=>t==null?void 0:t.split("-")[0]},backend:{backends:[OT],backendOptions:[{loadPath:t=>{var i,o,a;const n=(Array.isArray(t)?t[0]:t||"en").split("-")[0];return`${((i=window==null?void 0:window.env)==null?void 0:i.TRANSLATION_URL)??((o=window==null?void 0:window.env)==null?void 0:o.VITE_BASE_URL)??((a=window==null?void 0:window.env)==null?void 0:a.REACT_APP_BASE_URL)??`${location.protocol}//${location.host}`}/translations/${n}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function sL(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||Yv.en)},[]),{language:t,setLanguage:e}}const _T=X.createContext({}),aL=()=>X.useContext(_T),lL=oi,ki=lT,uL=()=>xT(),cL=({children:t})=>{const e=sL();return be.jsx(_T.Provider,{value:e,children:be.jsx(BM,{i18n:oi,children:t})})},mr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};var RT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Q0=X.createContext&&X.createContext(RT),fL=["attr","size","title"];function dL(t,e){if(t==null)return{};var n=hL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function hL(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function rp(){return rp=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},rp.apply(this,arguments)}function ew(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ip(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ew(Object(n),!0).forEach(function(r){pL(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pL(t,e,n){return e=gL(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gL(t){var e=mL(t,"string");return typeof e=="symbol"?e:e+""}function mL(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function AT(t){return t&&t.map((e,n)=>X.createElement(e.tag,ip({key:n},e.attr),AT(e.child)))}function Pp(t){return e=>X.createElement(vL,rp({attr:ip({},t.attr)},e),AT(t.child))}function vL(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=dL(t,fL),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),X.createElement("svg",rp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:ip(ip({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return Q0!==void 0?X.createElement(Q0.Consumer,null,n=>e(n)):e(RT)}function yL(t){return Pp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function bL(t){return Pp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const IT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Og(t){return t+" !important"}const MT=t=>{const e={...t.colors};return aa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:IT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Og(e.primary200),"&:hover":{backgroundColor:Og(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:yL,next:bL}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Og(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function tw(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||mr[i]})}),n}function LT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function wL(t){var c,f,p;const{data:e,isFetching:n}=Od.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var T;(T=y==null?void 0:y.theme)!=null&&T[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var T,E;LT((T=y==null?void 0:y.theme)==null?void 0:T.favicon);const g=tw(mr,(E=y==null?void 0:y.theme)==null?void 0:E.keyColor);Object.keys(g).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,g[A])}),document.documentElement.style.setProperty("font-family",IT.fontFamily)}}),r=tw(mr,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=MT({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const FT=X.createContext({}),xL=()=>X.useContext(FT),SL=t=>{var o;const{children:e,brandTheme:n}=t,r=wL(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return be.jsx(FT.Provider,{value:r,children:be.jsx(aa.ThemeProvider,{theme:i,children:e})})},TL=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function NT({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return be.jsxs(be.Fragment,{children:[be.jsx("style",{type:"text/css",children:TL}),be.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:be.jsxs("div",{className:"modal-container",children:[be.jsx("h3",{className:"modal-title",children:ki("components.logoutPage.title",{defaultValue:"Log out"})}),be.jsxs("p",{className:"text-sm",children:[" ",ki("components.logoutPage.confirmLogOut",{defaultValue:"Are you sure you want to log out?"})]}),be.jsxs("div",{className:"modal-footer",children:[be.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:ki("commonElement.button.cancel",{defaultValue:"Cancel"})}),be.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:ki("commonElement.button.confirm",{defaultValue:"Comfirm"})})]})]})})]})}const CL=X.memo(({notification:t,notiPath:e,markAllAsReadState:n,brandColors:r,onMark:i,showDetail:o,onToggleDetail:a})=>{var R,H;const[c,f]=X.useState({id:t.id,isRead:t.isRead}),p=c.isRead===!1?"unread":"read",y={borderColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500,backgroundColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500},g=()=>{const U=!t.isRead;i&&i(t.id,U,e)};X.useEffect(()=>{f(n?U=>({...U,isRead:!0}):{id:t.id,isRead:t.isRead})},[n,t.id,t.isRead]);const T=()=>{typeof a=="function"&&a()},E=U=>{const ne=Rm(),q=Rm(U),ie=ne.diff(q,"days"),x=ne.diff(q,"minutes"),le=ne.diff(q,"months"),ae=ne.diff(q,"years");if(console.log("diffInMonths",le),x<1)return"Just now";if(ie===0){if(x<=60)return`${x} minute${x>1?"s":""} ago`;const ze=Math.floor(x/60);return console.log("diffIhours",ze),`${ze} hour${ze>1?"s":""} ago`}if(ie===1)return"Yesterday";if(ie>=2&&ie<7)return`${ie} days ago`;if(ie<30){const ze=Math.floor(ie/7);return`${ze} week${ze>1?"s":""} ago`}return le===0||le===1?"1 month ago":le<12?`${le} months ago`:ae===0||ae===1?"1 year ago":"Over 1 year ago"},A=t!=null&&t.data?(R=t==null?void 0:t.data)==null?void 0:R.length:0,I=t!=null&&t.contextUrl?"a":"p",j=(U,ne)=>{var q,ie;if((U==null?void 0:U.actionKey)!=null){if((q=U==null?void 0:U.data)!=null&&q.brandName)return ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}`,{defaultValue:`${U==null?void 0:U.message}`,brandName:U.data.brandName});switch(U==null?void 0:U.notificationType){case"deleteMultiple":return U!=null&&U.data&&((ie=U==null?void 0:U.data)==null?void 0:ie.length)>1?ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}_multiple`,{defaultValue:`${U==null?void 0:U.actionKey}`,count:ne}):ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}_single`,{defaultValue:`${U==null?void 0:U.actionKey}`});default:return ki(`notificationAdmin.notify.actionKey.${U==null?void 0:U.actionKey}`,{defaultValue:`${U==null?void 0:U.message}`})}}return U.message};return be.jsx(be.Fragment,{children:be.jsxs("div",{className:"notitification-item__container",children:[be.jsx("div",{className:"notification-item__image-container",children:be.jsx("img",{src:!t.actorAvatarUrl||t.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":t.actorAvatarUrl,onError:({currentTarget:U})=>{console.log("img on error",U),U.onerror=null,U.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:t.actorName})}),be.jsxs("div",{style:{width:"calc(100% - 56px)"},children:[be.jsxs("div",{className:"notification-item__content-wrapper",children:[be.jsxs("div",{className:"notification-item__content",children:[be.jsx("p",{className:"notification-item__user-name",children:t.actorName}),be.jsxs(I,{href:t.contextUrl,style:{cursor:t!=null&&t.contextUrl?"pointer":"unset",textDecoration:"none",color:"inherit"},children:[j(t,A),be.jsx("span",{style:{color:t.contextUrl?"#007BFF":"#292929"},children:` ${t!=null&&t.context?t.context:""}`})]}),(t==null?void 0:t.notificationType)==="deleteMultiple"&&be.jsxs("button",{style:{color:mr.primary400,textDecoration:"underline"},onClick:T,children:[o?`${ki("notificationAdmin.notify.hideText",{defaultValue:"Hide"})} `:`${ki("notificationAdmin.notify.showText",{defaultValue:"Show"})} `,ki("notificationAdmin.notify.detailText",{defaultValue:"details"})]})]}),be.jsx("div",{className:"notification-item__time",children:be.jsx("p",{children:E(t.createdAt)})}),be.jsx("button",{className:`${p} notification-item__read-at`,"aria-label":"Mark as read",style:y,onClick:g})]}),o&&be.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:be.jsx("ul",{children:(H=t==null?void 0:t.data)==null?void 0:H.map((U,ne)=>be.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[be.jsx("span",{style:{backgroundColor:mr.primary400},className:"list-dot"}),be.jsx("span",{style:{width:"calc(100% - 12px)"},children:U.name})]},ne))})})]})]})})}),jT=X.createContext({}),EL=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return be.jsx(jT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};function nw(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function kL(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function DL(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var y=e(p);y?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!e(T);T++)f=T;a.push(c,f)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var PL=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},OL=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),_L=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},rw=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},RL=function(t){_L(e,t);function e(){var n,r,i,o;PL(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=rw(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!nw(y)||!nw(g))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=g,i._ensureRowsLoaded(y,g)},i._setRef=function(p){i._listRef=p},r),rw(i,o)}return OL(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,T=DL({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var y=r[p],g=r[p+1],T=o(y,g);T!=null&&T.then(function(){if(kL({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent);function Pf(){return Pf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pf.apply(null,arguments)}const AL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pf}},Symbol.toStringTag,{value:"Module"}));function BT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Jh(t,e)}const IL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function Gv({children:t,styles:e=[],...n}){return be.jsxs("div",{...n,children:[[IL,...e].map((r,i)=>be.jsx("style",{type:"text/css",children:r},i)),t]})}function ML(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var qv=ML,LL=typeof Di=="object"&&Di&&Di.Object===Object&&Di,FL=LL,NL=FL,jL=typeof self=="object"&&self&&self.Object===Object&&self,BL=NL||jL||Function("return this")(),$T=BL,$L=$T,VL=function(){return $L.Date.now()},UL=VL,HL=/\s/;function WL(t){for(var e=t.length;e--&&HL.test(t.charAt(e)););return e}var zL=WL,YL=zL,GL=/^\s+/;function qL(t){return t&&t.slice(0,YL(t)+1).replace(GL,"")}var XL=qL,KL=$T,ZL=KL.Symbol,VT=ZL,iw=VT,UT=Object.prototype,JL=UT.hasOwnProperty,QL=UT.toString,id=iw?iw.toStringTag:void 0;function e2(t){var e=JL.call(t,id),n=t[id];try{t[id]=void 0;var r=!0}catch{}var i=QL.call(t);return r&&(e?t[id]=n:delete t[id]),i}var t2=e2,n2=Object.prototype,r2=n2.toString;function i2(t){return r2.call(t)}var o2=i2,ow=VT,s2=t2,a2=o2,l2="[object Null]",u2="[object Undefined]",sw=ow?ow.toStringTag:void 0;function c2(t){return t==null?t===void 0?u2:l2:sw&&sw in Object(t)?s2(t):a2(t)}var f2=c2;function d2(t){return t!=null&&typeof t=="object"}var h2=d2,p2=f2,g2=h2,m2="[object Symbol]";function v2(t){return typeof t=="symbol"||g2(t)&&p2(t)==m2}var y2=v2,b2=XL,aw=qv,w2=y2,lw=NaN,x2=/^[-+]0x[0-9a-f]+$/i,S2=/^0b[01]+$/i,T2=/^0o[0-7]+$/i,C2=parseInt;function E2(t){if(typeof t=="number")return t;if(w2(t))return lw;if(aw(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=aw(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=b2(t);var n=S2.test(t);return n||T2.test(t)?C2(t.slice(2),n?2:8):x2.test(t)?lw:+t}var k2=E2,D2=qv,_g=UL,uw=k2,P2="Expected a function",O2=Math.max,_2=Math.min;function R2(t,e,n){var r,i,o,a,c,f,p=0,y=!1,g=!1,T=!0;if(typeof t!="function")throw new TypeError(P2);e=uw(e)||0,D2(n)&&(y=!!n.leading,g="maxWait"in n,o=g?O2(uw(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ie){var x=r,le=i;return r=i=void 0,p=ie,a=t.apply(le,x),a}function A(ie){return p=ie,c=setTimeout(R,e),y?E(ie):a}function I(ie){var x=ie-f,le=ie-p,ae=e-x;return g?_2(ae,o-le):ae}function j(ie){var x=ie-f,le=ie-p;return f===void 0||x>=e||x<0||g&&le>=o}function R(){var ie=_g();if(j(ie))return H(ie);c=setTimeout(R,I(ie))}function H(ie){return c=void 0,T&&r?E(ie):(r=i=void 0,a)}function U(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function ne(){return c===void 0?a:H(_g())}function q(){var ie=_g(),x=j(ie);if(r=arguments,i=this,f=ie,x){if(c===void 0)return A(f);if(g)return clearTimeout(c),c=setTimeout(R,e),E(f)}return c===void 0&&(c=setTimeout(R,e)),a}return q.cancel=U,q.flush=ne,q}var HT=R2;const Rg=Eu(HT);var A2=HT,I2=qv,M2="Expected a function";function L2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(M2);return I2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),A2(t,e,{leading:r,maxWait:e,trailing:i})}var F2=L2;const N2=Eu(F2);var gf=function(){return gf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gf.apply(this,arguments)};function WT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function zT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var YT=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function GT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function qT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function XT(t){return".".concat(t.split(" ").join("."))}var Xv=!!(typeof window<"u"&&window.document&&window.document.createElement),j2=Object.freeze({__proto__:null,addClasses:GT,canUseDOM:Xv,classNamesToQuery:XT,getElementDocument:zT,getElementWindow:WT,getOptions:YT,removeClasses:qT}),df=null,cw=null;Xv&&window.addEventListener("resize",function(){cw!==window.devicePixelRatio&&(cw=window.devicePixelRatio,df=null)});function fw(){if(df===null){if(typeof document>"u")return df=0,df;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),df=n}return df}var iu=WT,Ag=zT,B2=YT,ou=GT,su=qT,_o=XT,od=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.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=iu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ou(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(){su(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){su(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;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)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,f,p,y,g,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,R=r.axis[r.draggedAxis].track,H=(a=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,U=r.axis[r.draggedAxis].scrollbar,ne=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,q=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var ie=j-((T=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ie=r.draggedAxis==="x"&&r.isRtl?((A=(E=R.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-U.size-ie:ie;var x=ie/(H-U.size),le=x*(ne-q);r.draggedAxis==="x"&&r.isRtl&&(le=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-le:le),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=le}},this.onEndDrag=function(i){r.isDragging=!1;var o=Ag(r.el),a=iu(r.el);i.preventDefault(),i.stopPropagation(),su(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=gf(gf({},t.defaultOptions),n),this.classNames=gf(gf({},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=N2(this._onMouseMove,64),this.onWindowResize=Rg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Rg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Rg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.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:fw()}catch{return fw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Ag(e),i=iu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Xv&&(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(_o(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_o(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_o(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_o(this.classNames.offset)),this.maskEl=this.el.querySelector(_o(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_o(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_o(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_o(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(_o(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_o(this.classNames.scrollbar)))||null,this.options.autoHide||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=iu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=iu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=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 f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="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 g=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(a-f),g=~~((c-o.size)*y);g=e==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=e==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"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&&(ou(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.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(su(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),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):su(n.scrollbar.el,this.classNames.hover)):(su(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),su(this.axis[e].track.el,this.classNames.hover),su(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"),this.isDragging=!0;var i=Ag(this.el),o=iu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=iu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-g:this.mouseX-g,I=A<0?-1:1,j=I===-1?E-T:E+T,R=40,H=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)):E<j&&(E+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)))};H()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=iu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,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=B2,t.helpers=j2,t}(),Zo=function(){return Zo=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zo.apply(this,arguments)};function $2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Kv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=$2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},y={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(od.defaultOptions,E)?p[E]=o[E]:y[E]=o[E]});var g=Zo(Zo({},od.defaultOptions.classNames),p.classNames),T=Zo(Zo({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||od.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||od.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new od(a.current,Zo(Zo(Zo({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Zo({"data-simplebar":"init",ref:a},y),kn.createElement("div",{className:g.wrapper},kn.createElement("div",{className:g.heightAutoObserverWrapperEl},kn.createElement("div",{className:g.heightAutoObserverEl})),kn.createElement("div",{className:g.mask},kn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Zo(Zo({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):kn.createElement("div",Zo({},T),kn.createElement("div",{className:g.contentEl},n)))),kn.createElement("div",{className:g.placeholder})),kn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},kn.createElement("div",{className:g.scrollbar})),kn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},kn.createElement("div",{className:g.scrollbar})))});Kv.displayName="SimpleBar";const KT='[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}';function ZT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=ZT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=ZT(t))&&(r&&(r+=" "),r+=e);return r}const Ad=t=>typeof t=="number"&&!isNaN(t),xc=t=>typeof t=="string",Jo=t=>typeof t=="function",Bh=t=>xc(t)||Jo(t)?t:null,Bm=t=>X.isValidElement(t)||xc(t)||Jo(t)||Ad(t);function V2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Op(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:T,playToast:E}=a;const A=r?`${e}--${f}`:e,I=r?`${n}--${f}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const R=g.current,H=A.split(" "),U=ne=>{ne.target===g.current&&(E(),R.removeEventListener("animationend",U),R.removeEventListener("animationcancel",U),j.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...H))};R.classList.add(...H),R.addEventListener("animationend",U),R.addEventListener("animationcancel",U)},[]),X.useEffect(()=>{const R=g.current,H=()=>{R.removeEventListener("animationend",H),i?V2(R,y,o):y()};T||(p?H():(j.current=1,R.className+=` ${I}`,R.addEventListener("animationend",H)))},[T]),X.createElement(X.Fragment,null,c)}}function dw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const so=new Map;let Id=[];const $m=new Set,U2=t=>$m.forEach(e=>e(t)),JT=()=>so.size>0;function QT(t,e){var n;if(e)return!((n=so.get(e))==null||!n.isToastActive(t));let r=!1;return so.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function eC(t,e){Bm(t)&&(JT()||Id.push({content:t,options:e}),so.forEach(n=>{n.buildToast(t,e)}))}function hw(t,e){so.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)})}function H2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(y,g,T){let E=1,A=0,I=[],j=[],R=[],H=g;const U=new Map,ne=new Set,q=()=>{R=Array.from(U.values()),ne.forEach(le=>le())},ie=le=>{j=le==null?[]:j.filter(ae=>ae!==le),q()},x=le=>{const{toastId:ae,onOpen:ze,updateId:tt,children:Qe}=le.props,et=tt==null;le.staleId&&U.delete(le.staleId),U.set(ae,le),j=[...j,le.props.toastId].filter(Ye=>Ye!==le.staleId),q(),T(dw(le,et?"added":"updated")),et&&Jo(ze)&&ze(X.isValidElement(Qe)&&Qe.props)};return{id:y,props:H,observe:le=>(ne.add(le),()=>ne.delete(le)),toggle:(le,ae)=>{U.forEach(ze=>{ae!=null&&ae!==ze.props.toastId||Jo(ze.toggle)&&ze.toggle(le)})},removeToast:ie,toasts:U,clearQueue:()=>{A-=I.length,I=[]},buildToast:(le,ae)=>{if((Le=>{let{containerId:He,toastId:je,updateId:Fe}=Le;const Ve=He?He!==y:y!==1,nt=U.has(je)&&Fe==null;return Ve||nt})(ae))return;const{toastId:ze,updateId:tt,data:Qe,staleId:et,delay:Ye}=ae,pe=()=>{ie(ze)},fe=tt==null;fe&&A++;const Ce={...H,style:H.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(Le=>{let[He,je]=Le;return je!=null})),toastId:ze,updateId:tt,data:Qe,closeToast:pe,isIn:!1,className:Bh(ae.className||H.toastClassName),bodyClassName:Bh(ae.bodyClassName||H.bodyClassName),progressClassName:Bh(ae.progressClassName||H.progressClassName),autoClose:!ae.isLoading&&(Oe=ae.autoClose,Ne=H.autoClose,Oe===!1||Ad(Oe)&&Oe>0?Oe:Ne),deleteToast(){const Le=U.get(ze),{onClose:He,children:je}=Le.props;Jo(He)&&He(X.isValidElement(je)&&je.props),T(dw(Le,"removed")),U.delete(ze),A--,A<0&&(A=0),I.length>0?x(I.shift()):q()}};var Oe,Ne;Ce.closeButton=H.closeButton,ae.closeButton===!1||Bm(ae.closeButton)?Ce.closeButton=ae.closeButton:ae.closeButton===!0&&(Ce.closeButton=!Bm(H.closeButton)||H.closeButton);let me=le;X.isValidElement(le)&&!xc(le.type)?me=X.cloneElement(le,{closeToast:pe,toastProps:Ce,data:Qe}):Jo(le)&&(me=le({closeToast:pe,toastProps:Ce,data:Qe}));const Te={content:me,props:Ce,staleId:et};H.limit&&H.limit>0&&A>H.limit&&fe?I.push(Te):Ad(Ye)?setTimeout(()=>{x(Te)},Ye):x(Te)},setProps(le){H=le},setToggle:(le,ae)=>{U.get(le).toggle=ae},isToastActive:le=>j.some(ae=>ae===le),getSnapshot:()=>R}}(a,o,U2);so.set(a,f);const p=f.observe(c);return Id.forEach(y=>eC(y.content,y.options)),Id=[],()=>{p(),so.delete(a)}},setProps(c){var f;(f=so.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=so.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:QT,count:i==null?void 0:i.length}}function W2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(U){const ne=o.current;a.canDrag&&ne&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?U.clientX-a.start:U.clientY-a.start,a.start!==U.clientX&&(a.canCloseOnClick=!1),ne.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function R(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",R);const U=o.current;if(a.canDrag&&a.didMove&&U){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();U.style.transition="transform 0.2s, opacity 0.2s",U.style.removeProperty("transform"),U.style.removeProperty("opacity")}}(E=so.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const H={onPointerDown:function(U){if(t.draggable===!0||t.draggable===U.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",R);const ne=o.current;a.canCloseOnClick=!0,a.canDrag=!0,ne.style.transition="none",t.draggableDirection==="x"?(a.start=U.clientX,a.removalDistance=ne.offsetWidth*(t.draggablePercent/100)):(a.start=U.clientY,a.removalDistance=ne.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(U){const{top:ne,bottom:q,left:ie,right:x}=o.current.getBoundingClientRect();U.nativeEvent.type!=="touchend"&&t.pauseOnHover&&U.clientX>=ie&&U.clientX<=x&&U.clientY>=ne&&U.clientY<=q?I():A()}};return c&&f&&(H.onMouseEnter=I,t.stacked||(H.onMouseLeave=A)),g&&(H.onClick=U=>{y&&y(U),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:H}}function z2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:T}=t;const E=o||f&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(A.transform=`scaleX(${p})`);const I=wl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),j=Jo(a)?a({rtl:y,type:i,defaultClassName:I}):wl(I,a),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,...R}))}let Y2=1;const tC=()=>""+Y2++;function G2(t){return t&&(xc(t.toastId)||Ad(t.toastId))?t.toastId:tC()}function vd(t,e){return eC(t,e),e.toastId}function op(t,e){return{...e,type:e&&e.type||t,toastId:G2(e)}}function yh(t){return(e,n)=>vd(e,op(t,n))}function xn(t,e){return vd(t,op("default",e))}xn.loading=(t,e)=>vd(t,op("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=xc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,T)=>{if(g==null)return void xn.dismiss(r);const E={type:y,...c,...n,data:T},A=xc(g)?{render:g}:g;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Jo(t)?t():t;return p.then(y=>f("success",a,y)).catch(y=>f("error",o,y)),p},xn.success=yh("success"),xn.info=yh("info"),xn.error=yh("error"),xn.warning=yh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>vd(t,op("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(JT()){if(e==null||xc(n=e)||Ad(n))so.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=so.get(e.containerId);r?r.removeToast(e.id):so.forEach(i=>{i.removeToast(e.id)})}}else Id=Id.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),so.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=QT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=so.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:tC()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,vd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return $m.add(t),()=>{$m.delete(t)}},xn.play=t=>hw(!0,t),xn.pause=t=>hw(!1,t);const q2=typeof window<"u"?X.useLayoutEffect:X.useEffect,bh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ig={info:function(t){return X.createElement(bh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(bh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(bh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(bh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},X2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=W2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:R,bodyStyle:H,progressClassName:U,progressStyle:ne,updateId:q,role:ie,progress:x,rtl:le,toastId:ae,deleteToast:ze,isIn:tt,isLoading:Qe,closeOnClick:et,theme:Ye}=t,pe=wl("Toastify__toast",`Toastify__toast-theme--${Ye}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":le},{"Toastify__toast--close-on-click":et}),fe=Jo(I)?I({rtl:le,position:A,type:y,defaultClassName:pe}):wl(pe,I),Ce=function(Te){let{theme:Le,type:He,isLoading:je,icon:Fe}=Te,Ve=null;const nt={theme:Le,type:He};return Fe===!1||(Jo(Fe)?Ve=Fe({...nt,isLoading:je}):X.isValidElement(Fe)?Ve=X.cloneElement(Fe,nt):je?Ve=Ig.spinner():(ct=>ct in Ig)(He)&&(Ve=Ig[He](nt))),Ve}(t),Oe=!!x||!f,Ne={closeToast:T,type:y,theme:Ye};let me=null;return a===!1||(me=Jo(a)?a(Ne):X.isValidElement(a)?X.cloneElement(a,Ne):function(Te){let{closeToast:Le,theme:He,ariaLabel:je="close"}=Te;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${He}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Le(Fe)},"aria-label":je},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ne)),X.createElement(E,{isIn:tt,done:ze,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":tt,className:fe,...i,style:j,ref:r},X.createElement("div",{...tt&&{role:ie},className:Jo(R)?R({type:y}):wl("Toastify__toast-body",R),style:H},Ce!=null&&X.createElement("div",{className:wl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Qe})},Ce),X.createElement("div",null,c)),me,X.createElement(z2,{...q&&!Oe?{key:`pb-${q}`}:{},rtl:le,theme:Ye,delay:f,isRunning:e,isIn:tt,closeToast:T,hide:g,type:y,style:ne,className:U,controlledProgress:Oe,progress:x||0})))},_p=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},K2=Op(_p("bounce",!0));Op(_p("slide",!0));Op(_p("zoom"));Op(_p("flip"));const Z2={position:"top-right",transition:K2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function J2(t){let e={...Z2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=H2(e),{className:p,style:y,rtl:g,containerId:T}=e;function E(I){const j=wl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Jo(p)?p({position:I,rtl:g,defaultClassName:j}):wl(j,Bh(p))}function A(){n&&(i(!0),xn.play())}return q2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),R=12,H=(I=e.position)==null?void 0:I.includes("top");let U=0,ne=0;Array.from(j).reverse().forEach((q,ie)=>{const x=q;x.classList.add("Toastify__toast--stacked"),ie>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=H?"top":"bot");const le=U*(r?.2:1)+(r?0:R*ie);x.style.setProperty("--y",`${H?le:-1*le}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?ne:0))),U+=x.offsetHeight,ne+=.025})}},[r,f,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const R=j.length?{...y}:{...y,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:R,key:`container-${I}`},j.map(H=>{let{content:U,props:ne}=H;return X.createElement(X2,{...ne,stacked:n,collapseAll:A,isIn:c(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},U)}))}))}function Q2(){return be.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.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"}),be.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),be.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function eF(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),be.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function tF(){return be.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),be.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Zv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},nF=({closeToast:t})=>be.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:be.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:be.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),Jv=(t,e)=>{xn.success(t,{icon:be.jsx(eF,{}),bodyStyle:{},style:{...Zv,background:mr.successLight,borderColor:mr.success,color:mr.success},...e})},Gd=(t,e)=>{xn.error(t,{icon:be.jsx(Q2,{}),style:{...Zv,background:mr.dangerLight,borderColor:mr.danger,color:mr.danger},...e})},rF=(t,e)=>{xn.error(t,{icon:be.jsx(tF,{}),style:{...Zv,background:mr.warningLight,borderColor:mr.warning,color:mr.warning},...e})},iF=t=>{xn(t,{closeButton:nF,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:mr.textPrimary}})};function nC(t){let e=null;return()=>(e==null&&(e=t()),e)}function oF(t,e){return t.filter(n=>n!==e)}function sF(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class aF{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=sF(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=oF(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class lF{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const rC="__NATIVE_FILE__",iC="__NATIVE_URL__",oC="__NATIVE_TEXT__",sC="__NATIVE_HTML__",pw=Object.freeze(Object.defineProperty({__proto__:null,FILE:rC,HTML:sC,TEXT:oC,URL:iC},Symbol.toStringTag,{value:"Module"}));function Mg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Vm={[rC]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[sC]:{exposeProperties:{html:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[iC]:{exposeProperties:{urls:(t,e)=>Mg(t,e,"").split(`
4
+ `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[oC]:{exposeProperties:{text:(t,e)=>Mg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function uF(t,e){const n=Vm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new lF(n);return r.loadDataTransfer(e),r}function Lg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Vm).filter(n=>{const r=Vm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const cF=nC(()=>/firefox/i.test(navigator.userAgent)),aC=nC(()=>!!window.safari);class gw{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let f=0,p=a.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const E=n[y];if(E<e)f=y+1;else if(E>e)p=y-1;else return r[y]}c=Math.max(0,p);const g=e-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+a[c]*g*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],R=c+j;p.push(3*R/((R+j)/A+(R+c)/I))}}p.push(a[a.length-1]);const y=[],g=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;y.push((T-A-j)*I),g.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const fF=1;function lC(t){const e=t.nodeType===fF?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function wh(t){return{x:t.clientX,y:t.clientY}}function dF(t){var e;return t.nodeName==="IMG"&&(cF()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function hF(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return aC()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function pF(t,e,n,r,i){const o=dF(e),c=lC(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=t,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=hF(o,e,p,y),I=()=>{let ie=new gw([0,.5,1],[f.y,f.y/y*A,f.y+A-y]).interpolate(T);return aC()&&o&&(ie+=(window.devicePixelRatio-1)*A),ie},j=()=>new gw([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(g),{offsetX:R,offsetY:H}=i,U=R===0||R,ne=H===0||H;return{x:U?R:j(),y:ne?H:I()}}let gF=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function mF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mF(t,i,n[i])})}return t}class vF{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return mw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return mw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(pw).some(n=>pw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=uF(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&lC(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=wh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Lg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||g;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),U=pF(g,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,U.x,U.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Lg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:wh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=wh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Lg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:wh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new gF(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new aF(this.isNodeInDocument)}}let xh;function yF(){return xh||(xh=new Image,xh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),xh}const uC=function(e,n,r){return new vF(e,n,r)};var Sc=[],bF=function(){return Sc.some(function(t){return t.activeTargets.length>0})},wF=function(){return Sc.some(function(t){return t.skippedTargets.length>0})},vw="ResizeObserver loop completed with undelivered notifications.",xF=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:vw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=vw),window.dispatchEvent(t)},Md;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Md||(Md={}));var Tc=function(t){return Object.freeze(t)},SF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Tc(this)}return t}(),cC=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Qv=function(t){return t instanceof SVGElement&&"getBBox"in t},fC=function(t){if(Qv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},yw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},TF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},yd=typeof window<"u"?window:{},Sh=new WeakMap,bw=/auto|scroll/,CF=/^tb|vertical/,EF=/msie|trident/i.test(yd.navigator&&yd.navigator.userAgent),La=function(t){return parseFloat(t||"0")},kf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new SF((n?e:t)||0,(n?t:e)||0)},ww=Tc({devicePixelContentBoxSize:kf(),borderBoxSize:kf(),contentBoxSize:kf(),contentRect:new cC(0,0,0,0)}),dC=function(t,e){if(e===void 0&&(e=!1),Sh.has(t)&&!e)return Sh.get(t);if(fC(t))return Sh.set(t,ww),ww;var n=getComputedStyle(t),r=Qv(t)&&t.ownerSVGElement&&t.getBBox(),i=!EF&&n.boxSizing==="border-box",o=CF.test(n.writingMode||""),a=!r&&bw.test(n.overflowY||""),c=!r&&bw.test(n.overflowX||""),f=r?0:La(n.paddingTop),p=r?0:La(n.paddingRight),y=r?0:La(n.paddingBottom),g=r?0:La(n.paddingLeft),T=r?0:La(n.borderTopWidth),E=r?0:La(n.borderRightWidth),A=r?0:La(n.borderBottomWidth),I=r?0:La(n.borderLeftWidth),j=g+p,R=f+y,H=I+E,U=T+A,ne=c?t.offsetHeight-U-t.clientHeight:0,q=a?t.offsetWidth-H-t.clientWidth:0,ie=i?j+H:0,x=i?R+U:0,le=r?r.width:La(n.width)-ie-q,ae=r?r.height:La(n.height)-x-ne,ze=le+j+q+H,tt=ae+R+ne+U,Qe=Tc({devicePixelContentBoxSize:kf(Math.round(le*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:kf(ze,tt,o),contentBoxSize:kf(le,ae,o),contentRect:new cC(g,f,le,ae)});return Sh.set(t,Qe),Qe},hC=function(t,e,n){var r=dC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Md.DEVICE_PIXEL_CONTENT_BOX:return a;case Md.BORDER_BOX:return i;default:return o}},kF=function(){function t(e){var n=dC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Tc([n.borderBoxSize]),this.contentBoxSize=Tc([n.contentBoxSize]),this.devicePixelContentBoxSize=Tc([n.devicePixelContentBoxSize])}return t}(),pC=function(t){if(fC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},DF=function(){var t=1/0,e=[];Sc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var y=new kF(p.target),g=pC(p.target);c.push(y),p.lastReportedSize=hC(p.target,p.observedBox),g<t&&(t=g)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},xw=function(t){Sc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(pC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},PF=function(){var t=0;for(xw(t);bF();)t=DF(),xw(t);return wF()&&xF(),t>0},Fg,gC=[],OF=function(){return gC.splice(0).forEach(function(t){return t()})},_F=function(t){if(!Fg){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return OF()}).observe(n,r),Fg=function(){n.textContent="".concat(e?e--:e++)}}gC.push(t),Fg()},RF=function(t){_F(function(){requestAnimationFrame(t)})},$h=0,AF=function(){return!!$h},IF=250,MF={attributes:!0,characterData:!0,childList:!0,subtree:!0},Sw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Tw=function(t){return t===void 0&&(t=0),Date.now()+t},Ng=!1,LF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=IF),!Ng){Ng=!0;var r=Tw(e);RF(function(){var i=!1;try{i=PF()}finally{if(Ng=!1,e=r-Tw(),!AF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,MF)};document.body?n():yd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Sw.forEach(function(n){return yd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Sw.forEach(function(n){return yd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Um=new LF,Cw=function(t){!$h&&t>0&&Um.start(),$h+=t,!$h&&Um.stop()},FF=function(t){return!Qv(t)&&!TF(t)&&getComputedStyle(t).display==="inline"},NF=function(){function t(e,n){this.target=e,this.observedBox=n||Md.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=hC(this.target,this.observedBox,!0);return FF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),jF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Th=new WeakMap,Ew=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ch=function(){function t(){}return t.connect=function(e,n){var r=new jF(e,n);Th.set(e,r)},t.observe=function(e,n,r){var i=Th.get(e),o=i.observationTargets.length===0;Ew(i.observationTargets,n)<0&&(o&&Sc.push(i),i.observationTargets.push(new NF(n,r&&r.box)),Cw(1),Um.schedule())},t.unobserve=function(e,n){var r=Th.get(e),i=Ew(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Sc.splice(Sc.indexOf(r),1),r.observationTargets.splice(i,1),Cw(-1))},t.disconnect=function(e){var n=this,r=Th.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),BF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ch.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ch.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ch.unobserve(this,e)},t.prototype.disconnect=function(){Ch.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const mC=X.createContext({});function $F(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const ey=X.createContext(null),vC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function VF(t=!0){const e=X.useContext(ey);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const ty=typeof window<"u",UF=ty?X.useLayoutEffect:X.useEffect,Ro=t=>t;let Ff=Ro,yu=Ro;process.env.NODE_ENV!=="production"&&(Ff=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},yu=(t,e)=>{if(!t)throw new Error(e)});function ny(t){let e;return()=>(e===void 0&&(e=t()),e)}const Of=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ja=t=>t*1e3,Cl=t=>t/1e3,HF={useManualTiming:!1};function WF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,y=!1,g=!1)=>{const E=g&&r?e:n;return y&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const Eh=["read","resolveKeyframes","update","preRender","render","postRender"],zF=40;function yC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Eh.reduce((R,H)=>(R[H]=WF(o),R),{}),{read:c,resolveKeyframes:f,update:p,preRender:y,render:g,postRender:T}=a,E=()=>{const R=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,zF),1),i.timestamp=R,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),y.process(i),g.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Eh.reduce((R,H)=>{const U=a[H];return R[H]=(ne,q=!1,ie=!1)=>(n||A(),U.schedule(ne,q,ie)),R},{}),cancel:R=>{for(let H=0;H<Eh.length;H++)a[Eh[H]].cancel(R)},state:i,steps:a}}const{schedule:Fn,cancel:bu,state:Ei,steps:jg}=yC(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ro,!0),bC=X.createContext({strict:!1}),kw={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"]},_f={};for(const t in kw)_f[t]={isEnabled:e=>kw[t].some(n=>!!e[n])};function YF(t){for(const e in t)_f[e]={..._f[e],...t[e]}}const GF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||GF.has(t)}let wC=t=>!sp(t);function qF(t){t&&(wC=e=>e.startsWith("on")?!sp(e):t(e))}try{qF(require("@emotion/is-prop-valid").default)}catch{}function XF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(wC(i)||n===!0&&sp(i)||!e&&!sp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Dw=new Set;function Rp(t,e,n){t||Dw.has(e)||(console.warn(e),Dw.add(e))}function KF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Rp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Ap=X.createContext({});function Ld(t){return typeof t=="string"||Array.isArray(t)}function Ip(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const ry=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iy=["initial",...ry];function Mp(t){return Ip(t.animate)||iy.some(e=>Ld(t[e]))}function xC(t){return!!(Mp(t)||t.variants)}function ZF(t,e){if(Mp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ld(n)?n:void 0,animate:Ld(r)?r:void 0}}return t.inherit!==!1?e:{}}function JF(t){const{initial:e,animate:n}=ZF(t,X.useContext(Ap));return X.useMemo(()=>({initial:e,animate:n}),[Pw(e),Pw(n)])}function Pw(t){return Array.isArray(t)?t.join(" "):t}const QF=Symbol.for("motionComponentSymbol");function mf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function eN(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):mf(n)&&(n.current=r))},[e])}const oy=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tN="framerAppearId",SC="data-"+oy(tN),{schedule:sy}=yC(queueMicrotask,!1),TC=X.createContext({});function nN(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Ap),f=X.useContext(bC),p=X.useContext(ey),y=X.useContext(vC).reducedMotion,g=X.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const T=g.current,E=X.useContext(TC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&rN(g.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[SC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return UF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),sy.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,I)}),j.current=!1))}),T}function rN(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:CC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&mf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function CC(t){if(t)return t.options.allowProjection!==!1?t.projection:CC(t.parent)}function iN({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&YF(t);function c(p,y){let g;const T={...X.useContext(vC),...p,layoutId:oN(p)},{isStatic:E}=T,A=JF(p),I=r(p,E);if(!E&&ty){sN(T,t);const j=aN(T);g=j.MeasureLayout,A.visualElement=nN(i,I,T,e,j.ProjectionNode)}return be.jsxs(Ap.Provider,{value:A,children:[g&&A.visualElement?be.jsx(g,{visualElement:A.visualElement,...T}):null,n(i,p,eN(I,A.visualElement,y),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const f=X.forwardRef(c);return f[QF]=i,f}function oN({layoutId:t}){const e=X.useContext(mC).id;return e&&t!==void 0?e+"-"+t:t}function sN(t,e){const n=X.useContext(bC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Ff(!1,r):yu(!1,r)}}function aN(t){const{drag:e,layout:n}=_f;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const lN=["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 ay(t){return typeof t!="string"||t.includes("-")?!1:!!(lN.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ow(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ly(t,e,n,r){if(typeof e=="function"){const[i,o]=Ow(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Ow(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Hm=t=>Array.isArray(t),uN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cN=t=>Hm(t)?t[t.length-1]||0:t,Bi=t=>!!(t&&t.getVelocity);function Vh(t){const e=Bi(t)?t.get():t;return uN(e)?e.toValue():e}function fN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:dN(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const EC=t=>(e,n)=>{const r=X.useContext(Ap),i=X.useContext(ey),o=()=>fN(t,e,r,i);return n?o():$F(o)};function dN(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Vh(o[T]);let{initial:a,animate:c}=t;const f=Mp(t),p=xC(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;if(g&&typeof g!="boolean"&&!Ip(g)){const T=Array.isArray(g)?g:[g];for(let E=0;E<T.length;E++){const A=ly(t,T[E]);if(A){const{transitionEnd:I,transition:j,...R}=A;for(const H in R){let U=R[H];if(Array.isArray(U)){const ne=y?U.length-1:0;U=U[ne]}U!==null&&(i[H]=U)}for(const H in I)i[H]=I[H]}}}return i}const Nf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Nf),kC=t=>e=>typeof e=="string"&&e.startsWith(t),DC=kC("--"),hN=kC("var(--"),uy=t=>hN(t)?pN.test(t.split("/*")[0].trim()):!1,pN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Pl=(t,e,n)=>n>e?e:n<t?t:n,jf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Fd={...jf,transform:t=>Pl(0,1,t)},kh={...jf,default:1},qd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=qd("deg"),Ba=qd("%"),Ot=qd("px"),gN=qd("vh"),mN=qd("vw"),_w={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},vN={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},yN={rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:au,skewX:au,skewY:au,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Fd,originX:_w,originY:_w,originZ:Ot},Rw={...jf,transform:Math.round},cy={...vN,...yN,zIndex:Rw,size:Ot,fillOpacity:Fd,strokeOpacity:Fd,numOctaves:Rw},bN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wN=Nf.length;function xN(t,e,n){let r="",i=!0;for(let o=0;o<wN;o++){const a=Nf[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=PC(c,cy[a]);if(!f){i=!1;const y=bN[a]||a;r+=`${y}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function fy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Rc.has(f)){a=!0;continue}else if(DC(f)){i[f]=p;continue}else{const y=PC(p,cy[f]);f.startsWith("origin")?(c=!0,o[f]=y):r[f]=y}}if(e.transform||(a||n?r.transform=xN(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:y=0}=o;r.transformOrigin=`${f} ${p} ${y}`}}const SN={offset:"stroke-dashoffset",array:"stroke-dasharray"},TN={offset:"strokeDashoffset",array:"strokeDasharray"};function CN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?SN:TN;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Aw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function EN(t,e,n){const r=Aw(e,t.x,t.width),i=Aw(n,t.y,t.height);return`${r} ${i}`}function dy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g){if(fy(t,p,g),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=EN(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&CN(T,a,c,f,!1)}const hy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),OC=()=>({...hy(),attrs:{}}),py=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _C(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const RC=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 AC(t,e,n,r){_C(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(RC.has(i)?i:oy(i),e.attrs[i])}const ap={};function kN(t){Object.assign(ap,t)}function IC(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ap[t]||t==="opacity")}function gy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(Bi(i[a])||e.style&&Bi(e.style[a])||IC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function MC(t,e,n){const r=gy(t,e,n);for(const i in t)if(Bi(t[i])||Bi(e[i])){const o=Nf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function DN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Iw=["x","y","width","height","cx","cy","r"],PN={useVisualState:EC({scrapeMotionValuesFromProps:MC,createRenderState:OC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(Rc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Iw.length;c++){const f=Iw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{DN(n,r),Fn.render(()=>{dy(r,i,py(n.tagName),t.transformTemplate),AC(n,r)})})}})},ON={useVisualState:EC({scrapeMotionValuesFromProps:gy,createRenderState:hy})};function LC(t,e,n){for(const r in e)!Bi(e[r])&&!IC(r,n)&&(t[r]=e[r])}function _N({transformTemplate:t},e){return X.useMemo(()=>{const n=hy();return fy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function RN(t,e){const n=t.style||{},r={};return LC(r,n,t),Object.assign(r,_N(t,e)),r}function AN(t,e){const n={},r=RN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function IN(t,e,n,r){const i=X.useMemo(()=>{const o=OC();return dy(o,e,py(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};LC(o,t.style,t),i.style={...o,...i.style}}return i}function MN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(ay(n)?IN:AN)(r,o,a,n),p=XF(r,typeof n=="string",t),y=n!==X.Fragment?{...p,...f,ref:i}:{},{children:g}=r,T=X.useMemo(()=>Bi(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function LN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ay(r)?PN:ON,preloadedFeatures:t,useRender:MN(i),createVisualElement:e,Component:r};return iN(a)}}function FC(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 Lp(t,e,n){const r=t.getProps();return ly(r,e,n!==void 0?n:r.custom,t)}const FN=ny(()=>window.ScrollTimeline!==void 0);class NN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(FN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class jN extends NN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function my(t,e){return t?t[e]||t.default||t:void 0}const Wm=2e4;function NC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Wm;)e+=n,r=t.next(e);return e>=Wm?1/0:e}function vy(t){return typeof t=="function"}function Mw(t,e){t.timeline=e,t.onfinish=null}const yy=t=>Array.isArray(t)&&typeof t[0]=="number",BN={linearEasing:void 0};function $N(t,e){const n=ny(t);return()=>{var r;return(r=BN[e])!==null&&r!==void 0?r:n()}}const lp=$N(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Of(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function BC(t){return!!(typeof t=="function"&&lp()||!t||typeof t=="string"&&(t in zm||lp())||yy(t)||Array.isArray(t)&&t.every(BC))}const fd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,zm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fd([0,.65,.55,1]),circOut:fd([.55,0,1,.45]),backIn:fd([.31,.01,.66,-.59]),backOut:fd([.33,1.53,.69,.99])};function $C(t,e){if(t)return typeof t=="function"&&lp()?jC(t,e):yy(t)?fd(t):Array.isArray(t)?t.map(n=>$C(n,e)||zm.easeOut):zm[t]}const sa={x:!1,y:!1};function VC(){return sa.x||sa.y}function VN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function UC(t,e){const n=VN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Lw(t){return e=>{e.pointerType==="touch"||VC()||t(e)}}function UN(t,e,n={}){const[r,i,o]=UC(t,n),a=Lw(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const y=Lw(g=>{p(g),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const HC=(t,e)=>e?t===e?!0:HC(t,e.parentElement):!1,by=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,HN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WN(t){return HN.has(t.tagName)||t.tabIndex!==-1}const dd=new WeakSet;function Fw(t){return e=>{e.key==="Enter"&&t(e)}}function Bg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const zN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Fw(()=>{if(dd.has(n))return;Bg(n,"down");const i=Fw(()=>{Bg(n,"up")}),o=()=>Bg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Nw(t){return by(t)&&!VC()}function YN(t,e,n={}){const[r,i,o]=UC(t,n),a=c=>{const f=c.currentTarget;if(!Nw(c)||dd.has(f))return;dd.add(f);const p=e(c),y=(E,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",T),!(!Nw(E)||!dd.has(f))&&(dd.delete(f),typeof p=="function"&&p(E,{success:A}))},g=E=>{y(E,n.useGlobalTarget||HC(f,E.target))},T=E=>{y(E,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!WN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>zN(p,i),i)}),o}function GN(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const WC=new Set(["width","height","top","left","right","bottom",...Nf]);let Uh;function qN(){Uh=void 0}const $a={now:()=>(Uh===void 0&&$a.set(Ei.isProcessing||HF.useManualTiming?Ei.timestamp:performance.now()),Uh),set:t=>{Uh=t,queueMicrotask(qN)}};function wy(t,e){t.indexOf(e)===-1&&t.push(e)}function xy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let Sy=class{constructor(){this.subscriptions=[]}add(e){return wy(this.subscriptions,e),()=>xy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function zC(t,e){return e?t*(1e3/e):0}const jw=30,XN=t=>!isNaN(parseFloat(t));let KN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=$a.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$a.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=XN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Rp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.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=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$a.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>jw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jw);return zC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Nd(t,e){return new KN(t,e)}function ZN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Nd(n))}function JN(t,e){const n=Lp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=cN(o[a]);ZN(t,a,c)}}function QN(t){return!!(Bi(t)&&t.add)}function Ym(t,e){const n=t.getValue("willChange");if(QN(n))return n.add(e)}function YC(t){return t.props[SC]}const GC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ej=1e-7,tj=12;function nj(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=GC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>ej&&++c<tj);return a}function Xd(t,e,n,r){if(t===e&&n===r)return Ro;const i=o=>nj(o,0,1,t,n);return o=>o===0||o===1?o:GC(i(o),e,r)}const qC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,XC=t=>e=>1-t(1-e),KC=Xd(.33,1.53,.69,.99),Ty=XC(KC),ZC=qC(Ty),JC=t=>(t*=2)<1?.5*Ty(t):.5*(2-Math.pow(2,-10*(t-1))),Cy=t=>1-Math.sin(Math.acos(t)),QC=XC(Cy),eE=qC(Cy),tE=t=>/^0[^.\s]+$/u.test(t);function rj(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||tE(t):!0}const bd=t=>Math.round(t*1e5)/1e5,Ey=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ij(t){return t==null}const oj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ky=(t,e)=>n=>!!(typeof n=="string"&&oj.test(n)&&n.startsWith(t)||e&&!ij(n)&&Object.prototype.hasOwnProperty.call(n,e)),nE=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ey);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},sj=t=>Pl(0,255,t),$g={...jf,transform:t=>Math.round(sj(t))},yc={test:ky("rgb","red"),parse:nE("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+$g.transform(t)+", "+$g.transform(e)+", "+$g.transform(n)+", "+bd(Fd.transform(r))+")"};function aj(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Gm={test:ky("#"),parse:aj,transform:yc.transform},vf={test:ky("hsl","hue"),parse:nE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(bd(e))+", "+Ba.transform(bd(n))+", "+bd(Fd.transform(r))+")"},ji={test:t=>yc.test(t)||Gm.test(t)||vf.test(t),parse:t=>yc.test(t)?yc.parse(t):vf.test(t)?vf.parse(t):Gm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yc.transform(t):vf.transform(t)},lj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uj(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ey))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(lj))===null||n===void 0?void 0:n.length)||0)>0}const rE="number",iE="color",cj="var",fj="var(",Bw="${}",dj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jd(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(dj,f=>(ji.test(f)?(r.color.push(o),i.push(iE),n.push(ji.parse(f))):f.startsWith(fj)?(r.var.push(o),i.push(cj),n.push(f)):(r.number.push(o),i.push(rE),n.push(parseFloat(f))),++o,Bw)).split(Bw);return{values:n,split:c,indexes:r,types:i}}function oE(t){return jd(t).values}function sE(t){const{split:e,types:n}=jd(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===rE?o+=bd(i[a]):c===iE?o+=ji.transform(i[a]):o+=i[a]}return o}}const hj=t=>typeof t=="number"?0:t;function pj(t){const e=oE(t);return sE(t)(e.map(hj))}const wu={test:uj,parse:oE,createTransformer:sE,getAnimatableNone:pj},gj=new Set(["brightness","contrast","saturate","opacity"]);function mj(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Ey)||[];if(!r)return t;const i=n.replace(r,"");let o=gj.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const vj=/\b([a-z-]*)\(.*?\)/gu,qm={...wu,getAnimatableNone:t=>{const e=t.match(vj);return e?e.map(mj).join(" "):t}},yj={...cy,color:ji,backgroundColor:ji,outlineColor:ji,fill:ji,stroke:ji,borderColor:ji,borderTopColor:ji,borderRightColor:ji,borderBottomColor:ji,borderLeftColor:ji,filter:qm,WebkitFilter:qm},Dy=t=>yj[t];function aE(t,e){let n=Dy(t);return n!==qm&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const bj=new Set(["auto","none","0"]);function wj(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!bj.has(o)&&jd(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=aE(n,i)}const $w=t=>t===jf||t===Ot,Vw=(t,e)=>parseFloat(t.split(", ")[e]),Uw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Vw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Vw(o[1],t):0}},xj=new Set(["x","y","z"]),Sj=Nf.filter(t=>!xj.has(t));function Tj(t){const e=[];return Sj.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Rf={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:Uw(4,13),y:Uw(5,14)};Rf.translateX=Rf.x;Rf.translateY=Rf.y;const Cc=new Set;let Xm=!1,Km=!1;function lE(){if(Km){const t=Array.from(Cc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Tj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Km=!1,Xm=!1,Cc.forEach(t=>t.complete()),Cc.clear()}function uE(){Cc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Km=!0)})}function Cj(){uE(),lE()}class Py{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cc.add(this),Xm||(Xm=!0,Fn.read(uE),Fn.resolveKeyframes(lE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const f=r.readValue(n,c);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const cE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ej=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kj(t){const e=Ej.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const Dj=4;function fE(t,e,n=1){yu(n<=Dj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=kj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return cE(a)?parseFloat(a):a}return uy(i)?fE(i,e,n+1):i}const dE=t=>e=>e.test(t),Pj={test:t=>t==="auto",parse:t=>t},hE=[jf,Ot,Ba,au,mN,gN,Pj],Hw=t=>hE.find(dE(t));class pE extends Py{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),uy(p))){const y=fE(p,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!WC.has(r)||e.length!==2)return;const[i,o]=e,a=Hw(i),c=Hw(o);if(a!==c)if($w(a)&&$w(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)rj(e[i])&&r.push(i);r.length&&wj(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Rf[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Rf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Ww=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wu.test(t)||t==="0")&&!t.startsWith("url("));function Oj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _j(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Ww(i,e),c=Ww(o,e);return Ff(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Oj(t)||(n==="spring"||vy(n))&&r}const Rj=t=>t!==null;function Fp(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Rj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Aj=40;class gE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$a.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Aj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Cj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$a.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!_j(e,r,i,o))if(a)this.options.duration=0;else{f&&f(Fp(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function Vg(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 Ij({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=Vg(f,c,t+1/3),o=Vg(f,c,t),a=Vg(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function up(t,e){return n=>n>0?e:t}const Ug=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Mj=[Gm,yc,vf],Lj=t=>Mj.find(e=>e.test(t));function zw(t){const e=Lj(t);if(Ff(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===vf&&(n=Ij(n)),n}const Yw=(t,e)=>{const n=zw(t),r=zw(e);if(!n||!r)return up(t,e);const i={...n};return o=>(i.red=Ug(n.red,r.red,o),i.green=Ug(n.green,r.green,o),i.blue=Ug(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),yc.transform(i))},Fj=(t,e)=>n=>e(t(n)),Kd=(...t)=>t.reduce(Fj),Zm=new Set(["none","hidden"]);function Nj(t,e){return Zm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function jj(t,e){return n=>Kn(t,e,n)}function Oy(t){return typeof t=="number"?jj:typeof t=="string"?uy(t)?up:ji.test(t)?Yw:Vj:Array.isArray(t)?mE:typeof t=="object"?ji.test(t)?Yw:Bj:up}function mE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Oy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Bj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Oy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function $j(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const Vj=(t,e)=>{const n=wu.createTransformer(e),r=jd(t),i=jd(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Zm.has(t)&&!i.values.length||Zm.has(e)&&!r.values.length?Nj(t,e):Kd(mE($j(r,i),i.values),n):(Ff(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),up(t,e))};function vE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Oy(t)(t,e)}const Uj=5;function yE(t,e,n){const r=Math.max(e-Uj,0);return zC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Gw=.001;function Hj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Ff(t<=ja(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Pl(Xn.minDamping,Xn.maxDamping,a),t=Pl(Xn.minDuration,Xn.maxDuration,Cl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=Jm(p,a),A=Math.exp(-g);return Gw-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=Jm(Math.pow(p,2),a);return(-i(p)+Gw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=zj(i,o,c);if(t=ja(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const Wj=12;function zj(t,e,n){let r=n;for(let i=1;i<Wj;i++)r=r-t(r)/e(r);return r}function Jm(t,e){return t*Math.sqrt(1-e*e)}const Yj=["duration","bounce"],Gj=["stiffness","damping","mass"];function qw(t,e){return e.some(n=>t[n]!==void 0)}function qj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!qw(t,Gj)&&qw(t,Yj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Hj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function bE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:p,mass:y,duration:g,velocity:T,isResolvedFromDuration:E}=qj({...n,velocity:-Cl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(f*y)),j=a-o,R=Cl(Math.sqrt(f/y)),H=Math.abs(j)<5;r||(r=H?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=H?Xn.restDelta.granular:Xn.restDelta.default);let U;if(I<1){const q=Jm(R,I);U=ie=>{const x=Math.exp(-I*R*ie);return a-x*((A+I*R*j)/q*Math.sin(q*ie)+j*Math.cos(q*ie))}}else if(I===1)U=q=>a-Math.exp(-R*q)*(j+(A+R*j)*q);else{const q=R*Math.sqrt(I*I-1);U=ie=>{const x=Math.exp(-I*R*ie),le=Math.min(q*ie,300);return a-x*((A+I*R*j)*Math.sinh(le)+q*j*Math.cosh(le))/q}}const ne={calculatedDuration:E&&g||null,next:q=>{const ie=U(q);if(E)c.done=q>=g;else{let x=0;I<1&&(x=q===0?ja(A):yE(U,q,ie));const le=Math.abs(x)<=r,ae=Math.abs(a-ie)<=i;c.done=le&&ae}return c.value=c.done?a:ie,c},toString:()=>{const q=Math.min(NC(ne),Wm),ie=jC(x=>ne.next(q*x).value,q,30);return q+"ms "+ie}};return ne}function Xw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const H=le=>-I*Math.exp(-le/r),U=le=>R+H(le),ne=le=>{const ae=H(le),ze=U(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:ze};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=bE({keyframes:[T.value,A(T.value)],velocity:yE(U,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>=q?ie.next(le-q):(!ae&&ne(le),T)}}}const Xj=Xd(.42,0,1,1),Kj=Xd(0,0,.58,1),wE=Xd(.42,0,.58,1),Zj=t=>Array.isArray(t)&&typeof t[0]!="number",Kw={linear:Ro,easeIn:Xj,easeInOut:wE,easeOut:Kj,circIn:Cy,circInOut:eE,circOut:QC,backIn:Ty,backInOut:ZC,backOut:KC,anticipate:JC},Zw=t=>{if(yy(t)){yu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Xd(e,n,r,i)}else if(typeof t=="string")return yu(Kw[t]!==void 0,`Invalid easing type '${t}'`),Kw[t];return t};function Jj(t,e,n){const r=[],i=n||vE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||Ro:e;c=Kd(f,c)}r.push(c)}return r}function Qj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Jj(e,r,i),f=c.length,p=y=>{if(a&&y<t[0])return e[0];let g=0;if(f>1)for(;g<t.length-2&&!(y<t[g+1]);g++);const T=Of(t[g],t[g+1],y);return c[g](T)};return n?y=>p(Pl(t[0],t[o-1],y)):p}function eB(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Of(0,e,r);t.push(Kn(n,1,i))}}function tB(t){const e=[0];return eB(e,t.length-1),e}function nB(t,e){return t.map(n=>n*e)}function rB(t,e){return t.map(()=>e||wE).splice(0,t.length-1)}function cp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Zj(r)?r.map(Zw):Zw(r),o={done:!1,value:e[0]},a=nB(n&&n.length===e.length?n:tB(e),t),c=Qj(a,e,{ease:Array.isArray(i)?i:rB(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const iB=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>bu(e),now:()=>Ei.isProcessing?Ei.timestamp:$a.now()}},oB={decay:Xw,inertia:Xw,tween:cp,keyframes:cp,spring:bE},sB=t=>t/100;class _y extends gE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Py,c=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=vy(n)?n:oB[n]||cp;let f,p;c!==cp&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=Kd(sB,vE(e[0],e[1])),e=[0,100]);const y=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=NC(y));const{calculatedDuration:g}=y,T=g+i,E=T*(r+1)-i;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:le}=this.options;return{done:!0,value:le[le.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:y,resolvedDuration:g}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-T*(this.speed>=0?1:-1),H=this.speed>=0?R<0:R>y;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let U=this.currentTime,ne=o;if(E){const le=Math.min(this.currentTime,y)/g;let ae=Math.floor(le),ze=le%1;!ze&&le>=1&&(ze=1),ze===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?(ze=1-ze,I&&(ze-=I/g)):A==="mirror"&&(ne=a)),U=Pl(0,1,ze)*g}const q=H?{done:!1,value:f[0]}:ne.next(U);c&&(q.value=c(q.value));let{done:ie}=q;!H&&p!==null&&(ie=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return x&&i!==void 0&&(q.value=Fp(f,this.options,i)),j&&j(q.value),x&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Cl(e.calculatedDuration):0}get time(){return Cl(this.currentTime)}set time(e){e=ja(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Cl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=iB,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const aB=new Set(["opacity","clipPath","filter","transform"]);function lB(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=$C(c,i);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const uB=ny(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),fp=10,cB=2e4;function fB(t){return vy(t.type)||t.type==="spring"||!BC(t.ease)}function dB(t,e){const n=new _y({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<cB;)r=n.sample(o),i.push(r.value),o+=fp;return{times:void 0,keyframes:i,duration:o-fp,ease:"linear"}}const xE={anticipate:JC,backInOut:ZC,circInOut:eE};function hB(t){return t in xE}class Jw extends gE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new pE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&lp()&&hB(o)&&(o=xE[o]),fB(this.options)){const{onComplete:g,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=dB(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const y=lB(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(Mw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:g}=this.options;c.set(Fp(e,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Cl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Cl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ja(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ro;const{animation:r}=n;Mw(r,e)}return Ro}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:g,element:T,...E}=this.options,A=new _y({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=ja(this.time);p.setWithVelocity(A.sample(I-fp).value,A.sample(I).value,fp)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return uB()&&r&&aB.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const pB={type:"spring",stiffness:500,damping:25,restSpeed:10},gB=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),mB={type:"keyframes",duration:.8},vB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yB=(t,{keyframes:e})=>e.length>2?mB:Rc.has(t)?t.startsWith("scale")?gB(e[1]):pB:vB;function bB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}const Ry=(t,e,n,r={},i,o)=>a=>{const c=my(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ja(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};bB(c)||(y={...y,...yB(t,y)}),y.duration&&(y.duration=ja(y.duration)),y.repeatDelay&&(y.repeatDelay=ja(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let g=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(g=!0)),g&&!o&&e.get()!==void 0){const T=Fp(y.keyframes,c);if(T!==void 0)return Fn.update(()=>{y.onUpdate(T),y.onComplete()}),new jN([])}return!o&&Jw.supports(y)?new Jw(y):new _y(y)};function wB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function SE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in f){const T=t.getValue(g,(o=t.latestValues[g])!==null&&o!==void 0?o:null),E=f[g];if(E===void 0||y&&wB(y,g))continue;const A={delay:n,...my(a||{},g)};let I=!1;if(window.MotionHandoffAnimation){const R=YC(t);if(R){const H=window.MotionHandoffAnimation(R,g,Fn);H!==null&&(A.startTime=H,I=!0)}}Ym(t,g),T.start(Ry(g,T,E,t.shouldReduceMotion&&WC.has(g)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&JN(t,c)})}),p}function Qm(t,e,n={}){var r;const i=Lp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(SE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:g,staggerDirection:T}=o;return xB(t,e,y+p,g,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,y]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>y())}else return Promise.all([a(),c(n.delay)])}function xB(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(SB).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(Qm(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function SB(t,e){return t.sortNodePosition(e)}function TB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Qm(t,e,n);else{const i=typeof e=="function"?Lp(t,e,n.custom):e;r=Promise.all(SE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const CB=iy.length;function TE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?TE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<CB;n++){const r=iy[n],i=t.props[r];(Ld(i)||i===!1)&&(e[r]=i)}return e}const EB=[...ry].reverse(),kB=ry.length;function DB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>TB(t,n,r)))}function PB(t){let e=DB(t),n=Qw(),r=!0;const i=f=>(p,y)=>{var g;const T=Lp(t,y,f==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,y=TE(t.parent)||{},g=[],T=new Set;let E={},A=1/0;for(let j=0;j<kB;j++){const R=EB[j],H=n[R],U=p[R]!==void 0?p[R]:y[R],ne=Ld(U),q=R===f?H.isActive:null;q===!1&&(A=j);let ie=U===y[R]&&U!==p[R]&&ne;if(ie&&r&&t.manuallyAnimateOnMount&&(ie=!1),H.protectedKeys={...E},!H.isActive&&q===null||!U&&!H.prevProp||Ip(U)||typeof U=="boolean")continue;const x=OB(H.prevProp,U);let le=x||R===f&&H.isActive&&!ie&&ne||j>A&&ne,ae=!1;const ze=Array.isArray(U)?U:[U];let tt=ze.reduce(i(R),{});q===!1&&(tt={});const{prevResolvedValues:Qe={}}=H,et={...Qe,...tt},Ye=Ce=>{le=!0,T.has(Ce)&&(ae=!0,T.delete(Ce)),H.needsAnimating[Ce]=!0;const Oe=t.getValue(Ce);Oe&&(Oe.liveStyle=!1)};for(const Ce in et){const Oe=tt[Ce],Ne=Qe[Ce];if(E.hasOwnProperty(Ce))continue;let me=!1;Hm(Oe)&&Hm(Ne)?me=!FC(Oe,Ne):me=Oe!==Ne,me?Oe!=null?Ye(Ce):T.add(Ce):Oe!==void 0&&T.has(Ce)?Ye(Ce):H.protectedKeys[Ce]=!0}H.prevProp=U,H.prevResolvedValues=tt,H.isActive&&(E={...E,...tt}),r&&t.blockInitialAnimation&&(le=!1),le&&(!(ie&&x)||ae)&&g.push(...ze.map(Ce=>({animation:Ce,options:{type:R}})))}if(T.size){const j={};T.forEach(R=>{const H=t.getBaseTarget(R),U=t.getValue(R);U&&(U.liveStyle=!0),j[R]=H??null}),g.push({animation:j})}let I=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(g):Promise.resolve()}function c(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(f,p)}),n[f].isActive=p;const g=a(f);for(const T in n)n[T].protectedKeys={};return g}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Qw(),r=!0}}}function OB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!FC(e,t):!1}function ac(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qw(){return{animate:ac(!0),whileInView:ac(),whileHover:ac(),whileTap:ac(),whileDrag:ac(),whileFocus:ac(),exit:ac()}}let ku=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},_B=class extends ku{constructor(e){super(e),e.animationState||(e.animationState=PB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ip(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},RB=0,AB=class extends ku{constructor(){super(...arguments),this.id=RB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const IB={animation:{Feature:_B},exit:{Feature:AB}};function Bd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Zd(t){return{point:{x:t.pageX,y:t.pageY}}}const MB=t=>e=>by(e)&&t(e,Zd(e));function wd(t,e,n,r){return Bd(t,e,MB(n),r)}const ex=(t,e)=>Math.abs(t-e);function LB(t,e){const n=ex(t.x,e.x),r=ex(t.y,e.y);return Math.sqrt(n**2+r**2)}let CE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Wg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=LB(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ei;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Hg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Wg(g.type==="pointercancel"?this.lastMoveEventInfo:Hg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!by(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Zd(e),c=Hg(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ei;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,Wg(c,this.history)),this.removeListeners=Kd(wd(this.contextWindow,"pointermove",this.handlePointerMove),wd(this.contextWindow,"pointerup",this.handlePointerUp),wd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bu(this.updatePoint)}};function Hg(t,e){return e?{point:e(t.point)}:t}function tx(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Wg({point:t},e){return{point:t,delta:tx(t,EE(e)),offset:tx(t,FB(e)),velocity:NB(e,.1)}}function FB(t){return t[0]}function EE(t){return t[t.length-1]}function NB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=EE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ja(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const kE=1e-4,jB=1-kE,BB=1+kE,DE=.01,$B=0-DE,VB=0+DE;function ts(t){return t.max-t.min}function UB(t,e,n){return Math.abs(t-e)<=n}function nx(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=ts(n)/ts(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=jB&&t.scale<=BB||isNaN(t.scale))&&(t.scale=1),(t.translate>=$B&&t.translate<=VB||isNaN(t.translate))&&(t.translate=0)}function xd(t,e,n,r){nx(t.x,e.x,n.x,r?r.originX:void 0),nx(t.y,e.y,n.y,r?r.originY:void 0)}function rx(t,e,n){t.min=n.min+e.min,t.max=t.min+ts(e)}function HB(t,e,n){rx(t.x,e.x,n.x),rx(t.y,e.y,n.y)}function ix(t,e,n){t.min=e.min-n.min,t.max=t.min+ts(e)}function Sd(t,e,n){ix(t.x,e.x,n.x),ix(t.y,e.y,n.y)}function WB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function ox(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 zB(t,{top:e,left:n,bottom:r,right:i}){return{x:ox(t.x,n,i),y:ox(t.y,e,r)}}function sx(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 YB(t,e){return{x:sx(t.x,e.x),y:sx(t.y,e.y)}}function GB(t,e){let n=.5;const r=ts(t),i=ts(e);return i>r?n=Of(e.min,e.max-r,t.min):r>i&&(n=Of(t.min,t.max-i,e.min)),Pl(0,1,n)}function qB(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 ev=.35;function XB(t=ev){return t===!1?t=0:t===!0&&(t=ev),{x:ax(t,"left","right"),y:ax(t,"top","bottom")}}function ax(t,e,n){return{min:lx(t,e),max:lx(t,n)}}function lx(t,e){return typeof t=="number"?t:t[e]||0}const ux=()=>({translate:0,scale:1,origin:0,originPoint:0}),yf=()=>({x:ux(),y:ux()}),cx=()=>({min:0,max:0}),gr=()=>({x:cx(),y:cx()});function Os(t){return[t("x"),t("y")]}function PE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function KB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function ZB(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 zg(t){return t===void 0||t===1}function tv({scale:t,scaleX:e,scaleY:n}){return!zg(t)||!zg(e)||!zg(n)}function fc(t){return tv(t)||OE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function OE(t){return fx(t.x)||fx(t.y)}function fx(t){return t&&t!=="0%"}function dp(t,e,n){const r=t-n,i=e*r;return n+i}function dx(t,e,n,r,i){return i!==void 0&&(t=dp(t,i,r)),dp(t,n,r)+e}function nv(t,e=0,n=1,r,i){t.min=dx(t.min,e,n,r,i),t.max=dx(t.max,e,n,r,i)}function _E(t,{x:e,y:n}){nv(t.x,e.translate,e.scale,e.originPoint),nv(t.y,n.translate,n.scale,n.originPoint)}const hx=.999999999999,px=1.0000000000001;function JB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&wf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,_E(t,a)),r&&fc(o.latestValues)&&wf(t,o.latestValues))}e.x<px&&e.x>hx&&(e.x=1),e.y<px&&e.y>hx&&(e.y=1)}function bf(t,e){t.min=t.min+e,t.max=t.max+e}function gx(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);nv(t,e,n,o,r)}function wf(t,e){gx(t.x,e.x,e.scaleX,e.scale,e.originX),gx(t.y,e.y,e.scaleY,e.scale,e.originY)}function RE(t,e){return PE(ZB(t.getBoundingClientRect(),e))}function QB(t,e,n){const r=RE(t,n),{scroll:i}=e;return i&&(bf(r.x,i.offset.x),bf(r.y,i.offset.y)),r}const AE=({current:t})=>t?t.ownerDocument.defaultView:null,e$=new WeakMap;let t$=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zd(y).point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=GN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Os(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Ba.test(R)){const{projection:H}=this.visualElement;if(H&&H.layout){const U=H.layout.layoutBox[j];U&&(R=ts(U)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Fn.postRender(()=>A(y,g)),Ym(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=n$(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>Os(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new CE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:AE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>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.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Dh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=WB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&mf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zB(i.layoutBox,n):this.constraints=!1,this.elastic=XB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Os(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=qB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!mf(e))return!1;const r=e.current;yu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=QB(r,i.root,this.visualElement.getTransformPagePoint());let a=YB(i.layout.layoutBox,o);if(n){const c=n(KB(a));this.hasMutatedConstraints=!!c,c&&(a=PE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Os(y=>{if(!Dh(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Ym(this.visualElement,e),r.start(Ry(e,r,0,n,this.visualElement,!1))}stopAnimation(){Os(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Os(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Os(n=>{const{drag:r}=this.getProps();if(!Dh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Os(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();i[a]=GB({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Os(a=>{if(!Dh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;e$.set(this.visualElement,this);const e=this.visualElement.current,n=wd(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();mf(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Bd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Os(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=ev,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Dh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function n$(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let r$=class extends ku{constructor(e){super(e),this.removeGroupControls=Ro,this.removeListeners=Ro,this.controls=new t$(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ro}unmount(){this.removeGroupControls(),this.removeListeners()}};const mx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let i$=class extends ku{constructor(){super(...arguments),this.removePointerDownListener=Ro}onPointerDown(e){this.session=new CE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:AE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:mx(e),onStart:mx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=wd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Hh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const sd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=vx(t,e.target.x),r=vx(t,e.target.y);return`${n}% ${r}%`}},o$={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=wu.parse(t);if(i.length>5)return r;const o=wu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let s$=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;kN(a$),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),sy.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function IE(t){const[e,n]=VF(),r=X.useContext(mC);return be.jsx(s$,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(TC),isPresent:e,safeToRemove:n})}const a$={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:o$};function l$(t,e,n){const r=Bi(t)?t:Nd(t);return r.start(Ry("",r,e,n)),r.animation}function u$(t){return t instanceof SVGElement&&t.tagName!=="svg"}const c$=(t,e)=>t.depth-e.depth;let f$=class{constructor(){this.children=[],this.isDirty=!1}add(e){wy(this.children,e),this.isDirty=!0}remove(e){xy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(c$),this.isDirty=!1,this.children.forEach(e)}};function d$(t,e){const n=$a.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(bu(r),t(o-e))};return Fn.read(r,!0),()=>bu(r)}const ME=["TopLeft","TopRight","BottomLeft","BottomRight"],h$=ME.length,yx=t=>typeof t=="string"?parseFloat(t):t,bx=t=>typeof t=="number"||Ot.test(t);function p$(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,g$(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,m$(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<h$;a++){const c=`border${ME[a]}Radius`;let f=wx(e,c),p=wx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||bx(f)===bx(p)?(t[c]=Math.max(Kn(yx(f),yx(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function wx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const g$=LE(0,.5,QC),m$=LE(.5,.95,Ro);function LE(t,e,n){return r=>r<t?0:r>e?1:n(Of(t,e,r))}function xx(t,e){t.min=e.min,t.max=e.max}function Es(t,e){xx(t.x,e.x),xx(t.y,e.y)}function Sx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Tx(t,e,n,r,i){return t-=e,t=dp(t,1/n,r),i!==void 0&&(t=dp(t,1/i,r)),t}function v$(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=Tx(t.min,e,n,c,i),t.max=Tx(t.max,e,n,c,i)}function Cx(t,e,[n,r,i],o,a){v$(t,e[n],e[r],e[i],e.scale,o,a)}const y$=["x","scaleX","originX"],b$=["y","scaleY","originY"];function Ex(t,e,n,r){Cx(t.x,e,y$,n?n.x:void 0,r?r.x:void 0),Cx(t.y,e,b$,n?n.y:void 0,r?r.y:void 0)}function kx(t){return t.translate===0&&t.scale===1}function FE(t){return kx(t.x)&&kx(t.y)}function Dx(t,e){return t.min===e.min&&t.max===e.max}function w$(t,e){return Dx(t.x,e.x)&&Dx(t.y,e.y)}function Px(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function NE(t,e){return Px(t.x,e.x)&&Px(t.y,e.y)}function Ox(t){return ts(t.x)/ts(t.y)}function _x(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let x$=class{constructor(){this.members=[]}add(e){wy(this.members,e),e.scheduleRender()}remove(e){if(xy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function S$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:g,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const dc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},hd=typeof window<"u"&&window.MotionDebug!==void 0,Yg=["","X","Y","Z"],T$={visibility:"hidden"},Rx=1e3;let C$=0;function Gg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function jE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=YC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&jE(r)}function BE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=C$++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,hd&&(dc.totalNodes=dc.resolvedTargetDeltas=dc.recalculatedProjection=0),this.nodes.forEach(D$),this.nodes.forEach(A$),this.nodes.forEach(I$),this.nodes.forEach(P$),hd&&window.MotionDebug.record(dc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new f$)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Sy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=u$(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=d$(T,250),Hh.hasAnimatedSinceResize&&(Hh.hasAnimatedSinceResize=!1,this.nodes.forEach(Ix))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||j$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),H=!this.targetLayout||!NE(this.targetLayout,A)||E,U=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const ne={...my(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||Ix(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bu(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(M$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ax);return}this.isUpdating||this.nodes.forEach(_$),this.isUpdating=!1,this.nodes.forEach(R$),this.nodes.forEach(E$),this.nodes.forEach(k$),this.clearAllSnapshots();const c=$a.now();Ei.delta=Pl(0,1e3/60,c-Ei.timestamp),Ei.timestamp=c,Ei.isProcessing=!0,jg.update.process(Ei),jg.preRender.process(Ei),jg.render.process(Ei),Ei.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(O$),this.sharedNodes.forEach(L$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!FE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||fc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),B$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some($$))){const{scroll:y}=this.root;y&&(bf(f.x,y.offset.x),bf(f.y,y.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(Es(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:g,options:T}=y;y!==this.root&&g&&T.layoutScroll&&(g.wasRoot&&Es(f,a),bf(f.x,g.offset.x),bf(f.y,g.offset.y))}return f}applyTransform(a,c=!1){const f=gr();Es(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&wf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fc(y.latestValues)&&wf(f,y.latestValues)}return fc(this.latestValues)&&wf(f,this.latestValues),f}removeTransform(a){const c=gr();Es(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!fc(p.latestValues))continue;tv(p.latestValues)&&p.updateSnapshot();const y=gr(),g=p.measurePageBox();Es(y,g),Ex(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fc(this.latestValues)&&Ex(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Ei.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ei.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),Sd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),HB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),_E(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),Sd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hd&&dc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||tv(this.parent.latestValues)||OE(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 a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ei.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;JB(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sx(this.prevProjectionDelta.x,this.projectionDelta.x),Sx(this.prevProjectionDelta.y,this.projectionDelta.y)),xd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!_x(this.projectionDelta.x,this.prevProjectionDelta.x)||!_x(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),hd&&dc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yf(),this.projectionDelta=yf(),this.projectionDeltaWithTransform=yf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=yf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,H=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(N$));this.animationProgress=0;let U;this.mixTargetDelta=ne=>{const q=ne/1e3;Mx(g.x,a.x,q),Mx(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F$(this.relativeTarget,this.relativeTargetOrigin,T,q),U&&w$(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=gr()),Es(U,this.relativeTarget)),I&&(this.animationValues=y,p$(y,p,this.latestValues,q,H,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Hh.hasAnimatedSinceResize=!0,this.currentAnimation=l$(0,Rx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Rx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&$E(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const g=ts(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=ts(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Es(c,f),wf(c,y),xd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new x$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Gg("z",a,p,this.animationValues);for(let y=0;y<Yg.length;y++)Gg(`rotate${Yg[y]}`,a,p,this.animationValues),Gg(`skew${Yg[y]}`,a,p,this.animationValues);a.render();for(const y in p)a.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return T$;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Vh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Vh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=S$(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in ap){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=ap[I],H=p.transform==="none"?T[I]:j(T[I],g);if(R){const U=R.length;for(let ne=0;ne<U;ne++)p[R[ne]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?Vh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ax),this.root.sharedNodes.clear()}}}function E$(t){t.updateLayout()}function k$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Os(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ts(T);T.min=r[g].min,T.max=T.min+E}):$E(o,n.layoutBox,r)&&Os(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ts(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=yf();xd(c,r,n.layoutBox);const f=yf();a?xd(f,t.applyTransform(i,!0),n.measuredBox):xd(f,r,n.layoutBox);const p=!FE(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=gr();Sd(A,n.layoutBox,T.layoutBox);const I=gr();Sd(I,r,E.layoutBox),NE(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function D$(t){hd&&dc.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 P$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function O$(t){t.clearSnapshot()}function Ax(t){t.clearMeasurements()}function _$(t){t.isLayoutDirty=!1}function R$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ix(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function A$(t){t.resolveTargetDelta()}function I$(t){t.calcProjection()}function M$(t){t.resetSkewAndRotation()}function L$(t){t.removeLeadSnapshot()}function Mx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Lx(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function F$(t,e,n,r){Lx(t.x,e.x,n.x,r),Lx(t.y,e.y,n.y,r)}function N$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const j$={duration:.45,ease:[.4,0,.1,1]},Fx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Nx=Fx("applewebkit/")&&!Fx("chrome/")?Math.round:Ro;function jx(t){t.min=Nx(t.min),t.max=Nx(t.max)}function B$(t){jx(t.x),jx(t.y)}function $E(t,e,n){return t==="position"||t==="preserve-aspect"&&!UB(Ox(e),Ox(n),.2)}function $$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const V$=BE({attachResizeListener:(t,e)=>Bd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qg={current:void 0},VE=BE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qg.current){const t=new V$({});t.mount(window),t.setOptions({layoutScroll:!0}),qg.current=t}return qg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),U$={pan:{Feature:i$},drag:{Feature:r$,ProjectionNode:VE,MeasureLayout:IE}};function Bx(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,Zd(e)))}let H$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=UN(e,n=>(Bx(this.node,n,"Start"),r=>Bx(this.node,r,"End"))))}unmount(){}},W$=class extends ku{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=Kd(Bd(this.node.current,"focus",()=>this.onFocus()),Bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function $x(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,Zd(e)))}let z$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=YN(e,n=>($x(this.node,n,"Start"),(r,{success:i})=>$x(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const rv=new WeakMap,Xg=new WeakMap,Y$=t=>{const e=rv.get(t.target);e&&e(t)},G$=t=>{t.forEach(Y$)};function q$({root:t,...e}){const n=t||document;Xg.has(n)||Xg.set(n,{});const r=Xg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(G$,{root:t,...e})),r[i]}function X$(t,e,n){const r=q$(e);return rv.set(t,n),r.observe(t),()=>{rv.delete(t),r.unobserve(t)}}const K$={some:0,all:1};let Z$=class extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:K$[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return X$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(J$(e,n))&&this.startObserver()}unmount(){}};function J$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Q$={inView:{Feature:Z$},tap:{Feature:z$},focus:{Feature:W$},hover:{Feature:H$}},eV={layout:{ProjectionNode:VE,MeasureLayout:IE}},iv={current:null},UE={current:!1};function tV(){if(UE.current=!0,!!ty)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iv.current=t.matches;t.addListener(e),e()}else iv.current=!1}const nV=[...hE,ji,wu],rV=t=>nV.find(dE(t)),Vx=new WeakMap;function iV(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Bi(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Rp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(Bi(o))t.addValue(r,Nd(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Nd(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ux=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let oV=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Py,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.renderScheduledAt=0,this.scheduleRender=()=>{const E=$a.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:y}=a;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Mp(n),this.isVariantNode=xC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];f[E]!==void 0&&Bi(A)&&A.set(f[E],!1)}}mount(e){this.current=e,Vx.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)),UE.current||tV(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:iv.current,process.env.NODE_ENV!=="production"&&Rp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Vx.delete(this.current),this.projection&&this.projection.unmount(),bu(this.notifyUpdate),bu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),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){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Rc.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in _f){const n=_f[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=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<Ux.length;r++){const i=Ux[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=iV(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&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=Nd(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(cE(i)||tE(i))?i=parseFloat(i):!rV(i)&&wu.test(n)&&(i=aE(e,n)),this.setBaseTarget(e,Bi(i)?i.get():i)),Bi(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ly(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Bi(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},HE=class extends oV{constructor(){super(...arguments),this.KeyframeResolver=pE}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Bi(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function sV(t){return window.getComputedStyle(t)}let aV=class extends HE{constructor(){super(...arguments),this.type="html",this.renderInstance=_C}readValueFromInstance(e,n){if(Rc.has(n)){const r=Dy(n);return r&&r.default||0}else{const r=sV(e),i=(DC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return RE(e,n)}build(e,n,r){fy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return gy(e,n,r)}},lV=class extends HE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=Dy(n);return r&&r.default||0}return n=RC.has(n)?n:oy(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return MC(e,n,r)}build(e,n,r){dy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){AC(e,n,r,i)}mount(e){this.isSVGTag=py(e.tagName),super.mount(e)}};const uV=(t,e)=>ay(t)?new lV(e):new aV(e,{allowProjection:t!==X.Fragment}),cV=LN({...IB,...Q$,...U$,...eV},uV),fV=KF(cV);function ov(t,e,n){var r,i,o,a,c;e==null&&(e=100);function f(){var y=Date.now()-a;y<e&&y>=0?r=setTimeout(f,e-y):(r=null,n||(c=t.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,a=Date.now();var y=n&&!r;return r||(r=setTimeout(f,e)),y&&(c=t.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}ov.debounce=ov;var dV=ov;const Hx=Eu(dV);function hV(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,c]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=e?typeof e=="number"?e:e.scroll:null,y=e?typeof e=="number"?e:e.resize:null,g=X.useRef(!1);X.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[T,E,A]=X.useMemo(()=>{const H=()=>{if(!f.current.element)return;const{left:U,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:ze}=f.current.element.getBoundingClientRect(),tt={left:U,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:ze};f.current.element instanceof HTMLElement&&i&&(tt.height=f.current.element.offsetHeight,tt.width=f.current.element.offsetWidth),Object.freeze(tt),g.current&&!vV(f.current.lastBounds,tt)&&c(f.current.lastBounds=tt)};return[H,y?Hx(H,y):H,p?Hx(H,p):H]},[c,i,p,y]);function I(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(H=>H.removeEventListener("scroll",A,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function j(){f.current.element&&(f.current.resizeObserver=new o(A),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(H=>H.addEventListener("scroll",A,{capture:!0,passive:!0})))}const R=H=>{!H||H===f.current.element||(I(),f.current.element=H,f.current.scrollContainers=WE(H),j())};return gV(A,!!n),pV(E),X.useEffect(()=>{I(),j()},[n,A,E]),X.useEffect(()=>I,[]),[R,a,T]}function pV(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function gV(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function WE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...WE(t.parentElement)]}const mV=["x","y","top","bottom","left","right","width","height"],vV=(t,e)=>mV.every(n=>t[n]===e[n]),zE=X.createContext({dragDropManager:void 0});function ks(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Wx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),zx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yx={INIT:"@@redux/INIT"+zx(),REPLACE:"@@redux/REPLACE"+zx()};function yV(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function bV(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(SV(t))return"date";if(xV(t))return"error";var n=wV(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function wV(t){return typeof t.constructor=="function"?t.constructor.name:null}function xV(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function SV(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function cf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=bV(t)),e}function YE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ks(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ks(1):"Expected the enhancer to be a function. Instead, received: '"+cf(n)+"'");return n(YE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?ks(2):"Expected the root reducer to be a function. Instead, received: '"+cf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?ks(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(4):"Expected the listener to be a function. Instead, received: '"+cf(I)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?ks(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(f)throw new Error(process.env.NODE_ENV==="production"?ks(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var H=c.indexOf(I);c.splice(H,1),a=null}}}function T(I){if(!yV(I))throw new Error(process.env.NODE_ENV==="production"?ks(7):"Actions must be plain objects. Instead, the actual type was: '"+cf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?ks(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?ks(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var j=a=c,R=0;R<j.length;R++){var H=j[R];H()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?ks(10):"Expected the nextReducer to be a function. Instead, received: '"+cf(I));i=I,T({type:Yx.REPLACE})}function A(){var I,j=g;return I={subscribe:function(H){if(typeof H!="object"||H===null)throw new Error(process.env.NODE_ENV==="production"?ks(11):"Expected the observer to be an object. Instead, received: '"+cf(H)+"'");function U(){H.next&&H.next(y())}U();var ne=j(U);return{unsubscribe:ne}}},I[Wx]=function(){return this},I}return T({type:Yx.INIT}),r={dispatch:T,subscribe:g,getState:y,replaceReducer:E},r[Wx]=A,r}function Ht(t,e,...n){if(TV()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function TV(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function CV(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function EV(t,e){return t.filter(n=>n!==e)}function GE(t){return typeof t=="object"}function kV(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function DV(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ay="dnd-core/INIT_COORDS",Np="dnd-core/BEGIN_DRAG",Iy="dnd-core/PUBLISH_DRAG_SOURCE",jp="dnd-core/HOVER",Bp="dnd-core/DROP",$p="dnd-core/END_DRAG";function Gx(t,e){return{type:Ay,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const PV={type:Ay,payload:{clientOffset:null,sourceClientOffset:null}};function OV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Gx(o)),_V(n,c,f);const p=IV(n,c);if(p==null){t.dispatch(PV);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");RV(a),y=a(p)}t.dispatch(Gx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;AV(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Np,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function _V(t,e,n){Ht(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ht(n.getSource(r),"Expected sourceIds to be registered.")})}function RV(t){Ht(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function AV(t){Ht(GE(t),"Item must be an object.")}function IV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function MV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MV(t,i,n[i])})}return t}function FV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();NV(r),$V(r).forEach((a,c)=>{const f=jV(a,c,i,r),p={type:Bp,payload:{dropResult:LV({},n,f)}};t.dispatch(p)})}}function NV(t){Ht(t.isDragging(),"Cannot call drop while not dragging."),Ht(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function jV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return BV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function BV(t){Ht(typeof t>"u"||GE(t),"Drop result must either be an object or undefined.")}function $V(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function VV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();UV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:$p}}}function UV(t){Ht(t.isDragging(),"Cannot call endDrag while not dragging.")}function sv(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function HV(t){return function(n,{clientOffset:r}={}){WV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return YV(i,a,c),zV(i,o,a),GV(i,o,a),{type:jp,payload:{targetIds:i,clientOffset:r||null}}}}function WV(t){Ht(Array.isArray(t),"Expected targetIds to be an array.")}function zV(t,e,n){Ht(e.isDragging(),"Cannot call hover while not dragging."),Ht(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ht(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ht(o,"Expected targetIds to be registered.")}}function YV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);sv(o,n)||t.splice(r,1)}}function GV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function qV(t){return function(){if(t.getMonitor().isDragging())return{type:Iy}}}function XV(t){return{beginDrag:OV(t),publishDragSource:qV(t),hover:HV(t),drop:FV(t),endDrag:VV(t)}}class KV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=XV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function ZV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function qE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function JV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:qE(ZV(e,r),n)}function QV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:qE(e,n)}const Td=[],My=[];Td.__IS_NONE__=!0;My.__IS_ALL__=!0;function e3(t,e){return t===Td?!1:t===My||typeof e>"u"?!0:DV(e,t).length>0}class t3{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ht(typeof e=="function","listener must be a function."),Ht(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!e3(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ht(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ht(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ht(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return sv(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ht(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!sv(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return JV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return QV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const qx=typeof global<"u"?global:self,XE=qx.MutationObserver||qx.WebKitMutationObserver;function KE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function n3(t){let e=1;const n=new XE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const r3=typeof XE=="function"?n3:KE;class i3{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=r3(this.flush),this.requestErrorThrow=KE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class o3{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class s3{create(e){const n=this.freeTasks,r=n.length?n.pop():new o3(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const ZE=new i3,a3=new s3(ZE.registerPendingError);function l3(t){ZE.enqueueTask(a3.create(t))}const Ly="dnd-core/ADD_SOURCE",Fy="dnd-core/ADD_TARGET",Ny="dnd-core/REMOVE_SOURCE",Vp="dnd-core/REMOVE_TARGET";function u3(t){return{type:Ly,payload:{sourceId:t}}}function c3(t){return{type:Fy,payload:{targetId:t}}}function f3(t){return{type:Ny,payload:{sourceId:t}}}function d3(t){return{type:Vp,payload:{targetId:t}}}function h3(t){Ht(typeof t.canDrag=="function","Expected canDrag to be a function."),Ht(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ht(typeof t.endDrag=="function","Expected endDrag to be a function.")}function p3(t){Ht(typeof t.canDrop=="function","Expected canDrop to be a function."),Ht(typeof t.hover=="function","Expected hover to be a function."),Ht(typeof t.drop=="function","Expected beginDrag to be a function.")}function av(t,e){if(e&&Array.isArray(t)){t.forEach(n=>av(n,!1));return}Ht(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Rs;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Rs||(Rs={}));let g3=0;function m3(){return g3++}function v3(t){const e=m3().toString();switch(t){case Rs.SOURCE:return`S${e}`;case Rs.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Xx(t){switch(t[0]){case"S":return Rs.SOURCE;case"T":return Rs.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Kx(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class y3{addSource(e,n){av(e),h3(n);const r=this.addHandler(Rs.SOURCE,e,n);return this.store.dispatch(u3(r)),r}addTarget(e,n){av(e,!0),p3(n);const r=this.addHandler(Rs.TARGET,e,n);return this.store.dispatch(c3(r)),r}containsHandler(e){return Kx(this.dragSources,e)||Kx(this.dropTargets,e)}getSource(e,n=!1){return Ht(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ht(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Xx(e)===Rs.SOURCE}isTargetId(e){return Xx(e)===Rs.TARGET}removeSource(e){Ht(this.getSource(e),"Expected an existing source."),this.store.dispatch(f3(e)),l3(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ht(this.getTarget(e),"Expected an existing target."),this.store.dispatch(d3(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ht(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ht(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=v3(e);return this.types.set(i,n),e===Rs.SOURCE?this.dragSources.set(i,r):e===Rs.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const b3=(t,e)=>t===e;function w3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function x3(t,e,n=b3){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function S3(t=Td,e){switch(e.type){case jp:break;case Ly:case Fy:case Vp:case Ny:return Td;case Np:case Iy:case $p:case Bp:default:return My}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=kV(n,r);if(!(i.length>0||!x3(n,r)))return Td;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function T3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){T3(t,i,n[i])})}return t}const Zx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function E3(t=Zx,e){const{payload:n}=e;switch(e.type){case Ay:case Np:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case jp:return w3(t.clientOffset,n.clientOffset)?t:C3({},t,{clientOffset:n.clientOffset});case $p:case Bp:return Zx;default:return t}}function k3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){k3(t,i,n[i])})}return t}const D3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function P3(t=D3,e){const{payload:n}=e;switch(e.type){case Np:return ff({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Iy:return ff({},t,{isSourcePublic:!0});case jp:return ff({},t,{targetIds:n.targetIds});case Vp:return t.targetIds.indexOf(n.targetId)===-1?t:ff({},t,{targetIds:EV(t.targetIds,n.targetId)});case Bp:return ff({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case $p:return ff({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function O3(t=0,e){switch(e.type){case Ly:case Fy:return t+1;case Ny:case Vp:return t-1;default:return t}}function _3(t=0){return t+1}function R3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){R3(t,i,n[i])})}return t}function I3(t={},e){return{dirtyHandlerIds:S3(t.dirtyHandlerIds,{type:e.type,payload:A3({},e.payload,{prevTargetIds:CV(t,"dragOperation.targetIds",[])})}),dragOffset:E3(t.dragOffset,e),refCount:O3(t.refCount,e),dragOperation:P3(t.dragOperation,e),stateId:_3(t.stateId)}}function M3(t,e=void 0,n={},r=!1){const i=L3(r),o=new t3(i,new y3(i)),a=new KV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function L3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return YE(I3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function F3(t,e){if(t==null)return{};var n=N3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function N3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Jx=0;const Wh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var JE=X.memo(function(e){var{children:n}=e,r=F3(e,["children"]);const[i,o]=j3(r);return X.useEffect(()=>{if(o){const a=QE();return++Jx,()=>{--Jx===0&&(a[Wh]=null)}}},[]),be.jsx(zE.Provider,{value:i,children:n})});function j3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=B3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function B3(t,e=QE(),n,r){const i=e;return i[Wh]||(i[Wh]={dragDropManager:M3(t,e,n,r)}),i[Wh]}function QE(){return typeof global<"u"?global:window}var $3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const V3=Eu($3),kc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function ek(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);V3(r,a)||(i(a),n&&n())},[r,t,n]);return kc(o),[r,o]}function U3(t,e,n){const[r,i]=ek(t,e,n);return kc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function tk(t,e,n){return U3(e,t||(()=>({})),()=>n.reconnect())}function nk(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function H3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function W3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Kg=!1,Zg=!1;class z3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ht(!Kg,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Kg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Kg=!1}}isDragging(){if(!this.sourceId)return!1;Ht(!Zg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Zg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Zg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Jg=!1;class Y3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ht(!Jg,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Jg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Jg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function G3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function q3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function lv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=t[p],g=e[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function uv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function X3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function K3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return X3(r),Z3(r,n?o=>t(o,n):t)}}function rk(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=K3(r);e[n]=()=>i}}),e}function Qx(t,e){typeof t=="function"?t(e):t.current=e}function Z3(t,e){const n=t.ref;return Ht(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Qx(n,r),Qx(e,r)}}):X.cloneElement(t,{ref:e})}class J3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!lv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!lv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=rk({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,uv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,uv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Q3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!lv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=rk({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,uv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rl(){const{dragDropManager:t}=X.useContext(zE);return Ht(t!=null,"Expected drag drop context"),t}function eU(t,e){const n=Rl(),r=X.useMemo(()=>new J3(n.getBackend()),[n]);return kc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),kc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function tU(){const t=Rl();return X.useMemo(()=>new z3(t),[t])}class nU{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function rU(t,e,n){const r=X.useMemo(()=>new nU(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function iU(t){return X.useMemo(()=>{const e=t.type;return Ht(e!=null,"spec.type must be defined"),e},[t])}function oU(t,e,n){const r=Rl(),i=rU(t,e,n),o=iU(t);kc(function(){if(o!=null){const[c,f]=q3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function ik(t,e){const n=nk(t,e);Ht(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=tU(),i=eU(n.options,n.previewOptions);return oU(n,r,i),[tk(n.collect,r,i),H3(i),W3(i)]}function sU(t){const n=Rl().getMonitor(),[r,i]=ek(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function aU(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function lU(t){const e=Rl(),n=X.useMemo(()=>new Q3(e.getBackend()),[e]);return kc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function uU(){const t=Rl();return X.useMemo(()=>new Y3(t),[t])}function cU(t){const{accept:e}=t;return X.useMemo(()=>(Ht(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class fU{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function dU(t,e){const n=X.useMemo(()=>new fU(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function hU(t,e,n){const r=Rl(),i=dU(t,e),o=cU(t);kc(function(){const[c,f]=G3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function hp(t,e){const n=nk(t,e),r=uU(),i=lU(n.options);return hU(n,r,i),[tk(n.collect,r,i),aU(i)]}var ok=t=>{throw TypeError(t)},sk=(t,e,n)=>e.has(t)||ok("Cannot "+n),Nt=(t,e,n)=>(sk(t,e,"read from private field"),n?n.call(t):e.get(t)),Ps=(t,e,n)=>e.has(t)?ok("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hc=(t,e,n,r)=>(sk(t,e,"write to private field"),e.set(t,n),n),lu,pU=class{constructor(){Ps(this,lu),this.register=t=>{Nt(this,lu).push(t)},this.unregister=t=>{for(;Nt(this,lu).indexOf(t)!==-1;)Nt(this,lu).splice(Nt(this,lu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,lu))e.backendChanged(t)},hc(this,lu,[])}};lu=new WeakMap;var Xo,pd,Ko,yl,pc,cv,fv,dv,zh,Yh,gd,ak=class Gh{constructor(e,n,r){if(Ps(this,Xo),Ps(this,pd),Ps(this,Ko),Ps(this,yl),Ps(this,pc),Ps(this,cv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
5
5
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
6
6
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Ko)[f])throw new Error(`You must specify a unique 'id' property in your Backend entry:
7
- ${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Ko)[f])})`);return{id:f,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Yh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Yh.isSetUp=!0,Nt(this,fv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Yh.isSetUp=!1,Nt(this,dv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,gd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,gd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,gd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Ko)[Nt(this,Xo)].instance.profile(),this.previewEnabled=()=>Nt(this,Ko)[Nt(this,Xo)].preview,this.previewsList=()=>Nt(this,pd),this.backendsList=()=>Nt(this,yl),Ps(this,fv,i=>{for(let o of Nt(this,yl))o.transition&&i.addEventListener(o.transition.event,Nt(this,Wh))}),Ps(this,dv,i=>{for(let o of Nt(this,yl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,Wh))}),Ps(this,Wh,i=>{var a;let o=Nt(this,Xo);if(Nt(this,yl).some(c=>c.id!==Nt(this,Xo)&&c.transition&&c.transition.check(i)?(hc(this,Xo,c.id),!0):!1),Nt(this,Xo)!==o){Nt(this,Ko)[o].instance.teardown();for(let[y,g]of Object.entries(Nt(this,pc)))g.unsubscribe(),g.unsubscribe=Nt(this,zh).call(this,g.func,...g.args);Nt(this,pd).backendChanged(this);let c=Nt(this,Ko)[Nt(this,Xo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let f=i.constructor,p=new f(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),Ps(this,zh,(i,o,a,c)=>Nt(this,Ko)[Nt(this,Xo)].instance[i](o,a,c)),Ps(this,gd,(i,o,a,c)=>{let f=`${i}_${o}`,p=Nt(this,zh).call(this,i,o,a,c);return Nt(this,pc)[f]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,pc)[f].unsubscribe(),delete Nt(this,pc)[f]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
8
- see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);hc(this,pd,new pU),hc(this,Ko,{}),hc(this,yl,[]);for(let i of r.backends){let o=Nt(this,cv).call(this,e,n,i);Nt(this,Ko)[o.id]=o,Nt(this,yl).push(o)}hc(this,Xo,Nt(this,yl)[0].id),hc(this,pc,{})}};Xo=new WeakMap,pd=new WeakMap,Ko=new WeakMap,yl=new WeakMap,pc=new WeakMap,cv=new WeakMap,fv=new WeakMap,dv=new WeakMap,Wh=new WeakMap,zh=new WeakMap,gd=new WeakMap,ak.isSetUp=!1;var gU=ak,mU=(t,e,n)=>new gU(t,e,n),lk=(t,e)=>({event:t,check:e}),vU=lk("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),yU=lk("pointerdown",t=>t.pointerType==="mouse"),du;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(du||(du={}));class bU{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function wU(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function xU(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const SU={Left:1},TU={Left:0};function Qg(t){return t.button===void 0||t.button===TU.Left}function CU(t){return t.buttons===void 0||(t.buttons&SU.Left)===0}function uk(t){return!!t.targetTouches}const EU=1;function kU(t){const e=t.nodeType===EU?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function DU(t,e){if(t.targetTouches.length===1)return hp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return hp(t.touches[0])}function hp(t,e){return uk(t)?DU(t,e):{x:t.clientX,y:t.clientY}}const eS=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),ad={[du.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[du.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[du.keyboard]:{keydown:"keydown"}};class Cd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ht(!Cd.isSetUp,"Cannot have two Touch backends at the same time."),Cd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Cd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=eS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=ad[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=eS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=ad[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case ad.mouse.move:a={x:o.clientX,y:o.clientY};break;case ad.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&kU(o)},this.handleTopMoveStartCapture=i=>{Qg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Qg(i))return;const o=hp(i);o&&(uk(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Qg(i))return;const o=i.type===ad.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,f=hp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&xU(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&wU(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const A in g){if(!g.hasOwnProperty(A))continue;let I=g[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>y.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!CU(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new bU(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(du.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(du.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(du.keyboard)}}const PU=function(e,n={},r={}){return new Cd(e,n,r)};var Ms=function(){return Ms=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ms.apply(this,arguments)};function oo(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function OU(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,f=hV({polyfill:BF}),p=f[0],y=f[1].height,g=X.useState(e),T=g[0],E=g[1],A=X.useState(e),I=A[0],j=A[1],R=X.useState(!1),H=R[0],U=R[1],ne=function(){U(!1),e||E(!1)};X.useEffect(function(){U(!0),e?E(!0):j(!1)},[e]);var q=y===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(fV.div,{style:H?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:_U(y,i)}},X.createElement("div",{ref:p},T&&c))}function _U(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var ck=X.createContext({}),RU={isLock:!1},AU=function(t){var e=X.useState(RU.isLock),n=e[0],r=e[1];return X.createElement(ck.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Zd=X.createContext({}),Dh={dropTargetId:void 0,index:void 0},IU=function(t){var e=X.useState(Dh.dropTargetId),n=e[0],r=e[1],i=X.useState(Dh.index),o=i[0],a=i[1],c=function(p,y){r(p),a(y)},f=function(){r(Dh.dropTargetId),a(Dh.index)};return X.createElement(Zd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},MU=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},ld=function(t,e){return t.find(function(n){return n.id===e})},fk=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:fk(t,e,r.parent)},jy=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},xu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(y){return y.id===e});return!!(a&&a.droppable)}else{var c=jy(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(g){return g.id===c}),a=r.find(function(g){return g.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!fk(r,c,e)}},LU=function(t,e,n){return t.map(function(r){return r.id===e?Ms(Ms({},r),{parent:n}):r})},dk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},FU=function(t,e){return t.findIndex(function(n){return n.id===e})},hk=function(t,e,n,r){var i=FU(t,e),o=dk(t,n,r);return o=o>i?o-1:o,[i,o]},NU=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},jU=function(t,e,n,r){var i=hk(t,e,n,r),o=i[0],a=i[1],c=oo([],t,!0);return NU(c,o,a),c.map(function(f){return f.id===e?Ms(Ms({},f),{parent:n}):f})},BU=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},hv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=BU(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},tS=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?hv(i,n):null},$U=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},pv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:hv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=$U(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(a,t.parent,r)){var p=tS(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:hv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(xu(a,t.parent,r)){var p=tS(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},VU=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:uC,options:t.html5,transition:yU},{id:"touch",backend:PU,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:vU}]}},Gh=function(t,e){return t.some(function(n){return n.parent===e})},pk=X.createContext({}),UU=function(t){var e=XU(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Rl().getMonitor(),y=t.canDrop,g=t.canDrag,T=Ms(Ms({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:ld(t.tree,A),monitor:p},R=t.tree;if(ld(R,E.id)||(R=oo(oo([],R,!0),[E],!1)),t.sort===!1){var H=hk(R,E.id,A,I),U=H[1];j.destinationIndex=U,j.relativeIndex=I,t.onDrop(jU(R,E.id,A,I),j);return}t.onDrop(LU(R,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:ld(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=dk(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:y?function(E,A){return y(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:ld(t.tree,A),monitor:p})}:void 0,canDrag:g?function(E){return g(ld(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(pk.Provider,{value:T},t.children)},HU=function(t){return X.createElement(UU,Ms({},t),X.createElement(AU,null,X.createElement(IU,null,t.children)))},WU=function(t){var e=X.useContext(ck);X.useEffect(function(){if(t.current){var n=t.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},c=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Up={TREE_ITEM:Symbol()},gk=null,mk=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(gk=n)}},nS=function(t){return mk(t)},rS=function(t){return mk(t)},zU=function(t,e){var n=Du();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",nS),c==null||c.addEventListener("touchstart",rS,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",nS),c==null||c.removeEventListener("touchstart",rS)}},[e]);var r=ik({type:Up.TREE_ITEM,item:function(c){var f=Ms({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return gk!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},YU=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},GU=function(t){var e=Du(),n=X.useContext(Zd),r=dp({accept:oo([Up.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var y=e.rootId,g=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&g(jy(f)?f:null,y,E),n.hidePlaceholder()},canDrop:function(f,p){var y=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=e.rootId,g=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=pv(null,t.current,p,e);if(I===null||!xu(f,y,e)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},qU=function(t,e){var n=Du(),r=X.useContext(Zd),i=dp({accept:oo([Up.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(jy(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=pv(t,e.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=pv(t,e.current,y,n);if(I===null||!xu(p,I.id,n)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,c=o.dragSource,f=i[1];return[a,c,f]},XU=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(g){return Gh(t,g.id)}).map(function(g){return g.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(g,T){var E=i.includes(g)?i.filter(function(A){return A!==g}):oo(oo([],i,!0),[g],!1);o(E),T&&T(E)},c=function(g){o([]),g&&g([])},f=function(g){var T=t.filter(function(E){return Gh(t,E.id)}).map(function(E){return E.id});o(T),g&&g(T)},p=function(g,T){var E=[];if(Array.isArray(g)){var A=t.filter(function(I){return g.includes(I.id)&&Gh(t,I.id)});E=oo(oo([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,R){return R.indexOf(I)===j})}else E=i.includes(g)?i:oo(oo([],i,!0),[g],!1);o(E),T&&T(E)},y=function(g,T){var E=i.filter(function(A){return Array.isArray(g)?!g.includes(A):A!==g});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},KU=function(){return sU(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Up.TREE_ITEM}})},Du=function(){var t=X.useContext(pk);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},ZU=function(t,e){var n=Du(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},JU=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},QU=function(t){var e=Du(),n=X.useContext(Zd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(le){return le.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),y=zU(o,r),g=y[0],T=y[1],E=y[2],A=qU(o,r),I=A[0],j=A[1],R=A[2];JU(r,i,T),xu(j,t.id,e)&&R(r),X.useEffect(function(){e.dragPreviewRender?E(yF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),WU(r);var H=function(){return e.onToggle(o.id)},U=e.listItemComponent,ne=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,ie={depth:t.depth,isOpen:p,isDragging:g,isDropTarget:q,draggable:ne,hasChild:Gh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:H},x="";return c!=null&&c.listItem&&(x=typeof c.listItem=="string"?c.listItem:c.listItem(o,ie)),I&&(c!=null&&c.dropTarget)&&(x="".concat(x," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(x="".concat(x," ").concat(c.draggingSource)),X.createElement(U,{ref:r,className:x,role:"listitem"},e.render(o,ie),f&&ie.hasChild&&X.createElement(OU,{isVisible:p},X.createElement(gv,{parentId:t.id,depth:t.depth+1})),!f&&ie.hasChild&&p&&X.createElement(gv,{parentId:t.id,depth:t.depth+1}))},iS=function(t){var e=Du(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(Zd),a=Rl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=c.getTargetIds();return!p||!y.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},gv=function(t){var e=Du(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:MU;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=oo(oo([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=oo(oo([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var f=GU(n),p=f[0],y=f[1],g=f[2];t.parentId===e.rootId&&xu(y,e.rootId,e)&&g(n);var T=ZU(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,Ms({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(iS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(QU,{id:I.id,depth:t.depth}))}),X.createElement(iS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},eH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},tH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},nH=function(){var t=Du(),e=KU(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:eH},X.createElement("div",{style:tH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function rH(t,e){return X.createElement(HU,Ms({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(nH,null),X.createElement(gv,{parentId:t.rootId,depth:0}))}var iH=X.forwardRef(rH);const vk=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Hp=X.createContext({}),By=X.createContext(null),Wp=typeof document<"u",oH=Wp?X.useLayoutEffect:X.useEffect,yk=X.createContext({strict:!1}),$y=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),sH="framerAppearId",bk="data-"+$y(sH);function aH(t,e,n,r){const{visualElement:i}=X.useContext(Hp),o=X.useContext(yk),a=X.useContext(By),c=X.useContext(vk).reducedMotion,f=X.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const y=X.useRef(!!(n[bk]&&!window.HandoffComplete));return oH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function xf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function lH(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[e])}function Bd(t){return typeof t=="string"||Array.isArray(t)}function zp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Vy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uy=["initial",...Vy];function Yp(t){return zp(t.animate)||Uy.some(e=>Bd(t[e]))}function wk(t){return!!(Yp(t)||t.variants)}function uH(t,e){if(Yp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Bd(n)?n:void 0,animate:Bd(r)?r:void 0}}return t.inherit!==!1?e:{}}function cH(t){const{initial:e,animate:n}=uH(t,X.useContext(Hp));return X.useMemo(()=>({initial:e,animate:n}),[oS(e),oS(n)])}function oS(t){return Array.isArray(t)?t.join(" "):t}const sS={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"]},$d={};for(const t in sS)$d[t]={isEnabled:e=>sS[t].some(n=>!!e[n])};function fH(t){for(const e in t)$d[e]={...$d[e],...t[e]}}const xk=X.createContext({}),Sk=X.createContext({}),dH=Symbol.for("motionComponentSymbol");function hH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&fH(t);function o(c,f){let p;const y={...X.useContext(vk),...c,layoutId:pH(c)},{isStatic:g}=y,T=cH(c),E=r(c,g);if(!g&&Wp){T.visualElement=aH(i,E,y,e);const A=X.useContext(Sk),I=X.useContext(yk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,I,t,A))}return kn.createElement(Hp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,lH(E,T.visualElement,f),E,g,T.visualElement))}const a=X.forwardRef(o);return a[dH]=i,a}function pH({layoutId:t}){const e=X.useContext(xk).id;return e&&t!==void 0?e+"-"+t:t}function gH(t){function e(r,i={}){return hH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const mH=["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 Hy(t){return typeof t!="string"||t.includes("-")?!1:!!(mH.indexOf(t)>-1||/[A-Z]/.test(t))}const pp={};function vH(t){Object.assign(pp,t)}const Jd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ac=new Set(Jd);function Tk(t,{layout:e,layoutId:n}){return Ac.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!pp[t]||t==="opacity")}const Ao=t=>!!(t&&t.getVelocity),yH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bH=Jd.length;function wH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<bH;a++){const c=Jd[a];if(t[c]!==void 0){const f=yH[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const Ck=t=>e=>typeof e=="string"&&e.startsWith(t),Ek=Ck("--"),mv=Ck("var(--"),xH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,SH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Su=(t,e,n)=>Math.min(Math.max(n,t),e),Ic={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ed={...Ic,transform:t=>Su(0,1,t)},Ph={...Ic,default:1},kd=t=>Math.round(t*1e5)/1e5,Gp=/(-)?([\d]*\.?[\d])+/g,kk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,TH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Qd(t){return typeof t=="string"}const eh=t=>({test:e=>Qd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),uu=eh("deg"),Va=eh("%"),Rt=eh("px"),CH=eh("vh"),EH=eh("vw"),aS={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},lS={...Ic,transform:Math.round},Dk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Ph,scaleX:Ph,scaleY:Ph,scaleZ:Ph,skew:uu,skewX:uu,skewY:uu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Ed,originX:aS,originY:aS,originZ:Rt,zIndex:lS,fillOpacity:Ed,strokeOpacity:Ed,numOctaves:lS};function Wy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,y=!0;for(const g in e){const T=e[g];if(Ek(g)){o[g]=T;continue}const E=Dk[g],A=SH(T,E);if(Ac.has(g)){if(f=!0,a[g]=A,!y)continue;T!==(E.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=A):i[g]=A}if(e.transform||(f||r?i.transform=wH(t.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${g} ${T} ${E}`}}const zy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pk(t,e,n){for(const r in e)!Ao(e[r])&&!Tk(r,n)&&(t[r]=e[r])}function kH({transformTemplate:t},e,n){return X.useMemo(()=>{const r=zy();return Wy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function DH(t,e,n){const r=t.style||{},i={};return Pk(i,r,t),Object.assign(i,kH(t,e,n)),t.transformValues?t.transformValues(i):i}function PH(t,e,n){const r={},i=DH(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const OH=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 gp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||OH.has(t)}let Ok=t=>!gp(t);function _H(t){t&&(Ok=e=>e.startsWith("on")?!gp(e):t(e))}try{_H(require("@emotion/is-prop-valid").default)}catch{}function RH(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ok(i)||n===!0&&gp(i)||!e&&!gp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function uS(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function AH(t,e,n){const r=uS(e,t.x,t.width),i=uS(n,t.y,t.height);return`${r} ${i}`}const IH={offset:"stroke-dashoffset",array:"stroke-dasharray"},MH={offset:"strokeDashoffset",array:"strokeDasharray"};function LH(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?IH:MH;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function Yy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g,T){if(Wy(t,p,y,T),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=AH(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&LH(E,a,c,f,!1)}const _k=()=>({...zy(),attrs:{}}),Gy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function FH(t,e,n,r){const i=X.useMemo(()=>{const o=_k();return Yy(o,e,{enableHardwareAcceleration:!1},Gy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Pk(o,t.style,t),i.style={...o,...i.style}}return i}function NH(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(Hy(n)?FH:PH)(r,o,a,n),y={...RH(r,typeof n=="string",t),...f,ref:i},{children:g}=r,T=X.useMemo(()=>Ao(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function Rk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Ak=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 Ik(t,e,n,r){Rk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Ak.has(i)?i:$y(i),e.attrs[i])}function qy(t,e){const{style:n}=t,r={};for(const i in n)(Ao(n[i])||e.style&&Ao(e.style[i])||Tk(i,t))&&(r[i]=n[i]);return r}function Mk(t,e){const n=qy(t,e);for(const r in t)if(Ao(t[r])||Ao(e[r])){const i=Jd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Xy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function jH(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const mp=t=>Array.isArray(t),BH=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$H=t=>mp(t)?t[t.length-1]||0:t;function qh(t){const e=Ao(t)?t.get():t;return BH(e)?e.toValue():e}function VH({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:UH(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const Lk=t=>(e,n)=>{const r=X.useContext(Hp),i=X.useContext(By),o=()=>VH(t,e,r,i);return n?o():jH(o)};function UH(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=qh(o[T]);let{initial:a,animate:c}=t;const f=Yp(t),p=wk(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;return g&&typeof g!="boolean"&&!zp(g)&&(Array.isArray(g)?g:[g]).forEach(E=>{const A=Xy(t,E);if(!A)return;const{transitionEnd:I,transition:j,...R}=A;for(const H in R){let U=R[H];if(Array.isArray(U)){const ne=y?U.length-1:0;U=U[ne]}U!==null&&(i[H]=U)}for(const H in I)i[H]=I[H]}),i}const sr=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 HH(t){let e=new cS,n=new cS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?e:n;return p&&a.add(f),T.add(f)&&g&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const y=e.order[p];y(f),a.has(y)&&(c.schedule(y),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const Oh=["prepare","read","update","preRender","render","postRender"],WH=40;function zH(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Oh.reduce((g,T)=>(g[T]=HH(()=>n=!0),g),{}),a=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,WH),1),i.timestamp=g,i.isProcessing=!0,Oh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Oh.reduce((g,T)=>{const E=o[T];return g[T]=(A,I=!1,j=!1)=>(n||f(),E.schedule(A,I,j)),g},{}),cancel:g=>Oh.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Ln,cancel:Ol,state:Ni,steps:em}=zH(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),YH={useVisualState:Lk({scrapeMotionValuesFromProps:Mk,createRenderState:_k,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{Yy(n,r,{enableHardwareAcceleration:!1},Gy(e.tagName),t.transformTemplate),Ik(e,n)})}})},GH={useVisualState:Lk({scrapeMotionValuesFromProps:qy,createRenderState:zy})};function qH(t,{forwardMotionProps:e=!1},n,r){return{...Hy(t)?YH:GH,preloadedFeatures:n,useRender:NH(e),createVisualElement:r,Component:t}}function xl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Fk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function qp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const XH=t=>e=>Fk(e)&&t(e,qp(e));function El(t,e,n,r){return xl(t,e,XH(n),r)}const KH=(t,e)=>n=>e(t(n)),hu=(...t)=>t.reduce(KH);function Nk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const fS=Nk("dragHorizontal"),dS=Nk("dragVertical");function jk(t){let e=!1;if(t==="y")e=dS();else if(t==="x")e=fS();else{const n=fS(),r=dS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Bk(){const t=jk(!0);return t?(t(),!1):!0}class Pu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function hS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Bk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return El(t.current,n,i,{passive:!t.getProps()[r]})}class ZH extends Pu{mount(){this.unmount=hu(hS(this.node,!0),hS(this.node,!1))}unmount(){}}class JH extends Pu{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=hu(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const $k=(t,e)=>e?t===e?!0:$k(t,e.parentElement):!1;function tm(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,qp(n))}class QH extends Pu{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=El(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Ln.update(()=>{!g&&!$k(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=El(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||tm("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Ln.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=xl(this.node.current,"keyup",a),tm("down",(c,f)=>{this.startPress(c,f)})},n=xl(this.node.current,"keydown",e),r=()=>{this.isPressing&&tm("cancel",(o,a)=>this.cancelPress(o,a))},i=xl(this.node.current,"blur",r);this.removeAccessibleListeners=hu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=El(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const vv=new WeakMap,nm=new WeakMap,eW=t=>{const e=vv.get(t.target);e&&e(t)},tW=t=>{t.forEach(eW)};function nW({root:t,...e}){const n=t||document;nm.has(n)||nm.set(n,{});const r=nm.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(tW,{root:t,...e})),r[i]}function rW(t,e,n){const r=nW(e);return vv.set(t,n),r.observe(t),()=>{vv.delete(t),r.unobserve(t)}}const iW={some:0,all:1};class oW extends Pu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:iW[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return rW(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(sW(e,n))&&this.startObserver()}unmount(){}}function sW({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const aW={inView:{Feature:oW},tap:{Feature:QH},focus:{Feature:JH},hover:{Feature:ZH}};function Vk(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 lW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function uW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Xp(t,e,n){const r=t.getProps();return Xy(r,e,n!==void 0?n:r.custom,lW(t),uW(t))}let th=sr,la=sr;process.env.NODE_ENV!=="production"&&(th=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},la=(t,e)=>{if(!t)throw new Error(e)});const pu=t=>t*1e3,kl=t=>t/1e3,cW={current:!1},Uk=t=>Array.isArray(t)&&typeof t[0]=="number";function Hk(t){return!!(!t||typeof t=="string"&&Wk[t]||Uk(t)||Array.isArray(t)&&t.every(Hk))}const md=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Wk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:md([0,.65,.55,1]),circOut:md([.55,0,1,.45]),backIn:md([.31,.01,.66,-.59]),backOut:md([.33,1.53,.69,.99])};function zk(t){if(t)return Uk(t)?md(t):Array.isArray(t)?t.map(zk):Wk[t]}function fW(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=zk(c);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function dW(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Yk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,hW=1e-7,pW=12;function gW(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Yk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>hW&&++c<pW);return a}function nh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>gW(o,0,1,t,n);return o=>o===0||o===1?o:Yk(i(o),e,r)}const mW=nh(.42,0,1,1),vW=nh(0,0,.58,1),Gk=nh(.42,0,.58,1),yW=t=>Array.isArray(t)&&typeof t[0]!="number",qk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Xk=t=>e=>1-t(1-e),Ky=t=>1-Math.sin(Math.acos(t)),Kk=Xk(Ky),bW=qk(Ky),Zk=nh(.33,1.53,.69,.99),Zy=Xk(Zk),wW=qk(Zy),xW=t=>(t*=2)<1?.5*Zy(t):.5*(2-Math.pow(2,-10*(t-1))),pS={linear:sr,easeIn:mW,easeInOut:Gk,easeOut:vW,circIn:Ky,circInOut:bW,circOut:Kk,backIn:Zy,backInOut:wW,backOut:Zk,anticipate:xW},gS=t=>{if(Array.isArray(t)){la(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return nh(e,n,r,i)}else if(typeof t=="string")return la(pS[t]!==void 0,`Invalid easing type '${t}'`),pS[t];return t},Jy=(t,e)=>n=>!!(Qd(n)&&TH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Jk=(t,e,n)=>r=>{if(!Qd(r))return r;const[i,o,a,c]=r.match(Gp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},SW=t=>Su(0,255,t),rm={...Ic,transform:t=>Math.round(SW(t))},bc={test:Jy("rgb","red"),parse:Jk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+rm.transform(t)+", "+rm.transform(e)+", "+rm.transform(n)+", "+kd(Ed.transform(r))+")"};function TW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const yv={test:Jy("#"),parse:TW,transform:bc.transform},Sf={test:Jy("hsl","hue"),parse:Jk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(kd(e))+", "+Va.transform(kd(n))+", "+kd(Ed.transform(r))+")"},io={test:t=>bc.test(t)||yv.test(t)||Sf.test(t),parse:t=>bc.test(t)?bc.parse(t):Sf.test(t)?Sf.parse(t):yv.parse(t),transform:t=>Qd(t)?t:t.hasOwnProperty("red")?bc.transform(t):Sf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function im(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 CW({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=im(f,c,t+1/3),o=im(f,c,t),a=im(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const om=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},EW=[yv,bc,Sf],kW=t=>EW.find(e=>e.test(t));function mS(t){const e=kW(t);la(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Sf&&(n=CW(n)),n}const Qk=(t,e)=>{const n=mS(t),r=mS(e),i={...n};return o=>(i.red=om(n.red,r.red,o),i.green=om(n.green,r.green,o),i.blue=om(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),bc.transform(i))};function DW(t){var e,n;return isNaN(t)&&Qd(t)&&(((e=t.match(Gp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(kk))===null||n===void 0?void 0:n.length)||0)>0}const eD={regex:xH,countKey:"Vars",token:"${v}",parse:sr},tD={regex:kk,countKey:"Colors",token:"${c}",parse:io.parse},nD={regex:Gp,countKey:"Numbers",token:"${n}",parse:Ic.parse};function sm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function vp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&sm(n,eD),sm(n,tD),sm(n,nD),n}function rD(t){return vp(t).values}function iD(t){const{values:e,numColors:n,numVars:r,tokenised:i}=vp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(eD.token,a[f]):f<r+n?c=c.replace(tD.token,io.transform(a[f])):c=c.replace(nD.token,kd(a[f]));return c}}const PW=t=>typeof t=="number"?0:t;function OW(t){const e=rD(t);return iD(t)(e.map(PW))}const Tu={test:DW,parse:rD,createTransformer:iD,getAnimatableNone:OW},oD=(t,e)=>n=>`${n>0?e:t}`;function sD(t,e){return typeof t=="number"?n=>Zn(t,e,n):io.test(t)?Qk(t,e):t.startsWith("var(")?oD(t,e):lD(t,e)}const aD=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>sD(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},_W=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=sD(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},lD=(t,e)=>{const n=Tu.createTransformer(e),r=vp(t),i=vp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?hu(aD(r.values,i.values),n):(th(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oD(t,e))},Vd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},vS=(t,e)=>n=>Zn(t,e,n);function RW(t){return typeof t=="number"?vS:typeof t=="string"?io.test(t)?Qk:lD:Array.isArray(t)?aD:typeof t=="object"?_W:vS}function AW(t,e,n){const r=[],i=n||RW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=hu(f,c)}r.push(c)}return r}function uD(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(la(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=AW(e,r,i),c=a.length,f=p=>{let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const g=Vd(t[y],t[y+1],p);return a[y](g)};return n?p=>f(Su(t[0],t[o-1],p)):f}function IW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Vd(0,e,r);t.push(Zn(n,1,i))}}function MW(t){const e=[0];return IW(e,t.length-1),e}function LW(t,e){return t.map(n=>n*e)}function FW(t,e){return t.map(()=>e||Gk).splice(0,t.length-1)}function yp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=yW(r)?r.map(gS):gS(r),o={done:!1,value:e[0]},a=LW(n&&n.length===e.length?n:MW(e),t),c=uD(a,e,{ease:Array.isArray(i)?i:FW(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function cD(t,e){return e?t*(1e3/e):0}const NW=5;function fD(t,e,n){const r=Math.max(e-NW,0);return cD(n-t(r),e-r)}const yS=.001,jW=.01,bS=10,BW=.05,$W=1;function VW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;th(t<=pu(bS),"Spring duration must be 10 seconds or less");let a=1-e;a=Su(BW,$W,a),t=Su(jW,bS,kl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=bv(p,a),A=Math.exp(-g);return yS-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=bv(Math.pow(p,2),a);return(-i(p)+yS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=HW(i,o,c);if(t=pu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const UW=12;function HW(t,e,n){let r=n;for(let i=1;i<UW;i++)r=r-t(r)/e(r);return r}function bv(t,e){return t*Math.sqrt(1-e*e)}const WW=["duration","bounce"],zW=["stiffness","damping","mass"];function wS(t,e){return e.some(n=>t[n]!==void 0)}function YW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!wS(t,zW)&&wS(t,WW)){const n=VW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function dD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:T}=YW({...r,velocity:-kl(r.velocity||0)}),E=g||0,A=f/(2*Math.sqrt(c*p)),I=o-i,j=kl(Math.sqrt(c/p)),R=Math.abs(I)<5;n||(n=R?.01:2),e||(e=R?.005:.5);let H;if(A<1){const U=bv(j,A);H=ne=>{const q=Math.exp(-A*j*ne);return o-q*((E+A*j*I)/U*Math.sin(U*ne)+I*Math.cos(U*ne))}}else if(A===1)H=U=>o-Math.exp(-j*U)*(I+(E+j*I)*U);else{const U=j*Math.sqrt(A*A-1);H=ne=>{const q=Math.exp(-A*j*ne),ie=Math.min(U*ne,300);return o-q*((E+A*j*I)*Math.sinh(ie)+U*I*Math.cosh(ie))/U}}return{calculatedDuration:T&&y||null,next:U=>{const ne=H(U);if(T)a.done=U>=y;else{let q=E;U!==0&&(A<1?q=fD(H,U,ne):q=0);const ie=Math.abs(q)<=n,x=Math.abs(o-ne)<=e;a.done=ie&&x}return a.value=a.done?o:ne,a}}}function xS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const H=le=>-I*Math.exp(-le/r),U=le=>R+H(le),ne=le=>{const ae=H(le),ze=U(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:ze};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=dD({keyframes:[T.value,A(T.value)],velocity:fD(U,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>q?ie.next(le-q):(!ae&&ne(le),T)}}}const GW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Ol(e),now:()=>Ni.isProcessing?Ni.timestamp:performance.now()}},SS=2e4;function TS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<SS;)e+=n,r=t.next(e);return e>=SS?1/0:e}const qW={decay:xS,inertia:xS,tween:yp,keyframes:yp,spring:dD};function bp({autoplay:t=!0,delay:e=0,driver:n=GW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...T}){let E=1,A=!1,I,j;const R=()=>{j=new Promise(Te=>{I=Te})};R();let H;const U=qW[i]||yp;let ne;U!==yp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&la(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=uD([0,100],r,{clamp:!1}),r=[0,100]);const q=U({...T,keyframes:r});let ie;c==="mirror"&&(ie=U({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let x="idle",le=null,ae=null,ze=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=TS(q));const{calculatedDuration:tt}=q;let Qe=1/0,et=1/0;tt!==null&&(Qe=tt+a,et=Qe*(o+1)-a);let Ye=0;const pe=Te=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Te)),E<0&&(ae=Math.min(Te-et/E,ae)),le!==null?Ye=le:Ye=Math.round(Te-ae)*E;const Le=Ye-e*(E>=0?1:-1),He=E>=0?Le<0:Le>et;Ye=Math.max(Le,0),x==="finished"&&le===null&&(Ye=et);let je=Ye,Fe=q;if(o){const pt=Math.min(Ye,et)/Qe;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Qe)):c==="mirror"&&(Fe=ie)),je=Su(0,1,yt)*Qe}const Ve=He?{done:!1,value:r[0]}:Fe.next(je);ne&&(Ve.value=ne(Ve.value));let{done:nt}=Ve;!He&&tt!==null&&(nt=E>=0?Ye>=et:Ye<=0);const ct=le===null&&(x==="finished"||x==="running"&&nt);return g&&g(Ve.value),ct&&Oe(),Ve},fe=()=>{H&&H.stop(),H=void 0},Ce=()=>{x="idle",fe(),I(),R(),ae=ze=null},Oe=()=>{x="finished",y&&y(),fe(),I()},Ne=()=>{if(A)return;H||(H=n(pe));const Te=H.now();f&&f(),le!==null?ae=Te-le:(!ae||x==="finished")&&(ae=Te),x==="finished"&&R(),ze=ae,le=null,x="running",H.start()};t&&Ne();const me={then(Te,Le){return j.then(Te,Le)},get time(){return kl(Ye)},set time(Te){Te=pu(Te),Ye=Te,le!==null||!H||E===0?le=Te:ae=H.now()-Te/E},get duration(){const Te=q.calculatedDuration===null?TS(q):q.calculatedDuration;return kl(Te)},get speed(){return E},set speed(Te){Te===E||!H||(E=Te,me.time=kl(Ye))},get state(){return x},play:Ne,pause:()=>{x="paused",le=Ye},stop:()=>{A=!0,x!=="idle"&&(x="idle",p&&p(),Ce())},cancel:()=>{ze!==null&&pe(ze),Ce()},complete:()=>{x="finished"},sample:Te=>(ae=0,pe(Te))};return me}function XW(t){let e;return()=>(e===void 0&&(e=t()),e)}const KW=XW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ZW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),_h=10,JW=2e4,QW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Hk(e.ease);function ez(t,e,{onUpdate:n,onComplete:r,...i}){if(!(KW()&&ZW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const y=()=>{f=new Promise(U=>{c=U})};y();let{keyframes:g,duration:T=300,ease:E,times:A}=i;if(QW(e,i)){const U=bp({...i,repeat:0,delay:0});let ne={done:!1,value:g[0]};const q=[];let ie=0;for(;!ne.done&&ie<JW;)ne=U.sample(ie),q.push(ne.value),ie+=_h;A=void 0,g=q,T=ie-_h,E="linear"}const I=fW(t.owner.current,e,g,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},R=()=>{p=!0,Ln.update(j),c(),y()};return I.onfinish=()=>{p||(t.set(dW(g,i)),r&&r(),R())},{then(U,ne){return f.then(U,ne)},attachTimeline(U){return I.timeline=U,I.onfinish=null,sr},get time(){return kl(I.currentTime||0)},set time(U){I.currentTime=pu(U)},get speed(){return I.playbackRate},set speed(U){I.playbackRate=U},get duration(){return kl(T)},play:()=>{a||(I.play(),Ol(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:U}=I;if(U){const ne=bp({...i,autoplay:!1});t.setWithVelocity(ne.sample(U-_h).value,ne.sample(U).value,_h)}R()},complete:()=>{p||I.finish()},cancel:R}}function tz({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?bp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const nz={type:"spring",stiffness:500,damping:25,restSpeed:10},rz=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),iz={type:"keyframes",duration:.8},oz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sz=(t,{keyframes:e})=>e.length>2?iz:Ac.has(t)?t.startsWith("scale")?rz(e[1]):nz:oz,wv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tu.test(e)||e==="0")&&!e.startsWith("url(")),az=new Set(["brightness","contrast","saturate","opacity"]);function lz(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Gp)||[];if(!r)return t;const i=n.replace(r,"");let o=az.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const uz=/([a-z-]*)\(.*?\)/g,xv={...Tu,getAnimatableNone:t=>{const e=t.match(uz);return e?e.map(lz).join(" "):t}},cz={...Dk,color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:xv,WebkitFilter:xv},Qy=t=>cz[t];function hD(t,e){let n=Qy(t);return n!==xv&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const pD=t=>/^0[^.\s]+$/.test(t);function fz(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||pD(t)}function dz(t,e,n,r){const i=wv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),fz(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=hD(e,c)}return o}function hz({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function eb(t,e){return t[e]||t.default||t}const pz={skipAnimations:!1},tb=(t,e,n,r={})=>i=>{const o=eb(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-pu(a);const f=dz(e,t,n,o),p=f[0],y=f[f.length-1],g=wv(t,p),T=wv(t,y);th(g===T,`You are trying to animate ${t} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let E={keyframes:f,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(hz(o)||(E={...E,...sz(t,E)}),E.duration&&(E.duration=pu(E.duration)),E.repeatDelay&&(E.repeatDelay=pu(E.repeatDelay)),!g||!T||cW.current||o.type===!1||pz.skipAnimations)return tz(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=ez(e,t,E);if(A)return A}return bp(E)};function wp(t){return!!(Ao(t)&&t.add)}const gD=t=>/^\-?\d*\.?\d+$/.test(t);function nb(t,e){t.indexOf(e)===-1&&t.push(e)}function rb(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ib{constructor(){this.subscriptions=[]}add(e){return nb(this.subscriptions,e),()=>rb(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const CS=new Set;function ob(t,e,n){t||CS.has(e)||(console.warn(e),CS.add(e))}const gz=t=>!isNaN(parseFloat(t));class mz{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Ni;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.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=gz(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&ob(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ib);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.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?cD(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 Af(t,e){return new mz(t,e)}const mD=t=>e=>e.test(t),vz={test:t=>t==="auto",parse:t=>t},vD=[Ic,Rt,Va,uu,EH,CH,vz],ud=t=>vD.find(mD(t)),yz=[...vD,io,Tu],bz=t=>yz.find(mD(t));function wz(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Af(n))}function xz(t,e){const n=Xp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=$H(o[a]);wz(t,a,c)}}function Sz(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const f=o[c],p=e[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),y!=null&&(typeof y=="string"&&(gD(y)||pD(y))?y=parseFloat(y):!bz(y)&&Tu.test(p)&&(y=hD(f,p)),t.addValue(f,Af(y,{owner:t})),n[f]===void 0&&(n[f]=y),y!==null&&t.setBaseTarget(f,y))}}function Tz(t,e){return e?(e[t]||e.default||e).from:void 0}function Cz(t,e,n){const r={};for(const i in t){const o=Tz(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function Ez({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function kz(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 yD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in c){const T=t.getValue(g),E=c[g];if(!T||E===void 0||y&&Ez(y,g))continue;const A={delay:n,elapsed:0,...eb(o||{},g)};if(window.HandoffAppearAnimations){const R=t.getProps()[bk];if(R){const H=window.HandoffAppearAnimations(R,g,T,Ln);H!==null&&(A.elapsed=H,A.isHandoff=!0)}}let I=!A.isHandoff&&!kz(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(tb(g,T,E,t.shouldReduceMotion&&Ac.has(g)?{type:!1}:A));const j=T.animation;wp(f)&&(f.add(g),j.then(()=>f.remove(g))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&xz(t,a)}),p}function Sv(t,e,n={}){const r=Xp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(yD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return Dz(t,e,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function Dz(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(Pz).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(Sv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function Pz(t,e){return t.sortNodePosition(e)}function Oz(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Sv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Sv(t,e,n);else{const i=typeof e=="function"?Xp(t,e,n.custom):e;r=Promise.all(yD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const _z=[...Vy].reverse(),Rz=Vy.length;function Az(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Oz(t,n,r)))}function Iz(t){let e=Az(t);const n=Lz();let r=!0;const i=(f,p)=>{const y=Xp(t,p);if(y){const{transition:g,transitionEnd:T,...E}=y;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const y=t.getProps(),g=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let R=0;R<Rz;R++){const H=_z[R],U=n[H],ne=y[H]!==void 0?y[H]:g[H],q=Bd(ne),ie=H===p?U.isActive:null;ie===!1&&(I=R);let x=ne===g[H]&&ne!==y[H]&&q;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),U.protectedKeys={...A},!U.isActive&&ie===null||!ne&&!U.prevProp||zp(ne)||typeof ne=="boolean")continue;let ae=Mz(U.prevProp,ne)||H===p&&U.isActive&&!x&&q||R>I&&q,ze=!1;const tt=Array.isArray(ne)?ne:[ne];let Qe=tt.reduce(i,{});ie===!1&&(Qe={});const{prevResolvedValues:et={}}=U,Ye={...et,...Qe},pe=fe=>{ae=!0,E.has(fe)&&(ze=!0,E.delete(fe)),U.needsAnimating[fe]=!0};for(const fe in Ye){const Ce=Qe[fe],Oe=et[fe];if(A.hasOwnProperty(fe))continue;let Ne=!1;mp(Ce)&&mp(Oe)?Ne=!Vk(Ce,Oe):Ne=Ce!==Oe,Ne?Ce!==void 0?pe(fe):E.add(fe):Ce!==void 0&&E.has(fe)?pe(fe):U.protectedKeys[fe]=!0}U.prevProp=ne,U.prevResolvedValues=Qe,U.isActive&&(A={...A,...Qe}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!x||ze)&&T.push(...tt.map(fe=>({animation:fe,options:{type:H,...f}})))}if(E.size){const R={};E.forEach(H=>{const U=t.getBaseTarget(H);U!==void 0&&(R[H]=U)}),T.push({animation:R})}let j=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(f,p)}),n[f].isActive=p;const T=a(y,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function Mz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Vk(e,t):!1}function lc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lz(){return{animate:lc(!0),whileInView:lc(),whileHover:lc(),whileTap:lc(),whileDrag:lc(),whileFocus:lc(),exit:lc()}}class Fz extends Pu{constructor(e){super(e),e.animationState||(e.animationState=Iz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),zp(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 Nz=0;class jz extends Pu{constructor(){super(...arguments),this.id=Nz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Bz={animation:{Feature:Fz},exit:{Feature:jz}},ES=(t,e)=>Math.abs(t-e);function $z(t,e){const n=ES(t.x,e.x),r=ES(t.y,e.y);return Math.sqrt(n**2+r**2)}class bD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=lm(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=$z(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ni;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=am(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=lm(g.type==="pointercancel"?this.lastMoveEventInfo:am(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!Fk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qp(e),c=am(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ni;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,lm(c,this.history)),this.removeListeners=hu(El(this.contextWindow,"pointermove",this.handlePointerMove),El(this.contextWindow,"pointerup",this.handlePointerUp),El(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ol(this.updatePoint)}}function am(t,e){return e?{point:e(t.point)}:t}function kS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function lm({point:t},e){return{point:t,delta:kS(t,wD(e)),offset:kS(t,Vz(e)),velocity:Uz(e,.1)}}function Vz(t){return t[0]}function wD(t){return t[t.length-1]}function Uz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=wD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>pu(e)));)n--;if(!r)return{x:0,y:0};const o=kl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ns(t){return t.max-t.min}function Tv(t,e=0,n=.01){return Math.abs(t-e)<=n}function DS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=ns(n)/ns(e),(Tv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(Tv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Dd(t,e,n,r){DS(t.x,e.x,n.x,r?r.originX:void 0),DS(t.y,e.y,n.y,r?r.originY:void 0)}function PS(t,e,n){t.min=n.min+e.min,t.max=t.min+ns(e)}function Hz(t,e,n){PS(t.x,e.x,n.x),PS(t.y,e.y,n.y)}function OS(t,e,n){t.min=e.min-n.min,t.max=t.min+ns(e)}function Pd(t,e,n){OS(t.x,e.x,n.x),OS(t.y,e.y,n.y)}function Wz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function _S(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 zz(t,{top:e,left:n,bottom:r,right:i}){return{x:_S(t.x,n,i),y:_S(t.y,e,r)}}function RS(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 Yz(t,e){return{x:RS(t.x,e.x),y:RS(t.y,e.y)}}function Gz(t,e){let n=.5;const r=ns(t),i=ns(e);return i>r?n=Vd(e.min,e.max-r,t.min):r>i&&(n=Vd(t.min,t.max-i,e.min)),Su(0,1,n)}function qz(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 Cv=.35;function Xz(t=Cv){return t===!1?t=0:t===!0&&(t=Cv),{x:AS(t,"left","right"),y:AS(t,"top","bottom")}}function AS(t,e,n){return{min:IS(t,e),max:IS(t,n)}}function IS(t,e){return typeof t=="number"?t:t[e]||0}const MS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tf=()=>({x:MS(),y:MS()}),LS=()=>({min:0,max:0}),kr=()=>({x:LS(),y:LS()});function _s(t){return[t("x"),t("y")]}function xD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Kz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Zz(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 um(t){return t===void 0||t===1}function Ev({scale:t,scaleX:e,scaleY:n}){return!um(t)||!um(e)||!um(n)}function gc(t){return Ev(t)||SD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function SD(t){return FS(t.x)||FS(t.y)}function FS(t){return t&&t!=="0%"}function xp(t,e,n){const r=t-n,i=e*r;return n+i}function NS(t,e,n,r,i){return i!==void 0&&(t=xp(t,i,r)),xp(t,n,r)+e}function kv(t,e=0,n=1,r,i){t.min=NS(t.min,e,n,r,i),t.max=NS(t.max,e,n,r,i)}function TD(t,{x:e,y:n}){kv(t.x,e.translate,e.scale,e.originPoint),kv(t.y,n.translate,n.scale,n.originPoint)}function Jz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Cf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,TD(t,a)),r&&gc(o.latestValues)&&Cf(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 cu(t,e){t.min=t.min+e,t.max=t.max+e}function BS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);kv(t,e[n],e[r],a,e.scale)}const Qz=["x","scaleX","originX"],e5=["y","scaleY","originY"];function Cf(t,e){BS(t.x,e,Qz),BS(t.y,e,e5)}function CD(t,e){return xD(Zz(t.getBoundingClientRect(),e))}function t5(t,e,n){const r=CD(t,n),{scroll:i}=e;return i&&(cu(r.x,i.offset.x),cu(r.y,i.offset.y)),r}const ED=({current:t})=>t?t.ownerDocument.defaultView:null,n5=new WeakMap;class r5{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=kr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qp(y,"page").point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=jk(T),!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),_s(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Va.test(R)){const{projection:H}=this.visualElement;if(H&&H.layout){const U=H.layout.layoutBox[j];U&&(R=ns(U)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Ln.update(()=>A(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=i5(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>_s(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new bD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:ED(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Rh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=Wz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zz(i.layoutBox,n):this.constraints=!1,this.elastic=Xz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_s(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=qz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xf(e))return!1;const r=e.current;la(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=t5(r,i.root,this.visualElement.getTransformPagePoint());let a=Yz(i.layout.layoutBox,o);if(n){const c=n(Kz(a));this.hasMutatedConstraints=!!c,c&&(a=xD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=_s(y=>{if(!Rh(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(tb(e,r,0,n))}stopAnimation(){_s(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_s(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){_s(n=>{const{drag:r}=this.getProps();if(!Rh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_s(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=Gz({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_s(a=>{if(!Rh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;n5.set(this.visualElement,this);const e=this.visualElement.current,n=El(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();xf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=xl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(_s(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Cv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Rh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function i5(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class o5 extends Pu{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new r5(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const $S=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class s5 extends Pu{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new bD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ED(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$S(e),onStart:$S(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=El(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 a5(){const t=X.useContext(By);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function VS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const cd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=VS(t,e.target.x),r=VS(t,e.target.y);return`${n}% ${r}%`}},l5={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Tu.parse(t);if(i.length>5)return r;const o=Tu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class u5 extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;vH(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Xh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kD(t){const[e,n]=a5(),r=X.useContext(xk);return X.createElement(u5,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(Sk),isPresent:e,safeToRemove:n})}const c5={borderRadius:{...cd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cd,borderTopRightRadius:cd,borderBottomLeftRadius:cd,borderBottomRightRadius:cd,boxShadow:l5},DD=["TopLeft","TopRight","BottomLeft","BottomRight"],f5=DD.length,US=t=>typeof t=="string"?parseFloat(t):t,HS=t=>typeof t=="number"||Rt.test(t);function d5(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,h5(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,p5(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<f5;a++){const c=`border${DD[a]}Radius`;let f=WS(e,c),p=WS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||HS(f)===HS(p)?(t[c]=Math.max(Zn(US(f),US(p),r),0),(Va.test(p)||Va.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function WS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const h5=PD(0,.5,Kk),p5=PD(.5,.95,sr);function PD(t,e,n){return r=>r<t?0:r>e?1:n(Vd(t,e,r))}function zS(t,e){t.min=e.min,t.max=e.max}function Ds(t,e){zS(t.x,e.x),zS(t.y,e.y)}function YS(t,e,n,r,i){return t-=e,t=xp(t,1/n,r),i!==void 0&&(t=xp(t,1/i,r)),t}function g5(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=YS(t.min,e,n,c,i),t.max=YS(t.max,e,n,c,i)}function GS(t,e,[n,r,i],o,a){g5(t,e[n],e[r],e[i],e.scale,o,a)}const m5=["x","scaleX","originX"],v5=["y","scaleY","originY"];function qS(t,e,n,r){GS(t.x,e,m5,n?n.x:void 0,r?r.x:void 0),GS(t.y,e,v5,n?n.y:void 0,r?r.y:void 0)}function XS(t){return t.translate===0&&t.scale===1}function OD(t){return XS(t.x)&&XS(t.y)}function y5(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 _D(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 KS(t){return ns(t.x)/ns(t.y)}class b5{constructor(){this.members=[]}add(e){nb(this.members,e),e.scheduleRender()}remove(e){if(rb(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ZS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const w5=(t,e)=>t.depth-e.depth;class x5{constructor(){this.children=[],this.isDirty=!1}add(e){nb(this.children,e),this.isDirty=!0}remove(e){rb(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w5),this.isDirty=!1,this.children.forEach(e)}}function S5(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Ol(r),t(o-e))};return Ln.read(r,!0),()=>Ol(r)}function T5(t){window.MotionDebug&&window.MotionDebug.record(t)}function C5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function E5(t,e,n){const r=Ao(t)?t:Af(t);return r.start(tb("",r,e,n)),r.animation}const JS=["","X","Y","Z"],k5={visibility:"hidden"},QS=1e3;let D5=0;const mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function RD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=D5++,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,mc.totalNodes=mc.resolvedTargetDeltas=mc.recalculatedProjection=0,this.nodes.forEach(_5),this.nodes.forEach(L5),this.nodes.forEach(F5),this.nodes.forEach(R5),T5(mc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new x5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ib),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=C5(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=S5(T,250),Xh.hasAnimatedSinceResize&&(Xh.hasAnimatedSinceResize=!1,this.nodes.forEach(t1))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||V5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),H=!this.targetLayout||!_D(this.targetLayout,A)||E,U=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const ne={...eb(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||t1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ol(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(N5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!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 y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e1);return}this.isUpdating||this.nodes.forEach(I5),this.isUpdating=!1,this.nodes.forEach(M5),this.nodes.forEach(P5),this.nodes.forEach(O5),this.clearAllSnapshots();const c=performance.now();Ni.delta=Su(0,1e3/60,c-Ni.timestamp),Ni.timestamp=c,Ni.isProcessing=!0,em.update.process(Ni),em.preRender.process(Ni),em.render.process(Ni),Ni.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(A5),this.sharedNodes.forEach(j5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!OD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||gc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),U5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kr();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(cu(c.x,f.offset.x),cu(c.y,f.offset.y)),c}removeElementScroll(a){const c=kr();Ds(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Ds(c,a);const{scroll:T}=this.root;T&&(cu(c.x,-T.offset.x),cu(c.y,-T.offset.y))}cu(c.x,y.offset.x),cu(c.y,y.offset.y)}}return c}applyTransform(a,c=!1){const f=kr();Ds(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Cf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),gc(y.latestValues)&&Cf(f,y.latestValues)}return gc(this.latestValues)&&Cf(f,this.latestValues),f}removeTransform(a){const c=kr();Ds(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!gc(p.latestValues))continue;Ev(p.latestValues)&&p.updateSnapshot();const y=kr(),g=p.measurePageBox();Ds(y,g),qS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return gc(this.latestValues)&&qS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Ni.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ni.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Pd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kr(),this.targetWithTransforms=kr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Hz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ds(this.target,this.layout.layoutBox),TD(this.target,this.targetDelta)):Ds(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Pd(this.relativeTargetOrigin,this.target,E.target),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ev(this.parent.latestValues)||SD(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 a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ni.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Ds(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Jz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=Tf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Tf(),this.projectionDeltaWithTransform=Tf());const I=this.projectionTransform;Dd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=ZS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),mc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=Tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=kr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,H=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some($5));this.animationProgress=0;let U;this.mixTargetDelta=ne=>{const q=ne/1e3;n1(g.x,a.x,q),n1(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),B5(this.relativeTarget,this.relativeTargetOrigin,T,q),U&&y5(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=kr()),Ds(U,this.relativeTarget)),I&&(this.animationValues=y,d5(y,p,this.latestValues,q,H,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ol(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Xh.hasAnimatedSinceResize=!0,this.currentAnimation=E5(0,QS,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(QS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&AD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kr();const g=ns(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=ns(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Ds(c,f),Cf(c,y),Dd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new b5),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<JS.length;y++){const g="rotate"+JS[y];f[g]&&(p[g]=f[g],a.setStaticValue(g,0))}a.render();for(const y in p)a.setStaticValue(y,p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return k5;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=qh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=qh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=ZS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in pp){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=pp[I],H=p.transform==="none"?T[I]:j(T[I],g);if(R){const U=R.length;for(let ne=0;ne<U;ne++)p[R[ne]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?qh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(e1),this.root.sharedNodes.clear()}}}function P5(t){t.updateLayout()}function O5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?_s(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ns(T);T.min=r[g].min,T.max=T.min+E}):AD(o,n.layoutBox,r)&&_s(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ns(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=Tf();Dd(c,r,n.layoutBox);const f=Tf();a?Dd(f,t.applyTransform(i,!0),n.measuredBox):Dd(f,r,n.layoutBox);const p=!OD(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=kr();Pd(A,n.layoutBox,T.layoutBox);const I=kr();Pd(I,r,E.layoutBox),_D(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function _5(t){mc.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 R5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function A5(t){t.clearSnapshot()}function e1(t){t.clearMeasurements()}function I5(t){t.isLayoutDirty=!1}function M5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function L5(t){t.resolveTargetDelta()}function F5(t){t.calcProjection()}function N5(t){t.resetRotation()}function j5(t){t.removeLeadSnapshot()}function n1(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r1(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function B5(t,e,n,r){r1(t.x,e.x,n.x,r),r1(t.y,e.y,n.y,r)}function $5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const V5={duration:.45,ease:[.4,0,.1,1]},i1=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),o1=i1("applewebkit/")&&!i1("chrome/")?Math.round:sr;function s1(t){t.min=o1(t.min),t.max=o1(t.max)}function U5(t){s1(t.x),s1(t.y)}function AD(t,e,n){return t==="position"||t==="preserve-aspect"&&!Tv(KS(e),KS(n),.2)}const H5=RD({attachResizeListener:(t,e)=>xl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cm={current:void 0},ID=RD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!cm.current){const t=new H5({});t.mount(window),t.setOptions({layoutScroll:!0}),cm.current=t}return cm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),W5={pan:{Feature:s5},drag:{Feature:o5,ProjectionNode:ID,MeasureLayout:kD}},z5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Y5(t){const e=z5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const G5=4;function Dv(t,e,n=1){la(n<=G5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Y5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return gD(a)?parseFloat(a):a}else return mv(i)?Dv(i,e,n+1):i}function q5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!mv(o))return;const a=Dv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!mv(o))continue;const a=Dv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const X5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),MD=t=>X5.has(t),K5=t=>Object.keys(t).some(MD),Ah=t=>t===Ic||t===Rt,a1=(t,e)=>parseFloat(t.split(", ")[e]),l1=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return a1(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?a1(o[1],t):0}},Z5=new Set(["x","y","z"]),J5=Jd.filter(t=>!Z5.has(t));function Q5(t){const e=[];return J5.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 If={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:l1(4,13),y:l1(5,14)};If.translateX=If.x;If.translateY=If.y;const e4=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=If[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const y=e.getValue(p);y&&y.jump(c[p]),t[p]=If[p](f,o)}),t},t4=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(MD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let y=n[f],g=ud(y);const T=e[f];let E;if(mp(T)){const A=T.length,I=T[0]===null?1:0;y=T[I],g=ud(y);for(let j=I;j<A&&T[j]!==null;j++)E?la(ud(T[j])===E,"All keyframes must be of the same type"):(E=ud(T[j]),la(E===g||Ah(g)&&Ah(E),"Keyframes must be of the same dimension as the current value"))}else E=ud(T);if(g!==E)if(Ah(g)&&Ah(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else g!=null&&g.transform&&(E!=null&&E.transform)&&(y===0||T===0)?y===0?p.set(E.transform(y)):e[f]=g.transform(T):(a||(o=Q5(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=e4(e,t,c);return o.length&&o.forEach(([y,g])=>{t.getValue(y).set(g)}),t.render(),Wp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function n4(t,e,n,r){return K5(e)?t4(t,e,n,r):{target:e,transitionEnd:r}}const r4=(t,e,n,r)=>{const i=q5(t,e,r);return e=i.target,r=i.transitionEnd,n4(t,e,n,r)},Pv={current:null},LD={current:!1};function i4(){if(LD.current=!0,!!Wp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pv.current=t.matches;t.addListener(e),e()}else Pv.current=!1}function o4(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ao(o))t.addValue(i,o),wp(r)&&r.add(i),process.env.NODE_ENV==="development"&&ob(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Ao(a))t.addValue(i,Af(o,{owner:t})),wp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Af(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const u1=new WeakMap,FD=Object.keys($d),s4=FD.length,c1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],a4=Uy.length;class l4{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){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=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Yp(n),this.isVariantNode=wk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const T=y[g];c[g]!==void 0&&Ao(T)&&(T.set(c[g],!1),wp(p)&&p.add(g))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,u1.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)),LD.current||i4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pv.current,process.env.NODE_ENV!=="production"&&ob(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){u1.delete(this.current),this.projection&&this.projection.unmount(),Ol(this.notifyUpdate),Ol(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=Ac.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?th(!1,f):la(!1,f)}for(let f=0;f<s4;f++){const p=FD[f],{isEnabled:y,Feature:g,ProjectionNode:T,MeasureLayout:E}=$d[p];T&&(a=T),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&xf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}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):kr()}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<c1.length;r++){const i=c1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=o4(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<a4;r++){const i=Uy[r],o=this.props[i];(Bd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Af(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Xy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ao(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ib),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ND extends l4{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=Cz(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){Sz(this,r,a);const c=r4(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function u4(t){return window.getComputedStyle(t)}class c4 extends ND{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ac.has(n)){const r=Qy(n);return r&&r.default||0}else{const r=u4(e),i=(Ek(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return CD(e,n)}build(e,n,r,i){Wy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ao(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Rk(e,n,r,i)}}class f4 extends ND{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ac.has(n)){const r=Qy(n);return r&&r.default||0}return n=Ak.has(n)?n:$y(n),e.getAttribute(n)}measureInstanceViewportBox(){return kr()}scrapeMotionValuesFromProps(e,n){return Mk(e,n)}build(e,n,r,i){Yy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Ik(e,n,r,i)}mount(e){this.isSVGTag=Gy(e.tagName),super.mount(e)}}const d4=(t,e)=>Hy(t)?new f4(e,{enableHardwareAcceleration:!1}):new c4(e,{enableHardwareAcceleration:!0}),h4={layout:{ProjectionNode:ID,MeasureLayout:kD}},p4={...Bz,...aW,...W5,...h4},jD=gH((t,e)=>qH(t,e,p4,d4));function BD(t){return Pp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function $D(t){return Pp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function sb(t,e){return e?t:void 0}function g4(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.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 m4(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,f]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,E=y.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!E&&(g=p.top-y.height+p.height),o({top:g,left:T})}},[n,a]),r?e({maxHeight:c}):Uv.createPortal(be.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function fm(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
7
+ ${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Ko)[f])})`);return{id:f,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Gh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Gh.isSetUp=!0,Nt(this,fv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Gh.isSetUp=!1,Nt(this,dv).call(this,window),Nt(this,Ko)[Nt(this,Xo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,gd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,gd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,gd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Ko)[Nt(this,Xo)].instance.profile(),this.previewEnabled=()=>Nt(this,Ko)[Nt(this,Xo)].preview,this.previewsList=()=>Nt(this,pd),this.backendsList=()=>Nt(this,yl),Ps(this,fv,i=>{for(let o of Nt(this,yl))o.transition&&i.addEventListener(o.transition.event,Nt(this,zh))}),Ps(this,dv,i=>{for(let o of Nt(this,yl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,zh))}),Ps(this,zh,i=>{var a;let o=Nt(this,Xo);if(Nt(this,yl).some(c=>c.id!==Nt(this,Xo)&&c.transition&&c.transition.check(i)?(hc(this,Xo,c.id),!0):!1),Nt(this,Xo)!==o){Nt(this,Ko)[o].instance.teardown();for(let[y,g]of Object.entries(Nt(this,pc)))g.unsubscribe(),g.unsubscribe=Nt(this,Yh).call(this,g.func,...g.args);Nt(this,pd).backendChanged(this);let c=Nt(this,Ko)[Nt(this,Xo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let f=i.constructor,p=new f(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),Ps(this,Yh,(i,o,a,c)=>Nt(this,Ko)[Nt(this,Xo)].instance[i](o,a,c)),Ps(this,gd,(i,o,a,c)=>{let f=`${i}_${o}`,p=Nt(this,Yh).call(this,i,o,a,c);return Nt(this,pc)[f]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,pc)[f].unsubscribe(),delete Nt(this,pc)[f]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
8
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);hc(this,pd,new pU),hc(this,Ko,{}),hc(this,yl,[]);for(let i of r.backends){let o=Nt(this,cv).call(this,e,n,i);Nt(this,Ko)[o.id]=o,Nt(this,yl).push(o)}hc(this,Xo,Nt(this,yl)[0].id),hc(this,pc,{})}};Xo=new WeakMap,pd=new WeakMap,Ko=new WeakMap,yl=new WeakMap,pc=new WeakMap,cv=new WeakMap,fv=new WeakMap,dv=new WeakMap,zh=new WeakMap,Yh=new WeakMap,gd=new WeakMap,ak.isSetUp=!1;var gU=ak,mU=(t,e,n)=>new gU(t,e,n),lk=(t,e)=>({event:t,check:e}),vU=lk("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),yU=lk("pointerdown",t=>t.pointerType==="mouse"),du;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(du||(du={}));class bU{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function wU(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function xU(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const SU={Left:1},TU={Left:0};function Qg(t){return t.button===void 0||t.button===TU.Left}function CU(t){return t.buttons===void 0||(t.buttons&SU.Left)===0}function uk(t){return!!t.targetTouches}const EU=1;function kU(t){const e=t.nodeType===EU?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function DU(t,e){if(t.targetTouches.length===1)return pp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return pp(t.touches[0])}function pp(t,e){return uk(t)?DU(t,e):{x:t.clientX,y:t.clientY}}const eS=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),ad={[du.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[du.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[du.keyboard]:{keydown:"keydown"}};class Cd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ht(!Cd.isSetUp,"Cannot have two Touch backends at the same time."),Cd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Cd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=eS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=ad[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=eS?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=ad[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case ad.mouse.move:a={x:o.clientX,y:o.clientY};break;case ad.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&kU(o)},this.handleTopMoveStartCapture=i=>{Qg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Qg(i))return;const o=pp(i);o&&(uk(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Qg(i))return;const o=i.type===ad.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,f=pp(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&xU(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&wU(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const A in g){if(!g.hasOwnProperty(A))continue;let I=g[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>y.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!CU(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new bU(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(du.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(du.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(du.keyboard)}}const PU=function(e,n={},r={}){return new Cd(e,n,r)};var Ms=function(){return Ms=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ms.apply(this,arguments)};function oo(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function OU(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,f=hV({polyfill:BF}),p=f[0],y=f[1].height,g=X.useState(e),T=g[0],E=g[1],A=X.useState(e),I=A[0],j=A[1],R=X.useState(!1),H=R[0],U=R[1],ne=function(){U(!1),e||E(!1)};X.useEffect(function(){U(!0),e?E(!0):j(!1)},[e]);var q=y===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(fV.div,{style:H?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:_U(y,i)}},X.createElement("div",{ref:p},T&&c))}function _U(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var ck=X.createContext({}),RU={isLock:!1},AU=function(t){var e=X.useState(RU.isLock),n=e[0],r=e[1];return X.createElement(ck.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Jd=X.createContext({}),Ph={dropTargetId:void 0,index:void 0},IU=function(t){var e=X.useState(Ph.dropTargetId),n=e[0],r=e[1],i=X.useState(Ph.index),o=i[0],a=i[1],c=function(p,y){r(p),a(y)},f=function(){r(Ph.dropTargetId),a(Ph.index)};return X.createElement(Jd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},MU=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},ld=function(t,e){return t.find(function(n){return n.id===e})},fk=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:fk(t,e,r.parent)},jy=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},xu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(y){return y.id===e});return!!(a&&a.droppable)}else{var c=jy(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(g){return g.id===c}),a=r.find(function(g){return g.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!fk(r,c,e)}},LU=function(t,e,n){return t.map(function(r){return r.id===e?Ms(Ms({},r),{parent:n}):r})},dk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},FU=function(t,e){return t.findIndex(function(n){return n.id===e})},hk=function(t,e,n,r){var i=FU(t,e),o=dk(t,n,r);return o=o>i?o-1:o,[i,o]},NU=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},jU=function(t,e,n,r){var i=hk(t,e,n,r),o=i[0],a=i[1],c=oo([],t,!0);return NU(c,o,a),c.map(function(f){return f.id===e?Ms(Ms({},f),{parent:n}):f})},BU=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},hv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=BU(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},tS=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?hv(i,n):null},$U=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},pv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:hv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=$U(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(a,t.parent,r)){var p=tS(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:hv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(xu(a,t.parent,r)){var p=tS(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},VU=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:uC,options:t.html5,transition:yU},{id:"touch",backend:PU,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:vU}]}},qh=function(t,e){return t.some(function(n){return n.parent===e})},pk=X.createContext({}),UU=function(t){var e=XU(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Rl().getMonitor(),y=t.canDrop,g=t.canDrag,T=Ms(Ms({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:ld(t.tree,A),monitor:p},R=t.tree;if(ld(R,E.id)||(R=oo(oo([],R,!0),[E],!1)),t.sort===!1){var H=hk(R,E.id,A,I),U=H[1];j.destinationIndex=U,j.relativeIndex=I,t.onDrop(jU(R,E.id,A,I),j);return}t.onDrop(LU(R,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:ld(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=dk(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:y?function(E,A){return y(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:ld(t.tree,A),monitor:p})}:void 0,canDrag:g?function(E){return g(ld(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(pk.Provider,{value:T},t.children)},HU=function(t){return X.createElement(UU,Ms({},t),X.createElement(AU,null,X.createElement(IU,null,t.children)))},WU=function(t){var e=X.useContext(ck);X.useEffect(function(){if(t.current){var n=t.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},c=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Up={TREE_ITEM:Symbol()},gk=null,mk=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(gk=n)}},nS=function(t){return mk(t)},rS=function(t){return mk(t)},zU=function(t,e){var n=Du();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",nS),c==null||c.addEventListener("touchstart",rS,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",nS),c==null||c.removeEventListener("touchstart",rS)}},[e]);var r=ik({type:Up.TREE_ITEM,item:function(c){var f=Ms({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return gk!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},YU=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},GU=function(t){var e=Du(),n=X.useContext(Jd),r=hp({accept:oo([Up.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var y=e.rootId,g=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&g(jy(f)?f:null,y,E),n.hidePlaceholder()},canDrop:function(f,p){var y=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=e.rootId,g=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=pv(null,t.current,p,e);if(I===null||!xu(f,y,e)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},qU=function(t,e){var n=Du(),r=X.useContext(Jd),i=hp({accept:oo([Up.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(jy(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=pv(t,e.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=pv(t,e.current,y,n);if(I===null||!xu(p,I.id,n)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,c=o.dragSource,f=i[1];return[a,c,f]},XU=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(g){return qh(t,g.id)}).map(function(g){return g.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(g,T){var E=i.includes(g)?i.filter(function(A){return A!==g}):oo(oo([],i,!0),[g],!1);o(E),T&&T(E)},c=function(g){o([]),g&&g([])},f=function(g){var T=t.filter(function(E){return qh(t,E.id)}).map(function(E){return E.id});o(T),g&&g(T)},p=function(g,T){var E=[];if(Array.isArray(g)){var A=t.filter(function(I){return g.includes(I.id)&&qh(t,I.id)});E=oo(oo([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,R){return R.indexOf(I)===j})}else E=i.includes(g)?i:oo(oo([],i,!0),[g],!1);o(E),T&&T(E)},y=function(g,T){var E=i.filter(function(A){return Array.isArray(g)?!g.includes(A):A!==g});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},KU=function(){return sU(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Up.TREE_ITEM}})},Du=function(){var t=X.useContext(pk);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},ZU=function(t,e){var n=Du(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},JU=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},QU=function(t){var e=Du(),n=X.useContext(Jd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(le){return le.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),y=zU(o,r),g=y[0],T=y[1],E=y[2],A=qU(o,r),I=A[0],j=A[1],R=A[2];JU(r,i,T),xu(j,t.id,e)&&R(r),X.useEffect(function(){e.dragPreviewRender?E(yF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),WU(r);var H=function(){return e.onToggle(o.id)},U=e.listItemComponent,ne=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,ie={depth:t.depth,isOpen:p,isDragging:g,isDropTarget:q,draggable:ne,hasChild:qh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:H},x="";return c!=null&&c.listItem&&(x=typeof c.listItem=="string"?c.listItem:c.listItem(o,ie)),I&&(c!=null&&c.dropTarget)&&(x="".concat(x," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(x="".concat(x," ").concat(c.draggingSource)),X.createElement(U,{ref:r,className:x,role:"listitem"},e.render(o,ie),f&&ie.hasChild&&X.createElement(OU,{isVisible:p},X.createElement(gv,{parentId:t.id,depth:t.depth+1})),!f&&ie.hasChild&&p&&X.createElement(gv,{parentId:t.id,depth:t.depth+1}))},iS=function(t){var e=Du(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(Jd),a=Rl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=c.getTargetIds();return!p||!y.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},gv=function(t){var e=Du(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:MU;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=oo(oo([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=oo(oo([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var f=GU(n),p=f[0],y=f[1],g=f[2];t.parentId===e.rootId&&xu(y,e.rootId,e)&&g(n);var T=ZU(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,Ms({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(iS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(QU,{id:I.id,depth:t.depth}))}),X.createElement(iS,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},eH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},tH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},nH=function(){var t=Du(),e=KU(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:eH},X.createElement("div",{style:tH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function rH(t,e){return X.createElement(HU,Ms({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(nH,null),X.createElement(gv,{parentId:t.rootId,depth:0}))}var iH=X.forwardRef(rH);const vk=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Hp=X.createContext({}),By=X.createContext(null),Wp=typeof document<"u",oH=Wp?X.useLayoutEffect:X.useEffect,yk=X.createContext({strict:!1}),$y=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),sH="framerAppearId",bk="data-"+$y(sH);function aH(t,e,n,r){const{visualElement:i}=X.useContext(Hp),o=X.useContext(yk),a=X.useContext(By),c=X.useContext(vk).reducedMotion,f=X.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const y=X.useRef(!!(n[bk]&&!window.HandoffComplete));return oH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function xf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function lH(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[e])}function $d(t){return typeof t=="string"||Array.isArray(t)}function zp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Vy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Uy=["initial",...Vy];function Yp(t){return zp(t.animate)||Uy.some(e=>$d(t[e]))}function wk(t){return!!(Yp(t)||t.variants)}function uH(t,e){if(Yp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||$d(n)?n:void 0,animate:$d(r)?r:void 0}}return t.inherit!==!1?e:{}}function cH(t){const{initial:e,animate:n}=uH(t,X.useContext(Hp));return X.useMemo(()=>({initial:e,animate:n}),[oS(e),oS(n)])}function oS(t){return Array.isArray(t)?t.join(" "):t}const sS={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"]},Vd={};for(const t in sS)Vd[t]={isEnabled:e=>sS[t].some(n=>!!e[n])};function fH(t){for(const e in t)Vd[e]={...Vd[e],...t[e]}}const xk=X.createContext({}),Sk=X.createContext({}),dH=Symbol.for("motionComponentSymbol");function hH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&fH(t);function o(c,f){let p;const y={...X.useContext(vk),...c,layoutId:pH(c)},{isStatic:g}=y,T=cH(c),E=r(c,g);if(!g&&Wp){T.visualElement=aH(i,E,y,e);const A=X.useContext(Sk),I=X.useContext(yk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,I,t,A))}return kn.createElement(Hp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,lH(E,T.visualElement,f),E,g,T.visualElement))}const a=X.forwardRef(o);return a[dH]=i,a}function pH({layoutId:t}){const e=X.useContext(xk).id;return e&&t!==void 0?e+"-"+t:t}function gH(t){function e(r,i={}){return hH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const mH=["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 Hy(t){return typeof t!="string"||t.includes("-")?!1:!!(mH.indexOf(t)>-1||/[A-Z]/.test(t))}const gp={};function vH(t){Object.assign(gp,t)}const Qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ac=new Set(Qd);function Tk(t,{layout:e,layoutId:n}){return Ac.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!gp[t]||t==="opacity")}const Ao=t=>!!(t&&t.getVelocity),yH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bH=Qd.length;function wH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<bH;a++){const c=Qd[a];if(t[c]!==void 0){const f=yH[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const Ck=t=>e=>typeof e=="string"&&e.startsWith(t),Ek=Ck("--"),mv=Ck("var(--"),xH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,SH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Su=(t,e,n)=>Math.min(Math.max(n,t),e),Ic={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ed={...Ic,transform:t=>Su(0,1,t)},Oh={...Ic,default:1},kd=t=>Math.round(t*1e5)/1e5,Gp=/(-)?([\d]*\.?[\d])+/g,kk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,TH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function eh(t){return typeof t=="string"}const th=t=>({test:e=>eh(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),uu=th("deg"),Va=th("%"),Rt=th("px"),CH=th("vh"),EH=th("vw"),aS={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},lS={...Ic,transform:Math.round},Dk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Oh,scaleX:Oh,scaleY:Oh,scaleZ:Oh,skew:uu,skewX:uu,skewY:uu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Ed,originX:aS,originY:aS,originZ:Rt,zIndex:lS,fillOpacity:Ed,strokeOpacity:Ed,numOctaves:lS};function Wy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,y=!0;for(const g in e){const T=e[g];if(Ek(g)){o[g]=T;continue}const E=Dk[g],A=SH(T,E);if(Ac.has(g)){if(f=!0,a[g]=A,!y)continue;T!==(E.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=A):i[g]=A}if(e.transform||(f||r?i.transform=wH(t.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${g} ${T} ${E}`}}const zy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pk(t,e,n){for(const r in e)!Ao(e[r])&&!Tk(r,n)&&(t[r]=e[r])}function kH({transformTemplate:t},e,n){return X.useMemo(()=>{const r=zy();return Wy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function DH(t,e,n){const r=t.style||{},i={};return Pk(i,r,t),Object.assign(i,kH(t,e,n)),t.transformValues?t.transformValues(i):i}function PH(t,e,n){const r={},i=DH(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const OH=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 mp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||OH.has(t)}let Ok=t=>!mp(t);function _H(t){t&&(Ok=e=>e.startsWith("on")?!mp(e):t(e))}try{_H(require("@emotion/is-prop-valid").default)}catch{}function RH(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ok(i)||n===!0&&mp(i)||!e&&!mp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function uS(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function AH(t,e,n){const r=uS(e,t.x,t.width),i=uS(n,t.y,t.height);return`${r} ${i}`}const IH={offset:"stroke-dashoffset",array:"stroke-dasharray"},MH={offset:"strokeDashoffset",array:"strokeDasharray"};function LH(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?IH:MH;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function Yy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g,T){if(Wy(t,p,y,T),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=AH(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&LH(E,a,c,f,!1)}const _k=()=>({...zy(),attrs:{}}),Gy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function FH(t,e,n,r){const i=X.useMemo(()=>{const o=_k();return Yy(o,e,{enableHardwareAcceleration:!1},Gy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Pk(o,t.style,t),i.style={...o,...i.style}}return i}function NH(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(Hy(n)?FH:PH)(r,o,a,n),y={...RH(r,typeof n=="string",t),...f,ref:i},{children:g}=r,T=X.useMemo(()=>Ao(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function Rk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Ak=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 Ik(t,e,n,r){Rk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Ak.has(i)?i:$y(i),e.attrs[i])}function qy(t,e){const{style:n}=t,r={};for(const i in n)(Ao(n[i])||e.style&&Ao(e.style[i])||Tk(i,t))&&(r[i]=n[i]);return r}function Mk(t,e){const n=qy(t,e);for(const r in t)if(Ao(t[r])||Ao(e[r])){const i=Qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Xy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function jH(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const vp=t=>Array.isArray(t),BH=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$H=t=>vp(t)?t[t.length-1]||0:t;function Xh(t){const e=Ao(t)?t.get():t;return BH(e)?e.toValue():e}function VH({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:UH(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const Lk=t=>(e,n)=>{const r=X.useContext(Hp),i=X.useContext(By),o=()=>VH(t,e,r,i);return n?o():jH(o)};function UH(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Xh(o[T]);let{initial:a,animate:c}=t;const f=Yp(t),p=wk(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;return g&&typeof g!="boolean"&&!zp(g)&&(Array.isArray(g)?g:[g]).forEach(E=>{const A=Xy(t,E);if(!A)return;const{transitionEnd:I,transition:j,...R}=A;for(const H in R){let U=R[H];if(Array.isArray(U)){const ne=y?U.length-1:0;U=U[ne]}U!==null&&(i[H]=U)}for(const H in I)i[H]=I[H]}),i}const sr=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 HH(t){let e=new cS,n=new cS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?e:n;return p&&a.add(f),T.add(f)&&g&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const y=e.order[p];y(f),a.has(y)&&(c.schedule(y),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const _h=["prepare","read","update","preRender","render","postRender"],WH=40;function zH(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=_h.reduce((g,T)=>(g[T]=HH(()=>n=!0),g),{}),a=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,WH),1),i.timestamp=g,i.isProcessing=!0,_h.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:_h.reduce((g,T)=>{const E=o[T];return g[T]=(A,I=!1,j=!1)=>(n||f(),E.schedule(A,I,j)),g},{}),cancel:g=>_h.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Ln,cancel:Ol,state:Ni,steps:em}=zH(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),YH={useVisualState:Lk({scrapeMotionValuesFromProps:Mk,createRenderState:_k,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{Yy(n,r,{enableHardwareAcceleration:!1},Gy(e.tagName),t.transformTemplate),Ik(e,n)})}})},GH={useVisualState:Lk({scrapeMotionValuesFromProps:qy,createRenderState:zy})};function qH(t,{forwardMotionProps:e=!1},n,r){return{...Hy(t)?YH:GH,preloadedFeatures:n,useRender:NH(e),createVisualElement:r,Component:t}}function xl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Fk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function qp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const XH=t=>e=>Fk(e)&&t(e,qp(e));function El(t,e,n,r){return xl(t,e,XH(n),r)}const KH=(t,e)=>n=>e(t(n)),hu=(...t)=>t.reduce(KH);function Nk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const fS=Nk("dragHorizontal"),dS=Nk("dragVertical");function jk(t){let e=!1;if(t==="y")e=dS();else if(t==="x")e=fS();else{const n=fS(),r=dS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Bk(){const t=jk(!0);return t?(t(),!1):!0}class Pu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function hS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Bk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return El(t.current,n,i,{passive:!t.getProps()[r]})}class ZH extends Pu{mount(){this.unmount=hu(hS(this.node,!0),hS(this.node,!1))}unmount(){}}class JH extends Pu{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=hu(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const $k=(t,e)=>e?t===e?!0:$k(t,e.parentElement):!1;function tm(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,qp(n))}class QH extends Pu{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=El(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Ln.update(()=>{!g&&!$k(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=El(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||tm("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Ln.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=xl(this.node.current,"keyup",a),tm("down",(c,f)=>{this.startPress(c,f)})},n=xl(this.node.current,"keydown",e),r=()=>{this.isPressing&&tm("cancel",(o,a)=>this.cancelPress(o,a))},i=xl(this.node.current,"blur",r);this.removeAccessibleListeners=hu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Bk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=El(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const vv=new WeakMap,nm=new WeakMap,eW=t=>{const e=vv.get(t.target);e&&e(t)},tW=t=>{t.forEach(eW)};function nW({root:t,...e}){const n=t||document;nm.has(n)||nm.set(n,{});const r=nm.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(tW,{root:t,...e})),r[i]}function rW(t,e,n){const r=nW(e);return vv.set(t,n),r.observe(t),()=>{vv.delete(t),r.unobserve(t)}}const iW={some:0,all:1};class oW extends Pu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:iW[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return rW(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(sW(e,n))&&this.startObserver()}unmount(){}}function sW({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const aW={inView:{Feature:oW},tap:{Feature:QH},focus:{Feature:JH},hover:{Feature:ZH}};function Vk(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 lW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function uW(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Xp(t,e,n){const r=t.getProps();return Xy(r,e,n!==void 0?n:r.custom,lW(t),uW(t))}let nh=sr,la=sr;process.env.NODE_ENV!=="production"&&(nh=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},la=(t,e)=>{if(!t)throw new Error(e)});const pu=t=>t*1e3,kl=t=>t/1e3,cW={current:!1},Uk=t=>Array.isArray(t)&&typeof t[0]=="number";function Hk(t){return!!(!t||typeof t=="string"&&Wk[t]||Uk(t)||Array.isArray(t)&&t.every(Hk))}const md=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Wk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:md([0,.65,.55,1]),circOut:md([.55,0,1,.45]),backIn:md([.31,.01,.66,-.59]),backOut:md([.33,1.53,.69,.99])};function zk(t){if(t)return Uk(t)?md(t):Array.isArray(t)?t.map(zk):Wk[t]}function fW(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=zk(c);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function dW(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Yk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,hW=1e-7,pW=12;function gW(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Yk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>hW&&++c<pW);return a}function rh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>gW(o,0,1,t,n);return o=>o===0||o===1?o:Yk(i(o),e,r)}const mW=rh(.42,0,1,1),vW=rh(0,0,.58,1),Gk=rh(.42,0,.58,1),yW=t=>Array.isArray(t)&&typeof t[0]!="number",qk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Xk=t=>e=>1-t(1-e),Ky=t=>1-Math.sin(Math.acos(t)),Kk=Xk(Ky),bW=qk(Ky),Zk=rh(.33,1.53,.69,.99),Zy=Xk(Zk),wW=qk(Zy),xW=t=>(t*=2)<1?.5*Zy(t):.5*(2-Math.pow(2,-10*(t-1))),pS={linear:sr,easeIn:mW,easeInOut:Gk,easeOut:vW,circIn:Ky,circInOut:bW,circOut:Kk,backIn:Zy,backInOut:wW,backOut:Zk,anticipate:xW},gS=t=>{if(Array.isArray(t)){la(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return rh(e,n,r,i)}else if(typeof t=="string")return la(pS[t]!==void 0,`Invalid easing type '${t}'`),pS[t];return t},Jy=(t,e)=>n=>!!(eh(n)&&TH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Jk=(t,e,n)=>r=>{if(!eh(r))return r;const[i,o,a,c]=r.match(Gp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},SW=t=>Su(0,255,t),rm={...Ic,transform:t=>Math.round(SW(t))},bc={test:Jy("rgb","red"),parse:Jk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+rm.transform(t)+", "+rm.transform(e)+", "+rm.transform(n)+", "+kd(Ed.transform(r))+")"};function TW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const yv={test:Jy("#"),parse:TW,transform:bc.transform},Sf={test:Jy("hsl","hue"),parse:Jk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(kd(e))+", "+Va.transform(kd(n))+", "+kd(Ed.transform(r))+")"},io={test:t=>bc.test(t)||yv.test(t)||Sf.test(t),parse:t=>bc.test(t)?bc.parse(t):Sf.test(t)?Sf.parse(t):yv.parse(t),transform:t=>eh(t)?t:t.hasOwnProperty("red")?bc.transform(t):Sf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function im(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 CW({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=im(f,c,t+1/3),o=im(f,c,t),a=im(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const om=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},EW=[yv,bc,Sf],kW=t=>EW.find(e=>e.test(t));function mS(t){const e=kW(t);la(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Sf&&(n=CW(n)),n}const Qk=(t,e)=>{const n=mS(t),r=mS(e),i={...n};return o=>(i.red=om(n.red,r.red,o),i.green=om(n.green,r.green,o),i.blue=om(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),bc.transform(i))};function DW(t){var e,n;return isNaN(t)&&eh(t)&&(((e=t.match(Gp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(kk))===null||n===void 0?void 0:n.length)||0)>0}const eD={regex:xH,countKey:"Vars",token:"${v}",parse:sr},tD={regex:kk,countKey:"Colors",token:"${c}",parse:io.parse},nD={regex:Gp,countKey:"Numbers",token:"${n}",parse:Ic.parse};function sm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function yp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&sm(n,eD),sm(n,tD),sm(n,nD),n}function rD(t){return yp(t).values}function iD(t){const{values:e,numColors:n,numVars:r,tokenised:i}=yp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(eD.token,a[f]):f<r+n?c=c.replace(tD.token,io.transform(a[f])):c=c.replace(nD.token,kd(a[f]));return c}}const PW=t=>typeof t=="number"?0:t;function OW(t){const e=rD(t);return iD(t)(e.map(PW))}const Tu={test:DW,parse:rD,createTransformer:iD,getAnimatableNone:OW},oD=(t,e)=>n=>`${n>0?e:t}`;function sD(t,e){return typeof t=="number"?n=>Zn(t,e,n):io.test(t)?Qk(t,e):t.startsWith("var(")?oD(t,e):lD(t,e)}const aD=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>sD(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},_W=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=sD(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},lD=(t,e)=>{const n=Tu.createTransformer(e),r=yp(t),i=yp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?hu(aD(r.values,i.values),n):(nh(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oD(t,e))},Ud=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},vS=(t,e)=>n=>Zn(t,e,n);function RW(t){return typeof t=="number"?vS:typeof t=="string"?io.test(t)?Qk:lD:Array.isArray(t)?aD:typeof t=="object"?_W:vS}function AW(t,e,n){const r=[],i=n||RW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=hu(f,c)}r.push(c)}return r}function uD(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(la(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=AW(e,r,i),c=a.length,f=p=>{let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const g=Ud(t[y],t[y+1],p);return a[y](g)};return n?p=>f(Su(t[0],t[o-1],p)):f}function IW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Ud(0,e,r);t.push(Zn(n,1,i))}}function MW(t){const e=[0];return IW(e,t.length-1),e}function LW(t,e){return t.map(n=>n*e)}function FW(t,e){return t.map(()=>e||Gk).splice(0,t.length-1)}function bp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=yW(r)?r.map(gS):gS(r),o={done:!1,value:e[0]},a=LW(n&&n.length===e.length?n:MW(e),t),c=uD(a,e,{ease:Array.isArray(i)?i:FW(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function cD(t,e){return e?t*(1e3/e):0}const NW=5;function fD(t,e,n){const r=Math.max(e-NW,0);return cD(n-t(r),e-r)}const yS=.001,jW=.01,bS=10,BW=.05,$W=1;function VW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;nh(t<=pu(bS),"Spring duration must be 10 seconds or less");let a=1-e;a=Su(BW,$W,a),t=Su(jW,bS,kl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=bv(p,a),A=Math.exp(-g);return yS-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=bv(Math.pow(p,2),a);return(-i(p)+yS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=HW(i,o,c);if(t=pu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const UW=12;function HW(t,e,n){let r=n;for(let i=1;i<UW;i++)r=r-t(r)/e(r);return r}function bv(t,e){return t*Math.sqrt(1-e*e)}const WW=["duration","bounce"],zW=["stiffness","damping","mass"];function wS(t,e){return e.some(n=>t[n]!==void 0)}function YW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!wS(t,zW)&&wS(t,WW)){const n=VW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function dD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:T}=YW({...r,velocity:-kl(r.velocity||0)}),E=g||0,A=f/(2*Math.sqrt(c*p)),I=o-i,j=kl(Math.sqrt(c/p)),R=Math.abs(I)<5;n||(n=R?.01:2),e||(e=R?.005:.5);let H;if(A<1){const U=bv(j,A);H=ne=>{const q=Math.exp(-A*j*ne);return o-q*((E+A*j*I)/U*Math.sin(U*ne)+I*Math.cos(U*ne))}}else if(A===1)H=U=>o-Math.exp(-j*U)*(I+(E+j*I)*U);else{const U=j*Math.sqrt(A*A-1);H=ne=>{const q=Math.exp(-A*j*ne),ie=Math.min(U*ne,300);return o-q*((E+A*j*I)*Math.sinh(ie)+U*I*Math.cosh(ie))/U}}return{calculatedDuration:T&&y||null,next:U=>{const ne=H(U);if(T)a.done=U>=y;else{let q=E;U!==0&&(A<1?q=fD(H,U,ne):q=0);const ie=Math.abs(q)<=n,x=Math.abs(o-ne)<=e;a.done=ie&&x}return a.value=a.done?o:ne,a}}}function xS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const H=le=>-I*Math.exp(-le/r),U=le=>R+H(le),ne=le=>{const ae=H(le),ze=U(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:ze};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=dD({keyframes:[T.value,A(T.value)],velocity:fD(U,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>q?ie.next(le-q):(!ae&&ne(le),T)}}}const GW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Ol(e),now:()=>Ni.isProcessing?Ni.timestamp:performance.now()}},SS=2e4;function TS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<SS;)e+=n,r=t.next(e);return e>=SS?1/0:e}const qW={decay:xS,inertia:xS,tween:bp,keyframes:bp,spring:dD};function wp({autoplay:t=!0,delay:e=0,driver:n=GW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...T}){let E=1,A=!1,I,j;const R=()=>{j=new Promise(Te=>{I=Te})};R();let H;const U=qW[i]||bp;let ne;U!==bp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&la(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=uD([0,100],r,{clamp:!1}),r=[0,100]);const q=U({...T,keyframes:r});let ie;c==="mirror"&&(ie=U({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let x="idle",le=null,ae=null,ze=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=TS(q));const{calculatedDuration:tt}=q;let Qe=1/0,et=1/0;tt!==null&&(Qe=tt+a,et=Qe*(o+1)-a);let Ye=0;const pe=Te=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Te)),E<0&&(ae=Math.min(Te-et/E,ae)),le!==null?Ye=le:Ye=Math.round(Te-ae)*E;const Le=Ye-e*(E>=0?1:-1),He=E>=0?Le<0:Le>et;Ye=Math.max(Le,0),x==="finished"&&le===null&&(Ye=et);let je=Ye,Fe=q;if(o){const pt=Math.min(Ye,et)/Qe;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Qe)):c==="mirror"&&(Fe=ie)),je=Su(0,1,yt)*Qe}const Ve=He?{done:!1,value:r[0]}:Fe.next(je);ne&&(Ve.value=ne(Ve.value));let{done:nt}=Ve;!He&&tt!==null&&(nt=E>=0?Ye>=et:Ye<=0);const ct=le===null&&(x==="finished"||x==="running"&&nt);return g&&g(Ve.value),ct&&Oe(),Ve},fe=()=>{H&&H.stop(),H=void 0},Ce=()=>{x="idle",fe(),I(),R(),ae=ze=null},Oe=()=>{x="finished",y&&y(),fe(),I()},Ne=()=>{if(A)return;H||(H=n(pe));const Te=H.now();f&&f(),le!==null?ae=Te-le:(!ae||x==="finished")&&(ae=Te),x==="finished"&&R(),ze=ae,le=null,x="running",H.start()};t&&Ne();const me={then(Te,Le){return j.then(Te,Le)},get time(){return kl(Ye)},set time(Te){Te=pu(Te),Ye=Te,le!==null||!H||E===0?le=Te:ae=H.now()-Te/E},get duration(){const Te=q.calculatedDuration===null?TS(q):q.calculatedDuration;return kl(Te)},get speed(){return E},set speed(Te){Te===E||!H||(E=Te,me.time=kl(Ye))},get state(){return x},play:Ne,pause:()=>{x="paused",le=Ye},stop:()=>{A=!0,x!=="idle"&&(x="idle",p&&p(),Ce())},cancel:()=>{ze!==null&&pe(ze),Ce()},complete:()=>{x="finished"},sample:Te=>(ae=0,pe(Te))};return me}function XW(t){let e;return()=>(e===void 0&&(e=t()),e)}const KW=XW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ZW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Rh=10,JW=2e4,QW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Hk(e.ease);function ez(t,e,{onUpdate:n,onComplete:r,...i}){if(!(KW()&&ZW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const y=()=>{f=new Promise(U=>{c=U})};y();let{keyframes:g,duration:T=300,ease:E,times:A}=i;if(QW(e,i)){const U=wp({...i,repeat:0,delay:0});let ne={done:!1,value:g[0]};const q=[];let ie=0;for(;!ne.done&&ie<JW;)ne=U.sample(ie),q.push(ne.value),ie+=Rh;A=void 0,g=q,T=ie-Rh,E="linear"}const I=fW(t.owner.current,e,g,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},R=()=>{p=!0,Ln.update(j),c(),y()};return I.onfinish=()=>{p||(t.set(dW(g,i)),r&&r(),R())},{then(U,ne){return f.then(U,ne)},attachTimeline(U){return I.timeline=U,I.onfinish=null,sr},get time(){return kl(I.currentTime||0)},set time(U){I.currentTime=pu(U)},get speed(){return I.playbackRate},set speed(U){I.playbackRate=U},get duration(){return kl(T)},play:()=>{a||(I.play(),Ol(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:U}=I;if(U){const ne=wp({...i,autoplay:!1});t.setWithVelocity(ne.sample(U-Rh).value,ne.sample(U).value,Rh)}R()},complete:()=>{p||I.finish()},cancel:R}}function tz({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?wp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const nz={type:"spring",stiffness:500,damping:25,restSpeed:10},rz=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),iz={type:"keyframes",duration:.8},oz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sz=(t,{keyframes:e})=>e.length>2?iz:Ac.has(t)?t.startsWith("scale")?rz(e[1]):nz:oz,wv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tu.test(e)||e==="0")&&!e.startsWith("url(")),az=new Set(["brightness","contrast","saturate","opacity"]);function lz(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Gp)||[];if(!r)return t;const i=n.replace(r,"");let o=az.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const uz=/([a-z-]*)\(.*?\)/g,xv={...Tu,getAnimatableNone:t=>{const e=t.match(uz);return e?e.map(lz).join(" "):t}},cz={...Dk,color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:xv,WebkitFilter:xv},Qy=t=>cz[t];function hD(t,e){let n=Qy(t);return n!==xv&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const pD=t=>/^0[^.\s]+$/.test(t);function fz(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||pD(t)}function dz(t,e,n,r){const i=wv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),fz(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=hD(e,c)}return o}function hz({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function eb(t,e){return t[e]||t.default||t}const pz={skipAnimations:!1},tb=(t,e,n,r={})=>i=>{const o=eb(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-pu(a);const f=dz(e,t,n,o),p=f[0],y=f[f.length-1],g=wv(t,p),T=wv(t,y);nh(g===T,`You are trying to animate ${t} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let E={keyframes:f,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(hz(o)||(E={...E,...sz(t,E)}),E.duration&&(E.duration=pu(E.duration)),E.repeatDelay&&(E.repeatDelay=pu(E.repeatDelay)),!g||!T||cW.current||o.type===!1||pz.skipAnimations)return tz(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=ez(e,t,E);if(A)return A}return wp(E)};function xp(t){return!!(Ao(t)&&t.add)}const gD=t=>/^\-?\d*\.?\d+$/.test(t);function nb(t,e){t.indexOf(e)===-1&&t.push(e)}function rb(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ib{constructor(){this.subscriptions=[]}add(e){return nb(this.subscriptions,e),()=>rb(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const CS=new Set;function ob(t,e,n){t||CS.has(e)||(console.warn(e),CS.add(e))}const gz=t=>!isNaN(parseFloat(t));class mz{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Ni;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.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=gz(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&ob(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ib);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.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?cD(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 Af(t,e){return new mz(t,e)}const mD=t=>e=>e.test(t),vz={test:t=>t==="auto",parse:t=>t},vD=[Ic,Rt,Va,uu,EH,CH,vz],ud=t=>vD.find(mD(t)),yz=[...vD,io,Tu],bz=t=>yz.find(mD(t));function wz(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Af(n))}function xz(t,e){const n=Xp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=$H(o[a]);wz(t,a,c)}}function Sz(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const f=o[c],p=e[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),y!=null&&(typeof y=="string"&&(gD(y)||pD(y))?y=parseFloat(y):!bz(y)&&Tu.test(p)&&(y=hD(f,p)),t.addValue(f,Af(y,{owner:t})),n[f]===void 0&&(n[f]=y),y!==null&&t.setBaseTarget(f,y))}}function Tz(t,e){return e?(e[t]||e.default||e).from:void 0}function Cz(t,e,n){const r={};for(const i in t){const o=Tz(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function Ez({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function kz(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 yD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in c){const T=t.getValue(g),E=c[g];if(!T||E===void 0||y&&Ez(y,g))continue;const A={delay:n,elapsed:0,...eb(o||{},g)};if(window.HandoffAppearAnimations){const R=t.getProps()[bk];if(R){const H=window.HandoffAppearAnimations(R,g,T,Ln);H!==null&&(A.elapsed=H,A.isHandoff=!0)}}let I=!A.isHandoff&&!kz(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(tb(g,T,E,t.shouldReduceMotion&&Ac.has(g)?{type:!1}:A));const j=T.animation;xp(f)&&(f.add(g),j.then(()=>f.remove(g))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&xz(t,a)}),p}function Sv(t,e,n={}){const r=Xp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(yD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return Dz(t,e,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function Dz(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(Pz).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(Sv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function Pz(t,e){return t.sortNodePosition(e)}function Oz(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Sv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Sv(t,e,n);else{const i=typeof e=="function"?Xp(t,e,n.custom):e;r=Promise.all(yD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const _z=[...Vy].reverse(),Rz=Vy.length;function Az(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Oz(t,n,r)))}function Iz(t){let e=Az(t);const n=Lz();let r=!0;const i=(f,p)=>{const y=Xp(t,p);if(y){const{transition:g,transitionEnd:T,...E}=y;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const y=t.getProps(),g=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let R=0;R<Rz;R++){const H=_z[R],U=n[H],ne=y[H]!==void 0?y[H]:g[H],q=$d(ne),ie=H===p?U.isActive:null;ie===!1&&(I=R);let x=ne===g[H]&&ne!==y[H]&&q;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),U.protectedKeys={...A},!U.isActive&&ie===null||!ne&&!U.prevProp||zp(ne)||typeof ne=="boolean")continue;let ae=Mz(U.prevProp,ne)||H===p&&U.isActive&&!x&&q||R>I&&q,ze=!1;const tt=Array.isArray(ne)?ne:[ne];let Qe=tt.reduce(i,{});ie===!1&&(Qe={});const{prevResolvedValues:et={}}=U,Ye={...et,...Qe},pe=fe=>{ae=!0,E.has(fe)&&(ze=!0,E.delete(fe)),U.needsAnimating[fe]=!0};for(const fe in Ye){const Ce=Qe[fe],Oe=et[fe];if(A.hasOwnProperty(fe))continue;let Ne=!1;vp(Ce)&&vp(Oe)?Ne=!Vk(Ce,Oe):Ne=Ce!==Oe,Ne?Ce!==void 0?pe(fe):E.add(fe):Ce!==void 0&&E.has(fe)?pe(fe):U.protectedKeys[fe]=!0}U.prevProp=ne,U.prevResolvedValues=Qe,U.isActive&&(A={...A,...Qe}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!x||ze)&&T.push(...tt.map(fe=>({animation:fe,options:{type:H,...f}})))}if(E.size){const R={};E.forEach(H=>{const U=t.getBaseTarget(H);U!==void 0&&(R[H]=U)}),T.push({animation:R})}let j=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(f,p)}),n[f].isActive=p;const T=a(y,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function Mz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Vk(e,t):!1}function lc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lz(){return{animate:lc(!0),whileInView:lc(),whileHover:lc(),whileTap:lc(),whileDrag:lc(),whileFocus:lc(),exit:lc()}}class Fz extends Pu{constructor(e){super(e),e.animationState||(e.animationState=Iz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),zp(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 Nz=0;class jz extends Pu{constructor(){super(...arguments),this.id=Nz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Bz={animation:{Feature:Fz},exit:{Feature:jz}},ES=(t,e)=>Math.abs(t-e);function $z(t,e){const n=ES(t.x,e.x),r=ES(t.y,e.y);return Math.sqrt(n**2+r**2)}class bD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=lm(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=$z(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ni;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=am(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=lm(g.type==="pointercancel"?this.lastMoveEventInfo:am(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!Fk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qp(e),c=am(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ni;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,lm(c,this.history)),this.removeListeners=hu(El(this.contextWindow,"pointermove",this.handlePointerMove),El(this.contextWindow,"pointerup",this.handlePointerUp),El(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ol(this.updatePoint)}}function am(t,e){return e?{point:e(t.point)}:t}function kS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function lm({point:t},e){return{point:t,delta:kS(t,wD(e)),offset:kS(t,Vz(e)),velocity:Uz(e,.1)}}function Vz(t){return t[0]}function wD(t){return t[t.length-1]}function Uz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=wD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>pu(e)));)n--;if(!r)return{x:0,y:0};const o=kl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ns(t){return t.max-t.min}function Tv(t,e=0,n=.01){return Math.abs(t-e)<=n}function DS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=ns(n)/ns(e),(Tv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(Tv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Dd(t,e,n,r){DS(t.x,e.x,n.x,r?r.originX:void 0),DS(t.y,e.y,n.y,r?r.originY:void 0)}function PS(t,e,n){t.min=n.min+e.min,t.max=t.min+ns(e)}function Hz(t,e,n){PS(t.x,e.x,n.x),PS(t.y,e.y,n.y)}function OS(t,e,n){t.min=e.min-n.min,t.max=t.min+ns(e)}function Pd(t,e,n){OS(t.x,e.x,n.x),OS(t.y,e.y,n.y)}function Wz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function _S(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 zz(t,{top:e,left:n,bottom:r,right:i}){return{x:_S(t.x,n,i),y:_S(t.y,e,r)}}function RS(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 Yz(t,e){return{x:RS(t.x,e.x),y:RS(t.y,e.y)}}function Gz(t,e){let n=.5;const r=ns(t),i=ns(e);return i>r?n=Ud(e.min,e.max-r,t.min):r>i&&(n=Ud(t.min,t.max-i,e.min)),Su(0,1,n)}function qz(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 Cv=.35;function Xz(t=Cv){return t===!1?t=0:t===!0&&(t=Cv),{x:AS(t,"left","right"),y:AS(t,"top","bottom")}}function AS(t,e,n){return{min:IS(t,e),max:IS(t,n)}}function IS(t,e){return typeof t=="number"?t:t[e]||0}const MS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tf=()=>({x:MS(),y:MS()}),LS=()=>({min:0,max:0}),kr=()=>({x:LS(),y:LS()});function _s(t){return[t("x"),t("y")]}function xD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Kz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Zz(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 um(t){return t===void 0||t===1}function Ev({scale:t,scaleX:e,scaleY:n}){return!um(t)||!um(e)||!um(n)}function gc(t){return Ev(t)||SD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function SD(t){return FS(t.x)||FS(t.y)}function FS(t){return t&&t!=="0%"}function Sp(t,e,n){const r=t-n,i=e*r;return n+i}function NS(t,e,n,r,i){return i!==void 0&&(t=Sp(t,i,r)),Sp(t,n,r)+e}function kv(t,e=0,n=1,r,i){t.min=NS(t.min,e,n,r,i),t.max=NS(t.max,e,n,r,i)}function TD(t,{x:e,y:n}){kv(t.x,e.translate,e.scale,e.originPoint),kv(t.y,n.translate,n.scale,n.originPoint)}function Jz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Cf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,TD(t,a)),r&&gc(o.latestValues)&&Cf(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 cu(t,e){t.min=t.min+e,t.max=t.max+e}function BS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);kv(t,e[n],e[r],a,e.scale)}const Qz=["x","scaleX","originX"],e5=["y","scaleY","originY"];function Cf(t,e){BS(t.x,e,Qz),BS(t.y,e,e5)}function CD(t,e){return xD(Zz(t.getBoundingClientRect(),e))}function t5(t,e,n){const r=CD(t,n),{scroll:i}=e;return i&&(cu(r.x,i.offset.x),cu(r.y,i.offset.y)),r}const ED=({current:t})=>t?t.ownerDocument.defaultView:null,n5=new WeakMap;class r5{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=kr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qp(y,"page").point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=jk(T),!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),_s(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Va.test(R)){const{projection:H}=this.visualElement;if(H&&H.layout){const U=H.layout.layoutBox[j];U&&(R=ns(U)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Ln.update(()=>A(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=i5(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>_s(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new bD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:ED(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ah(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=Wz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&xf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zz(i.layoutBox,n):this.constraints=!1,this.elastic=Xz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_s(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=qz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!xf(e))return!1;const r=e.current;la(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=t5(r,i.root,this.visualElement.getTransformPagePoint());let a=Yz(i.layout.layoutBox,o);if(n){const c=n(Kz(a));this.hasMutatedConstraints=!!c,c&&(a=xD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=_s(y=>{if(!Ah(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(tb(e,r,0,n))}stopAnimation(){_s(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_s(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){_s(n=>{const{drag:r}=this.getProps();if(!Ah(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_s(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=Gz({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_s(a=>{if(!Ah(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;n5.set(this.visualElement,this);const e=this.visualElement.current,n=El(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();xf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=xl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(_s(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Cv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ah(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function i5(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class o5 extends Pu{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new r5(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const $S=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class s5 extends Pu{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new bD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ED(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$S(e),onStart:$S(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=El(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 a5(){const t=X.useContext(By);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function VS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const cd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=VS(t,e.target.x),r=VS(t,e.target.y);return`${n}% ${r}%`}},l5={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Tu.parse(t);if(i.length>5)return r;const o=Tu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class u5 extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;vH(c5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Kh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kD(t){const[e,n]=a5(),r=X.useContext(xk);return X.createElement(u5,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(Sk),isPresent:e,safeToRemove:n})}const c5={borderRadius:{...cd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cd,borderTopRightRadius:cd,borderBottomLeftRadius:cd,borderBottomRightRadius:cd,boxShadow:l5},DD=["TopLeft","TopRight","BottomLeft","BottomRight"],f5=DD.length,US=t=>typeof t=="string"?parseFloat(t):t,HS=t=>typeof t=="number"||Rt.test(t);function d5(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,h5(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,p5(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<f5;a++){const c=`border${DD[a]}Radius`;let f=WS(e,c),p=WS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||HS(f)===HS(p)?(t[c]=Math.max(Zn(US(f),US(p),r),0),(Va.test(p)||Va.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function WS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const h5=PD(0,.5,Kk),p5=PD(.5,.95,sr);function PD(t,e,n){return r=>r<t?0:r>e?1:n(Ud(t,e,r))}function zS(t,e){t.min=e.min,t.max=e.max}function Ds(t,e){zS(t.x,e.x),zS(t.y,e.y)}function YS(t,e,n,r,i){return t-=e,t=Sp(t,1/n,r),i!==void 0&&(t=Sp(t,1/i,r)),t}function g5(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=YS(t.min,e,n,c,i),t.max=YS(t.max,e,n,c,i)}function GS(t,e,[n,r,i],o,a){g5(t,e[n],e[r],e[i],e.scale,o,a)}const m5=["x","scaleX","originX"],v5=["y","scaleY","originY"];function qS(t,e,n,r){GS(t.x,e,m5,n?n.x:void 0,r?r.x:void 0),GS(t.y,e,v5,n?n.y:void 0,r?r.y:void 0)}function XS(t){return t.translate===0&&t.scale===1}function OD(t){return XS(t.x)&&XS(t.y)}function y5(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 _D(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 KS(t){return ns(t.x)/ns(t.y)}class b5{constructor(){this.members=[]}add(e){nb(this.members,e),e.scheduleRender()}remove(e){if(rb(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ZS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const w5=(t,e)=>t.depth-e.depth;class x5{constructor(){this.children=[],this.isDirty=!1}add(e){nb(this.children,e),this.isDirty=!0}remove(e){rb(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w5),this.isDirty=!1,this.children.forEach(e)}}function S5(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Ol(r),t(o-e))};return Ln.read(r,!0),()=>Ol(r)}function T5(t){window.MotionDebug&&window.MotionDebug.record(t)}function C5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function E5(t,e,n){const r=Ao(t)?t:Af(t);return r.start(tb("",r,e,n)),r.animation}const JS=["","X","Y","Z"],k5={visibility:"hidden"},QS=1e3;let D5=0;const mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function RD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=D5++,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,mc.totalNodes=mc.resolvedTargetDeltas=mc.recalculatedProjection=0,this.nodes.forEach(_5),this.nodes.forEach(L5),this.nodes.forEach(F5),this.nodes.forEach(R5),T5(mc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new x5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new ib),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=C5(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=S5(T,250),Kh.hasAnimatedSinceResize&&(Kh.hasAnimatedSinceResize=!1,this.nodes.forEach(t1))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||V5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),H=!this.targetLayout||!_D(this.targetLayout,A)||E,U=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||U||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,U);const ne={...eb(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||t1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ol(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(N5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!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 y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e1);return}this.isUpdating||this.nodes.forEach(I5),this.isUpdating=!1,this.nodes.forEach(M5),this.nodes.forEach(P5),this.nodes.forEach(O5),this.clearAllSnapshots();const c=performance.now();Ni.delta=Su(0,1e3/60,c-Ni.timestamp),Ni.timestamp=c,Ni.isProcessing=!0,em.update.process(Ni),em.preRender.process(Ni),em.render.process(Ni),Ni.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(A5),this.sharedNodes.forEach(j5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!OD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||gc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),U5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kr();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(cu(c.x,f.offset.x),cu(c.y,f.offset.y)),c}removeElementScroll(a){const c=kr();Ds(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Ds(c,a);const{scroll:T}=this.root;T&&(cu(c.x,-T.offset.x),cu(c.y,-T.offset.y))}cu(c.x,y.offset.x),cu(c.y,y.offset.y)}}return c}applyTransform(a,c=!1){const f=kr();Ds(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Cf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),gc(y.latestValues)&&Cf(f,y.latestValues)}return gc(this.latestValues)&&Cf(f,this.latestValues),f}removeTransform(a){const c=kr();Ds(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!gc(p.latestValues))continue;Ev(p.latestValues)&&p.updateSnapshot();const y=kr(),g=p.measurePageBox();Ds(y,g),qS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return gc(this.latestValues)&&qS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Ni.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ni.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Pd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kr(),this.targetWithTransforms=kr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Hz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ds(this.target,this.layout.layoutBox),TD(this.target,this.targetDelta)):Ds(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Pd(this.relativeTargetOrigin,this.target,E.target),Ds(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ev(this.parent.latestValues)||SD(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 a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ni.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Ds(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Jz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=Tf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Tf(),this.projectionDeltaWithTransform=Tf());const I=this.projectionTransform;Dd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=ZS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),mc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=Tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=kr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,H=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some($5));this.animationProgress=0;let U;this.mixTargetDelta=ne=>{const q=ne/1e3;n1(g.x,a.x,q),n1(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),B5(this.relativeTarget,this.relativeTargetOrigin,T,q),U&&y5(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=kr()),Ds(U,this.relativeTarget)),I&&(this.animationValues=y,d5(y,p,this.latestValues,q,H,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ol(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Kh.hasAnimatedSinceResize=!0,this.currentAnimation=E5(0,QS,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(QS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&AD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kr();const g=ns(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=ns(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Ds(c,f),Cf(c,y),Dd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new b5),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<JS.length;y++){const g="rotate"+JS[y];f[g]&&(p[g]=f[g],a.setStaticValue(g,0))}a.render();for(const y in p)a.setStaticValue(y,p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return k5;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Xh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Xh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=ZS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in gp){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=gp[I],H=p.transform==="none"?T[I]:j(T[I],g);if(R){const U=R.length;for(let ne=0;ne<U;ne++)p[R[ne]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?Xh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(e1),this.root.sharedNodes.clear()}}}function P5(t){t.updateLayout()}function O5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?_s(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ns(T);T.min=r[g].min,T.max=T.min+E}):AD(o,n.layoutBox,r)&&_s(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=ns(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=Tf();Dd(c,r,n.layoutBox);const f=Tf();a?Dd(f,t.applyTransform(i,!0),n.measuredBox):Dd(f,r,n.layoutBox);const p=!OD(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=kr();Pd(A,n.layoutBox,T.layoutBox);const I=kr();Pd(I,r,E.layoutBox),_D(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function _5(t){mc.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 R5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function A5(t){t.clearSnapshot()}function e1(t){t.clearMeasurements()}function I5(t){t.isLayoutDirty=!1}function M5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function t1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function L5(t){t.resolveTargetDelta()}function F5(t){t.calcProjection()}function N5(t){t.resetRotation()}function j5(t){t.removeLeadSnapshot()}function n1(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function r1(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function B5(t,e,n,r){r1(t.x,e.x,n.x,r),r1(t.y,e.y,n.y,r)}function $5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const V5={duration:.45,ease:[.4,0,.1,1]},i1=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),o1=i1("applewebkit/")&&!i1("chrome/")?Math.round:sr;function s1(t){t.min=o1(t.min),t.max=o1(t.max)}function U5(t){s1(t.x),s1(t.y)}function AD(t,e,n){return t==="position"||t==="preserve-aspect"&&!Tv(KS(e),KS(n),.2)}const H5=RD({attachResizeListener:(t,e)=>xl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cm={current:void 0},ID=RD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!cm.current){const t=new H5({});t.mount(window),t.setOptions({layoutScroll:!0}),cm.current=t}return cm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),W5={pan:{Feature:s5},drag:{Feature:o5,ProjectionNode:ID,MeasureLayout:kD}},z5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Y5(t){const e=z5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const G5=4;function Dv(t,e,n=1){la(n<=G5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=Y5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return gD(a)?parseFloat(a):a}else return mv(i)?Dv(i,e,n+1):i}function q5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!mv(o))return;const a=Dv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!mv(o))continue;const a=Dv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const X5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),MD=t=>X5.has(t),K5=t=>Object.keys(t).some(MD),Ih=t=>t===Ic||t===Rt,a1=(t,e)=>parseFloat(t.split(", ")[e]),l1=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return a1(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?a1(o[1],t):0}},Z5=new Set(["x","y","z"]),J5=Qd.filter(t=>!Z5.has(t));function Q5(t){const e=[];return J5.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 If={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:l1(4,13),y:l1(5,14)};If.translateX=If.x;If.translateY=If.y;const e4=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=If[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const y=e.getValue(p);y&&y.jump(c[p]),t[p]=If[p](f,o)}),t},t4=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(MD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let y=n[f],g=ud(y);const T=e[f];let E;if(vp(T)){const A=T.length,I=T[0]===null?1:0;y=T[I],g=ud(y);for(let j=I;j<A&&T[j]!==null;j++)E?la(ud(T[j])===E,"All keyframes must be of the same type"):(E=ud(T[j]),la(E===g||Ih(g)&&Ih(E),"Keyframes must be of the same dimension as the current value"))}else E=ud(T);if(g!==E)if(Ih(g)&&Ih(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else g!=null&&g.transform&&(E!=null&&E.transform)&&(y===0||T===0)?y===0?p.set(E.transform(y)):e[f]=g.transform(T):(a||(o=Q5(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=e4(e,t,c);return o.length&&o.forEach(([y,g])=>{t.getValue(y).set(g)}),t.render(),Wp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function n4(t,e,n,r){return K5(e)?t4(t,e,n,r):{target:e,transitionEnd:r}}const r4=(t,e,n,r)=>{const i=q5(t,e,r);return e=i.target,r=i.transitionEnd,n4(t,e,n,r)},Pv={current:null},LD={current:!1};function i4(){if(LD.current=!0,!!Wp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Pv.current=t.matches;t.addListener(e),e()}else Pv.current=!1}function o4(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ao(o))t.addValue(i,o),xp(r)&&r.add(i),process.env.NODE_ENV==="development"&&ob(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Ao(a))t.addValue(i,Af(o,{owner:t})),xp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Af(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const u1=new WeakMap,FD=Object.keys(Vd),s4=FD.length,c1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],a4=Uy.length;class l4{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){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=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Yp(n),this.isVariantNode=wk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const T=y[g];c[g]!==void 0&&Ao(T)&&(T.set(c[g],!1),xp(p)&&p.add(g))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,u1.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)),LD.current||i4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pv.current,process.env.NODE_ENV!=="production"&&ob(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){u1.delete(this.current),this.projection&&this.projection.unmount(),Ol(this.notifyUpdate),Ol(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=Ac.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?nh(!1,f):la(!1,f)}for(let f=0;f<s4;f++){const p=FD[f],{isEnabled:y,Feature:g,ProjectionNode:T,MeasureLayout:E}=Vd[p];T&&(a=T),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&xf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}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):kr()}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<c1.length;r++){const i=c1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=o4(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<a4;r++){const i=Uy[r],o=this.props[i];($d(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Af(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Xy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ao(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ib),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ND extends l4{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=Cz(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){Sz(this,r,a);const c=r4(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function u4(t){return window.getComputedStyle(t)}class c4 extends ND{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ac.has(n)){const r=Qy(n);return r&&r.default||0}else{const r=u4(e),i=(Ek(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return CD(e,n)}build(e,n,r,i){Wy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return qy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ao(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Rk(e,n,r,i)}}class f4 extends ND{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ac.has(n)){const r=Qy(n);return r&&r.default||0}return n=Ak.has(n)?n:$y(n),e.getAttribute(n)}measureInstanceViewportBox(){return kr()}scrapeMotionValuesFromProps(e,n){return Mk(e,n)}build(e,n,r,i){Yy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Ik(e,n,r,i)}mount(e){this.isSVGTag=Gy(e.tagName),super.mount(e)}}const d4=(t,e)=>Hy(t)?new f4(e,{enableHardwareAcceleration:!1}):new c4(e,{enableHardwareAcceleration:!0}),h4={layout:{ProjectionNode:ID,MeasureLayout:kD}},p4={...Bz,...aW,...W5,...h4},jD=gH((t,e)=>qH(t,e,p4,d4));function BD(t){return Pp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function $D(t){return Pp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function sb(t,e){return e?t:void 0}function g4(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.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 m4(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,f]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,E=y.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!E&&(g=p.top-y.height+p.height),o({top:g,left:T})}},[n,a]),r?e({maxHeight:c}):Uv.createPortal(be.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function fm(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
9
9
  * content-type
10
10
  * Copyright(c) 2015 Douglas Christopher Wilson
11
11
  * MIT Licensed
12
- */var f1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,v4=/\\([\u000b\u0020-\u00ff])/g,y4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,b4=w4;function w4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?x4(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(!y4.test(r))throw new TypeError("invalid media type");var i=new S4(r.toLowerCase());if(n!==-1){var o,a,c;for(f1.lastIndex=n;a=f1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(v4,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function x4(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 S4(t){this.parameters=Object.create(null),this.type=t}var hf=new Map,VD=function(e){return e.cloneNode(!0)},d1=function(){return window.location.protocol==="file:"},UD=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=b4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(d1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||d1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},fu={},h1=function(e,n){fu[e]=fu[e]||[],fu[e].push(n)},T4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(fu[e])){var f=hf.get(e),p=fu[e][a];f instanceof SVGSVGElement&&p(null,VD(f)),f instanceof Error&&p(f),a===fu[e].length-1&&delete fu[e]}},0)},r=0,i=fu[e].length;r<i;r++)n(r)},C4=function(e,n,r){if(hf.has(e)){var i=hf.get(e);if(i===void 0){h1(e,r);return}if(i instanceof SVGSVGElement){r(null,VD(i));return}}hf.set(e,void 0),h1(e,r),UD(e,n,function(o,a){var c;o?hf.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&hf.set(e,a.responseXML.documentElement),T4(e)})},E4=function(e,n,r){UD(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},k4=0,D4=function(){return++k4},Fa=[],p1={},P4="http://www.w3.org/2000/svg",dm="http://www.w3.org/1999/xlink",g1=function(e,n,r,i,o,a,c){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Fa.indexOf(e)!==-1){Fa.splice(Fa.indexOf(e),1),e=null;return}Fa.push(e),e.setAttribute("src","");var p=i?C4:E4;p(f,o,function(y,g){if(!g){Fa.splice(Fa.indexOf(e),1),e=null,c(y);return}var T=e.getAttribute("id");T&&g.setAttribute("id",T);var E=e.getAttribute("title");E&&g.setAttribute("title",E);var A=e.getAttribute("width");A&&g.setAttribute("width",A);var I=e.getAttribute("height");I&&g.setAttribute("height",I);var j=Array.from(new Set(fm(fm(fm([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",j);var R=e.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",f);var H=[].filter.call(e.attributes,function(Oe){return/^data-\w[\w-]*$/.test(Oe.name)});if(Array.prototype.forEach.call(H,function(Oe){Oe.name&&Oe.value&&g.setAttribute(Oe.name,Oe.value)}),r){var U={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"]},ne,q,ie,x,le;Object.keys(U).forEach(function(Oe){ne=Oe,ie=U[Oe],q=g.querySelectorAll(ne+"[id]");for(var Ne=function(He,je){x=q[He].id,le=x+"-"+D4();var Fe;Array.prototype.forEach.call(ie,function(At){Fe=g.querySelectorAll("["+At+'*="'+x+'"]');for(var Mt=0,Vn=Fe.length;Mt<Vn;Mt++){var vr=Fe[Mt].getAttribute(At);vr&&!vr.match(new RegExp('url\\("?#'+x+'"?\\)'))||Fe[Mt].setAttribute(At,"url(#"+le+")")}});for(var Ve=g.querySelectorAll("[*|href]"),nt=[],ct=0,pt=Ve.length;ct<pt;ct++){var ft=Ve[ct].getAttributeNS(dm,"href");ft&&ft.toString()==="#"+q[He].id&&nt.push(Ve[ct])}for(var yt=0,Je=nt.length;yt<Je;yt++)nt[yt].setAttributeNS(dm,"href","#"+le);q[He].id=le},me=0,Te=q.length;me<Te;me++)Ne(me)})}g.removeAttribute("xmlns:a");for(var ae=g.querySelectorAll("script"),ze=[],tt,Qe,et=0,Ye=ae.length;et<Ye;et++)Qe=ae[et].getAttribute("type"),(!Qe||Qe==="application/ecmascript"||Qe==="application/javascript"||Qe==="text/javascript")&&(tt=ae[et].innerText||ae[et].textContent,tt&&ze.push(tt),g.removeChild(ae[et]));if(ze.length>0&&(n==="always"||n==="once"&&!p1[f])){for(var pe=0,fe=ze.length;pe<fe;pe++)new Function(ze[pe])(window);p1[f]=!0}var Ce=g.querySelectorAll("style");if(Array.prototype.forEach.call(Ce,function(Oe){Oe.textContent+=""}),g.setAttribute("xmlns",P4),g.setAttribute("xmlns:xlink",dm),a(g),!e.parentNode){Fa.splice(Fa.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(g,e),Fa.splice(Fa.indexOf(e),1),e=null,c(null,g)})},O4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,T=r.evalScripts,E=T===void 0?"never":T,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,j=r.renumerateIRIElements,R=j===void 0?!0:j;if(e&&"length"in e)for(var H=0,U=0,ne=e.length;U<ne;U++)g1(e[U],E,R,g,I,p,function(q,ie){c(q,ie),e&&"length"in e&&e.length===++H&&o(H)});else e?g1(e,E,R,g,I,p,function(q,ie){c(q,ie),o(1),e=null}):o(0)},Ov={exports:{}},Ih={exports:{}},mn={};/** @license React v16.13.1
12
+ */var f1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,v4=/\\([\u000b\u0020-\u00ff])/g,y4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,b4=w4;function w4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?x4(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(!y4.test(r))throw new TypeError("invalid media type");var i=new S4(r.toLowerCase());if(n!==-1){var o,a,c;for(f1.lastIndex=n;a=f1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(v4,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function x4(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 S4(t){this.parameters=Object.create(null),this.type=t}var hf=new Map,VD=function(e){return e.cloneNode(!0)},d1=function(){return window.location.protocol==="file:"},UD=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=b4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(d1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||d1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},fu={},h1=function(e,n){fu[e]=fu[e]||[],fu[e].push(n)},T4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(fu[e])){var f=hf.get(e),p=fu[e][a];f instanceof SVGSVGElement&&p(null,VD(f)),f instanceof Error&&p(f),a===fu[e].length-1&&delete fu[e]}},0)},r=0,i=fu[e].length;r<i;r++)n(r)},C4=function(e,n,r){if(hf.has(e)){var i=hf.get(e);if(i===void 0){h1(e,r);return}if(i instanceof SVGSVGElement){r(null,VD(i));return}}hf.set(e,void 0),h1(e,r),UD(e,n,function(o,a){var c;o?hf.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&hf.set(e,a.responseXML.documentElement),T4(e)})},E4=function(e,n,r){UD(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},k4=0,D4=function(){return++k4},Fa=[],p1={},P4="http://www.w3.org/2000/svg",dm="http://www.w3.org/1999/xlink",g1=function(e,n,r,i,o,a,c){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Fa.indexOf(e)!==-1){Fa.splice(Fa.indexOf(e),1),e=null;return}Fa.push(e),e.setAttribute("src","");var p=i?C4:E4;p(f,o,function(y,g){if(!g){Fa.splice(Fa.indexOf(e),1),e=null,c(y);return}var T=e.getAttribute("id");T&&g.setAttribute("id",T);var E=e.getAttribute("title");E&&g.setAttribute("title",E);var A=e.getAttribute("width");A&&g.setAttribute("width",A);var I=e.getAttribute("height");I&&g.setAttribute("height",I);var j=Array.from(new Set(fm(fm(fm([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",j);var R=e.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",f);var H=[].filter.call(e.attributes,function(Oe){return/^data-\w[\w-]*$/.test(Oe.name)});if(Array.prototype.forEach.call(H,function(Oe){Oe.name&&Oe.value&&g.setAttribute(Oe.name,Oe.value)}),r){var U={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"]},ne,q,ie,x,le;Object.keys(U).forEach(function(Oe){ne=Oe,ie=U[Oe],q=g.querySelectorAll(ne+"[id]");for(var Ne=function(He,je){x=q[He].id,le=x+"-"+D4();var Fe;Array.prototype.forEach.call(ie,function(At){Fe=g.querySelectorAll("["+At+'*="'+x+'"]');for(var Mt=0,Vn=Fe.length;Mt<Vn;Mt++){var vr=Fe[Mt].getAttribute(At);vr&&!vr.match(new RegExp('url\\("?#'+x+'"?\\)'))||Fe[Mt].setAttribute(At,"url(#"+le+")")}});for(var Ve=g.querySelectorAll("[*|href]"),nt=[],ct=0,pt=Ve.length;ct<pt;ct++){var ft=Ve[ct].getAttributeNS(dm,"href");ft&&ft.toString()==="#"+q[He].id&&nt.push(Ve[ct])}for(var yt=0,Je=nt.length;yt<Je;yt++)nt[yt].setAttributeNS(dm,"href","#"+le);q[He].id=le},me=0,Te=q.length;me<Te;me++)Ne(me)})}g.removeAttribute("xmlns:a");for(var ae=g.querySelectorAll("script"),ze=[],tt,Qe,et=0,Ye=ae.length;et<Ye;et++)Qe=ae[et].getAttribute("type"),(!Qe||Qe==="application/ecmascript"||Qe==="application/javascript"||Qe==="text/javascript")&&(tt=ae[et].innerText||ae[et].textContent,tt&&ze.push(tt),g.removeChild(ae[et]));if(ze.length>0&&(n==="always"||n==="once"&&!p1[f])){for(var pe=0,fe=ze.length;pe<fe;pe++)new Function(ze[pe])(window);p1[f]=!0}var Ce=g.querySelectorAll("style");if(Array.prototype.forEach.call(Ce,function(Oe){Oe.textContent+=""}),g.setAttribute("xmlns",P4),g.setAttribute("xmlns:xlink",dm),a(g),!e.parentNode){Fa.splice(Fa.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(g,e),Fa.splice(Fa.indexOf(e),1),e=null,c(null,g)})},O4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,T=r.evalScripts,E=T===void 0?"never":T,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,j=r.renumerateIRIElements,R=j===void 0?!0:j;if(e&&"length"in e)for(var H=0,U=0,ne=e.length;U<ne;U++)g1(e[U],E,R,g,I,p,function(q,ie){c(q,ie),e&&"length"in e&&e.length===++H&&o(H)});else e?g1(e,E,R,g,I,p,function(q,ie){c(q,ie),o(1),e=null}):o(0)},Ov={exports:{}},Mh={exports:{}},mn={};/** @license React v16.13.1
13
13
  * react-is.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -23,12 +23,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var v1;function R4(){return v1||(v1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,H=t?Symbol.for("react.scope"):60119;function U(Je){return typeof Je=="string"||typeof Je=="function"||Je===r||Je===p||Je===o||Je===i||Je===g||Je===T||typeof Je=="object"&&Je!==null&&(Je.$$typeof===A||Je.$$typeof===E||Je.$$typeof===a||Je.$$typeof===c||Je.$$typeof===y||Je.$$typeof===j||Je.$$typeof===R||Je.$$typeof===H||Je.$$typeof===I)}function ne(Je){if(typeof Je=="object"&&Je!==null){var At=Je.$$typeof;switch(At){case e:var Mt=Je.type;switch(Mt){case f:case p:case r:case o:case i:case g:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case y:case A:case E:case a:return Vn;default:return At}}case n:return At}}}var q=f,ie=p,x=c,le=a,ae=e,ze=y,tt=r,Qe=A,et=E,Ye=n,pe=o,fe=i,Ce=g,Oe=!1;function Ne(Je){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),me(Je)||ne(Je)===f}function me(Je){return ne(Je)===p}function Te(Je){return ne(Je)===c}function Le(Je){return ne(Je)===a}function He(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===e}function je(Je){return ne(Je)===y}function Fe(Je){return ne(Je)===r}function Ve(Je){return ne(Je)===A}function nt(Je){return ne(Je)===E}function ct(Je){return ne(Je)===n}function pt(Je){return ne(Je)===o}function ft(Je){return ne(Je)===i}function yt(Je){return ne(Je)===g}vn.AsyncMode=q,vn.ConcurrentMode=ie,vn.ContextConsumer=x,vn.ContextProvider=le,vn.Element=ae,vn.ForwardRef=ze,vn.Fragment=tt,vn.Lazy=Qe,vn.Memo=et,vn.Portal=Ye,vn.Profiler=pe,vn.StrictMode=fe,vn.Suspense=Ce,vn.isAsyncMode=Ne,vn.isConcurrentMode=me,vn.isContextConsumer=Te,vn.isContextProvider=Le,vn.isElement=He,vn.isForwardRef=je,vn.isFragment=Fe,vn.isLazy=Ve,vn.isMemo=nt,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=U,vn.typeOf=ne}()),vn}var y1;function HD(){return y1||(y1=1,process.env.NODE_ENV==="production"?Ih.exports=_4():Ih.exports=R4()),Ih.exports}/*
26
+ */var v1;function R4(){return v1||(v1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,H=t?Symbol.for("react.scope"):60119;function U(Je){return typeof Je=="string"||typeof Je=="function"||Je===r||Je===p||Je===o||Je===i||Je===g||Je===T||typeof Je=="object"&&Je!==null&&(Je.$$typeof===A||Je.$$typeof===E||Je.$$typeof===a||Je.$$typeof===c||Je.$$typeof===y||Je.$$typeof===j||Je.$$typeof===R||Je.$$typeof===H||Je.$$typeof===I)}function ne(Je){if(typeof Je=="object"&&Je!==null){var At=Je.$$typeof;switch(At){case e:var Mt=Je.type;switch(Mt){case f:case p:case r:case o:case i:case g:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case y:case A:case E:case a:return Vn;default:return At}}case n:return At}}}var q=f,ie=p,x=c,le=a,ae=e,ze=y,tt=r,Qe=A,et=E,Ye=n,pe=o,fe=i,Ce=g,Oe=!1;function Ne(Je){return Oe||(Oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),me(Je)||ne(Je)===f}function me(Je){return ne(Je)===p}function Te(Je){return ne(Je)===c}function Le(Je){return ne(Je)===a}function He(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===e}function je(Je){return ne(Je)===y}function Fe(Je){return ne(Je)===r}function Ve(Je){return ne(Je)===A}function nt(Je){return ne(Je)===E}function ct(Je){return ne(Je)===n}function pt(Je){return ne(Je)===o}function ft(Je){return ne(Je)===i}function yt(Je){return ne(Je)===g}vn.AsyncMode=q,vn.ConcurrentMode=ie,vn.ContextConsumer=x,vn.ContextProvider=le,vn.Element=ae,vn.ForwardRef=ze,vn.Fragment=tt,vn.Lazy=Qe,vn.Memo=et,vn.Portal=Ye,vn.Profiler=pe,vn.StrictMode=fe,vn.Suspense=Ce,vn.isAsyncMode=Ne,vn.isConcurrentMode=me,vn.isContextConsumer=Te,vn.isContextProvider=Le,vn.isElement=He,vn.isForwardRef=je,vn.isFragment=Fe,vn.isLazy=Ve,vn.isMemo=nt,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=U,vn.typeOf=ne}()),vn}var y1;function HD(){return y1||(y1=1,process.env.NODE_ENV==="production"?Mh.exports=_4():Mh.exports=R4()),Mh.exports}/*
27
27
  object-assign
28
28
  (c) Sindre Sorhus
29
29
  @license MIT
30
30
  */var hm,b1;function A4(){if(b1)return hm;b1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(a).map(function(y){return a[y]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hm=i()?Object.assign:function(o,a){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var g in c)e.call(c,g)&&(f[g]=c[g]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},hm}var pm,w1;function ab(){if(w1)return pm;w1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pm=t,pm}var gm,x1;function WD(){return x1||(x1=1,gm=Function.call.bind(Object.prototype.hasOwnProperty)),gm}var mm,S1;function I4(){if(S1)return mm;S1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=ab(),n={},r=WD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;try{if(typeof o[y]!="function"){var T=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}g=o[y](a,y,f,c,null,e)}catch(A){g=A}if(g&&!(g instanceof Error)&&t((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+g.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mm=i,mm}var vm,T1;function M4(){if(T1)return vm;T1=1;var t=HD(),e=A4(),n=ab(),r=WD(),i=I4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function a(){return null}return vm=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(me){var Te=me&&(p&&me[p]||me[y]);if(typeof Te=="function")return Te}var T="<<anonymous>>",E={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:H(),arrayOf:U,element:ne(),elementType:q(),instanceOf:ie,node:ze(),objectOf:le,oneOf:x,oneOfType:ae,shape:Qe,exact:et};function A(me,Te){return me===Te?me!==0||1/me===1/Te:me!==me&&Te!==Te}function I(me,Te){this.message=me,this.data=Te&&typeof Te=="object"?Te:{},this.stack=""}I.prototype=Error.prototype;function j(me){if(process.env.NODE_ENV!=="production")var Te={},Le=0;function He(Fe,Ve,nt,ct,pt,ft,yt){if(ct=ct||T,ft=ft||nt,yt!==n){if(f){var Je=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Je.name="Invariant Violation",Je}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+nt;!Te[At]&&Le<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Te[At]=!0,Le++)}}return Ve[nt]==null?Fe?Ve[nt]===null?new I("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:me(Ve,nt,ct,pt,ft)}var je=He.bind(null,!1);return je.isRequired=He.bind(null,!0),je}function R(me){function Te(Le,He,je,Fe,Ve,nt){var ct=Le[He],pt=fe(ct);if(pt!==me){var ft=Ce(ct);return new I("Invalid "+Fe+" `"+Ve+"` of type "+("`"+ft+"` supplied to `"+je+"`, expected ")+("`"+me+"`."),{expectedType:me})}return null}return j(Te)}function H(){return j(a)}function U(me){function Te(Le,He,je,Fe,Ve){if(typeof me!="function")return new I("Property `"+Ve+"` of component `"+je+"` has invalid PropType notation inside arrayOf.");var nt=Le[He];if(!Array.isArray(nt)){var ct=fe(nt);return new I("Invalid "+Fe+" `"+Ve+"` of type "+("`"+ct+"` supplied to `"+je+"`, expected an array."))}for(var pt=0;pt<nt.length;pt++){var ft=me(nt,pt,je,Fe,Ve+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return j(Te)}function ne(){function me(Te,Le,He,je,Fe){var Ve=Te[Le];if(!c(Ve)){var nt=fe(Ve);return new I("Invalid "+je+" `"+Fe+"` of type "+("`"+nt+"` supplied to `"+He+"`, expected a single ReactElement."))}return null}return j(me)}function q(){function me(Te,Le,He,je,Fe){var Ve=Te[Le];if(!t.isValidElementType(Ve)){var nt=fe(Ve);return new I("Invalid "+je+" `"+Fe+"` of type "+("`"+nt+"` supplied to `"+He+"`, expected a single ReactElement type."))}return null}return j(me)}function ie(me){function Te(Le,He,je,Fe,Ve){if(!(Le[He]instanceof me)){var nt=me.name||T,ct=Ne(Le[He]);return new I("Invalid "+Fe+" `"+Ve+"` of type "+("`"+ct+"` supplied to `"+je+"`, expected ")+("instance of `"+nt+"`."))}return null}return j(Te)}function x(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function Te(Le,He,je,Fe,Ve){for(var nt=Le[He],ct=0;ct<me.length;ct++)if(A(nt,me[ct]))return null;var pt=JSON.stringify(me,function(yt,Je){var At=Ce(Je);return At==="symbol"?String(Je):Je});return new I("Invalid "+Fe+" `"+Ve+"` of value `"+String(nt)+"` "+("supplied to `"+je+"`, expected one of "+pt+"."))}return j(Te)}function le(me){function Te(Le,He,je,Fe,Ve){if(typeof me!="function")return new I("Property `"+Ve+"` of component `"+je+"` has invalid PropType notation inside objectOf.");var nt=Le[He],ct=fe(nt);if(ct!=="object")return new I("Invalid "+Fe+" `"+Ve+"` of type "+("`"+ct+"` supplied to `"+je+"`, expected an object."));for(var pt in nt)if(r(nt,pt)){var ft=me(nt,pt,je,Fe,Ve+"."+pt,n);if(ft instanceof Error)return ft}return null}return j(Te)}function ae(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Te=0;Te<me.length;Te++){var Le=me[Te];if(typeof Le!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Oe(Le)+" at index "+Te+"."),a}function He(je,Fe,Ve,nt,ct){for(var pt=[],ft=0;ft<me.length;ft++){var yt=me[ft],Je=yt(je,Fe,Ve,nt,ct,n);if(Je==null)return null;Je.data&&r(Je.data,"expectedType")&&pt.push(Je.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new I("Invalid "+nt+" `"+ct+"` supplied to "+("`"+Ve+"`"+At+"."))}return j(He)}function ze(){function me(Te,Le,He,je,Fe){return Ye(Te[Le])?null:new I("Invalid "+je+" `"+Fe+"` supplied to "+("`"+He+"`, expected a ReactNode."))}return j(me)}function tt(me,Te,Le,He,je){return new I((me||"React class")+": "+Te+" type `"+Le+"."+He+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+je+"`.")}function Qe(me){function Te(Le,He,je,Fe,Ve){var nt=Le[He],ct=fe(nt);if(ct!=="object")return new I("Invalid "+Fe+" `"+Ve+"` of type `"+ct+"` "+("supplied to `"+je+"`, expected `object`."));for(var pt in me){var ft=me[pt];if(typeof ft!="function")return tt(je,Fe,Ve,pt,Ce(ft));var yt=ft(nt,pt,je,Fe,Ve+"."+pt,n);if(yt)return yt}return null}return j(Te)}function et(me){function Te(Le,He,je,Fe,Ve){var nt=Le[He],ct=fe(nt);if(ct!=="object")return new I("Invalid "+Fe+" `"+Ve+"` of type `"+ct+"` "+("supplied to `"+je+"`, expected `object`."));var pt=e({},Le[He],me);for(var ft in pt){var yt=me[ft];if(r(me,ft)&&typeof yt!="function")return tt(je,Fe,Ve,ft,Ce(yt));if(!yt)return new I("Invalid "+Fe+" `"+Ve+"` key `"+ft+"` supplied to `"+je+"`.\nBad object: "+JSON.stringify(Le[He],null," ")+`
31
- Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(nt,ft,je,Fe,Ve+"."+ft,n);if(Je)return Je}return null}return j(Te)}function Ye(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(Ye);if(me===null||c(me))return!0;var Te=g(me);if(Te){var Le=Te.call(me),He;if(Te!==me.entries){for(;!(He=Le.next()).done;)if(!Ye(He.value))return!1}else for(;!(He=Le.next()).done;){var je=He.value;if(je&&!Ye(je[1]))return!1}}else return!1;return!0;default:return!1}}function pe(me,Te){return me==="symbol"?!0:Te?Te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Te instanceof Symbol:!1}function fe(me){var Te=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":pe(Te,me)?"symbol":Te}function Ce(me){if(typeof me>"u"||me===null)return""+me;var Te=fe(me);if(Te==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return Te}function Oe(me){var Te=Ce(me);switch(Te){case"array":case"object":return"an "+Te;case"boolean":case"date":case"regexp":return"a "+Te;default:return Te}}function Ne(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},vm}var ym,C1;function L4(){if(C1)return ym;C1=1;var t=ab();function e(){}function n(){}return n.resetWarningCache=e,ym=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},ym}if(process.env.NODE_ENV!=="production"){var F4=HD(),N4=!0;Ov.exports=M4()(F4.isElement,N4)}else Ov.exports=L4()();var Er=Ov.exports;const As=Eu(Er);var j4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},B4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},$4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Mh="http://www.w3.org/2000/svg",E1="http://www.w3.org/1999/xlink",Kp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];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(c){r.reactWrapper=c},r}BT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof j4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,H;j==="svg"?(R=document.createElementNS(Mh,j),R.setAttribute("xmlns",Mh),R.setAttribute("xmlns:xlink",E1),H=document.createElementNS(Mh,j)):(R=document.createElement(j),H=document.createElement(j)),R.appendChild(H),H.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var U=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){U(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){U(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var ze=x.querySelector(":scope > title");ze&&x.removeChild(ze);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(Qe){U(Qe)}};O4(H,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;B4(Pf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=zv(i,$4),p=c;return kn.createElement(p,Pf({},f,{ref:this.refCallback},c==="svg"?{xmlns:Mh,xmlnsXlink:E1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Kp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Kp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const Mf=new Map;Mf.set("text",t=>{var e,n;return be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Mf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return be.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return be.jsx(e,{svgString:t.icon})});Mf.set("svgHttp",t=>be.jsx(Kp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Mf.set("img",t=>be.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function V4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function zD({item:t}){return(Mf.get(V4(t))||Mf.get("text"))(t)}function U4(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.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 H4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):Uv.createPortal(be.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Lf=new Map;Lf.set("text",t=>{var e,n;return be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Lf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return be.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return be.jsx(e,{svgString:t.icon})});Lf.set("svgHttp",t=>be.jsx(Kp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Lf.set("img",t=>be.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function W4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function z4({item:t}){return(Lf.get(W4(t))||Lf.get("text"))(t)}function YD({...t}){var tt,Qe,et;const e=t.item,n=t.level||0,r=!!((tt=t.item.children)!=null&&tt.length),i=`level-${n}`,o=(Ye,pe=i)=>`${Ye} ${pe} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((Qe=g==null?void 0:g.current)==null?void 0:Qe.scrollWidth)>((et=g==null?void 0:g.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":j?"a":Ep.Link,H=e.redirectUrl||(e.path&&e.path.includes("http")?new URL(e.path).pathname:e.path)||"#",U=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=Ye=>{Ye.stopPropagation()},ae=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ze=Object.entries(t.brandColors||{}).reduce((Ye,[pe,fe])=>(fe&&(Ye[`--${pe}`]=fe),Ye),{});return be.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ze},onMouseOver:q,onMouseOut:ie,onDragStart:Ye=>{n>1&&Ye.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[be.jsxs(R,{target:ae,to:H,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onClick:Ye=>{var pe;R==="a"&&ae==="_blank"||!r&&e.path&&((pe=t.onClickItem)==null||pe.call(t,e),le(Ye))},onDragStart:Ye=>{console.log("onDragStart component",Ye.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[be.jsx(Y4,{cls:o,item:e}),be.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),be.jsx(G4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Ye=>{const pe={menuConfigId:e.id,isFavorite:Ye},fe=t.baseUrl+x;es.post(fe,pe).then(Ce=>{var Oe;p(Ye),Jv(ki("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(Oe=t.onSetFavoriteSuccess)==null||Oe.call(t,t.item.id,Ye)}).catch(Ce=>{var Oe,Ne;console.log(" MenuItem.tsx ~ error:",Ce),Yd(((Ne=(Oe=Ce.response)==null?void 0:Oe.data)==null?void 0:Ne.errorMessage)||Ce.message||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&be.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:be.jsx(U4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&be.jsx(H4,{parentRef:y,onlyChild:U<2,dropdownLevel:n,renderChildren:({maxHeight:Ye})=>{var pe;return be.jsx(jD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${U}`),style:sb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!U),children:(pe=e.children)==null?void 0:pe.map(fe=>X.createElement(YD,{...t,key:fe.id,item:fe,level:U,onClickItem:t.onClickItem}))})}})]})}function Y4({item:t,cls:e}){return be.jsx("div",{className:e("menu-item__icon"),children:be.jsx(z4,{item:t})})}function G4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return be.jsxs(be.Fragment,{children:[t.isHovered&&!t.isFavorite&&be.jsx(aa.Tooltip,{title:"Add to favorites",children:be.jsx(BD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&be.jsx(aa.Tooltip,{title:"Remove from favorites",children:be.jsx($D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const q4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:height .3s cubic-bezier(.4,0,.2,1),background .2s,border .2s;width:100%}.favorite-menu.favorite-menu--empty{height:0!important;overflow:hidden;border-right:none;background:transparent}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__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;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;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.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.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}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{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.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.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 .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.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}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';var uc={};/**
31
+ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(nt,ft,je,Fe,Ve+"."+ft,n);if(Je)return Je}return null}return j(Te)}function Ye(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(Ye);if(me===null||c(me))return!0;var Te=g(me);if(Te){var Le=Te.call(me),He;if(Te!==me.entries){for(;!(He=Le.next()).done;)if(!Ye(He.value))return!1}else for(;!(He=Le.next()).done;){var je=He.value;if(je&&!Ye(je[1]))return!1}}else return!1;return!0;default:return!1}}function pe(me,Te){return me==="symbol"?!0:Te?Te["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Te instanceof Symbol:!1}function fe(me){var Te=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":pe(Te,me)?"symbol":Te}function Ce(me){if(typeof me>"u"||me===null)return""+me;var Te=fe(me);if(Te==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return Te}function Oe(me){var Te=Ce(me);switch(Te){case"array":case"object":return"an "+Te;case"boolean":case"date":case"regexp":return"a "+Te;default:return Te}}function Ne(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},vm}var ym,C1;function L4(){if(C1)return ym;C1=1;var t=ab();function e(){}function n(){}return n.resetWarningCache=e,ym=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},ym}if(process.env.NODE_ENV!=="production"){var F4=HD(),N4=!0;Ov.exports=M4()(F4.isElement,N4)}else Ov.exports=L4()();var Er=Ov.exports;const As=Eu(Er);var j4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},B4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},$4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Lh="http://www.w3.org/2000/svg",E1="http://www.w3.org/1999/xlink",Kp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];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(c){r.reactWrapper=c},r}BT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof j4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,H;j==="svg"?(R=document.createElementNS(Lh,j),R.setAttribute("xmlns",Lh),R.setAttribute("xmlns:xlink",E1),H=document.createElementNS(Lh,j)):(R=document.createElement(j),H=document.createElement(j)),R.appendChild(H),H.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var U=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){U(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){U(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var ze=x.querySelector(":scope > title");ze&&x.removeChild(ze);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(Qe){U(Qe)}};O4(H,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;B4(Pf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=zv(i,$4),p=c;return kn.createElement(p,Pf({},f,{ref:this.refCallback},c==="svg"?{xmlns:Lh,xmlnsXlink:E1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Kp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Kp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const Mf=new Map;Mf.set("text",t=>{var e,n;return be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Mf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return be.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return be.jsx(e,{svgString:t.icon})});Mf.set("svgHttp",t=>be.jsx(Kp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Mf.set("img",t=>be.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function V4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function zD({item:t}){return(Mf.get(V4(t))||Mf.get("text"))(t)}function U4(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:be.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 H4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):Uv.createPortal(be.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Lf=new Map;Lf.set("text",t=>{var e,n;return be.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Lf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return be.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return be.jsx(e,{svgString:t.icon})});Lf.set("svgHttp",t=>be.jsx(Kp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Lf.set("img",t=>be.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function W4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function z4({item:t}){return(Lf.get(W4(t))||Lf.get("text"))(t)}function YD({...t}){var tt,Qe,et;const e=t.item,n=t.level||0,r=!!((tt=t.item.children)!=null&&tt.length),i=`level-${n}`,o=(Ye,pe=i)=>`${Ye} ${pe} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((Qe=g==null?void 0:g.current)==null?void 0:Qe.scrollWidth)>((et=g==null?void 0:g.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":t.item.redirectUrl?_d.Link:j?"a":_d.Link,H=e.redirectUrl||(e.path&&e.path.includes("http")?new URL(e.path).pathname:e.path)||"#",U=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=Ye=>{Ye.stopPropagation()},ae=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ze=Object.entries(t.brandColors||{}).reduce((Ye,[pe,fe])=>(fe&&(Ye[`--${pe}`]=fe),Ye),{});return be.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ze},onMouseOver:q,onMouseOut:ie,onDragStart:Ye=>{n>1&&Ye.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[be.jsxs(R,{target:ae,to:H,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onClick:Ye=>{var pe;R==="a"&&ae==="_blank"||!r&&e.path&&((pe=t.onClickItem)==null||pe.call(t,e),le(Ye))},onDragStart:Ye=>{console.log("onDragStart component",Ye.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[be.jsx(Y4,{cls:o,item:e}),be.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),be.jsx(G4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Ye=>{const pe={menuConfigId:e.id,isFavorite:Ye},fe=t.baseUrl+x;es.post(fe,pe).then(Ce=>{var Oe;p(Ye),Jv(ki("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(Oe=t.onSetFavoriteSuccess)==null||Oe.call(t,t.item.id,Ye)}).catch(Ce=>{var Oe,Ne;console.log(" MenuItem.tsx ~ error:",Ce),Gd(((Ne=(Oe=Ce.response)==null?void 0:Oe.data)==null?void 0:Ne.errorMessage)||Ce.message||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&be.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:be.jsx(U4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&be.jsx(H4,{parentRef:y,onlyChild:U<2,dropdownLevel:n,renderChildren:({maxHeight:Ye})=>{var pe;return be.jsx(jD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${U}`),style:sb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!U),children:(pe=e.children)==null?void 0:pe.map(fe=>X.createElement(YD,{...t,key:fe.id,item:fe,level:U,onClickItem:t.onClickItem}))})}})]})}function Y4({item:t,cls:e}){return be.jsx("div",{className:e("menu-item__icon"),children:be.jsx(z4,{item:t})})}function G4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return be.jsxs(be.Fragment,{children:[t.isHovered&&!t.isFavorite&&be.jsx(aa.Tooltip,{title:"Add to favorites",children:be.jsx(BD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&be.jsx(aa.Tooltip,{title:"Remove from favorites",children:be.jsx($D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const q4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:height .3s cubic-bezier(.4,0,.2,1),background .2s,border .2s;width:100%}.favorite-menu.favorite-menu--empty{height:0!important;overflow:hidden;border-right:none;background:transparent}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__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;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;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.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.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}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{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.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.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 .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.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}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';var uc={};/**
32
32
  * @license React
33
33
  * react-dom-server-legacy.browser.production.min.js
34
34
  *
@@ -42,7 +42,7 @@ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(nt,ft,je,Fe,V
42
42
  `?k.push(`
43
43
  `,G):k.push(""+G))}return typeof ve=="string"&&ve[0]===`
44
44
  `&&k.push(`
45
- `),ve;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(Qe(F));for(var zn in G)if(n.call(G,zn)&&(ve=G[zn],ve!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,F));default:ie(k,ee,zn,ve)}return k.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ae(k,G,F,ee);case"html":return De.insertionMode===0&&k.push("<!DOCTYPE html>"),ae(k,G,F,ee);default:if(F.indexOf("-")===-1&&typeof G.is!="string")return ae(k,G,F,ee);k.push(Qe(F)),Re=ve=null;for(mt in G)if(n.call(G,mt)&&(Ke=G[mt],Ke!=null))switch(mt){case"children":ve=Ke;break;case"dangerouslySetInnerHTML":Re=Ke;break;case"style":q(k,ee,Ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(mt)&&typeof Ke!="function"&&typeof Ke!="symbol"&&k.push(" ",mt,'="',A(Ke),'"')}return k.push(">"),x(k,Re,ve),ve}}function Ye(k,F,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(e(395));return k.push(G),k.push('"></template>')}function pe(k,F,G,ee){switch(G.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 4:return k.push('<table hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');default:throw Error(e(397))}}function fe(k,F){switch(F.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var Ce=/[<\u2028\u2029]/g;function Oe(k){return JSON.stringify(k).replace(Ce,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ne(k,F){return F=F===void 0?"":F,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function me(k,F,G,ee){return G.generateStaticMarkup?(k.push(A(F)),!1):(F===""?k=ee:(ee&&k.push("<!-- -->"),k.push(A(F)),k=!0),k)}var Te=Object.assign,Le=Symbol.for("react.element"),He=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),nt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),Je=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Mt=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),vr=Symbol.for("react.legacy_hidden"),Un=Symbol.for("react.default_value"),Sn=Symbol.iterator;function Vi(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case je:return"Fragment";case He:return"Portal";case Ve:return"Profiler";case Fe:return"StrictMode";case ft:return"Suspense";case yt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case ct:return(k.displayName||"Context")+".Consumer";case nt:return(k._context.displayName||"Context")+".Provider";case pt:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Je:return F=k.displayName||null,F!==null?F:Vi(k.type)||"Memo";case At:F=k._payload,k=k._init;try{return Vi(k(F))}catch{}}return null}var Dr={};function Jn(k,F){if(k=k.contextTypes,!k)return Dr;var G={},ee;for(ee in k)G[ee]=F[ee];return G}var sn=null;function fn(k,F){if(k!==F){k.context._currentValue2=k.parentValue,k=k.parent;var G=F.parent;if(k===null){if(G!==null)throw Error(e(401))}else{if(G===null)throw Error(e(401));fn(k,G)}F.context._currentValue2=F.value}}function dn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&dn(k)}function ut(k){var F=k.parent;F!==null&&ut(F),k.context._currentValue2=k.value}function Dn(k,F){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===F.depth?fn(k,F):Dn(k,F)}function si(k,F){var G=F.parent;if(G===null)throw Error(e(402));k.depth===G.depth?fn(k,G):si(k,G),F.context._currentValue2=F.value}function on(k){var F=sn;F!==k&&(F===null?ut(k):k===null?dn(F):F.depth===k.depth?fn(F,k):F.depth>k.depth?Dn(F,k):si(F,k),sn=k)}var Ui={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function Hi(k,F,G,ee){var De=k.state!==void 0?k.state:null;k.updater=Ui,k.props=G,k.state=De;var ve={queue:[],replace:!1};k._reactInternals=ve;var Re=F.contextType;if(k.context=typeof Re=="object"&&Re!==null?Re._currentValue2:ee,Re=F.getDerivedStateFromProps,typeof Re=="function"&&(Re=Re(G,De),De=Re==null?De:Te({},De,Re),k.state=De),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Ui.enqueueReplaceState(k,k.state,null),ve.queue!==null&&0<ve.queue.length)if(F=ve.queue,Re=ve.replace,ve.queue=null,ve.replace=!1,Re&&F.length===1)k.state=F[0];else{for(ve=Re?F[0]:k.state,De=!0,Re=Re?1:0;Re<F.length;Re++){var Ke=F[Re];Ke=typeof Ke=="function"?Ke.call(k,ve,G,ee):Ke,Ke!=null&&(De?(De=!1,ve=Te({},ve,Ke)):Te(ve,Ke))}k.state=ve}else ve.queue=null}var Wi={id:1,overflow:""};function Pr(k,F,G){var ee=k.id;k=k.overflow;var De=32-Nn(ee)-1;ee&=~(1<<De),G+=1;var ve=32-Nn(F)+De;if(30<ve){var Re=De-De%5;return ve=(ee&(1<<Re)-1).toString(32),ee>>=Re,De-=Re,{id:1<<32-Nn(F)+De|G<<De|ee,overflow:ve+k}}return{id:1<<ve|G<<De|ee,overflow:k}}var Nn=Math.clz32?Math.clz32:Yr,Or=Math.log,yr=Math.LN2;function Yr(k){return k>>>=0,k===0?32:31-(Or(k)/yr|0)|0}function Gr(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Io=typeof Object.is=="function"?Object.is:Gr,Hn=null,qr=null,Qn=null,Wt=null,ai=!1,zi=!1,Pn=0,hn=null,li=0;function ui(){if(Hn===null)throw Error(e(321));return Hn}function Tn(){if(0<li)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function ao(){return Wt===null?Qn===null?(ai=!1,Qn=Wt=Tn()):(ai=!0,Wt=Qn):Wt.next===null?(ai=!1,Wt=Wt.next=Tn()):(ai=!0,Wt=Wt.next),Wt}function br(){qr=Hn=null,zi=!1,Qn=null,li=0,Wt=hn=null}function ci(k,F){return typeof F=="function"?F(k):F}function an(k,F,G){if(Hn=ui(),Wt=ao(),ai){var ee=Wt.queue;if(F=ee.dispatch,hn!==null&&(G=hn.get(ee),G!==void 0)){hn.delete(ee),ee=Wt.memoizedState;do ee=k(ee,G.action),G=G.next;while(G!==null);return Wt.memoizedState=ee,[ee,F]}return[Wt.memoizedState,F]}return k=k===ci?typeof F=="function"?F():F:G!==void 0?G(F):F,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Ls.bind(null,Hn,k),[Wt.memoizedState,k]}function Pi(k,F){if(Hn=ui(),Wt=ao(),F=F===void 0?null:F,Wt!==null){var G=Wt.memoizedState;if(G!==null&&F!==null){var ee=G[1];e:if(ee===null)ee=!1;else{for(var De=0;De<ee.length&&De<F.length;De++)if(!Io(F[De],ee[De])){ee=!1;break e}ee=!0}if(ee)return G[0]}}return k=k(),Wt.memoizedState=[k,F],k}function Ls(k,F,G){if(25<=li)throw Error(e(301));if(k===Hn)if(zi=!0,k={action:G,next:null},hn===null&&(hn=new Map),G=hn.get(F),G===void 0)hn.set(F,k);else{for(F=G;F.next!==null;)F=F.next;F.next=k}}function Fs(){throw Error(e(394))}function Xr(){}var lo={readContext:function(k){return k._currentValue2},useContext:function(k){return ui(),k._currentValue2},useMemo:Pi,useReducer:an,useRef:function(k){Hn=ui(),Wt=ao();var F=Wt.memoizedState;return F===null?(k={current:k},Wt.memoizedState=k):F},useState:function(k){return an(ci,k)},useInsertionEffect:Xr,useLayoutEffect:function(){},useCallback:function(k,F){return Pi(function(){return k},F)},useImperativeHandle:Xr,useEffect:Xr,useDebugValue:Xr,useDeferredValue:function(k){return ui(),k},useTransition:function(){return ui(),[!1,Fs]},useId:function(){var k=qr.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Nn(k)-1)).toString(32)+F;var G=uo;if(G===null)throw Error(e(404));return F=Pn++,k=":"+G.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return ui(),F(k._source)},useSyncExternalStore:function(k,F,G){if(G===void 0)throw Error(e(407));return G()}},uo=null,Oi=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(k){return console.error(k),null}function _r(){}function Rr(k,F,G,ee,De,ve,Re,Ke,gt){var mt=[],dt=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:De===void 0?er:De,onAllReady:_r,onShellReady:Re===void 0?_r:Re,onShellError:_r,onFatalError:_r},G=Kr(F,0,null,G,!1,!1),G.parentFlushed=!0,k=fi(F,k,null,G,dt,Dr,null,Wi),mt.push(k),F}function fi(k,F,G,ee,De,ve,Re,Ke){k.allPendingTasks++,G===null?k.pendingRootTasks++:G.pendingTasks++;var gt={node:F,ping:function(){var mt=k.pingedTasks;mt.push(gt),mt.length===1&&Wn(k)},blockedBoundary:G,blockedSegment:ee,abortSet:De,legacyContext:ve,context:Re,treeContext:Ke};return De.add(gt),gt}function Kr(k,F,G,ee,De,ve){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:G,lastPushedText:De,textEmbedded:ve}}function wr(k,F){if(k=k.onError(F),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function Ar(k,F){var G=k.onShellError;G(F),G=k.onFatalError,G(F),k.destination!==null?(k.status=2,k.destination.destroy(F)):(k.status=1,k.fatalError=F)}function tr(k,F,G,ee,De){for(Hn={},qr=F,Pn=0,k=G(ee,De);zi;)zi=!1,Pn=0,li+=1,Wt=null,k=G(ee,De);return br(),k}function Yi(k,F,G,ee){var De=G.render(),ve=ee.childContextTypes;if(ve!=null){var Re=F.legacyContext;if(typeof G.getChildContext!="function")ee=Re;else{G=G.getChildContext();for(var Ke in G)if(!(Ke in ve))throw Error(e(108,Vi(ee)||"Unknown",Ke));ee=Te({},Re,G)}F.legacyContext=ee,yn(k,F,De),F.legacyContext=Re}else yn(k,F,De)}function _i(k,F){if(k&&k.defaultProps){F=Te({},F),k=k.defaultProps;for(var G in k)F[G]===void 0&&(F[G]=k[G]);return F}return F}function ar(k,F,G,ee,De){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){De=Jn(G,F.legacyContext);var ve=G.contextType;ve=new G(ee,typeof ve=="object"&&ve!==null?ve._currentValue2:De),Hi(ve,G,ee,De),Yi(k,F,ve,G)}else{ve=Jn(G,F.legacyContext),De=tr(k,F,G,ee,ve);var Re=Pn!==0;if(typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0)Hi(De,G,ee,ve),Yi(k,F,De,G);else if(Re){ee=F.treeContext,F.treeContext=Pr(ee,1,0);try{yn(k,F,De)}finally{F.treeContext=ee}}else yn(k,F,De)}else if(typeof G=="string"){switch(De=F.blockedSegment,ve=et(De.chunks,G,ee,k.responseState,De.formatContext),De.lastPushedText=!1,Re=De.formatContext,De.formatContext=U(Re,G,ee),Mr(k,F,ve),De.formatContext=Re,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:De.chunks.push("</",G,">")}De.lastPushedText=!1}else{switch(G){case vr:case Vn:case Fe:case Ve:case je:yn(k,F,ee.children);return;case yt:yn(k,F,ee.children);return;case Mt:throw Error(e(343));case ft:e:{G=F.blockedBoundary,De=F.blockedSegment,ve=ee.fallback,ee=ee.children,Re=new Set;var Ke={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Re,errorDigest:null},gt=Kr(k,De.chunks.length,Ke,De.formatContext,!1,!1);De.children.push(gt),De.lastPushedText=!1;var mt=Kr(k,0,null,De.formatContext,!1,!1);mt.parentFlushed=!0,F.blockedBoundary=Ke,F.blockedSegment=mt;try{if(Mr(k,F,ee),k.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),mt.status=1,xr(Ke,mt),Ke.pendingTasks===0)break e}catch(dt){mt.status=4,Ke.forceClientRender=!0,Ke.errorDigest=wr(k,dt)}finally{F.blockedBoundary=G,F.blockedSegment=De}F=fi(k,ve,G,gt,Re,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case pt:if(ee=tr(k,F,G.render,ee,De),Pn!==0){G=F.treeContext,F.treeContext=Pr(G,1,0);try{yn(k,F,ee)}finally{F.treeContext=G}}else yn(k,F,ee);return;case Je:G=G.type,ee=_i(G,ee),ar(k,F,G,ee,De);return;case nt:if(De=ee.children,G=G._context,ee=ee.value,ve=G._currentValue2,G._currentValue2=ee,Re=sn,sn=ee={parent:Re,depth:Re===null?0:Re.depth+1,context:G,parentValue:ve,value:ee},F.context=ee,yn(k,F,De),k=sn,k===null)throw Error(e(403));ee=k.parentValue,k.context._currentValue2=ee===Un?k.context._defaultValue:ee,k=sn=k.parent,F.context=k;return;case ct:ee=ee.children,ee=ee(G._currentValue2),yn(k,F,ee);return;case At:De=G._init,G=De(G._payload),ee=_i(G,ee),ar(k,F,G,ee,void 0);return}throw Error(e(130,G==null?G:typeof G,""))}}function yn(k,F,G){if(F.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case Le:ar(k,F,G.type,G.props,G.ref);return;case He:throw Error(e(257));case At:var ee=G._init;G=ee(G._payload),yn(k,F,G);return}if(R(G)){Ir(k,F,G);return}if(G===null||typeof G!="object"?ee=null:(ee=Sn&&G[Sn]||G["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(G))){if(G=ee.next(),!G.done){var De=[];do De.push(G.value),G=ee.next();while(!G.done);Ir(k,F,De)}return}throw k=Object.prototype.toString.call(G),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":k))}typeof G=="string"?(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,G,k.responseState,ee.lastPushedText)):typeof G=="number"&&(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,""+G,k.responseState,ee.lastPushedText))}function Ir(k,F,G){for(var ee=G.length,De=0;De<ee;De++){var ve=F.treeContext;F.treeContext=Pr(ve,ee,De);try{Mr(k,F,G[De])}finally{F.treeContext=ve}}}function Mr(k,F,G){var ee=F.blockedSegment.formatContext,De=F.legacyContext,ve=F.context;try{return yn(k,F,G)}catch(gt){if(br(),typeof gt=="object"&&gt!==null&&typeof gt.then=="function"){G=gt;var Re=F.blockedSegment,Ke=Kr(k,Re.chunks.length,null,Re.formatContext,Re.lastPushedText,!0);Re.children.push(Ke),Re.lastPushedText=!1,k=fi(k,F.node,F.blockedBoundary,Ke,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,G.then(k,k),F.blockedSegment.formatContext=ee,F.legacyContext=De,F.context=ve,on(ve)}else throw F.blockedSegment.formatContext=ee,F.legacyContext=De,F.context=ve,on(ve),gt}}function di(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,Zr(this,F,k)}function hi(k,F,G){var ee=k.blockedBoundary;k.blockedSegment.status=3,ee===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,k=G===void 0?Error(e(432)):G,ee.errorDigest=F.onError(k),ee.parentFlushed&&F.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(De){return hi(De,F,G)}),ee.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ee=F.onAllReady,ee()))}function xr(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var G=F.children[0];G.id=F.id,G.parentFlushed=!0,G.status===1&&xr(k,G)}else k.completedSegments.push(F)}function Zr(k,F,G){if(F===null){if(G.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=G}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=_r,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(G.parentFlushed&&G.status===1&&xr(F,G),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(di,k),F.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(xr(F,G),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Wn(k){if(k.status!==2){var F=sn,G=Oi.current;Oi.current=lo;var ee=uo;uo=k.responseState;try{var De=k.pingedTasks,ve;for(ve=0;ve<De.length;ve++){var Re=De[ve],Ke=k,gt=Re.blockedSegment;if(gt.status===0){on(Re.context);try{yn(Ke,Re,Re.node),Ke.responseState.generateStaticMarkup||gt.lastPushedText&&gt.textEmbedded&&gt.chunks.push("<!-- -->"),Re.abortSet.delete(Re),gt.status=1,Zr(Ke,Re.blockedBoundary,gt)}catch(En){if(br(),typeof En=="object"&&En!==null&&typeof En.then=="function"){var mt=Re.ping;En.then(mt,mt)}else{Re.abortSet.delete(Re),gt.status=4;var dt=Re.blockedBoundary,Ft=En,Bn=wr(Ke,Ft);if(dt===null?Ar(Ke,Ft):(dt.pendingTasks--,dt.forceClientRender||(dt.forceClientRender=!0,dt.errorDigest=Bn,dt.parentFlushed&&Ke.clientRenderedBoundaries.push(dt))),Ke.allPendingTasks--,Ke.allPendingTasks===0){var zn=Ke.onAllReady;zn()}}}finally{}}}De.splice(0,ve),k.destination!==null&&Cn(k,k.destination)}catch(En){wr(k,En),Ar(k,En)}finally{uo=ee,Oi.current=G,G===lo&&on(F)}}}function pi(k,F,G){switch(G.parentFlushed=!0,G.status){case 0:var ee=G.id=k.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,k=k.responseState,F.push('<template id="'),F.push(k.placeholderPrefix),k=ee.toString(16),F.push(k),F.push('"></template>');case 1:G.status=2;var De=!0;ee=G.chunks;var ve=0;G=G.children;for(var Re=0;Re<G.length;Re++){for(De=G[Re];ve<De.index;ve++)F.push(ee[ve]);De=gi(k,F,De)}for(;ve<ee.length-1;ve++)F.push(ee[ve]);return ve<ee.length&&(De=F.push(ee[ve])),De;default:throw Error(e(390))}}function gi(k,F,G){var ee=G.boundary;if(ee===null)return pi(k,F,G);if(ee.parentFlushed=!0,ee.forceClientRender)return k.responseState.generateStaticMarkup||(ee=ee.errorDigest,F.push("<!--$!-->"),F.push("<template"),ee&&(F.push(' data-dgst="'),ee=A(ee),F.push(ee),F.push('"')),F.push("></template>")),pi(k,F,G),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k;if(0<ee.pendingTasks){ee.rootSegmentID=k.nextSegmentId++,0<ee.completedSegments.length&&k.partialBoundaries.push(ee);var De=k.responseState,ve=De.nextSuspenseID++;return De=De.boundaryPrefix+ve.toString(16),ee=ee.id=De,Ye(F,k.responseState,ee),pi(k,F,G),F.push("<!--/$-->")}if(ee.byteSize>k.progressiveChunkSize)return ee.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ee),Ye(F,k.responseState,ee.id),pi(k,F,G),F.push("<!--/$-->");if(k.responseState.generateStaticMarkup||F.push("<!--$-->"),G=ee.completedSegments,G.length!==1)throw Error(e(391));return gi(k,F,G[0]),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k}function Ri(k,F,G){return pe(F,k.responseState,G.formatContext,G.id),gi(k,F,G),fe(F,G.formatContext)}function nn(k,F,G){for(var ee=G.completedSegments,De=0;De<ee.length;De++)jn(k,F,G,ee[De]);if(ee.length=0,k=k.responseState,ee=G.id,G=G.rootSegmentID,F.push(k.startInlineScript),k.sentCompleteBoundaryFunction?F.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,F.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return G=G.toString(16),F.push(ee),F.push('","'),F.push(k.segmentPrefix),F.push(G),F.push('")<\/script>')}function jn(k,F,G,ee){if(ee.status===2)return!0;var De=ee.id;if(De===-1){if((ee.id=G.rootSegmentID)===-1)throw Error(e(392));return Ri(k,F,ee)}return Ri(k,F,ee),k=k.responseState,F.push(k.startInlineScript),k.sentCompleteSegmentFunction?F.push('$RS("'):(k.sentCompleteSegmentFunction=!0,F.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),F.push(k.segmentPrefix),De=De.toString(16),F.push(De),F.push('","'),F.push(k.placeholderPrefix),F.push(De),F.push('")<\/script>')}function Cn(k,F){try{var G=k.completedRootSegment;if(G!==null&&k.pendingRootTasks===0){gi(k,F,G),k.completedRootSegment=null;var ee=k.responseState.bootstrapChunks;for(G=0;G<ee.length-1;G++)F.push(ee[G]);G<ee.length&&F.push(ee[G])}var De=k.clientRenderedBoundaries,ve;for(ve=0;ve<De.length;ve++){var Re=De[ve];ee=F;var Ke=k.responseState,gt=Re.id,mt=Re.errorDigest,dt=Re.errorMessage,Ft=Re.errorComponentStack;if(ee.push(Ke.startInlineScript),Ke.sentClientRenderFunction?ee.push('$RX("'):(Ke.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),gt===null)throw Error(e(395));if(ee.push(gt),ee.push('"'),mt||dt||Ft){ee.push(",");var Bn=Oe(mt||"");ee.push(Bn)}if(dt||Ft){ee.push(",");var zn=Oe(dt||"");ee.push(zn)}if(Ft){ee.push(",");var En=Oe(Ft);ee.push(En)}if(!ee.push(")<\/script>")){k.destination=null,ve++,De.splice(0,ve);return}}De.splice(0,ve);var Jr=k.completedBoundaries;for(ve=0;ve<Jr.length;ve++)if(!nn(k,F,Jr[ve])){k.destination=null,ve++,Jr.splice(0,ve);return}Jr.splice(0,ve);var lr=k.partialBoundaries;for(ve=0;ve<lr.length;ve++){var Gi=lr[ve];e:{De=k,Re=F;var mi=Gi.completedSegments;for(Ke=0;Ke<mi.length;Ke++)if(!jn(De,Re,Gi,mi[Ke])){Ke++,mi.splice(0,Ke);var qi=!1;break e}mi.splice(0,Ke),qi=!0}if(!qi){k.destination=null,ve++,lr.splice(0,ve);return}}lr.splice(0,ve);var Lr=k.completedBoundaries;for(ve=0;ve<Lr.length;ve++)if(!nn(k,F,Lr[ve])){k.destination=null,ve++,Lr.splice(0,ve);return}Lr.splice(0,ve)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.push(null)}}function co(k,F){try{var G=k.abortableTasks;G.forEach(function(ee){return hi(ee,k,F)}),G.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ee){wr(k,ee),Ar(k,ee)}}function On(){}function _n(k,F,G,ee){var De=!1,ve=null,Re="",Ke={push:function(mt){return mt!==null&&(Re+=mt),!0},destroy:function(mt){De=!0,ve=mt}},gt=!1;if(k=Rr(k,Ne(G,F?F.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,On,void 0,function(){gt=!0}),Wn(k),co(k,ee),k.status===1)k.status=2,Ke.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Ke;try{Cn(k,Ke)}catch(mt){wr(k,mt),Ar(k,mt)}}if(De)throw ve;if(!gt)throw Error(e(426));return Re}return uc.renderToNodeStream=function(){throw Error(e(207))},uc.renderToStaticMarkup=function(k,F){return _n(k,F,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.renderToStaticNodeStream=function(){throw Error(e(208))},uc.renderToString=function(k,F){return _n(k,F,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.version="18.3.1",uc}var Lh={};/**
45
+ `),ve;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(Qe(F));for(var zn in G)if(n.call(G,zn)&&(ve=G[zn],ve!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,F));default:ie(k,ee,zn,ve)}return k.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ae(k,G,F,ee);case"html":return De.insertionMode===0&&k.push("<!DOCTYPE html>"),ae(k,G,F,ee);default:if(F.indexOf("-")===-1&&typeof G.is!="string")return ae(k,G,F,ee);k.push(Qe(F)),Re=ve=null;for(mt in G)if(n.call(G,mt)&&(Ke=G[mt],Ke!=null))switch(mt){case"children":ve=Ke;break;case"dangerouslySetInnerHTML":Re=Ke;break;case"style":q(k,ee,Ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(mt)&&typeof Ke!="function"&&typeof Ke!="symbol"&&k.push(" ",mt,'="',A(Ke),'"')}return k.push(">"),x(k,Re,ve),ve}}function Ye(k,F,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(e(395));return k.push(G),k.push('"></template>')}function pe(k,F,G,ee){switch(G.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 4:return k.push('<table hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');default:throw Error(e(397))}}function fe(k,F){switch(F.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var Ce=/[<\u2028\u2029]/g;function Oe(k){return JSON.stringify(k).replace(Ce,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Ne(k,F){return F=F===void 0?"":F,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function me(k,F,G,ee){return G.generateStaticMarkup?(k.push(A(F)),!1):(F===""?k=ee:(ee&&k.push("<!-- -->"),k.push(A(F)),k=!0),k)}var Te=Object.assign,Le=Symbol.for("react.element"),He=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),nt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),ft=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),Je=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Mt=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),vr=Symbol.for("react.legacy_hidden"),Un=Symbol.for("react.default_value"),Sn=Symbol.iterator;function Vi(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case je:return"Fragment";case He:return"Portal";case Ve:return"Profiler";case Fe:return"StrictMode";case ft:return"Suspense";case yt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case ct:return(k.displayName||"Context")+".Consumer";case nt:return(k._context.displayName||"Context")+".Provider";case pt:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case Je:return F=k.displayName||null,F!==null?F:Vi(k.type)||"Memo";case At:F=k._payload,k=k._init;try{return Vi(k(F))}catch{}}return null}var Dr={};function Jn(k,F){if(k=k.contextTypes,!k)return Dr;var G={},ee;for(ee in k)G[ee]=F[ee];return G}var sn=null;function fn(k,F){if(k!==F){k.context._currentValue2=k.parentValue,k=k.parent;var G=F.parent;if(k===null){if(G!==null)throw Error(e(401))}else{if(G===null)throw Error(e(401));fn(k,G)}F.context._currentValue2=F.value}}function dn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&dn(k)}function ut(k){var F=k.parent;F!==null&&ut(F),k.context._currentValue2=k.value}function Dn(k,F){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===F.depth?fn(k,F):Dn(k,F)}function si(k,F){var G=F.parent;if(G===null)throw Error(e(402));k.depth===G.depth?fn(k,G):si(k,G),F.context._currentValue2=F.value}function on(k){var F=sn;F!==k&&(F===null?ut(k):k===null?dn(F):F.depth===k.depth?fn(F,k):F.depth>k.depth?Dn(F,k):si(F,k),sn=k)}var Ui={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function Hi(k,F,G,ee){var De=k.state!==void 0?k.state:null;k.updater=Ui,k.props=G,k.state=De;var ve={queue:[],replace:!1};k._reactInternals=ve;var Re=F.contextType;if(k.context=typeof Re=="object"&&Re!==null?Re._currentValue2:ee,Re=F.getDerivedStateFromProps,typeof Re=="function"&&(Re=Re(G,De),De=Re==null?De:Te({},De,Re),k.state=De),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Ui.enqueueReplaceState(k,k.state,null),ve.queue!==null&&0<ve.queue.length)if(F=ve.queue,Re=ve.replace,ve.queue=null,ve.replace=!1,Re&&F.length===1)k.state=F[0];else{for(ve=Re?F[0]:k.state,De=!0,Re=Re?1:0;Re<F.length;Re++){var Ke=F[Re];Ke=typeof Ke=="function"?Ke.call(k,ve,G,ee):Ke,Ke!=null&&(De?(De=!1,ve=Te({},ve,Ke)):Te(ve,Ke))}k.state=ve}else ve.queue=null}var Wi={id:1,overflow:""};function Pr(k,F,G){var ee=k.id;k=k.overflow;var De=32-Nn(ee)-1;ee&=~(1<<De),G+=1;var ve=32-Nn(F)+De;if(30<ve){var Re=De-De%5;return ve=(ee&(1<<Re)-1).toString(32),ee>>=Re,De-=Re,{id:1<<32-Nn(F)+De|G<<De|ee,overflow:ve+k}}return{id:1<<ve|G<<De|ee,overflow:k}}var Nn=Math.clz32?Math.clz32:Yr,Or=Math.log,yr=Math.LN2;function Yr(k){return k>>>=0,k===0?32:31-(Or(k)/yr|0)|0}function Gr(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Io=typeof Object.is=="function"?Object.is:Gr,Hn=null,qr=null,Qn=null,Wt=null,ai=!1,zi=!1,Pn=0,hn=null,li=0;function ui(){if(Hn===null)throw Error(e(321));return Hn}function Tn(){if(0<li)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function ao(){return Wt===null?Qn===null?(ai=!1,Qn=Wt=Tn()):(ai=!0,Wt=Qn):Wt.next===null?(ai=!1,Wt=Wt.next=Tn()):(ai=!0,Wt=Wt.next),Wt}function br(){qr=Hn=null,zi=!1,Qn=null,li=0,Wt=hn=null}function ci(k,F){return typeof F=="function"?F(k):F}function an(k,F,G){if(Hn=ui(),Wt=ao(),ai){var ee=Wt.queue;if(F=ee.dispatch,hn!==null&&(G=hn.get(ee),G!==void 0)){hn.delete(ee),ee=Wt.memoizedState;do ee=k(ee,G.action),G=G.next;while(G!==null);return Wt.memoizedState=ee,[ee,F]}return[Wt.memoizedState,F]}return k=k===ci?typeof F=="function"?F():F:G!==void 0?G(F):F,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Ls.bind(null,Hn,k),[Wt.memoizedState,k]}function Pi(k,F){if(Hn=ui(),Wt=ao(),F=F===void 0?null:F,Wt!==null){var G=Wt.memoizedState;if(G!==null&&F!==null){var ee=G[1];e:if(ee===null)ee=!1;else{for(var De=0;De<ee.length&&De<F.length;De++)if(!Io(F[De],ee[De])){ee=!1;break e}ee=!0}if(ee)return G[0]}}return k=k(),Wt.memoizedState=[k,F],k}function Ls(k,F,G){if(25<=li)throw Error(e(301));if(k===Hn)if(zi=!0,k={action:G,next:null},hn===null&&(hn=new Map),G=hn.get(F),G===void 0)hn.set(F,k);else{for(F=G;F.next!==null;)F=F.next;F.next=k}}function Fs(){throw Error(e(394))}function Xr(){}var lo={readContext:function(k){return k._currentValue2},useContext:function(k){return ui(),k._currentValue2},useMemo:Pi,useReducer:an,useRef:function(k){Hn=ui(),Wt=ao();var F=Wt.memoizedState;return F===null?(k={current:k},Wt.memoizedState=k):F},useState:function(k){return an(ci,k)},useInsertionEffect:Xr,useLayoutEffect:function(){},useCallback:function(k,F){return Pi(function(){return k},F)},useImperativeHandle:Xr,useEffect:Xr,useDebugValue:Xr,useDeferredValue:function(k){return ui(),k},useTransition:function(){return ui(),[!1,Fs]},useId:function(){var k=qr.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Nn(k)-1)).toString(32)+F;var G=uo;if(G===null)throw Error(e(404));return F=Pn++,k=":"+G.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return ui(),F(k._source)},useSyncExternalStore:function(k,F,G){if(G===void 0)throw Error(e(407));return G()}},uo=null,Oi=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(k){return console.error(k),null}function _r(){}function Rr(k,F,G,ee,De,ve,Re,Ke,gt){var mt=[],dt=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:dt,pingedTasks:mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:De===void 0?er:De,onAllReady:_r,onShellReady:Re===void 0?_r:Re,onShellError:_r,onFatalError:_r},G=Kr(F,0,null,G,!1,!1),G.parentFlushed=!0,k=fi(F,k,null,G,dt,Dr,null,Wi),mt.push(k),F}function fi(k,F,G,ee,De,ve,Re,Ke){k.allPendingTasks++,G===null?k.pendingRootTasks++:G.pendingTasks++;var gt={node:F,ping:function(){var mt=k.pingedTasks;mt.push(gt),mt.length===1&&Wn(k)},blockedBoundary:G,blockedSegment:ee,abortSet:De,legacyContext:ve,context:Re,treeContext:Ke};return De.add(gt),gt}function Kr(k,F,G,ee,De,ve){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:G,lastPushedText:De,textEmbedded:ve}}function wr(k,F){if(k=k.onError(F),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function Ar(k,F){var G=k.onShellError;G(F),G=k.onFatalError,G(F),k.destination!==null?(k.status=2,k.destination.destroy(F)):(k.status=1,k.fatalError=F)}function tr(k,F,G,ee,De){for(Hn={},qr=F,Pn=0,k=G(ee,De);zi;)zi=!1,Pn=0,li+=1,Wt=null,k=G(ee,De);return br(),k}function Yi(k,F,G,ee){var De=G.render(),ve=ee.childContextTypes;if(ve!=null){var Re=F.legacyContext;if(typeof G.getChildContext!="function")ee=Re;else{G=G.getChildContext();for(var Ke in G)if(!(Ke in ve))throw Error(e(108,Vi(ee)||"Unknown",Ke));ee=Te({},Re,G)}F.legacyContext=ee,yn(k,F,De),F.legacyContext=Re}else yn(k,F,De)}function _i(k,F){if(k&&k.defaultProps){F=Te({},F),k=k.defaultProps;for(var G in k)F[G]===void 0&&(F[G]=k[G]);return F}return F}function ar(k,F,G,ee,De){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){De=Jn(G,F.legacyContext);var ve=G.contextType;ve=new G(ee,typeof ve=="object"&&ve!==null?ve._currentValue2:De),Hi(ve,G,ee,De),Yi(k,F,ve,G)}else{ve=Jn(G,F.legacyContext),De=tr(k,F,G,ee,ve);var Re=Pn!==0;if(typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0)Hi(De,G,ee,ve),Yi(k,F,De,G);else if(Re){ee=F.treeContext,F.treeContext=Pr(ee,1,0);try{yn(k,F,De)}finally{F.treeContext=ee}}else yn(k,F,De)}else if(typeof G=="string"){switch(De=F.blockedSegment,ve=et(De.chunks,G,ee,k.responseState,De.formatContext),De.lastPushedText=!1,Re=De.formatContext,De.formatContext=U(Re,G,ee),Mr(k,F,ve),De.formatContext=Re,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:De.chunks.push("</",G,">")}De.lastPushedText=!1}else{switch(G){case vr:case Vn:case Fe:case Ve:case je:yn(k,F,ee.children);return;case yt:yn(k,F,ee.children);return;case Mt:throw Error(e(343));case ft:e:{G=F.blockedBoundary,De=F.blockedSegment,ve=ee.fallback,ee=ee.children,Re=new Set;var Ke={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Re,errorDigest:null},gt=Kr(k,De.chunks.length,Ke,De.formatContext,!1,!1);De.children.push(gt),De.lastPushedText=!1;var mt=Kr(k,0,null,De.formatContext,!1,!1);mt.parentFlushed=!0,F.blockedBoundary=Ke,F.blockedSegment=mt;try{if(Mr(k,F,ee),k.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),mt.status=1,xr(Ke,mt),Ke.pendingTasks===0)break e}catch(dt){mt.status=4,Ke.forceClientRender=!0,Ke.errorDigest=wr(k,dt)}finally{F.blockedBoundary=G,F.blockedSegment=De}F=fi(k,ve,G,gt,Re,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case pt:if(ee=tr(k,F,G.render,ee,De),Pn!==0){G=F.treeContext,F.treeContext=Pr(G,1,0);try{yn(k,F,ee)}finally{F.treeContext=G}}else yn(k,F,ee);return;case Je:G=G.type,ee=_i(G,ee),ar(k,F,G,ee,De);return;case nt:if(De=ee.children,G=G._context,ee=ee.value,ve=G._currentValue2,G._currentValue2=ee,Re=sn,sn=ee={parent:Re,depth:Re===null?0:Re.depth+1,context:G,parentValue:ve,value:ee},F.context=ee,yn(k,F,De),k=sn,k===null)throw Error(e(403));ee=k.parentValue,k.context._currentValue2=ee===Un?k.context._defaultValue:ee,k=sn=k.parent,F.context=k;return;case ct:ee=ee.children,ee=ee(G._currentValue2),yn(k,F,ee);return;case At:De=G._init,G=De(G._payload),ee=_i(G,ee),ar(k,F,G,ee,void 0);return}throw Error(e(130,G==null?G:typeof G,""))}}function yn(k,F,G){if(F.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case Le:ar(k,F,G.type,G.props,G.ref);return;case He:throw Error(e(257));case At:var ee=G._init;G=ee(G._payload),yn(k,F,G);return}if(R(G)){Ir(k,F,G);return}if(G===null||typeof G!="object"?ee=null:(ee=Sn&&G[Sn]||G["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(G))){if(G=ee.next(),!G.done){var De=[];do De.push(G.value),G=ee.next();while(!G.done);Ir(k,F,De)}return}throw k=Object.prototype.toString.call(G),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":k))}typeof G=="string"?(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,G,k.responseState,ee.lastPushedText)):typeof G=="number"&&(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,""+G,k.responseState,ee.lastPushedText))}function Ir(k,F,G){for(var ee=G.length,De=0;De<ee;De++){var ve=F.treeContext;F.treeContext=Pr(ve,ee,De);try{Mr(k,F,G[De])}finally{F.treeContext=ve}}}function Mr(k,F,G){var ee=F.blockedSegment.formatContext,De=F.legacyContext,ve=F.context;try{return yn(k,F,G)}catch(gt){if(br(),typeof gt=="object"&&gt!==null&&typeof gt.then=="function"){G=gt;var Re=F.blockedSegment,Ke=Kr(k,Re.chunks.length,null,Re.formatContext,Re.lastPushedText,!0);Re.children.push(Ke),Re.lastPushedText=!1,k=fi(k,F.node,F.blockedBoundary,Ke,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,G.then(k,k),F.blockedSegment.formatContext=ee,F.legacyContext=De,F.context=ve,on(ve)}else throw F.blockedSegment.formatContext=ee,F.legacyContext=De,F.context=ve,on(ve),gt}}function di(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,Zr(this,F,k)}function hi(k,F,G){var ee=k.blockedBoundary;k.blockedSegment.status=3,ee===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,k=G===void 0?Error(e(432)):G,ee.errorDigest=F.onError(k),ee.parentFlushed&&F.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(De){return hi(De,F,G)}),ee.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ee=F.onAllReady,ee()))}function xr(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var G=F.children[0];G.id=F.id,G.parentFlushed=!0,G.status===1&&xr(k,G)}else k.completedSegments.push(F)}function Zr(k,F,G){if(F===null){if(G.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=G}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=_r,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(G.parentFlushed&&G.status===1&&xr(F,G),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(di,k),F.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(xr(F,G),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Wn(k){if(k.status!==2){var F=sn,G=Oi.current;Oi.current=lo;var ee=uo;uo=k.responseState;try{var De=k.pingedTasks,ve;for(ve=0;ve<De.length;ve++){var Re=De[ve],Ke=k,gt=Re.blockedSegment;if(gt.status===0){on(Re.context);try{yn(Ke,Re,Re.node),Ke.responseState.generateStaticMarkup||gt.lastPushedText&&gt.textEmbedded&&gt.chunks.push("<!-- -->"),Re.abortSet.delete(Re),gt.status=1,Zr(Ke,Re.blockedBoundary,gt)}catch(En){if(br(),typeof En=="object"&&En!==null&&typeof En.then=="function"){var mt=Re.ping;En.then(mt,mt)}else{Re.abortSet.delete(Re),gt.status=4;var dt=Re.blockedBoundary,Ft=En,Bn=wr(Ke,Ft);if(dt===null?Ar(Ke,Ft):(dt.pendingTasks--,dt.forceClientRender||(dt.forceClientRender=!0,dt.errorDigest=Bn,dt.parentFlushed&&Ke.clientRenderedBoundaries.push(dt))),Ke.allPendingTasks--,Ke.allPendingTasks===0){var zn=Ke.onAllReady;zn()}}}finally{}}}De.splice(0,ve),k.destination!==null&&Cn(k,k.destination)}catch(En){wr(k,En),Ar(k,En)}finally{uo=ee,Oi.current=G,G===lo&&on(F)}}}function pi(k,F,G){switch(G.parentFlushed=!0,G.status){case 0:var ee=G.id=k.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,k=k.responseState,F.push('<template id="'),F.push(k.placeholderPrefix),k=ee.toString(16),F.push(k),F.push('"></template>');case 1:G.status=2;var De=!0;ee=G.chunks;var ve=0;G=G.children;for(var Re=0;Re<G.length;Re++){for(De=G[Re];ve<De.index;ve++)F.push(ee[ve]);De=gi(k,F,De)}for(;ve<ee.length-1;ve++)F.push(ee[ve]);return ve<ee.length&&(De=F.push(ee[ve])),De;default:throw Error(e(390))}}function gi(k,F,G){var ee=G.boundary;if(ee===null)return pi(k,F,G);if(ee.parentFlushed=!0,ee.forceClientRender)return k.responseState.generateStaticMarkup||(ee=ee.errorDigest,F.push("<!--$!-->"),F.push("<template"),ee&&(F.push(' data-dgst="'),ee=A(ee),F.push(ee),F.push('"')),F.push("></template>")),pi(k,F,G),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k;if(0<ee.pendingTasks){ee.rootSegmentID=k.nextSegmentId++,0<ee.completedSegments.length&&k.partialBoundaries.push(ee);var De=k.responseState,ve=De.nextSuspenseID++;return De=De.boundaryPrefix+ve.toString(16),ee=ee.id=De,Ye(F,k.responseState,ee),pi(k,F,G),F.push("<!--/$-->")}if(ee.byteSize>k.progressiveChunkSize)return ee.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ee),Ye(F,k.responseState,ee.id),pi(k,F,G),F.push("<!--/$-->");if(k.responseState.generateStaticMarkup||F.push("<!--$-->"),G=ee.completedSegments,G.length!==1)throw Error(e(391));return gi(k,F,G[0]),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k}function Ri(k,F,G){return pe(F,k.responseState,G.formatContext,G.id),gi(k,F,G),fe(F,G.formatContext)}function nn(k,F,G){for(var ee=G.completedSegments,De=0;De<ee.length;De++)jn(k,F,G,ee[De]);if(ee.length=0,k=k.responseState,ee=G.id,G=G.rootSegmentID,F.push(k.startInlineScript),k.sentCompleteBoundaryFunction?F.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,F.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return G=G.toString(16),F.push(ee),F.push('","'),F.push(k.segmentPrefix),F.push(G),F.push('")<\/script>')}function jn(k,F,G,ee){if(ee.status===2)return!0;var De=ee.id;if(De===-1){if((ee.id=G.rootSegmentID)===-1)throw Error(e(392));return Ri(k,F,ee)}return Ri(k,F,ee),k=k.responseState,F.push(k.startInlineScript),k.sentCompleteSegmentFunction?F.push('$RS("'):(k.sentCompleteSegmentFunction=!0,F.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),F.push(k.segmentPrefix),De=De.toString(16),F.push(De),F.push('","'),F.push(k.placeholderPrefix),F.push(De),F.push('")<\/script>')}function Cn(k,F){try{var G=k.completedRootSegment;if(G!==null&&k.pendingRootTasks===0){gi(k,F,G),k.completedRootSegment=null;var ee=k.responseState.bootstrapChunks;for(G=0;G<ee.length-1;G++)F.push(ee[G]);G<ee.length&&F.push(ee[G])}var De=k.clientRenderedBoundaries,ve;for(ve=0;ve<De.length;ve++){var Re=De[ve];ee=F;var Ke=k.responseState,gt=Re.id,mt=Re.errorDigest,dt=Re.errorMessage,Ft=Re.errorComponentStack;if(ee.push(Ke.startInlineScript),Ke.sentClientRenderFunction?ee.push('$RX("'):(Ke.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),gt===null)throw Error(e(395));if(ee.push(gt),ee.push('"'),mt||dt||Ft){ee.push(",");var Bn=Oe(mt||"");ee.push(Bn)}if(dt||Ft){ee.push(",");var zn=Oe(dt||"");ee.push(zn)}if(Ft){ee.push(",");var En=Oe(Ft);ee.push(En)}if(!ee.push(")<\/script>")){k.destination=null,ve++,De.splice(0,ve);return}}De.splice(0,ve);var Jr=k.completedBoundaries;for(ve=0;ve<Jr.length;ve++)if(!nn(k,F,Jr[ve])){k.destination=null,ve++,Jr.splice(0,ve);return}Jr.splice(0,ve);var lr=k.partialBoundaries;for(ve=0;ve<lr.length;ve++){var Gi=lr[ve];e:{De=k,Re=F;var mi=Gi.completedSegments;for(Ke=0;Ke<mi.length;Ke++)if(!jn(De,Re,Gi,mi[Ke])){Ke++,mi.splice(0,Ke);var qi=!1;break e}mi.splice(0,Ke),qi=!0}if(!qi){k.destination=null,ve++,lr.splice(0,ve);return}}lr.splice(0,ve);var Lr=k.completedBoundaries;for(ve=0;ve<Lr.length;ve++)if(!nn(k,F,Lr[ve])){k.destination=null,ve++,Lr.splice(0,ve);return}Lr.splice(0,ve)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.push(null)}}function co(k,F){try{var G=k.abortableTasks;G.forEach(function(ee){return hi(ee,k,F)}),G.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ee){wr(k,ee),Ar(k,ee)}}function On(){}function _n(k,F,G,ee){var De=!1,ve=null,Re="",Ke={push:function(mt){return mt!==null&&(Re+=mt),!0},destroy:function(mt){De=!0,ve=mt}},gt=!1;if(k=Rr(k,Ne(G,F?F.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,On,void 0,function(){gt=!0}),Wn(k),co(k,ee),k.status===1)k.status=2,Ke.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Ke;try{Cn(k,Ke)}catch(mt){wr(k,mt),Ar(k,mt)}}if(De)throw ve;if(!gt)throw Error(e(426));return Re}return uc.renderToNodeStream=function(){throw Error(e(207))},uc.renderToStaticMarkup=function(k,F){return _n(k,F,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.renderToStaticNodeStream=function(){throw Error(e(208))},uc.renderToString=function(k,F){return _n(k,F,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},uc.version="18.3.1",uc}var Fh={};/**
46
46
  * @license React
47
47
  * react-dom-server.browser.production.min.js
48
48
  *
@@ -50,11 +50,11 @@ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(nt,ft,je,Fe,V
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var D1;function K4(){if(D1)return Lh;D1=1;var t=X;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,W=1;W<arguments.length;W++)M+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var W=n.length-r;W<M.length&&(W===0?D.enqueue(n):(n.set(M.subarray(0,W),r),D.enqueue(n),M=M.subarray(W)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(D){return c.encode(D)}function p(D){return c.encode(D)}function y(D,M){typeof D.error=="function"?D.error(M):D.close()}var g=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function I(D){return g.call(A,D)?!0:g.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,W,Q,we,xe,Me){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=we,this.mustUseProperty=W,this.propertyName=D,this.type=M,this.sanitizeURL=xe,this.removeEmptyString=Me}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){R[D]=new j(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];R[M]=new j(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){R[D]=new j(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){R[D]=new j(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){R[D]=new j(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){R[D]=new j(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){R[D]=new j(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){R[D]=new j(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){R[D]=new j(D,5,!1,D.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function U(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!1,!1)}),R.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!0,!0)});var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(D){q.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),ne[M]=ne[D]})});var ie=/["'&<>]/;function x(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=ie.exec(D);if(M){var W="",Q,we=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M="&quot;";break;case 38:M="&amp;";break;case 39:M="&#x27;";break;case 60:M="&lt;";break;case 62:M="&gt;";break;default:continue}we!==Q&&(W+=D.substring(we,Q)),we=Q+1,W+=M}D=we!==Q?W+D.substring(we,Q):W}return D}var le=/([A-Z])/g,ae=/^ms-/,ze=Array.isArray,tt=p("<script>"),Qe=p("<\/script>"),et=p('<script src="'),Ye=p('<script type="module" src="'),pe=p('" async=""><\/script>'),fe=/(<\/|<)(s)(cript)/gi;function Ce(D,M,W,Q){return""+M+(W==="s"?"\\u0073":"\\u0053")+Q}function Oe(D,M,W,Q,we){D=D===void 0?"":D,M=M===void 0?tt:p('<script nonce="'+x(M)+'">');var xe=[];if(W!==void 0&&xe.push(M,f((""+W).replace(fe,Ce)),Qe),Q!==void 0)for(W=0;W<Q.length;W++)xe.push(et,f(x(Q[W])),pe);if(we!==void 0)for(Q=0;Q<we.length;Q++)xe.push(Ye,f(x(we[Q])),pe);return{bootstrapChunks:xe,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ne(D,M){return{insertionMode:D,selectedValue:M}}function me(D){return Ne(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Te(D,M,W){switch(M){case"select":return Ne(1,W.value!=null?W.value:W.defaultValue);case"svg":return Ne(2,null);case"math":return Ne(3,null);case"foreignObject":return Ne(1,null);case"table":return Ne(4,null);case"thead":case"tbody":case"tfoot":return Ne(5,null);case"colgroup":return Ne(7,null);case"tr":return Ne(6,null)}return 4<=D.insertionMode||D.insertionMode===0?Ne(1,null):D}var Le=p("<!-- -->");function He(D,M,W,Q){return M===""?Q:(Q&&D.push(Le),D.push(f(x(M))),!0)}var je=new Map,Fe=p(' style="'),Ve=p(":"),nt=p(";");function ct(D,M,W){if(typeof W!="object")throw Error(e(62));M=!0;for(var Q in W)if(g.call(W,Q)){var we=W[Q];if(we!=null&&typeof we!="boolean"&&we!==""){if(Q.indexOf("--")===0){var xe=f(x(Q));we=f(x((""+we).trim()))}else{xe=Q;var Me=je.get(xe);Me!==void 0||(Me=p(x(xe.replace(le,"-$1").toLowerCase().replace(ae,"-ms-"))),je.set(xe,Me)),xe=Me,we=typeof we=="number"?we===0||g.call(ne,Q)?f(""+we):f(we+"px"):f(x((""+we).trim()))}M?(M=!1,D.push(Fe,xe,Ve,we)):D.push(nt,xe,Ve,we)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Je=p('=""');function At(D,M,W,Q){switch(W){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(M=R.hasOwnProperty(W)?R[W]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(W=f(M.attributeName),M.type){case 3:Q&&D.push(pt,W,Je);break;case 4:Q===!0?D.push(pt,W,Je):Q!==!1&&D.push(pt,W,ft,f(x(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,W,ft,f(x(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,W,ft,f(x(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,W,ft,f(x(Q)),yt)}}else if(I(W)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=W.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,f(W),ft,f(x(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function vr(D,M,W){if(M!=null){if(W!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(f(""+M))}}function Un(D){var M="";return t.Children.forEach(D,function(W){W!=null&&(M+=W)}),M}var Sn=p(' selected=""');function Vi(D,M,W,Q){D.push(fn(W));var we=W=null,xe;for(xe in M)if(g.call(M,xe)){var Me=M[xe];if(Me!=null)switch(xe){case"children":W=Me;break;case"dangerouslySetInnerHTML":we=Me;break;default:At(D,Q,xe,Me)}}return D.push(Mt),vr(D,we,W),typeof W=="string"?(D.push(f(x(W))),null):W}var Dr=p(`
53
+ */var D1;function K4(){if(D1)return Fh;D1=1;var t=X;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,W=1;W<arguments.length;W++)M+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var W=n.length-r;W<M.length&&(W===0?D.enqueue(n):(n.set(M.subarray(0,W),r),D.enqueue(n),M=M.subarray(W)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(D){return c.encode(D)}function p(D){return c.encode(D)}function y(D,M){typeof D.error=="function"?D.error(M):D.close()}var g=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function I(D){return g.call(A,D)?!0:g.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,W,Q,we,xe,Me){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=we,this.mustUseProperty=W,this.propertyName=D,this.type=M,this.sanitizeURL=xe,this.removeEmptyString=Me}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){R[D]=new j(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];R[M]=new j(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){R[D]=new j(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){R[D]=new j(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){R[D]=new j(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){R[D]=new j(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){R[D]=new j(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){R[D]=new j(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){R[D]=new j(D,5,!1,D.toLowerCase(),null,!1,!1)});var H=/[\-:]([a-z])/g;function U(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(H,U);R[M]=new j(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!1,!1)}),R.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!0,!0)});var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(D){q.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),ne[M]=ne[D]})});var ie=/["'&<>]/;function x(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=ie.exec(D);if(M){var W="",Q,we=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M="&quot;";break;case 38:M="&amp;";break;case 39:M="&#x27;";break;case 60:M="&lt;";break;case 62:M="&gt;";break;default:continue}we!==Q&&(W+=D.substring(we,Q)),we=Q+1,W+=M}D=we!==Q?W+D.substring(we,Q):W}return D}var le=/([A-Z])/g,ae=/^ms-/,ze=Array.isArray,tt=p("<script>"),Qe=p("<\/script>"),et=p('<script src="'),Ye=p('<script type="module" src="'),pe=p('" async=""><\/script>'),fe=/(<\/|<)(s)(cript)/gi;function Ce(D,M,W,Q){return""+M+(W==="s"?"\\u0073":"\\u0053")+Q}function Oe(D,M,W,Q,we){D=D===void 0?"":D,M=M===void 0?tt:p('<script nonce="'+x(M)+'">');var xe=[];if(W!==void 0&&xe.push(M,f((""+W).replace(fe,Ce)),Qe),Q!==void 0)for(W=0;W<Q.length;W++)xe.push(et,f(x(Q[W])),pe);if(we!==void 0)for(Q=0;Q<we.length;Q++)xe.push(Ye,f(x(we[Q])),pe);return{bootstrapChunks:xe,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ne(D,M){return{insertionMode:D,selectedValue:M}}function me(D){return Ne(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Te(D,M,W){switch(M){case"select":return Ne(1,W.value!=null?W.value:W.defaultValue);case"svg":return Ne(2,null);case"math":return Ne(3,null);case"foreignObject":return Ne(1,null);case"table":return Ne(4,null);case"thead":case"tbody":case"tfoot":return Ne(5,null);case"colgroup":return Ne(7,null);case"tr":return Ne(6,null)}return 4<=D.insertionMode||D.insertionMode===0?Ne(1,null):D}var Le=p("<!-- -->");function He(D,M,W,Q){return M===""?Q:(Q&&D.push(Le),D.push(f(x(M))),!0)}var je=new Map,Fe=p(' style="'),Ve=p(":"),nt=p(";");function ct(D,M,W){if(typeof W!="object")throw Error(e(62));M=!0;for(var Q in W)if(g.call(W,Q)){var we=W[Q];if(we!=null&&typeof we!="boolean"&&we!==""){if(Q.indexOf("--")===0){var xe=f(x(Q));we=f(x((""+we).trim()))}else{xe=Q;var Me=je.get(xe);Me!==void 0||(Me=p(x(xe.replace(le,"-$1").toLowerCase().replace(ae,"-ms-"))),je.set(xe,Me)),xe=Me,we=typeof we=="number"?we===0||g.call(ne,Q)?f(""+we):f(we+"px"):f(x((""+we).trim()))}M?(M=!1,D.push(Fe,xe,Ve,we)):D.push(nt,xe,Ve,we)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Je=p('=""');function At(D,M,W,Q){switch(W){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(M=R.hasOwnProperty(W)?R[W]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(W=f(M.attributeName),M.type){case 3:Q&&D.push(pt,W,Je);break;case 4:Q===!0?D.push(pt,W,Je):Q!==!1&&D.push(pt,W,ft,f(x(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,W,ft,f(x(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,W,ft,f(x(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,W,ft,f(x(Q)),yt)}}else if(I(W)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=W.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,f(W),ft,f(x(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function vr(D,M,W){if(M!=null){if(W!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(f(""+M))}}function Un(D){var M="";return t.Children.forEach(D,function(W){W!=null&&(M+=W)}),M}var Sn=p(' selected=""');function Vi(D,M,W,Q){D.push(fn(W));var we=W=null,xe;for(xe in M)if(g.call(M,xe)){var Me=M[xe];if(Me!=null)switch(xe){case"children":W=Me;break;case"dangerouslySetInnerHTML":we=Me;break;default:At(D,Q,xe,Me)}}return D.push(Mt),vr(D,we,W),typeof W=="string"?(D.push(f(x(W))),null):W}var Dr=p(`
54
54
  `),Jn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function fn(D){var M=sn.get(D);if(M===void 0){if(!Jn.test(D))throw Error(e(65,D));M=p("<"+D),sn.set(D,M)}return M}var dn=p("<!DOCTYPE html>");function ut(D,M,W,Q,we){switch(M){case"select":D.push(fn("select"));var xe=null,Me=null;for(St in W)if(g.call(W,St)){var qe=W[St];if(qe!=null)switch(St){case"children":xe=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;case"defaultValue":case"value":break;default:At(D,Q,St,qe)}}return D.push(Mt),vr(D,Me,xe),xe;case"option":Me=we.selectedValue,D.push(fn("option"));var ht=qe=null,_t=null,St=null;for(xe in W)if(g.call(W,xe)){var vt=W[xe];if(vt!=null)switch(xe){case"children":qe=vt;break;case"selected":_t=vt;break;case"dangerouslySetInnerHTML":St=vt;break;case"value":ht=vt;default:At(D,Q,xe,vt)}}if(Me!=null)if(W=ht!==null?""+ht:Un(qe),ze(Me)){for(Q=0;Q<Me.length;Q++)if(""+Me[Q]===W){D.push(Sn);break}}else""+Me===W&&D.push(Sn);else _t&&D.push(Sn);return D.push(Mt),vr(D,St,qe),qe;case"textarea":D.push(fn("textarea")),St=Me=xe=null;for(qe in W)if(g.call(W,qe)&&(ht=W[qe],ht!=null))switch(qe){case"children":St=ht;break;case"value":xe=ht;break;case"defaultValue":Me=ht;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:At(D,Q,qe,ht)}if(xe===null&&Me!==null&&(xe=Me),D.push(Mt),St!=null){if(xe!=null)throw Error(e(92));if(ze(St)&&1<St.length)throw Error(e(93));xe=""+St}return typeof xe=="string"&&xe[0]===`
55
55
  `&&D.push(Dr),xe!==null&&D.push(f(x(""+xe))),null;case"input":D.push(fn("input")),ht=St=qe=xe=null;for(Me in W)if(g.call(W,Me)&&(_t=W[Me],_t!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":ht=_t;break;case"defaultValue":qe=_t;break;case"checked":St=_t;break;case"value":xe=_t;break;default:At(D,Q,Me,_t)}return St!==null?At(D,Q,"checked",St):ht!==null&&At(D,Q,"checked",ht),xe!==null?At(D,Q,"value",xe):qe!==null&&At(D,Q,"value",qe),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var An in W)if(g.call(W,An)&&(xe=W[An],xe!=null))switch(An){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:At(D,Q,An,xe)}return D.push(Mt),null;case"title":D.push(fn("title")),xe=null;for(vt in W)if(g.call(W,vt)&&(Me=W[vt],Me!=null))switch(vt){case"children":xe=Me;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:At(D,Q,vt,Me)}return D.push(Mt),xe;case"listing":case"pre":D.push(fn(M)),Me=xe=null;for(ht in W)if(g.call(W,ht)&&(qe=W[ht],qe!=null))switch(ht){case"children":xe=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;default:At(D,Q,ht,qe)}if(D.push(Mt),Me!=null){if(xe!=null)throw Error(e(60));if(typeof Me!="object"||!("__html"in Me))throw Error(e(61));W=Me.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
56
56
  `?D.push(Dr,f(W)):D.push(f(""+W)))}return typeof xe=="string"&&xe[0]===`
57
- `&&D.push(Dr),xe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(fn(M));for(var bn in W)if(g.call(W,bn)&&(xe=W[bn],xe!=null))switch(bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,M));default:At(D,Q,bn,xe)}return D.push(Vn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Vi(D,W,M,Q);case"html":return we.insertionMode===0&&D.push(dn),Vi(D,W,M,Q);default:if(M.indexOf("-")===-1&&typeof W.is!="string")return Vi(D,W,M,Q);D.push(fn(M)),Me=xe=null;for(_t in W)if(g.call(W,_t)&&(qe=W[_t],qe!=null))switch(_t){case"children":xe=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;case"style":ct(D,Q,qe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(_t)&&typeof qe!="function"&&typeof qe!="symbol"&&D.push(pt,f(_t),ft,f(x(qe)),yt)}return D.push(Mt),vr(D,Me,xe),xe}}var Dn=p("</"),si=p(">"),on=p('<template id="'),Ui=p('"></template>'),Hi=p("<!--$-->"),Wi=p('<!--$?--><template id="'),Pr=p('"></template>'),Nn=p("<!--$!-->"),Or=p("<!--/$-->"),yr=p("<template"),Yr=p('"'),Gr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Io=p("></template>");function Hn(D,M,W){if(i(D,Wi),W===null)throw Error(e(395));return i(D,W),o(D,Pr)}var qr=p('<div hidden id="'),Qn=p('">'),Wt=p("</div>"),ai=p('<svg aria-hidden="true" style="display:none" id="'),zi=p('">'),Pn=p("</svg>"),hn=p('<math aria-hidden="true" style="display:none" id="'),li=p('">'),ui=p("</math>"),Tn=p('<table hidden id="'),ao=p('">'),br=p("</table>"),ci=p('<table hidden><tbody id="'),an=p('">'),Pi=p("</tbody></table>"),Ls=p('<table hidden><tr id="'),Fs=p('">'),Xr=p("</tr></table>"),lo=p('<table hidden><colgroup id="'),uo=p('">'),Oi=p("</colgroup></table>");function er(D,M,W,Q){switch(W.insertionMode){case 0:case 1:return i(D,qr),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Qn);case 2:return i(D,ai),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,zi);case 3:return i(D,hn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,li);case 4:return i(D,Tn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,ao);case 5:return i(D,ci),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,an);case 6:return i(D,Ls),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Fs);case 7:return i(D,lo),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,uo);default:throw Error(e(397))}}function _r(D,M){switch(M.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,Pn);case 3:return o(D,ui);case 4:return o(D,br);case 5:return o(D,Pi);case 6:return o(D,Xr);case 7:return o(D,Oi);default:throw Error(e(397))}}var Rr=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),fi=p('$RS("'),Kr=p('","'),wr=p('")<\/script>'),Ar=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),tr=p('$RC("'),Yi=p('","'),_i=p('")<\/script>'),ar=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yn=p('$RX("'),Ir=p('"'),Mr=p(")<\/script>"),di=p(","),hi=/[<\u2028\u2029]/g;function xr(D){return JSON.stringify(D).replace(hi,function(M){switch(M){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Zr=Object.assign,Wn=Symbol.for("react.element"),pi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),co=Symbol.for("react.forward_ref"),On=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),De=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.default_value"),Re=Symbol.iterator;function Ke(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case gi:return"Fragment";case pi:return"Portal";case nn:return"Profiler";case Ri:return"StrictMode";case On:return"Suspense";case _n:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Cn:return(D.displayName||"Context")+".Consumer";case jn:return(D._context.displayName||"Context")+".Provider";case co:var M=D.render;return D=D.displayName,D||(D=M.displayName||M.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return M=D.displayName||null,M!==null?M:Ke(D.type)||"Memo";case F:M=D._payload,D=D._init;try{return Ke(D(M))}catch{}}return null}var gt={};function mt(D,M){if(D=D.contextTypes,!D)return gt;var W={},Q;for(Q in D)W[Q]=M[Q];return W}var dt=null;function Ft(D,M){if(D!==M){D.context._currentValue=D.parentValue,D=D.parent;var W=M.parent;if(D===null){if(W!==null)throw Error(e(401))}else{if(W===null)throw Error(e(401));Ft(D,W)}M.context._currentValue=M.value}}function Bn(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&Bn(D)}function zn(D){var M=D.parent;M!==null&&zn(M),D.context._currentValue=D.value}function En(D,M){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(e(402));D.depth===M.depth?Ft(D,M):En(D,M)}function Jr(D,M){var W=M.parent;if(W===null)throw Error(e(402));D.depth===W.depth?Ft(D,W):Jr(D,W),M.context._currentValue=M.value}function lr(D){var M=dt;M!==D&&(M===null?zn(D):D===null?Bn(M):M.depth===D.depth?Ft(M,D):M.depth>D.depth?En(M,D):Jr(M,D),dt=D)}var Gi={isMounted:function(){return!1},enqueueSetState:function(D,M){D=D._reactInternals,D.queue!==null&&D.queue.push(M)},enqueueReplaceState:function(D,M){D=D._reactInternals,D.replace=!0,D.queue=[M]},enqueueForceUpdate:function(){}};function mi(D,M,W,Q){var we=D.state!==void 0?D.state:null;D.updater=Gi,D.props=W,D.state=we;var xe={queue:[],replace:!1};D._reactInternals=xe;var Me=M.contextType;if(D.context=typeof Me=="object"&&Me!==null?Me._currentValue:Q,Me=M.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(W,we),we=Me==null?we:Zr({},we,Me),D.state=we),typeof M.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(M=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),M!==D.state&&Gi.enqueueReplaceState(D,D.state,null),xe.queue!==null&&0<xe.queue.length)if(M=xe.queue,Me=xe.replace,xe.queue=null,xe.replace=!1,Me&&M.length===1)D.state=M[0];else{for(xe=Me?M[0]:D.state,we=!0,Me=Me?1:0;Me<M.length;Me++){var qe=M[Me];qe=typeof qe=="function"?qe.call(D,xe,W,Q):qe,qe!=null&&(we?(we=!1,xe=Zr({},xe,qe)):Zr(xe,qe))}D.state=xe}else xe.queue=null}var qi={id:1,overflow:""};function Lr(D,M,W){var Q=D.id;D=D.overflow;var we=32-Xi(Q)-1;Q&=~(1<<we),W+=1;var xe=32-Xi(M)+we;if(30<xe){var Me=we-we%5;return xe=(Q&(1<<Me)-1).toString(32),Q>>=Me,we-=Me,{id:1<<32-Xi(M)+we|W<<we|Q,overflow:xe+D}}return{id:1<<xe|W<<we|Q,overflow:D}}var Xi=Math.clz32?Math.clz32:os,Wa=Math.log,Ns=Math.LN2;function os(D){return D>>>=0,D===0?32:31-(Wa(D)/Ns|0)|0}function Sr(D,M){return D===M&&(D!==0||1/D===1/M)||D!==D&&M!==M}var za=typeof Object.is=="function"?Object.is:Sr,vi=null,js=null,ss=null,rn=null,Gt=!1,Kt=!1,Ai=0,Qr=null,Mo=0;function yi(){if(vi===null)throw Error(e(321));return vi}function ur(){if(0<Mo)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Bs(){return rn===null?ss===null?(Gt=!1,ss=rn=ur()):(Gt=!0,rn=ss):rn.next===null?(Gt=!1,rn=rn.next=ur()):(Gt=!0,rn=rn.next),rn}function fo(){js=vi=null,Kt=!1,ss=null,Mo=0,rn=Qr=null}function ua(D,M){return typeof M=="function"?M(D):M}function ln(D,M,W){if(vi=yi(),rn=Bs(),Gt){var Q=rn.queue;if(M=Q.dispatch,Qr!==null&&(W=Qr.get(Q),W!==void 0)){Qr.delete(Q),Q=rn.memoizedState;do Q=D(Q,W.action),W=W.next;while(W!==null);return rn.memoizedState=Q,[Q,M]}return[rn.memoizedState,M]}return D=D===ua?typeof M=="function"?M():M:W!==void 0?W(M):M,rn.memoizedState=D,D=rn.queue={last:null,dispatch:null},D=D.dispatch=bi.bind(null,vi,D),[rn.memoizedState,D]}function Lo(D,M){if(vi=yi(),rn=Bs(),M=M===void 0?null:M,rn!==null){var W=rn.memoizedState;if(W!==null&&M!==null){var Q=W[1];e:if(Q===null)Q=!1;else{for(var we=0;we<Q.length&&we<M.length;we++)if(!za(M[we],Q[we])){Q=!1;break e}Q=!0}if(Q)return W[0]}}return D=D(),rn.memoizedState=[D,M],D}function bi(D,M,W){if(25<=Mo)throw Error(e(301));if(D===vi)if(Kt=!0,D={action:W,next:null},Qr===null&&(Qr=new Map),W=Qr.get(M),W===void 0)Qr.set(M,D);else{for(M=W;M.next!==null;)M=M.next;M.next=D}}function ca(){throw Error(e(394))}function ho(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return yi(),D._currentValue},useMemo:Lo,useReducer:ln,useRef:function(D){vi=yi(),rn=Bs();var M=rn.memoizedState;return M===null?(D={current:D},rn.memoizedState=D):M},useState:function(D){return ln(ua,D)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(D,M){return Lo(function(){return D},M)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(D){return yi(),D},useTransition:function(){return yi(),[!1,ca]},useId:function(){var D=js.treeContext,M=D.overflow;D=D.id,D=(D&~(1<<32-Xi(D)-1)).toString(32)+M;var W=h;if(W===null)throw Error(e(404));return M=Ai++,D=":"+W.idPrefix+"R"+D,0<M&&(D+="H"+M.toString(32)),D+":"},useMutableSource:function(D,M){return yi(),M(D._source)},useSyncExternalStore:function(D,M,W){if(W===void 0)throw Error(e(407));return W()}},h=null,b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(D){return console.error(D),null}function P(){}function L(D,M,W,Q,we,xe,Me,qe,ht){var _t=[],St=new Set;return M={destination:null,responseState:M,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:_t,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:we===void 0?C:we,onAllReady:xe===void 0?P:xe,onShellReady:Me===void 0?P:Me,onShellError:qe===void 0?P:qe,onFatalError:ht===void 0?P:ht},W=V(M,0,null,W,!1,!1),W.parentFlushed=!0,D=N(M,D,null,W,St,gt,null,qi),_t.push(D),M}function N(D,M,W,Q,we,xe,Me,qe){D.allPendingTasks++,W===null?D.pendingRootTasks++:W.pendingTasks++;var ht={node:M,ping:function(){var _t=D.pingedTasks;_t.push(ht),_t.length===1&&Nr(D)},blockedBoundary:W,blockedSegment:Q,abortSet:we,legacyContext:xe,context:Me,treeContext:qe};return we.add(ht),ht}function V(D,M,W,Q,we,xe){return{status:0,id:-1,index:M,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:W,lastPushedText:we,textEmbedded:xe}}function se(D,M){if(D=D.onError(M),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function te(D,M){var W=D.onShellError;W(M),W=D.onFatalError,W(M),D.destination!==null?(D.status=2,y(D.destination,M)):(D.status=1,D.fatalError=M)}function ge(D,M,W,Q,we){for(vi={},js=M,Ai=0,D=W(Q,we);Kt;)Kt=!1,Ai=0,Mo+=1,rn=null,D=W(Q,we);return fo(),D}function _e(D,M,W,Q){var we=W.render(),xe=Q.childContextTypes;if(xe!=null){var Me=M.legacyContext;if(typeof W.getChildContext!="function")Q=Me;else{W=W.getChildContext();for(var qe in W)if(!(qe in xe))throw Error(e(108,Ke(Q)||"Unknown",qe));Q=Zr({},Me,W)}M.legacyContext=Q,Ue(D,M,we),M.legacyContext=Me}else Ue(D,M,we)}function Ae(D,M){if(D&&D.defaultProps){M=Zr({},M),D=D.defaultProps;for(var W in D)M[W]===void 0&&(M[W]=D[W]);return M}return M}function Ee(D,M,W,Q,we){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){we=mt(W,M.legacyContext);var xe=W.contextType;xe=new W(Q,typeof xe=="object"&&xe!==null?xe._currentValue:we),mi(xe,W,Q,we),_e(D,M,xe,W)}else{xe=mt(W,M.legacyContext),we=ge(D,M,W,Q,xe);var Me=Ai!==0;if(typeof we=="object"&&we!==null&&typeof we.render=="function"&&we.$$typeof===void 0)mi(we,W,Q,xe),_e(D,M,we,W);else if(Me){Q=M.treeContext,M.treeContext=Lr(Q,1,0);try{Ue(D,M,we)}finally{M.treeContext=Q}}else Ue(D,M,we)}else if(typeof W=="string"){switch(we=M.blockedSegment,xe=ut(we.chunks,W,Q,D.responseState,we.formatContext),we.lastPushedText=!1,Me=we.formatContext,we.formatContext=Te(Me,W,Q),Tt(D,M,xe),we.formatContext=Me,W){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:we.chunks.push(Dn,f(W),si)}we.lastPushedText=!1}else{switch(W){case De:case ee:case Ri:case nn:case gi:Ue(D,M,Q.children);return;case _n:Ue(D,M,Q.children);return;case G:throw Error(e(343));case On:e:{W=M.blockedBoundary,we=M.blockedSegment,xe=Q.fallback,Q=Q.children,Me=new Set;var qe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},ht=V(D,we.chunks.length,qe,we.formatContext,!1,!1);we.children.push(ht),we.lastPushedText=!1;var _t=V(D,0,null,we.formatContext,!1,!1);_t.parentFlushed=!0,M.blockedBoundary=qe,M.blockedSegment=_t;try{if(Tt(D,M,Q),_t.lastPushedText&&_t.textEmbedded&&_t.chunks.push(Le),_t.status=1,un(qe,_t),qe.pendingTasks===0)break e}catch(St){_t.status=4,qe.forceClientRender=!0,qe.errorDigest=se(D,St)}finally{M.blockedBoundary=W,M.blockedSegment=we}M=N(D,xe,W,ht,Me,M.legacyContext,M.context,M.treeContext),D.pingedTasks.push(M)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case co:if(Q=ge(D,M,W.render,Q,we),Ai!==0){W=M.treeContext,M.treeContext=Lr(W,1,0);try{Ue(D,M,Q)}finally{M.treeContext=W}}else Ue(D,M,Q);return;case k:W=W.type,Q=Ae(W,Q),Ee(D,M,W,Q,we);return;case jn:if(we=Q.children,W=W._context,Q=Q.value,xe=W._currentValue,W._currentValue=Q,Me=dt,dt=Q={parent:Me,depth:Me===null?0:Me.depth+1,context:W,parentValue:xe,value:Q},M.context=Q,Ue(D,M,we),D=dt,D===null)throw Error(e(403));Q=D.parentValue,D.context._currentValue=Q===ve?D.context._defaultValue:Q,D=dt=D.parent,M.context=D;return;case Cn:Q=Q.children,Q=Q(W._currentValue),Ue(D,M,Q);return;case F:we=W._init,W=we(W._payload),Q=Ae(W,Q),Ee(D,M,W,Q,void 0);return}throw Error(e(130,W==null?W:typeof W,""))}}function Ue(D,M,W){if(M.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case Wn:Ee(D,M,W.type,W.props,W.ref);return;case pi:throw Error(e(257));case F:var Q=W._init;W=Q(W._payload),Ue(D,M,W);return}if(ze(W)){ot(D,M,W);return}if(W===null||typeof W!="object"?Q=null:(Q=Re&&W[Re]||W["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(W))){if(W=Q.next(),!W.done){var we=[];do we.push(W.value),W=Q.next();while(!W.done);ot(D,M,we)}return}throw D=Object.prototype.toString.call(W),Error(e(31,D==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":D))}typeof W=="string"?(Q=M.blockedSegment,Q.lastPushedText=He(M.blockedSegment.chunks,W,D.responseState,Q.lastPushedText)):typeof W=="number"&&(Q=M.blockedSegment,Q.lastPushedText=He(M.blockedSegment.chunks,""+W,D.responseState,Q.lastPushedText))}function ot(D,M,W){for(var Q=W.length,we=0;we<Q;we++){var xe=M.treeContext;M.treeContext=Lr(xe,Q,we);try{Tt(D,M,W[we])}finally{M.treeContext=xe}}}function Tt(D,M,W){var Q=M.blockedSegment.formatContext,we=M.legacyContext,xe=M.context;try{return Ue(D,M,W)}catch(ht){if(fo(),typeof ht=="object"&&ht!==null&&typeof ht.then=="function"){W=ht;var Me=M.blockedSegment,qe=V(D,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(qe),Me.lastPushedText=!1,D=N(D,M.node,M.blockedBoundary,qe,M.abortSet,M.legacyContext,M.context,M.treeContext).ping,W.then(D,D),M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe)}else throw M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe),ht}}function Et(D){var M=D.blockedBoundary;D=D.blockedSegment,D.status=3,Fr(this,M,D)}function Rn(D,M,W){var Q=D.blockedBoundary;D.blockedSegment.status=3,Q===null?(M.allPendingTasks--,M.status!==2&&(M.status=2,M.destination!==null&&M.destination.close())):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,D=W===void 0?Error(e(432)):W,Q.errorDigest=M.onError(D),Q.parentFlushed&&M.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(we){return Rn(we,M,W)}),Q.fallbackAbortableTasks.clear(),M.allPendingTasks--,M.allPendingTasks===0&&(Q=M.onAllReady,Q()))}function un(D,M){if(M.chunks.length===0&&M.children.length===1&&M.children[0].boundary===null){var W=M.children[0];W.id=M.id,W.parentFlushed=!0,W.status===1&&un(D,W)}else D.completedSegments.push(M)}function Fr(D,M,W){if(M===null){if(W.parentFlushed){if(D.completedRootSegment!==null)throw Error(e(389));D.completedRootSegment=W}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=P,M=D.onShellReady,M())}else M.pendingTasks--,M.forceClientRender||(M.pendingTasks===0?(W.parentFlushed&&W.status===1&&un(M,W),M.parentFlushed&&D.completedBoundaries.push(M),M.fallbackAbortableTasks.forEach(Et,D),M.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(un(M,W),M.completedSegments.length===1&&M.parentFlushed&&D.partialBoundaries.push(M)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Nr(D){if(D.status!==2){var M=dt,W=b.current;b.current=cr;var Q=h;h=D.responseState;try{var we=D.pingedTasks,xe;for(xe=0;xe<we.length;xe++){var Me=we[xe],qe=D,ht=Me.blockedSegment;if(ht.status===0){lr(Me.context);try{Ue(qe,Me,Me.node),ht.lastPushedText&&ht.textEmbedded&&ht.chunks.push(Le),Me.abortSet.delete(Me),ht.status=1,Fr(qe,Me.blockedBoundary,ht)}catch($n){if(fo(),typeof $n=="object"&&$n!==null&&typeof $n.then=="function"){var _t=Me.ping;$n.then(_t,_t)}else{Me.abortSet.delete(Me),ht.status=4;var St=Me.blockedBoundary,vt=$n,An=se(qe,vt);if(St===null?te(qe,vt):(St.pendingTasks--,St.forceClientRender||(St.forceClientRender=!0,St.errorDigest=An,St.parentFlushed&&qe.clientRenderedBoundaries.push(St))),qe.allPendingTasks--,qe.allPendingTasks===0){var bn=qe.onAllReady;bn()}}}finally{}}}we.splice(0,xe),D.destination!==null&&go(D,D.destination)}catch($n){se(D,$n),te(D,$n)}finally{h=Q,b.current=W,W===cr&&lr(M)}}}function Lt(D,M,W){switch(W.parentFlushed=!0,W.status){case 0:var Q=W.id=D.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,D=D.responseState,i(M,on),i(M,D.placeholderPrefix),D=f(Q.toString(16)),i(M,D),o(M,Ui);case 1:W.status=2;var we=!0;Q=W.chunks;var xe=0;W=W.children;for(var Me=0;Me<W.length;Me++){for(we=W[Me];xe<we.index;xe++)i(M,Q[xe]);we=jr(D,M,we)}for(;xe<Q.length-1;xe++)i(M,Q[xe]);return xe<Q.length&&(we=o(M,Q[xe])),we;default:throw Error(e(390))}}function jr(D,M,W){var Q=W.boundary;if(Q===null)return Lt(D,M,W);if(Q.parentFlushed=!0,Q.forceClientRender)Q=Q.errorDigest,o(M,Nn),i(M,yr),Q&&(i(M,Gr),i(M,f(x(Q))),i(M,Yr)),o(M,Io),Lt(D,M,W);else if(0<Q.pendingTasks){Q.rootSegmentID=D.nextSegmentId++,0<Q.completedSegments.length&&D.partialBoundaries.push(Q);var we=D.responseState,xe=we.nextSuspenseID++;we=p(we.boundaryPrefix+xe.toString(16)),Q=Q.id=we,Hn(M,D.responseState,Q),Lt(D,M,W)}else if(Q.byteSize>D.progressiveChunkSize)Q.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Q),Hn(M,D.responseState,Q.id),Lt(D,M,W);else{if(o(M,Hi),W=Q.completedSegments,W.length!==1)throw Error(e(391));jr(D,M,W[0])}return o(M,Or)}function jt(D,M,W){return er(M,D.responseState,W.formatContext,W.id),jr(D,M,W),_r(M,W.formatContext)}function Qt(D,M,W){for(var Q=W.completedSegments,we=0;we<Q.length;we++)po(D,M,W,Q[we]);if(Q.length=0,D=D.responseState,Q=W.id,W=W.rootSegmentID,i(M,D.startInlineScript),D.sentCompleteBoundaryFunction?i(M,tr):(D.sentCompleteBoundaryFunction=!0,i(M,Ar)),Q===null)throw Error(e(395));return W=f(W.toString(16)),i(M,Q),i(M,Yi),i(M,D.segmentPrefix),i(M,W),o(M,_i)}function po(D,M,W,Q){if(Q.status===2)return!0;var we=Q.id;if(we===-1){if((Q.id=W.rootSegmentID)===-1)throw Error(e(392));return jt(D,M,Q)}return jt(D,M,Q),D=D.responseState,i(M,D.startInlineScript),D.sentCompleteSegmentFunction?i(M,fi):(D.sentCompleteSegmentFunction=!0,i(M,Rr)),i(M,D.segmentPrefix),we=f(we.toString(16)),i(M,we),i(M,Kr),i(M,D.placeholderPrefix),i(M,we),o(M,wr)}function go(D,M){n=new Uint8Array(512),r=0;try{var W=D.completedRootSegment;if(W!==null&&D.pendingRootTasks===0){jr(D,M,W),D.completedRootSegment=null;var Q=D.responseState.bootstrapChunks;for(W=0;W<Q.length-1;W++)i(M,Q[W]);W<Q.length&&o(M,Q[W])}var we=D.clientRenderedBoundaries,xe;for(xe=0;xe<we.length;xe++){var Me=we[xe];Q=M;var qe=D.responseState,ht=Me.id,_t=Me.errorDigest,St=Me.errorMessage,vt=Me.errorComponentStack;if(i(Q,qe.startInlineScript),qe.sentClientRenderFunction?i(Q,yn):(qe.sentClientRenderFunction=!0,i(Q,ar)),ht===null)throw Error(e(395));i(Q,ht),i(Q,Ir),(_t||St||vt)&&(i(Q,di),i(Q,f(xr(_t||"")))),(St||vt)&&(i(Q,di),i(Q,f(xr(St||"")))),vt&&(i(Q,di),i(Q,f(xr(vt)))),o(Q,Mr)}we.splice(0,xe);var An=D.completedBoundaries;for(xe=0;xe<An.length;xe++)Qt(D,M,An[xe]);An.splice(0,xe),a(M),n=new Uint8Array(512),r=0;var bn=D.partialBoundaries;for(xe=0;xe<bn.length;xe++){var $n=bn[xe];e:{we=D,Me=M;var as=$n.completedSegments;for(qe=0;qe<as.length;qe++)if(!po(we,Me,$n,as[qe])){qe++,as.splice(0,qe);var fa=!1;break e}as.splice(0,qe),fa=!0}if(!fa){D.destination=null,xe++,bn.splice(0,xe);return}}bn.splice(0,xe);var mo=D.completedBoundaries;for(xe=0;xe<mo.length;xe++)Qt(D,M,mo[xe]);mo.splice(0,xe)}finally{a(M),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&M.close()}}function Tr(D,M){try{var W=D.abortableTasks;W.forEach(function(Q){return Rn(Q,D,M)}),W.clear(),D.destination!==null&&go(D,D.destination)}catch(Q){se(D,Q),te(D,Q)}}return Lh.renderToReadableStream=function(D,M){return new Promise(function(W,Q){var we,xe,Me=new Promise(function(St,vt){xe=St,we=vt}),qe=L(D,Oe(M?M.identifierPrefix:void 0,M?M.nonce:void 0,M?M.bootstrapScriptContent:void 0,M?M.bootstrapScripts:void 0,M?M.bootstrapModules:void 0),me(M?M.namespaceURI:void 0),M?M.progressiveChunkSize:void 0,M?M.onError:void 0,xe,function(){var St=new ReadableStream({type:"bytes",pull:function(vt){if(qe.status===1)qe.status=2,y(vt,qe.fatalError);else if(qe.status!==2&&qe.destination===null){qe.destination=vt;try{go(qe,vt)}catch(An){se(qe,An),te(qe,An)}}},cancel:function(){Tr(qe)}},{highWaterMark:0});St.allReady=Me,W(St)},function(St){Me.catch(function(){}),Q(St)},we);if(M&&M.signal){var ht=M.signal,_t=function(){Tr(qe,ht.reason),ht.removeEventListener("abort",_t)};ht.addEventListener("abort",_t)}Nr(qe)})},Lh.version="18.3.1",Lh}var cc={};/**
57
+ `&&D.push(Dr),xe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(fn(M));for(var bn in W)if(g.call(W,bn)&&(xe=W[bn],xe!=null))switch(bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,M));default:At(D,Q,bn,xe)}return D.push(Vn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Vi(D,W,M,Q);case"html":return we.insertionMode===0&&D.push(dn),Vi(D,W,M,Q);default:if(M.indexOf("-")===-1&&typeof W.is!="string")return Vi(D,W,M,Q);D.push(fn(M)),Me=xe=null;for(_t in W)if(g.call(W,_t)&&(qe=W[_t],qe!=null))switch(_t){case"children":xe=qe;break;case"dangerouslySetInnerHTML":Me=qe;break;case"style":ct(D,Q,qe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(_t)&&typeof qe!="function"&&typeof qe!="symbol"&&D.push(pt,f(_t),ft,f(x(qe)),yt)}return D.push(Mt),vr(D,Me,xe),xe}}var Dn=p("</"),si=p(">"),on=p('<template id="'),Ui=p('"></template>'),Hi=p("<!--$-->"),Wi=p('<!--$?--><template id="'),Pr=p('"></template>'),Nn=p("<!--$!-->"),Or=p("<!--/$-->"),yr=p("<template"),Yr=p('"'),Gr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Io=p("></template>");function Hn(D,M,W){if(i(D,Wi),W===null)throw Error(e(395));return i(D,W),o(D,Pr)}var qr=p('<div hidden id="'),Qn=p('">'),Wt=p("</div>"),ai=p('<svg aria-hidden="true" style="display:none" id="'),zi=p('">'),Pn=p("</svg>"),hn=p('<math aria-hidden="true" style="display:none" id="'),li=p('">'),ui=p("</math>"),Tn=p('<table hidden id="'),ao=p('">'),br=p("</table>"),ci=p('<table hidden><tbody id="'),an=p('">'),Pi=p("</tbody></table>"),Ls=p('<table hidden><tr id="'),Fs=p('">'),Xr=p("</tr></table>"),lo=p('<table hidden><colgroup id="'),uo=p('">'),Oi=p("</colgroup></table>");function er(D,M,W,Q){switch(W.insertionMode){case 0:case 1:return i(D,qr),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Qn);case 2:return i(D,ai),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,zi);case 3:return i(D,hn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,li);case 4:return i(D,Tn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,ao);case 5:return i(D,ci),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,an);case 6:return i(D,Ls),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Fs);case 7:return i(D,lo),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,uo);default:throw Error(e(397))}}function _r(D,M){switch(M.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,Pn);case 3:return o(D,ui);case 4:return o(D,br);case 5:return o(D,Pi);case 6:return o(D,Xr);case 7:return o(D,Oi);default:throw Error(e(397))}}var Rr=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),fi=p('$RS("'),Kr=p('","'),wr=p('")<\/script>'),Ar=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),tr=p('$RC("'),Yi=p('","'),_i=p('")<\/script>'),ar=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yn=p('$RX("'),Ir=p('"'),Mr=p(")<\/script>"),di=p(","),hi=/[<\u2028\u2029]/g;function xr(D){return JSON.stringify(D).replace(hi,function(M){switch(M){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Zr=Object.assign,Wn=Symbol.for("react.element"),pi=Symbol.for("react.portal"),gi=Symbol.for("react.fragment"),Ri=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),co=Symbol.for("react.forward_ref"),On=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),De=Symbol.for("react.legacy_hidden"),ve=Symbol.for("react.default_value"),Re=Symbol.iterator;function Ke(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case gi:return"Fragment";case pi:return"Portal";case nn:return"Profiler";case Ri:return"StrictMode";case On:return"Suspense";case _n:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Cn:return(D.displayName||"Context")+".Consumer";case jn:return(D._context.displayName||"Context")+".Provider";case co:var M=D.render;return D=D.displayName,D||(D=M.displayName||M.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return M=D.displayName||null,M!==null?M:Ke(D.type)||"Memo";case F:M=D._payload,D=D._init;try{return Ke(D(M))}catch{}}return null}var gt={};function mt(D,M){if(D=D.contextTypes,!D)return gt;var W={},Q;for(Q in D)W[Q]=M[Q];return W}var dt=null;function Ft(D,M){if(D!==M){D.context._currentValue=D.parentValue,D=D.parent;var W=M.parent;if(D===null){if(W!==null)throw Error(e(401))}else{if(W===null)throw Error(e(401));Ft(D,W)}M.context._currentValue=M.value}}function Bn(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&Bn(D)}function zn(D){var M=D.parent;M!==null&&zn(M),D.context._currentValue=D.value}function En(D,M){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(e(402));D.depth===M.depth?Ft(D,M):En(D,M)}function Jr(D,M){var W=M.parent;if(W===null)throw Error(e(402));D.depth===W.depth?Ft(D,W):Jr(D,W),M.context._currentValue=M.value}function lr(D){var M=dt;M!==D&&(M===null?zn(D):D===null?Bn(M):M.depth===D.depth?Ft(M,D):M.depth>D.depth?En(M,D):Jr(M,D),dt=D)}var Gi={isMounted:function(){return!1},enqueueSetState:function(D,M){D=D._reactInternals,D.queue!==null&&D.queue.push(M)},enqueueReplaceState:function(D,M){D=D._reactInternals,D.replace=!0,D.queue=[M]},enqueueForceUpdate:function(){}};function mi(D,M,W,Q){var we=D.state!==void 0?D.state:null;D.updater=Gi,D.props=W,D.state=we;var xe={queue:[],replace:!1};D._reactInternals=xe;var Me=M.contextType;if(D.context=typeof Me=="object"&&Me!==null?Me._currentValue:Q,Me=M.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(W,we),we=Me==null?we:Zr({},we,Me),D.state=we),typeof M.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(M=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),M!==D.state&&Gi.enqueueReplaceState(D,D.state,null),xe.queue!==null&&0<xe.queue.length)if(M=xe.queue,Me=xe.replace,xe.queue=null,xe.replace=!1,Me&&M.length===1)D.state=M[0];else{for(xe=Me?M[0]:D.state,we=!0,Me=Me?1:0;Me<M.length;Me++){var qe=M[Me];qe=typeof qe=="function"?qe.call(D,xe,W,Q):qe,qe!=null&&(we?(we=!1,xe=Zr({},xe,qe)):Zr(xe,qe))}D.state=xe}else xe.queue=null}var qi={id:1,overflow:""};function Lr(D,M,W){var Q=D.id;D=D.overflow;var we=32-Xi(Q)-1;Q&=~(1<<we),W+=1;var xe=32-Xi(M)+we;if(30<xe){var Me=we-we%5;return xe=(Q&(1<<Me)-1).toString(32),Q>>=Me,we-=Me,{id:1<<32-Xi(M)+we|W<<we|Q,overflow:xe+D}}return{id:1<<xe|W<<we|Q,overflow:D}}var Xi=Math.clz32?Math.clz32:os,Wa=Math.log,Ns=Math.LN2;function os(D){return D>>>=0,D===0?32:31-(Wa(D)/Ns|0)|0}function Sr(D,M){return D===M&&(D!==0||1/D===1/M)||D!==D&&M!==M}var za=typeof Object.is=="function"?Object.is:Sr,vi=null,js=null,ss=null,rn=null,Gt=!1,Kt=!1,Ai=0,Qr=null,Mo=0;function yi(){if(vi===null)throw Error(e(321));return vi}function ur(){if(0<Mo)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Bs(){return rn===null?ss===null?(Gt=!1,ss=rn=ur()):(Gt=!0,rn=ss):rn.next===null?(Gt=!1,rn=rn.next=ur()):(Gt=!0,rn=rn.next),rn}function fo(){js=vi=null,Kt=!1,ss=null,Mo=0,rn=Qr=null}function ua(D,M){return typeof M=="function"?M(D):M}function ln(D,M,W){if(vi=yi(),rn=Bs(),Gt){var Q=rn.queue;if(M=Q.dispatch,Qr!==null&&(W=Qr.get(Q),W!==void 0)){Qr.delete(Q),Q=rn.memoizedState;do Q=D(Q,W.action),W=W.next;while(W!==null);return rn.memoizedState=Q,[Q,M]}return[rn.memoizedState,M]}return D=D===ua?typeof M=="function"?M():M:W!==void 0?W(M):M,rn.memoizedState=D,D=rn.queue={last:null,dispatch:null},D=D.dispatch=bi.bind(null,vi,D),[rn.memoizedState,D]}function Lo(D,M){if(vi=yi(),rn=Bs(),M=M===void 0?null:M,rn!==null){var W=rn.memoizedState;if(W!==null&&M!==null){var Q=W[1];e:if(Q===null)Q=!1;else{for(var we=0;we<Q.length&&we<M.length;we++)if(!za(M[we],Q[we])){Q=!1;break e}Q=!0}if(Q)return W[0]}}return D=D(),rn.memoizedState=[D,M],D}function bi(D,M,W){if(25<=Mo)throw Error(e(301));if(D===vi)if(Kt=!0,D={action:W,next:null},Qr===null&&(Qr=new Map),W=Qr.get(M),W===void 0)Qr.set(M,D);else{for(M=W;M.next!==null;)M=M.next;M.next=D}}function ca(){throw Error(e(394))}function ho(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return yi(),D._currentValue},useMemo:Lo,useReducer:ln,useRef:function(D){vi=yi(),rn=Bs();var M=rn.memoizedState;return M===null?(D={current:D},rn.memoizedState=D):M},useState:function(D){return ln(ua,D)},useInsertionEffect:ho,useLayoutEffect:function(){},useCallback:function(D,M){return Lo(function(){return D},M)},useImperativeHandle:ho,useEffect:ho,useDebugValue:ho,useDeferredValue:function(D){return yi(),D},useTransition:function(){return yi(),[!1,ca]},useId:function(){var D=js.treeContext,M=D.overflow;D=D.id,D=(D&~(1<<32-Xi(D)-1)).toString(32)+M;var W=h;if(W===null)throw Error(e(404));return M=Ai++,D=":"+W.idPrefix+"R"+D,0<M&&(D+="H"+M.toString(32)),D+":"},useMutableSource:function(D,M){return yi(),M(D._source)},useSyncExternalStore:function(D,M,W){if(W===void 0)throw Error(e(407));return W()}},h=null,b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(D){return console.error(D),null}function P(){}function L(D,M,W,Q,we,xe,Me,qe,ht){var _t=[],St=new Set;return M={destination:null,responseState:M,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:_t,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:we===void 0?C:we,onAllReady:xe===void 0?P:xe,onShellReady:Me===void 0?P:Me,onShellError:qe===void 0?P:qe,onFatalError:ht===void 0?P:ht},W=V(M,0,null,W,!1,!1),W.parentFlushed=!0,D=N(M,D,null,W,St,gt,null,qi),_t.push(D),M}function N(D,M,W,Q,we,xe,Me,qe){D.allPendingTasks++,W===null?D.pendingRootTasks++:W.pendingTasks++;var ht={node:M,ping:function(){var _t=D.pingedTasks;_t.push(ht),_t.length===1&&Nr(D)},blockedBoundary:W,blockedSegment:Q,abortSet:we,legacyContext:xe,context:Me,treeContext:qe};return we.add(ht),ht}function V(D,M,W,Q,we,xe){return{status:0,id:-1,index:M,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:W,lastPushedText:we,textEmbedded:xe}}function se(D,M){if(D=D.onError(M),D!=null&&typeof D!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof D+'" instead');return D}function te(D,M){var W=D.onShellError;W(M),W=D.onFatalError,W(M),D.destination!==null?(D.status=2,y(D.destination,M)):(D.status=1,D.fatalError=M)}function ge(D,M,W,Q,we){for(vi={},js=M,Ai=0,D=W(Q,we);Kt;)Kt=!1,Ai=0,Mo+=1,rn=null,D=W(Q,we);return fo(),D}function _e(D,M,W,Q){var we=W.render(),xe=Q.childContextTypes;if(xe!=null){var Me=M.legacyContext;if(typeof W.getChildContext!="function")Q=Me;else{W=W.getChildContext();for(var qe in W)if(!(qe in xe))throw Error(e(108,Ke(Q)||"Unknown",qe));Q=Zr({},Me,W)}M.legacyContext=Q,Ue(D,M,we),M.legacyContext=Me}else Ue(D,M,we)}function Ae(D,M){if(D&&D.defaultProps){M=Zr({},M),D=D.defaultProps;for(var W in D)M[W]===void 0&&(M[W]=D[W]);return M}return M}function Ee(D,M,W,Q,we){if(typeof W=="function")if(W.prototype&&W.prototype.isReactComponent){we=mt(W,M.legacyContext);var xe=W.contextType;xe=new W(Q,typeof xe=="object"&&xe!==null?xe._currentValue:we),mi(xe,W,Q,we),_e(D,M,xe,W)}else{xe=mt(W,M.legacyContext),we=ge(D,M,W,Q,xe);var Me=Ai!==0;if(typeof we=="object"&&we!==null&&typeof we.render=="function"&&we.$$typeof===void 0)mi(we,W,Q,xe),_e(D,M,we,W);else if(Me){Q=M.treeContext,M.treeContext=Lr(Q,1,0);try{Ue(D,M,we)}finally{M.treeContext=Q}}else Ue(D,M,we)}else if(typeof W=="string"){switch(we=M.blockedSegment,xe=ut(we.chunks,W,Q,D.responseState,we.formatContext),we.lastPushedText=!1,Me=we.formatContext,we.formatContext=Te(Me,W,Q),Tt(D,M,xe),we.formatContext=Me,W){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:we.chunks.push(Dn,f(W),si)}we.lastPushedText=!1}else{switch(W){case De:case ee:case Ri:case nn:case gi:Ue(D,M,Q.children);return;case _n:Ue(D,M,Q.children);return;case G:throw Error(e(343));case On:e:{W=M.blockedBoundary,we=M.blockedSegment,xe=Q.fallback,Q=Q.children,Me=new Set;var qe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},ht=V(D,we.chunks.length,qe,we.formatContext,!1,!1);we.children.push(ht),we.lastPushedText=!1;var _t=V(D,0,null,we.formatContext,!1,!1);_t.parentFlushed=!0,M.blockedBoundary=qe,M.blockedSegment=_t;try{if(Tt(D,M,Q),_t.lastPushedText&&_t.textEmbedded&&_t.chunks.push(Le),_t.status=1,un(qe,_t),qe.pendingTasks===0)break e}catch(St){_t.status=4,qe.forceClientRender=!0,qe.errorDigest=se(D,St)}finally{M.blockedBoundary=W,M.blockedSegment=we}M=N(D,xe,W,ht,Me,M.legacyContext,M.context,M.treeContext),D.pingedTasks.push(M)}return}if(typeof W=="object"&&W!==null)switch(W.$$typeof){case co:if(Q=ge(D,M,W.render,Q,we),Ai!==0){W=M.treeContext,M.treeContext=Lr(W,1,0);try{Ue(D,M,Q)}finally{M.treeContext=W}}else Ue(D,M,Q);return;case k:W=W.type,Q=Ae(W,Q),Ee(D,M,W,Q,we);return;case jn:if(we=Q.children,W=W._context,Q=Q.value,xe=W._currentValue,W._currentValue=Q,Me=dt,dt=Q={parent:Me,depth:Me===null?0:Me.depth+1,context:W,parentValue:xe,value:Q},M.context=Q,Ue(D,M,we),D=dt,D===null)throw Error(e(403));Q=D.parentValue,D.context._currentValue=Q===ve?D.context._defaultValue:Q,D=dt=D.parent,M.context=D;return;case Cn:Q=Q.children,Q=Q(W._currentValue),Ue(D,M,Q);return;case F:we=W._init,W=we(W._payload),Q=Ae(W,Q),Ee(D,M,W,Q,void 0);return}throw Error(e(130,W==null?W:typeof W,""))}}function Ue(D,M,W){if(M.node=W,typeof W=="object"&&W!==null){switch(W.$$typeof){case Wn:Ee(D,M,W.type,W.props,W.ref);return;case pi:throw Error(e(257));case F:var Q=W._init;W=Q(W._payload),Ue(D,M,W);return}if(ze(W)){ot(D,M,W);return}if(W===null||typeof W!="object"?Q=null:(Q=Re&&W[Re]||W["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(W))){if(W=Q.next(),!W.done){var we=[];do we.push(W.value),W=Q.next();while(!W.done);ot(D,M,we)}return}throw D=Object.prototype.toString.call(W),Error(e(31,D==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":D))}typeof W=="string"?(Q=M.blockedSegment,Q.lastPushedText=He(M.blockedSegment.chunks,W,D.responseState,Q.lastPushedText)):typeof W=="number"&&(Q=M.blockedSegment,Q.lastPushedText=He(M.blockedSegment.chunks,""+W,D.responseState,Q.lastPushedText))}function ot(D,M,W){for(var Q=W.length,we=0;we<Q;we++){var xe=M.treeContext;M.treeContext=Lr(xe,Q,we);try{Tt(D,M,W[we])}finally{M.treeContext=xe}}}function Tt(D,M,W){var Q=M.blockedSegment.formatContext,we=M.legacyContext,xe=M.context;try{return Ue(D,M,W)}catch(ht){if(fo(),typeof ht=="object"&&ht!==null&&typeof ht.then=="function"){W=ht;var Me=M.blockedSegment,qe=V(D,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(qe),Me.lastPushedText=!1,D=N(D,M.node,M.blockedBoundary,qe,M.abortSet,M.legacyContext,M.context,M.treeContext).ping,W.then(D,D),M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe)}else throw M.blockedSegment.formatContext=Q,M.legacyContext=we,M.context=xe,lr(xe),ht}}function Et(D){var M=D.blockedBoundary;D=D.blockedSegment,D.status=3,Fr(this,M,D)}function Rn(D,M,W){var Q=D.blockedBoundary;D.blockedSegment.status=3,Q===null?(M.allPendingTasks--,M.status!==2&&(M.status=2,M.destination!==null&&M.destination.close())):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,D=W===void 0?Error(e(432)):W,Q.errorDigest=M.onError(D),Q.parentFlushed&&M.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(we){return Rn(we,M,W)}),Q.fallbackAbortableTasks.clear(),M.allPendingTasks--,M.allPendingTasks===0&&(Q=M.onAllReady,Q()))}function un(D,M){if(M.chunks.length===0&&M.children.length===1&&M.children[0].boundary===null){var W=M.children[0];W.id=M.id,W.parentFlushed=!0,W.status===1&&un(D,W)}else D.completedSegments.push(M)}function Fr(D,M,W){if(M===null){if(W.parentFlushed){if(D.completedRootSegment!==null)throw Error(e(389));D.completedRootSegment=W}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=P,M=D.onShellReady,M())}else M.pendingTasks--,M.forceClientRender||(M.pendingTasks===0?(W.parentFlushed&&W.status===1&&un(M,W),M.parentFlushed&&D.completedBoundaries.push(M),M.fallbackAbortableTasks.forEach(Et,D),M.fallbackAbortableTasks.clear()):W.parentFlushed&&W.status===1&&(un(M,W),M.completedSegments.length===1&&M.parentFlushed&&D.partialBoundaries.push(M)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Nr(D){if(D.status!==2){var M=dt,W=b.current;b.current=cr;var Q=h;h=D.responseState;try{var we=D.pingedTasks,xe;for(xe=0;xe<we.length;xe++){var Me=we[xe],qe=D,ht=Me.blockedSegment;if(ht.status===0){lr(Me.context);try{Ue(qe,Me,Me.node),ht.lastPushedText&&ht.textEmbedded&&ht.chunks.push(Le),Me.abortSet.delete(Me),ht.status=1,Fr(qe,Me.blockedBoundary,ht)}catch($n){if(fo(),typeof $n=="object"&&$n!==null&&typeof $n.then=="function"){var _t=Me.ping;$n.then(_t,_t)}else{Me.abortSet.delete(Me),ht.status=4;var St=Me.blockedBoundary,vt=$n,An=se(qe,vt);if(St===null?te(qe,vt):(St.pendingTasks--,St.forceClientRender||(St.forceClientRender=!0,St.errorDigest=An,St.parentFlushed&&qe.clientRenderedBoundaries.push(St))),qe.allPendingTasks--,qe.allPendingTasks===0){var bn=qe.onAllReady;bn()}}}finally{}}}we.splice(0,xe),D.destination!==null&&go(D,D.destination)}catch($n){se(D,$n),te(D,$n)}finally{h=Q,b.current=W,W===cr&&lr(M)}}}function Lt(D,M,W){switch(W.parentFlushed=!0,W.status){case 0:var Q=W.id=D.nextSegmentId++;return W.lastPushedText=!1,W.textEmbedded=!1,D=D.responseState,i(M,on),i(M,D.placeholderPrefix),D=f(Q.toString(16)),i(M,D),o(M,Ui);case 1:W.status=2;var we=!0;Q=W.chunks;var xe=0;W=W.children;for(var Me=0;Me<W.length;Me++){for(we=W[Me];xe<we.index;xe++)i(M,Q[xe]);we=jr(D,M,we)}for(;xe<Q.length-1;xe++)i(M,Q[xe]);return xe<Q.length&&(we=o(M,Q[xe])),we;default:throw Error(e(390))}}function jr(D,M,W){var Q=W.boundary;if(Q===null)return Lt(D,M,W);if(Q.parentFlushed=!0,Q.forceClientRender)Q=Q.errorDigest,o(M,Nn),i(M,yr),Q&&(i(M,Gr),i(M,f(x(Q))),i(M,Yr)),o(M,Io),Lt(D,M,W);else if(0<Q.pendingTasks){Q.rootSegmentID=D.nextSegmentId++,0<Q.completedSegments.length&&D.partialBoundaries.push(Q);var we=D.responseState,xe=we.nextSuspenseID++;we=p(we.boundaryPrefix+xe.toString(16)),Q=Q.id=we,Hn(M,D.responseState,Q),Lt(D,M,W)}else if(Q.byteSize>D.progressiveChunkSize)Q.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Q),Hn(M,D.responseState,Q.id),Lt(D,M,W);else{if(o(M,Hi),W=Q.completedSegments,W.length!==1)throw Error(e(391));jr(D,M,W[0])}return o(M,Or)}function jt(D,M,W){return er(M,D.responseState,W.formatContext,W.id),jr(D,M,W),_r(M,W.formatContext)}function Qt(D,M,W){for(var Q=W.completedSegments,we=0;we<Q.length;we++)po(D,M,W,Q[we]);if(Q.length=0,D=D.responseState,Q=W.id,W=W.rootSegmentID,i(M,D.startInlineScript),D.sentCompleteBoundaryFunction?i(M,tr):(D.sentCompleteBoundaryFunction=!0,i(M,Ar)),Q===null)throw Error(e(395));return W=f(W.toString(16)),i(M,Q),i(M,Yi),i(M,D.segmentPrefix),i(M,W),o(M,_i)}function po(D,M,W,Q){if(Q.status===2)return!0;var we=Q.id;if(we===-1){if((Q.id=W.rootSegmentID)===-1)throw Error(e(392));return jt(D,M,Q)}return jt(D,M,Q),D=D.responseState,i(M,D.startInlineScript),D.sentCompleteSegmentFunction?i(M,fi):(D.sentCompleteSegmentFunction=!0,i(M,Rr)),i(M,D.segmentPrefix),we=f(we.toString(16)),i(M,we),i(M,Kr),i(M,D.placeholderPrefix),i(M,we),o(M,wr)}function go(D,M){n=new Uint8Array(512),r=0;try{var W=D.completedRootSegment;if(W!==null&&D.pendingRootTasks===0){jr(D,M,W),D.completedRootSegment=null;var Q=D.responseState.bootstrapChunks;for(W=0;W<Q.length-1;W++)i(M,Q[W]);W<Q.length&&o(M,Q[W])}var we=D.clientRenderedBoundaries,xe;for(xe=0;xe<we.length;xe++){var Me=we[xe];Q=M;var qe=D.responseState,ht=Me.id,_t=Me.errorDigest,St=Me.errorMessage,vt=Me.errorComponentStack;if(i(Q,qe.startInlineScript),qe.sentClientRenderFunction?i(Q,yn):(qe.sentClientRenderFunction=!0,i(Q,ar)),ht===null)throw Error(e(395));i(Q,ht),i(Q,Ir),(_t||St||vt)&&(i(Q,di),i(Q,f(xr(_t||"")))),(St||vt)&&(i(Q,di),i(Q,f(xr(St||"")))),vt&&(i(Q,di),i(Q,f(xr(vt)))),o(Q,Mr)}we.splice(0,xe);var An=D.completedBoundaries;for(xe=0;xe<An.length;xe++)Qt(D,M,An[xe]);An.splice(0,xe),a(M),n=new Uint8Array(512),r=0;var bn=D.partialBoundaries;for(xe=0;xe<bn.length;xe++){var $n=bn[xe];e:{we=D,Me=M;var as=$n.completedSegments;for(qe=0;qe<as.length;qe++)if(!po(we,Me,$n,as[qe])){qe++,as.splice(0,qe);var fa=!1;break e}as.splice(0,qe),fa=!0}if(!fa){D.destination=null,xe++,bn.splice(0,xe);return}}bn.splice(0,xe);var mo=D.completedBoundaries;for(xe=0;xe<mo.length;xe++)Qt(D,M,mo[xe]);mo.splice(0,xe)}finally{a(M),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&M.close()}}function Tr(D,M){try{var W=D.abortableTasks;W.forEach(function(Q){return Rn(Q,D,M)}),W.clear(),D.destination!==null&&go(D,D.destination)}catch(Q){se(D,Q),te(D,Q)}}return Fh.renderToReadableStream=function(D,M){return new Promise(function(W,Q){var we,xe,Me=new Promise(function(St,vt){xe=St,we=vt}),qe=L(D,Oe(M?M.identifierPrefix:void 0,M?M.nonce:void 0,M?M.bootstrapScriptContent:void 0,M?M.bootstrapScripts:void 0,M?M.bootstrapModules:void 0),me(M?M.namespaceURI:void 0),M?M.progressiveChunkSize:void 0,M?M.onError:void 0,xe,function(){var St=new ReadableStream({type:"bytes",pull:function(vt){if(qe.status===1)qe.status=2,y(vt,qe.fatalError);else if(qe.status!==2&&qe.destination===null){qe.destination=vt;try{go(qe,vt)}catch(An){se(qe,An),te(qe,An)}}},cancel:function(){Tr(qe)}},{highWaterMark:0});St.allReady=Me,W(St)},function(St){Me.catch(function(){}),Q(St)},we);if(M&&M.signal){var ht=M.signal,_t=function(){Tr(qe,ht.reason),ht.removeEventListener("abort",_t)};ht.addEventListener("abort",_t)}Nr(qe)})},Fh.version="18.3.1",Fh}var cc={};/**
58
58
  * @license React
59
59
  * react-dom-server-legacy.browser.development.js
60
60
  *
@@ -93,7 +93,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
93
93
  Previous: %s
94
94
  Incoming: %s`,xi,"["+l.join(", ")+"]","["+d.join(", ")+"]");for(var m=0;m<d.length&&m<l.length;m++)if(!qf(l[m],d[m]))return!1;return!0}function Vr(){if(gs>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Zi(){return qt===null?$l===null?(wi=!1,$l=qt=Vr()):(wi=!0,qt=$l):qt.next===null?(wi=!1,qt=qt.next=Vr()):(wi=!0,qt=qt.next),qt}function Ys(l,d){$r=d,Bu=l,ni=!1,zs=0}function $c(l,d,m,S){for(;Ta;)Ta=!1,zs=0,gs+=1,qt=null,m=l(d,S);return Si(),m}function Vu(){var l=zs!==0;return l}function Si(){ni=!1,$r=null,Bu=null,Ta=!1,$l=null,gs=0,Zt=null,qt=null}function Uu(l){return ni&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),hs(l)}function Gs(l){return xi="useContext",To(),hs(l)}function Ur(l,d){return typeof d=="function"?d(l):d}function Hu(l){return xi="useState",Wu(Ur,l)}function Wu(l,d,m){if(l!==Ur&&(xi="useReducer"),$r=To(),qt=Zi(),wi){var S=qt.queue,_=S.dispatch;if(Zt!==null){var B=Zt.get(S);if(B!==void 0){Zt.delete(S);var Y=qt.memoizedState,re=B;do{var Se=re.action;ni=!0,Y=l(Y,Se),ni=!1,re=re.next}while(re!==null);return qt.memoizedState=Y,[Y,_]}}return[qt.memoizedState,_]}else{ni=!0;var $e;l===Ur?$e=typeof d=="function"?d():d:$e=m!==void 0?m(d):d,ni=!1,qt.memoizedState=$e;var Xe=qt.queue={last:null,dispatch:null},rt=Xe.dispatch=Yu.bind(null,$r,Xe);return[qt.memoizedState,rt]}}function zu(l,d){$r=To(),qt=Zi();var m=d===void 0?null:d;if(qt!==null){var S=qt.memoizedState;if(S!==null&&m!==null){var _=S[1];if($u(m,_))return S[0]}}ni=!0;var B=l();return ni=!1,qt.memoizedState=[B,m],B}function qs(l){$r=To(),qt=Zi();var d=qt.memoizedState;if(d===null){var m={current:l};return Object.seal(m),qt.memoizedState=m,m}else return d}function ms(l,d){xi="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Yu(l,d,m){if(gs>=nl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===$r){Ta=!0;var S={action:m,next:null};Zt===null&&(Zt=new Map);var _=Zt.get(d);if(_===void 0)Zt.set(d,S);else{for(var B=_;B.next!==null;)B=B.next;B.next=S}}}function Vc(l,d){return zu(function(){return l},d)}function Vl(l,d,m){return To(),d(l._source)}function Xf(l,d,m){if(m===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return m()}function Uc(l){return To(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Gu(){return To(),[!1,fr]}function Hc(){var l=Bu,d=Wf(l.treeContext),m=Ca;if(m===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var S=zs++;return yn(m,d,S)}function Ti(){}var Ul={readContext:Uu,useContext:Gs,useMemo:zu,useReducer:Wu,useRef:qs,useState:Hu,useInsertionEffect:Ti,useLayoutEffect:ms,useCallback:Vc,useImperativeHandle:Ti,useEffect:Ti,useDebugValue:Ti,useDeferredValue:Uc,useTransition:Gu,useId:Hc,useMutableSource:Vl,useSyncExternalStore:Xf},Ca=null;function vs(l){Ca=l}function rl(l){try{var d="",m=l;do{switch(m.tag){case 0:d+=ma(m.type,null,null);break;case 1:d+=us(m.type,null,null);break;case 2:d+=Bo(m.type,null,null);break}m=m.parent}while(m);return d}catch(S){return`
95
95
  Error generating stack: `+S.message+`
96
- `+S.stack}}var rr=n.ReactCurrentDispatcher,Xs=n.ReactDebugCurrentFrame,Hl=0,Ea=1,Wl=2,ka=3,zl=4,Co=0,Yl=1,Ks=2,Wc=12800;function il(l){return console.error(l),null}function Da(){}function Pa(l,d,m,S,_,B,Y,re,Se){var $e=[],Xe=new Set,rt={destination:null,responseState:d,progressiveChunkSize:S===void 0?Wc:S,status:Co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Xe,pingedTasks:$e,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:_===void 0?il:_,onAllReady:Da,onShellReady:Y===void 0?Da:Y,onShellError:Da,onFatalError:Da},xt=Gl(rt,0,null,m,!1,!1);xt.parentFlushed=!0;var en=Zs(rt,l,null,xt,Xe,ba,Gn,Hf);return $e.push(en),rt}function qu(l,d){var m=l.pingedTasks;m.push(d),m.length===1&&a(function(){return tu(l)})}function zc(l,d){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Zs(l,d,m,S,_,B,Y,re){l.allPendingTasks++,m===null?l.pendingRootTasks++:m.pendingTasks++;var Se={node:d,ping:function(){return qu(l,Se)},blockedBoundary:m,blockedSegment:S,abortSet:_,legacyContext:B,context:Y,treeContext:re};return Se.componentStack=null,_.add(Se),Se}function Gl(l,d,m,S,_,B){return{status:Hl,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:S,boundary:m,lastPushedText:_,textEmbedded:B}}var Wo=null;function ql(){return Wo===null||Wo.componentStack===null?"":rl(Wo.componentStack)}function zo(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function ol(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Ji(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Qi(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Eo=null;function sl(l,d){{var m;typeof d=="string"?m=d:d&&typeof d.message=="string"?m=d.message:m=String(d);var S=Eo||ql();Eo=null,l.errorMessage=m,l.errorComponentStack=S}}function ys(l,d){var m=l.onError(d);if(m!=null&&typeof m!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof m+'" instead');return m}function eo(l,d){var m=l.onShellError;m(d);var S=l.onFatalError;S(d),l.destination!==null?(l.status=Ks,A(l.destination,d)):(l.status=Yl,l.fatalError=d)}function Oa(l,d,m){zo(d,"Suspense");var S=d.blockedBoundary,_=d.blockedSegment,B=m.fallback,Y=m.children,re=new Set,Se=zc(l,re),$e=_.chunks.length,Xe=Gl(l,$e,Se,_.formatContext,!1,!1);_.children.push(Xe),_.lastPushedText=!1;var rt=Gl(l,0,null,_.formatContext,!1,!1);rt.parentFlushed=!0,d.blockedBoundary=Se,d.blockedSegment=rt;try{if(dr(l,d,Y),vo(rt.chunks,l.responseState,rt.lastPushedText,rt.textEmbedded),rt.status=Ea,Ci(Se,rt),Se.pendingTasks===0){Qi(d);return}}catch(en){rt.status=zl,Se.forceClientRender=!0,Se.errorDigest=ys(l,en),sl(Se,en)}finally{d.blockedBoundary=S,d.blockedSegment=_}var xt=Zs(l,B,S,Xe,re,d.legacyContext,d.context,d.treeContext);xt.componentStack=d.componentStack,l.pingedTasks.push(xt),Qi(d)}function Xl(l,d,m,S){zo(d,m);var _=d.blockedSegment,B=vi(_.chunks,m,S,l.responseState,_.formatContext);_.lastPushedText=!1;var Y=_.formatContext;_.formatContext=Yi(Y,m,S),dr(l,d,B),_.formatContext=Y,rn(_.chunks,m),_.lastPushedText=!1,Qi(d)}function al(l){return l.prototype&&l.prototype.isReactComponent}function _a(l,d,m,S,_){var B={};Ys(d,B);var Y=m(S,_);return $c(m,S,Y,_)}function Yc(l,d,m,S,_){var B=m.render();m.props!==_&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(S)||"a component"),Bt=!0);{var Y=S.childContextTypes;if(Y!=null){var re=d.legacyContext,Se=Lc(m,S,re,Y);d.legacyContext=Se,Wr(l,d,B),d.legacyContext=re;return}}Wr(l,d,B)}function Xu(l,d,m,S){Ji(d,m);var _=Za(m,d.legacyContext),B=Nc(m,S,_);So(B,m,S,_),Yc(l,d,B,m,S),Qi(d)}var Ku={},Js={},Zu={},Kl={},Bt=!1,ll={},Ju=!1,Qs=!1,Zl=!1;function Gc(l,d,m,S){var _;if(_=Za(m,d.legacyContext),ol(d,m),m.prototype&&typeof m.prototype.render=="function"){var B=zt(m)||"Unknown";Ku[B]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),Ku[B]=!0)}var Y=_a(l,d,m,S,_),re=Vu();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var Se=zt(m)||"Unknown";Js[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),Js[Se]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var $e=zt(m)||"Unknown";Js[$e]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",$e,$e,$e),Js[$e]=!0)}So(Y,m,S,_),Yc(l,d,Y,m,S)}else if(qc(m),re){var Xe=d.treeContext,rt=1,xt=0;d.treeContext=Nu(Xe,rt,xt);try{Wr(l,d,Y)}finally{d.treeContext=Xe}}else Wr(l,d,Y);Qi(d)}function qc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";ll[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),ll[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var m=zt(l)||"Unknown";Kl[m]||(i("%s: Function components do not support getDerivedStateFromProps.",m),Kl[m]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var S=zt(l)||"Unknown";Zu[S]||(i("%s: Function components do not support contextType.",S),Zu[S]=!0)}}}function ri(l,d){if(l&&l.defaultProps){var m=cn({},d),S=l.defaultProps;for(var _ in S)m[_]===void 0&&(m[_]=S[_]);return m}return d}function Xc(l,d,m,S,_){ol(d,m.render);var B=_a(l,d,m.render,S,_),Y=Vu();if(Y){var re=d.treeContext,Se=1,$e=0;d.treeContext=Nu(re,Se,$e);try{Wr(l,d,B)}finally{d.treeContext=re}}else Wr(l,d,B);Qi(d)}function Jl(l,d,m,S,_){var B=m.type,Y=ri(B,S);Hr(l,d,B,Y,_)}function Qu(l,d,m,S){m._context===void 0?m!==m.Consumer&&(Zl||(Zl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):m=m._context;var _=S.children;typeof _!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var B=hs(m),Y=_(B);Wr(l,d,Y)}function ec(l,d,m,S){var _=m._context,B=S.value,Y=S.children,re;re=d.context,d.context=xa(_,B),Wr(l,d,Y),d.context=Ja(_),re!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(l,d,m,S,_){zo(d,"Lazy");var B=m._payload,Y=m._init,re=Y(B),Se=ri(re,S);Hr(l,d,re,Se,_),Qi(d)}function Hr(l,d,m,S,_){if(typeof m=="function")if(al(m)){Xu(l,d,m,S);return}else{Gc(l,d,m,S);return}if(typeof m=="string"){Xl(l,d,m,S);return}switch(m){case it:case lt:case J:case de:case $s:{Wr(l,d,S.children);return}case ue:{zo(d,"SuspenseList"),Wr(l,d,S.children),Qi(d);return}case st:throw new Error("ReactDOMServer does not yet support scope components.");case ce:{Oa(l,d,S);return}}if(typeof m=="object"&&m!==null)switch(m.$$typeof){case Z:{Xc(l,d,m,S,_);return}case Ie:{Jl(l,d,m,S,_);return}case ke:{ec(l,d,m,S);return}case Pe:{Qu(l,d,m,S);return}case Be:{Kc(l,d,m,S);return}}var B="";throw(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(m==null?m:typeof m)+"."+B))}function bs(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Ju||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ju=!0),l.entries===d&&(Qs||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qs=!0)}function Wr(l,d,m){try{return Zc(l,d,m)}catch(S){throw typeof S=="object"&&S!==null&&typeof S.then=="function"||(Eo=Eo!==null?Eo:ql()),S}}function Zc(l,d,m){if(d.node=m,typeof m=="object"&&m!==null){switch(m.$$typeof){case Al:{var S=m,_=S.type,B=S.props,Y=S.ref;Hr(l,d,_,B,Y);return}case pa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Be:{var re=m,Se=re._payload,$e=re._init,Xe;try{Xe=$e(Se)}catch(Aa){throw typeof Aa=="object"&&Aa!==null&&typeof Aa.then=="function"&&zo(d,"Lazy"),Aa}Wr(l,d,Xe);return}}if(Xr(m)){ea(l,d,m);return}var rt=Yn(m);if(rt){bs(m,rt);var xt=rt.call(m);if(xt){var en=xt.next();if(!en.done){var ir=[];do ir.push(en.value),en=xt.next();while(!en.done);ea(l,d,ir);return}return}}var ko=Object.prototype.toString.call(m);throw new Error("Objects are not valid as a React child (found: "+(ko==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":ko)+"). If you meant to render a collection of children, use an array instead.")}if(typeof m=="string"){var Ss=d.blockedSegment;Ss.lastPushedText=ti(d.blockedSegment.chunks,m,l.responseState,Ss.lastPushedText);return}if(typeof m=="number"){var to=d.blockedSegment;to.lastPushedText=ti(d.blockedSegment.chunks,""+m,l.responseState,to.lastPushedText);return}typeof m=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ea(l,d,m){for(var S=m.length,_=0;_<S;_++){var B=d.treeContext;d.treeContext=Nu(B,S,_);try{dr(l,d,m[_])}finally{d.treeContext=B}}}function Jc(l,d,m){var S=d.blockedSegment,_=S.chunks.length,B=Gl(l,_,null,S.formatContext,S.lastPushedText,!0);S.children.push(B),S.lastPushedText=!1;var Y=Zs(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var re=Y.ping;m.then(re,re)}function dr(l,d,m){var S=d.blockedSegment.formatContext,_=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Wr(l,d,m)}catch(re){if(Si(),typeof re=="object"&&re!==null&&typeof re.then=="function"){Jc(l,d,re),d.blockedSegment.formatContext=S,d.legacyContext=_,d.context=B,$o(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=S,d.legacyContext=_,d.context=B,$o(B),d.componentStack=Y,re}}function Qc(l,d,m,S){var _=ys(l,S);if(d===null?eo(l,S):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=_,sl(d,S),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Ql(l){var d=this,m=l.blockedBoundary,S=l.blockedSegment;S.status=ka,ef(d,m,S)}function eu(l,d,m){var S=l.blockedBoundary,_=l.blockedSegment;if(_.status=ka,S===null)d.allPendingTasks--,d.status!==Ks&&(d.status=Ks,d.destination!==null&&g(d.destination));else{if(S.pendingTasks--,!S.forceClientRender){S.forceClientRender=!0;var B=m===void 0?new Error("The render was aborted by the server without a reason."):m;S.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var re=Wo;Wo=l;try{sl(S,B)}finally{Wo=re}}S.parentFlushed&&d.clientRenderedBoundaries.push(S)}if(S.fallbackAbortableTasks.forEach(function($e){return eu($e,d,m)}),S.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var Se=d.onAllReady;Se()}}}function Ci(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var m=d.children[0];m.id=d.id,m.parentFlushed=!0,m.status===Ea&&Ci(l,m)}else{var S=l.completedSegments;S.push(d)}}function ef(l,d,m){if(d===null){if(m.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=m}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Da;var S=l.onShellReady;S()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)m.parentFlushed&&m.status===Ea&&Ci(d,m),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Ql,l),d.fallbackAbortableTasks.clear();else if(m.parentFlushed&&m.status===Ea){Ci(d,m);var _=d.completedSegments;_.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function ws(l,d){var m=d.blockedSegment;if(m.status===Hl){$o(d.context);var S=null;S=Wo,Wo=d;try{Wr(l,d,d.node),vo(m.chunks,l.responseState,m.lastPushedText,m.textEmbedded),d.abortSet.delete(d),m.status=Ea,ef(l,d.blockedBoundary,m)}catch(B){if(Si(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var _=d.ping;B.then(_,_)}else d.abortSet.delete(d),m.status=zl,Qc(l,d.blockedBoundary,m,B)}finally{Wo=S}}}function tu(l){if(l.status!==Ks){var d=Hs(),m=rr.current;rr.current=Ul;var S;S=Xs.getCurrentStack,Xs.getCurrentStack=ql;var _=Ca;vs(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var re=B[Y];ws(l,re)}B.splice(0,Y),l.destination!==null&&nu(l,l.destination)}catch(Se){ys(l,Se),eo(l,Se)}finally{vs(_),rr.current=m,Xs.getCurrentStack=S,m===Ul&&$o(d)}}}function xs(l,d,m){switch(m.parentFlushed=!0,m.status){case Hl:{var S=m.id=l.nextSegmentId++;return m.lastPushedText=!1,m.textEmbedded=!1,Qr(d,l.responseState,S)}case Ea:{m.status=Wl;for(var _=!0,B=m.chunks,Y=0,re=m.children,Se=0;Se<re.length;Se++){for(var $e=re[Se];Y<$e.index;Y++)f(d,B[Y]);_=ta(l,d,$e)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(_=p(d,B[Y])),_}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ta(l,d,m){var S=m.boundary;if(S===null)return xs(l,d,m);if(S.parentFlushed=!0,S.forceClientRender)return Ou(d,l.responseState,S.errorDigest,S.errorMessage,S.errorComponentStack),xs(l,d,m),yo(d,l.responseState);if(S.pendingTasks>0){S.rootSegmentID=l.nextSegmentId++,S.completedSegments.length>0&&l.partialBoundaries.push(S);var _=S.id=ar(l.responseState);return h(d,l.responseState,_),xs(l,d,m),P(d,l.responseState)}else{if(S.byteSize>l.progressiveChunkSize)return S.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(S),h(d,l.responseState,S.id),xs(l,d,m),P(d,l.responseState);Ga(d,l.responseState);var B=S.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var Y=B[0];return ta(l,d,Y),ha(d,l.responseState)}}function Kf(l,d,m){return ei(d,l.responseState,m.id,m.errorDigest,m.errorMessage,m.errorComponentStack)}function tc(l,d,m){return go(d,l.responseState,m.formatContext,m.id),ta(l,d,m),Tr(d,m.formatContext)}function ul(l,d,m){for(var S=m.completedSegments,_=0;_<S.length;_++){var B=S[_];nc(l,d,m,B)}return S.length=0,An(d,l.responseState,m.id,m.rootSegmentID)}function cl(l,d,m){for(var S=m.completedSegments,_=0;_<S.length;_++){var B=S[_];if(!nc(l,d,m,B))return _++,S.splice(0,_),!1}return S.splice(0,_),!0}function nc(l,d,m,S){if(S.status===Wl)return!0;var _=S.id;if(_===-1){var B=S.id=m.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tc(l,d,S)}else return tc(l,d,S),qe(d,l.responseState,_)}function nu(l,d){try{var m=l.completedRootSegment;m!==null&&l.pendingRootTasks===0&&(ta(l,d,m),l.completedRootSegment=null,Gt(d,l.responseState));var S=l.clientRenderedBoundaries,_;for(_=0;_<S.length;_++){var B=S[_];if(!Kf(l,d,B)){l.destination=null,_++,S.splice(0,_);return}}S.splice(0,_);var Y=l.completedBoundaries;for(_=0;_<Y.length;_++){var re=Y[_];if(!ul(l,d,re)){l.destination=null,_++,Y.splice(0,_);return}}Y.splice(0,_);var Se=l.partialBoundaries;for(_=0;_<Se.length;_++){var $e=Se[_];if(!cl(l,d,$e)){l.destination=null,_++,Se.splice(0,_);return}}Se.splice(0,_);var Xe=l.completedBoundaries;for(_=0;_<Xe.length;_++){var rt=Xe[_];if(!ul(l,d,rt)){l.destination=null,_++,Xe.splice(0,_);return}}Xe.splice(0,_)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),g(d))}}function rc(l){a(function(){return tu(l)})}function tf(l,d){if(l.status===Yl){l.status=Ks,A(d,l.fatalError);return}if(l.status!==Ks&&l.destination===null){l.destination=d;try{nu(l,d)}catch(m){ys(l,m),eo(l,m)}}}function zr(l,d){try{var m=l.abortableTasks;m.forEach(function(S){return eu(S,l,d)}),m.clear(),l.destination!==null&&nu(l,l.destination)}catch(S){ys(l,S),eo(l,S)}}function Mi(){}function nf(l,d,m,S){var _=!1,B=null,Y="",re={push:function(rt){return rt!==null&&(Y+=rt),!0},destroy:function(rt){_=!0,B=rt}},Se=!1;function $e(){Se=!0}var Xe=Pa(l,da(m,d?d.identifierPrefix:void 0),ls(),1/0,Mi,void 0,$e);if(rc(Xe),zr(Xe,S),tf(Xe,re),_)throw B;if(!Se)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return Y}function Zf(l,d){return nf(l,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function fl(l,d){return nf(l,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ra(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function v(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}cc.renderToNodeStream=Ra,cc.renderToStaticMarkup=fl,cc.renderToStaticNodeStream=v,cc.renderToString=Zf,cc.version=e}()),cc}var Fh={};/**
96
+ `+S.stack}}var rr=n.ReactCurrentDispatcher,Xs=n.ReactDebugCurrentFrame,Hl=0,Ea=1,Wl=2,ka=3,zl=4,Co=0,Yl=1,Ks=2,Wc=12800;function il(l){return console.error(l),null}function Da(){}function Pa(l,d,m,S,_,B,Y,re,Se){var $e=[],Xe=new Set,rt={destination:null,responseState:d,progressiveChunkSize:S===void 0?Wc:S,status:Co,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Xe,pingedTasks:$e,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:_===void 0?il:_,onAllReady:Da,onShellReady:Y===void 0?Da:Y,onShellError:Da,onFatalError:Da},xt=Gl(rt,0,null,m,!1,!1);xt.parentFlushed=!0;var en=Zs(rt,l,null,xt,Xe,ba,Gn,Hf);return $e.push(en),rt}function qu(l,d){var m=l.pingedTasks;m.push(d),m.length===1&&a(function(){return tu(l)})}function zc(l,d){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Zs(l,d,m,S,_,B,Y,re){l.allPendingTasks++,m===null?l.pendingRootTasks++:m.pendingTasks++;var Se={node:d,ping:function(){return qu(l,Se)},blockedBoundary:m,blockedSegment:S,abortSet:_,legacyContext:B,context:Y,treeContext:re};return Se.componentStack=null,_.add(Se),Se}function Gl(l,d,m,S,_,B){return{status:Hl,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:S,boundary:m,lastPushedText:_,textEmbedded:B}}var Wo=null;function ql(){return Wo===null||Wo.componentStack===null?"":rl(Wo.componentStack)}function zo(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function ol(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Ji(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Qi(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Eo=null;function sl(l,d){{var m;typeof d=="string"?m=d:d&&typeof d.message=="string"?m=d.message:m=String(d);var S=Eo||ql();Eo=null,l.errorMessage=m,l.errorComponentStack=S}}function ys(l,d){var m=l.onError(d);if(m!=null&&typeof m!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof m+'" instead');return m}function eo(l,d){var m=l.onShellError;m(d);var S=l.onFatalError;S(d),l.destination!==null?(l.status=Ks,A(l.destination,d)):(l.status=Yl,l.fatalError=d)}function Oa(l,d,m){zo(d,"Suspense");var S=d.blockedBoundary,_=d.blockedSegment,B=m.fallback,Y=m.children,re=new Set,Se=zc(l,re),$e=_.chunks.length,Xe=Gl(l,$e,Se,_.formatContext,!1,!1);_.children.push(Xe),_.lastPushedText=!1;var rt=Gl(l,0,null,_.formatContext,!1,!1);rt.parentFlushed=!0,d.blockedBoundary=Se,d.blockedSegment=rt;try{if(dr(l,d,Y),vo(rt.chunks,l.responseState,rt.lastPushedText,rt.textEmbedded),rt.status=Ea,Ci(Se,rt),Se.pendingTasks===0){Qi(d);return}}catch(en){rt.status=zl,Se.forceClientRender=!0,Se.errorDigest=ys(l,en),sl(Se,en)}finally{d.blockedBoundary=S,d.blockedSegment=_}var xt=Zs(l,B,S,Xe,re,d.legacyContext,d.context,d.treeContext);xt.componentStack=d.componentStack,l.pingedTasks.push(xt),Qi(d)}function Xl(l,d,m,S){zo(d,m);var _=d.blockedSegment,B=vi(_.chunks,m,S,l.responseState,_.formatContext);_.lastPushedText=!1;var Y=_.formatContext;_.formatContext=Yi(Y,m,S),dr(l,d,B),_.formatContext=Y,rn(_.chunks,m),_.lastPushedText=!1,Qi(d)}function al(l){return l.prototype&&l.prototype.isReactComponent}function _a(l,d,m,S,_){var B={};Ys(d,B);var Y=m(S,_);return $c(m,S,Y,_)}function Yc(l,d,m,S,_){var B=m.render();m.props!==_&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(S)||"a component"),Bt=!0);{var Y=S.childContextTypes;if(Y!=null){var re=d.legacyContext,Se=Lc(m,S,re,Y);d.legacyContext=Se,Wr(l,d,B),d.legacyContext=re;return}}Wr(l,d,B)}function Xu(l,d,m,S){Ji(d,m);var _=Za(m,d.legacyContext),B=Nc(m,S,_);So(B,m,S,_),Yc(l,d,B,m,S),Qi(d)}var Ku={},Js={},Zu={},Kl={},Bt=!1,ll={},Ju=!1,Qs=!1,Zl=!1;function Gc(l,d,m,S){var _;if(_=Za(m,d.legacyContext),ol(d,m),m.prototype&&typeof m.prototype.render=="function"){var B=zt(m)||"Unknown";Ku[B]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",B,B),Ku[B]=!0)}var Y=_a(l,d,m,S,_),re=Vu();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var Se=zt(m)||"Unknown";Js[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),Js[Se]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var $e=zt(m)||"Unknown";Js[$e]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",$e,$e,$e),Js[$e]=!0)}So(Y,m,S,_),Yc(l,d,Y,m,S)}else if(qc(m),re){var Xe=d.treeContext,rt=1,xt=0;d.treeContext=Nu(Xe,rt,xt);try{Wr(l,d,Y)}finally{d.treeContext=Xe}}else Wr(l,d,Y);Qi(d)}function qc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";ll[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),ll[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var m=zt(l)||"Unknown";Kl[m]||(i("%s: Function components do not support getDerivedStateFromProps.",m),Kl[m]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var S=zt(l)||"Unknown";Zu[S]||(i("%s: Function components do not support contextType.",S),Zu[S]=!0)}}}function ri(l,d){if(l&&l.defaultProps){var m=cn({},d),S=l.defaultProps;for(var _ in S)m[_]===void 0&&(m[_]=S[_]);return m}return d}function Xc(l,d,m,S,_){ol(d,m.render);var B=_a(l,d,m.render,S,_),Y=Vu();if(Y){var re=d.treeContext,Se=1,$e=0;d.treeContext=Nu(re,Se,$e);try{Wr(l,d,B)}finally{d.treeContext=re}}else Wr(l,d,B);Qi(d)}function Jl(l,d,m,S,_){var B=m.type,Y=ri(B,S);Hr(l,d,B,Y,_)}function Qu(l,d,m,S){m._context===void 0?m!==m.Consumer&&(Zl||(Zl=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):m=m._context;var _=S.children;typeof _!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var B=hs(m),Y=_(B);Wr(l,d,Y)}function ec(l,d,m,S){var _=m._context,B=S.value,Y=S.children,re;re=d.context,d.context=xa(_,B),Wr(l,d,Y),d.context=Ja(_),re!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(l,d,m,S,_){zo(d,"Lazy");var B=m._payload,Y=m._init,re=Y(B),Se=ri(re,S);Hr(l,d,re,Se,_),Qi(d)}function Hr(l,d,m,S,_){if(typeof m=="function")if(al(m)){Xu(l,d,m,S);return}else{Gc(l,d,m,S);return}if(typeof m=="string"){Xl(l,d,m,S);return}switch(m){case it:case lt:case J:case de:case $s:{Wr(l,d,S.children);return}case ue:{zo(d,"SuspenseList"),Wr(l,d,S.children),Qi(d);return}case st:throw new Error("ReactDOMServer does not yet support scope components.");case ce:{Oa(l,d,S);return}}if(typeof m=="object"&&m!==null)switch(m.$$typeof){case Z:{Xc(l,d,m,S,_);return}case Ie:{Jl(l,d,m,S,_);return}case ke:{ec(l,d,m,S);return}case Pe:{Qu(l,d,m,S);return}case Be:{Kc(l,d,m,S);return}}var B="";throw(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(B+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(m==null?m:typeof m)+"."+B))}function bs(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Ju||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Ju=!0),l.entries===d&&(Qs||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Qs=!0)}function Wr(l,d,m){try{return Zc(l,d,m)}catch(S){throw typeof S=="object"&&S!==null&&typeof S.then=="function"||(Eo=Eo!==null?Eo:ql()),S}}function Zc(l,d,m){if(d.node=m,typeof m=="object"&&m!==null){switch(m.$$typeof){case Al:{var S=m,_=S.type,B=S.props,Y=S.ref;Hr(l,d,_,B,Y);return}case pa:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Be:{var re=m,Se=re._payload,$e=re._init,Xe;try{Xe=$e(Se)}catch(Aa){throw typeof Aa=="object"&&Aa!==null&&typeof Aa.then=="function"&&zo(d,"Lazy"),Aa}Wr(l,d,Xe);return}}if(Xr(m)){ea(l,d,m);return}var rt=Yn(m);if(rt){bs(m,rt);var xt=rt.call(m);if(xt){var en=xt.next();if(!en.done){var ir=[];do ir.push(en.value),en=xt.next();while(!en.done);ea(l,d,ir);return}return}}var ko=Object.prototype.toString.call(m);throw new Error("Objects are not valid as a React child (found: "+(ko==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":ko)+"). If you meant to render a collection of children, use an array instead.")}if(typeof m=="string"){var Ss=d.blockedSegment;Ss.lastPushedText=ti(d.blockedSegment.chunks,m,l.responseState,Ss.lastPushedText);return}if(typeof m=="number"){var to=d.blockedSegment;to.lastPushedText=ti(d.blockedSegment.chunks,""+m,l.responseState,to.lastPushedText);return}typeof m=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function ea(l,d,m){for(var S=m.length,_=0;_<S;_++){var B=d.treeContext;d.treeContext=Nu(B,S,_);try{dr(l,d,m[_])}finally{d.treeContext=B}}}function Jc(l,d,m){var S=d.blockedSegment,_=S.chunks.length,B=Gl(l,_,null,S.formatContext,S.lastPushedText,!0);S.children.push(B),S.lastPushedText=!1;var Y=Zs(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var re=Y.ping;m.then(re,re)}function dr(l,d,m){var S=d.blockedSegment.formatContext,_=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Wr(l,d,m)}catch(re){if(Si(),typeof re=="object"&&re!==null&&typeof re.then=="function"){Jc(l,d,re),d.blockedSegment.formatContext=S,d.legacyContext=_,d.context=B,$o(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=S,d.legacyContext=_,d.context=B,$o(B),d.componentStack=Y,re}}function Qc(l,d,m,S){var _=ys(l,S);if(d===null?eo(l,S):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=_,sl(d,S),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Ql(l){var d=this,m=l.blockedBoundary,S=l.blockedSegment;S.status=ka,ef(d,m,S)}function eu(l,d,m){var S=l.blockedBoundary,_=l.blockedSegment;if(_.status=ka,S===null)d.allPendingTasks--,d.status!==Ks&&(d.status=Ks,d.destination!==null&&g(d.destination));else{if(S.pendingTasks--,!S.forceClientRender){S.forceClientRender=!0;var B=m===void 0?new Error("The render was aborted by the server without a reason."):m;S.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var re=Wo;Wo=l;try{sl(S,B)}finally{Wo=re}}S.parentFlushed&&d.clientRenderedBoundaries.push(S)}if(S.fallbackAbortableTasks.forEach(function($e){return eu($e,d,m)}),S.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var Se=d.onAllReady;Se()}}}function Ci(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var m=d.children[0];m.id=d.id,m.parentFlushed=!0,m.status===Ea&&Ci(l,m)}else{var S=l.completedSegments;S.push(d)}}function ef(l,d,m){if(d===null){if(m.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=m}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Da;var S=l.onShellReady;S()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)m.parentFlushed&&m.status===Ea&&Ci(d,m),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Ql,l),d.fallbackAbortableTasks.clear();else if(m.parentFlushed&&m.status===Ea){Ci(d,m);var _=d.completedSegments;_.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function ws(l,d){var m=d.blockedSegment;if(m.status===Hl){$o(d.context);var S=null;S=Wo,Wo=d;try{Wr(l,d,d.node),vo(m.chunks,l.responseState,m.lastPushedText,m.textEmbedded),d.abortSet.delete(d),m.status=Ea,ef(l,d.blockedBoundary,m)}catch(B){if(Si(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var _=d.ping;B.then(_,_)}else d.abortSet.delete(d),m.status=zl,Qc(l,d.blockedBoundary,m,B)}finally{Wo=S}}}function tu(l){if(l.status!==Ks){var d=Hs(),m=rr.current;rr.current=Ul;var S;S=Xs.getCurrentStack,Xs.getCurrentStack=ql;var _=Ca;vs(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var re=B[Y];ws(l,re)}B.splice(0,Y),l.destination!==null&&nu(l,l.destination)}catch(Se){ys(l,Se),eo(l,Se)}finally{vs(_),rr.current=m,Xs.getCurrentStack=S,m===Ul&&$o(d)}}}function xs(l,d,m){switch(m.parentFlushed=!0,m.status){case Hl:{var S=m.id=l.nextSegmentId++;return m.lastPushedText=!1,m.textEmbedded=!1,Qr(d,l.responseState,S)}case Ea:{m.status=Wl;for(var _=!0,B=m.chunks,Y=0,re=m.children,Se=0;Se<re.length;Se++){for(var $e=re[Se];Y<$e.index;Y++)f(d,B[Y]);_=ta(l,d,$e)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(_=p(d,B[Y])),_}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ta(l,d,m){var S=m.boundary;if(S===null)return xs(l,d,m);if(S.parentFlushed=!0,S.forceClientRender)return Ou(d,l.responseState,S.errorDigest,S.errorMessage,S.errorComponentStack),xs(l,d,m),yo(d,l.responseState);if(S.pendingTasks>0){S.rootSegmentID=l.nextSegmentId++,S.completedSegments.length>0&&l.partialBoundaries.push(S);var _=S.id=ar(l.responseState);return h(d,l.responseState,_),xs(l,d,m),P(d,l.responseState)}else{if(S.byteSize>l.progressiveChunkSize)return S.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(S),h(d,l.responseState,S.id),xs(l,d,m),P(d,l.responseState);Ga(d,l.responseState);var B=S.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var Y=B[0];return ta(l,d,Y),ha(d,l.responseState)}}function Kf(l,d,m){return ei(d,l.responseState,m.id,m.errorDigest,m.errorMessage,m.errorComponentStack)}function tc(l,d,m){return go(d,l.responseState,m.formatContext,m.id),ta(l,d,m),Tr(d,m.formatContext)}function ul(l,d,m){for(var S=m.completedSegments,_=0;_<S.length;_++){var B=S[_];nc(l,d,m,B)}return S.length=0,An(d,l.responseState,m.id,m.rootSegmentID)}function cl(l,d,m){for(var S=m.completedSegments,_=0;_<S.length;_++){var B=S[_];if(!nc(l,d,m,B))return _++,S.splice(0,_),!1}return S.splice(0,_),!0}function nc(l,d,m,S){if(S.status===Wl)return!0;var _=S.id;if(_===-1){var B=S.id=m.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return tc(l,d,S)}else return tc(l,d,S),qe(d,l.responseState,_)}function nu(l,d){try{var m=l.completedRootSegment;m!==null&&l.pendingRootTasks===0&&(ta(l,d,m),l.completedRootSegment=null,Gt(d,l.responseState));var S=l.clientRenderedBoundaries,_;for(_=0;_<S.length;_++){var B=S[_];if(!Kf(l,d,B)){l.destination=null,_++,S.splice(0,_);return}}S.splice(0,_);var Y=l.completedBoundaries;for(_=0;_<Y.length;_++){var re=Y[_];if(!ul(l,d,re)){l.destination=null,_++,Y.splice(0,_);return}}Y.splice(0,_);var Se=l.partialBoundaries;for(_=0;_<Se.length;_++){var $e=Se[_];if(!cl(l,d,$e)){l.destination=null,_++,Se.splice(0,_);return}}Se.splice(0,_);var Xe=l.completedBoundaries;for(_=0;_<Xe.length;_++){var rt=Xe[_];if(!ul(l,d,rt)){l.destination=null,_++,Xe.splice(0,_);return}}Xe.splice(0,_)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),g(d))}}function rc(l){a(function(){return tu(l)})}function tf(l,d){if(l.status===Yl){l.status=Ks,A(d,l.fatalError);return}if(l.status!==Ks&&l.destination===null){l.destination=d;try{nu(l,d)}catch(m){ys(l,m),eo(l,m)}}}function zr(l,d){try{var m=l.abortableTasks;m.forEach(function(S){return eu(S,l,d)}),m.clear(),l.destination!==null&&nu(l,l.destination)}catch(S){ys(l,S),eo(l,S)}}function Mi(){}function nf(l,d,m,S){var _=!1,B=null,Y="",re={push:function(rt){return rt!==null&&(Y+=rt),!0},destroy:function(rt){_=!0,B=rt}},Se=!1;function $e(){Se=!0}var Xe=Pa(l,da(m,d?d.identifierPrefix:void 0),ls(),1/0,Mi,void 0,$e);if(rc(Xe),zr(Xe,S),tf(Xe,re),_)throw B;if(!Se)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return Y}function Zf(l,d){return nf(l,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function fl(l,d){return nf(l,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Ra(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function v(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}cc.renderToNodeStream=Ra,cc.renderToStaticMarkup=fl,cc.renderToStaticNodeStream=v,cc.renderToString=Zf,cc.version=e}()),cc}var Nh={};/**
97
97
  * @license React
98
98
  * react-dom-server.browser.development.js
99
99
  *
@@ -132,17 +132,17 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
132
132
  Previous: %s
133
133
  Incoming: %s`,Zi,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<v.length;d++)if(!qt(v[d],l[d]))return!1;return!0}function Vu(){if(To>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Si(){return Zt===null?zs===null?(gs=!1,zs=Zt=Vu()):(gs=!0,Zt=zs):Zt.next===null?(gs=!1,Zt=Zt.next=Vu()):(gs=!0,Zt=Zt.next),Zt}function Uu(v,l){wi=l,Ta=v,Vr=!1,ni=0}function Gs(v,l,d,m){for(;nl;)nl=!1,ni=0,To+=1,Zt=null,d=v(l,m);return Hu(),d}function Ur(){var v=ni!==0;return v}function Hu(){Vr=!1,wi=null,Ta=null,nl=!1,zs=null,To=0,xi=null,Zt=null}function Wu(v){return Vr&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Sa(v)}function zu(v){return Zi="useContext",Ys(),Sa(v)}function qs(v,l){return typeof l=="function"?l(v):l}function ms(v){return Zi="useState",Yu(qs,v)}function Yu(v,l,d){if(v!==qs&&(Zi="useReducer"),wi=Ys(),Zt=Si(),gs){var m=Zt.queue,S=m.dispatch;if(xi!==null){var _=xi.get(m);if(_!==void 0){xi.delete(m);var B=Zt.memoizedState,Y=_;do{var re=Y.action;Vr=!0,B=v(B,re),Vr=!1,Y=Y.next}while(Y!==null);return Zt.memoizedState=B,[B,S]}}return[Zt.memoizedState,S]}else{Vr=!0;var Se;v===qs?Se=typeof l=="function"?l():l:Se=d!==void 0?d(l):l,Vr=!1,Zt.memoizedState=Se;var $e=Zt.queue={last:null,dispatch:null},Xe=$e.dispatch=Uc.bind(null,wi,$e);return[Zt.memoizedState,Xe]}}function Vc(v,l){wi=Ys(),Zt=Si();var d=l===void 0?null:l;if(Zt!==null){var m=Zt.memoizedState;if(m!==null&&d!==null){var S=m[1];if($c(d,S))return m[0]}}Vr=!0;var _=v();return Vr=!1,Zt.memoizedState=[_,d],_}function Vl(v){wi=Ys(),Zt=Si();var l=Zt.memoizedState;if(l===null){var d={current:v};return Object.seal(d),Zt.memoizedState=d,d}else return l}function Xf(v,l){Zi="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Uc(v,l,d){if(To>=$u)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===wi){nl=!0;var m={action:d,next:null};xi===null&&(xi=new Map);var S=xi.get(l);if(S===void 0)xi.set(l,m);else{for(var _=S;_.next!==null;)_=_.next;_.next=m}}}function fr(v,l){return Vc(function(){return v},l)}function Gu(v,l,d){return Ys(),l(v._source)}function Hc(v,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ti(v){return Ys(),v}function Ul(){throw new Error("startTransition cannot be called during server rendering.")}function Ca(){return Ys(),[!1,Ul]}function vs(){var v=Ta,l=Ho(v.treeContext),d=Xs;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var m=ni++;return jn(d,l,m)}function rl(){}var rr={readContext:Wu,useContext:zu,useMemo:Vc,useReducer:Yu,useRef:Vl,useState:ms,useInsertionEffect:rl,useLayoutEffect:Xf,useCallback:fr,useImperativeHandle:rl,useEffect:rl,useDebugValue:rl,useDeferredValue:Ti,useTransition:Ca,useId:vs,useMutableSource:Gu,useSyncExternalStore:Hc},Xs=null;function Hl(v){Xs=v}function Ea(v){try{var l="",d=v;do{switch(d.tag){case 0:l+=Ki(d.type,null,null);break;case 1:l+=va(d.type,null,null);break;case 2:l+=Mc(d.type,null,null);break}d=d.parent}while(d);return l}catch(m){return`
134
134
  Error generating stack: `+m.message+`
135
- `+m.stack}}var Wl=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,zl=0,Co=1,Yl=2,Ks=3,Wc=4,il=0,Da=1,Pa=2,qu=12800;function zc(v){return console.error(v),null}function Zs(){}function Gl(v,l,d,m,S,_,B,Y,re){var Se=[],$e=new Set,Xe={destination:null,responseState:l,progressiveChunkSize:m===void 0?qu:m,status:il,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:$e,pingedTasks:Se,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?zc:S,onAllReady:_===void 0?Zs:_,onShellReady:B===void 0?Zs:B,onShellError:Y===void 0?Zs:Y,onFatalError:re===void 0?Zs:re},rt=ol(Xe,0,null,d,!1,!1);rt.parentFlushed=!0;var xt=zo(Xe,v,null,rt,$e,Gn,Fl,zf);return Se.push(xt),Xe}function Wo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return tc(v)})}function ql(v,l){return{id:Ri,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function zo(v,l,d,m,S,_,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Wo(v,re)},blockedBoundary:d,blockedSegment:m,abortSet:S,legacyContext:_,context:B,treeContext:Y};return re.componentStack=null,S.add(re),re}function ol(v,l,d,m,S,_){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:S,textEmbedded:_}}var Ji=null;function Qi(){return Ji===null||Ji.componentStack===null?"":Ea(Ji.componentStack)}function Eo(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function sl(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ys(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function eo(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Oa=null;function Xl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Oa||Qi();Oa=null,v.errorMessage=d,v.errorComponentStack=m}}function al(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function _a(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=Pa,H(v.destination,l)):(v.status=Da,v.fatalError=l)}function Yc(v,l,d){Eo(l,"Suspense");var m=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,B=d.children,Y=new Set,re=ql(v,Y),Se=S.chunks.length,$e=ol(v,Se,re,S.formatContext,!1,!1);S.children.push($e),S.lastPushedText=!1;var Xe=ol(v,0,null,S.formatContext,!1,!1);Xe.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=Xe;try{if(Ci(v,l,B),_n(Xe.chunks,v.responseState,Xe.lastPushedText,Xe.textEmbedded),Xe.status=Co,xs(re,Xe),re.pendingTasks===0){eo(l);return}}catch(xt){Xe.status=Wc,re.forceClientRender=!0,re.errorDigest=al(v,xt),Xl(re,xt)}finally{l.blockedBoundary=m,l.blockedSegment=S}var rt=zo(v,_,m,$e,Y,l.legacyContext,l.context,l.treeContext);rt.componentStack=l.componentStack,v.pingedTasks.push(rt),eo(l)}function Xu(v,l,d,m){Eo(l,d);var S=l.blockedSegment,_=fo(S.chunks,d,m,v.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,m),Ci(v,l,_),S.formatContext=B,Lo(S.chunks,d),S.lastPushedText=!1,eo(l)}function Ku(v){return v.prototype&&v.prototype.isReactComponent}function Js(v,l,d,m,S){var _={};Uu(l,_);var B=d(m,S);return Gs(d,m,B,S)}function Zu(v,l,d,m,S){var _=d.render();d.props!==S&&(Zl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),Zl=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Mu(d,m,Y,B);l.legacyContext=re,dr(v,l,_),l.legacyContext=Y;return}}dr(v,l,_)}function Kl(v,l,d,m){ys(l,d);var S=cs(d,l.legacyContext),_=So(d,m,S);tl(_,d,m,S),Zu(v,l,_,d,m),eo(l)}var Bt={},ll={},Ju={},Qs={},Zl=!1,Gc={},qc=!1,ri=!1,Xc=!1;function Jl(v,l,d,m){var S;if(S=cs(d,l.legacyContext),sl(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=pn(d)||"Unknown";Bt[_]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),Bt[_]=!0)}var B=Js(v,l,d,m,S),Y=Ur();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=pn(d)||"Unknown";ll[re]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),ll[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var Se=pn(d)||"Unknown";ll[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),ll[Se]=!0)}tl(B,d,m,S),Zu(v,l,B,d,m)}else if(Qu(d),Y){var $e=l.treeContext,Xe=1,rt=0;l.treeContext=ju($e,Xe,rt);try{dr(v,l,B)}finally{l.treeContext=$e}}else dr(v,l,B);eo(l)}function Qu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Gc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Gc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Qs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Qs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Ju[m]||(i("%s: Function components do not support contextType.",m),Ju[m]=!0)}}}function ec(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var S in m)d[S]===void 0&&(d[S]=m[S]);return d}return l}function Kc(v,l,d,m,S){sl(l,d.render);var _=Js(v,l,d.render,m,S),B=Ur();if(B){var Y=l.treeContext,re=1,Se=0;l.treeContext=ju(Y,re,Se);try{dr(v,l,_)}finally{l.treeContext=Y}}else dr(v,l,_);eo(l)}function Hr(v,l,d,m,S){var _=d.type,B=ec(_,m);ea(v,l,_,B,S)}function bs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(Xc||(Xc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=m.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Sa(d),B=S(_);dr(v,l,B)}function Wr(v,l,d,m){var S=d._context,_=m.value,B=m.children,Y;Y=l.context,l.context=Lu(S,_),dr(v,l,B),l.context=Vf(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zc(v,l,d,m,S){Eo(l,"Lazy");var _=d._payload,B=d._init,Y=B(_),re=ec(Y,m);ea(v,l,Y,re,S),eo(l)}function ea(v,l,d,m,S){if(typeof d=="function")if(Ku(d)){Kl(v,l,d,m);return}else{Jl(v,l,d,m);return}if(typeof d=="string"){Xu(v,l,d,m);return}switch(d){case Yn:case Vt:case Z:case ce:case Pe:{dr(v,l,m.children);return}case lt:{Eo(l,"SuspenseList"),dr(v,l,m.children),eo(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Yc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Be:{Kc(v,l,d,m,S);return}case it:{Hr(v,l,d,m,S);return}case ue:{Wr(v,l,d,m);return}case Ie:{bs(v,l,d,m);return}case It:{Zc(v,l,d,m);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function Jc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(qc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qc=!0),v.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(v,l,d){try{return Qc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Oa=Oa!==null?Oa:Qi()),m}}function Qc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case de:{var m=d,S=m.type,_=m.props,B=m.ref;ea(v,l,S,_,B);return}case ke:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Y=d,re=Y._payload,Se=Y._init,$e;try{$e=Se(re)}catch(to){throw typeof to=="object"&&to!==null&&typeof to.then=="function"&&Eo(l,"Lazy"),to}dr(v,l,$e);return}}if(er(d)){Ql(v,l,d);return}var Xe=Br(d);if(Xe){Jc(d,Xe);var rt=Xe.call(d);if(rt){var xt=rt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=rt.next();while(!xt.done);Ql(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var ko=l.blockedSegment;ko.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,ko.lastPushedText);return}if(typeof d=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,Ss.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ql(v,l,d){for(var m=d.length,S=0;S<m;S++){var _=l.treeContext;l.treeContext=ju(_,m,S);try{Ci(v,l,d[S])}finally{l.treeContext=_}}}function eu(v,l,d){var m=l.blockedSegment,S=m.chunks.length,_=ol(v,S,null,m.formatContext,m.lastPushedText,!0);m.children.push(_),m.lastPushedText=!1;var B=zo(v,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(v,l,d){var m=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if(Hu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){eu(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,hs(_),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,hs(_),l.componentStack=B,Y}}function ef(v,l,d,m){var S=al(v,m);if(l===null?_a(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Xl(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function ws(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=Ks,ta(l,d,m)}function tu(v,l,d){var m=v.blockedBoundary,S=v.blockedSegment;if(S.status=Ks,m===null)l.allPendingTasks--,l.status!==Pa&&(l.status=Pa,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.errorDigest=l.onError(_);{var B="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=B+_.message:_=B+String(_);var Y=Ji;Ji=v;try{Xl(m,_)}finally{Ji=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(Se){return tu(Se,l,d)}),m.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function xs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===Co&&xs(v,d)}else{var m=v.completedSegments;m.push(l)}}function ta(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Zs;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===Co&&xs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===Co){xs(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function Kf(v,l){var d=l.blockedSegment;if(d.status===zl){hs(l.context);var m=null;m=Ji,Ji=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Co,ta(v,l.blockedBoundary,d)}catch(_){if(Hu(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Wc,ef(v,l.blockedBoundary,d,_)}finally{Ji=m}}}function tc(v){if(v.status!==Pa){var l=Fc(),d=Wl.current;Wl.current=rr;var m;m=ka.getCurrentStack,ka.getCurrentStack=Qi;var S=Xs;Hl(v.responseState);try{var _=v.pingedTasks,B;for(B=0;B<_.length;B++){var Y=_[B];Kf(v,Y)}_.splice(0,B),v.destination!==null&&Mi(v,v.destination)}catch(re){al(v,re),_a(v,re)}finally{Hl(S),Wl.current=d,ka.getCurrentStack=m,d===rr&&hs(l)}}}function ul(v,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case Co:{d.status=Yl;for(var S=!0,_=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var Se=Y[re];B<Se.index;B++)g(l,_[B]);S=cl(v,l,Se)}for(;B<_.length-1;B++)g(l,_[B]);return B<_.length&&(S=T(l,_[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cl(v,l,d){var m=d.boundary;if(m===null)return ul(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return Ue(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),ul(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var S=m.id=nn(v.responseState);return Ee(l,v.responseState,S),ul(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),Ee(l,v.responseState,m.id),ul(v,l,d),Tt(l,v.responseState);Ae(l,v.responseState);var _=m.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=_[0];return cl(v,l,B),ot(l,v.responseState)}}function nc(v,l,d){return Al(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),cl(v,l,d),vt(l,d.formatContext)}function rc(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];zr(v,l,d,_)}return m.length=0,vo(l,v.responseState,d.id,d.rootSegmentID)}function tf(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];if(!zr(v,l,d,_))return S++,m.splice(0,S),!1}return m.splice(0,S),!0}function zr(v,l,d,m){if(m.status===Yl)return!0;var S=m.id;if(S===-1){var _=m.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(v,l,m)}else return nu(v,l,m),Ya(l,v.responseState,S)}function Mi(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(cl(v,l,d),v.completedRootSegment=null,bi(l,v.responseState));var m=v.clientRenderedBoundaries,S;for(S=0;S<m.length;S++){var _=m[S];nc(v,l,_)}m.splice(0,S);var B=v.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];rc(v,l,Y)}B.splice(0,S),E(l),y(l);var re=v.partialBoundaries;for(S=0;S<re.length;S++){var Se=re[S];if(!tf(v,l,Se)){v.destination=null,S++,re.splice(0,S);return}}re.splice(0,S);var $e=v.completedBoundaries;for(S=0;S<$e.length;S++){var Xe=$e[S];rc(v,l,Xe)}$e.splice(0,S)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function nf(v){a(function(){return tc(v)})}function Zf(v,l){if(v.status===Da){v.status=Pa,H(l,v.fatalError);return}if(v.status!==Pa&&v.destination===null){v.destination=l;try{Mi(v,l)}catch(d){al(v,d),_a(v,d)}}}function fl(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return tu(m,v,l)}),d.clear(),v.destination!==null&&Mi(v,v.destination)}catch(m){al(v,m),_a(v,m)}}function Ra(v,l){return new Promise(function(d,m){var S,_,B=new Promise(function(rt,xt){_=rt,S=xt});function Y(){var rt=new ReadableStream({type:"bytes",pull:function(xt){Zf(Se,xt)},cancel:function(xt){fl(Se)}},{highWaterMark:0});rt.allReady=B,d(rt)}function re(rt){B.catch(function(){}),m(rt)}var Se=Gl(v,_i(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,_,Y,re,S);if(l&&l.signal){var $e=l.signal,Xe=function(){fl(Se,$e.reason),$e.removeEventListener("abort",Xe)};$e.addEventListener("abort",Xe)}nf(Se)})}Fh.renderToReadableStream=Ra,Fh.version=e}()),Fh}var Dc,_v;process.env.NODE_ENV==="production"?(Dc=X4(),_v=K4()):(Dc=Z4(),_v=J4());Dc.version;var Q4=Dc.renderToString;Dc.renderToStaticMarkup;Dc.renderToNodeStream;Dc.renderToStaticNodeStream;_v.renderToReadableStream;var e6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GD(t,e){return t(e={exports:{}},e.exports),e.exports}var t6=GD(function(t){(function(e){var n=function(j,R,H){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var U,ne=0,q=0;if(p(R))for(U=[],q=R.length;ne<q;ne++)U.push(n(j,R[ne],H));else for(var ie in U={},R)Object.prototype.hasOwnProperty.call(R,ie)&&(U[j(ie,H)]=n(j,R[ie],H));return U},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(R,H){return H?H.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var R=r(j);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(j,R){return function(H,U){var ne=(U=U||{}).separator||"_",q=U.split||/(?=[A-Z])/;return H.split(q).join(ne)}(j,R).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},y=function(j){return a.call(j)=="[object Date]"},g=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,R){var H=R&&"process"in R?R.process:R;return typeof H!="function"?j:function(U,ne){return H(U,j,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,R){return n(A(r,R),j)},decamelizeKeys:function(j,R){return n(A(o,R),j,R)},pascalizeKeys:function(j,R){return n(A(i,R),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(e6)}).decamelize,n6=function(t){if(Array.isArray(t))return t},r6=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},_1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},i6=function(t,e){if(t){if(typeof t=="string")return _1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_1(t,e):void 0}},o6=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},s6=function(t,e){return n6(t)||r6(t,e)||i6(t,e)||o6()},qD=GD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),a6=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},XD=function(t,e){if(t==null)return{};var n,r,i=a6(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},l6=X.createContext(null);function KD(t){var e=t.children,n=e===void 0?"":e,r=XD(t,["children"]);return typeof n!="string"&&(n=Q4(n)),X.createElement("template",qD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function ZD(t){var e=t.root,n=t.children;return Uv.createPortal(n===void 0?null:n,e)}function u6(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=XD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),H=s6(R,2),U=H[0],ne=H[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var ze=ae.error,tt=ae.styleSheets,Qe=ae.root;switch(ze.name){case"NotSupportedError":tt.length>0&&(Qe.adoptedStyleSheets=tt);break;default:throw ze}})({error:le,styleSheets:g,root:U})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,qD({key:q,ref:j},I),(U||E)&&X.createElement(l6.Provider,{value:U},E?X.createElement(KD,{shadowroot:c,shadowrootmode:c},t.render({root:U,ssr:E,children:A})):X.createElement(ZD,{root:U},t.render({root:U,ssr:E,children:A})))))});return e.propTypes={mode:As.oneOf(["open","closed"]),delegatesFocus:As.bool,styleSheets:As.arrayOf(As.instanceOf(globalThis.CSSStyleSheet)),ssr:As.bool,children:As.node},e}KD.propTypes={children:As.oneOfType([As.string,As.node])},ZD.propTypes={root:As.object.isRequired,children:As.node};var bm=new Map;function c6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=t6(i,{separator:"-"}),a="".concat(e,"-").concat(o);return bm.has(a)||bm.set(a,u6({tag:o,render:n})),bm.get(a)}})}var f6=c6();const d6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",h6=".favorite-bar{position:sticky;top:64px;z-index:var(--menu-z-index);border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0;height:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var R1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(R1||(R1={}));const p6=Object.freeze({x:0,y:0});var Ef;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Ef||(Ef={}));var A1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(A1||(A1={}));var Is;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Is||(Is={}));Is.Space,Is.Enter,Is.Esc,Is.Space,Is.Enter,Is.Tab;var I1;(function(t){t[t.RightClick=2]="RightClick"})(I1||(I1={}));var M1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(M1||(M1={}));var L1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(L1||(L1={}));Ef.Backward+"",Ef.Forward+"",Ef.Backward+"",Ef.Forward+"";var Rv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Rv||(Rv={}));var Av;(function(t){t.Optimized="optimized"})(Av||(Av={}));Rv.WhileDragging,Av.Optimized;({...p6});var F1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(F1||(F1={}));function g6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Is.Down,Is.Right,Is.Up,Is.Left;function m6(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const wm="MENU_ITEM";function v6(t){const e=Ep.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,m6(x),lb(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=g6(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};es.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const H=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),U=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=ik({type:wm,item:()=>({id:q.id,index:ie}),collect:Ye=>({isDragging:Ye.isDragging()})}),[{isOver:ze,isOverCurrent:tt},Qe]=dp(()=>({accept:wm,collect:Ye=>({isOver:Ye.isOver(),isOverCurrent:Ye.isOver({shallow:!0})}),drop:Ye=>{Ye.index!==ie&&(Ye.index<ie?(R(Ye.index,ie-1),Ye.index=ie-1):(R(Ye.index,ie),Ye.index=ie))}}),[]);let et="hover-off";return(tt||ze)&&(et="hover-on"),ae(Qe(x)),be.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...H},className:`item ${et}`,children:be.jsx(YD,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a,onClickItem:Ye=>{var pe;(pe=t.onClickItem)==null||pe.call(t,Ye),window.dispatchEvent(new CustomEvent("favoriteMenuPathChange",{detail:{path:Ye.path,menuItemId:Ye.id}}))}})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=dp(()=>({accept:wm,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),be.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...H}})};return console.log("isLoading fav",I),be.jsx(be.Fragment,{children:be.jsx("div",{className:g(`favorite-menu${n.length===0?" favorite-menu--empty":""}`),style:{width:"100%",display:"flex"},children:n.length>0&&be.jsx(Kv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:be.jsx(JE,{backend:uC,children:be.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>be.jsx(U,{item:q,index:ie},q.id)),be.jsx(ne,{})]})})})})})}function y6(t=32){const[e,n]=X.useState(!0),r=X.useRef(0),i=()=>{const o=document.getElementById("app-iframe");if(o&&o.contentWindow){const a=o.contentWindow.scrollY;a>r.current&&a>t?n(!1):a<r.current&&n(!0),r.current=a}};return X.useEffect(()=>{const o=document.getElementById("app-iframe");if(!o)return;const a=()=>{const c=o.contentWindow;c&&(c.addEventListener("scroll",i),n(!0),r.current=c.scrollY||0)};return o.addEventListener("load",a),()=>{o.removeEventListener("load",a);const c=o.contentWindow;c&&c.removeEventListener("scroll",i)}},[]),{isFavoriteBarVisible:e}}function b6(t){const{isFavoriteBarVisible:e}=y6();return be.jsxs(be.Fragment,{children:[be.jsx("style",{children:h6}),be.jsx("div",{className:`favorite-bar backdrop-delay-transition ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:be.jsx(f6.div,{children:be.jsx(Gv,{styles:[KT,q4,d6],children:be.jsx(v6,{...t})})})})]})}function lb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function w6(t){if(t.redirectUrl)return t.redirectUrl;if(t.path&&t.path.includes("http")){const e=new URL(t.path);return e.href.replace(e.origin,"")}return t.path||"#"}function JD({...t}){var Te,Le,He;const e=t.item,n=t.level||0,r=!!((Te=t.item.children)!=null&&Te.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(je,Fe=a)=>`${je} ${Fe} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),H=X.useRef();H!=null&&H.current&&((Le=H==null?void 0:H.current)==null?void 0:Le.scrollWidth)>((He=H==null?void 0:H.current)==null?void 0:He.clientWidth);const U=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!U.includes("local")&&U!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":Ep.Link,ae=w6(e),ze=n+1,tt=r&&o&&E,Qe=o||n===0?void 0:`${n+.25}rem`,et=()=>{A(!0)},Ye=()=>{A(!1)},pe="/global-menu-config/api/v1/menu-items/user/set-favorite",fe=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,YU(e.id,t.params.isOpen,t.params.onToggle);const Oe=fe||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ne=Object.entries(t.brandColors||{}).reduce((je,[Fe,Ve])=>(Ve&&(je[`--${Fe}`]=Ve),je),{}),me=U!==ne.origin||t.item.redirectUrl?"_blank":"_self";return be.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ne},onMouseOver:et,onMouseOut:Ye,onDragStart:je=>{o&&n>1&&je.preventDefault()},children:[be.jsx(aa.Tooltip,{placement:"top",title:Oe,disableInteractive:!0,children:be.jsxs(le,{target:me,to:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:Qe},onClick:je=>{var Fe;le==="a"&&me==="_blank"||(!r&&e.path&&(localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),(Fe=t.onClickItem)==null||Fe.call(t,ae)),!o&&t.toggleExpand(je))},children:[be.jsx(x6,{cls:T,item:e}),be.jsx("span",{className:T("menu-item__label"),ref:H,children:e.name}),be.jsx(S6,{tooltipPosition:Oe?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:je=>{const Fe={menuConfigId:e.id,isFavorite:je},Ve=t.baseUrl+pe;es.post(Ve,Fe).then(nt=>{var ct;j(je),Jv(ki("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,je),lb(t.item.id,je)}).catch(nt=>{var ct,pt;Yd(((pt=(ct=nt.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&be.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:be.jsx(g4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&be.jsx(m4,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:je})=>{var Fe;return be.jsx(jD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ze}`),style:sb({maxHeight:je,overflowY:"auto",paddingRight:3},je!=="auto"&&!!ze),children:(Fe=e.children)==null?void 0:Fe.map(Ve=>X.createElement(JD,{...t,key:Ve.id,item:Ve,level:ze}))})}})]})}function x6({item:t,cls:e}){return be.jsx("div",{className:e("menu-item__icon"),children:be.jsx(zD,{item:t})})}function S6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return be.jsxs(be.Fragment,{children:[t.isHovered&&!t.isFavorite&&be.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:be.jsx("div",{children:be.jsx(BD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&be.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:be.jsx("div",{children:be.jsx($D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function T6(){return be.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:be.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 C6(){return be.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:be.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function E6(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:be.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 k6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;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:5px 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;background-color:initial}.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%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{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;opacity:1}.menu-item__label.level-0.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{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.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__icon{transition:transform .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:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.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-0{height:48px}.menu-item__dropdown.collapsed.level-0{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}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",D6=t=>{const e=t.isCollapsed?0:t.depth*16;return be.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},P6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",O6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function QD(t){const e=!t||t==="true"?"64px":"17rem";document.documentElement.style.setProperty("--global-menu-width",e);const n=new CustomEvent("menuWidthChange",{detail:{menuWidth:e}});window.dispatchEvent(n)}const Kh=localStorage.getItem("isCollapsed");QD(Kh);function _6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function R6(t){const e=Ep.useLocation(),[n,r]=X.useState([]),i=n.map(fe=>fe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(Kh===null?!0:Kh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var fe;(fe=t.handleCallback)==null||fe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href),e.pathname+e.search+e.hash&&localStorage.setItem("latestClickMenuPath",(e.pathname+e.search+e.hash||"").replace(window.location.origin,""))},[e]);const A=j1(i,g),[I,j]=O6({initOpenIds:t.initOpenIds}),R=()=>{var fe,Ce;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),QD(p),p)I&&((fe=E.current)==null||fe.open(I));else{const Oe=n.filter(Ne=>Ne.parent===0).map(Ne=>Ne.id);console.log("closeIds:",Oe),(Ce=E.current)==null||Ce.close(Oe)}},[H,U]=X.useState(!1),ne=p?"collapsed":"expanded",q=fe=>`${fe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Ce,Oe;try{const Ne=t.menuPath||"/global-menu-config/api/v1/menu-items/user",me=t.baseUrl+Ne,{data:Te}=await es.get(me);let Le=Te.map(je=>({...je,parentKey:je.parentKey||0}));Le=tP(Le),t.replacePath&&(Le=eP(Le,t.replacePath));const He=Le.map(je=>({id:je.id,parent:je.parentKey,text:je.name,data:je}));r(He)}catch(Ne){console.error("Global menu",Ne),Yd(((Oe=(Ce=Ne.response)==null?void 0:Ce.data)==null?void 0:Oe.errorMessage)||Ne.message||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const fe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!fe.ok)throw new Error("Failed to fetch favorite items");const Ce=await fe.json();f(Ce),document.documentElement.style.setProperty("--favorite-menu-height",`${Ce.length?57:0}px`)}catch(fe){document.documentElement.style.setProperty("--favorite-menu-height","0px"),console.error("Error fetching favorite items:",fe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const fe=Ce=>{f(Ce.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",fe),()=>{window.removeEventListener("favoriteOrderUpdated",fe)}},[]),X.useEffect(()=>{let fe=[];c.forEach(Ne=>{const me=i.find(Te=>Te.id===Ne&&Te.isFavorite===!0);me&&(fe=[...fe,me])});function Ce(Ne){return i.every(me=>me.parentKey!==Ne.id)?Ne:{...Ne,children:i.filter(me=>me.parentKey===Ne.id).map(me=>Ce(me))}}const Oe=fe.map(Ne=>Ce(Ne));_6(Oe)},[i]);const ze=(fe,Ce,Oe)=>{let Ne=fe.find(me=>me.id===Oe);for(;Ne;){if(Ne.parentKey===Ce)return!0;Ne=fe.find(me=>me.id===(Ne==null?void 0:Ne.parentKey))}return!1},tt=X.useRef(I);X.useEffect(()=>{tt.current=I},[I]),X.useEffect(()=>{const fe=Ce=>{var je;const Oe=Ce,{path:Ne}=Oe.detail,Te=j1(i,Ne).map(Fe=>Fe.id),He=tt.current.filter(Fe=>Te.includes(Fe)?!1:!Te.some(Ve=>ze(i,Fe,Ve)));console.log("idsToClose:",He),p||(je=E.current)==null||je.open(Te),setTimeout(()=>{var Fe;(Fe=E.current)==null||Fe.close(He)},0),j(Te)};return window.addEventListener("favoriteMenuPathChange",fe),()=>{window.removeEventListener("favoriteMenuPathChange",fe)}},[i]);function Qe(fe){const Ce=fe.detail.menuItem;r(Oe=>Oe.map(Ne=>Ne.id!==Ce.id?Ne:{...Ne,data:Ce})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Qe),()=>{window.removeEventListener("updateFavoriteMenu",Qe)}),[]),X.useLayoutEffect(()=>{var Ne;const fe=localStorage.getItem("scrollPos");fe&&ie.current&&setTimeout(()=>{const me=ie.current.getScrollElement();me.scrollTop=parseInt(fe)},0);const Ce=()=>{if(ie.current){const me=ie.current.getScrollElement();localStorage.setItem("scrollPos",me.scrollTop.toString())}},Oe=(Ne=ie.current)==null?void 0:Ne.getScrollElement();return Oe==null||Oe.addEventListener("scroll",Ce),()=>{Oe==null||Oe.removeEventListener("scroll",Ce)}},[i]);function et(fe){a(!0);const Ce=[...n],Oe=[...fe],Ne=Oe.filter(Ve=>Ve.parent===0),me=Oe.filter(Ve=>Ve.parent!==0),Te=Ne.find(Ve=>{var nt;return((nt=Ve.data)==null?void 0:nt.name)==="Home"}),Le=Ne.filter(Ve=>{var nt;return((nt=Ve.data)==null?void 0:nt.name)!=="Home"}),je=[...Te?[Te,...Le]:Le,...me];r(je);const Fe=je.map((Ve,nt)=>({menuItemId:Ve.id,order:nt}));es.post("/global-menu-config/api/v1/menu-items/user",Fe,{baseURL:t.baseUrl}).then(()=>{}).catch(Ve=>{console.error(Ve),r(Ce)}).finally(()=>{a(!1)})}const Ye=X.useMemo(()=>Kh==="false"?I:[],[]),pe=document.getElementById("global-menu-container");return be.jsxs("div",{className:q("side-bar"),children:[be.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:be.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?be.jsx(C6,{}):be.jsx(T6,{})})}),be.jsx(Kv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:be.jsx(JE,{backend:mU,options:VU(),children:be.jsx(iH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:fe=>{var Ce;return((Ce=fe.data)==null?void 0:Ce.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:et,render:(fe,Ce)=>{function Oe(Le){return n.every(He=>He.parent!==Le.id)?Le:{...Le,children:n.filter(He=>He.parent===Le.id).map(He=>Oe(He.data))}}const Ne=Oe(fe.data),me=Le=>A.some(He=>He.id===Le);function Te(Le,He){r(je=>je.map(Fe=>Fe.id===Le?{...Fe,data:{...Fe.data,isFavorite:He}}:Fe)),ae()}return be.jsx(JD,{onClickItem:t.onClickItem,isInternalApp:t.isInternalApp,isActive:me,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:fe,params:Ce,nodes:n,item:Ne,expanded:()=>!1,toggleExpand:Le=>{var He;if(Le.stopPropagation(),Ce.isOpen)Ce.onToggle();else{const je=n.filter(Fe=>Fe.parent===fe.parent&&Fe.id!==fe.id).map(Fe=>Fe.id);console.log(" closeIds:",je),(He=E.current)==null||He.open(fe.id),setTimeout(()=>{var Fe;(Fe=E.current)==null||Fe.close(je)},0)}},level:Ce.depth,onSetFavoriteSuccess:Te})},placeholderRender:(fe,{depth:Ce})=>{var Oe;return be.jsx(D6,{node:fe,depth:Ce,color:(Oe=t.brandColors)==null?void 0:Oe.primary300,isCollapsed:p})},canDrag:fe=>{var Ce;return!o&&((Ce=fe==null?void 0:fe.data)==null?void 0:Ce.name)!=="Home"},canDrop:(fe,{dragSource:Ce,dropTargetId:Oe})=>(Ce==null?void 0:Ce.parent)===Oe,onDragStart:fe=>{console.log("onDragStart",fe)},onChangeOpen:fe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",fe),j(fe))},initialOpen:Ye})})}),be.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[be.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>{pe.style.setProperty("z-index","1304"),pe.classList.remove("backdrop-delay-transition"),U(!0)},children:[be.jsx(E6,{className:q("side-bar__icon-logout")}),be.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),be.jsx(NT,{isOpen:H,onClose:()=>{pe.style.setProperty("z-index","var(--menu-z-index)"),pe.classList.add("backdrop-delay-transition"),U(!1)},onConfirm:()=>t.logout?t.logout():fT(t.baseUrl)})]})]})}const N1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function A6(t,e){const r=t.replace(window.origin,"").replace("/app",""),i=new URL(r,window.location.origin),o=new URL(e.replace("/app",""),window.origin),a=(localStorage.getItem("latestClickMenuPath")||"").replace("/app","");return r&&N1[r]&&N1[r].some(c=>e.replace("/app","").includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function j1(t,e){const n=t.map(a=>({item:a,priority:a.path?A6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function eP(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=eP(n.children,e)):n.path=e(n.path),n})}function tP(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+"/app"+n.path}:(n.children&&(n.children=tP(n.children)),n))}function I6(t){return be.jsx(Gv,{id:"global-menu-container",styles:[KT,k6,P6],style:{zIndex:"var(--menu-z-index)",position:"relative"},className:"backdrop-delay-transition",children:be.jsx(R6,{...t})})}const Nh={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"},M6=()=>{const{t}=xT();return be.jsx("div",{className:"unauth__container "+Nh["page-container"],children:be.jsxs("div",{className:"unauth__main-content "+Nh["page-main-content"],children:[be.jsx(L6,{}),be.jsxs("div",{className:"unauth__main-text",children:[be.jsx("h2",{className:"unauth__main-text__title "+Nh["page-title"],children:t("components.unauthorizedPage.title")}),be.jsxs("p",{className:"unauth__main-text__desc "+Nh["text-base"],children:[t("components.unauthorizedPage.description1")," ",be.jsx("br",{})," ",t("components.unauthorizedPage.description2")]})]})]})})},L6=()=>be.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[be.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),be.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),be.jsx("defs",{children:be.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[be.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),be.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),be.jsx("feOffset",{dy:"1"}),be.jsx("feGaussianBlur",{stdDeviation:"1"}),be.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),be.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),be.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});var Sp={exports:{}};/**
135
+ `+m.stack}}var Wl=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,zl=0,Co=1,Yl=2,Ks=3,Wc=4,il=0,Da=1,Pa=2,qu=12800;function zc(v){return console.error(v),null}function Zs(){}function Gl(v,l,d,m,S,_,B,Y,re){var Se=[],$e=new Set,Xe={destination:null,responseState:l,progressiveChunkSize:m===void 0?qu:m,status:il,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:$e,pingedTasks:Se,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?zc:S,onAllReady:_===void 0?Zs:_,onShellReady:B===void 0?Zs:B,onShellError:Y===void 0?Zs:Y,onFatalError:re===void 0?Zs:re},rt=ol(Xe,0,null,d,!1,!1);rt.parentFlushed=!0;var xt=zo(Xe,v,null,rt,$e,Gn,Fl,zf);return Se.push(xt),Xe}function Wo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return tc(v)})}function ql(v,l){return{id:Ri,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function zo(v,l,d,m,S,_,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Wo(v,re)},blockedBoundary:d,blockedSegment:m,abortSet:S,legacyContext:_,context:B,treeContext:Y};return re.componentStack=null,S.add(re),re}function ol(v,l,d,m,S,_){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:S,textEmbedded:_}}var Ji=null;function Qi(){return Ji===null||Ji.componentStack===null?"":Ea(Ji.componentStack)}function Eo(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function sl(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ys(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function eo(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Oa=null;function Xl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Oa||Qi();Oa=null,v.errorMessage=d,v.errorComponentStack=m}}function al(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function _a(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=Pa,H(v.destination,l)):(v.status=Da,v.fatalError=l)}function Yc(v,l,d){Eo(l,"Suspense");var m=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,B=d.children,Y=new Set,re=ql(v,Y),Se=S.chunks.length,$e=ol(v,Se,re,S.formatContext,!1,!1);S.children.push($e),S.lastPushedText=!1;var Xe=ol(v,0,null,S.formatContext,!1,!1);Xe.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=Xe;try{if(Ci(v,l,B),_n(Xe.chunks,v.responseState,Xe.lastPushedText,Xe.textEmbedded),Xe.status=Co,xs(re,Xe),re.pendingTasks===0){eo(l);return}}catch(xt){Xe.status=Wc,re.forceClientRender=!0,re.errorDigest=al(v,xt),Xl(re,xt)}finally{l.blockedBoundary=m,l.blockedSegment=S}var rt=zo(v,_,m,$e,Y,l.legacyContext,l.context,l.treeContext);rt.componentStack=l.componentStack,v.pingedTasks.push(rt),eo(l)}function Xu(v,l,d,m){Eo(l,d);var S=l.blockedSegment,_=fo(S.chunks,d,m,v.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,m),Ci(v,l,_),S.formatContext=B,Lo(S.chunks,d),S.lastPushedText=!1,eo(l)}function Ku(v){return v.prototype&&v.prototype.isReactComponent}function Js(v,l,d,m,S){var _={};Uu(l,_);var B=d(m,S);return Gs(d,m,B,S)}function Zu(v,l,d,m,S){var _=d.render();d.props!==S&&(Zl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),Zl=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Mu(d,m,Y,B);l.legacyContext=re,dr(v,l,_),l.legacyContext=Y;return}}dr(v,l,_)}function Kl(v,l,d,m){ys(l,d);var S=cs(d,l.legacyContext),_=So(d,m,S);tl(_,d,m,S),Zu(v,l,_,d,m),eo(l)}var Bt={},ll={},Ju={},Qs={},Zl=!1,Gc={},qc=!1,ri=!1,Xc=!1;function Jl(v,l,d,m){var S;if(S=cs(d,l.legacyContext),sl(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=pn(d)||"Unknown";Bt[_]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),Bt[_]=!0)}var B=Js(v,l,d,m,S),Y=Ur();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=pn(d)||"Unknown";ll[re]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),ll[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var Se=pn(d)||"Unknown";ll[Se]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Se,Se,Se),ll[Se]=!0)}tl(B,d,m,S),Zu(v,l,B,d,m)}else if(Qu(d),Y){var $e=l.treeContext,Xe=1,rt=0;l.treeContext=ju($e,Xe,rt);try{dr(v,l,B)}finally{l.treeContext=$e}}else dr(v,l,B);eo(l)}function Qu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Gc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Gc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Qs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Qs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Ju[m]||(i("%s: Function components do not support contextType.",m),Ju[m]=!0)}}}function ec(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var S in m)d[S]===void 0&&(d[S]=m[S]);return d}return l}function Kc(v,l,d,m,S){sl(l,d.render);var _=Js(v,l,d.render,m,S),B=Ur();if(B){var Y=l.treeContext,re=1,Se=0;l.treeContext=ju(Y,re,Se);try{dr(v,l,_)}finally{l.treeContext=Y}}else dr(v,l,_);eo(l)}function Hr(v,l,d,m,S){var _=d.type,B=ec(_,m);ea(v,l,_,B,S)}function bs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(Xc||(Xc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=m.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Sa(d),B=S(_);dr(v,l,B)}function Wr(v,l,d,m){var S=d._context,_=m.value,B=m.children,Y;Y=l.context,l.context=Lu(S,_),dr(v,l,B),l.context=Vf(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zc(v,l,d,m,S){Eo(l,"Lazy");var _=d._payload,B=d._init,Y=B(_),re=ec(Y,m);ea(v,l,Y,re,S),eo(l)}function ea(v,l,d,m,S){if(typeof d=="function")if(Ku(d)){Kl(v,l,d,m);return}else{Jl(v,l,d,m);return}if(typeof d=="string"){Xu(v,l,d,m);return}switch(d){case Yn:case Vt:case Z:case ce:case Pe:{dr(v,l,m.children);return}case lt:{Eo(l,"SuspenseList"),dr(v,l,m.children),eo(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Yc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Be:{Kc(v,l,d,m,S);return}case it:{Hr(v,l,d,m,S);return}case ue:{Wr(v,l,d,m);return}case Ie:{bs(v,l,d,m);return}case It:{Zc(v,l,d,m);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function Jc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(qc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qc=!0),v.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(v,l,d){try{return Qc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Oa=Oa!==null?Oa:Qi()),m}}function Qc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case de:{var m=d,S=m.type,_=m.props,B=m.ref;ea(v,l,S,_,B);return}case ke:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Y=d,re=Y._payload,Se=Y._init,$e;try{$e=Se(re)}catch(to){throw typeof to=="object"&&to!==null&&typeof to.then=="function"&&Eo(l,"Lazy"),to}dr(v,l,$e);return}}if(er(d)){Ql(v,l,d);return}var Xe=Br(d);if(Xe){Jc(d,Xe);var rt=Xe.call(d);if(rt){var xt=rt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=rt.next();while(!xt.done);Ql(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var ko=l.blockedSegment;ko.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,ko.lastPushedText);return}if(typeof d=="number"){var Ss=l.blockedSegment;Ss.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,Ss.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ql(v,l,d){for(var m=d.length,S=0;S<m;S++){var _=l.treeContext;l.treeContext=ju(_,m,S);try{Ci(v,l,d[S])}finally{l.treeContext=_}}}function eu(v,l,d){var m=l.blockedSegment,S=m.chunks.length,_=ol(v,S,null,m.formatContext,m.lastPushedText,!0);m.children.push(_),m.lastPushedText=!1;var B=zo(v,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(v,l,d){var m=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if(Hu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){eu(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,hs(_),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,hs(_),l.componentStack=B,Y}}function ef(v,l,d,m){var S=al(v,m);if(l===null?_a(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Xl(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function ws(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=Ks,ta(l,d,m)}function tu(v,l,d){var m=v.blockedBoundary,S=v.blockedSegment;if(S.status=Ks,m===null)l.allPendingTasks--,l.status!==Pa&&(l.status=Pa,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.errorDigest=l.onError(_);{var B="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=B+_.message:_=B+String(_);var Y=Ji;Ji=v;try{Xl(m,_)}finally{Ji=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(Se){return tu(Se,l,d)}),m.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function xs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===Co&&xs(v,d)}else{var m=v.completedSegments;m.push(l)}}function ta(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Zs;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===Co&&xs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ws,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===Co){xs(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function Kf(v,l){var d=l.blockedSegment;if(d.status===zl){hs(l.context);var m=null;m=Ji,Ji=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=Co,ta(v,l.blockedBoundary,d)}catch(_){if(Hu(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Wc,ef(v,l.blockedBoundary,d,_)}finally{Ji=m}}}function tc(v){if(v.status!==Pa){var l=Fc(),d=Wl.current;Wl.current=rr;var m;m=ka.getCurrentStack,ka.getCurrentStack=Qi;var S=Xs;Hl(v.responseState);try{var _=v.pingedTasks,B;for(B=0;B<_.length;B++){var Y=_[B];Kf(v,Y)}_.splice(0,B),v.destination!==null&&Mi(v,v.destination)}catch(re){al(v,re),_a(v,re)}finally{Hl(S),Wl.current=d,ka.getCurrentStack=m,d===rr&&hs(l)}}}function ul(v,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case Co:{d.status=Yl;for(var S=!0,_=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var Se=Y[re];B<Se.index;B++)g(l,_[B]);S=cl(v,l,Se)}for(;B<_.length-1;B++)g(l,_[B]);return B<_.length&&(S=T(l,_[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cl(v,l,d){var m=d.boundary;if(m===null)return ul(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return Ue(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),ul(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var S=m.id=nn(v.responseState);return Ee(l,v.responseState,S),ul(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),Ee(l,v.responseState,m.id),ul(v,l,d),Tt(l,v.responseState);Ae(l,v.responseState);var _=m.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=_[0];return cl(v,l,B),ot(l,v.responseState)}}function nc(v,l,d){return Al(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),cl(v,l,d),vt(l,d.formatContext)}function rc(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];zr(v,l,d,_)}return m.length=0,vo(l,v.responseState,d.id,d.rootSegmentID)}function tf(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];if(!zr(v,l,d,_))return S++,m.splice(0,S),!1}return m.splice(0,S),!0}function zr(v,l,d,m){if(m.status===Yl)return!0;var S=m.id;if(S===-1){var _=m.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(v,l,m)}else return nu(v,l,m),Ya(l,v.responseState,S)}function Mi(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(cl(v,l,d),v.completedRootSegment=null,bi(l,v.responseState));var m=v.clientRenderedBoundaries,S;for(S=0;S<m.length;S++){var _=m[S];nc(v,l,_)}m.splice(0,S);var B=v.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];rc(v,l,Y)}B.splice(0,S),E(l),y(l);var re=v.partialBoundaries;for(S=0;S<re.length;S++){var Se=re[S];if(!tf(v,l,Se)){v.destination=null,S++,re.splice(0,S);return}}re.splice(0,S);var $e=v.completedBoundaries;for(S=0;S<$e.length;S++){var Xe=$e[S];rc(v,l,Xe)}$e.splice(0,S)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function nf(v){a(function(){return tc(v)})}function Zf(v,l){if(v.status===Da){v.status=Pa,H(l,v.fatalError);return}if(v.status!==Pa&&v.destination===null){v.destination=l;try{Mi(v,l)}catch(d){al(v,d),_a(v,d)}}}function fl(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return tu(m,v,l)}),d.clear(),v.destination!==null&&Mi(v,v.destination)}catch(m){al(v,m),_a(v,m)}}function Ra(v,l){return new Promise(function(d,m){var S,_,B=new Promise(function(rt,xt){_=rt,S=xt});function Y(){var rt=new ReadableStream({type:"bytes",pull:function(xt){Zf(Se,xt)},cancel:function(xt){fl(Se)}},{highWaterMark:0});rt.allReady=B,d(rt)}function re(rt){B.catch(function(){}),m(rt)}var Se=Gl(v,_i(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,_,Y,re,S);if(l&&l.signal){var $e=l.signal,Xe=function(){fl(Se,$e.reason),$e.removeEventListener("abort",Xe)};$e.addEventListener("abort",Xe)}nf(Se)})}Nh.renderToReadableStream=Ra,Nh.version=e}()),Nh}var Dc,_v;process.env.NODE_ENV==="production"?(Dc=X4(),_v=K4()):(Dc=Z4(),_v=J4());Dc.version;var Q4=Dc.renderToString;Dc.renderToStaticMarkup;Dc.renderToNodeStream;Dc.renderToStaticNodeStream;_v.renderToReadableStream;var e6=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GD(t,e){return t(e={exports:{}},e.exports),e.exports}var t6=GD(function(t){(function(e){var n=function(j,R,H){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var U,ne=0,q=0;if(p(R))for(U=[],q=R.length;ne<q;ne++)U.push(n(j,R[ne],H));else for(var ie in U={},R)Object.prototype.hasOwnProperty.call(R,ie)&&(U[j(ie,H)]=n(j,R[ie],H));return U},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(R,H){return H?H.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var R=r(j);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(j,R){return function(H,U){var ne=(U=U||{}).separator||"_",q=U.split||/(?=[A-Z])/;return H.split(q).join(ne)}(j,R).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},y=function(j){return a.call(j)=="[object Date]"},g=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,R){var H=R&&"process"in R?R.process:R;return typeof H!="function"?j:function(U,ne){return H(U,j,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,R){return n(A(r,R),j)},decamelizeKeys:function(j,R){return n(A(o,R),j,R)},pascalizeKeys:function(j,R){return n(A(i,R),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(e6)}).decamelize,n6=function(t){if(Array.isArray(t))return t},r6=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},_1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},i6=function(t,e){if(t){if(typeof t=="string")return _1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_1(t,e):void 0}},o6=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},s6=function(t,e){return n6(t)||r6(t,e)||i6(t,e)||o6()},qD=GD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),a6=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},XD=function(t,e){if(t==null)return{};var n,r,i=a6(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},l6=X.createContext(null);function KD(t){var e=t.children,n=e===void 0?"":e,r=XD(t,["children"]);return typeof n!="string"&&(n=Q4(n)),X.createElement("template",qD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function ZD(t){var e=t.root,n=t.children;return Uv.createPortal(n===void 0?null:n,e)}function u6(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=XD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),H=s6(R,2),U=H[0],ne=H[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var ze=ae.error,tt=ae.styleSheets,Qe=ae.root;switch(ze.name){case"NotSupportedError":tt.length>0&&(Qe.adoptedStyleSheets=tt);break;default:throw ze}})({error:le,styleSheets:g,root:U})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,qD({key:q,ref:j},I),(U||E)&&X.createElement(l6.Provider,{value:U},E?X.createElement(KD,{shadowroot:c,shadowrootmode:c},t.render({root:U,ssr:E,children:A})):X.createElement(ZD,{root:U},t.render({root:U,ssr:E,children:A})))))});return e.propTypes={mode:As.oneOf(["open","closed"]),delegatesFocus:As.bool,styleSheets:As.arrayOf(As.instanceOf(globalThis.CSSStyleSheet)),ssr:As.bool,children:As.node},e}KD.propTypes={children:As.oneOfType([As.string,As.node])},ZD.propTypes={root:As.object.isRequired,children:As.node};var bm=new Map;function c6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=t6(i,{separator:"-"}),a="".concat(e,"-").concat(o);return bm.has(a)||bm.set(a,u6({tag:o,render:n})),bm.get(a)}})}var f6=c6();const d6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",h6=".favorite-bar{position:sticky;top:64px;z-index:var(--menu-z-index);border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0;height:0;z-index:-1}.favorite-bar--visible{transform:translateY(0);opacity:1}";var R1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(R1||(R1={}));const p6=Object.freeze({x:0,y:0});var Ef;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Ef||(Ef={}));var A1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(A1||(A1={}));var Is;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Is||(Is={}));Is.Space,Is.Enter,Is.Esc,Is.Space,Is.Enter,Is.Tab;var I1;(function(t){t[t.RightClick=2]="RightClick"})(I1||(I1={}));var M1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(M1||(M1={}));var L1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(L1||(L1={}));Ef.Backward+"",Ef.Forward+"",Ef.Backward+"",Ef.Forward+"";var Rv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Rv||(Rv={}));var Av;(function(t){t.Optimized="optimized"})(Av||(Av={}));Rv.WhileDragging,Av.Optimized;({...p6});var F1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(F1||(F1={}));function g6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Is.Down,Is.Right,Is.Up,Is.Left;function m6(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const wm="MENU_ITEM";function v6(t){const e=_d.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,m6(x),lb(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=g6(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};es.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const H=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),U=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=ik({type:wm,item:()=>({id:q.id,index:ie}),collect:Ye=>({isDragging:Ye.isDragging()})}),[{isOver:ze,isOverCurrent:tt},Qe]=hp(()=>({accept:wm,collect:Ye=>({isOver:Ye.isOver(),isOverCurrent:Ye.isOver({shallow:!0})}),drop:Ye=>{Ye.index!==ie&&(Ye.index<ie?(R(Ye.index,ie-1),Ye.index=ie-1):(R(Ye.index,ie),Ye.index=ie))}}),[]);let et="hover-off";return(tt||ze)&&(et="hover-on"),ae(Qe(x)),be.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...H},className:`item ${et}`,children:be.jsx(YD,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a,onClickItem:Ye=>{var pe;(pe=t.onClickItem)==null||pe.call(t,Ye),window.dispatchEvent(new CustomEvent("favoriteMenuPathChange",{detail:{path:Ye.path,menuItemId:Ye.id}}))}})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=hp(()=>({accept:wm,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),be.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...H}})};return console.log("isLoading fav",I),be.jsx(be.Fragment,{children:be.jsx("div",{className:g(`favorite-menu${n.length===0?" favorite-menu--empty":""}`),style:{width:"100%",display:"flex"},children:n.length>0&&be.jsx(Kv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:be.jsx(JE,{backend:uC,children:be.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>be.jsx(U,{item:q,index:ie},q.id)),be.jsx(ne,{})]})})})})})}function y6(t=32){const[e,n]=X.useState(!0),r=X.useRef(0),i=()=>{const o=document.getElementById("app-iframe");if(o&&o.contentWindow){const a=o.contentWindow.scrollY;a>r.current&&a>t?n(!1):a<r.current&&n(!0),r.current=a}};return X.useEffect(()=>{const o=document.getElementById("app-iframe");if(!o)return;const a=()=>{const c=o.contentWindow;c&&(c.addEventListener("scroll",i),n(!0),r.current=c.scrollY||0)};return o.addEventListener("load",a),()=>{o.removeEventListener("load",a);const c=o.contentWindow;c&&c.removeEventListener("scroll",i)}},[]),{isFavoriteBarVisible:e}}function b6(t){const{isFavoriteBarVisible:e}=y6();return be.jsxs(be.Fragment,{children:[be.jsx("style",{children:h6}),be.jsx("div",{className:`favorite-bar backdrop-delay-transition ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:be.jsx(f6.div,{children:be.jsx(Gv,{styles:[KT,q4,d6],children:be.jsx(v6,{...t})})})})]})}function lb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function w6(t){if(t.redirectUrl)return t.redirectUrl;if(t.path&&t.path.includes("http")){const e=new URL(t.path);return e.href.replace(e.origin,"")}return t.path||"#"}function JD({...t}){var Te,Le,He;const e=t.item,n=t.level||0,r=!!((Te=t.item.children)!=null&&Te.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(je,Fe=a)=>`${je} ${Fe} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),H=X.useRef();H!=null&&H.current&&((Le=H==null?void 0:H.current)==null?void 0:Le.scrollWidth)>((He=H==null?void 0:H.current)==null?void 0:He.clientWidth);const U=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!U.includes("local")&&U!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":_d.Link,ae=w6(e),ze=n+1,tt=r&&o&&E,Qe=o||n===0?void 0:`${n+.25}rem`,et=()=>{A(!0)},Ye=()=>{A(!1)},pe="/global-menu-config/api/v1/menu-items/user/set-favorite",fe=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,YU(e.id,t.params.isOpen,t.params.onToggle);const Oe=fe||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ne=Object.entries(t.brandColors||{}).reduce((je,[Fe,Ve])=>(Ve&&(je[`--${Fe}`]=Ve),je),{}),me=U!==ne.origin||t.item.redirectUrl?"_blank":"_self";return be.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ne},onMouseOver:et,onMouseOut:Ye,onDragStart:je=>{o&&n>1&&je.preventDefault()},children:[be.jsx(aa.Tooltip,{placement:"top",title:Oe,disableInteractive:!0,children:be.jsxs(le,{target:me,to:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:Qe},onClick:je=>{var Fe;le==="a"&&me==="_blank"||(!r&&e.path&&(localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),(Fe=t.onClickItem)==null||Fe.call(t,ae)),!o&&t.toggleExpand(je))},children:[be.jsx(x6,{cls:T,item:e}),be.jsx("span",{className:T("menu-item__label"),ref:H,children:e.name}),be.jsx(S6,{tooltipPosition:Oe?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:je=>{const Fe={menuConfigId:e.id,isFavorite:je},Ve=t.baseUrl+pe;es.post(Ve,Fe).then(nt=>{var ct;j(je),Jv(ki("components.menu.pushSuccess.menuSuccess",{defaultValue:"Set favorite menu item successful"})),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,je),lb(t.item.id,je)}).catch(nt=>{var ct,pt;Gd(((pt=(ct=nt.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))})}}),r&&be.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:be.jsx(g4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&be.jsx(m4,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:je})=>{var Fe;return be.jsx(jD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ze}`),style:sb({maxHeight:je,overflowY:"auto",paddingRight:3},je!=="auto"&&!!ze),children:(Fe=e.children)==null?void 0:Fe.map(Ve=>X.createElement(JD,{...t,key:Ve.id,item:Ve,level:ze}))})}})]})}function x6({item:t,cls:e}){return be.jsx("div",{className:e("menu-item__icon"),children:be.jsx(zD,{item:t})})}function S6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return be.jsxs(be.Fragment,{children:[t.isHovered&&!t.isFavorite&&be.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:be.jsx("div",{children:be.jsx(BD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&be.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:be.jsx("div",{children:be.jsx($D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function T6(){return be.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:be.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 C6(){return be.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:be.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function E6(t){return be.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:be.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 k6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;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:5px 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;background-color:initial}.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%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{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;opacity:1}.menu-item__label.level-0.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{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.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__icon{transition:transform .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:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.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-0{height:48px}.menu-item__dropdown.collapsed.level-0{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}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",D6=t=>{const e=t.isCollapsed?0:t.depth*16;return be.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},P6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",O6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function QD(t){const e=!t||t==="true"?"64px":"17rem";document.documentElement.style.setProperty("--global-menu-width",e);const n=new CustomEvent("menuWidthChange",{detail:{menuWidth:e}});window.dispatchEvent(n)}const Zh=localStorage.getItem("isCollapsed");QD(Zh);function _6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function R6(t){const e=_d.useLocation(),[n,r]=X.useState([]),i=n.map(fe=>fe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(Zh===null?!0:Zh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var fe;(fe=t.handleCallback)==null||fe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href),e.pathname+e.search+e.hash&&localStorage.setItem("latestClickMenuPath",(e.pathname+e.search+e.hash||"").replace(window.location.origin,""))},[e]);const A=j1(i,g),[I,j]=O6({initOpenIds:t.initOpenIds}),R=()=>{var fe,Ce;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),QD(p),p)I&&((fe=E.current)==null||fe.open(I));else{const Oe=n.filter(Ne=>Ne.parent===0).map(Ne=>Ne.id);console.log("closeIds:",Oe),(Ce=E.current)==null||Ce.close(Oe)}},[H,U]=X.useState(!1),ne=p?"collapsed":"expanded",q=fe=>`${fe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Ce,Oe;try{const Ne=t.menuPath||"/global-menu-config/api/v1/menu-items/user",me=t.baseUrl+Ne,{data:Te}=await es.get(me);let Le=Te.map(je=>({...je,parentKey:je.parentKey||0}));Le=tP(Le),t.replacePath&&(Le=eP(Le,t.replacePath));const He=Le.map(je=>({id:je.id,parent:je.parentKey,text:je.name,data:je}));r(He)}catch(Ne){console.error("Global menu",Ne),Gd(((Oe=(Ce=Ne.response)==null?void 0:Ce.data)==null?void 0:Oe.errorMessage)||Ne.message||ki("components.menu.pushError.menuError",{defaultValue:"Have error when set favorite menu item"}))}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const fe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!fe.ok)throw new Error("Failed to fetch favorite items");const Ce=await fe.json();f(Ce),document.documentElement.style.setProperty("--favorite-menu-height",`${Ce.length?57:0}px`)}catch(fe){document.documentElement.style.setProperty("--favorite-menu-height","0px"),console.error("Error fetching favorite items:",fe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const fe=Ce=>{f(Ce.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",fe),()=>{window.removeEventListener("favoriteOrderUpdated",fe)}},[]),X.useEffect(()=>{let fe=[];c.forEach(Ne=>{const me=i.find(Te=>Te.id===Ne&&Te.isFavorite===!0);me&&(fe=[...fe,me])});function Ce(Ne){return i.every(me=>me.parentKey!==Ne.id)?Ne:{...Ne,children:i.filter(me=>me.parentKey===Ne.id).map(me=>Ce(me))}}const Oe=fe.map(Ne=>Ce(Ne));_6(Oe)},[i]);const ze=(fe,Ce,Oe)=>{let Ne=fe.find(me=>me.id===Oe);for(;Ne;){if(Ne.parentKey===Ce)return!0;Ne=fe.find(me=>me.id===(Ne==null?void 0:Ne.parentKey))}return!1},tt=X.useRef(I);X.useEffect(()=>{tt.current=I},[I]),X.useEffect(()=>{const fe=Ce=>{var je;const Oe=Ce,{path:Ne}=Oe.detail,Te=j1(i,Ne).map(Fe=>Fe.id),He=tt.current.filter(Fe=>Te.includes(Fe)?!1:!Te.some(Ve=>ze(i,Fe,Ve)));console.log("idsToClose:",He),p||(je=E.current)==null||je.open(Te),setTimeout(()=>{var Fe;(Fe=E.current)==null||Fe.close(He)},0),j(Te)};return window.addEventListener("favoriteMenuPathChange",fe),()=>{window.removeEventListener("favoriteMenuPathChange",fe)}},[i]);function Qe(fe){const Ce=fe.detail.menuItem;r(Oe=>Oe.map(Ne=>Ne.id!==Ce.id?Ne:{...Ne,data:Ce})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Qe),()=>{window.removeEventListener("updateFavoriteMenu",Qe)}),[]),X.useLayoutEffect(()=>{var Ne;const fe=localStorage.getItem("scrollPos");fe&&ie.current&&setTimeout(()=>{const me=ie.current.getScrollElement();me.scrollTop=parseInt(fe)},0);const Ce=()=>{if(ie.current){const me=ie.current.getScrollElement();localStorage.setItem("scrollPos",me.scrollTop.toString())}},Oe=(Ne=ie.current)==null?void 0:Ne.getScrollElement();return Oe==null||Oe.addEventListener("scroll",Ce),()=>{Oe==null||Oe.removeEventListener("scroll",Ce)}},[i]);function et(fe){a(!0);const Ce=[...n],Oe=[...fe],Ne=Oe.filter(Ve=>Ve.parent===0),me=Oe.filter(Ve=>Ve.parent!==0),Te=Ne.find(Ve=>{var nt;return((nt=Ve.data)==null?void 0:nt.name)==="Home"}),Le=Ne.filter(Ve=>{var nt;return((nt=Ve.data)==null?void 0:nt.name)!=="Home"}),je=[...Te?[Te,...Le]:Le,...me];r(je);const Fe=je.map((Ve,nt)=>({menuItemId:Ve.id,order:nt}));es.post("/global-menu-config/api/v1/menu-items/user",Fe,{baseURL:t.baseUrl}).then(()=>{}).catch(Ve=>{console.error(Ve),r(Ce)}).finally(()=>{a(!1)})}const Ye=X.useMemo(()=>Zh==="false"?I:[],[]),pe=document.getElementById("global-menu-container");return be.jsxs("div",{className:q("side-bar"),children:[be.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:be.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?be.jsx(C6,{}):be.jsx(T6,{})})}),be.jsx(Kv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:be.jsx(JE,{backend:mU,options:VU(),children:be.jsx(iH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:fe=>{var Ce;return((Ce=fe.data)==null?void 0:Ce.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:et,render:(fe,Ce)=>{function Oe(Le){return n.every(He=>He.parent!==Le.id)?Le:{...Le,children:n.filter(He=>He.parent===Le.id).map(He=>Oe(He.data))}}const Ne=Oe(fe.data),me=Le=>A.some(He=>He.id===Le);function Te(Le,He){r(je=>je.map(Fe=>Fe.id===Le?{...Fe,data:{...Fe.data,isFavorite:He}}:Fe)),ae()}return be.jsx(JD,{onClickItem:t.onClickItem,isInternalApp:t.isInternalApp,isActive:me,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:fe,params:Ce,nodes:n,item:Ne,expanded:()=>!1,toggleExpand:Le=>{var He;if(Le.stopPropagation(),Ce.isOpen)Ce.onToggle();else{const je=n.filter(Fe=>Fe.parent===fe.parent&&Fe.id!==fe.id).map(Fe=>Fe.id);console.log(" closeIds:",je),(He=E.current)==null||He.open(fe.id),setTimeout(()=>{var Fe;(Fe=E.current)==null||Fe.close(je)},0)}},level:Ce.depth,onSetFavoriteSuccess:Te})},placeholderRender:(fe,{depth:Ce})=>{var Oe;return be.jsx(D6,{node:fe,depth:Ce,color:(Oe=t.brandColors)==null?void 0:Oe.primary300,isCollapsed:p})},canDrag:fe=>{var Ce;return!o&&((Ce=fe==null?void 0:fe.data)==null?void 0:Ce.name)!=="Home"},canDrop:(fe,{dragSource:Ce,dropTargetId:Oe})=>(Ce==null?void 0:Ce.parent)===Oe,onDragStart:fe=>{console.log("onDragStart",fe)},onChangeOpen:fe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",fe),j(fe))},initialOpen:Ye})})}),be.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[be.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>{pe.style.setProperty("z-index","1304"),pe.classList.remove("backdrop-delay-transition"),U(!0)},children:[be.jsx(E6,{className:q("side-bar__icon-logout")}),be.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),be.jsx(NT,{isOpen:H,onClose:()=>{pe.style.setProperty("z-index","var(--menu-z-index)"),pe.classList.add("backdrop-delay-transition"),U(!1)},onConfirm:()=>t.logout?t.logout():fT(t.baseUrl)})]})]})}const N1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function A6(t,e){const r=t.replace(window.origin,"").replace("/app",""),i=new URL(r,window.location.origin),o=new URL(e.replace("/app",""),window.origin),a=(localStorage.getItem("latestClickMenuPath")||"").replace("/app","");return r&&N1[r]&&N1[r].some(c=>e.replace("/app","").includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function j1(t,e){const n=t.map(a=>({item:a,priority:a.path?A6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function eP(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=eP(n.children,e)):n.path=e(n.path),n})}function tP(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+"/app"+n.path}:(n.children&&(n.children=tP(n.children)),n))}function I6(t){return be.jsx(Gv,{id:"global-menu-container",styles:[KT,k6,P6],style:{zIndex:"var(--menu-z-index)",position:"relative"},className:"backdrop-delay-transition",children:be.jsx(R6,{...t})})}const jh={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"},M6=()=>{const{t}=xT();return be.jsx("div",{className:"unauth__container "+jh["page-container"],children:be.jsxs("div",{className:"unauth__main-content "+jh["page-main-content"],children:[be.jsx(L6,{}),be.jsxs("div",{className:"unauth__main-text",children:[be.jsx("h2",{className:"unauth__main-text__title "+jh["page-title"],children:t("components.unauthorizedPage.title")}),be.jsxs("p",{className:"unauth__main-text__desc "+jh["text-base"],children:[t("components.unauthorizedPage.description1")," ",be.jsx("br",{})," ",t("components.unauthorizedPage.description2")]})]})]})})},L6=()=>be.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[be.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[be.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),be.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),be.jsx("defs",{children:be.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[be.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),be.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),be.jsx("feOffset",{dy:"1"}),be.jsx("feGaussianBlur",{stdDeviation:"1"}),be.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),be.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),be.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});var Tp={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
140
  * Released under MIT license <https://lodash.com/license>
141
141
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
142
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
- */Sp.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",g=1,T=2,E=4,A=1,I=2,j=1,R=2,H=4,U=8,ne=16,q=32,ie=64,x=128,le=256,ae=512,ze=30,tt="...",Qe=800,et=16,Ye=1,pe=2,fe=3,Ce=1/0,Oe=9007199254740991,Ne=17976931348623157e292,me=NaN,Te=4294967295,Le=Te-1,He=Te>>>1,je=[["ary",x],["bind",j],["bindKey",R],["curry",U],["curryRight",ne],["flip",ae],["partial",q],["partialRight",ie],["rearg",le]],Fe="[object Arguments]",Ve="[object Array]",nt="[object AsyncFunction]",ct="[object Boolean]",pt="[object Date]",ft="[object DOMException]",yt="[object Error]",Je="[object Function]",At="[object GeneratorFunction]",Mt="[object Map]",Vn="[object Number]",vr="[object Null]",Un="[object Object]",Sn="[object Promise]",Vi="[object Proxy]",Dr="[object RegExp]",Jn="[object Set]",sn="[object String]",fn="[object Symbol]",dn="[object Undefined]",ut="[object WeakMap]",Dn="[object WeakSet]",si="[object ArrayBuffer]",on="[object DataView]",Ui="[object Float32Array]",Hi="[object Float64Array]",Wi="[object Int8Array]",Pr="[object Int16Array]",Nn="[object Int32Array]",Or="[object Uint8Array]",yr="[object Uint8ClampedArray]",Yr="[object Uint16Array]",Gr="[object Uint32Array]",Io=/\b__p \+= '';/g,Hn=/\b(__p \+=) '' \+/g,qr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,ai=RegExp(Qn.source),zi=RegExp(Wt.source),Pn=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,li=/<%=([\s\S]+?)%>/g,ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,ci=RegExp(br.source),an=/^\s+/,Pi=/\s/,Ls=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fs=/\{\n\/\* \[wrapped with (.+)\] \*/,Xr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uo=/[()=,{}\[\]\/\s]/,Oi=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,Rr=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Kr=/^\[object .+?Constructor\]$/,wr=/^0o[0-7]+$/i,Ar=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yi=/($^)/,_i=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",yn="\\u0300-\\u036f",Ir="\\ufe20-\\ufe2f",Mr="\\u20d0-\\u20ff",di=yn+Ir+Mr,hi="\\u2700-\\u27bf",xr="a-z\\xdf-\\xf6\\xf8-\\xff",Zr="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pi="\\u2000-\\u206f",gi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ri="A-Z\\xc0-\\xd6\\xd8-\\xde",nn="\\ufe0e\\ufe0f",jn=Zr+Wn+pi+gi,Cn="['’]",co="["+ar+"]",On="["+jn+"]",_n="["+di+"]",k="\\d+",F="["+hi+"]",G="["+xr+"]",ee="[^"+ar+jn+k+hi+xr+Ri+"]",De="\\ud83c[\\udffb-\\udfff]",ve="(?:"+_n+"|"+De+")",Re="[^"+ar+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+Ri+"]",dt="\\u200d",Ft="(?:"+G+"|"+ee+")",Bn="(?:"+mt+"|"+ee+")",zn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",En="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Jr=ve+"?",lr="["+nn+"]?",Gi="(?:"+dt+"(?:"+[Re,Ke,gt].join("|")+")"+lr+Jr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lr=lr+Jr+Gi,Xi="(?:"+[F,Ke,gt].join("|")+")"+Lr,Wa="(?:"+[Re+_n+"?",_n,Ke,gt,co].join("|")+")",Ns=RegExp(Cn,"g"),os=RegExp(_n,"g"),Sr=RegExp(De+"(?="+De+")|"+Wa+Lr,"g"),za=RegExp([mt+"?"+G+"+"+zn+"(?="+[On,mt,"$"].join("|")+")",Bn+"+"+En+"(?="+[On,mt+Ft,"$"].join("|")+")",mt+"?"+Ft+"+"+zn,mt+"+"+En,qi,mi,k,Xi].join("|"),"g"),vi=RegExp("["+dt+ar+di+nn+"]"),js=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ss=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,Gt={};Gt[Ui]=Gt[Hi]=Gt[Wi]=Gt[Pr]=Gt[Nn]=Gt[Or]=Gt[yr]=Gt[Yr]=Gt[Gr]=!0,Gt[Fe]=Gt[Ve]=Gt[si]=Gt[ct]=Gt[on]=Gt[pt]=Gt[yt]=Gt[Je]=Gt[Mt]=Gt[Vn]=Gt[Un]=Gt[Dr]=Gt[Jn]=Gt[sn]=Gt[ut]=!1;var Kt={};Kt[Fe]=Kt[Ve]=Kt[si]=Kt[on]=Kt[ct]=Kt[pt]=Kt[Ui]=Kt[Hi]=Kt[Wi]=Kt[Pr]=Kt[Nn]=Kt[Mt]=Kt[Vn]=Kt[Un]=Kt[Dr]=Kt[Jn]=Kt[sn]=Kt[fn]=Kt[Or]=Kt[yr]=Kt[Yr]=Kt[Gr]=!0,Kt[yt]=Kt[Je]=Kt[ut]=!1;var Ai={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Qr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Bs=parseInt,fo=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ua=typeof self=="object"&&self&&self.Object===Object&&self,ln=fo||ua||Function("return this")(),Lo=e&&!e.nodeType&&e,bi=Lo&&!0&&t&&!t.nodeType&&t,ca=bi&&bi.exports===Lo,ho=ca&&fo.process,cr=function(){try{var Z=bi&&bi.require&&bi.require("util").types;return Z||ho&&ho.binding&&ho.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,C=cr&&cr.isMap,P=cr&&cr.isRegExp,L=cr&&cr.isSet,N=cr&&cr.isTypedArray;function V(Z,ce,ue){switch(ue.length){case 0:return Z.call(ce);case 1:return Z.call(ce,ue[0]);case 2:return Z.call(ce,ue[0],ue[1]);case 3:return Z.call(ce,ue[0],ue[1],ue[2])}return Z.apply(ce,ue)}function se(Z,ce,ue,Ie){for(var Be=-1,st=Z==null?0:Z.length;++Be<st;){var lt=Z[Be];ce(Ie,lt,ue(lt),Z)}return Ie}function te(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie&&ce(Z[ue],ue,Z)!==!1;);return Z}function ge(Z,ce){for(var ue=Z==null?0:Z.length;ue--&&ce(Z[ue],ue,Z)!==!1;);return Z}function _e(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie;)if(!ce(Z[ue],ue,Z))return!1;return!0}function Ae(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length,Be=0,st=[];++ue<Ie;){var lt=Z[ue];ce(lt,ue,Z)&&(st[Be++]=lt)}return st}function Ee(Z,ce){var ue=Z==null?0:Z.length;return!!ue&&Qt(Z,ce,0)>-1}function Ue(Z,ce,ue){for(var Ie=-1,Be=Z==null?0:Z.length;++Ie<Be;)if(ue(ce,Z[Ie]))return!0;return!1}function ot(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length,Be=Array(Ie);++ue<Ie;)Be[ue]=ce(Z[ue],ue,Z);return Be}function Tt(Z,ce){for(var ue=-1,Ie=ce.length,Be=Z.length;++ue<Ie;)Z[Be+ue]=ce[ue];return Z}function Et(Z,ce,ue,Ie){var Be=-1,st=Z==null?0:Z.length;for(Ie&&st&&(ue=Z[++Be]);++Be<st;)ue=ce(ue,Z[Be],Be,Z);return ue}function Rn(Z,ce,ue,Ie){var Be=Z==null?0:Z.length;for(Ie&&Be&&(ue=Z[--Be]);Be--;)ue=ce(ue,Z[Be],Be,Z);return ue}function un(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie;)if(ce(Z[ue],ue,Z))return!0;return!1}var Fr=D("length");function Nr(Z){return Z.split("")}function Lt(Z){return Z.match(lo)||[]}function jr(Z,ce,ue){var Ie;return ue(Z,function(Be,st,lt){if(ce(Be,st,lt))return Ie=st,!1}),Ie}function jt(Z,ce,ue,Ie){for(var Be=Z.length,st=ue+(Ie?1:-1);Ie?st--:++st<Be;)if(ce(Z[st],st,Z))return st;return-1}function Qt(Z,ce,ue){return ce===ce?Ou(Z,ce,ue):jt(Z,go,ue)}function po(Z,ce,ue,Ie){for(var Be=ue-1,st=Z.length;++Be<st;)if(Ie(Z[Be],ce))return Be;return-1}function go(Z){return Z!==Z}function Tr(Z,ce){var ue=Z==null?0:Z.length;return ue?we(Z,ce)/ue:me}function D(Z){return function(ce){return ce==null?n:ce[Z]}}function M(Z){return function(ce){return Z==null?n:Z[ce]}}function W(Z,ce,ue,Ie,Be){return Be(Z,function(st,lt,it){ue=Ie?(Ie=!1,st):ce(ue,st,lt,it)}),ue}function Q(Z,ce){var ue=Z.length;for(Z.sort(ce);ue--;)Z[ue]=Z[ue].value;return Z}function we(Z,ce){for(var ue,Ie=-1,Be=Z.length;++Ie<Be;){var st=ce(Z[Ie]);st!==n&&(ue=ue===n?st:ue+st)}return ue}function xe(Z,ce){for(var ue=-1,Ie=Array(Z);++ue<Z;)Ie[ue]=ce(ue);return Ie}function Me(Z,ce){return ot(ce,function(ue){return[ue,Z[ue]]})}function qe(Z){return Z&&Z.slice(0,Al(Z)+1).replace(an,"")}function ht(Z){return function(ce){return Z(ce)}}function _t(Z,ce){return ot(ce,function(ue){return Z[ue]})}function St(Z,ce){return Z.has(ce)}function vt(Z,ce){for(var ue=-1,Ie=Z.length;++ue<Ie&&Qt(ce,Z[ue],0)>-1;);return ue}function An(Z,ce){for(var ue=Z.length;ue--&&Qt(ce,Z[ue],0)>-1;);return ue}function bn(Z,ce){for(var ue=Z.length,Ie=0;ue--;)Z[ue]===ce&&++Ie;return Ie}var $n=M(Ai),as=M(Qr);function fa(Z){return"\\"+yi[Z]}function mo(Z,ce){return Z==null?n:Z[ce]}function ei(Z){return vi.test(Z)}function Ya(Z){return js.test(Z)}function Ii(Z){for(var ce,ue=[];!(ce=Z.next()).done;)ue.push(ce.value);return ue}function da(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie,Be){ue[++ce]=[Be,Ie]}),ue}function ls(Z,ce){return function(ue){return Z(ce(ue))}}function ti(Z,ce){for(var ue=-1,Ie=Z.length,Be=0,st=[];++ue<Ie;){var lt=Z[ue];(lt===ce||lt===y)&&(Z[ue]=y,st[Be++]=ue)}return st}function vo(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie){ue[++ce]=Ie}),ue}function Ga(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie){ue[++ce]=[Ie,Ie]}),ue}function Ou(Z,ce,ue){for(var Ie=ue-1,Be=Z.length;++Ie<Be;)if(Z[Ie]===ce)return Ie;return-1}function ha(Z,ce,ue){for(var Ie=ue+1;Ie--;)if(Z[Ie]===ce)return Ie;return Ie}function yo(Z){return ei(Z)?$s(Z):Fr(Z)}function cn(Z){return ei(Z)?J(Z):Nr(Z)}function Al(Z){for(var ce=Z.length;ce--&&Pi.test(Z.charAt(ce)););return ce}var pa=M(Mo);function $s(Z){for(var ce=Sr.lastIndex=0;Sr.test(Z);)++ce;return ce}function J(Z){return Z.match(Sr)||[]}function de(Z){return Z.match(za)||[]}var ke=function Z(ce){ce=ce==null?ln:Pe.defaults(ln.Object(),ce,Pe.pick(ln,ss));var ue=ce.Array,Ie=ce.Date,Be=ce.Error,st=ce.Function,lt=ce.Math,it=ce.Object,It=ce.RegExp,wt=ce.String,Vt=ce.TypeError,Yn=ue.prototype,nr=st.prototype,In=it.prototype,zt=ce["__core-js_shared__"],Br=nr.toString,kt=In.hasOwnProperty,_u=0,pn=function(){var s=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Fo=In.toString,Ru=Br.call(it),Au=ln._,Iu=It("^"+Br.call(kt).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ga=ca?ce.Buffer:n,No=ce.Symbol,qa=ce.Uint8Array,Xa=ga?ga.allocUnsafe:n,Vs=ls(it.getPrototypeOf,it),ma=it.create,Il=In.propertyIsEnumerable,jo=Yn.splice,Ml=No?No.isConcatSpreadable:n,Ki=No?No.iterator:n,Bo=No?No.toStringTag:n,us=function(){try{var s=ic(it,"defineProperty");return s({},"",{}),s}catch{}}(),$f=ce.clearTimeout!==ln.clearTimeout&&ce.clearTimeout,Ka=Ie&&Ie.now!==ln.Date.now&&Ie.now,Mc=ce.setTimeout!==ln.setTimeout&&ce.setTimeout,va=lt.ceil,Us=lt.floor,ya=it.getOwnPropertySymbols,Ll=ga?ga.isBuffer:n,ba=ce.isFinite,Za=Yn.join,Lc=ls(it.keys,it),wn=lt.max,Gn=lt.min,cs=Ie.now,Mu=ce.parseInt,fs=lt.random,Fl=Yn.reverse,bo=ic(ce,"DataView"),ds=ic(ce,"Map"),wa=ic(ce,"Promise"),wo=ic(ce,"Set"),$o=ic(ce,"WeakMap"),xa=ic(it,"create"),Ja=$o&&new $o,Hs={},hs=oc(bo),Lu=oc(ds),Vf=oc(wa),Fc=oc(wo),Sa=oc($o),ps=No?No.prototype:n,Ws=ps?ps.valueOf:n,Qa=ps?ps.toString:n;function z(s){if(or(s)&&!Ut(s)&&!(s instanceof $t)){if(s instanceof Cr)return s;if(kt.call(s,"__wrapped__"))return Ib(s)}return new Cr(s)}var Vo=function(){function s(){}return function(u){if(!qn(u))return{};if(ma)return ma(u);s.prototype=u;var w=new s;return s.prototype=n,w}}();function Uo(){}function Cr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}z.templateSettings={escape:Pn,evaluate:hn,interpolate:li,variable:"",imports:{_:z}},z.prototype=Uo.prototype,z.prototype.constructor=z,Cr.prototype=Vo(Uo.prototype),Cr.prototype.constructor=Cr;function $t(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Te,this.__views__=[]}function Nl(){var s=new $t(this.__wrapped__);return s.__actions__=zr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=zr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=zr(this.__views__),s}function el(){if(this.__filtered__){var s=new $t(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function jl(){var s=this.__wrapped__.value(),u=this.__dir__,w=Ut(s),O=u<0,$=w?s.length:0,K=WP(0,$,this.__views__),oe=K.start,he=K.end,ye=he-oe,We=O?he:oe-1,Ge=this.__iteratees__,Ze=Ge.length,at=0,bt=Gn(ye,this.__takeCount__);if(!w||!O&&$==ye&&bt==ye)return Jc(s,this.__actions__);var Dt=[];e:for(;ye--&&at<bt;){We+=u;for(var Xt=-1,Pt=s[We];++Xt<Ze;){var Jt=Ge[Xt],tn=Jt.iteratee,Go=Jt.type,ro=tn(Pt);if(Go==pe)Pt=ro;else if(!ro){if(Go==Ye)continue e;break e}}Dt[at++]=Pt}return Dt}$t.prototype=Vo(Uo.prototype),$t.prototype.constructor=$t;function xo(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function Fu(){this.__data__=xa?xa(null):{},this.size=0}function Nc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function jc(s){var u=this.__data__;if(xa){var w=u[s];return w===f?n:w}return kt.call(u,s)?u[s]:n}function Bc(s){var u=this.__data__;return xa?u[s]!==n:kt.call(u,s)}function Uf(s,u){var w=this.__data__;return this.size+=this.has(s)?0:1,w[s]=xa&&u===n?f:u,this}xo.prototype.clear=Fu,xo.prototype.delete=Nc,xo.prototype.get=jc,xo.prototype.has=Bc,xo.prototype.set=Uf;function So(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function Hf(){this.__data__=[],this.size=0}function Wf(s){var u=this.__data__,w=Zi(u,s);if(w<0)return!1;var O=u.length-1;return w==O?u.pop():jo.call(u,w,1),--this.size,!0}function Nu(s){var u=this.__data__,w=Zi(u,s);return w<0?n:u[w][1]}function tl(s){return Zi(this.__data__,s)>-1}function zf(s,u){var w=this.__data__,O=Zi(w,s);return O<0?(++this.size,w.push([s,u])):w[O][1]=u,this}So.prototype.clear=Hf,So.prototype.delete=Wf,So.prototype.get=Nu,So.prototype.has=tl,So.prototype.set=zf;function Ho(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function ju(){this.size=0,this.__data__={hash:new xo,map:new(ds||So),string:new xo}}function Bl(s){var u=ih(this,s).delete(s);return this.size-=u?1:0,u}function Yf(s){return ih(this,s).get(s)}function Gf(s){return ih(this,s).has(s)}function qf(s,u){var w=ih(this,s),O=w.size;return w.set(s,u),this.size+=w.size==O?0:1,this}Ho.prototype.clear=ju,Ho.prototype.delete=Bl,Ho.prototype.get=Yf,Ho.prototype.has=Gf,Ho.prototype.set=qf;function $r(s){var u=-1,w=s==null?0:s.length;for(this.__data__=new Ho;++u<w;)this.add(s[u])}function Bu(s){return this.__data__.set(s,f),this}function $l(s){return this.__data__.has(s)}$r.prototype.add=$r.prototype.push=Bu,$r.prototype.has=$l;function qt(s){var u=this.__data__=new So(s);this.size=u.size}function wi(){this.__data__=new So,this.size=0}function Ta(s){var u=this.__data__,w=u.delete(s);return this.size=u.size,w}function zs(s){return this.__data__.get(s)}function Zt(s){return this.__data__.has(s)}function gs(s,u){var w=this.__data__;if(w instanceof So){var O=w.__data__;if(!ds||O.length<i-1)return O.push([s,u]),this.size=++w.size,this;w=this.__data__=new Ho(O)}return w.set(s,u),this.size=w.size,this}qt.prototype.clear=wi,qt.prototype.delete=Ta,qt.prototype.get=zs,qt.prototype.has=Zt,qt.prototype.set=gs;function nl(s,u){var w=Ut(s),O=!w&&sc(s),$=!w&&!O&&ru(s),K=!w&&!O&&!$&&sf(s),oe=w||O||$||K,he=oe?xe(s.length,wt):[],ye=he.length;for(var We in s)(u||kt.call(s,We))&&!(oe&&(We=="length"||$&&(We=="offset"||We=="parent")||K&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||hl(We,ye)))&&he.push(We);return he}function ni(s){var u=s.length;return u?s[Js(0,u-1)]:n}function xi(s,u){return oh(zr(s),Gs(u,0,s.length))}function To(s){return oh(zr(s))}function $u(s,u,w){(w!==n&&!ra(s[u],w)||w===n&&!(u in s))&&Si(s,u,w)}function Vr(s,u,w){var O=s[u];(!(kt.call(s,u)&&ra(O,w))||w===n&&!(u in s))&&Si(s,u,w)}function Zi(s,u){for(var w=s.length;w--;)if(ra(s[w][0],u))return w;return-1}function Ys(s,u,w,O){return ms(s,function($,K,oe){u(O,$,w($),oe)}),O}function $c(s,u){return s&&Mi(u,ii(u),s)}function Vu(s,u){return s&&Mi(u,Po(u),s)}function Si(s,u,w){u=="__proto__"&&us?us(s,u,{configurable:!0,enumerable:!0,value:w,writable:!0}):s[u]=w}function Uu(s,u){for(var w=-1,O=u.length,$=ue(O),K=s==null;++w<O;)$[w]=K?n:mg(s,u[w]);return $}function Gs(s,u,w){return s===s&&(w!==n&&(s=s<=w?s:w),u!==n&&(s=s>=u?s:u)),s}function Ur(s,u,w,O,$,K){var oe,he=u&g,ye=u&T,We=u&E;if(w&&(oe=$?w(s,O,$,K):w(s)),oe!==n)return oe;if(!qn(s))return s;var Ge=Ut(s);if(Ge){if(oe=YP(s),!he)return zr(s,oe)}else{var Ze=Li(s),at=Ze==Je||Ze==At;if(ru(s))return xs(s,he);if(Ze==Un||Ze==Fe||at&&!$){if(oe=ye||at?{}:Cb(s),!he)return ye?Zf(s,Vu(oe,s)):nf(s,$c(oe,s))}else{if(!Kt[Ze])return $?s:{};oe=GP(s,Ze,he)}}K||(K=new qt);var bt=K.get(s);if(bt)return bt;K.set(s,oe),Qb(s)?s.forEach(function(Pt){oe.add(Ur(Pt,u,w,Pt,s,K))}):Zb(s)&&s.forEach(function(Pt,Jt){oe.set(Jt,Ur(Pt,u,w,Jt,s,K))});var Dt=We?ye?ng:tg:ye?Po:ii,Xt=Ge?n:Dt(s);return te(Xt||s,function(Pt,Jt){Xt&&(Jt=Pt,Pt=s[Jt]),Vr(oe,Jt,Ur(Pt,u,w,Jt,s,K))}),oe}function Hu(s){var u=ii(s);return function(w){return Wu(w,s,u)}}function Wu(s,u,w){var O=w.length;if(s==null)return!O;for(s=it(s);O--;){var $=w[O],K=u[$],oe=s[$];if(oe===n&&!($ in s)||!K(oe))return!1}return!0}function zu(s,u,w){if(typeof s!="function")throw new Vt(a);return Qf(function(){s.apply(n,w)},u)}function qs(s,u,w,O){var $=-1,K=Ee,oe=!0,he=s.length,ye=[],We=u.length;if(!he)return ye;w&&(u=ot(u,ht(w))),O?(K=Ue,oe=!1):u.length>=i&&(K=St,oe=!1,u=new $r(u));e:for(;++$<he;){var Ge=s[$],Ze=w==null?Ge:w(Ge);if(Ge=O||Ge!==0?Ge:0,oe&&Ze===Ze){for(var at=We;at--;)if(u[at]===Ze)continue e;ye.push(Ge)}else K(u,Ze,O)||ye.push(Ge)}return ye}var ms=v(Ti),Yu=v(Ul,!0);function Vc(s,u){var w=!0;return ms(s,function(O,$,K){return w=!!u(O,$,K),w}),w}function Vl(s,u,w){for(var O=-1,$=s.length;++O<$;){var K=s[O],oe=u(K);if(oe!=null&&(he===n?oe===oe&&!Yo(oe):w(oe,he)))var he=oe,ye=K}return ye}function Xf(s,u,w,O){var $=s.length;for(w=Yt(w),w<0&&(w=-w>$?0:$+w),O=O===n||O>$?$:Yt(O),O<0&&(O+=$),O=w>O?0:t0(O);w<O;)s[w++]=u;return s}function Uc(s,u){var w=[];return ms(s,function(O,$,K){u(O,$,K)&&w.push(O)}),w}function fr(s,u,w,O,$){var K=-1,oe=s.length;for(w||(w=XP),$||($=[]);++K<oe;){var he=s[K];u>0&&w(he)?u>1?fr(he,u-1,w,O,$):Tt($,he):O||($[$.length]=he)}return $}var Gu=l(),Hc=l(!0);function Ti(s,u){return s&&Gu(s,u,ii)}function Ul(s,u){return s&&Hc(s,u,ii)}function Ca(s,u){return Ae(u,function(w){return pl(s[w])})}function vs(s,u){u=Ci(u,s);for(var w=0,O=u.length;s!=null&&w<O;)s=s[Ia(u[w++])];return w&&w==O?s:n}function rl(s,u,w){var O=u(s);return Ut(s)?O:Tt(O,w(s))}function rr(s){return s==null?s===n?dn:vr:Bo&&Bo in it(s)?HP(s):nO(s)}function Xs(s,u){return s>u}function Hl(s,u){return s!=null&&kt.call(s,u)}function Ea(s,u){return s!=null&&u in it(s)}function Wl(s,u,w){return s>=Gn(u,w)&&s<wn(u,w)}function ka(s,u,w){for(var O=w?Ue:Ee,$=s[0].length,K=s.length,oe=K,he=ue(K),ye=1/0,We=[];oe--;){var Ge=s[oe];oe&&u&&(Ge=ot(Ge,ht(u))),ye=Gn(Ge.length,ye),he[oe]=!w&&(u||$>=120&&Ge.length>=120)?new $r(oe&&Ge):n}Ge=s[0];var Ze=-1,at=he[0];e:for(;++Ze<$&&We.length<ye;){var bt=Ge[Ze],Dt=u?u(bt):bt;if(bt=w||bt!==0?bt:0,!(at?St(at,Dt):O(We,Dt,w))){for(oe=K;--oe;){var Xt=he[oe];if(!(Xt?St(Xt,Dt):O(s[oe],Dt,w)))continue e}at&&at.push(Dt),We.push(bt)}}return We}function zl(s,u,w,O){return Ti(s,function($,K,oe){u(O,w($),K,oe)}),O}function Co(s,u,w){u=Ci(u,s),s=Pb(s,u);var O=s==null?s:s[Ia(Ts(u))];return O==null?n:V(O,s,w)}function Yl(s){return or(s)&&rr(s)==Fe}function Ks(s){return or(s)&&rr(s)==si}function Wc(s){return or(s)&&rr(s)==pt}function il(s,u,w,O,$){return s===u?!0:s==null||u==null||!or(s)&&!or(u)?s!==s&&u!==u:Da(s,u,w,O,il,$)}function Da(s,u,w,O,$,K){var oe=Ut(s),he=Ut(u),ye=oe?Ve:Li(s),We=he?Ve:Li(u);ye=ye==Fe?Un:ye,We=We==Fe?Un:We;var Ge=ye==Un,Ze=We==Un,at=ye==We;if(at&&ru(s)){if(!ru(u))return!1;oe=!0,Ge=!1}if(at&&!Ge)return K||(K=new qt),oe||sf(s)?xb(s,u,w,O,$,K):VP(s,u,ye,w,O,$,K);if(!(w&A)){var bt=Ge&&kt.call(s,"__wrapped__"),Dt=Ze&&kt.call(u,"__wrapped__");if(bt||Dt){var Xt=bt?s.value():s,Pt=Dt?u.value():u;return K||(K=new qt),$(Xt,Pt,w,O,K)}}return at?(K||(K=new qt),UP(s,u,w,O,$,K)):!1}function Pa(s){return or(s)&&Li(s)==Mt}function qu(s,u,w,O){var $=w.length,K=$,oe=!O;if(s==null)return!K;for(s=it(s);$--;){var he=w[$];if(oe&&he[2]?he[1]!==s[he[0]]:!(he[0]in s))return!1}for(;++$<K;){he=w[$];var ye=he[0],We=s[ye],Ge=he[1];if(oe&&he[2]){if(We===n&&!(ye in s))return!1}else{var Ze=new qt;if(O)var at=O(We,Ge,ye,s,u,Ze);if(!(at===n?il(Ge,We,A|I,O,Ze):at))return!1}}return!0}function zc(s){if(!qn(s)||ZP(s))return!1;var u=pl(s)?Iu:Kr;return u.test(oc(s))}function Zs(s){return or(s)&&rr(s)==Dr}function Gl(s){return or(s)&&Li(s)==Jn}function Wo(s){return or(s)&&fh(s.length)&&!!Gt[rr(s)]}function ql(s){return typeof s=="function"?s:s==null?Oo:typeof s=="object"?Ut(s)?sl(s[0],s[1]):Eo(s):d0(s)}function zo(s){if(!Jf(s))return Lc(s);var u=[];for(var w in it(s))kt.call(s,w)&&w!="constructor"&&u.push(w);return u}function ol(s){if(!qn(s))return tO(s);var u=Jf(s),w=[];for(var O in s)O=="constructor"&&(u||!kt.call(s,O))||w.push(O);return w}function Ji(s,u){return s<u}function Qi(s,u){var w=-1,O=Do(s)?ue(s.length):[];return ms(s,function($,K,oe){O[++w]=u($,K,oe)}),O}function Eo(s){var u=ig(s);return u.length==1&&u[0][2]?kb(u[0][0],u[0][1]):function(w){return w===s||qu(w,s,u)}}function sl(s,u){return sg(s)&&Eb(u)?kb(Ia(s),u):function(w){var O=mg(w,s);return O===n&&O===u?vg(w,s):il(u,O,A|I)}}function ys(s,u,w,O,$){s!==u&&Gu(u,function(K,oe){if($||($=new qt),qn(K))eo(s,u,oe,w,ys,O,$);else{var he=O?O(lg(s,oe),K,oe+"",s,u,$):n;he===n&&(he=K),$u(s,oe,he)}},Po)}function eo(s,u,w,O,$,K,oe){var he=lg(s,w),ye=lg(u,w),We=oe.get(ye);if(We){$u(s,w,We);return}var Ge=K?K(he,ye,w+"",s,u,oe):n,Ze=Ge===n;if(Ze){var at=Ut(ye),bt=!at&&ru(ye),Dt=!at&&!bt&&sf(ye);Ge=ye,at||bt||Dt?Ut(he)?Ge=he:hr(he)?Ge=zr(he):bt?(Ze=!1,Ge=xs(ye,!0)):Dt?(Ze=!1,Ge=cl(ye,!0)):Ge=[]:ed(ye)||sc(ye)?(Ge=he,sc(he)?Ge=n0(he):(!qn(he)||pl(he))&&(Ge=Cb(ye))):Ze=!1}Ze&&(oe.set(ye,Ge),$(Ge,ye,O,K,oe),oe.delete(ye)),$u(s,w,Ge)}function Oa(s,u){var w=s.length;if(w)return u+=u<0?w:0,hl(u,w)?s[u]:n}function Xl(s,u,w){u.length?u=ot(u,function(K){return Ut(K)?function(oe){return vs(oe,K.length===1?K[0]:K)}:K}):u=[Oo];var O=-1;u=ot(u,ht(Ct()));var $=Qi(s,function(K,oe,he){var ye=ot(u,function(We){return We(K)});return{criteria:ye,index:++O,value:K}});return Q($,function(K,oe){return nu(K,oe,w)})}function al(s,u){return _a(s,u,function(w,O){return vg(s,O)})}function _a(s,u,w){for(var O=-1,$=u.length,K={};++O<$;){var oe=u[O],he=vs(s,oe);w(he,oe)&&Qs(K,Ci(oe,s),he)}return K}function Yc(s){return function(u){return vs(u,s)}}function Xu(s,u,w,O){var $=O?po:Qt,K=-1,oe=u.length,he=s;for(s===u&&(u=zr(u)),w&&(he=ot(s,ht(w)));++K<oe;)for(var ye=0,We=u[K],Ge=w?w(We):We;(ye=$(he,Ge,ye,O))>-1;)he!==s&&jo.call(he,ye,1),jo.call(s,ye,1);return s}function Ku(s,u){for(var w=s?u.length:0,O=w-1;w--;){var $=u[w];if(w==O||$!==K){var K=$;hl($)?jo.call(s,$,1):Wr(s,$)}}return s}function Js(s,u){return s+Us(fs()*(u-s+1))}function Zu(s,u,w,O){for(var $=-1,K=wn(va((u-s)/(w||1)),0),oe=ue(K);K--;)oe[O?K:++$]=s,s+=w;return oe}function Kl(s,u){var w="";if(!s||u<1||u>Oe)return w;do u%2&&(w+=s),u=Us(u/2),u&&(s+=s);while(u);return w}function Bt(s,u){return ug(Db(s,u,Oo),s+"")}function ll(s){return ni(af(s))}function Ju(s,u){var w=af(s);return oh(w,Gs(u,0,w.length))}function Qs(s,u,w,O){if(!qn(s))return s;u=Ci(u,s);for(var $=-1,K=u.length,oe=K-1,he=s;he!=null&&++$<K;){var ye=Ia(u[$]),We=w;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return s;if($!=oe){var Ge=he[ye];We=O?O(Ge,ye,he):n,We===n&&(We=qn(Ge)?Ge:hl(u[$+1])?[]:{})}Vr(he,ye,We),he=he[ye]}return s}var Zl=Ja?function(s,u){return Ja.set(s,u),s}:Oo,Gc=us?function(s,u){return us(s,"toString",{configurable:!0,enumerable:!1,value:bg(u),writable:!0})}:Oo;function qc(s){return oh(af(s))}function ri(s,u,w){var O=-1,$=s.length;u<0&&(u=-u>$?0:$+u),w=w>$?$:w,w<0&&(w+=$),$=u>w?0:w-u>>>0,u>>>=0;for(var K=ue($);++O<$;)K[O]=s[O+u];return K}function Xc(s,u){var w;return ms(s,function(O,$,K){return w=u(O,$,K),!w}),!!w}function Jl(s,u,w){var O=0,$=s==null?O:s.length;if(typeof u=="number"&&u===u&&$<=He){for(;O<$;){var K=O+$>>>1,oe=s[K];oe!==null&&!Yo(oe)&&(w?oe<=u:oe<u)?O=K+1:$=K}return $}return Qu(s,u,Oo,w)}function Qu(s,u,w,O){var $=0,K=s==null?0:s.length;if(K===0)return 0;u=w(u);for(var oe=u!==u,he=u===null,ye=Yo(u),We=u===n;$<K;){var Ge=Us(($+K)/2),Ze=w(s[Ge]),at=Ze!==n,bt=Ze===null,Dt=Ze===Ze,Xt=Yo(Ze);if(oe)var Pt=O||Dt;else We?Pt=Dt&&(O||at):he?Pt=Dt&&at&&(O||!bt):ye?Pt=Dt&&at&&!bt&&(O||!Xt):bt||Xt?Pt=!1:Pt=O?Ze<=u:Ze<u;Pt?$=Ge+1:K=Ge}return Gn(K,Le)}function ec(s,u){for(var w=-1,O=s.length,$=0,K=[];++w<O;){var oe=s[w],he=u?u(oe):oe;if(!w||!ra(he,ye)){var ye=he;K[$++]=oe===0?0:oe}}return K}function Kc(s){return typeof s=="number"?s:Yo(s)?me:+s}function Hr(s){if(typeof s=="string")return s;if(Ut(s))return ot(s,Hr)+"";if(Yo(s))return Qa?Qa.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function bs(s,u,w){var O=-1,$=Ee,K=s.length,oe=!0,he=[],ye=he;if(w)oe=!1,$=Ue;else if(K>=i){var We=u?null:Aa(s);if(We)return vo(We);oe=!1,$=St,ye=new $r}else ye=u?[]:he;e:for(;++O<K;){var Ge=s[O],Ze=u?u(Ge):Ge;if(Ge=w||Ge!==0?Ge:0,oe&&Ze===Ze){for(var at=ye.length;at--;)if(ye[at]===Ze)continue e;u&&ye.push(Ze),he.push(Ge)}else $(ye,Ze,w)||(ye!==he&&ye.push(Ze),he.push(Ge))}return he}function Wr(s,u){return u=Ci(u,s),s=Pb(s,u),s==null||delete s[Ia(Ts(u))]}function Zc(s,u,w,O){return Qs(s,u,w(vs(s,u)),O)}function ea(s,u,w,O){for(var $=s.length,K=O?$:-1;(O?K--:++K<$)&&u(s[K],K,s););return w?ri(s,O?0:K,O?K+1:$):ri(s,O?K+1:0,O?$:K)}function Jc(s,u){var w=s;return w instanceof $t&&(w=w.value()),Et(u,function(O,$){return $.func.apply($.thisArg,Tt([O],$.args))},w)}function dr(s,u,w){var O=s.length;if(O<2)return O?bs(s[0]):[];for(var $=-1,K=ue(O);++$<O;)for(var oe=s[$],he=-1;++he<O;)he!=$&&(K[$]=qs(K[$]||oe,s[he],u,w));return bs(fr(K,1),u,w)}function Qc(s,u,w){for(var O=-1,$=s.length,K=u.length,oe={};++O<$;){var he=O<K?u[O]:n;w(oe,s[O],he)}return oe}function Ql(s){return hr(s)?s:[]}function eu(s){return typeof s=="function"?s:Oo}function Ci(s,u){return Ut(s)?s:sg(s,u)?[s]:Ab(gn(s))}var ef=Bt;function ws(s,u,w){var O=s.length;return w=w===n?O:w,!u&&w>=O?s:ri(s,u,w)}var tu=$f||function(s){return ln.clearTimeout(s)};function xs(s,u){if(u)return s.slice();var w=s.length,O=Xa?Xa(w):new s.constructor(w);return s.copy(O),O}function ta(s){var u=new s.constructor(s.byteLength);return new qa(u).set(new qa(s)),u}function Kf(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.byteLength)}function tc(s){var u=new s.constructor(s.source,_r.exec(s));return u.lastIndex=s.lastIndex,u}function ul(s){return Ws?it(Ws.call(s)):{}}function cl(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.length)}function nc(s,u){if(s!==u){var w=s!==n,O=s===null,$=s===s,K=Yo(s),oe=u!==n,he=u===null,ye=u===u,We=Yo(u);if(!he&&!We&&!K&&s>u||K&&oe&&ye&&!he&&!We||O&&oe&&ye||!w&&ye||!$)return 1;if(!O&&!K&&!We&&s<u||We&&w&&$&&!O&&!K||he&&w&&$||!oe&&$||!ye)return-1}return 0}function nu(s,u,w){for(var O=-1,$=s.criteria,K=u.criteria,oe=$.length,he=w.length;++O<oe;){var ye=nc($[O],K[O]);if(ye){if(O>=he)return ye;var We=w[O];return ye*(We=="desc"?-1:1)}}return s.index-u.index}function rc(s,u,w,O){for(var $=-1,K=s.length,oe=w.length,he=-1,ye=u.length,We=wn(K-oe,0),Ge=ue(ye+We),Ze=!O;++he<ye;)Ge[he]=u[he];for(;++$<oe;)(Ze||$<K)&&(Ge[w[$]]=s[$]);for(;We--;)Ge[he++]=s[$++];return Ge}function tf(s,u,w,O){for(var $=-1,K=s.length,oe=-1,he=w.length,ye=-1,We=u.length,Ge=wn(K-he,0),Ze=ue(Ge+We),at=!O;++$<Ge;)Ze[$]=s[$];for(var bt=$;++ye<We;)Ze[bt+ye]=u[ye];for(;++oe<he;)(at||$<K)&&(Ze[bt+w[oe]]=s[$++]);return Ze}function zr(s,u){var w=-1,O=s.length;for(u||(u=ue(O));++w<O;)u[w]=s[w];return u}function Mi(s,u,w,O){var $=!w;w||(w={});for(var K=-1,oe=u.length;++K<oe;){var he=u[K],ye=O?O(w[he],s[he],he,w,s):n;ye===n&&(ye=s[he]),$?Si(w,he,ye):Vr(w,he,ye)}return w}function nf(s,u){return Mi(s,og(s),u)}function Zf(s,u){return Mi(s,Sb(s),u)}function fl(s,u){return function(w,O){var $=Ut(w)?se:Ys,K=u?u():{};return $(w,s,Ct(O,2),K)}}function Ra(s){return Bt(function(u,w){var O=-1,$=w.length,K=$>1?w[$-1]:n,oe=$>2?w[2]:n;for(K=s.length>3&&typeof K=="function"?($--,K):n,oe&&no(w[0],w[1],oe)&&(K=$<3?n:K,$=1),u=it(u);++O<$;){var he=w[O];he&&s(u,he,O,K)}return u})}function v(s,u){return function(w,O){if(w==null)return w;if(!Do(w))return s(w,O);for(var $=w.length,K=u?$:-1,oe=it(w);(u?K--:++K<$)&&O(oe[K],K,oe)!==!1;);return w}}function l(s){return function(u,w,O){for(var $=-1,K=it(u),oe=O(u),he=oe.length;he--;){var ye=oe[s?he:++$];if(w(K[ye],ye,K)===!1)break}return u}}function d(s,u,w){var O=u&j,$=_(s);function K(){var oe=this&&this!==ln&&this instanceof K?$:s;return oe.apply(O?w:this,arguments)}return K}function m(s){return function(u){u=gn(u);var w=ei(u)?cn(u):n,O=w?w[0]:u.charAt(0),$=w?ws(w,1).join(""):u.slice(1);return O[s]()+$}}function S(s){return function(u){return Et(c0(u0(u).replace(Ns,"")),s,"")}}function _(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var w=Vo(s.prototype),O=s.apply(w,u);return qn(O)?O:w}}function B(s,u,w){var O=_(s);function $(){for(var K=arguments.length,oe=ue(K),he=K,ye=of($);he--;)oe[he]=arguments[he];var We=K<3&&oe[0]!==ye&&oe[K-1]!==ye?[]:ti(oe,ye);if(K-=We.length,K<w)return Ss(s,u,Se,$.placeholder,n,oe,We,n,n,w-K);var Ge=this&&this!==ln&&this instanceof $?O:s;return V(Ge,this,oe)}return $}function Y(s){return function(u,w,O){var $=it(u);if(!Do(u)){var K=Ct(w,3);u=ii(u),w=function(he){return K($[he],he,$)}}var oe=s(u,w,O);return oe>-1?$[K?u[oe]:oe]:n}}function re(s){return dl(function(u){var w=u.length,O=w,$=Cr.prototype.thru;for(s&&u.reverse();O--;){var K=u[O];if(typeof K!="function")throw new Vt(a);if($&&!oe&&rh(K)=="wrapper")var oe=new Cr([],!0)}for(O=oe?O:w;++O<w;){K=u[O];var he=rh(K),ye=he=="wrapper"?rg(K):n;ye&&ag(ye[0])&&ye[1]==(x|U|q|le)&&!ye[4].length&&ye[9]==1?oe=oe[rh(ye[0])].apply(oe,ye[3]):oe=K.length==1&&ag(K)?oe[he]():oe.thru(K)}return function(){var We=arguments,Ge=We[0];if(oe&&We.length==1&&Ut(Ge))return oe.plant(Ge).value();for(var Ze=0,at=w?u[Ze].apply(this,We):Ge;++Ze<w;)at=u[Ze].call(this,at);return at}})}function Se(s,u,w,O,$,K,oe,he,ye,We){var Ge=u&x,Ze=u&j,at=u&R,bt=u&(U|ne),Dt=u&ae,Xt=at?n:_(s);function Pt(){for(var Jt=arguments.length,tn=ue(Jt),Go=Jt;Go--;)tn[Go]=arguments[Go];if(bt)var ro=of(Pt),qo=bn(tn,ro);if(O&&(tn=rc(tn,O,$,bt)),K&&(tn=tf(tn,K,oe,bt)),Jt-=qo,bt&&Jt<We){var pr=ti(tn,ro);return Ss(s,u,Se,Pt.placeholder,w,tn,pr,he,ye,We-Jt)}var ia=Ze?w:this,ml=at?ia[s]:s;return Jt=tn.length,he?tn=rO(tn,he):Dt&&Jt>1&&tn.reverse(),Ge&&ye<Jt&&(tn.length=ye),this&&this!==ln&&this instanceof Pt&&(ml=Xt||_(ml)),ml.apply(ia,tn)}return Pt}function $e(s,u){return function(w,O){return zl(w,s,u(O),{})}}function Xe(s,u){return function(w,O){var $;if(w===n&&O===n)return u;if(w!==n&&($=w),O!==n){if($===n)return O;typeof w=="string"||typeof O=="string"?(w=Hr(w),O=Hr(O)):(w=Kc(w),O=Kc(O)),$=s(w,O)}return $}}function rt(s){return dl(function(u){return u=ot(u,ht(Ct())),Bt(function(w){var O=this;return s(u,function($){return V($,O,w)})})})}function xt(s,u){u=u===n?" ":Hr(u);var w=u.length;if(w<2)return w?Kl(u,s):u;var O=Kl(u,va(s/yo(u)));return ei(u)?ws(cn(O),0,s).join(""):O.slice(0,s)}function en(s,u,w,O){var $=u&j,K=_(s);function oe(){for(var he=-1,ye=arguments.length,We=-1,Ge=O.length,Ze=ue(Ge+ye),at=this&&this!==ln&&this instanceof oe?K:s;++We<Ge;)Ze[We]=O[We];for(;ye--;)Ze[We++]=arguments[++he];return V(at,$?w:this,Ze)}return oe}function ir(s){return function(u,w,O){return O&&typeof O!="number"&&no(u,w,O)&&(w=O=n),u=gl(u),w===n?(w=u,u=0):w=gl(w),O=O===n?u<w?1:-1:gl(O),Zu(u,w,O,s)}}function ko(s){return function(u,w){return typeof u=="string"&&typeof w=="string"||(u=Cs(u),w=Cs(w)),s(u,w)}}function Ss(s,u,w,O,$,K,oe,he,ye,We){var Ge=u&U,Ze=Ge?oe:n,at=Ge?n:oe,bt=Ge?K:n,Dt=Ge?n:K;u|=Ge?q:ie,u&=~(Ge?ie:q),u&H||(u&=-4);var Xt=[s,u,$,bt,Ze,Dt,at,he,ye,We],Pt=w.apply(n,Xt);return ag(s)&&Ob(Pt,Xt),Pt.placeholder=O,_b(Pt,s,u)}function to(s){var u=lt[s];return function(w,O){if(w=Cs(w),O=O==null?0:Gn(Yt(O),292),O&&ba(w)){var $=(gn(w)+"e").split("e"),K=u($[0]+"e"+(+$[1]+O));return $=(gn(K)+"e").split("e"),+($[0]+"e"+(+$[1]-O))}return u(w)}}var Aa=wo&&1/vo(new wo([,-0]))[1]==Ce?function(s){return new wo(s)}:Sg;function rf(s){return function(u){var w=Li(u);return w==Mt?da(u):w==Jn?Ga(u):Me(u,s(u))}}function na(s,u,w,O,$,K,oe,he){var ye=u&R;if(!ye&&typeof s!="function")throw new Vt(a);var We=O?O.length:0;if(We||(u&=-97,O=$=n),oe=oe===n?oe:wn(Yt(oe),0),he=he===n?he:Yt(he),We-=$?$.length:0,u&ie){var Ge=O,Ze=$;O=$=n}var at=ye?n:rg(s),bt=[s,u,w,O,$,Ge,Ze,K,oe,he];if(at&&eO(bt,at),s=bt[0],u=bt[1],w=bt[2],O=bt[3],$=bt[4],he=bt[9]=bt[9]===n?ye?0:s.length:wn(bt[9]-We,0),!he&&u&(U|ne)&&(u&=-25),!u||u==j)var Dt=d(s,u,w);else u==U||u==ne?Dt=B(s,u,he):(u==q||u==(j|q))&&!$.length?Dt=en(s,u,w,O):Dt=Se.apply(n,bt);var Xt=at?Zl:Ob;return _b(Xt(Dt,bt),s,u)}function bb(s,u,w,O){return s===n||ra(s,In[w])&&!kt.call(O,w)?u:s}function wb(s,u,w,O,$,K){return qn(s)&&qn(u)&&(K.set(u,s),ys(s,u,n,wb,K),K.delete(u)),s}function $P(s){return ed(s)?n:s}function xb(s,u,w,O,$,K){var oe=w&A,he=s.length,ye=u.length;if(he!=ye&&!(oe&&ye>he))return!1;var We=K.get(s),Ge=K.get(u);if(We&&Ge)return We==u&&Ge==s;var Ze=-1,at=!0,bt=w&I?new $r:n;for(K.set(s,u),K.set(u,s);++Ze<he;){var Dt=s[Ze],Xt=u[Ze];if(O)var Pt=oe?O(Xt,Dt,Ze,u,s,K):O(Dt,Xt,Ze,s,u,K);if(Pt!==n){if(Pt)continue;at=!1;break}if(bt){if(!un(u,function(Jt,tn){if(!St(bt,tn)&&(Dt===Jt||$(Dt,Jt,w,O,K)))return bt.push(tn)})){at=!1;break}}else if(!(Dt===Xt||$(Dt,Xt,w,O,K))){at=!1;break}}return K.delete(s),K.delete(u),at}function VP(s,u,w,O,$,K,oe){switch(w){case on:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case si:return!(s.byteLength!=u.byteLength||!K(new qa(s),new qa(u)));case ct:case pt:case Vn:return ra(+s,+u);case yt:return s.name==u.name&&s.message==u.message;case Dr:case sn:return s==u+"";case Mt:var he=da;case Jn:var ye=O&A;if(he||(he=vo),s.size!=u.size&&!ye)return!1;var We=oe.get(s);if(We)return We==u;O|=I,oe.set(s,u);var Ge=xb(he(s),he(u),O,$,K,oe);return oe.delete(s),Ge;case fn:if(Ws)return Ws.call(s)==Ws.call(u)}return!1}function UP(s,u,w,O,$,K){var oe=w&A,he=tg(s),ye=he.length,We=tg(u),Ge=We.length;if(ye!=Ge&&!oe)return!1;for(var Ze=ye;Ze--;){var at=he[Ze];if(!(oe?at in u:kt.call(u,at)))return!1}var bt=K.get(s),Dt=K.get(u);if(bt&&Dt)return bt==u&&Dt==s;var Xt=!0;K.set(s,u),K.set(u,s);for(var Pt=oe;++Ze<ye;){at=he[Ze];var Jt=s[at],tn=u[at];if(O)var Go=oe?O(tn,Jt,at,u,s,K):O(Jt,tn,at,s,u,K);if(!(Go===n?Jt===tn||$(Jt,tn,w,O,K):Go)){Xt=!1;break}Pt||(Pt=at=="constructor")}if(Xt&&!Pt){var ro=s.constructor,qo=u.constructor;ro!=qo&&"constructor"in s&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(Xt=!1)}return K.delete(s),K.delete(u),Xt}function dl(s){return ug(Db(s,n,Fb),s+"")}function tg(s){return rl(s,ii,og)}function ng(s){return rl(s,Po,Sb)}var rg=Ja?function(s){return Ja.get(s)}:Sg;function rh(s){for(var u=s.name+"",w=Hs[u],O=kt.call(Hs,u)?w.length:0;O--;){var $=w[O],K=$.func;if(K==null||K==s)return $.name}return u}function of(s){var u=kt.call(z,"placeholder")?z:s;return u.placeholder}function Ct(){var s=z.iteratee||wg;return s=s===wg?ql:s,arguments.length?s(arguments[0],arguments[1]):s}function ih(s,u){var w=s.__data__;return KP(u)?w[typeof u=="string"?"string":"hash"]:w.map}function ig(s){for(var u=ii(s),w=u.length;w--;){var O=u[w],$=s[O];u[w]=[O,$,Eb($)]}return u}function ic(s,u){var w=mo(s,u);return zc(w)?w:n}function HP(s){var u=kt.call(s,Bo),w=s[Bo];try{s[Bo]=n;var O=!0}catch{}var $=Fo.call(s);return O&&(u?s[Bo]=w:delete s[Bo]),$}var og=ya?function(s){return s==null?[]:(s=it(s),Ae(ya(s),function(u){return Il.call(s,u)}))}:Tg,Sb=ya?function(s){for(var u=[];s;)Tt(u,og(s)),s=Vs(s);return u}:Tg,Li=rr;(bo&&Li(new bo(new ArrayBuffer(1)))!=on||ds&&Li(new ds)!=Mt||wa&&Li(wa.resolve())!=Sn||wo&&Li(new wo)!=Jn||$o&&Li(new $o)!=ut)&&(Li=function(s){var u=rr(s),w=u==Un?s.constructor:n,O=w?oc(w):"";if(O)switch(O){case hs:return on;case Lu:return Mt;case Vf:return Sn;case Fc:return Jn;case Sa:return ut}return u});function WP(s,u,w){for(var O=-1,$=w.length;++O<$;){var K=w[O],oe=K.size;switch(K.type){case"drop":s+=oe;break;case"dropRight":u-=oe;break;case"take":u=Gn(u,s+oe);break;case"takeRight":s=wn(s,u-oe);break}}return{start:s,end:u}}function zP(s){var u=s.match(Fs);return u?u[1].split(Xr):[]}function Tb(s,u,w){u=Ci(u,s);for(var O=-1,$=u.length,K=!1;++O<$;){var oe=Ia(u[O]);if(!(K=s!=null&&w(s,oe)))break;s=s[oe]}return K||++O!=$?K:($=s==null?0:s.length,!!$&&fh($)&&hl(oe,$)&&(Ut(s)||sc(s)))}function YP(s){var u=s.length,w=new s.constructor(u);return u&&typeof s[0]=="string"&&kt.call(s,"index")&&(w.index=s.index,w.input=s.input),w}function Cb(s){return typeof s.constructor=="function"&&!Jf(s)?Vo(Vs(s)):{}}function GP(s,u,w){var O=s.constructor;switch(u){case si:return ta(s);case ct:case pt:return new O(+s);case on:return Kf(s,w);case Ui:case Hi:case Wi:case Pr:case Nn:case Or:case yr:case Yr:case Gr:return cl(s,w);case Mt:return new O;case Vn:case sn:return new O(s);case Dr:return tc(s);case Jn:return new O;case fn:return ul(s)}}function qP(s,u){var w=u.length;if(!w)return s;var O=w-1;return u[O]=(w>1?"& ":"")+u[O],u=u.join(w>2?", ":" "),s.replace(Ls,`{
143
+ */Tp.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",g=1,T=2,E=4,A=1,I=2,j=1,R=2,H=4,U=8,ne=16,q=32,ie=64,x=128,le=256,ae=512,ze=30,tt="...",Qe=800,et=16,Ye=1,pe=2,fe=3,Ce=1/0,Oe=9007199254740991,Ne=17976931348623157e292,me=NaN,Te=4294967295,Le=Te-1,He=Te>>>1,je=[["ary",x],["bind",j],["bindKey",R],["curry",U],["curryRight",ne],["flip",ae],["partial",q],["partialRight",ie],["rearg",le]],Fe="[object Arguments]",Ve="[object Array]",nt="[object AsyncFunction]",ct="[object Boolean]",pt="[object Date]",ft="[object DOMException]",yt="[object Error]",Je="[object Function]",At="[object GeneratorFunction]",Mt="[object Map]",Vn="[object Number]",vr="[object Null]",Un="[object Object]",Sn="[object Promise]",Vi="[object Proxy]",Dr="[object RegExp]",Jn="[object Set]",sn="[object String]",fn="[object Symbol]",dn="[object Undefined]",ut="[object WeakMap]",Dn="[object WeakSet]",si="[object ArrayBuffer]",on="[object DataView]",Ui="[object Float32Array]",Hi="[object Float64Array]",Wi="[object Int8Array]",Pr="[object Int16Array]",Nn="[object Int32Array]",Or="[object Uint8Array]",yr="[object Uint8ClampedArray]",Yr="[object Uint16Array]",Gr="[object Uint32Array]",Io=/\b__p \+= '';/g,Hn=/\b(__p \+=) '' \+/g,qr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,ai=RegExp(Qn.source),zi=RegExp(Wt.source),Pn=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,li=/<%=([\s\S]+?)%>/g,ui=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,ci=RegExp(br.source),an=/^\s+/,Pi=/\s/,Ls=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fs=/\{\n\/\* \[wrapped with (.+)\] \*/,Xr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uo=/[()=,{}\[\]\/\s]/,Oi=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/\w*$/,Rr=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Kr=/^\[object .+?Constructor\]$/,wr=/^0o[0-7]+$/i,Ar=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yi=/($^)/,_i=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",yn="\\u0300-\\u036f",Ir="\\ufe20-\\ufe2f",Mr="\\u20d0-\\u20ff",di=yn+Ir+Mr,hi="\\u2700-\\u27bf",xr="a-z\\xdf-\\xf6\\xf8-\\xff",Zr="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pi="\\u2000-\\u206f",gi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ri="A-Z\\xc0-\\xd6\\xd8-\\xde",nn="\\ufe0e\\ufe0f",jn=Zr+Wn+pi+gi,Cn="['’]",co="["+ar+"]",On="["+jn+"]",_n="["+di+"]",k="\\d+",F="["+hi+"]",G="["+xr+"]",ee="[^"+ar+jn+k+hi+xr+Ri+"]",De="\\ud83c[\\udffb-\\udfff]",ve="(?:"+_n+"|"+De+")",Re="[^"+ar+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",gt="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+Ri+"]",dt="\\u200d",Ft="(?:"+G+"|"+ee+")",Bn="(?:"+mt+"|"+ee+")",zn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",En="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Jr=ve+"?",lr="["+nn+"]?",Gi="(?:"+dt+"(?:"+[Re,Ke,gt].join("|")+")"+lr+Jr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lr=lr+Jr+Gi,Xi="(?:"+[F,Ke,gt].join("|")+")"+Lr,Wa="(?:"+[Re+_n+"?",_n,Ke,gt,co].join("|")+")",Ns=RegExp(Cn,"g"),os=RegExp(_n,"g"),Sr=RegExp(De+"(?="+De+")|"+Wa+Lr,"g"),za=RegExp([mt+"?"+G+"+"+zn+"(?="+[On,mt,"$"].join("|")+")",Bn+"+"+En+"(?="+[On,mt+Ft,"$"].join("|")+")",mt+"?"+Ft+"+"+zn,mt+"+"+En,qi,mi,k,Xi].join("|"),"g"),vi=RegExp("["+dt+ar+di+nn+"]"),js=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ss=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,Gt={};Gt[Ui]=Gt[Hi]=Gt[Wi]=Gt[Pr]=Gt[Nn]=Gt[Or]=Gt[yr]=Gt[Yr]=Gt[Gr]=!0,Gt[Fe]=Gt[Ve]=Gt[si]=Gt[ct]=Gt[on]=Gt[pt]=Gt[yt]=Gt[Je]=Gt[Mt]=Gt[Vn]=Gt[Un]=Gt[Dr]=Gt[Jn]=Gt[sn]=Gt[ut]=!1;var Kt={};Kt[Fe]=Kt[Ve]=Kt[si]=Kt[on]=Kt[ct]=Kt[pt]=Kt[Ui]=Kt[Hi]=Kt[Wi]=Kt[Pr]=Kt[Nn]=Kt[Mt]=Kt[Vn]=Kt[Un]=Kt[Dr]=Kt[Jn]=Kt[sn]=Kt[fn]=Kt[Or]=Kt[yr]=Kt[Yr]=Kt[Gr]=!0,Kt[yt]=Kt[Je]=Kt[ut]=!1;var Ai={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Qr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Bs=parseInt,fo=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ua=typeof self=="object"&&self&&self.Object===Object&&self,ln=fo||ua||Function("return this")(),Lo=e&&!e.nodeType&&e,bi=Lo&&!0&&t&&!t.nodeType&&t,ca=bi&&bi.exports===Lo,ho=ca&&fo.process,cr=function(){try{var Z=bi&&bi.require&&bi.require("util").types;return Z||ho&&ho.binding&&ho.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,b=cr&&cr.isDate,C=cr&&cr.isMap,P=cr&&cr.isRegExp,L=cr&&cr.isSet,N=cr&&cr.isTypedArray;function V(Z,ce,ue){switch(ue.length){case 0:return Z.call(ce);case 1:return Z.call(ce,ue[0]);case 2:return Z.call(ce,ue[0],ue[1]);case 3:return Z.call(ce,ue[0],ue[1],ue[2])}return Z.apply(ce,ue)}function se(Z,ce,ue,Ie){for(var Be=-1,st=Z==null?0:Z.length;++Be<st;){var lt=Z[Be];ce(Ie,lt,ue(lt),Z)}return Ie}function te(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie&&ce(Z[ue],ue,Z)!==!1;);return Z}function ge(Z,ce){for(var ue=Z==null?0:Z.length;ue--&&ce(Z[ue],ue,Z)!==!1;);return Z}function _e(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie;)if(!ce(Z[ue],ue,Z))return!1;return!0}function Ae(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length,Be=0,st=[];++ue<Ie;){var lt=Z[ue];ce(lt,ue,Z)&&(st[Be++]=lt)}return st}function Ee(Z,ce){var ue=Z==null?0:Z.length;return!!ue&&Qt(Z,ce,0)>-1}function Ue(Z,ce,ue){for(var Ie=-1,Be=Z==null?0:Z.length;++Ie<Be;)if(ue(ce,Z[Ie]))return!0;return!1}function ot(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length,Be=Array(Ie);++ue<Ie;)Be[ue]=ce(Z[ue],ue,Z);return Be}function Tt(Z,ce){for(var ue=-1,Ie=ce.length,Be=Z.length;++ue<Ie;)Z[Be+ue]=ce[ue];return Z}function Et(Z,ce,ue,Ie){var Be=-1,st=Z==null?0:Z.length;for(Ie&&st&&(ue=Z[++Be]);++Be<st;)ue=ce(ue,Z[Be],Be,Z);return ue}function Rn(Z,ce,ue,Ie){var Be=Z==null?0:Z.length;for(Ie&&Be&&(ue=Z[--Be]);Be--;)ue=ce(ue,Z[Be],Be,Z);return ue}function un(Z,ce){for(var ue=-1,Ie=Z==null?0:Z.length;++ue<Ie;)if(ce(Z[ue],ue,Z))return!0;return!1}var Fr=D("length");function Nr(Z){return Z.split("")}function Lt(Z){return Z.match(lo)||[]}function jr(Z,ce,ue){var Ie;return ue(Z,function(Be,st,lt){if(ce(Be,st,lt))return Ie=st,!1}),Ie}function jt(Z,ce,ue,Ie){for(var Be=Z.length,st=ue+(Ie?1:-1);Ie?st--:++st<Be;)if(ce(Z[st],st,Z))return st;return-1}function Qt(Z,ce,ue){return ce===ce?Ou(Z,ce,ue):jt(Z,go,ue)}function po(Z,ce,ue,Ie){for(var Be=ue-1,st=Z.length;++Be<st;)if(Ie(Z[Be],ce))return Be;return-1}function go(Z){return Z!==Z}function Tr(Z,ce){var ue=Z==null?0:Z.length;return ue?we(Z,ce)/ue:me}function D(Z){return function(ce){return ce==null?n:ce[Z]}}function M(Z){return function(ce){return Z==null?n:Z[ce]}}function W(Z,ce,ue,Ie,Be){return Be(Z,function(st,lt,it){ue=Ie?(Ie=!1,st):ce(ue,st,lt,it)}),ue}function Q(Z,ce){var ue=Z.length;for(Z.sort(ce);ue--;)Z[ue]=Z[ue].value;return Z}function we(Z,ce){for(var ue,Ie=-1,Be=Z.length;++Ie<Be;){var st=ce(Z[Ie]);st!==n&&(ue=ue===n?st:ue+st)}return ue}function xe(Z,ce){for(var ue=-1,Ie=Array(Z);++ue<Z;)Ie[ue]=ce(ue);return Ie}function Me(Z,ce){return ot(ce,function(ue){return[ue,Z[ue]]})}function qe(Z){return Z&&Z.slice(0,Al(Z)+1).replace(an,"")}function ht(Z){return function(ce){return Z(ce)}}function _t(Z,ce){return ot(ce,function(ue){return Z[ue]})}function St(Z,ce){return Z.has(ce)}function vt(Z,ce){for(var ue=-1,Ie=Z.length;++ue<Ie&&Qt(ce,Z[ue],0)>-1;);return ue}function An(Z,ce){for(var ue=Z.length;ue--&&Qt(ce,Z[ue],0)>-1;);return ue}function bn(Z,ce){for(var ue=Z.length,Ie=0;ue--;)Z[ue]===ce&&++Ie;return Ie}var $n=M(Ai),as=M(Qr);function fa(Z){return"\\"+yi[Z]}function mo(Z,ce){return Z==null?n:Z[ce]}function ei(Z){return vi.test(Z)}function Ya(Z){return js.test(Z)}function Ii(Z){for(var ce,ue=[];!(ce=Z.next()).done;)ue.push(ce.value);return ue}function da(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie,Be){ue[++ce]=[Be,Ie]}),ue}function ls(Z,ce){return function(ue){return Z(ce(ue))}}function ti(Z,ce){for(var ue=-1,Ie=Z.length,Be=0,st=[];++ue<Ie;){var lt=Z[ue];(lt===ce||lt===y)&&(Z[ue]=y,st[Be++]=ue)}return st}function vo(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie){ue[++ce]=Ie}),ue}function Ga(Z){var ce=-1,ue=Array(Z.size);return Z.forEach(function(Ie){ue[++ce]=[Ie,Ie]}),ue}function Ou(Z,ce,ue){for(var Ie=ue-1,Be=Z.length;++Ie<Be;)if(Z[Ie]===ce)return Ie;return-1}function ha(Z,ce,ue){for(var Ie=ue+1;Ie--;)if(Z[Ie]===ce)return Ie;return Ie}function yo(Z){return ei(Z)?$s(Z):Fr(Z)}function cn(Z){return ei(Z)?J(Z):Nr(Z)}function Al(Z){for(var ce=Z.length;ce--&&Pi.test(Z.charAt(ce)););return ce}var pa=M(Mo);function $s(Z){for(var ce=Sr.lastIndex=0;Sr.test(Z);)++ce;return ce}function J(Z){return Z.match(Sr)||[]}function de(Z){return Z.match(za)||[]}var ke=function Z(ce){ce=ce==null?ln:Pe.defaults(ln.Object(),ce,Pe.pick(ln,ss));var ue=ce.Array,Ie=ce.Date,Be=ce.Error,st=ce.Function,lt=ce.Math,it=ce.Object,It=ce.RegExp,wt=ce.String,Vt=ce.TypeError,Yn=ue.prototype,nr=st.prototype,In=it.prototype,zt=ce["__core-js_shared__"],Br=nr.toString,kt=In.hasOwnProperty,_u=0,pn=function(){var s=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Fo=In.toString,Ru=Br.call(it),Au=ln._,Iu=It("^"+Br.call(kt).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ga=ca?ce.Buffer:n,No=ce.Symbol,qa=ce.Uint8Array,Xa=ga?ga.allocUnsafe:n,Vs=ls(it.getPrototypeOf,it),ma=it.create,Il=In.propertyIsEnumerable,jo=Yn.splice,Ml=No?No.isConcatSpreadable:n,Ki=No?No.iterator:n,Bo=No?No.toStringTag:n,us=function(){try{var s=ic(it,"defineProperty");return s({},"",{}),s}catch{}}(),$f=ce.clearTimeout!==ln.clearTimeout&&ce.clearTimeout,Ka=Ie&&Ie.now!==ln.Date.now&&Ie.now,Mc=ce.setTimeout!==ln.setTimeout&&ce.setTimeout,va=lt.ceil,Us=lt.floor,ya=it.getOwnPropertySymbols,Ll=ga?ga.isBuffer:n,ba=ce.isFinite,Za=Yn.join,Lc=ls(it.keys,it),wn=lt.max,Gn=lt.min,cs=Ie.now,Mu=ce.parseInt,fs=lt.random,Fl=Yn.reverse,bo=ic(ce,"DataView"),ds=ic(ce,"Map"),wa=ic(ce,"Promise"),wo=ic(ce,"Set"),$o=ic(ce,"WeakMap"),xa=ic(it,"create"),Ja=$o&&new $o,Hs={},hs=oc(bo),Lu=oc(ds),Vf=oc(wa),Fc=oc(wo),Sa=oc($o),ps=No?No.prototype:n,Ws=ps?ps.valueOf:n,Qa=ps?ps.toString:n;function z(s){if(or(s)&&!Ut(s)&&!(s instanceof $t)){if(s instanceof Cr)return s;if(kt.call(s,"__wrapped__"))return Ib(s)}return new Cr(s)}var Vo=function(){function s(){}return function(u){if(!qn(u))return{};if(ma)return ma(u);s.prototype=u;var w=new s;return s.prototype=n,w}}();function Uo(){}function Cr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}z.templateSettings={escape:Pn,evaluate:hn,interpolate:li,variable:"",imports:{_:z}},z.prototype=Uo.prototype,z.prototype.constructor=z,Cr.prototype=Vo(Uo.prototype),Cr.prototype.constructor=Cr;function $t(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Te,this.__views__=[]}function Nl(){var s=new $t(this.__wrapped__);return s.__actions__=zr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=zr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=zr(this.__views__),s}function el(){if(this.__filtered__){var s=new $t(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function jl(){var s=this.__wrapped__.value(),u=this.__dir__,w=Ut(s),O=u<0,$=w?s.length:0,K=WP(0,$,this.__views__),oe=K.start,he=K.end,ye=he-oe,We=O?he:oe-1,Ge=this.__iteratees__,Ze=Ge.length,at=0,bt=Gn(ye,this.__takeCount__);if(!w||!O&&$==ye&&bt==ye)return Jc(s,this.__actions__);var Dt=[];e:for(;ye--&&at<bt;){We+=u;for(var Xt=-1,Pt=s[We];++Xt<Ze;){var Jt=Ge[Xt],tn=Jt.iteratee,Go=Jt.type,ro=tn(Pt);if(Go==pe)Pt=ro;else if(!ro){if(Go==Ye)continue e;break e}}Dt[at++]=Pt}return Dt}$t.prototype=Vo(Uo.prototype),$t.prototype.constructor=$t;function xo(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function Fu(){this.__data__=xa?xa(null):{},this.size=0}function Nc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function jc(s){var u=this.__data__;if(xa){var w=u[s];return w===f?n:w}return kt.call(u,s)?u[s]:n}function Bc(s){var u=this.__data__;return xa?u[s]!==n:kt.call(u,s)}function Uf(s,u){var w=this.__data__;return this.size+=this.has(s)?0:1,w[s]=xa&&u===n?f:u,this}xo.prototype.clear=Fu,xo.prototype.delete=Nc,xo.prototype.get=jc,xo.prototype.has=Bc,xo.prototype.set=Uf;function So(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function Hf(){this.__data__=[],this.size=0}function Wf(s){var u=this.__data__,w=Zi(u,s);if(w<0)return!1;var O=u.length-1;return w==O?u.pop():jo.call(u,w,1),--this.size,!0}function Nu(s){var u=this.__data__,w=Zi(u,s);return w<0?n:u[w][1]}function tl(s){return Zi(this.__data__,s)>-1}function zf(s,u){var w=this.__data__,O=Zi(w,s);return O<0?(++this.size,w.push([s,u])):w[O][1]=u,this}So.prototype.clear=Hf,So.prototype.delete=Wf,So.prototype.get=Nu,So.prototype.has=tl,So.prototype.set=zf;function Ho(s){var u=-1,w=s==null?0:s.length;for(this.clear();++u<w;){var O=s[u];this.set(O[0],O[1])}}function ju(){this.size=0,this.__data__={hash:new xo,map:new(ds||So),string:new xo}}function Bl(s){var u=oh(this,s).delete(s);return this.size-=u?1:0,u}function Yf(s){return oh(this,s).get(s)}function Gf(s){return oh(this,s).has(s)}function qf(s,u){var w=oh(this,s),O=w.size;return w.set(s,u),this.size+=w.size==O?0:1,this}Ho.prototype.clear=ju,Ho.prototype.delete=Bl,Ho.prototype.get=Yf,Ho.prototype.has=Gf,Ho.prototype.set=qf;function $r(s){var u=-1,w=s==null?0:s.length;for(this.__data__=new Ho;++u<w;)this.add(s[u])}function Bu(s){return this.__data__.set(s,f),this}function $l(s){return this.__data__.has(s)}$r.prototype.add=$r.prototype.push=Bu,$r.prototype.has=$l;function qt(s){var u=this.__data__=new So(s);this.size=u.size}function wi(){this.__data__=new So,this.size=0}function Ta(s){var u=this.__data__,w=u.delete(s);return this.size=u.size,w}function zs(s){return this.__data__.get(s)}function Zt(s){return this.__data__.has(s)}function gs(s,u){var w=this.__data__;if(w instanceof So){var O=w.__data__;if(!ds||O.length<i-1)return O.push([s,u]),this.size=++w.size,this;w=this.__data__=new Ho(O)}return w.set(s,u),this.size=w.size,this}qt.prototype.clear=wi,qt.prototype.delete=Ta,qt.prototype.get=zs,qt.prototype.has=Zt,qt.prototype.set=gs;function nl(s,u){var w=Ut(s),O=!w&&sc(s),$=!w&&!O&&ru(s),K=!w&&!O&&!$&&sf(s),oe=w||O||$||K,he=oe?xe(s.length,wt):[],ye=he.length;for(var We in s)(u||kt.call(s,We))&&!(oe&&(We=="length"||$&&(We=="offset"||We=="parent")||K&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||hl(We,ye)))&&he.push(We);return he}function ni(s){var u=s.length;return u?s[Js(0,u-1)]:n}function xi(s,u){return sh(zr(s),Gs(u,0,s.length))}function To(s){return sh(zr(s))}function $u(s,u,w){(w!==n&&!ra(s[u],w)||w===n&&!(u in s))&&Si(s,u,w)}function Vr(s,u,w){var O=s[u];(!(kt.call(s,u)&&ra(O,w))||w===n&&!(u in s))&&Si(s,u,w)}function Zi(s,u){for(var w=s.length;w--;)if(ra(s[w][0],u))return w;return-1}function Ys(s,u,w,O){return ms(s,function($,K,oe){u(O,$,w($),oe)}),O}function $c(s,u){return s&&Mi(u,ii(u),s)}function Vu(s,u){return s&&Mi(u,Po(u),s)}function Si(s,u,w){u=="__proto__"&&us?us(s,u,{configurable:!0,enumerable:!0,value:w,writable:!0}):s[u]=w}function Uu(s,u){for(var w=-1,O=u.length,$=ue(O),K=s==null;++w<O;)$[w]=K?n:mg(s,u[w]);return $}function Gs(s,u,w){return s===s&&(w!==n&&(s=s<=w?s:w),u!==n&&(s=s>=u?s:u)),s}function Ur(s,u,w,O,$,K){var oe,he=u&g,ye=u&T,We=u&E;if(w&&(oe=$?w(s,O,$,K):w(s)),oe!==n)return oe;if(!qn(s))return s;var Ge=Ut(s);if(Ge){if(oe=YP(s),!he)return zr(s,oe)}else{var Ze=Li(s),at=Ze==Je||Ze==At;if(ru(s))return xs(s,he);if(Ze==Un||Ze==Fe||at&&!$){if(oe=ye||at?{}:Cb(s),!he)return ye?Zf(s,Vu(oe,s)):nf(s,$c(oe,s))}else{if(!Kt[Ze])return $?s:{};oe=GP(s,Ze,he)}}K||(K=new qt);var bt=K.get(s);if(bt)return bt;K.set(s,oe),Qb(s)?s.forEach(function(Pt){oe.add(Ur(Pt,u,w,Pt,s,K))}):Zb(s)&&s.forEach(function(Pt,Jt){oe.set(Jt,Ur(Pt,u,w,Jt,s,K))});var Dt=We?ye?ng:tg:ye?Po:ii,Xt=Ge?n:Dt(s);return te(Xt||s,function(Pt,Jt){Xt&&(Jt=Pt,Pt=s[Jt]),Vr(oe,Jt,Ur(Pt,u,w,Jt,s,K))}),oe}function Hu(s){var u=ii(s);return function(w){return Wu(w,s,u)}}function Wu(s,u,w){var O=w.length;if(s==null)return!O;for(s=it(s);O--;){var $=w[O],K=u[$],oe=s[$];if(oe===n&&!($ in s)||!K(oe))return!1}return!0}function zu(s,u,w){if(typeof s!="function")throw new Vt(a);return Qf(function(){s.apply(n,w)},u)}function qs(s,u,w,O){var $=-1,K=Ee,oe=!0,he=s.length,ye=[],We=u.length;if(!he)return ye;w&&(u=ot(u,ht(w))),O?(K=Ue,oe=!1):u.length>=i&&(K=St,oe=!1,u=new $r(u));e:for(;++$<he;){var Ge=s[$],Ze=w==null?Ge:w(Ge);if(Ge=O||Ge!==0?Ge:0,oe&&Ze===Ze){for(var at=We;at--;)if(u[at]===Ze)continue e;ye.push(Ge)}else K(u,Ze,O)||ye.push(Ge)}return ye}var ms=v(Ti),Yu=v(Ul,!0);function Vc(s,u){var w=!0;return ms(s,function(O,$,K){return w=!!u(O,$,K),w}),w}function Vl(s,u,w){for(var O=-1,$=s.length;++O<$;){var K=s[O],oe=u(K);if(oe!=null&&(he===n?oe===oe&&!Yo(oe):w(oe,he)))var he=oe,ye=K}return ye}function Xf(s,u,w,O){var $=s.length;for(w=Yt(w),w<0&&(w=-w>$?0:$+w),O=O===n||O>$?$:Yt(O),O<0&&(O+=$),O=w>O?0:t0(O);w<O;)s[w++]=u;return s}function Uc(s,u){var w=[];return ms(s,function(O,$,K){u(O,$,K)&&w.push(O)}),w}function fr(s,u,w,O,$){var K=-1,oe=s.length;for(w||(w=XP),$||($=[]);++K<oe;){var he=s[K];u>0&&w(he)?u>1?fr(he,u-1,w,O,$):Tt($,he):O||($[$.length]=he)}return $}var Gu=l(),Hc=l(!0);function Ti(s,u){return s&&Gu(s,u,ii)}function Ul(s,u){return s&&Hc(s,u,ii)}function Ca(s,u){return Ae(u,function(w){return pl(s[w])})}function vs(s,u){u=Ci(u,s);for(var w=0,O=u.length;s!=null&&w<O;)s=s[Ia(u[w++])];return w&&w==O?s:n}function rl(s,u,w){var O=u(s);return Ut(s)?O:Tt(O,w(s))}function rr(s){return s==null?s===n?dn:vr:Bo&&Bo in it(s)?HP(s):nO(s)}function Xs(s,u){return s>u}function Hl(s,u){return s!=null&&kt.call(s,u)}function Ea(s,u){return s!=null&&u in it(s)}function Wl(s,u,w){return s>=Gn(u,w)&&s<wn(u,w)}function ka(s,u,w){for(var O=w?Ue:Ee,$=s[0].length,K=s.length,oe=K,he=ue(K),ye=1/0,We=[];oe--;){var Ge=s[oe];oe&&u&&(Ge=ot(Ge,ht(u))),ye=Gn(Ge.length,ye),he[oe]=!w&&(u||$>=120&&Ge.length>=120)?new $r(oe&&Ge):n}Ge=s[0];var Ze=-1,at=he[0];e:for(;++Ze<$&&We.length<ye;){var bt=Ge[Ze],Dt=u?u(bt):bt;if(bt=w||bt!==0?bt:0,!(at?St(at,Dt):O(We,Dt,w))){for(oe=K;--oe;){var Xt=he[oe];if(!(Xt?St(Xt,Dt):O(s[oe],Dt,w)))continue e}at&&at.push(Dt),We.push(bt)}}return We}function zl(s,u,w,O){return Ti(s,function($,K,oe){u(O,w($),K,oe)}),O}function Co(s,u,w){u=Ci(u,s),s=Pb(s,u);var O=s==null?s:s[Ia(Ts(u))];return O==null?n:V(O,s,w)}function Yl(s){return or(s)&&rr(s)==Fe}function Ks(s){return or(s)&&rr(s)==si}function Wc(s){return or(s)&&rr(s)==pt}function il(s,u,w,O,$){return s===u?!0:s==null||u==null||!or(s)&&!or(u)?s!==s&&u!==u:Da(s,u,w,O,il,$)}function Da(s,u,w,O,$,K){var oe=Ut(s),he=Ut(u),ye=oe?Ve:Li(s),We=he?Ve:Li(u);ye=ye==Fe?Un:ye,We=We==Fe?Un:We;var Ge=ye==Un,Ze=We==Un,at=ye==We;if(at&&ru(s)){if(!ru(u))return!1;oe=!0,Ge=!1}if(at&&!Ge)return K||(K=new qt),oe||sf(s)?xb(s,u,w,O,$,K):VP(s,u,ye,w,O,$,K);if(!(w&A)){var bt=Ge&&kt.call(s,"__wrapped__"),Dt=Ze&&kt.call(u,"__wrapped__");if(bt||Dt){var Xt=bt?s.value():s,Pt=Dt?u.value():u;return K||(K=new qt),$(Xt,Pt,w,O,K)}}return at?(K||(K=new qt),UP(s,u,w,O,$,K)):!1}function Pa(s){return or(s)&&Li(s)==Mt}function qu(s,u,w,O){var $=w.length,K=$,oe=!O;if(s==null)return!K;for(s=it(s);$--;){var he=w[$];if(oe&&he[2]?he[1]!==s[he[0]]:!(he[0]in s))return!1}for(;++$<K;){he=w[$];var ye=he[0],We=s[ye],Ge=he[1];if(oe&&he[2]){if(We===n&&!(ye in s))return!1}else{var Ze=new qt;if(O)var at=O(We,Ge,ye,s,u,Ze);if(!(at===n?il(Ge,We,A|I,O,Ze):at))return!1}}return!0}function zc(s){if(!qn(s)||ZP(s))return!1;var u=pl(s)?Iu:Kr;return u.test(oc(s))}function Zs(s){return or(s)&&rr(s)==Dr}function Gl(s){return or(s)&&Li(s)==Jn}function Wo(s){return or(s)&&dh(s.length)&&!!Gt[rr(s)]}function ql(s){return typeof s=="function"?s:s==null?Oo:typeof s=="object"?Ut(s)?sl(s[0],s[1]):Eo(s):d0(s)}function zo(s){if(!Jf(s))return Lc(s);var u=[];for(var w in it(s))kt.call(s,w)&&w!="constructor"&&u.push(w);return u}function ol(s){if(!qn(s))return tO(s);var u=Jf(s),w=[];for(var O in s)O=="constructor"&&(u||!kt.call(s,O))||w.push(O);return w}function Ji(s,u){return s<u}function Qi(s,u){var w=-1,O=Do(s)?ue(s.length):[];return ms(s,function($,K,oe){O[++w]=u($,K,oe)}),O}function Eo(s){var u=ig(s);return u.length==1&&u[0][2]?kb(u[0][0],u[0][1]):function(w){return w===s||qu(w,s,u)}}function sl(s,u){return sg(s)&&Eb(u)?kb(Ia(s),u):function(w){var O=mg(w,s);return O===n&&O===u?vg(w,s):il(u,O,A|I)}}function ys(s,u,w,O,$){s!==u&&Gu(u,function(K,oe){if($||($=new qt),qn(K))eo(s,u,oe,w,ys,O,$);else{var he=O?O(lg(s,oe),K,oe+"",s,u,$):n;he===n&&(he=K),$u(s,oe,he)}},Po)}function eo(s,u,w,O,$,K,oe){var he=lg(s,w),ye=lg(u,w),We=oe.get(ye);if(We){$u(s,w,We);return}var Ge=K?K(he,ye,w+"",s,u,oe):n,Ze=Ge===n;if(Ze){var at=Ut(ye),bt=!at&&ru(ye),Dt=!at&&!bt&&sf(ye);Ge=ye,at||bt||Dt?Ut(he)?Ge=he:hr(he)?Ge=zr(he):bt?(Ze=!1,Ge=xs(ye,!0)):Dt?(Ze=!1,Ge=cl(ye,!0)):Ge=[]:ed(ye)||sc(ye)?(Ge=he,sc(he)?Ge=n0(he):(!qn(he)||pl(he))&&(Ge=Cb(ye))):Ze=!1}Ze&&(oe.set(ye,Ge),$(Ge,ye,O,K,oe),oe.delete(ye)),$u(s,w,Ge)}function Oa(s,u){var w=s.length;if(w)return u+=u<0?w:0,hl(u,w)?s[u]:n}function Xl(s,u,w){u.length?u=ot(u,function(K){return Ut(K)?function(oe){return vs(oe,K.length===1?K[0]:K)}:K}):u=[Oo];var O=-1;u=ot(u,ht(Ct()));var $=Qi(s,function(K,oe,he){var ye=ot(u,function(We){return We(K)});return{criteria:ye,index:++O,value:K}});return Q($,function(K,oe){return nu(K,oe,w)})}function al(s,u){return _a(s,u,function(w,O){return vg(s,O)})}function _a(s,u,w){for(var O=-1,$=u.length,K={};++O<$;){var oe=u[O],he=vs(s,oe);w(he,oe)&&Qs(K,Ci(oe,s),he)}return K}function Yc(s){return function(u){return vs(u,s)}}function Xu(s,u,w,O){var $=O?po:Qt,K=-1,oe=u.length,he=s;for(s===u&&(u=zr(u)),w&&(he=ot(s,ht(w)));++K<oe;)for(var ye=0,We=u[K],Ge=w?w(We):We;(ye=$(he,Ge,ye,O))>-1;)he!==s&&jo.call(he,ye,1),jo.call(s,ye,1);return s}function Ku(s,u){for(var w=s?u.length:0,O=w-1;w--;){var $=u[w];if(w==O||$!==K){var K=$;hl($)?jo.call(s,$,1):Wr(s,$)}}return s}function Js(s,u){return s+Us(fs()*(u-s+1))}function Zu(s,u,w,O){for(var $=-1,K=wn(va((u-s)/(w||1)),0),oe=ue(K);K--;)oe[O?K:++$]=s,s+=w;return oe}function Kl(s,u){var w="";if(!s||u<1||u>Oe)return w;do u%2&&(w+=s),u=Us(u/2),u&&(s+=s);while(u);return w}function Bt(s,u){return ug(Db(s,u,Oo),s+"")}function ll(s){return ni(af(s))}function Ju(s,u){var w=af(s);return sh(w,Gs(u,0,w.length))}function Qs(s,u,w,O){if(!qn(s))return s;u=Ci(u,s);for(var $=-1,K=u.length,oe=K-1,he=s;he!=null&&++$<K;){var ye=Ia(u[$]),We=w;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return s;if($!=oe){var Ge=he[ye];We=O?O(Ge,ye,he):n,We===n&&(We=qn(Ge)?Ge:hl(u[$+1])?[]:{})}Vr(he,ye,We),he=he[ye]}return s}var Zl=Ja?function(s,u){return Ja.set(s,u),s}:Oo,Gc=us?function(s,u){return us(s,"toString",{configurable:!0,enumerable:!1,value:bg(u),writable:!0})}:Oo;function qc(s){return sh(af(s))}function ri(s,u,w){var O=-1,$=s.length;u<0&&(u=-u>$?0:$+u),w=w>$?$:w,w<0&&(w+=$),$=u>w?0:w-u>>>0,u>>>=0;for(var K=ue($);++O<$;)K[O]=s[O+u];return K}function Xc(s,u){var w;return ms(s,function(O,$,K){return w=u(O,$,K),!w}),!!w}function Jl(s,u,w){var O=0,$=s==null?O:s.length;if(typeof u=="number"&&u===u&&$<=He){for(;O<$;){var K=O+$>>>1,oe=s[K];oe!==null&&!Yo(oe)&&(w?oe<=u:oe<u)?O=K+1:$=K}return $}return Qu(s,u,Oo,w)}function Qu(s,u,w,O){var $=0,K=s==null?0:s.length;if(K===0)return 0;u=w(u);for(var oe=u!==u,he=u===null,ye=Yo(u),We=u===n;$<K;){var Ge=Us(($+K)/2),Ze=w(s[Ge]),at=Ze!==n,bt=Ze===null,Dt=Ze===Ze,Xt=Yo(Ze);if(oe)var Pt=O||Dt;else We?Pt=Dt&&(O||at):he?Pt=Dt&&at&&(O||!bt):ye?Pt=Dt&&at&&!bt&&(O||!Xt):bt||Xt?Pt=!1:Pt=O?Ze<=u:Ze<u;Pt?$=Ge+1:K=Ge}return Gn(K,Le)}function ec(s,u){for(var w=-1,O=s.length,$=0,K=[];++w<O;){var oe=s[w],he=u?u(oe):oe;if(!w||!ra(he,ye)){var ye=he;K[$++]=oe===0?0:oe}}return K}function Kc(s){return typeof s=="number"?s:Yo(s)?me:+s}function Hr(s){if(typeof s=="string")return s;if(Ut(s))return ot(s,Hr)+"";if(Yo(s))return Qa?Qa.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function bs(s,u,w){var O=-1,$=Ee,K=s.length,oe=!0,he=[],ye=he;if(w)oe=!1,$=Ue;else if(K>=i){var We=u?null:Aa(s);if(We)return vo(We);oe=!1,$=St,ye=new $r}else ye=u?[]:he;e:for(;++O<K;){var Ge=s[O],Ze=u?u(Ge):Ge;if(Ge=w||Ge!==0?Ge:0,oe&&Ze===Ze){for(var at=ye.length;at--;)if(ye[at]===Ze)continue e;u&&ye.push(Ze),he.push(Ge)}else $(ye,Ze,w)||(ye!==he&&ye.push(Ze),he.push(Ge))}return he}function Wr(s,u){return u=Ci(u,s),s=Pb(s,u),s==null||delete s[Ia(Ts(u))]}function Zc(s,u,w,O){return Qs(s,u,w(vs(s,u)),O)}function ea(s,u,w,O){for(var $=s.length,K=O?$:-1;(O?K--:++K<$)&&u(s[K],K,s););return w?ri(s,O?0:K,O?K+1:$):ri(s,O?K+1:0,O?$:K)}function Jc(s,u){var w=s;return w instanceof $t&&(w=w.value()),Et(u,function(O,$){return $.func.apply($.thisArg,Tt([O],$.args))},w)}function dr(s,u,w){var O=s.length;if(O<2)return O?bs(s[0]):[];for(var $=-1,K=ue(O);++$<O;)for(var oe=s[$],he=-1;++he<O;)he!=$&&(K[$]=qs(K[$]||oe,s[he],u,w));return bs(fr(K,1),u,w)}function Qc(s,u,w){for(var O=-1,$=s.length,K=u.length,oe={};++O<$;){var he=O<K?u[O]:n;w(oe,s[O],he)}return oe}function Ql(s){return hr(s)?s:[]}function eu(s){return typeof s=="function"?s:Oo}function Ci(s,u){return Ut(s)?s:sg(s,u)?[s]:Ab(gn(s))}var ef=Bt;function ws(s,u,w){var O=s.length;return w=w===n?O:w,!u&&w>=O?s:ri(s,u,w)}var tu=$f||function(s){return ln.clearTimeout(s)};function xs(s,u){if(u)return s.slice();var w=s.length,O=Xa?Xa(w):new s.constructor(w);return s.copy(O),O}function ta(s){var u=new s.constructor(s.byteLength);return new qa(u).set(new qa(s)),u}function Kf(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.byteLength)}function tc(s){var u=new s.constructor(s.source,_r.exec(s));return u.lastIndex=s.lastIndex,u}function ul(s){return Ws?it(Ws.call(s)):{}}function cl(s,u){var w=u?ta(s.buffer):s.buffer;return new s.constructor(w,s.byteOffset,s.length)}function nc(s,u){if(s!==u){var w=s!==n,O=s===null,$=s===s,K=Yo(s),oe=u!==n,he=u===null,ye=u===u,We=Yo(u);if(!he&&!We&&!K&&s>u||K&&oe&&ye&&!he&&!We||O&&oe&&ye||!w&&ye||!$)return 1;if(!O&&!K&&!We&&s<u||We&&w&&$&&!O&&!K||he&&w&&$||!oe&&$||!ye)return-1}return 0}function nu(s,u,w){for(var O=-1,$=s.criteria,K=u.criteria,oe=$.length,he=w.length;++O<oe;){var ye=nc($[O],K[O]);if(ye){if(O>=he)return ye;var We=w[O];return ye*(We=="desc"?-1:1)}}return s.index-u.index}function rc(s,u,w,O){for(var $=-1,K=s.length,oe=w.length,he=-1,ye=u.length,We=wn(K-oe,0),Ge=ue(ye+We),Ze=!O;++he<ye;)Ge[he]=u[he];for(;++$<oe;)(Ze||$<K)&&(Ge[w[$]]=s[$]);for(;We--;)Ge[he++]=s[$++];return Ge}function tf(s,u,w,O){for(var $=-1,K=s.length,oe=-1,he=w.length,ye=-1,We=u.length,Ge=wn(K-he,0),Ze=ue(Ge+We),at=!O;++$<Ge;)Ze[$]=s[$];for(var bt=$;++ye<We;)Ze[bt+ye]=u[ye];for(;++oe<he;)(at||$<K)&&(Ze[bt+w[oe]]=s[$++]);return Ze}function zr(s,u){var w=-1,O=s.length;for(u||(u=ue(O));++w<O;)u[w]=s[w];return u}function Mi(s,u,w,O){var $=!w;w||(w={});for(var K=-1,oe=u.length;++K<oe;){var he=u[K],ye=O?O(w[he],s[he],he,w,s):n;ye===n&&(ye=s[he]),$?Si(w,he,ye):Vr(w,he,ye)}return w}function nf(s,u){return Mi(s,og(s),u)}function Zf(s,u){return Mi(s,Sb(s),u)}function fl(s,u){return function(w,O){var $=Ut(w)?se:Ys,K=u?u():{};return $(w,s,Ct(O,2),K)}}function Ra(s){return Bt(function(u,w){var O=-1,$=w.length,K=$>1?w[$-1]:n,oe=$>2?w[2]:n;for(K=s.length>3&&typeof K=="function"?($--,K):n,oe&&no(w[0],w[1],oe)&&(K=$<3?n:K,$=1),u=it(u);++O<$;){var he=w[O];he&&s(u,he,O,K)}return u})}function v(s,u){return function(w,O){if(w==null)return w;if(!Do(w))return s(w,O);for(var $=w.length,K=u?$:-1,oe=it(w);(u?K--:++K<$)&&O(oe[K],K,oe)!==!1;);return w}}function l(s){return function(u,w,O){for(var $=-1,K=it(u),oe=O(u),he=oe.length;he--;){var ye=oe[s?he:++$];if(w(K[ye],ye,K)===!1)break}return u}}function d(s,u,w){var O=u&j,$=_(s);function K(){var oe=this&&this!==ln&&this instanceof K?$:s;return oe.apply(O?w:this,arguments)}return K}function m(s){return function(u){u=gn(u);var w=ei(u)?cn(u):n,O=w?w[0]:u.charAt(0),$=w?ws(w,1).join(""):u.slice(1);return O[s]()+$}}function S(s){return function(u){return Et(c0(u0(u).replace(Ns,"")),s,"")}}function _(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var w=Vo(s.prototype),O=s.apply(w,u);return qn(O)?O:w}}function B(s,u,w){var O=_(s);function $(){for(var K=arguments.length,oe=ue(K),he=K,ye=of($);he--;)oe[he]=arguments[he];var We=K<3&&oe[0]!==ye&&oe[K-1]!==ye?[]:ti(oe,ye);if(K-=We.length,K<w)return Ss(s,u,Se,$.placeholder,n,oe,We,n,n,w-K);var Ge=this&&this!==ln&&this instanceof $?O:s;return V(Ge,this,oe)}return $}function Y(s){return function(u,w,O){var $=it(u);if(!Do(u)){var K=Ct(w,3);u=ii(u),w=function(he){return K($[he],he,$)}}var oe=s(u,w,O);return oe>-1?$[K?u[oe]:oe]:n}}function re(s){return dl(function(u){var w=u.length,O=w,$=Cr.prototype.thru;for(s&&u.reverse();O--;){var K=u[O];if(typeof K!="function")throw new Vt(a);if($&&!oe&&ih(K)=="wrapper")var oe=new Cr([],!0)}for(O=oe?O:w;++O<w;){K=u[O];var he=ih(K),ye=he=="wrapper"?rg(K):n;ye&&ag(ye[0])&&ye[1]==(x|U|q|le)&&!ye[4].length&&ye[9]==1?oe=oe[ih(ye[0])].apply(oe,ye[3]):oe=K.length==1&&ag(K)?oe[he]():oe.thru(K)}return function(){var We=arguments,Ge=We[0];if(oe&&We.length==1&&Ut(Ge))return oe.plant(Ge).value();for(var Ze=0,at=w?u[Ze].apply(this,We):Ge;++Ze<w;)at=u[Ze].call(this,at);return at}})}function Se(s,u,w,O,$,K,oe,he,ye,We){var Ge=u&x,Ze=u&j,at=u&R,bt=u&(U|ne),Dt=u&ae,Xt=at?n:_(s);function Pt(){for(var Jt=arguments.length,tn=ue(Jt),Go=Jt;Go--;)tn[Go]=arguments[Go];if(bt)var ro=of(Pt),qo=bn(tn,ro);if(O&&(tn=rc(tn,O,$,bt)),K&&(tn=tf(tn,K,oe,bt)),Jt-=qo,bt&&Jt<We){var pr=ti(tn,ro);return Ss(s,u,Se,Pt.placeholder,w,tn,pr,he,ye,We-Jt)}var ia=Ze?w:this,ml=at?ia[s]:s;return Jt=tn.length,he?tn=rO(tn,he):Dt&&Jt>1&&tn.reverse(),Ge&&ye<Jt&&(tn.length=ye),this&&this!==ln&&this instanceof Pt&&(ml=Xt||_(ml)),ml.apply(ia,tn)}return Pt}function $e(s,u){return function(w,O){return zl(w,s,u(O),{})}}function Xe(s,u){return function(w,O){var $;if(w===n&&O===n)return u;if(w!==n&&($=w),O!==n){if($===n)return O;typeof w=="string"||typeof O=="string"?(w=Hr(w),O=Hr(O)):(w=Kc(w),O=Kc(O)),$=s(w,O)}return $}}function rt(s){return dl(function(u){return u=ot(u,ht(Ct())),Bt(function(w){var O=this;return s(u,function($){return V($,O,w)})})})}function xt(s,u){u=u===n?" ":Hr(u);var w=u.length;if(w<2)return w?Kl(u,s):u;var O=Kl(u,va(s/yo(u)));return ei(u)?ws(cn(O),0,s).join(""):O.slice(0,s)}function en(s,u,w,O){var $=u&j,K=_(s);function oe(){for(var he=-1,ye=arguments.length,We=-1,Ge=O.length,Ze=ue(Ge+ye),at=this&&this!==ln&&this instanceof oe?K:s;++We<Ge;)Ze[We]=O[We];for(;ye--;)Ze[We++]=arguments[++he];return V(at,$?w:this,Ze)}return oe}function ir(s){return function(u,w,O){return O&&typeof O!="number"&&no(u,w,O)&&(w=O=n),u=gl(u),w===n?(w=u,u=0):w=gl(w),O=O===n?u<w?1:-1:gl(O),Zu(u,w,O,s)}}function ko(s){return function(u,w){return typeof u=="string"&&typeof w=="string"||(u=Cs(u),w=Cs(w)),s(u,w)}}function Ss(s,u,w,O,$,K,oe,he,ye,We){var Ge=u&U,Ze=Ge?oe:n,at=Ge?n:oe,bt=Ge?K:n,Dt=Ge?n:K;u|=Ge?q:ie,u&=~(Ge?ie:q),u&H||(u&=-4);var Xt=[s,u,$,bt,Ze,Dt,at,he,ye,We],Pt=w.apply(n,Xt);return ag(s)&&Ob(Pt,Xt),Pt.placeholder=O,_b(Pt,s,u)}function to(s){var u=lt[s];return function(w,O){if(w=Cs(w),O=O==null?0:Gn(Yt(O),292),O&&ba(w)){var $=(gn(w)+"e").split("e"),K=u($[0]+"e"+(+$[1]+O));return $=(gn(K)+"e").split("e"),+($[0]+"e"+(+$[1]-O))}return u(w)}}var Aa=wo&&1/vo(new wo([,-0]))[1]==Ce?function(s){return new wo(s)}:Sg;function rf(s){return function(u){var w=Li(u);return w==Mt?da(u):w==Jn?Ga(u):Me(u,s(u))}}function na(s,u,w,O,$,K,oe,he){var ye=u&R;if(!ye&&typeof s!="function")throw new Vt(a);var We=O?O.length:0;if(We||(u&=-97,O=$=n),oe=oe===n?oe:wn(Yt(oe),0),he=he===n?he:Yt(he),We-=$?$.length:0,u&ie){var Ge=O,Ze=$;O=$=n}var at=ye?n:rg(s),bt=[s,u,w,O,$,Ge,Ze,K,oe,he];if(at&&eO(bt,at),s=bt[0],u=bt[1],w=bt[2],O=bt[3],$=bt[4],he=bt[9]=bt[9]===n?ye?0:s.length:wn(bt[9]-We,0),!he&&u&(U|ne)&&(u&=-25),!u||u==j)var Dt=d(s,u,w);else u==U||u==ne?Dt=B(s,u,he):(u==q||u==(j|q))&&!$.length?Dt=en(s,u,w,O):Dt=Se.apply(n,bt);var Xt=at?Zl:Ob;return _b(Xt(Dt,bt),s,u)}function bb(s,u,w,O){return s===n||ra(s,In[w])&&!kt.call(O,w)?u:s}function wb(s,u,w,O,$,K){return qn(s)&&qn(u)&&(K.set(u,s),ys(s,u,n,wb,K),K.delete(u)),s}function $P(s){return ed(s)?n:s}function xb(s,u,w,O,$,K){var oe=w&A,he=s.length,ye=u.length;if(he!=ye&&!(oe&&ye>he))return!1;var We=K.get(s),Ge=K.get(u);if(We&&Ge)return We==u&&Ge==s;var Ze=-1,at=!0,bt=w&I?new $r:n;for(K.set(s,u),K.set(u,s);++Ze<he;){var Dt=s[Ze],Xt=u[Ze];if(O)var Pt=oe?O(Xt,Dt,Ze,u,s,K):O(Dt,Xt,Ze,s,u,K);if(Pt!==n){if(Pt)continue;at=!1;break}if(bt){if(!un(u,function(Jt,tn){if(!St(bt,tn)&&(Dt===Jt||$(Dt,Jt,w,O,K)))return bt.push(tn)})){at=!1;break}}else if(!(Dt===Xt||$(Dt,Xt,w,O,K))){at=!1;break}}return K.delete(s),K.delete(u),at}function VP(s,u,w,O,$,K,oe){switch(w){case on:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case si:return!(s.byteLength!=u.byteLength||!K(new qa(s),new qa(u)));case ct:case pt:case Vn:return ra(+s,+u);case yt:return s.name==u.name&&s.message==u.message;case Dr:case sn:return s==u+"";case Mt:var he=da;case Jn:var ye=O&A;if(he||(he=vo),s.size!=u.size&&!ye)return!1;var We=oe.get(s);if(We)return We==u;O|=I,oe.set(s,u);var Ge=xb(he(s),he(u),O,$,K,oe);return oe.delete(s),Ge;case fn:if(Ws)return Ws.call(s)==Ws.call(u)}return!1}function UP(s,u,w,O,$,K){var oe=w&A,he=tg(s),ye=he.length,We=tg(u),Ge=We.length;if(ye!=Ge&&!oe)return!1;for(var Ze=ye;Ze--;){var at=he[Ze];if(!(oe?at in u:kt.call(u,at)))return!1}var bt=K.get(s),Dt=K.get(u);if(bt&&Dt)return bt==u&&Dt==s;var Xt=!0;K.set(s,u),K.set(u,s);for(var Pt=oe;++Ze<ye;){at=he[Ze];var Jt=s[at],tn=u[at];if(O)var Go=oe?O(tn,Jt,at,u,s,K):O(Jt,tn,at,s,u,K);if(!(Go===n?Jt===tn||$(Jt,tn,w,O,K):Go)){Xt=!1;break}Pt||(Pt=at=="constructor")}if(Xt&&!Pt){var ro=s.constructor,qo=u.constructor;ro!=qo&&"constructor"in s&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(Xt=!1)}return K.delete(s),K.delete(u),Xt}function dl(s){return ug(Db(s,n,Fb),s+"")}function tg(s){return rl(s,ii,og)}function ng(s){return rl(s,Po,Sb)}var rg=Ja?function(s){return Ja.get(s)}:Sg;function ih(s){for(var u=s.name+"",w=Hs[u],O=kt.call(Hs,u)?w.length:0;O--;){var $=w[O],K=$.func;if(K==null||K==s)return $.name}return u}function of(s){var u=kt.call(z,"placeholder")?z:s;return u.placeholder}function Ct(){var s=z.iteratee||wg;return s=s===wg?ql:s,arguments.length?s(arguments[0],arguments[1]):s}function oh(s,u){var w=s.__data__;return KP(u)?w[typeof u=="string"?"string":"hash"]:w.map}function ig(s){for(var u=ii(s),w=u.length;w--;){var O=u[w],$=s[O];u[w]=[O,$,Eb($)]}return u}function ic(s,u){var w=mo(s,u);return zc(w)?w:n}function HP(s){var u=kt.call(s,Bo),w=s[Bo];try{s[Bo]=n;var O=!0}catch{}var $=Fo.call(s);return O&&(u?s[Bo]=w:delete s[Bo]),$}var og=ya?function(s){return s==null?[]:(s=it(s),Ae(ya(s),function(u){return Il.call(s,u)}))}:Tg,Sb=ya?function(s){for(var u=[];s;)Tt(u,og(s)),s=Vs(s);return u}:Tg,Li=rr;(bo&&Li(new bo(new ArrayBuffer(1)))!=on||ds&&Li(new ds)!=Mt||wa&&Li(wa.resolve())!=Sn||wo&&Li(new wo)!=Jn||$o&&Li(new $o)!=ut)&&(Li=function(s){var u=rr(s),w=u==Un?s.constructor:n,O=w?oc(w):"";if(O)switch(O){case hs:return on;case Lu:return Mt;case Vf:return Sn;case Fc:return Jn;case Sa:return ut}return u});function WP(s,u,w){for(var O=-1,$=w.length;++O<$;){var K=w[O],oe=K.size;switch(K.type){case"drop":s+=oe;break;case"dropRight":u-=oe;break;case"take":u=Gn(u,s+oe);break;case"takeRight":s=wn(s,u-oe);break}}return{start:s,end:u}}function zP(s){var u=s.match(Fs);return u?u[1].split(Xr):[]}function Tb(s,u,w){u=Ci(u,s);for(var O=-1,$=u.length,K=!1;++O<$;){var oe=Ia(u[O]);if(!(K=s!=null&&w(s,oe)))break;s=s[oe]}return K||++O!=$?K:($=s==null?0:s.length,!!$&&dh($)&&hl(oe,$)&&(Ut(s)||sc(s)))}function YP(s){var u=s.length,w=new s.constructor(u);return u&&typeof s[0]=="string"&&kt.call(s,"index")&&(w.index=s.index,w.input=s.input),w}function Cb(s){return typeof s.constructor=="function"&&!Jf(s)?Vo(Vs(s)):{}}function GP(s,u,w){var O=s.constructor;switch(u){case si:return ta(s);case ct:case pt:return new O(+s);case on:return Kf(s,w);case Ui:case Hi:case Wi:case Pr:case Nn:case Or:case yr:case Yr:case Gr:return cl(s,w);case Mt:return new O;case Vn:case sn:return new O(s);case Dr:return tc(s);case Jn:return new O;case fn:return ul(s)}}function qP(s,u){var w=u.length;if(!w)return s;var O=w-1;return u[O]=(w>1?"& ":"")+u[O],u=u.join(w>2?", ":" "),s.replace(Ls,`{
144
144
  /* [wrapped with `+u+`] */
145
- `)}function XP(s){return Ut(s)||sc(s)||!!(Ml&&s&&s[Ml])}function hl(s,u){var w=typeof s;return u=u??Oe,!!u&&(w=="number"||w!="symbol"&&Ar.test(s))&&s>-1&&s%1==0&&s<u}function no(s,u,w){if(!qn(w))return!1;var O=typeof u;return(O=="number"?Do(w)&&hl(u,w.length):O=="string"&&u in w)?ra(w[u],s):!1}function sg(s,u){if(Ut(s))return!1;var w=typeof s;return w=="number"||w=="symbol"||w=="boolean"||s==null||Yo(s)?!0:Tn.test(s)||!ui.test(s)||u!=null&&s in it(u)}function KP(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function ag(s){var u=rh(s),w=z[u];if(typeof w!="function"||!(u in $t.prototype))return!1;if(s===w)return!0;var O=rg(w);return!!O&&s===O[0]}function ZP(s){return!!pn&&pn in s}var JP=zt?pl:Cg;function Jf(s){var u=s&&s.constructor,w=typeof u=="function"&&u.prototype||In;return s===w}function Eb(s){return s===s&&!qn(s)}function kb(s,u){return function(w){return w==null?!1:w[s]===u&&(u!==n||s in it(w))}}function QP(s){var u=uh(s,function(O){return w.size===p&&w.clear(),O}),w=u.cache;return u}function eO(s,u){var w=s[1],O=u[1],$=w|O,K=$<(j|R|x),oe=O==x&&w==U||O==x&&w==le&&s[7].length<=u[8]||O==(x|le)&&u[7].length<=u[8]&&w==U;if(!(K||oe))return s;O&j&&(s[2]=u[2],$|=w&j?0:H);var he=u[3];if(he){var ye=s[3];s[3]=ye?rc(ye,he,u[4]):he,s[4]=ye?ti(s[3],y):u[4]}return he=u[5],he&&(ye=s[5],s[5]=ye?tf(ye,he,u[6]):he,s[6]=ye?ti(s[5],y):u[6]),he=u[7],he&&(s[7]=he),O&x&&(s[8]=s[8]==null?u[8]:Gn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=$,s}function tO(s){var u=[];if(s!=null)for(var w in it(s))u.push(w);return u}function nO(s){return Fo.call(s)}function Db(s,u,w){return u=wn(u===n?s.length-1:u,0),function(){for(var O=arguments,$=-1,K=wn(O.length-u,0),oe=ue(K);++$<K;)oe[$]=O[u+$];$=-1;for(var he=ue(u+1);++$<u;)he[$]=O[$];return he[u]=w(oe),V(s,this,he)}}function Pb(s,u){return u.length<2?s:vs(s,ri(u,0,-1))}function rO(s,u){for(var w=s.length,O=Gn(u.length,w),$=zr(s);O--;){var K=u[O];s[O]=hl(K,w)?$[K]:n}return s}function lg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Ob=Rb(Zl),Qf=Mc||function(s,u){return ln.setTimeout(s,u)},ug=Rb(Gc);function _b(s,u,w){var O=u+"";return ug(s,qP(O,iO(zP(O),w)))}function Rb(s){var u=0,w=0;return function(){var O=cs(),$=et-(O-w);if(w=O,$>0){if(++u>=Qe)return arguments[0]}else u=0;return s.apply(n,arguments)}}function oh(s,u){var w=-1,O=s.length,$=O-1;for(u=u===n?O:u;++w<u;){var K=Js(w,$),oe=s[K];s[K]=s[w],s[w]=oe}return s.length=u,s}var Ab=QP(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(ao,function(w,O,$,K){u.push($?K.replace(Oi,"$1"):O||w)}),u});function Ia(s){if(typeof s=="string"||Yo(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function oc(s){if(s!=null){try{return Br.call(s)}catch{}try{return s+""}catch{}}return""}function iO(s,u){return te(je,function(w){var O="_."+w[0];u&w[1]&&!Ee(s,O)&&s.push(O)}),s.sort()}function Ib(s){if(s instanceof $t)return s.clone();var u=new Cr(s.__wrapped__,s.__chain__);return u.__actions__=zr(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function oO(s,u,w){(w?no(s,u,w):u===n)?u=1:u=wn(Yt(u),0);var O=s==null?0:s.length;if(!O||u<1)return[];for(var $=0,K=0,oe=ue(va(O/u));$<O;)oe[K++]=ri(s,$,$+=u);return oe}function sO(s){for(var u=-1,w=s==null?0:s.length,O=0,$=[];++u<w;){var K=s[u];K&&($[O++]=K)}return $}function aO(){var s=arguments.length;if(!s)return[];for(var u=ue(s-1),w=arguments[0],O=s;O--;)u[O-1]=arguments[O];return Tt(Ut(w)?zr(w):[w],fr(u,1))}var lO=Bt(function(s,u){return hr(s)?qs(s,fr(u,1,hr,!0)):[]}),uO=Bt(function(s,u){var w=Ts(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),Ct(w,2)):[]}),cO=Bt(function(s,u){var w=Ts(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),n,w):[]});function fO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),ri(s,u<0?0:u,O)):[]}function dO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),u=O-u,ri(s,0,u<0?0:u)):[]}function hO(s,u){return s&&s.length?ea(s,Ct(u,3),!0,!0):[]}function pO(s,u){return s&&s.length?ea(s,Ct(u,3),!0):[]}function gO(s,u,w,O){var $=s==null?0:s.length;return $?(w&&typeof w!="number"&&no(s,u,w)&&(w=0,O=$),Xf(s,u,w,O)):[]}function Mb(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(O+$,0)),jt(s,Ct(u,3),$)}function Lb(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=O-1;return w!==n&&($=Yt(w),$=w<0?wn(O+$,0):Gn($,O-1)),jt(s,Ct(u,3),$,!0)}function Fb(s){var u=s==null?0:s.length;return u?fr(s,1):[]}function mO(s){var u=s==null?0:s.length;return u?fr(s,Ce):[]}function vO(s,u){var w=s==null?0:s.length;return w?(u=u===n?1:Yt(u),fr(s,u)):[]}function yO(s){for(var u=-1,w=s==null?0:s.length,O={};++u<w;){var $=s[u];O[$[0]]=$[1]}return O}function Nb(s){return s&&s.length?s[0]:n}function bO(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(O+$,0)),Qt(s,u,$)}function wO(s){var u=s==null?0:s.length;return u?ri(s,0,-1):[]}var xO=Bt(function(s){var u=ot(s,Ql);return u.length&&u[0]===s[0]?ka(u):[]}),SO=Bt(function(s){var u=Ts(s),w=ot(s,Ql);return u===Ts(w)?u=n:w.pop(),w.length&&w[0]===s[0]?ka(w,Ct(u,2)):[]}),TO=Bt(function(s){var u=Ts(s),w=ot(s,Ql);return u=typeof u=="function"?u:n,u&&w.pop(),w.length&&w[0]===s[0]?ka(w,n,u):[]});function CO(s,u){return s==null?"":Za.call(s,u)}function Ts(s){var u=s==null?0:s.length;return u?s[u-1]:n}function EO(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=O;return w!==n&&($=Yt(w),$=$<0?wn(O+$,0):Gn($,O-1)),u===u?ha(s,u,$):jt(s,go,$,!0)}function kO(s,u){return s&&s.length?Oa(s,Yt(u)):n}var DO=Bt(jb);function jb(s,u){return s&&s.length&&u&&u.length?Xu(s,u):s}function PO(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,Ct(w,2)):s}function OO(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,n,w):s}var _O=dl(function(s,u){var w=s==null?0:s.length,O=Uu(s,u);return Ku(s,ot(u,function($){return hl($,w)?+$:$}).sort(nc)),O});function RO(s,u){var w=[];if(!(s&&s.length))return w;var O=-1,$=[],K=s.length;for(u=Ct(u,3);++O<K;){var oe=s[O];u(oe,O,s)&&(w.push(oe),$.push(O))}return Ku(s,$),w}function cg(s){return s==null?s:Fl.call(s)}function AO(s,u,w){var O=s==null?0:s.length;return O?(w&&typeof w!="number"&&no(s,u,w)?(u=0,w=O):(u=u==null?0:Yt(u),w=w===n?O:Yt(w)),ri(s,u,w)):[]}function IO(s,u){return Jl(s,u)}function MO(s,u,w){return Qu(s,u,Ct(w,2))}function LO(s,u){var w=s==null?0:s.length;if(w){var O=Jl(s,u);if(O<w&&ra(s[O],u))return O}return-1}function FO(s,u){return Jl(s,u,!0)}function NO(s,u,w){return Qu(s,u,Ct(w,2),!0)}function jO(s,u){var w=s==null?0:s.length;if(w){var O=Jl(s,u,!0)-1;if(ra(s[O],u))return O}return-1}function BO(s){return s&&s.length?ec(s):[]}function $O(s,u){return s&&s.length?ec(s,Ct(u,2)):[]}function VO(s){var u=s==null?0:s.length;return u?ri(s,1,u):[]}function UO(s,u,w){return s&&s.length?(u=w||u===n?1:Yt(u),ri(s,0,u<0?0:u)):[]}function HO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),u=O-u,ri(s,u<0?0:u,O)):[]}function WO(s,u){return s&&s.length?ea(s,Ct(u,3),!1,!0):[]}function zO(s,u){return s&&s.length?ea(s,Ct(u,3)):[]}var YO=Bt(function(s){return bs(fr(s,1,hr,!0))}),GO=Bt(function(s){var u=Ts(s);return hr(u)&&(u=n),bs(fr(s,1,hr,!0),Ct(u,2))}),qO=Bt(function(s){var u=Ts(s);return u=typeof u=="function"?u:n,bs(fr(s,1,hr,!0),n,u)});function XO(s){return s&&s.length?bs(s):[]}function KO(s,u){return s&&s.length?bs(s,Ct(u,2)):[]}function ZO(s,u){return u=typeof u=="function"?u:n,s&&s.length?bs(s,n,u):[]}function fg(s){if(!(s&&s.length))return[];var u=0;return s=Ae(s,function(w){if(hr(w))return u=wn(w.length,u),!0}),xe(u,function(w){return ot(s,D(w))})}function Bb(s,u){if(!(s&&s.length))return[];var w=fg(s);return u==null?w:ot(w,function(O){return V(u,n,O)})}var JO=Bt(function(s,u){return hr(s)?qs(s,u):[]}),QO=Bt(function(s){return dr(Ae(s,hr))}),e_=Bt(function(s){var u=Ts(s);return hr(u)&&(u=n),dr(Ae(s,hr),Ct(u,2))}),t_=Bt(function(s){var u=Ts(s);return u=typeof u=="function"?u:n,dr(Ae(s,hr),n,u)}),n_=Bt(fg);function r_(s,u){return Qc(s||[],u||[],Vr)}function i_(s,u){return Qc(s||[],u||[],Qs)}var o_=Bt(function(s){var u=s.length,w=u>1?s[u-1]:n;return w=typeof w=="function"?(s.pop(),w):n,Bb(s,w)});function $b(s){var u=z(s);return u.__chain__=!0,u}function s_(s,u){return u(s),s}function sh(s,u){return u(s)}var a_=dl(function(s){var u=s.length,w=u?s[0]:0,O=this.__wrapped__,$=function(K){return Uu(K,s)};return u>1||this.__actions__.length||!(O instanceof $t)||!hl(w)?this.thru($):(O=O.slice(w,+w+(u?1:0)),O.__actions__.push({func:sh,args:[$],thisArg:n}),new Cr(O,this.__chain__).thru(function(K){return u&&!K.length&&K.push(n),K}))});function l_(){return $b(this)}function u_(){return new Cr(this.value(),this.__chain__)}function c_(){this.__values__===n&&(this.__values__=e0(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function f_(){return this}function d_(s){for(var u,w=this;w instanceof Uo;){var O=Ib(w);O.__index__=0,O.__values__=n,u?$.__wrapped__=O:u=O;var $=O;w=w.__wrapped__}return $.__wrapped__=s,u}function h_(){var s=this.__wrapped__;if(s instanceof $t){var u=s;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:sh,args:[cg],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(cg)}function p_(){return Jc(this.__wrapped__,this.__actions__)}var g_=fl(function(s,u,w){kt.call(s,w)?++s[w]:Si(s,w,1)});function m_(s,u,w){var O=Ut(s)?_e:Vc;return w&&no(s,u,w)&&(u=n),O(s,Ct(u,3))}function v_(s,u){var w=Ut(s)?Ae:Uc;return w(s,Ct(u,3))}var y_=Y(Mb),b_=Y(Lb);function w_(s,u){return fr(ah(s,u),1)}function x_(s,u){return fr(ah(s,u),Ce)}function S_(s,u,w){return w=w===n?1:Yt(w),fr(ah(s,u),w)}function Vb(s,u){var w=Ut(s)?te:ms;return w(s,Ct(u,3))}function Ub(s,u){var w=Ut(s)?ge:Yu;return w(s,Ct(u,3))}var T_=fl(function(s,u,w){kt.call(s,w)?s[w].push(u):Si(s,w,[u])});function C_(s,u,w,O){s=Do(s)?s:af(s),w=w&&!O?Yt(w):0;var $=s.length;return w<0&&(w=wn($+w,0)),dh(s)?w<=$&&s.indexOf(u,w)>-1:!!$&&Qt(s,u,w)>-1}var E_=Bt(function(s,u,w){var O=-1,$=typeof u=="function",K=Do(s)?ue(s.length):[];return ms(s,function(oe){K[++O]=$?V(u,oe,w):Co(oe,u,w)}),K}),k_=fl(function(s,u,w){Si(s,w,u)});function ah(s,u){var w=Ut(s)?ot:Qi;return w(s,Ct(u,3))}function D_(s,u,w,O){return s==null?[]:(Ut(u)||(u=u==null?[]:[u]),w=O?n:w,Ut(w)||(w=w==null?[]:[w]),Xl(s,u,w))}var P_=fl(function(s,u,w){s[w?0:1].push(u)},function(){return[[],[]]});function O_(s,u,w){var O=Ut(s)?Et:W,$=arguments.length<3;return O(s,Ct(u,4),w,$,ms)}function __(s,u,w){var O=Ut(s)?Rn:W,$=arguments.length<3;return O(s,Ct(u,4),w,$,Yu)}function R_(s,u){var w=Ut(s)?Ae:Uc;return w(s,ch(Ct(u,3)))}function A_(s){var u=Ut(s)?ni:ll;return u(s)}function I_(s,u,w){(w?no(s,u,w):u===n)?u=1:u=Yt(u);var O=Ut(s)?xi:Ju;return O(s,u)}function M_(s){var u=Ut(s)?To:qc;return u(s)}function L_(s){if(s==null)return 0;if(Do(s))return dh(s)?yo(s):s.length;var u=Li(s);return u==Mt||u==Jn?s.size:zo(s).length}function F_(s,u,w){var O=Ut(s)?un:Xc;return w&&no(s,u,w)&&(u=n),O(s,Ct(u,3))}var N_=Bt(function(s,u){if(s==null)return[];var w=u.length;return w>1&&no(s,u[0],u[1])?u=[]:w>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),Xl(s,fr(u,1),[])}),lh=Ka||function(){return ln.Date.now()};function j_(s,u){if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){if(--s<1)return u.apply(this,arguments)}}function Hb(s,u,w){return u=w?n:u,u=s&&u==null?s.length:u,na(s,x,n,n,n,n,u)}function Wb(s,u){var w;if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){return--s>0&&(w=u.apply(this,arguments)),s<=1&&(u=n),w}}var dg=Bt(function(s,u,w){var O=j;if(w.length){var $=ti(w,of(dg));O|=q}return na(s,O,u,w,$)}),zb=Bt(function(s,u,w){var O=j|R;if(w.length){var $=ti(w,of(zb));O|=q}return na(u,O,s,w,$)});function Yb(s,u,w){u=w?n:u;var O=na(s,U,n,n,n,n,n,u);return O.placeholder=Yb.placeholder,O}function Gb(s,u,w){u=w?n:u;var O=na(s,ne,n,n,n,n,n,u);return O.placeholder=Gb.placeholder,O}function qb(s,u,w){var O,$,K,oe,he,ye,We=0,Ge=!1,Ze=!1,at=!0;if(typeof s!="function")throw new Vt(a);u=Cs(u)||0,qn(w)&&(Ge=!!w.leading,Ze="maxWait"in w,K=Ze?wn(Cs(w.maxWait)||0,u):K,at="trailing"in w?!!w.trailing:at);function bt(pr){var ia=O,ml=$;return O=$=n,We=pr,oe=s.apply(ml,ia),oe}function Dt(pr){return We=pr,he=Qf(Jt,u),Ge?bt(pr):oe}function Xt(pr){var ia=pr-ye,ml=pr-We,h0=u-ia;return Ze?Gn(h0,K-ml):h0}function Pt(pr){var ia=pr-ye,ml=pr-We;return ye===n||ia>=u||ia<0||Ze&&ml>=K}function Jt(){var pr=lh();if(Pt(pr))return tn(pr);he=Qf(Jt,Xt(pr))}function tn(pr){return he=n,at&&O?bt(pr):(O=$=n,oe)}function Go(){he!==n&&tu(he),We=0,O=ye=$=he=n}function ro(){return he===n?oe:tn(lh())}function qo(){var pr=lh(),ia=Pt(pr);if(O=arguments,$=this,ye=pr,ia){if(he===n)return Dt(ye);if(Ze)return tu(he),he=Qf(Jt,u),bt(ye)}return he===n&&(he=Qf(Jt,u)),oe}return qo.cancel=Go,qo.flush=ro,qo}var B_=Bt(function(s,u){return zu(s,1,u)}),$_=Bt(function(s,u,w){return zu(s,Cs(u)||0,w)});function V_(s){return na(s,ae)}function uh(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Vt(a);var w=function(){var O=arguments,$=u?u.apply(this,O):O[0],K=w.cache;if(K.has($))return K.get($);var oe=s.apply(this,O);return w.cache=K.set($,oe)||K,oe};return w.cache=new(uh.Cache||Ho),w}uh.Cache=Ho;function ch(s){if(typeof s!="function")throw new Vt(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function U_(s){return Wb(2,s)}var H_=ef(function(s,u){u=u.length==1&&Ut(u[0])?ot(u[0],ht(Ct())):ot(fr(u,1),ht(Ct()));var w=u.length;return Bt(function(O){for(var $=-1,K=Gn(O.length,w);++$<K;)O[$]=u[$].call(this,O[$]);return V(s,this,O)})}),hg=Bt(function(s,u){var w=ti(u,of(hg));return na(s,q,n,u,w)}),Xb=Bt(function(s,u){var w=ti(u,of(Xb));return na(s,ie,n,u,w)}),W_=dl(function(s,u){return na(s,le,n,n,n,u)});function z_(s,u){if(typeof s!="function")throw new Vt(a);return u=u===n?u:Yt(u),Bt(s,u)}function Y_(s,u){if(typeof s!="function")throw new Vt(a);return u=u==null?0:wn(Yt(u),0),Bt(function(w){var O=w[u],$=ws(w,0,u);return O&&Tt($,O),V(s,this,$)})}function G_(s,u,w){var O=!0,$=!0;if(typeof s!="function")throw new Vt(a);return qn(w)&&(O="leading"in w?!!w.leading:O,$="trailing"in w?!!w.trailing:$),qb(s,u,{leading:O,maxWait:u,trailing:$})}function q_(s){return Hb(s,1)}function X_(s,u){return hg(eu(u),s)}function K_(){if(!arguments.length)return[];var s=arguments[0];return Ut(s)?s:[s]}function Z_(s){return Ur(s,E)}function J_(s,u){return u=typeof u=="function"?u:n,Ur(s,E,u)}function Q_(s){return Ur(s,g|E)}function eR(s,u){return u=typeof u=="function"?u:n,Ur(s,g|E,u)}function tR(s,u){return u==null||Wu(s,u,ii(u))}function ra(s,u){return s===u||s!==s&&u!==u}var nR=ko(Xs),rR=ko(function(s,u){return s>=u}),sc=Yl(function(){return arguments}())?Yl:function(s){return or(s)&&kt.call(s,"callee")&&!Il.call(s,"callee")},Ut=ue.isArray,iR=h?ht(h):Ks;function Do(s){return s!=null&&fh(s.length)&&!pl(s)}function hr(s){return or(s)&&Do(s)}function oR(s){return s===!0||s===!1||or(s)&&rr(s)==ct}var ru=Ll||Cg,sR=b?ht(b):Wc;function aR(s){return or(s)&&s.nodeType===1&&!ed(s)}function lR(s){if(s==null)return!0;if(Do(s)&&(Ut(s)||typeof s=="string"||typeof s.splice=="function"||ru(s)||sf(s)||sc(s)))return!s.length;var u=Li(s);if(u==Mt||u==Jn)return!s.size;if(Jf(s))return!zo(s).length;for(var w in s)if(kt.call(s,w))return!1;return!0}function uR(s,u){return il(s,u)}function cR(s,u,w){w=typeof w=="function"?w:n;var O=w?w(s,u):n;return O===n?il(s,u,n,w):!!O}function pg(s){if(!or(s))return!1;var u=rr(s);return u==yt||u==ft||typeof s.message=="string"&&typeof s.name=="string"&&!ed(s)}function fR(s){return typeof s=="number"&&ba(s)}function pl(s){if(!qn(s))return!1;var u=rr(s);return u==Je||u==At||u==nt||u==Vi}function Kb(s){return typeof s=="number"&&s==Yt(s)}function fh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Oe}function qn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function or(s){return s!=null&&typeof s=="object"}var Zb=C?ht(C):Pa;function dR(s,u){return s===u||qu(s,u,ig(u))}function hR(s,u,w){return w=typeof w=="function"?w:n,qu(s,u,ig(u),w)}function pR(s){return Jb(s)&&s!=+s}function gR(s){if(JP(s))throw new Be(o);return zc(s)}function mR(s){return s===null}function vR(s){return s==null}function Jb(s){return typeof s=="number"||or(s)&&rr(s)==Vn}function ed(s){if(!or(s)||rr(s)!=Un)return!1;var u=Vs(s);if(u===null)return!0;var w=kt.call(u,"constructor")&&u.constructor;return typeof w=="function"&&w instanceof w&&Br.call(w)==Ru}var gg=P?ht(P):Zs;function yR(s){return Kb(s)&&s>=-9007199254740991&&s<=Oe}var Qb=L?ht(L):Gl;function dh(s){return typeof s=="string"||!Ut(s)&&or(s)&&rr(s)==sn}function Yo(s){return typeof s=="symbol"||or(s)&&rr(s)==fn}var sf=N?ht(N):Wo;function bR(s){return s===n}function wR(s){return or(s)&&Li(s)==ut}function xR(s){return or(s)&&rr(s)==Dn}var SR=ko(Ji),TR=ko(function(s,u){return s<=u});function e0(s){if(!s)return[];if(Do(s))return dh(s)?cn(s):zr(s);if(Ki&&s[Ki])return Ii(s[Ki]());var u=Li(s),w=u==Mt?da:u==Jn?vo:af;return w(s)}function gl(s){if(!s)return s===0?s:0;if(s=Cs(s),s===Ce||s===-1/0){var u=s<0?-1:1;return u*Ne}return s===s?s:0}function Yt(s){var u=gl(s),w=u%1;return u===u?w?u-w:u:0}function t0(s){return s?Gs(Yt(s),0,Te):0}function Cs(s){if(typeof s=="number")return s;if(Yo(s))return me;if(qn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=qn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=qe(s);var w=fi.test(s);return w||wr.test(s)?Bs(s.slice(2),w?2:8):Rr.test(s)?me:+s}function n0(s){return Mi(s,Po(s))}function CR(s){return s?Gs(Yt(s),-9007199254740991,Oe):s===0?s:0}function gn(s){return s==null?"":Hr(s)}var ER=Ra(function(s,u){if(Jf(u)||Do(u)){Mi(u,ii(u),s);return}for(var w in u)kt.call(u,w)&&Vr(s,w,u[w])}),r0=Ra(function(s,u){Mi(u,Po(u),s)}),hh=Ra(function(s,u,w,O){Mi(u,Po(u),s,O)}),kR=Ra(function(s,u,w,O){Mi(u,ii(u),s,O)}),DR=dl(Uu);function PR(s,u){var w=Vo(s);return u==null?w:$c(w,u)}var OR=Bt(function(s,u){s=it(s);var w=-1,O=u.length,$=O>2?u[2]:n;for($&&no(u[0],u[1],$)&&(O=1);++w<O;)for(var K=u[w],oe=Po(K),he=-1,ye=oe.length;++he<ye;){var We=oe[he],Ge=s[We];(Ge===n||ra(Ge,In[We])&&!kt.call(s,We))&&(s[We]=K[We])}return s}),_R=Bt(function(s){return s.push(n,wb),V(i0,n,s)});function RR(s,u){return jr(s,Ct(u,3),Ti)}function AR(s,u){return jr(s,Ct(u,3),Ul)}function IR(s,u){return s==null?s:Gu(s,Ct(u,3),Po)}function MR(s,u){return s==null?s:Hc(s,Ct(u,3),Po)}function LR(s,u){return s&&Ti(s,Ct(u,3))}function FR(s,u){return s&&Ul(s,Ct(u,3))}function NR(s){return s==null?[]:Ca(s,ii(s))}function jR(s){return s==null?[]:Ca(s,Po(s))}function mg(s,u,w){var O=s==null?n:vs(s,u);return O===n?w:O}function BR(s,u){return s!=null&&Tb(s,u,Hl)}function vg(s,u){return s!=null&&Tb(s,u,Ea)}var $R=$e(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),s[u]=w},bg(Oo)),VR=$e(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),kt.call(s,u)?s[u].push(w):s[u]=[w]},Ct),UR=Bt(Co);function ii(s){return Do(s)?nl(s):zo(s)}function Po(s){return Do(s)?nl(s,!0):ol(s)}function HR(s,u){var w={};return u=Ct(u,3),Ti(s,function(O,$,K){Si(w,u(O,$,K),O)}),w}function WR(s,u){var w={};return u=Ct(u,3),Ti(s,function(O,$,K){Si(w,$,u(O,$,K))}),w}var zR=Ra(function(s,u,w){ys(s,u,w)}),i0=Ra(function(s,u,w,O){ys(s,u,w,O)}),YR=dl(function(s,u){var w={};if(s==null)return w;var O=!1;u=ot(u,function(K){return K=Ci(K,s),O||(O=K.length>1),K}),Mi(s,ng(s),w),O&&(w=Ur(w,g|T|E,$P));for(var $=u.length;$--;)Wr(w,u[$]);return w});function GR(s,u){return o0(s,ch(Ct(u)))}var qR=dl(function(s,u){return s==null?{}:al(s,u)});function o0(s,u){if(s==null)return{};var w=ot(ng(s),function(O){return[O]});return u=Ct(u),_a(s,w,function(O,$){return u(O,$[0])})}function XR(s,u,w){u=Ci(u,s);var O=-1,$=u.length;for($||($=1,s=n);++O<$;){var K=s==null?n:s[Ia(u[O])];K===n&&(O=$,K=w),s=pl(K)?K.call(s):K}return s}function KR(s,u,w){return s==null?s:Qs(s,u,w)}function ZR(s,u,w,O){return O=typeof O=="function"?O:n,s==null?s:Qs(s,u,w,O)}var s0=rf(ii),a0=rf(Po);function JR(s,u,w){var O=Ut(s),$=O||ru(s)||sf(s);if(u=Ct(u,4),w==null){var K=s&&s.constructor;$?w=O?new K:[]:qn(s)?w=pl(K)?Vo(Vs(s)):{}:w={}}return($?te:Ti)(s,function(oe,he,ye){return u(w,oe,he,ye)}),w}function QR(s,u){return s==null?!0:Wr(s,u)}function eA(s,u,w){return s==null?s:Zc(s,u,eu(w))}function tA(s,u,w,O){return O=typeof O=="function"?O:n,s==null?s:Zc(s,u,eu(w),O)}function af(s){return s==null?[]:_t(s,ii(s))}function nA(s){return s==null?[]:_t(s,Po(s))}function rA(s,u,w){return w===n&&(w=u,u=n),w!==n&&(w=Cs(w),w=w===w?w:0),u!==n&&(u=Cs(u),u=u===u?u:0),Gs(Cs(s),u,w)}function iA(s,u,w){return u=gl(u),w===n?(w=u,u=0):w=gl(w),s=Cs(s),Wl(s,u,w)}function oA(s,u,w){if(w&&typeof w!="boolean"&&no(s,u,w)&&(u=w=n),w===n&&(typeof u=="boolean"?(w=u,u=n):typeof s=="boolean"&&(w=s,s=n)),s===n&&u===n?(s=0,u=1):(s=gl(s),u===n?(u=s,s=0):u=gl(u)),s>u){var O=s;s=u,u=O}if(w||s%1||u%1){var $=fs();return Gn(s+$*(u-s+ur("1e-"+(($+"").length-1))),u)}return Js(s,u)}var sA=S(function(s,u,w){return u=u.toLowerCase(),s+(w?l0(u):u)});function l0(s){return yg(gn(s).toLowerCase())}function u0(s){return s=gn(s),s&&s.replace(tr,$n).replace(os,"")}function aA(s,u,w){s=gn(s),u=Hr(u);var O=s.length;w=w===n?O:Gs(Yt(w),0,O);var $=w;return w-=u.length,w>=0&&s.slice(w,$)==u}function lA(s){return s=gn(s),s&&zi.test(s)?s.replace(Wt,as):s}function uA(s){return s=gn(s),s&&ci.test(s)?s.replace(br,"\\$&"):s}var cA=S(function(s,u,w){return s+(w?"-":"")+u.toLowerCase()}),fA=S(function(s,u,w){return s+(w?" ":"")+u.toLowerCase()}),dA=m("toLowerCase");function hA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;if(!u||O>=u)return s;var $=(u-O)/2;return xt(Us($),w)+s+xt(va($),w)}function pA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;return u&&O<u?s+xt(u-O,w):s}function gA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;return u&&O<u?xt(u-O,w)+s:s}function mA(s,u,w){return w||u==null?u=0:u&&(u=+u),Mu(gn(s).replace(an,""),u||0)}function vA(s,u,w){return(w?no(s,u,w):u===n)?u=1:u=Yt(u),Kl(gn(s),u)}function yA(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var bA=S(function(s,u,w){return s+(w?"_":"")+u.toLowerCase()});function wA(s,u,w){return w&&typeof w!="number"&&no(s,u,w)&&(u=w=n),w=w===n?Te:w>>>0,w?(s=gn(s),s&&(typeof u=="string"||u!=null&&!gg(u))&&(u=Hr(u),!u&&ei(s))?ws(cn(s),0,w):s.split(u,w)):[]}var xA=S(function(s,u,w){return s+(w?" ":"")+yg(u)});function SA(s,u,w){return s=gn(s),w=w==null?0:Gs(Yt(w),0,s.length),u=Hr(u),s.slice(w,w+u.length)==u}function TA(s,u,w){var O=z.templateSettings;w&&no(s,u,w)&&(u=n),s=gn(s),u=hh({},u,O,bb);var $=hh({},u.imports,O.imports,bb),K=ii($),oe=_t($,K),he,ye,We=0,Ge=u.interpolate||Yi,Ze="__p += '",at=It((u.escape||Yi).source+"|"+Ge.source+"|"+(Ge===li?er:Yi).source+"|"+(u.evaluate||Yi).source+"|$","g"),bt="//# sourceURL="+(kt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+`
145
+ `)}function XP(s){return Ut(s)||sc(s)||!!(Ml&&s&&s[Ml])}function hl(s,u){var w=typeof s;return u=u??Oe,!!u&&(w=="number"||w!="symbol"&&Ar.test(s))&&s>-1&&s%1==0&&s<u}function no(s,u,w){if(!qn(w))return!1;var O=typeof u;return(O=="number"?Do(w)&&hl(u,w.length):O=="string"&&u in w)?ra(w[u],s):!1}function sg(s,u){if(Ut(s))return!1;var w=typeof s;return w=="number"||w=="symbol"||w=="boolean"||s==null||Yo(s)?!0:Tn.test(s)||!ui.test(s)||u!=null&&s in it(u)}function KP(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function ag(s){var u=ih(s),w=z[u];if(typeof w!="function"||!(u in $t.prototype))return!1;if(s===w)return!0;var O=rg(w);return!!O&&s===O[0]}function ZP(s){return!!pn&&pn in s}var JP=zt?pl:Cg;function Jf(s){var u=s&&s.constructor,w=typeof u=="function"&&u.prototype||In;return s===w}function Eb(s){return s===s&&!qn(s)}function kb(s,u){return function(w){return w==null?!1:w[s]===u&&(u!==n||s in it(w))}}function QP(s){var u=ch(s,function(O){return w.size===p&&w.clear(),O}),w=u.cache;return u}function eO(s,u){var w=s[1],O=u[1],$=w|O,K=$<(j|R|x),oe=O==x&&w==U||O==x&&w==le&&s[7].length<=u[8]||O==(x|le)&&u[7].length<=u[8]&&w==U;if(!(K||oe))return s;O&j&&(s[2]=u[2],$|=w&j?0:H);var he=u[3];if(he){var ye=s[3];s[3]=ye?rc(ye,he,u[4]):he,s[4]=ye?ti(s[3],y):u[4]}return he=u[5],he&&(ye=s[5],s[5]=ye?tf(ye,he,u[6]):he,s[6]=ye?ti(s[5],y):u[6]),he=u[7],he&&(s[7]=he),O&x&&(s[8]=s[8]==null?u[8]:Gn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=$,s}function tO(s){var u=[];if(s!=null)for(var w in it(s))u.push(w);return u}function nO(s){return Fo.call(s)}function Db(s,u,w){return u=wn(u===n?s.length-1:u,0),function(){for(var O=arguments,$=-1,K=wn(O.length-u,0),oe=ue(K);++$<K;)oe[$]=O[u+$];$=-1;for(var he=ue(u+1);++$<u;)he[$]=O[$];return he[u]=w(oe),V(s,this,he)}}function Pb(s,u){return u.length<2?s:vs(s,ri(u,0,-1))}function rO(s,u){for(var w=s.length,O=Gn(u.length,w),$=zr(s);O--;){var K=u[O];s[O]=hl(K,w)?$[K]:n}return s}function lg(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var Ob=Rb(Zl),Qf=Mc||function(s,u){return ln.setTimeout(s,u)},ug=Rb(Gc);function _b(s,u,w){var O=u+"";return ug(s,qP(O,iO(zP(O),w)))}function Rb(s){var u=0,w=0;return function(){var O=cs(),$=et-(O-w);if(w=O,$>0){if(++u>=Qe)return arguments[0]}else u=0;return s.apply(n,arguments)}}function sh(s,u){var w=-1,O=s.length,$=O-1;for(u=u===n?O:u;++w<u;){var K=Js(w,$),oe=s[K];s[K]=s[w],s[w]=oe}return s.length=u,s}var Ab=QP(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(ao,function(w,O,$,K){u.push($?K.replace(Oi,"$1"):O||w)}),u});function Ia(s){if(typeof s=="string"||Yo(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function oc(s){if(s!=null){try{return Br.call(s)}catch{}try{return s+""}catch{}}return""}function iO(s,u){return te(je,function(w){var O="_."+w[0];u&w[1]&&!Ee(s,O)&&s.push(O)}),s.sort()}function Ib(s){if(s instanceof $t)return s.clone();var u=new Cr(s.__wrapped__,s.__chain__);return u.__actions__=zr(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function oO(s,u,w){(w?no(s,u,w):u===n)?u=1:u=wn(Yt(u),0);var O=s==null?0:s.length;if(!O||u<1)return[];for(var $=0,K=0,oe=ue(va(O/u));$<O;)oe[K++]=ri(s,$,$+=u);return oe}function sO(s){for(var u=-1,w=s==null?0:s.length,O=0,$=[];++u<w;){var K=s[u];K&&($[O++]=K)}return $}function aO(){var s=arguments.length;if(!s)return[];for(var u=ue(s-1),w=arguments[0],O=s;O--;)u[O-1]=arguments[O];return Tt(Ut(w)?zr(w):[w],fr(u,1))}var lO=Bt(function(s,u){return hr(s)?qs(s,fr(u,1,hr,!0)):[]}),uO=Bt(function(s,u){var w=Ts(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),Ct(w,2)):[]}),cO=Bt(function(s,u){var w=Ts(u);return hr(w)&&(w=n),hr(s)?qs(s,fr(u,1,hr,!0),n,w):[]});function fO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),ri(s,u<0?0:u,O)):[]}function dO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),u=O-u,ri(s,0,u<0?0:u)):[]}function hO(s,u){return s&&s.length?ea(s,Ct(u,3),!0,!0):[]}function pO(s,u){return s&&s.length?ea(s,Ct(u,3),!0):[]}function gO(s,u,w,O){var $=s==null?0:s.length;return $?(w&&typeof w!="number"&&no(s,u,w)&&(w=0,O=$),Xf(s,u,w,O)):[]}function Mb(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(O+$,0)),jt(s,Ct(u,3),$)}function Lb(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=O-1;return w!==n&&($=Yt(w),$=w<0?wn(O+$,0):Gn($,O-1)),jt(s,Ct(u,3),$,!0)}function Fb(s){var u=s==null?0:s.length;return u?fr(s,1):[]}function mO(s){var u=s==null?0:s.length;return u?fr(s,Ce):[]}function vO(s,u){var w=s==null?0:s.length;return w?(u=u===n?1:Yt(u),fr(s,u)):[]}function yO(s){for(var u=-1,w=s==null?0:s.length,O={};++u<w;){var $=s[u];O[$[0]]=$[1]}return O}function Nb(s){return s&&s.length?s[0]:n}function bO(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=w==null?0:Yt(w);return $<0&&($=wn(O+$,0)),Qt(s,u,$)}function wO(s){var u=s==null?0:s.length;return u?ri(s,0,-1):[]}var xO=Bt(function(s){var u=ot(s,Ql);return u.length&&u[0]===s[0]?ka(u):[]}),SO=Bt(function(s){var u=Ts(s),w=ot(s,Ql);return u===Ts(w)?u=n:w.pop(),w.length&&w[0]===s[0]?ka(w,Ct(u,2)):[]}),TO=Bt(function(s){var u=Ts(s),w=ot(s,Ql);return u=typeof u=="function"?u:n,u&&w.pop(),w.length&&w[0]===s[0]?ka(w,n,u):[]});function CO(s,u){return s==null?"":Za.call(s,u)}function Ts(s){var u=s==null?0:s.length;return u?s[u-1]:n}function EO(s,u,w){var O=s==null?0:s.length;if(!O)return-1;var $=O;return w!==n&&($=Yt(w),$=$<0?wn(O+$,0):Gn($,O-1)),u===u?ha(s,u,$):jt(s,go,$,!0)}function kO(s,u){return s&&s.length?Oa(s,Yt(u)):n}var DO=Bt(jb);function jb(s,u){return s&&s.length&&u&&u.length?Xu(s,u):s}function PO(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,Ct(w,2)):s}function OO(s,u,w){return s&&s.length&&u&&u.length?Xu(s,u,n,w):s}var _O=dl(function(s,u){var w=s==null?0:s.length,O=Uu(s,u);return Ku(s,ot(u,function($){return hl($,w)?+$:$}).sort(nc)),O});function RO(s,u){var w=[];if(!(s&&s.length))return w;var O=-1,$=[],K=s.length;for(u=Ct(u,3);++O<K;){var oe=s[O];u(oe,O,s)&&(w.push(oe),$.push(O))}return Ku(s,$),w}function cg(s){return s==null?s:Fl.call(s)}function AO(s,u,w){var O=s==null?0:s.length;return O?(w&&typeof w!="number"&&no(s,u,w)?(u=0,w=O):(u=u==null?0:Yt(u),w=w===n?O:Yt(w)),ri(s,u,w)):[]}function IO(s,u){return Jl(s,u)}function MO(s,u,w){return Qu(s,u,Ct(w,2))}function LO(s,u){var w=s==null?0:s.length;if(w){var O=Jl(s,u);if(O<w&&ra(s[O],u))return O}return-1}function FO(s,u){return Jl(s,u,!0)}function NO(s,u,w){return Qu(s,u,Ct(w,2),!0)}function jO(s,u){var w=s==null?0:s.length;if(w){var O=Jl(s,u,!0)-1;if(ra(s[O],u))return O}return-1}function BO(s){return s&&s.length?ec(s):[]}function $O(s,u){return s&&s.length?ec(s,Ct(u,2)):[]}function VO(s){var u=s==null?0:s.length;return u?ri(s,1,u):[]}function UO(s,u,w){return s&&s.length?(u=w||u===n?1:Yt(u),ri(s,0,u<0?0:u)):[]}function HO(s,u,w){var O=s==null?0:s.length;return O?(u=w||u===n?1:Yt(u),u=O-u,ri(s,u<0?0:u,O)):[]}function WO(s,u){return s&&s.length?ea(s,Ct(u,3),!1,!0):[]}function zO(s,u){return s&&s.length?ea(s,Ct(u,3)):[]}var YO=Bt(function(s){return bs(fr(s,1,hr,!0))}),GO=Bt(function(s){var u=Ts(s);return hr(u)&&(u=n),bs(fr(s,1,hr,!0),Ct(u,2))}),qO=Bt(function(s){var u=Ts(s);return u=typeof u=="function"?u:n,bs(fr(s,1,hr,!0),n,u)});function XO(s){return s&&s.length?bs(s):[]}function KO(s,u){return s&&s.length?bs(s,Ct(u,2)):[]}function ZO(s,u){return u=typeof u=="function"?u:n,s&&s.length?bs(s,n,u):[]}function fg(s){if(!(s&&s.length))return[];var u=0;return s=Ae(s,function(w){if(hr(w))return u=wn(w.length,u),!0}),xe(u,function(w){return ot(s,D(w))})}function Bb(s,u){if(!(s&&s.length))return[];var w=fg(s);return u==null?w:ot(w,function(O){return V(u,n,O)})}var JO=Bt(function(s,u){return hr(s)?qs(s,u):[]}),QO=Bt(function(s){return dr(Ae(s,hr))}),e_=Bt(function(s){var u=Ts(s);return hr(u)&&(u=n),dr(Ae(s,hr),Ct(u,2))}),t_=Bt(function(s){var u=Ts(s);return u=typeof u=="function"?u:n,dr(Ae(s,hr),n,u)}),n_=Bt(fg);function r_(s,u){return Qc(s||[],u||[],Vr)}function i_(s,u){return Qc(s||[],u||[],Qs)}var o_=Bt(function(s){var u=s.length,w=u>1?s[u-1]:n;return w=typeof w=="function"?(s.pop(),w):n,Bb(s,w)});function $b(s){var u=z(s);return u.__chain__=!0,u}function s_(s,u){return u(s),s}function ah(s,u){return u(s)}var a_=dl(function(s){var u=s.length,w=u?s[0]:0,O=this.__wrapped__,$=function(K){return Uu(K,s)};return u>1||this.__actions__.length||!(O instanceof $t)||!hl(w)?this.thru($):(O=O.slice(w,+w+(u?1:0)),O.__actions__.push({func:ah,args:[$],thisArg:n}),new Cr(O,this.__chain__).thru(function(K){return u&&!K.length&&K.push(n),K}))});function l_(){return $b(this)}function u_(){return new Cr(this.value(),this.__chain__)}function c_(){this.__values__===n&&(this.__values__=e0(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function f_(){return this}function d_(s){for(var u,w=this;w instanceof Uo;){var O=Ib(w);O.__index__=0,O.__values__=n,u?$.__wrapped__=O:u=O;var $=O;w=w.__wrapped__}return $.__wrapped__=s,u}function h_(){var s=this.__wrapped__;if(s instanceof $t){var u=s;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:ah,args:[cg],thisArg:n}),new Cr(u,this.__chain__)}return this.thru(cg)}function p_(){return Jc(this.__wrapped__,this.__actions__)}var g_=fl(function(s,u,w){kt.call(s,w)?++s[w]:Si(s,w,1)});function m_(s,u,w){var O=Ut(s)?_e:Vc;return w&&no(s,u,w)&&(u=n),O(s,Ct(u,3))}function v_(s,u){var w=Ut(s)?Ae:Uc;return w(s,Ct(u,3))}var y_=Y(Mb),b_=Y(Lb);function w_(s,u){return fr(lh(s,u),1)}function x_(s,u){return fr(lh(s,u),Ce)}function S_(s,u,w){return w=w===n?1:Yt(w),fr(lh(s,u),w)}function Vb(s,u){var w=Ut(s)?te:ms;return w(s,Ct(u,3))}function Ub(s,u){var w=Ut(s)?ge:Yu;return w(s,Ct(u,3))}var T_=fl(function(s,u,w){kt.call(s,w)?s[w].push(u):Si(s,w,[u])});function C_(s,u,w,O){s=Do(s)?s:af(s),w=w&&!O?Yt(w):0;var $=s.length;return w<0&&(w=wn($+w,0)),hh(s)?w<=$&&s.indexOf(u,w)>-1:!!$&&Qt(s,u,w)>-1}var E_=Bt(function(s,u,w){var O=-1,$=typeof u=="function",K=Do(s)?ue(s.length):[];return ms(s,function(oe){K[++O]=$?V(u,oe,w):Co(oe,u,w)}),K}),k_=fl(function(s,u,w){Si(s,w,u)});function lh(s,u){var w=Ut(s)?ot:Qi;return w(s,Ct(u,3))}function D_(s,u,w,O){return s==null?[]:(Ut(u)||(u=u==null?[]:[u]),w=O?n:w,Ut(w)||(w=w==null?[]:[w]),Xl(s,u,w))}var P_=fl(function(s,u,w){s[w?0:1].push(u)},function(){return[[],[]]});function O_(s,u,w){var O=Ut(s)?Et:W,$=arguments.length<3;return O(s,Ct(u,4),w,$,ms)}function __(s,u,w){var O=Ut(s)?Rn:W,$=arguments.length<3;return O(s,Ct(u,4),w,$,Yu)}function R_(s,u){var w=Ut(s)?Ae:Uc;return w(s,fh(Ct(u,3)))}function A_(s){var u=Ut(s)?ni:ll;return u(s)}function I_(s,u,w){(w?no(s,u,w):u===n)?u=1:u=Yt(u);var O=Ut(s)?xi:Ju;return O(s,u)}function M_(s){var u=Ut(s)?To:qc;return u(s)}function L_(s){if(s==null)return 0;if(Do(s))return hh(s)?yo(s):s.length;var u=Li(s);return u==Mt||u==Jn?s.size:zo(s).length}function F_(s,u,w){var O=Ut(s)?un:Xc;return w&&no(s,u,w)&&(u=n),O(s,Ct(u,3))}var N_=Bt(function(s,u){if(s==null)return[];var w=u.length;return w>1&&no(s,u[0],u[1])?u=[]:w>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),Xl(s,fr(u,1),[])}),uh=Ka||function(){return ln.Date.now()};function j_(s,u){if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){if(--s<1)return u.apply(this,arguments)}}function Hb(s,u,w){return u=w?n:u,u=s&&u==null?s.length:u,na(s,x,n,n,n,n,u)}function Wb(s,u){var w;if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){return--s>0&&(w=u.apply(this,arguments)),s<=1&&(u=n),w}}var dg=Bt(function(s,u,w){var O=j;if(w.length){var $=ti(w,of(dg));O|=q}return na(s,O,u,w,$)}),zb=Bt(function(s,u,w){var O=j|R;if(w.length){var $=ti(w,of(zb));O|=q}return na(u,O,s,w,$)});function Yb(s,u,w){u=w?n:u;var O=na(s,U,n,n,n,n,n,u);return O.placeholder=Yb.placeholder,O}function Gb(s,u,w){u=w?n:u;var O=na(s,ne,n,n,n,n,n,u);return O.placeholder=Gb.placeholder,O}function qb(s,u,w){var O,$,K,oe,he,ye,We=0,Ge=!1,Ze=!1,at=!0;if(typeof s!="function")throw new Vt(a);u=Cs(u)||0,qn(w)&&(Ge=!!w.leading,Ze="maxWait"in w,K=Ze?wn(Cs(w.maxWait)||0,u):K,at="trailing"in w?!!w.trailing:at);function bt(pr){var ia=O,ml=$;return O=$=n,We=pr,oe=s.apply(ml,ia),oe}function Dt(pr){return We=pr,he=Qf(Jt,u),Ge?bt(pr):oe}function Xt(pr){var ia=pr-ye,ml=pr-We,h0=u-ia;return Ze?Gn(h0,K-ml):h0}function Pt(pr){var ia=pr-ye,ml=pr-We;return ye===n||ia>=u||ia<0||Ze&&ml>=K}function Jt(){var pr=uh();if(Pt(pr))return tn(pr);he=Qf(Jt,Xt(pr))}function tn(pr){return he=n,at&&O?bt(pr):(O=$=n,oe)}function Go(){he!==n&&tu(he),We=0,O=ye=$=he=n}function ro(){return he===n?oe:tn(uh())}function qo(){var pr=uh(),ia=Pt(pr);if(O=arguments,$=this,ye=pr,ia){if(he===n)return Dt(ye);if(Ze)return tu(he),he=Qf(Jt,u),bt(ye)}return he===n&&(he=Qf(Jt,u)),oe}return qo.cancel=Go,qo.flush=ro,qo}var B_=Bt(function(s,u){return zu(s,1,u)}),$_=Bt(function(s,u,w){return zu(s,Cs(u)||0,w)});function V_(s){return na(s,ae)}function ch(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Vt(a);var w=function(){var O=arguments,$=u?u.apply(this,O):O[0],K=w.cache;if(K.has($))return K.get($);var oe=s.apply(this,O);return w.cache=K.set($,oe)||K,oe};return w.cache=new(ch.Cache||Ho),w}ch.Cache=Ho;function fh(s){if(typeof s!="function")throw new Vt(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function U_(s){return Wb(2,s)}var H_=ef(function(s,u){u=u.length==1&&Ut(u[0])?ot(u[0],ht(Ct())):ot(fr(u,1),ht(Ct()));var w=u.length;return Bt(function(O){for(var $=-1,K=Gn(O.length,w);++$<K;)O[$]=u[$].call(this,O[$]);return V(s,this,O)})}),hg=Bt(function(s,u){var w=ti(u,of(hg));return na(s,q,n,u,w)}),Xb=Bt(function(s,u){var w=ti(u,of(Xb));return na(s,ie,n,u,w)}),W_=dl(function(s,u){return na(s,le,n,n,n,u)});function z_(s,u){if(typeof s!="function")throw new Vt(a);return u=u===n?u:Yt(u),Bt(s,u)}function Y_(s,u){if(typeof s!="function")throw new Vt(a);return u=u==null?0:wn(Yt(u),0),Bt(function(w){var O=w[u],$=ws(w,0,u);return O&&Tt($,O),V(s,this,$)})}function G_(s,u,w){var O=!0,$=!0;if(typeof s!="function")throw new Vt(a);return qn(w)&&(O="leading"in w?!!w.leading:O,$="trailing"in w?!!w.trailing:$),qb(s,u,{leading:O,maxWait:u,trailing:$})}function q_(s){return Hb(s,1)}function X_(s,u){return hg(eu(u),s)}function K_(){if(!arguments.length)return[];var s=arguments[0];return Ut(s)?s:[s]}function Z_(s){return Ur(s,E)}function J_(s,u){return u=typeof u=="function"?u:n,Ur(s,E,u)}function Q_(s){return Ur(s,g|E)}function eR(s,u){return u=typeof u=="function"?u:n,Ur(s,g|E,u)}function tR(s,u){return u==null||Wu(s,u,ii(u))}function ra(s,u){return s===u||s!==s&&u!==u}var nR=ko(Xs),rR=ko(function(s,u){return s>=u}),sc=Yl(function(){return arguments}())?Yl:function(s){return or(s)&&kt.call(s,"callee")&&!Il.call(s,"callee")},Ut=ue.isArray,iR=h?ht(h):Ks;function Do(s){return s!=null&&dh(s.length)&&!pl(s)}function hr(s){return or(s)&&Do(s)}function oR(s){return s===!0||s===!1||or(s)&&rr(s)==ct}var ru=Ll||Cg,sR=b?ht(b):Wc;function aR(s){return or(s)&&s.nodeType===1&&!ed(s)}function lR(s){if(s==null)return!0;if(Do(s)&&(Ut(s)||typeof s=="string"||typeof s.splice=="function"||ru(s)||sf(s)||sc(s)))return!s.length;var u=Li(s);if(u==Mt||u==Jn)return!s.size;if(Jf(s))return!zo(s).length;for(var w in s)if(kt.call(s,w))return!1;return!0}function uR(s,u){return il(s,u)}function cR(s,u,w){w=typeof w=="function"?w:n;var O=w?w(s,u):n;return O===n?il(s,u,n,w):!!O}function pg(s){if(!or(s))return!1;var u=rr(s);return u==yt||u==ft||typeof s.message=="string"&&typeof s.name=="string"&&!ed(s)}function fR(s){return typeof s=="number"&&ba(s)}function pl(s){if(!qn(s))return!1;var u=rr(s);return u==Je||u==At||u==nt||u==Vi}function Kb(s){return typeof s=="number"&&s==Yt(s)}function dh(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Oe}function qn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function or(s){return s!=null&&typeof s=="object"}var Zb=C?ht(C):Pa;function dR(s,u){return s===u||qu(s,u,ig(u))}function hR(s,u,w){return w=typeof w=="function"?w:n,qu(s,u,ig(u),w)}function pR(s){return Jb(s)&&s!=+s}function gR(s){if(JP(s))throw new Be(o);return zc(s)}function mR(s){return s===null}function vR(s){return s==null}function Jb(s){return typeof s=="number"||or(s)&&rr(s)==Vn}function ed(s){if(!or(s)||rr(s)!=Un)return!1;var u=Vs(s);if(u===null)return!0;var w=kt.call(u,"constructor")&&u.constructor;return typeof w=="function"&&w instanceof w&&Br.call(w)==Ru}var gg=P?ht(P):Zs;function yR(s){return Kb(s)&&s>=-9007199254740991&&s<=Oe}var Qb=L?ht(L):Gl;function hh(s){return typeof s=="string"||!Ut(s)&&or(s)&&rr(s)==sn}function Yo(s){return typeof s=="symbol"||or(s)&&rr(s)==fn}var sf=N?ht(N):Wo;function bR(s){return s===n}function wR(s){return or(s)&&Li(s)==ut}function xR(s){return or(s)&&rr(s)==Dn}var SR=ko(Ji),TR=ko(function(s,u){return s<=u});function e0(s){if(!s)return[];if(Do(s))return hh(s)?cn(s):zr(s);if(Ki&&s[Ki])return Ii(s[Ki]());var u=Li(s),w=u==Mt?da:u==Jn?vo:af;return w(s)}function gl(s){if(!s)return s===0?s:0;if(s=Cs(s),s===Ce||s===-1/0){var u=s<0?-1:1;return u*Ne}return s===s?s:0}function Yt(s){var u=gl(s),w=u%1;return u===u?w?u-w:u:0}function t0(s){return s?Gs(Yt(s),0,Te):0}function Cs(s){if(typeof s=="number")return s;if(Yo(s))return me;if(qn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=qn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=qe(s);var w=fi.test(s);return w||wr.test(s)?Bs(s.slice(2),w?2:8):Rr.test(s)?me:+s}function n0(s){return Mi(s,Po(s))}function CR(s){return s?Gs(Yt(s),-9007199254740991,Oe):s===0?s:0}function gn(s){return s==null?"":Hr(s)}var ER=Ra(function(s,u){if(Jf(u)||Do(u)){Mi(u,ii(u),s);return}for(var w in u)kt.call(u,w)&&Vr(s,w,u[w])}),r0=Ra(function(s,u){Mi(u,Po(u),s)}),ph=Ra(function(s,u,w,O){Mi(u,Po(u),s,O)}),kR=Ra(function(s,u,w,O){Mi(u,ii(u),s,O)}),DR=dl(Uu);function PR(s,u){var w=Vo(s);return u==null?w:$c(w,u)}var OR=Bt(function(s,u){s=it(s);var w=-1,O=u.length,$=O>2?u[2]:n;for($&&no(u[0],u[1],$)&&(O=1);++w<O;)for(var K=u[w],oe=Po(K),he=-1,ye=oe.length;++he<ye;){var We=oe[he],Ge=s[We];(Ge===n||ra(Ge,In[We])&&!kt.call(s,We))&&(s[We]=K[We])}return s}),_R=Bt(function(s){return s.push(n,wb),V(i0,n,s)});function RR(s,u){return jr(s,Ct(u,3),Ti)}function AR(s,u){return jr(s,Ct(u,3),Ul)}function IR(s,u){return s==null?s:Gu(s,Ct(u,3),Po)}function MR(s,u){return s==null?s:Hc(s,Ct(u,3),Po)}function LR(s,u){return s&&Ti(s,Ct(u,3))}function FR(s,u){return s&&Ul(s,Ct(u,3))}function NR(s){return s==null?[]:Ca(s,ii(s))}function jR(s){return s==null?[]:Ca(s,Po(s))}function mg(s,u,w){var O=s==null?n:vs(s,u);return O===n?w:O}function BR(s,u){return s!=null&&Tb(s,u,Hl)}function vg(s,u){return s!=null&&Tb(s,u,Ea)}var $R=$e(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),s[u]=w},bg(Oo)),VR=$e(function(s,u,w){u!=null&&typeof u.toString!="function"&&(u=Fo.call(u)),kt.call(s,u)?s[u].push(w):s[u]=[w]},Ct),UR=Bt(Co);function ii(s){return Do(s)?nl(s):zo(s)}function Po(s){return Do(s)?nl(s,!0):ol(s)}function HR(s,u){var w={};return u=Ct(u,3),Ti(s,function(O,$,K){Si(w,u(O,$,K),O)}),w}function WR(s,u){var w={};return u=Ct(u,3),Ti(s,function(O,$,K){Si(w,$,u(O,$,K))}),w}var zR=Ra(function(s,u,w){ys(s,u,w)}),i0=Ra(function(s,u,w,O){ys(s,u,w,O)}),YR=dl(function(s,u){var w={};if(s==null)return w;var O=!1;u=ot(u,function(K){return K=Ci(K,s),O||(O=K.length>1),K}),Mi(s,ng(s),w),O&&(w=Ur(w,g|T|E,$P));for(var $=u.length;$--;)Wr(w,u[$]);return w});function GR(s,u){return o0(s,fh(Ct(u)))}var qR=dl(function(s,u){return s==null?{}:al(s,u)});function o0(s,u){if(s==null)return{};var w=ot(ng(s),function(O){return[O]});return u=Ct(u),_a(s,w,function(O,$){return u(O,$[0])})}function XR(s,u,w){u=Ci(u,s);var O=-1,$=u.length;for($||($=1,s=n);++O<$;){var K=s==null?n:s[Ia(u[O])];K===n&&(O=$,K=w),s=pl(K)?K.call(s):K}return s}function KR(s,u,w){return s==null?s:Qs(s,u,w)}function ZR(s,u,w,O){return O=typeof O=="function"?O:n,s==null?s:Qs(s,u,w,O)}var s0=rf(ii),a0=rf(Po);function JR(s,u,w){var O=Ut(s),$=O||ru(s)||sf(s);if(u=Ct(u,4),w==null){var K=s&&s.constructor;$?w=O?new K:[]:qn(s)?w=pl(K)?Vo(Vs(s)):{}:w={}}return($?te:Ti)(s,function(oe,he,ye){return u(w,oe,he,ye)}),w}function QR(s,u){return s==null?!0:Wr(s,u)}function eA(s,u,w){return s==null?s:Zc(s,u,eu(w))}function tA(s,u,w,O){return O=typeof O=="function"?O:n,s==null?s:Zc(s,u,eu(w),O)}function af(s){return s==null?[]:_t(s,ii(s))}function nA(s){return s==null?[]:_t(s,Po(s))}function rA(s,u,w){return w===n&&(w=u,u=n),w!==n&&(w=Cs(w),w=w===w?w:0),u!==n&&(u=Cs(u),u=u===u?u:0),Gs(Cs(s),u,w)}function iA(s,u,w){return u=gl(u),w===n?(w=u,u=0):w=gl(w),s=Cs(s),Wl(s,u,w)}function oA(s,u,w){if(w&&typeof w!="boolean"&&no(s,u,w)&&(u=w=n),w===n&&(typeof u=="boolean"?(w=u,u=n):typeof s=="boolean"&&(w=s,s=n)),s===n&&u===n?(s=0,u=1):(s=gl(s),u===n?(u=s,s=0):u=gl(u)),s>u){var O=s;s=u,u=O}if(w||s%1||u%1){var $=fs();return Gn(s+$*(u-s+ur("1e-"+(($+"").length-1))),u)}return Js(s,u)}var sA=S(function(s,u,w){return u=u.toLowerCase(),s+(w?l0(u):u)});function l0(s){return yg(gn(s).toLowerCase())}function u0(s){return s=gn(s),s&&s.replace(tr,$n).replace(os,"")}function aA(s,u,w){s=gn(s),u=Hr(u);var O=s.length;w=w===n?O:Gs(Yt(w),0,O);var $=w;return w-=u.length,w>=0&&s.slice(w,$)==u}function lA(s){return s=gn(s),s&&zi.test(s)?s.replace(Wt,as):s}function uA(s){return s=gn(s),s&&ci.test(s)?s.replace(br,"\\$&"):s}var cA=S(function(s,u,w){return s+(w?"-":"")+u.toLowerCase()}),fA=S(function(s,u,w){return s+(w?" ":"")+u.toLowerCase()}),dA=m("toLowerCase");function hA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;if(!u||O>=u)return s;var $=(u-O)/2;return xt(Us($),w)+s+xt(va($),w)}function pA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;return u&&O<u?s+xt(u-O,w):s}function gA(s,u,w){s=gn(s),u=Yt(u);var O=u?yo(s):0;return u&&O<u?xt(u-O,w)+s:s}function mA(s,u,w){return w||u==null?u=0:u&&(u=+u),Mu(gn(s).replace(an,""),u||0)}function vA(s,u,w){return(w?no(s,u,w):u===n)?u=1:u=Yt(u),Kl(gn(s),u)}function yA(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var bA=S(function(s,u,w){return s+(w?"_":"")+u.toLowerCase()});function wA(s,u,w){return w&&typeof w!="number"&&no(s,u,w)&&(u=w=n),w=w===n?Te:w>>>0,w?(s=gn(s),s&&(typeof u=="string"||u!=null&&!gg(u))&&(u=Hr(u),!u&&ei(s))?ws(cn(s),0,w):s.split(u,w)):[]}var xA=S(function(s,u,w){return s+(w?" ":"")+yg(u)});function SA(s,u,w){return s=gn(s),w=w==null?0:Gs(Yt(w),0,s.length),u=Hr(u),s.slice(w,w+u.length)==u}function TA(s,u,w){var O=z.templateSettings;w&&no(s,u,w)&&(u=n),s=gn(s),u=ph({},u,O,bb);var $=ph({},u.imports,O.imports,bb),K=ii($),oe=_t($,K),he,ye,We=0,Ge=u.interpolate||Yi,Ze="__p += '",at=It((u.escape||Yi).source+"|"+Ge.source+"|"+(Ge===li?er:Yi).source+"|"+(u.evaluate||Yi).source+"|$","g"),bt="//# sourceURL="+(kt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+`
146
146
  `;s.replace(at,function(Pt,Jt,tn,Go,ro,qo){return tn||(tn=Go),Ze+=s.slice(We,qo).replace(_i,fa),Jt&&(he=!0,Ze+=`' +
147
147
  __e(`+Jt+`) +
148
148
  '`),ro&&(ye=!0,Ze+=`';
@@ -159,7 +159,7 @@ __p += '`),tn&&(Ze+=`' +
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+Ze+`return __p
162
- }`;var Xt=f0(function(){return st(K,bt+"return "+Ze).apply(n,oe)});if(Xt.source=Ze,pg(Xt))throw Xt;return Xt}function CA(s){return gn(s).toLowerCase()}function EA(s){return gn(s).toUpperCase()}function kA(s,u,w){if(s=gn(s),s&&(w||u===n))return qe(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),oe=An(O,$)+1;return ws(O,K,oe).join("")}function DA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.slice(0,Al(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ws(O,0,$).join("")}function PA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.replace(an,"");if(!s||!(u=Hr(u)))return s;var O=cn(s),$=vt(O,cn(u));return ws(O,$).join("")}function OA(s,u){var w=ze,O=tt;if(qn(u)){var $="separator"in u?u.separator:$;w="length"in u?Yt(u.length):w,O="omission"in u?Hr(u.omission):O}s=gn(s);var K=s.length;if(ei(s)){var oe=cn(s);K=oe.length}if(w>=K)return s;var he=w-yo(O);if(he<1)return O;var ye=oe?ws(oe,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(oe&&(he+=ye.length-he),gg($)){if(s.slice(he).search($)){var We,Ge=ye;for($.global||($=It($.source,gn(_r.exec($))+"g")),$.lastIndex=0;We=$.exec(Ge);)var Ze=We.index;ye=ye.slice(0,Ze===n?he:Ze)}}else if(s.indexOf(Hr($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function _A(s){return s=gn(s),s&&ai.test(s)?s.replace(Qn,pa):s}var RA=S(function(s,u,w){return s+(w?" ":"")+u.toUpperCase()}),yg=m("toUpperCase");function c0(s,u,w){return s=gn(s),u=w?n:u,u===n?Ya(s)?de(s):Lt(s):s.match(u)||[]}var f0=Bt(function(s,u){try{return V(s,n,u)}catch(w){return pg(w)?w:new Be(w)}}),AA=dl(function(s,u){return te(u,function(w){w=Ia(w),Si(s,w,dg(s[w],s))}),s});function IA(s){var u=s==null?0:s.length,w=Ct();return s=u?ot(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[w(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function MA(s){return Hu(Ur(s,g))}function bg(s){return function(){return s}}function LA(s,u){return s==null||s!==s?u:s}var FA=re(),NA=re(!0);function Oo(s){return s}function wg(s){return ql(typeof s=="function"?s:Ur(s,g))}function jA(s){return Eo(Ur(s,g))}function BA(s,u){return sl(s,Ur(u,g))}var $A=Bt(function(s,u){return function(w){return Co(w,s,u)}}),VA=Bt(function(s,u){return function(w){return Co(s,w,u)}});function xg(s,u,w){var O=ii(u),$=Ca(u,O);w==null&&!(qn(u)&&($.length||!O.length))&&(w=u,u=s,s=this,$=Ca(u,ii(u)));var K=!(qn(w)&&"chain"in w)||!!w.chain,oe=pl(s);return te($,function(he){var ye=u[he];s[he]=ye,oe&&(s.prototype[he]=function(){var We=this.__chain__;if(K||We){var Ge=s(this.__wrapped__),Ze=Ge.__actions__=zr(this.__actions__);return Ze.push({func:ye,args:arguments,thisArg:s}),Ge.__chain__=We,Ge}return ye.apply(s,Tt([this.value()],arguments))})}),s}function UA(){return ln._===this&&(ln._=Au),this}function Sg(){}function HA(s){return s=Yt(s),Bt(function(u){return Oa(u,s)})}var WA=rt(ot),zA=rt(_e),YA=rt(un);function d0(s){return sg(s)?D(Ia(s)):Yc(s)}function GA(s){return function(u){return s==null?n:vs(s,u)}}var qA=ir(),XA=ir(!0);function Tg(){return[]}function Cg(){return!1}function KA(){return{}}function ZA(){return""}function JA(){return!0}function QA(s,u){if(s=Yt(s),s<1||s>Oe)return[];var w=Te,O=Gn(s,Te);u=Ct(u),s-=Te;for(var $=xe(O,u);++w<s;)u(w);return $}function eI(s){return Ut(s)?ot(s,Ia):Yo(s)?[s]:zr(Ab(gn(s)))}function tI(s){var u=++_u;return gn(s)+u}var nI=Xe(function(s,u){return s+u},0),rI=to("ceil"),iI=Xe(function(s,u){return s/u},1),oI=to("floor");function sI(s){return s&&s.length?Vl(s,Oo,Xs):n}function aI(s,u){return s&&s.length?Vl(s,Ct(u,2),Xs):n}function lI(s){return Tr(s,Oo)}function uI(s,u){return Tr(s,Ct(u,2))}function cI(s){return s&&s.length?Vl(s,Oo,Ji):n}function fI(s,u){return s&&s.length?Vl(s,Ct(u,2),Ji):n}var dI=Xe(function(s,u){return s*u},1),hI=to("round"),pI=Xe(function(s,u){return s-u},0);function gI(s){return s&&s.length?we(s,Oo):0}function mI(s,u){return s&&s.length?we(s,Ct(u,2)):0}return z.after=j_,z.ary=Hb,z.assign=ER,z.assignIn=r0,z.assignInWith=hh,z.assignWith=kR,z.at=DR,z.before=Wb,z.bind=dg,z.bindAll=AA,z.bindKey=zb,z.castArray=K_,z.chain=$b,z.chunk=oO,z.compact=sO,z.concat=aO,z.cond=IA,z.conforms=MA,z.constant=bg,z.countBy=g_,z.create=PR,z.curry=Yb,z.curryRight=Gb,z.debounce=qb,z.defaults=OR,z.defaultsDeep=_R,z.defer=B_,z.delay=$_,z.difference=lO,z.differenceBy=uO,z.differenceWith=cO,z.drop=fO,z.dropRight=dO,z.dropRightWhile=hO,z.dropWhile=pO,z.fill=gO,z.filter=v_,z.flatMap=w_,z.flatMapDeep=x_,z.flatMapDepth=S_,z.flatten=Fb,z.flattenDeep=mO,z.flattenDepth=vO,z.flip=V_,z.flow=FA,z.flowRight=NA,z.fromPairs=yO,z.functions=NR,z.functionsIn=jR,z.groupBy=T_,z.initial=wO,z.intersection=xO,z.intersectionBy=SO,z.intersectionWith=TO,z.invert=$R,z.invertBy=VR,z.invokeMap=E_,z.iteratee=wg,z.keyBy=k_,z.keys=ii,z.keysIn=Po,z.map=ah,z.mapKeys=HR,z.mapValues=WR,z.matches=jA,z.matchesProperty=BA,z.memoize=uh,z.merge=zR,z.mergeWith=i0,z.method=$A,z.methodOf=VA,z.mixin=xg,z.negate=ch,z.nthArg=HA,z.omit=YR,z.omitBy=GR,z.once=U_,z.orderBy=D_,z.over=WA,z.overArgs=H_,z.overEvery=zA,z.overSome=YA,z.partial=hg,z.partialRight=Xb,z.partition=P_,z.pick=qR,z.pickBy=o0,z.property=d0,z.propertyOf=GA,z.pull=DO,z.pullAll=jb,z.pullAllBy=PO,z.pullAllWith=OO,z.pullAt=_O,z.range=qA,z.rangeRight=XA,z.rearg=W_,z.reject=R_,z.remove=RO,z.rest=z_,z.reverse=cg,z.sampleSize=I_,z.set=KR,z.setWith=ZR,z.shuffle=M_,z.slice=AO,z.sortBy=N_,z.sortedUniq=BO,z.sortedUniqBy=$O,z.split=wA,z.spread=Y_,z.tail=VO,z.take=UO,z.takeRight=HO,z.takeRightWhile=WO,z.takeWhile=zO,z.tap=s_,z.throttle=G_,z.thru=sh,z.toArray=e0,z.toPairs=s0,z.toPairsIn=a0,z.toPath=eI,z.toPlainObject=n0,z.transform=JR,z.unary=q_,z.union=YO,z.unionBy=GO,z.unionWith=qO,z.uniq=XO,z.uniqBy=KO,z.uniqWith=ZO,z.unset=QR,z.unzip=fg,z.unzipWith=Bb,z.update=eA,z.updateWith=tA,z.values=af,z.valuesIn=nA,z.without=JO,z.words=c0,z.wrap=X_,z.xor=QO,z.xorBy=e_,z.xorWith=t_,z.zip=n_,z.zipObject=r_,z.zipObjectDeep=i_,z.zipWith=o_,z.entries=s0,z.entriesIn=a0,z.extend=r0,z.extendWith=hh,xg(z,z),z.add=nI,z.attempt=f0,z.camelCase=sA,z.capitalize=l0,z.ceil=rI,z.clamp=rA,z.clone=Z_,z.cloneDeep=Q_,z.cloneDeepWith=eR,z.cloneWith=J_,z.conformsTo=tR,z.deburr=u0,z.defaultTo=LA,z.divide=iI,z.endsWith=aA,z.eq=ra,z.escape=lA,z.escapeRegExp=uA,z.every=m_,z.find=y_,z.findIndex=Mb,z.findKey=RR,z.findLast=b_,z.findLastIndex=Lb,z.findLastKey=AR,z.floor=oI,z.forEach=Vb,z.forEachRight=Ub,z.forIn=IR,z.forInRight=MR,z.forOwn=LR,z.forOwnRight=FR,z.get=mg,z.gt=nR,z.gte=rR,z.has=BR,z.hasIn=vg,z.head=Nb,z.identity=Oo,z.includes=C_,z.indexOf=bO,z.inRange=iA,z.invoke=UR,z.isArguments=sc,z.isArray=Ut,z.isArrayBuffer=iR,z.isArrayLike=Do,z.isArrayLikeObject=hr,z.isBoolean=oR,z.isBuffer=ru,z.isDate=sR,z.isElement=aR,z.isEmpty=lR,z.isEqual=uR,z.isEqualWith=cR,z.isError=pg,z.isFinite=fR,z.isFunction=pl,z.isInteger=Kb,z.isLength=fh,z.isMap=Zb,z.isMatch=dR,z.isMatchWith=hR,z.isNaN=pR,z.isNative=gR,z.isNil=vR,z.isNull=mR,z.isNumber=Jb,z.isObject=qn,z.isObjectLike=or,z.isPlainObject=ed,z.isRegExp=gg,z.isSafeInteger=yR,z.isSet=Qb,z.isString=dh,z.isSymbol=Yo,z.isTypedArray=sf,z.isUndefined=bR,z.isWeakMap=wR,z.isWeakSet=xR,z.join=CO,z.kebabCase=cA,z.last=Ts,z.lastIndexOf=EO,z.lowerCase=fA,z.lowerFirst=dA,z.lt=SR,z.lte=TR,z.max=sI,z.maxBy=aI,z.mean=lI,z.meanBy=uI,z.min=cI,z.minBy=fI,z.stubArray=Tg,z.stubFalse=Cg,z.stubObject=KA,z.stubString=ZA,z.stubTrue=JA,z.multiply=dI,z.nth=kO,z.noConflict=UA,z.noop=Sg,z.now=lh,z.pad=hA,z.padEnd=pA,z.padStart=gA,z.parseInt=mA,z.random=oA,z.reduce=O_,z.reduceRight=__,z.repeat=vA,z.replace=yA,z.result=XR,z.round=hI,z.runInContext=Z,z.sample=A_,z.size=L_,z.snakeCase=bA,z.some=F_,z.sortedIndex=IO,z.sortedIndexBy=MO,z.sortedIndexOf=LO,z.sortedLastIndex=FO,z.sortedLastIndexBy=NO,z.sortedLastIndexOf=jO,z.startCase=xA,z.startsWith=SA,z.subtract=pI,z.sum=gI,z.sumBy=mI,z.template=TA,z.times=QA,z.toFinite=gl,z.toInteger=Yt,z.toLength=t0,z.toLower=CA,z.toNumber=Cs,z.toSafeInteger=CR,z.toString=gn,z.toUpper=EA,z.trim=kA,z.trimEnd=DA,z.trimStart=PA,z.truncate=OA,z.unescape=_A,z.uniqueId=tI,z.upperCase=RA,z.upperFirst=yg,z.each=Vb,z.eachRight=Ub,z.first=Nb,xg(z,function(){var s={};return Ti(z,function(u,w){kt.call(z.prototype,w)||(s[w]=u)}),s}(),{chain:!1}),z.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),te(["drop","take"],function(s,u){$t.prototype[s]=function(w){w=w===n?1:wn(Yt(w),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(w,O.__takeCount__):O.__views__.push({size:Gn(w,Te),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(w){return this.reverse()[s](w).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var w=u+1,O=w==Ye||w==fe;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:w}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var w="take"+(u?"Right":"");$t.prototype[s]=function(){return this[w](1).value()[0]}}),te(["initial","tail"],function(s,u){var w="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Oo)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(w){return Co(w,s,u)})}),$t.prototype.reject=function(s){return this.filter(ch(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var w=this;return w.__filtered__&&(s>0||u<0)?new $t(w):(s<0?w=w.takeRight(-s):s&&(w=w.drop(s)),u!==n&&(u=Yt(u),w=u<0?w.dropRight(-u):w.take(u-s)),w)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Te)},Ti($t.prototype,function(s,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=z[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(z.prototype[u]=function(){var oe=this.__wrapped__,he=O?[1]:arguments,ye=oe instanceof $t,We=he[0],Ge=ye||Ut(oe),Ze=function(Jt){var tn=$.apply(z,Tt([Jt],he));return O&&at?tn[0]:tn};Ge&&w&&typeof We=="function"&&We.length!=1&&(ye=Ge=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&Ge){oe=Xt?oe:new $t(this);var Pt=s.apply(oe,he);return Pt.__actions__.push({func:sh,args:[Ze],thisArg:n}),new Cr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Ze),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],w=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);z.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ut(K)?K:[],$)}return this[w](function(oe){return u.apply(Ut(oe)?oe:[],$)})}}),Ti($t.prototype,function(s,u){var w=z[u];if(w){var O=w.name+"";kt.call(Hs,O)||(Hs[O]=[]),Hs[O].push({name:u,func:w})}}),Hs[Se(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=el,$t.prototype.value=jl,z.prototype.at=a_,z.prototype.chain=l_,z.prototype.commit=u_,z.prototype.next=c_,z.prototype.plant=d_,z.prototype.reverse=h_,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=p_,z.prototype.first=z.prototype.head,Ki&&(z.prototype[Ki]=f_),z},Pe=ke();bi?((bi.exports=Pe)._=Pe,Lo._=Pe):ln._=Pe}).call(Di)})(Sp,Sp.exports);var nP=Sp.exports;const F6=Eu(nP);var rP={exports:{}};/*!
162
+ }`;var Xt=f0(function(){return st(K,bt+"return "+Ze).apply(n,oe)});if(Xt.source=Ze,pg(Xt))throw Xt;return Xt}function CA(s){return gn(s).toLowerCase()}function EA(s){return gn(s).toUpperCase()}function kA(s,u,w){if(s=gn(s),s&&(w||u===n))return qe(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),oe=An(O,$)+1;return ws(O,K,oe).join("")}function DA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.slice(0,Al(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ws(O,0,$).join("")}function PA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.replace(an,"");if(!s||!(u=Hr(u)))return s;var O=cn(s),$=vt(O,cn(u));return ws(O,$).join("")}function OA(s,u){var w=ze,O=tt;if(qn(u)){var $="separator"in u?u.separator:$;w="length"in u?Yt(u.length):w,O="omission"in u?Hr(u.omission):O}s=gn(s);var K=s.length;if(ei(s)){var oe=cn(s);K=oe.length}if(w>=K)return s;var he=w-yo(O);if(he<1)return O;var ye=oe?ws(oe,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(oe&&(he+=ye.length-he),gg($)){if(s.slice(he).search($)){var We,Ge=ye;for($.global||($=It($.source,gn(_r.exec($))+"g")),$.lastIndex=0;We=$.exec(Ge);)var Ze=We.index;ye=ye.slice(0,Ze===n?he:Ze)}}else if(s.indexOf(Hr($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function _A(s){return s=gn(s),s&&ai.test(s)?s.replace(Qn,pa):s}var RA=S(function(s,u,w){return s+(w?" ":"")+u.toUpperCase()}),yg=m("toUpperCase");function c0(s,u,w){return s=gn(s),u=w?n:u,u===n?Ya(s)?de(s):Lt(s):s.match(u)||[]}var f0=Bt(function(s,u){try{return V(s,n,u)}catch(w){return pg(w)?w:new Be(w)}}),AA=dl(function(s,u){return te(u,function(w){w=Ia(w),Si(s,w,dg(s[w],s))}),s});function IA(s){var u=s==null?0:s.length,w=Ct();return s=u?ot(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[w(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function MA(s){return Hu(Ur(s,g))}function bg(s){return function(){return s}}function LA(s,u){return s==null||s!==s?u:s}var FA=re(),NA=re(!0);function Oo(s){return s}function wg(s){return ql(typeof s=="function"?s:Ur(s,g))}function jA(s){return Eo(Ur(s,g))}function BA(s,u){return sl(s,Ur(u,g))}var $A=Bt(function(s,u){return function(w){return Co(w,s,u)}}),VA=Bt(function(s,u){return function(w){return Co(s,w,u)}});function xg(s,u,w){var O=ii(u),$=Ca(u,O);w==null&&!(qn(u)&&($.length||!O.length))&&(w=u,u=s,s=this,$=Ca(u,ii(u)));var K=!(qn(w)&&"chain"in w)||!!w.chain,oe=pl(s);return te($,function(he){var ye=u[he];s[he]=ye,oe&&(s.prototype[he]=function(){var We=this.__chain__;if(K||We){var Ge=s(this.__wrapped__),Ze=Ge.__actions__=zr(this.__actions__);return Ze.push({func:ye,args:arguments,thisArg:s}),Ge.__chain__=We,Ge}return ye.apply(s,Tt([this.value()],arguments))})}),s}function UA(){return ln._===this&&(ln._=Au),this}function Sg(){}function HA(s){return s=Yt(s),Bt(function(u){return Oa(u,s)})}var WA=rt(ot),zA=rt(_e),YA=rt(un);function d0(s){return sg(s)?D(Ia(s)):Yc(s)}function GA(s){return function(u){return s==null?n:vs(s,u)}}var qA=ir(),XA=ir(!0);function Tg(){return[]}function Cg(){return!1}function KA(){return{}}function ZA(){return""}function JA(){return!0}function QA(s,u){if(s=Yt(s),s<1||s>Oe)return[];var w=Te,O=Gn(s,Te);u=Ct(u),s-=Te;for(var $=xe(O,u);++w<s;)u(w);return $}function eI(s){return Ut(s)?ot(s,Ia):Yo(s)?[s]:zr(Ab(gn(s)))}function tI(s){var u=++_u;return gn(s)+u}var nI=Xe(function(s,u){return s+u},0),rI=to("ceil"),iI=Xe(function(s,u){return s/u},1),oI=to("floor");function sI(s){return s&&s.length?Vl(s,Oo,Xs):n}function aI(s,u){return s&&s.length?Vl(s,Ct(u,2),Xs):n}function lI(s){return Tr(s,Oo)}function uI(s,u){return Tr(s,Ct(u,2))}function cI(s){return s&&s.length?Vl(s,Oo,Ji):n}function fI(s,u){return s&&s.length?Vl(s,Ct(u,2),Ji):n}var dI=Xe(function(s,u){return s*u},1),hI=to("round"),pI=Xe(function(s,u){return s-u},0);function gI(s){return s&&s.length?we(s,Oo):0}function mI(s,u){return s&&s.length?we(s,Ct(u,2)):0}return z.after=j_,z.ary=Hb,z.assign=ER,z.assignIn=r0,z.assignInWith=ph,z.assignWith=kR,z.at=DR,z.before=Wb,z.bind=dg,z.bindAll=AA,z.bindKey=zb,z.castArray=K_,z.chain=$b,z.chunk=oO,z.compact=sO,z.concat=aO,z.cond=IA,z.conforms=MA,z.constant=bg,z.countBy=g_,z.create=PR,z.curry=Yb,z.curryRight=Gb,z.debounce=qb,z.defaults=OR,z.defaultsDeep=_R,z.defer=B_,z.delay=$_,z.difference=lO,z.differenceBy=uO,z.differenceWith=cO,z.drop=fO,z.dropRight=dO,z.dropRightWhile=hO,z.dropWhile=pO,z.fill=gO,z.filter=v_,z.flatMap=w_,z.flatMapDeep=x_,z.flatMapDepth=S_,z.flatten=Fb,z.flattenDeep=mO,z.flattenDepth=vO,z.flip=V_,z.flow=FA,z.flowRight=NA,z.fromPairs=yO,z.functions=NR,z.functionsIn=jR,z.groupBy=T_,z.initial=wO,z.intersection=xO,z.intersectionBy=SO,z.intersectionWith=TO,z.invert=$R,z.invertBy=VR,z.invokeMap=E_,z.iteratee=wg,z.keyBy=k_,z.keys=ii,z.keysIn=Po,z.map=lh,z.mapKeys=HR,z.mapValues=WR,z.matches=jA,z.matchesProperty=BA,z.memoize=ch,z.merge=zR,z.mergeWith=i0,z.method=$A,z.methodOf=VA,z.mixin=xg,z.negate=fh,z.nthArg=HA,z.omit=YR,z.omitBy=GR,z.once=U_,z.orderBy=D_,z.over=WA,z.overArgs=H_,z.overEvery=zA,z.overSome=YA,z.partial=hg,z.partialRight=Xb,z.partition=P_,z.pick=qR,z.pickBy=o0,z.property=d0,z.propertyOf=GA,z.pull=DO,z.pullAll=jb,z.pullAllBy=PO,z.pullAllWith=OO,z.pullAt=_O,z.range=qA,z.rangeRight=XA,z.rearg=W_,z.reject=R_,z.remove=RO,z.rest=z_,z.reverse=cg,z.sampleSize=I_,z.set=KR,z.setWith=ZR,z.shuffle=M_,z.slice=AO,z.sortBy=N_,z.sortedUniq=BO,z.sortedUniqBy=$O,z.split=wA,z.spread=Y_,z.tail=VO,z.take=UO,z.takeRight=HO,z.takeRightWhile=WO,z.takeWhile=zO,z.tap=s_,z.throttle=G_,z.thru=ah,z.toArray=e0,z.toPairs=s0,z.toPairsIn=a0,z.toPath=eI,z.toPlainObject=n0,z.transform=JR,z.unary=q_,z.union=YO,z.unionBy=GO,z.unionWith=qO,z.uniq=XO,z.uniqBy=KO,z.uniqWith=ZO,z.unset=QR,z.unzip=fg,z.unzipWith=Bb,z.update=eA,z.updateWith=tA,z.values=af,z.valuesIn=nA,z.without=JO,z.words=c0,z.wrap=X_,z.xor=QO,z.xorBy=e_,z.xorWith=t_,z.zip=n_,z.zipObject=r_,z.zipObjectDeep=i_,z.zipWith=o_,z.entries=s0,z.entriesIn=a0,z.extend=r0,z.extendWith=ph,xg(z,z),z.add=nI,z.attempt=f0,z.camelCase=sA,z.capitalize=l0,z.ceil=rI,z.clamp=rA,z.clone=Z_,z.cloneDeep=Q_,z.cloneDeepWith=eR,z.cloneWith=J_,z.conformsTo=tR,z.deburr=u0,z.defaultTo=LA,z.divide=iI,z.endsWith=aA,z.eq=ra,z.escape=lA,z.escapeRegExp=uA,z.every=m_,z.find=y_,z.findIndex=Mb,z.findKey=RR,z.findLast=b_,z.findLastIndex=Lb,z.findLastKey=AR,z.floor=oI,z.forEach=Vb,z.forEachRight=Ub,z.forIn=IR,z.forInRight=MR,z.forOwn=LR,z.forOwnRight=FR,z.get=mg,z.gt=nR,z.gte=rR,z.has=BR,z.hasIn=vg,z.head=Nb,z.identity=Oo,z.includes=C_,z.indexOf=bO,z.inRange=iA,z.invoke=UR,z.isArguments=sc,z.isArray=Ut,z.isArrayBuffer=iR,z.isArrayLike=Do,z.isArrayLikeObject=hr,z.isBoolean=oR,z.isBuffer=ru,z.isDate=sR,z.isElement=aR,z.isEmpty=lR,z.isEqual=uR,z.isEqualWith=cR,z.isError=pg,z.isFinite=fR,z.isFunction=pl,z.isInteger=Kb,z.isLength=dh,z.isMap=Zb,z.isMatch=dR,z.isMatchWith=hR,z.isNaN=pR,z.isNative=gR,z.isNil=vR,z.isNull=mR,z.isNumber=Jb,z.isObject=qn,z.isObjectLike=or,z.isPlainObject=ed,z.isRegExp=gg,z.isSafeInteger=yR,z.isSet=Qb,z.isString=hh,z.isSymbol=Yo,z.isTypedArray=sf,z.isUndefined=bR,z.isWeakMap=wR,z.isWeakSet=xR,z.join=CO,z.kebabCase=cA,z.last=Ts,z.lastIndexOf=EO,z.lowerCase=fA,z.lowerFirst=dA,z.lt=SR,z.lte=TR,z.max=sI,z.maxBy=aI,z.mean=lI,z.meanBy=uI,z.min=cI,z.minBy=fI,z.stubArray=Tg,z.stubFalse=Cg,z.stubObject=KA,z.stubString=ZA,z.stubTrue=JA,z.multiply=dI,z.nth=kO,z.noConflict=UA,z.noop=Sg,z.now=uh,z.pad=hA,z.padEnd=pA,z.padStart=gA,z.parseInt=mA,z.random=oA,z.reduce=O_,z.reduceRight=__,z.repeat=vA,z.replace=yA,z.result=XR,z.round=hI,z.runInContext=Z,z.sample=A_,z.size=L_,z.snakeCase=bA,z.some=F_,z.sortedIndex=IO,z.sortedIndexBy=MO,z.sortedIndexOf=LO,z.sortedLastIndex=FO,z.sortedLastIndexBy=NO,z.sortedLastIndexOf=jO,z.startCase=xA,z.startsWith=SA,z.subtract=pI,z.sum=gI,z.sumBy=mI,z.template=TA,z.times=QA,z.toFinite=gl,z.toInteger=Yt,z.toLength=t0,z.toLower=CA,z.toNumber=Cs,z.toSafeInteger=CR,z.toString=gn,z.toUpper=EA,z.trim=kA,z.trimEnd=DA,z.trimStart=PA,z.truncate=OA,z.unescape=_A,z.uniqueId=tI,z.upperCase=RA,z.upperFirst=yg,z.each=Vb,z.eachRight=Ub,z.first=Nb,xg(z,function(){var s={};return Ti(z,function(u,w){kt.call(z.prototype,w)||(s[w]=u)}),s}(),{chain:!1}),z.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),te(["drop","take"],function(s,u){$t.prototype[s]=function(w){w=w===n?1:wn(Yt(w),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(w,O.__takeCount__):O.__views__.push({size:Gn(w,Te),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(w){return this.reverse()[s](w).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var w=u+1,O=w==Ye||w==fe;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:w}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var w="take"+(u?"Right":"");$t.prototype[s]=function(){return this[w](1).value()[0]}}),te(["initial","tail"],function(s,u){var w="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Oo)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(w){return Co(w,s,u)})}),$t.prototype.reject=function(s){return this.filter(fh(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var w=this;return w.__filtered__&&(s>0||u<0)?new $t(w):(s<0?w=w.takeRight(-s):s&&(w=w.drop(s)),u!==n&&(u=Yt(u),w=u<0?w.dropRight(-u):w.take(u-s)),w)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Te)},Ti($t.prototype,function(s,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=z[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(z.prototype[u]=function(){var oe=this.__wrapped__,he=O?[1]:arguments,ye=oe instanceof $t,We=he[0],Ge=ye||Ut(oe),Ze=function(Jt){var tn=$.apply(z,Tt([Jt],he));return O&&at?tn[0]:tn};Ge&&w&&typeof We=="function"&&We.length!=1&&(ye=Ge=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&Ge){oe=Xt?oe:new $t(this);var Pt=s.apply(oe,he);return Pt.__actions__.push({func:ah,args:[Ze],thisArg:n}),new Cr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Ze),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],w=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);z.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ut(K)?K:[],$)}return this[w](function(oe){return u.apply(Ut(oe)?oe:[],$)})}}),Ti($t.prototype,function(s,u){var w=z[u];if(w){var O=w.name+"";kt.call(Hs,O)||(Hs[O]=[]),Hs[O].push({name:u,func:w})}}),Hs[Se(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=el,$t.prototype.value=jl,z.prototype.at=a_,z.prototype.chain=l_,z.prototype.commit=u_,z.prototype.next=c_,z.prototype.plant=d_,z.prototype.reverse=h_,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=p_,z.prototype.first=z.prototype.head,Ki&&(z.prototype[Ki]=f_),z},Pe=ke();bi?((bi.exports=Pe)._=Pe,Lo._=Pe):ln._=Pe}).call(Di)})(Tp,Tp.exports);var nP=Tp.exports;const F6=Eu(nP);var rP={exports:{}};/*!
163
163
  * jQuery JavaScript Library v3.7.1
164
164
  * https://jquery.com/
165
165
  *
@@ -402,7 +402,7 @@ function print() { __p += __j.call(arguments, '') }
402
402
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
403
403
  * See the License for the specific language governing permissions and
404
404
  * limitations under the License.
405
- */const Tp=new Map,X8=new Map,Bv=new Map;function W1(t,e){try{t.container.addComponent(e)}catch(n){_l.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Pc(t){const e=t.name;if(Bv.has(e))return _l.debug(`There were multiple attempts to register component ${e}.`),!1;Bv.set(e,t);for(const n of Tp.values())W1(n,t);for(const n of X8.values())W1(n,t);return!0}function fb(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
405
+ */const Cp=new Map,X8=new Map,Bv=new Map;function W1(t,e){try{t.container.addComponent(e)}catch(n){_l.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Pc(t){const e=t.name;if(Bv.has(e))return _l.debug(`There were multiple attempts to register component ${e}.`),!1;Bv.set(e,t);for(const n of Cp.values())W1(n,t);for(const n of X8.values())W1(n,t);return!0}function fb(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
406
406
  * @license
407
407
  * Copyright 2019 Google LLC
408
408
  *
@@ -432,7 +432,7 @@ function print() { __p += __j.call(arguments, '') }
432
432
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
433
433
  * See the License for the specific language governing permissions and
434
434
  * limitations under the License.
435
- */class Z8{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Cu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw gu.create("app-deleted",{appName:this._name})}}function hP(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:jv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw gu.create("bad-app-name",{appName:String(i)});if(n||(n=lP()),!n)throw gu.create("no-options");const o=Tp.get(i);if(o){if(Mv(n,o.options)&&Mv(r,o.config))return o;throw gu.create("duplicate-app",{appName:i})}const a=new i8(i);for(const f of Bv.values())a.addComponent(f);const c=new Z8(n,r,a);return Tp.set(i,c),c}function J8(t=jv){const e=Tp.get(t);if(!e&&t===jv&&lP())return hP();if(!e)throw gu.create("no-app",{appName:t});return e}function mu(t,e,n){var r;let i=(r=q8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),_l.warn(c.join(" "));return}Pc(new Cu(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
435
+ */class Z8{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Cu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw gu.create("app-deleted",{appName:this._name})}}function hP(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:jv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw gu.create("bad-app-name",{appName:String(i)});if(n||(n=lP()),!n)throw gu.create("no-options");const o=Cp.get(i);if(o){if(Mv(n,o.options)&&Mv(r,o.config))return o;throw gu.create("duplicate-app",{appName:i})}const a=new i8(i);for(const f of Bv.values())a.addComponent(f);const c=new Z8(n,r,a);return Cp.set(i,c),c}function J8(t=jv){const e=Cp.get(t);if(!e&&t===jv&&lP())return hP();if(!e)throw gu.create("no-app",{appName:t});return e}function mu(t,e,n){var r;let i=(r=q8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),_l.warn(c.join(" "));return}Pc(new Cu(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
436
436
  * @license
437
437
  * Copyright 2021 Google LLC
438
438
  *
@@ -447,7 +447,7 @@ function print() { __p += __j.call(arguments, '') }
447
447
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
448
448
  * See the License for the specific language governing permissions and
449
449
  * limitations under the License.
450
- */const Q8="firebase-heartbeat-database",e9=1,Ud="firebase-heartbeat-store";let Em=null;function pP(){return Em||(Em=Jp(Q8,e9,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Ud)}catch(n){console.warn(n)}}}}).catch(t=>{throw gu.create("idb-open",{originalErrorMessage:t.message})})),Em}async function t9(t){try{const n=(await pP()).transaction(Ud),r=await n.objectStore(Ud).get(gP(t));return await n.done,r}catch(e){if(e instanceof Bf)_l.warn(e.message);else{const n=gu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});_l.warn(n.message)}}}async function z1(t,e){try{const r=(await pP()).transaction(Ud,"readwrite");await r.objectStore(Ud).put(e,gP(t)),await r.done}catch(n){if(n instanceof Bf)_l.warn(n.message);else{const r=gu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});_l.warn(r.message)}}}function gP(t){return`${t.name}!${t.options.appId}`}/**
450
+ */const Q8="firebase-heartbeat-database",e9=1,Hd="firebase-heartbeat-store";let Em=null;function pP(){return Em||(Em=Jp(Q8,e9,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Hd)}catch(n){console.warn(n)}}}}).catch(t=>{throw gu.create("idb-open",{originalErrorMessage:t.message})})),Em}async function t9(t){try{const n=(await pP()).transaction(Hd),r=await n.objectStore(Hd).get(gP(t));return await n.done,r}catch(e){if(e instanceof Bf)_l.warn(e.message);else{const n=gu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});_l.warn(n.message)}}}async function z1(t,e){try{const r=(await pP()).transaction(Hd,"readwrite");await r.objectStore(Hd).put(e,gP(t)),await r.done}catch(n){if(n instanceof Bf)_l.warn(n.message);else{const r=gu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});_l.warn(r.message)}}}function gP(t){return`${t.name}!${t.options.appId}`}/**
451
451
  * @license
452
452
  * Copyright 2021 Google LLC
453
453
  *
@@ -642,7 +642,7 @@ function print() { __p += __j.call(arguments, '') }
642
642
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643
643
  * See the License for the specific language governing permissions and
644
644
  * limitations under the License.
645
- */const k9="firebase-installations-database",D9=1,_c="firebase-installations-store";let km=null;function hb(){return km||(km=Jp(k9,D9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(_c)}}})),km}async function Cp(t,e){const n=Qp(t),i=(await hb()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&PP(t,e.fid),e}async function _P(t){const e=Qp(t),r=(await hb()).transaction(_c,"readwrite");await r.objectStore(_c).delete(e),await r.done}async function eg(t,e){const n=Qp(t),i=(await hb()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&PP(t,c.fid),c}/**
645
+ */const k9="firebase-installations-database",D9=1,_c="firebase-installations-store";let km=null;function hb(){return km||(km=Jp(k9,D9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(_c)}}})),km}async function Ep(t,e){const n=Qp(t),i=(await hb()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&PP(t,e.fid),e}async function _P(t){const e=Qp(t),r=(await hb()).transaction(_c,"readwrite");await r.objectStore(_c).delete(e),await r.done}async function eg(t,e){const n=Qp(t),i=(await hb()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&PP(t,c.fid),c}/**
646
646
  * @license
647
647
  * Copyright 2019 Google LLC
648
648
  *
@@ -657,7 +657,7 @@ function print() { __p += __j.call(arguments, '') }
657
657
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
658
658
  * See the License for the specific language governing permissions and
659
659
  * limitations under the License.
660
- */async function pb(t){let e;const n=await eg(t.appConfig,r=>{const i=P9(r),o=O9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===$v?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function P9(t){const e=t||{fid:x9(),registrationStatus:0};return RP(e)}function O9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Oc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=_9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:R9(t)}:{installationEntry:e}}async function _9(t,e){try{const n=await y9(t,e);return Cp(t.appConfig,n)}catch(n){throw wP(n)&&n.customData.serverCode===409?await _P(t.appConfig):await Cp(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function R9(t){let e=await q1(t.appConfig);for(;e.registrationStatus===1;)await kP(100),e=await q1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await pb(t);return r||n}return e}function q1(t){return eg(t,e=>{if(!e)throw Oc.create("installation-not-found");return RP(e)})}function RP(t){return A9(t)?{fid:t.fid,registrationStatus:0}:t}function A9(t){return t.registrationStatus===1&&t.registrationTime+vP<Date.now()}/**
660
+ */async function pb(t){let e;const n=await eg(t.appConfig,r=>{const i=P9(r),o=O9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===$v?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function P9(t){const e=t||{fid:x9(),registrationStatus:0};return RP(e)}function O9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Oc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=_9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:R9(t)}:{installationEntry:e}}async function _9(t,e){try{const n=await y9(t,e);return Ep(t.appConfig,n)}catch(n){throw wP(n)&&n.customData.serverCode===409?await _P(t.appConfig):await Ep(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function R9(t){let e=await q1(t.appConfig);for(;e.registrationStatus===1;)await kP(100),e=await q1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await pb(t);return r||n}return e}function q1(t){return eg(t,e=>{if(!e)throw Oc.create("installation-not-found");return RP(e)})}function RP(t){return A9(t)?{fid:t.fid,registrationStatus:0}:t}function A9(t){return t.registrationStatus===1&&t.registrationTime+vP<Date.now()}/**
661
661
  * @license
662
662
  * Copyright 2019 Google LLC
663
663
  *
@@ -687,7 +687,7 @@ function print() { __p += __j.call(arguments, '') }
687
687
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
688
688
  * See the License for the specific language governing permissions and
689
689
  * limitations under the License.
690
- */async function gb(t,e=!1){let n;const r=await eg(t.appConfig,o=>{if(!AP(o))throw Oc.create("not-registered");const a=o.authToken;if(!e&&N9(a))return o;if(a.requestStatus===1)return n=L9(t,e),o;{if(!navigator.onLine)throw Oc.create("app-offline");const c=B9(o);return n=F9(t,c),c}});return n?await n:r.authToken}async function L9(t,e){let n=await X1(t.appConfig);for(;n.authToken.requestStatus===1;)await kP(100),n=await X1(t.appConfig);const r=n.authToken;return r.requestStatus===0?gb(t,e):r}function X1(t){return eg(t,e=>{if(!AP(e))throw Oc.create("not-registered");const n=e.authToken;return $9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function F9(t,e){try{const n=await I9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await Cp(t.appConfig,r),n}catch(n){if(wP(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await _P(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await Cp(t.appConfig,r)}throw n}}function AP(t){return t!==void 0&&t.registrationStatus===2}function N9(t){return t.requestStatus===2&&!j9(t)}function j9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+f9}function B9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function $9(t){return t.requestStatus===1&&t.requestTime+vP<Date.now()}/**
690
+ */async function gb(t,e=!1){let n;const r=await eg(t.appConfig,o=>{if(!AP(o))throw Oc.create("not-registered");const a=o.authToken;if(!e&&N9(a))return o;if(a.requestStatus===1)return n=L9(t,e),o;{if(!navigator.onLine)throw Oc.create("app-offline");const c=B9(o);return n=F9(t,c),c}});return n?await n:r.authToken}async function L9(t,e){let n=await X1(t.appConfig);for(;n.authToken.requestStatus===1;)await kP(100),n=await X1(t.appConfig);const r=n.authToken;return r.requestStatus===0?gb(t,e):r}function X1(t){return eg(t,e=>{if(!AP(e))throw Oc.create("not-registered");const n=e.authToken;return $9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function F9(t,e){try{const n=await I9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await Ep(t.appConfig,r),n}catch(n){if(wP(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await _P(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await Ep(t.appConfig,r)}throw n}}function AP(t){return t!==void 0&&t.registrationStatus===2}function N9(t){return t.requestStatus===2&&!j9(t)}function j9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+f9}function B9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function $9(t){return t.requestStatus===1&&t.requestTime+vP<Date.now()}/**
691
691
  * @license
692
692
  * Copyright 2019 Google LLC
693
693
  *
@@ -775,7 +775,7 @@ function print() { __p += __j.call(arguments, '') }
775
775
  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
776
776
  * or implied. See the License for the specific language governing permissions and limitations under
777
777
  * the License.
778
- */var Hd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Hd||(Hd={}));/**
778
+ */var Wd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Wd||(Wd={}));/**
779
779
  * @license
780
780
  * Copyright 2017 Google LLC
781
781
  *
@@ -820,7 +820,7 @@ function print() { __p += __j.call(arguments, '') }
820
820
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
821
821
  * See the License for the specific language governing permissions and
822
822
  * limitations under the License.
823
- */const o7="firebase-messaging-database",s7=1,Wd="firebase-messaging-store";let Om=null;function FP(){return Om||(Om=Jp(o7,s7,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Wd)}}})),Om}async function a7(t){const e=NP(t),r=await(await FP()).transaction(Wd).objectStore(Wd).get(e);if(r)return r;{const i=await r7(t.appConfig.senderId);if(i)return await mb(t,i),i}}async function mb(t,e){const n=NP(t),i=(await FP()).transaction(Wd,"readwrite");return await i.objectStore(Wd).put(e,n),await i.done,e}function NP({appConfig:t}){return t.appId}/**
823
+ */const o7="firebase-messaging-database",s7=1,zd="firebase-messaging-store";let Om=null;function FP(){return Om||(Om=Jp(o7,s7,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(zd)}}})),Om}async function a7(t){const e=NP(t),r=await(await FP()).transaction(zd).objectStore(zd).get(e);if(r)return r;{const i=await r7(t.appConfig.senderId);if(i)return await mb(t,i),i}}async function mb(t,e){const n=NP(t),i=(await FP()).transaction(zd,"readwrite");return await i.objectStore(zd).put(e,n),await i.done,e}function NP({appConfig:t}){return t.appId}/**
824
824
  * @license
825
825
  * Copyright 2017 Google LLC
826
826
  *
@@ -1000,7 +1000,7 @@ function print() { __p += __j.call(arguments, '') }
1000
1000
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1001
1001
  * See the License for the specific language governing permissions and
1002
1002
  * limitations under the License.
1003
- */async function k7(t,e,n){const r=D7(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[LP],message_name:n[J9],message_time:n[Q9],message_device_time:Math.floor(Date.now()/1e3)})}function D7(t){switch(t){case Hd.NOTIFICATION_CLICKED:return"notification_open";case Hd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
1003
+ */async function k7(t,e,n){const r=D7(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[LP],message_name:n[J9],message_time:n[Q9],message_device_time:Math.floor(Date.now()/1e3)})}function D7(t){switch(t){case Wd.NOTIFICATION_CLICKED:return"notification_open";case Wd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
1004
1004
  * @license
1005
1005
  * Copyright 2017 Google LLC
1006
1006
  *
@@ -1015,7 +1015,7 @@ function print() { __p += __j.call(arguments, '') }
1015
1015
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1016
1016
  * See the License for the specific language governing permissions and
1017
1017
  * limitations under the License.
1018
- */async function P7(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Hd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(Q1(n)):t.onMessageHandler.next(Q1(n)));const r=n.data;w7(r)&&r[e7]==="1"&&await k7(t,n.messageType,r)}const eT="@firebase/messaging",tT="0.12.12";/**
1018
+ */async function P7(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Wd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(Q1(n)):t.onMessageHandler.next(Q1(n)));const r=n.data;w7(r)&&r[e7]==="1"&&await k7(t,n.messageType,r)}const eT="@firebase/messaging",tT="0.12.12";/**
1019
1019
  * @license
1020
1020
  * Copyright 2020 Google LLC
1021
1021
  *
@@ -1075,4 +1075,4 @@ function print() { __p += __j.call(arguments, '') }
1075
1075
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1076
1076
  * See the License for the specific language governing permissions and
1077
1077
  * limitations under the License.
1078
- */function M7(t=J8()){return A7().then(e=>{if(!e)throw $i.create("unsupported-browser")},e=>{throw $i.create("indexed-db-unsupported")}),fb(ub(t),"messaging").getImmediate()}async function L7(t,e){return t=ub(t),BP(t,e)}function F7(t,e){return t=ub(t),I7(t,e)}R7();exports.AuthContext=Wv;exports.AuthProvider=iM;exports.CustomOpenList=jT;exports.CustomOpenListProvider=EL;exports.DateRangePicker=$6;exports.ERROR_MESSAGE=uT;exports.FavoriteMenu=b6;exports.GlobalMenu=I6;exports.IconComponent=zD;exports.InfiniteLoader=RL;exports.Language=Yv;exports.LogoutConfirmModal=NT;exports.NotitficationItem=CL;exports.PropTypes=As;exports.Q=J2;exports.SaasThemeProvider=SL;exports.StyleWrapper=Gv;exports.TranslationProvider=cL;exports.UnauthorizedPage=M6;exports.X_AUTO_CANCEL=ZI;exports._=F6;exports._assertThisInitialized=Sl;exports._extends=Pf;exports._extends$1=AL;exports._inheritsLoose=BT;exports._objectWithoutPropertiesLoose=zv;exports.activeStyles=sb;exports.axiosInstance=es;exports.clsx=wl;exports.color=mr;exports.commonjsGlobal=Di;exports.createCustomTheme=MT;exports.getAugmentedNamespace=SM;exports.getMessagingInWindow=M7;exports.getToken=L7;exports.handleErrorAxios=dT;exports.initializeApp=hP;exports.isCanceledError=nM;exports.lodashExports=nP;exports.login=cT;exports.logout=fT;exports.notify=iF;exports.objectWithoutPropertiesLoose=xM;exports.onMessage=F7;exports.pushError=Yd;exports.pushSuccess=Jv;exports.pushWarning=rF;exports.requestInterceptor=eM;exports.responseInterceptor=tM;exports.search=sM;exports.setFavicon=LT;exports.setShellBackdrop=aM;exports.translate=ki;exports.translationConfig=lL;exports.updateFavoriteItems=lb;exports.useAuth=oM;exports.useCustomTranslation=aL;exports.useTheme=xL;exports.useTranslation=uL;exports.useUserPermissions=hT;
1078
+ */function M7(t=J8()){return A7().then(e=>{if(!e)throw $i.create("unsupported-browser")},e=>{throw $i.create("indexed-db-unsupported")}),fb(ub(t),"messaging").getImmediate()}async function L7(t,e){return t=ub(t),BP(t,e)}function F7(t,e){return t=ub(t),I7(t,e)}R7();exports.AuthContext=Wv;exports.AuthProvider=iM;exports.CustomOpenList=jT;exports.CustomOpenListProvider=EL;exports.DateRangePicker=$6;exports.ERROR_MESSAGE=uT;exports.FavoriteMenu=b6;exports.GlobalMenu=I6;exports.IconComponent=zD;exports.InfiniteLoader=RL;exports.Language=Yv;exports.LogoutConfirmModal=NT;exports.NotitficationItem=CL;exports.PropTypes=As;exports.Q=J2;exports.SaasThemeProvider=SL;exports.StyleWrapper=Gv;exports.TranslationProvider=cL;exports.UnauthorizedPage=M6;exports.X_AUTO_CANCEL=ZI;exports._=F6;exports._assertThisInitialized=Sl;exports._extends=Pf;exports._extends$1=AL;exports._inheritsLoose=BT;exports._objectWithoutPropertiesLoose=zv;exports.activeStyles=sb;exports.axiosInstance=es;exports.clsx=wl;exports.color=mr;exports.commonjsGlobal=Di;exports.createCustomTheme=MT;exports.getAugmentedNamespace=SM;exports.getMessagingInWindow=M7;exports.getToken=L7;exports.handleErrorAxios=dT;exports.initializeApp=hP;exports.isCanceledError=nM;exports.lodashExports=nP;exports.login=cT;exports.logout=fT;exports.notify=iF;exports.objectWithoutPropertiesLoose=xM;exports.onMessage=F7;exports.pushError=Gd;exports.pushSuccess=Jv;exports.pushWarning=rF;exports.requestInterceptor=eM;exports.responseInterceptor=tM;exports.search=sM;exports.setFavicon=LT;exports.setShellBackdrop=aM;exports.translate=ki;exports.translationConfig=lL;exports.updateFavoriteItems=lb;exports.useAuth=oM;exports.useCustomTranslation=aL;exports.useTheme=xL;exports.useTranslation=uL;exports.useUserPermissions=hT;