@ukpc-lib/react 0.7.6 → 0.7.7

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.
@@ -2,62 +2,36 @@ var E9=require("./index.css");const it=require("react/jsx-runtime"),Q=require("r
2
2
  `;function O1({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return it.jsxs(it.Fragment,{children:[it.jsx("style",{type:"text/css",children:FI}),it.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:it.jsxs("div",{className:"modal-container",children:[it.jsx("h3",{className:"modal-title",children:"Log out"}),it.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),it.jsxs("div",{className:"modal-footer",children:[it.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),it.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Fi={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"};function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NI(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1(e){var t=NI(e,"string");return Jo(t)=="symbol"?t:String(t)}function e0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D1(r.key),r)}}function na(e,t,n){return t&&e0(e.prototype,t),n&&e0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ou(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zh(e,t){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zh(e,t)}function Dp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zh(e,t)}function Vd(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ou(e)}function Bs(e){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bs(e)}function $s(e,t,n){return t=D1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P1(e){if(Array.isArray(e))return e}function jI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _1(e,t){if(e){if(typeof e=="string")return t0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t0(e,t)}}function R1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BI(e){return P1(e)||jI(e)||_1(e)||R1()}function n0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $I={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},VI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||$I,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 e(this.logger,r0(r0({},{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 e(this.logger,n)}}]),e}(),Ms=new VI,Ol=function(){function e(){ta(this,e),this.observers={}}return na(e,[{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 s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),e}();function Jf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function i0(e){return e==null?"":""+e}function HI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Gm(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function o0(e,t,n){var r=Gm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function UI(e,t,n,r){var i=Gm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function Jh(e,t){var n=Gm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function WI(e,t,n){var r=Jh(e,n);return r!==void 0?r:Jh(t,n)}function I1(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):I1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function YI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return zI[t]}):e}var Pp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,GI=[" ",",","?","!",";"];function qI(e,t,n){t=t||"",n=n||"";var r=GI.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function Qh(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,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 s=2,l=r.slice(o,o+s).join(n),c=i[l];c===void 0&&r.length>o+s;)s++,l=r.slice(o,o+s).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var d=r.slice(o+s).join(n);return d?Qh(c,d,n):void 0}i=i[r[o]]}return i}}function a0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XI(e){var t=KI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function KI(){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 ZI=function(e){Dp(n,e);var t=XI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ta(this,n),i=t.call(this),Pp&&Ol.call(Ou(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 na(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,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];s&&typeof s!="string"&&(y=y.concat(s)),s&&typeof s=="string"&&(y=y.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(y=i.split("."));var p=Jh(this.data,y);return p||!d||typeof s!="string"?p:Qh(this.data&&this.data[i]&&this.data[i][o],s,c)}},{key:"addResource",value:function(i,o,s,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,y=[i,o];s&&(y=y.concat(d?s.split(d):s)),i.indexOf(".")>-1&&(y=i.split("."),l=o,o=y[1]),this.addNamespaces(o),o0(this.data,y,l),c.silent||this.emit("added",i,o,s,l)}},{key:"addResources",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in s)(typeof s[c]=="string"||Object.prototype.toString.apply(s[c])==="[object Array]")&&this.addResource(i,o,c,s[c],{silent:!0});l.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),l=s,s=o,o=y[1]),this.addNamespaces(o);var p=Jh(this.data,y)||{};l?I1(p,s,c):p=ch(ch({},p),s),o0(this.data,y,p),d.silent||this.emit("added",i,o,s)}},{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"?ch(ch({},{}),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),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Ol),A1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,r,i,o))}),n}};function s0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JI(e){var t=QI();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function QI(){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 u0={},l0=function(e){Dp(n,e);var t=JI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ta(this,n),i=t.call(this),Pp&&Ol.call(Ou(i)),HI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Ou(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Ms.create("translator"),i}return na(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 s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=s&&i.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!qI(i,s,l);if(d&&!y){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var S=i.split(s);(s!==l||s===l&&this.options.ns.indexOf(S[0])>-1)&&(c=S.shift()),i=S.join(l)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,o,s){var l=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Ai({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),p=y.key,S=y.namespaces,T=S[S.length-1],_=o.lng||this.language,R=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.toLowerCase()==="cimode"){if(R){var L=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(T).concat(L).concat(p),usedKey:p,exactUsedKey:p,usedLng:_,usedNS:T}:"".concat(T).concat(L).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:_,usedNS:T}:p}var I=this.resolve(i,o),U=I&&I.res,z=I&&I.usedKey||p,re=I&&I.exactUsedKey||p,Z=Object.prototype.toString.apply(U),de=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ye=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ye&&U&&ae&&de.indexOf(Z)<0&&!(typeof x=="string"&&Z==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Me=this.options.returnedObjectHandler?this.options.returnedObjectHandler(z,U,Ai(Ai({},o),{},{ns:S})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(I.res=Me,I):Me}if(d){var Ze=Z==="[object Array]",Ve=Ze?[]:{},Ye=Ze?re:z;for(var ot in U)if(Object.prototype.hasOwnProperty.call(U,ot)){var me="".concat(Ye).concat(d).concat(ot);Ve[ot]=this.translate(me,Ai(Ai({},o),{joinArrays:!1,ns:S})),Ve[ot]===me&&(Ve[ot]=U[ot])}U=Ve}}else if(ye&&typeof x=="string"&&Z==="[object Array]")U=U.join(x),U&&(U=this.extendTranslation(U,i,o,s));else{var Oe=!1,He=!1,Je=o.count!==void 0&&typeof o.count!="string",st=n.hasDefaultValue(o),De=Je?this.pluralResolver.getSuffix(_,o.count,o):"",xe=o["defaultValue".concat(De)]||o.defaultValue;!this.isValidLookup(U)&&st&&(Oe=!0,U=xe),this.isValidLookup(U)||(He=!0,U=p);var We=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ue=We&&He?void 0:U,Re=st&&xe!==U&&this.options.updateMissing;if(He||Oe||Re){if(this.logger.log(Re?"updateKey":"missingKey",_,T,p,Re?xe:U),d){var Le=this.resolve(p,Ai(Ai({},o),{},{keySeparator:!1}));Le&&Le.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 Xe=[],lt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&lt&&lt[0])for(var mt=0;mt<lt.length;mt++)Xe.push(lt[mt]);else this.options.saveMissingTo==="all"?Xe=this.languageUtils.toResolveHierarchy(o.lng||this.language):Xe.push(o.lng||this.language);var wt=function(Et,rt,$t){var Ht=st&&$t!==U?$t:Ue;l.options.missingKeyHandler?l.options.missingKeyHandler(Et,T,rt,Ht,Re,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(Et,T,rt,Ht,Re,o),l.emit("missingKey",Et,T,rt,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Je?Xe.forEach(function(vt){l.pluralResolver.getSuffixes(vt,o).forEach(function(Et){wt([vt],p+Et,o["defaultValue".concat(Et)]||xe)})}):wt(Xe,p,xe))}U=this.extendTranslation(U,i,o,I,s),He&&U===p&&this.options.appendNamespaceToMissingKey&&(U="".concat(T,":").concat(p)),(He||Oe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(p):p,Oe?U:void 0):U=this.options.parseMissingKeyHandler(U))}return c?(I.res=U,I):U}},{key:"extendTranslation",value:function(i,o,s,l,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Ai(Ai({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Ai(Ai({},s),{interpolation:Ai(Ai({},this.options.interpolation),s.interpolation)}));var y=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(y){var S=i.match(this.interpolator.nestingRegexp);p=S&&S.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Ai(Ai({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),y){var _=i.match(this.interpolator.nestingRegexp),R=_&&_.length;p<R&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,z=new Array(U),re=0;re<U;re++)z[re]=arguments[re];return c&&c[0]===z[0]&&!s.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(z[0]," in key: ").concat(o[0])),null):d.translate.apply(d,z.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var L=s.postProcess||this.options.postProcess,I=typeof L=="string"?[L]:L;return i!=null&&I&&I.length&&s.applyPostProcessor!==!1&&(i=A1.handle(I,i,o,this.options&&this.options.postProcessPassResolved?Ai({i18nResolved:l},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,d,y,p;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!o.isValidLookup(l)){var T=o.extractFromKey(S,s),_=T.key;c=_;var R=T.namespaces;o.options.fallbackNS&&(R=R.concat(o.options.fallbackNS));var L=s.count!==void 0&&typeof s.count!="string",I=L&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),U=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",z=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);R.forEach(function(re){o.isValidLookup(l)||(p=re,!u0["".concat(z[0],"-").concat(re)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(u0["".concat(z[0],"-").concat(re)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(z.join(", "),`" won't get resolved as namespace "`).concat(p,'" 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!!!")),z.forEach(function(Z){if(!o.isValidLookup(l)){y=Z;var de=[_];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(de,_,Z,re,s);else{var x;L&&(x=o.pluralResolver.getSuffix(Z,s.count,s));var ye="".concat(o.options.pluralSeparator,"zero");if(L&&(de.push(_+x),I&&de.push(_+ye)),U){var ae="".concat(_).concat(o.options.contextSeparator).concat(s.context);de.push(ae),L&&(de.push(ae+x),I&&de.push(ae+ye))}}for(var Me;Me=de.pop();)o.isValidLookup(l)||(d=Me,l=o.getResource(Z,re,Me,s))}}))})}}),{res:l,usedKey:c,exactUsedKey:d,usedLng:y,usedNS:p}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,l):this.resourceStore.getResource(i,o,s,l)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(Ol);function Ag(e){return e.charAt(0).toUpperCase()+e.slice(1)}var c0=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ms.create("languageUtils")}return na(e,[{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]=Ag(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]=Ag(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ag(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 s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),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),s=[],l=function(d){d&&(i.isSupportedCode(d)?s.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(c){s.indexOf(c)<0&&l(i.formatLanguageCode(c))}),s}}]),e}(),eA=[{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}],tA={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},nA=["v1","v2","v3"],f0={zero:0,one:1,two:2,few:3,many:4,other:5};function rA(){var e={};return eA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:tA[t.fc]}})}),e}var iA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.languageUtils=t,this.options=n,this.logger=Ms.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=rA()}return na(e,[{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(s,l){return f0[s]-f0[l]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,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)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!nA.includes(this.options.compatibilityJSON)}}]),e}();function d0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=WI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Qh(e,n,r),o===void 0&&(o=Qh(t,n,r))),o}var oA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return na(e,[{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:YI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?df(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?df(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?df(r.nestingPrefix):r.nestingPrefixEscaped||df("$t("),this.nestingSuffix=r.nestingSuffix?df(r.nestingSuffix):r.nestingSuffixEscaped||df(")"),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 s=this,l,c,d,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(L){return L.replace(/\$/g,"$$$$")}var S=function(I){if(I.indexOf(s.formatSeparator)<0){var U=h0(r,y,I,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(U,void 0,i,es(es(es({},o),r),{},{interpolationkey:I})):U}var z=I.split(s.formatSeparator),re=z.shift().trim(),Z=z.join(s.formatSeparator).trim();return s.format(h0(r,y,re,s.options.keySeparator,s.options.ignoreJSONStructure),Z,i,es(es(es({},o),r),{},{interpolationkey:re}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,_=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,R=[{regex:this.regexpUnescape,safeValue:function(I){return p(I)}},{regex:this.regexp,safeValue:function(I){return s.escapeValue?p(s.escape(I)):p(I)}}];return R.forEach(function(L){for(d=0;l=L.regex.exec(n);){var I=l[1].trim();if(c=S(I),c===void 0)if(typeof T=="function"){var U=T(n,l,o);c=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,I))c="";else if(_){c=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(I," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=i0(c));var z=L.safeValue(c);if(n=n.replace(l[0],z),_?(L.regex.lastIndex+=c.length,L.regex.lastIndex-=l[0].length):L.regex.lastIndex=0,d++,d>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,c;function d(T,_){var R=this.nestingOptionsSeparator;if(T.indexOf(R)<0)return T;var L=T.split(new RegExp("".concat(R,"[ ]*{"))),I="{".concat(L[1]);T=L[0],I=this.interpolate(I,c);var U=I.match(/'/g),z=I.match(/"/g);(U&&U.length%2===0&&!z||z.length%2!==0)&&(I=I.replace(/'/g,'"'));try{c=JSON.parse(I),_&&(c=es(es({},_),c))}catch(re){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),re),"".concat(T).concat(R).concat(I)}return delete c.defaultValue,T}for(;s=this.nestingRegexp.exec(n);){var y=[];c=es({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var S=s[1].split(this.formatSeparator).map(function(T){return T.trim()});s[1]=S.shift(),y=S,p=!0}if(l=r(d.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=i0(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),p&&(l=y.reduce(function(T,_){return i.format(T,_,o.lng,es(es({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n}}]),e}();function p0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var l=s.split(":"),c=BI(l),d=c[0],y=c.slice(1),p=y.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=p),p==="false"&&(n[d.trim()]=!1),p==="true"&&(n[d.trim()]=!0),isNaN(p)||(n[d.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}function hf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),l=t[s];return l||(l=e(i,o),t[s]=l),l(r)}}var sA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=Ms.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Su({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Su(Su({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Su({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Su({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Su({},r));return function(o){return i.format(o)}})},this.init(t)}return na(e,[{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()]=hf(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r.split(this.formatSeparator),c=l.reduce(function(d,y){var p=aA(y),S=p.formatName,T=p.formatOptions;if(o.formats[S]){var _=d;try{var R=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=R.locale||R.lng||s.locale||s.lng||i;_=o.formats[S](d,L,Su(Su(Su({},T),s),R))}catch(I){o.logger.warn(I)}return _}else o.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),e}();function g0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function v0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uA(e){var t=lA();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function lA(){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 cA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var fA=function(e){Dp(n,e);var t=uA(n);function n(r,i,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ta(this,n),s=t.call(this),Pp&&Ol.call(Ou(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Ms.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return na(n,[{key:"queueLoad",value:function(i,o,s,l){var c=this,d={},y={},p={},S={};return i.forEach(function(T){var _=!0;o.forEach(function(R){var L="".concat(T,"|").concat(R);!s.reload&&c.store.hasResourceBundle(T,R)?c.state[L]=2:c.state[L]<0||(c.state[L]===1?y[L]===void 0&&(y[L]=!0):(c.state[L]=1,_=!1,y[L]===void 0&&(y[L]=!0),d[L]===void 0&&(d[L]=!0),S[R]===void 0&&(S[R]=!0)))}),_||(p[T]=!0)}),(Object.keys(d).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(y),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,o,s){var l=i.split("|"),c=l[0],d=l[1];o&&this.emit("failedLoading",c,d,o),s&&this.store.addResourceBundle(c,d,s),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(p){UI(p.loaded,[c],d),cA(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(S){y[S]||(y[S]={});var T=p.loaded[S];T.length&&T.forEach(function(_){y[S][_]===void 0&&(y[S][_]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=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:s,tried:c,wait:d,callback:y});return}this.readingCalls++;var p=function(R,L){if(l.readingCalls--,l.waitingReads.length>0){var I=l.waitingReads.shift();l.read(I.lng,I.ns,I.fcName,I.tried,I.wait,I.callback)}if(R&&L&&c<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,s,c+1,d*2,y)},d);return}y(R,L)},S=this.backend[s].bind(this.backend);if(S.length===2){try{var T=S(i,o);T&&typeof T.then=="function"?T.then(function(_){return p(null,_)}).catch(p):p(null,T)}catch(_){p(_)}return}return S(i,o,p)}},{key:"prepareLoading",value:function(i,o){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=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."),c&&c();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,l,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(y){s.loadOne(y)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),c=l[0],d=l[1];this.read(c,d,"read",void 0,void 0,function(y,p){y&&o.logger.warn("".concat(s,"loading namespace ").concat(d," for language ").concat(c," failed"),y),!y&&p&&o.logger.log("".concat(s,"loaded namespace ").concat(d," for language ").concat(c),p),o.loaded(i,y,p)})}},{key:"saveMissing",value:function(i,o,s,l,c){var d=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(s,'" 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(!(s==null||s==="")){if(this.backend&&this.backend.create){var p=v0(v0({},d),{},{isUpdate:c}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var T;S.length===5?T=S(i,o,s,l,p):T=S(i,o,s,l),T&&typeof T.then=="function"?T.then(function(_){return y(null,_)}).catch(y):y(null,T)}catch(_){y(_)}else S(i,o,s,l,y,p)}!i||!i[0]||this.store.addResource(i[0],o,s,l)}}}]),n}(Ol);function m0(){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(t){var n={};if(Jo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Jo(t[2])==="object"||Jo(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function y0(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function b0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dA(e){var t=hA();return function(){var r=Bs(e),i;if(t){var o=Bs(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function hA(){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 fh(){}function pA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var ep=function(e){Dp(n,e);var t=dA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ta(this,n),r=t.call(this),Pp&&Ol.call(Ou(r)),r.options=y0(i),r.services={},r.logger=Ms,r.modules={external:[]},pA(Ou(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Vd(r,Ou(r));setTimeout(function(){r.init(i,o)},0)}return r}return na(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=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 l=m0();this.options=Ps(Ps(Ps({},l),this.options),y0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ps(Ps({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function c(I){return I?typeof I=="function"?new I:I:null}if(!this.options.isClone){this.modules.logger?Ms.init(c(this.modules.logger),this.options):Ms.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=sA);var y=new c0(this.options);this.store=new ZI(this.options.resources,this.options);var p=this.services;p.logger=Ms,p.resourceStore=this.store,p.languageUtils=y,p.pluralResolver=new iA(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(p.formatter=c(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new oA(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new fA(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(I){for(var U=arguments.length,z=new Array(U>1?U-1:0),re=1;re<U;re++)z[re-1]=arguments[re];i.emit.apply(i,[I].concat(z))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new l0(this.services,this.options),this.translator.on("*",function(I){for(var U=arguments.length,z=new Array(U>1?U-1:0),re=1;re<U;re++)z[re-1]=arguments[re];i.emit.apply(i,[I].concat(z))}),this.modules.external.forEach(function(I){I.init&&I.init(i)})}if(this.format=this.options.interpolation.format,s||(s=fh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var T=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];T.forEach(function(I){i[I]=function(){var U;return(U=i.store)[I].apply(U,arguments)}});var _=["addResource","addResources","addResourceBundle","removeResourceBundle"];_.forEach(function(I){i[I]=function(){var U;return(U=i.store)[I].apply(U,arguments),i}});var R=Jf(),L=function(){var U=function(re,Z){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),R.resolve(Z),s(re,Z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?L():setTimeout(L,0),R}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fh,l=s,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var d=[],y=function(T){if(T){var _=o.services.languageUtils.toResolveHierarchy(T);_.forEach(function(R){d.indexOf(R)<0&&d.push(R)})}};if(c)y(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(S){return y(S)})}this.options.preload&&this.options.preload.forEach(function(S){return y(S)}),this.services.backendConnector.load(d,this.options.ns,function(S){!S&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(S)})}else l(null)}},{key:"reloadResources",value:function(i,o,s){var l=Jf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=fh),this.services.backendConnector.reload(i,o,function(c){l.resolve(),s(c)}),l}},{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"&&A1.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 s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var l=Jf();this.emit("languageChanging",i);var c=function(S){s.language=S,s.languages=s.services.languageUtils.toResolveHierarchy(S),s.resolvedLanguage=void 0,s.setResolvedLanguage(S)},d=function(S,T){T?(c(T),s.translator.changeLanguage(T),s.isLanguageChangingTo=void 0,s.emit("languageChanged",T),s.logger.log("languageChanged",T)):s.isLanguageChangingTo=void 0,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(S,function(){return s.t.apply(s,arguments)})},y=function(S){!i&&!S&&s.services.languageDetector&&(S=[]);var T=typeof S=="string"?S:s.services.languageUtils.getBestMatchFromCodes(S);T&&(s.language||c(T),s.translator.language||s.translator.changeLanguage(T),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(T)),s.loadResources(T,function(_){d(_,T)})};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),l}},{key:"getFixedT",value:function(i,o,s){var l=this,c=function d(y,p){var S;if(Jo(p)!=="object"){for(var T=arguments.length,_=new Array(T>2?T-2:0),R=2;R<T;R++)_[R-2]=arguments[R];S=l.options.overloadTranslationOptionHandler([y,p].concat(_))}else S=Ps({},p);S.lng=S.lng||d.lng,S.lngs=S.lngs||d.lngs,S.ns=S.ns||d.ns,S.keyPrefix=S.keyPrefix||s||d.keyPrefix;var L=l.options.keySeparator||".",I;return S.keyPrefix&&Array.isArray(y)?I=y.map(function(U){return"".concat(S.keyPrefix).concat(L).concat(U)}):I=S.keyPrefix?"".concat(S.keyPrefix).concat(L).concat(y):y,l.t(I,S)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=s,c}},{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,s=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 l=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var y=function(T,_){var R=o.services.backendConnector.state["".concat(T,"|").concat(_)];return R===-1||R===2};if(s.precheck){var p=s.precheck(this,y);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(l,i)&&(!c||y(d,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,l=Jf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){s.options.ns.indexOf(c)<0&&s.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),o&&o(c)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Jf();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],c=i.filter(function(d){return l.indexOf(d)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(d){s.resolve(),o&&o(d)}),s):(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"],s=this.services&&this.services.languageUtils||new c0(m0());return o.indexOf(s.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]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fh,l=Ps(Ps(Ps({},this.options),o),{isClone:!0}),c=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(c.logger=c.logger.clone(o));var d=["store","services","language"];return d.forEach(function(y){c[y]=i[y]}),c.services=Ps({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new l0(c.services,c.options),c.translator.on("*",function(y){for(var p=arguments.length,S=new Array(p>1?p-1:0),T=1;T<p;T++)S[T-1]=arguments[T];c.emit.apply(c,[y].concat(S))}),c.init(l,s),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Ol);$s(ep,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ep(e,t)});var li=ep.createInstance();li.createInstance=ep.createInstance;li.createInstance;li.dir;li.init;li.loadResources;li.reloadResources;li.use;li.changeLanguage;li.getFixedT;var M1=li.t;li.exists;li.setDefaultNamespace;li.hasLoadedNamespace;li.loadNamespaces;li.loadLanguages;const L1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},F1=e=>{window.location.href=`${e}/authentication/login`},N1=e=>{window.location.href=`${e}/authentication/logout`},Ls=II.create({withCredentials:!0});let Mg=!1,$v=[];const w0=e=>{$v.forEach(t=>{e?t.reject(e):t.resolve()}),$v=[]};function j1(e,t){var o,s,l,c,d,y,p;const n=e.config,r=(s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage,i=r===L1.TOKEN_EXPIRED;return((l=e.response)==null?void 0:l.status)===401&&i&&!n._retry?Mg?new Promise((S,T)=>{$v.push({resolve:S,reject:T})}).then(()=>Ls(n)).catch(S=>Promise.reject(S)):(n._retry=!0,Mg=!0,Ls.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(w0(null),Ls(n))).catch(S=>(w0(S),Promise.reject(S))).finally(()=>{Mg=!1})):((c=e.response)==null?void 0:c.status)===401&&!i?F1(window.env.AUTHEN_DOMAIN):(((d=e.response)==null?void 0:d.status)===403?(y=t==null?void 0:t.handle403)==null||y.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Ap(M1(`${r||"Something went wrong!"}`)),(p=t==null?void 0:t.handleOtherError)==null||p.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const gA=Ls.interceptors.response.use(e=>e,async e=>j1(e)),B1=Q.createContext({}),vA=({children:e})=>{const[t,n]=Q.useState(!0),[r,i]=Q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!0)};return it.jsx(B1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var $1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},x0=Q.createContext&&Q.createContext($1),mA=["attr","size","title"];function yA(e,t){if(e==null)return{};var n=bA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}function S0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S0(Object(n),!0).forEach(function(r){wA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wA(e,t,n){return t=xA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xA(e){var t=SA(e,"string");return typeof t=="symbol"?t:String(t)}function SA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V1(e){return e&&e.map((t,n)=>Q.createElement(t.tag,np({key:n},t.attr),V1(t.child)))}function _p(e){return t=>Q.createElement(TA,tp({attr:np({},e.attr)},t),V1(e.child))}function TA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=yA(e,mA),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),Q.createElement("svg",tp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:np(np({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&Q.createElement("title",null,o),e.children)};return x0!==void 0?Q.createElement(x0.Consumer,null,n=>t(n)):t($1)}function CA(e){return _p({tag:"svg",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:[]}]})(e)}function EA(e){return _p({tag:"svg",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:[]}]})(e)}function Lg(e){return e+" !important"}const H1=e=>{const t={...e.colors};return _c.createTheme({palette:{primary:{main:t.primary300,contrastText:t.textPrimary},secondary:{main:t.secondary,contrastText:t.textPrimary},warning:{main:t.warning,contrastText:t.textPrimary},error:{main:t.danger,contrastText:t.textPrimary}},typography:{fontFamily:"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"}},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:t.primary300,color:t.buttonText,"&:hover":{backgroundColor:t.buttonHover||t.primary300},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"contained",color:"error"},style:{color:t.white}},{props:{variant:"confirm"},style:{backgroundColor:t.danger,color:t.white,"&:hover":{backgroundColor:t.dangerDark},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:t.grey300,color:t.textPrimary,"&:hover":{backgroundColor:t.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:t.primary500,border:"1px solid",borderColor:t.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:t.danger,border:"1px solid",borderColor:t.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:t.appBarBgColor,color:t.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:t.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:t.grey100},"&.Mui-selected":{backgroundColor:t.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lg(t.primary200),"&:hover":{backgroundColor:Lg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:CA,next:EA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Lg(t.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:t.success,backgroundColor:t.successLight},colorWarning:{color:t.warning,backgroundColor:t.warningLight},colorError:{color:t.danger,backgroundColor:t.dangerLight},colorSecondary:{color:t.linkPrimary,backgroundColor:t.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:t.grey600},"& .detail-icon":{stroke:t.grey600},color:t.grey400,"&.Mui-selected":{color:t.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:t.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:t.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:t.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:t.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:t.grey600}},"& .MuiFormLabel-asterisk":{color:t.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 ${t.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:t.grey600,"&.Mui-checked":{color:t.success},"&.Mui-disabled":{color:t.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:t.grey600,color:t.white,"& .MuiTooltip-arrow":{color:t.grey600}}}}}})};function kA(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Fi[i]})}),n}function OA(e){var s,l;const{data:t,isFetching:n}=Cd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(c=>c.json()):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0}),r=kA(Fi,(s=t==null?void 0:t.theme)==null?void 0:s.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=H1({colors:r}),o=(l=t==null?void 0:t.theme)==null?void 0:l.image;return{colors:r,theme:i,logo:o,isFetching:n}}const U1=Q.createContext({}),DA=()=>Q.useContext(U1),PA=e=>{var o;const{children:t,brandTheme:n}=e,r=OA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return it.jsx(U1.Provider,{value:r,children:it.jsx(_c.ThemeProvider,{theme:i,children:t})})},_A=`*,: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}
4
4
  `;function W1({children:e,styles:t=[],...n}){return it.jsxs("div",{...n,children:[[_A,...t].map((r,i)=>it.jsx("style",{type:"text/css",children:r},i)),e]})}var z1=[],RA=z1.forEach,IA=z1.slice;function AA(e){return RA.call(IA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var T0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,MA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!T0.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!T0.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},C0={create:function(t,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=MA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),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(t){this.create(t,"",-1)}},LA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=C0.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&C0.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},FA={name:"querystring",lookup:function(t){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("&"),s=0;s<o.length;s++){var l=o[s].indexOf("=");if(l>0){var c=o[s].substring(0,l);c===t.lookupQuerystring&&(n=o[s].substring(l+1))}}}return n}},Qf=null,E0=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qf=!1}return Qf},NA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&E0()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&E0()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},ed=null,k0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{ed=!1}return ed},jA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&k0()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&k0()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},BA={name:"navigator",lookup:function(t){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}},$A={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},VA={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},HA={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.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]}};function UA(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Y1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return na(e,[{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=AA(r,this.options||{},UA()),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(LA),this.addDetector(FA),this.addDetector(NA),this.addDetector(jA),this.addDetector(BA),this.addDetector($A),this.addDetector(VA),this.addDetector(HA)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{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 s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),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)}))}}]),e}();Y1.type="languageDetector";function qm(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const WA=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));var Ko=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function YA(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var O0={};function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&O0[t[0]]||(typeof t[0]=="string"&&(O0[t[0]]=new Date),YA.apply(void 0,t))}var G1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function D0(e,t,n){e.loadNamespaces(t,G1(e,n))}function P0(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,G1(e,r))}function GA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(c,d){var y=t.services.backendConnector.state["".concat(c,"|").concat(d)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function qA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Vv("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):GA(e,t,n)}var XA=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,KA={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ZA=function(t){return KA[t]},JA=function(t){return t.replace(XA,ZA)};function _0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function R0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Hv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:JA};function QA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hv=R0(R0({},Hv),e)}function eM(){return Hv}var q1;function tM(e){q1=e}function nM(){return q1}var rM={type:"3rdParty",init:function(t){QA(t.options.react),tM(t)}},X1=Q.createContext(),iM=function(){function e(){ta(this,e),this.usedNamespaces={}}return na(e,[{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)}}]),e}();function oM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(y){d=!0,i=y}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function aM(e,t){return P1(e)||oM(e,t)||_1(e,t)||R1()}function I0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I0(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sM=function(t,n){var r=Q.useRef();return Q.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function K1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=Q.useContext(X1)||{},i=r.i18n,o=r.defaultNS,s=n||i||nM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iM),!s){Vv("You will need to pass in an i18next instance by using initReactI18next");var l=function(ae,Me){return typeof Me=="string"?Me:Me&&Jo(Me)==="object"&&typeof Me.defaultValue=="string"?Me.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&s.options.react.wait!==void 0&&Vv("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Fg(Fg(Fg({},eM()),s.options.react),t),y=d.useSuspense,p=d.keyPrefix,S=e||o||s.options&&s.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(S);var T=(s.isInitialized||s.initializedStoreOnce)&&S.every(function(ye){return qA(ye,s,d)});function _(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?S:S[0],p)}var R=Q.useState(_),L=aM(R,2),I=L[0],U=L[1],z=S.join();t.lng&&(z="".concat(t.lng).concat(z));var re=sM(z),Z=Q.useRef(!0);Q.useEffect(function(){var ye=d.bindI18n,ae=d.bindI18nStore;Z.current=!0,!T&&!y&&(t.lng?P0(s,t.lng,S,function(){Z.current&&U(_)}):D0(s,S,function(){Z.current&&U(_)})),T&&re&&re!==z&&Z.current&&U(_);function Me(){Z.current&&U(_)}return ye&&s&&s.on(ye,Me),ae&&s&&s.store.on(ae,Me),function(){Z.current=!1,ye&&s&&ye.split(" ").forEach(function(Ze){return s.off(Ze,Me)}),ae&&s&&ae.split(" ").forEach(function(Ze){return s.store.off(Ze,Me)})}},[s,z]);var de=Q.useRef(!0);Q.useEffect(function(){Z.current&&!de.current&&U(_),de.current=!1},[s,p]);var x=[I,s,T];if(x.t=I,x.i18n=s,x.ready=T,T||!T&&!y)return x;throw new Promise(function(ye){t.lng?P0(s,t.lng,S,function(){return ye()}):D0(s,S,function(){return ye()})})}function uM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=Q.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return Q.createElement(X1.Provider,{value:i},r)}var Z1=[],lM=Z1.forEach,cM=Z1.slice;function fM(e){return lM.call(cM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function dM(e){return e?typeof e=="function"?new e:e:null}function hM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function A0(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var J1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ta(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return na(e,[{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=fM(i,this.options||{},hM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,l){r.backends[l]=r.backends[l]||dM(s),r.backends[l].init(n,r.options.backendOptions&&r.options.backendOptions[l]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,s=this.backends.length,l=function d(y){if(y>=s)return i(new Error("non of the backend loaded data",!0));var p=y===s-1,S=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,T=o.backends[y];T.read?A0(T,n,r,function(_,R,L){if(!_&&R&&Object.keys(R).length>S){if(i(null,R,y),c(y-1,R),T.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(L&&o.options.refreshExpirationTime&&L+o.options.refreshExpirationTime>Date.now())return;var I=o.backends[y+1];I&&I.read&&A0(I,n,r,function(U,z){U||z&&(Object.keys(z).length<=S||(c(y,z),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,z)))})}}else d(y+1)}):d(y+1)},c=function d(y,p){if(!(y<0)){var S=o.backends[y];S.save&&S.save(n,r,p),d(y-1,p)}};l(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var d=c.create.bind(c);if(d.length<6){try{var y;d.length===5?y=d(n,r,i,o,l):y=d(n,r,i,o),y&&typeof y.then=="function"?y.then(function(p){return s(null,p)}).catch(s):s(null,y)}catch(p){s(p)}return}d(n,r,i,o,s,l)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(p){i.read(y,p,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(y," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(y),T),i.loaded("".concat(y,"|").concat(p),S,T)})})})}}}]),e}();J1.type="backend";function Uv(e){"@babel/helpers - typeof";return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uv(e)}function Q1(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Uv(XMLHttpRequest))==="object"}function pM(e){return!!e&&typeof e.then=="function"}function gM(e){return pM(e)?e:Promise.resolve(e)}function vM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wv={exports:{}},dh={exports:{}},M0;function mM(){return M0||(M0=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ko<"u"&&Ko,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l=typeof o<"u"&&o||typeof self<"u"&&self||typeof l<"u"&&l,c={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function d(me){return me&&DataView.prototype.isPrototypeOf(me)}if(c.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(me){return me&&y.indexOf(Object.prototype.toString.call(me))>-1};function S(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(me)||me==="")throw new TypeError('Invalid character in header field name: "'+me+'"');return me.toLowerCase()}function T(me){return typeof me!="string"&&(me=String(me)),me}function _(me){var Oe={next:function(){var He=me.shift();return{done:He===void 0,value:He}}};return c.iterable&&(Oe[Symbol.iterator]=function(){return Oe}),Oe}function R(me){this.map={},me instanceof R?me.forEach(function(Oe,He){this.append(He,Oe)},this):Array.isArray(me)?me.forEach(function(Oe){this.append(Oe[0],Oe[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(Oe){this.append(Oe,me[Oe])},this)}R.prototype.append=function(me,Oe){me=S(me),Oe=T(Oe);var He=this.map[me];this.map[me]=He?He+", "+Oe:Oe},R.prototype.delete=function(me){delete this.map[S(me)]},R.prototype.get=function(me){return me=S(me),this.has(me)?this.map[me]:null},R.prototype.has=function(me){return this.map.hasOwnProperty(S(me))},R.prototype.set=function(me,Oe){this.map[S(me)]=T(Oe)},R.prototype.forEach=function(me,Oe){for(var He in this.map)this.map.hasOwnProperty(He)&&me.call(Oe,this.map[He],He,this)},R.prototype.keys=function(){var me=[];return this.forEach(function(Oe,He){me.push(He)}),_(me)},R.prototype.values=function(){var me=[];return this.forEach(function(Oe){me.push(Oe)}),_(me)},R.prototype.entries=function(){var me=[];return this.forEach(function(Oe,He){me.push([He,Oe])}),_(me)},c.iterable&&(R.prototype[Symbol.iterator]=R.prototype.entries);function L(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function I(me){return new Promise(function(Oe,He){me.onload=function(){Oe(me.result)},me.onerror=function(){He(me.error)}})}function U(me){var Oe=new FileReader,He=I(Oe);return Oe.readAsArrayBuffer(me),He}function z(me){var Oe=new FileReader,He=I(Oe);return Oe.readAsText(me),He}function re(me){for(var Oe=new Uint8Array(me),He=new Array(Oe.length),Je=0;Je<Oe.length;Je++)He[Je]=String.fromCharCode(Oe[Je]);return He.join("")}function Z(me){if(me.slice)return me.slice(0);var Oe=new Uint8Array(me.byteLength);return Oe.set(new Uint8Array(me)),Oe.buffer}function de(){return this.bodyUsed=!1,this._initBody=function(me){this.bodyUsed=this.bodyUsed,this._bodyInit=me,me?typeof me=="string"?this._bodyText=me:c.blob&&Blob.prototype.isPrototypeOf(me)?this._bodyBlob=me:c.formData&&FormData.prototype.isPrototypeOf(me)?this._bodyFormData=me:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)?this._bodyText=me.toString():c.arrayBuffer&&c.blob&&d(me)?(this._bodyArrayBuffer=Z(me.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(me)||p(me))?this._bodyArrayBuffer=Z(me):this._bodyText=me=Object.prototype.toString.call(me):this._bodyText="",this.headers.get("content-type")||(typeof me=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var me=L(this);if(me)return me;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 me=L(this);return me||(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(U)}),this.text=function(){var me=L(this);if(me)return me;if(this._bodyBlob)return z(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(re(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Me)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ye(me){var Oe=me.toUpperCase();return x.indexOf(Oe)>-1?Oe:me}function ae(me,Oe){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Oe=Oe||{};var He=Oe.body;if(me instanceof ae){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,Oe.headers||(this.headers=new R(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!He&&me._bodyInit!=null&&(He=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=Oe.credentials||this.credentials||"same-origin",(Oe.headers||!this.headers)&&(this.headers=new R(Oe.headers)),this.method=ye(Oe.method||this.method||"GET"),this.mode=Oe.mode||this.mode||null,this.signal=Oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&He)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(He),(this.method==="GET"||this.method==="HEAD")&&(Oe.cache==="no-store"||Oe.cache==="no-cache")){var Je=/([?&])_=[^&]*/;if(Je.test(this.url))this.url=this.url.replace(Je,"$1_="+new Date().getTime());else{var st=/\?/;this.url+=(st.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Me(me){var Oe=new FormData;return me.trim().split("&").forEach(function(He){if(He){var Je=He.split("="),st=Je.shift().replace(/\+/g," "),De=Je.join("=").replace(/\+/g," ");Oe.append(decodeURIComponent(st),decodeURIComponent(De))}}),Oe}function Ze(me){var Oe=new R,He=me.replace(/\r?\n[\t ]+/g," ");return He.split("\r").map(function(Je){return Je.indexOf(`
5
- `)===0?Je.substr(1,Je.length):Je}).forEach(function(Je){var st=Je.split(":"),De=st.shift().trim();if(De){var xe=st.join(":").trim();Oe.append(De,xe)}}),Oe}de.call(ae.prototype);function Ve(me,Oe){if(!(this instanceof Ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Oe||(Oe={}),this.type="default",this.status=Oe.status===void 0?200:Oe.status,this.ok=this.status>=200&&this.status<300,this.statusText=Oe.statusText===void 0?"":""+Oe.statusText,this.headers=new R(Oe.headers),this.url=Oe.url||"",this._initBody(me)}de.call(Ve.prototype),Ve.prototype.clone=function(){return new Ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},Ve.error=function(){var me=new Ve(null,{status:0,statusText:""});return me.type="error",me};var Ye=[301,302,303,307,308];Ve.redirect=function(me,Oe){if(Ye.indexOf(Oe)===-1)throw new RangeError("Invalid status code");return new Ve(null,{status:Oe,headers:{location:me}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(Oe,He){this.message=Oe,this.name=He;var Je=Error(Oe);this.stack=Je.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function ot(me,Oe){return new Promise(function(He,Je){var st=new ae(me,Oe);if(st.signal&&st.signal.aborted)return Je(new s.DOMException("Aborted","AbortError"));var De=new XMLHttpRequest;function xe(){De.abort()}De.onload=function(){var Ue={status:De.status,statusText:De.statusText,headers:Ze(De.getAllResponseHeaders()||"")};Ue.url="responseURL"in De?De.responseURL:Ue.headers.get("X-Request-URL");var Re="response"in De?De.response:De.responseText;setTimeout(function(){He(new Ve(Re,Ue))},0)},De.onerror=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},De.ontimeout=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},De.onabort=function(){setTimeout(function(){Je(new s.DOMException("Aborted","AbortError"))},0)};function We(Ue){try{return Ue===""&&l.location.href?l.location.href:Ue}catch{return Ue}}De.open(st.method,We(st.url),!0),st.credentials==="include"?De.withCredentials=!0:st.credentials==="omit"&&(De.withCredentials=!1),"responseType"in De&&(c.blob?De.responseType="blob":c.arrayBuffer&&st.headers.get("Content-Type")&&st.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(De.responseType="arraybuffer")),Oe&&typeof Oe.headers=="object"&&!(Oe.headers instanceof R)?Object.getOwnPropertyNames(Oe.headers).forEach(function(Ue){De.setRequestHeader(Ue,T(Oe.headers[Ue]))}):st.headers.forEach(function(Ue,Re){De.setRequestHeader(Re,Ue)}),st.signal&&(st.signal.addEventListener("abort",xe),De.onreadystatechange=function(){De.readyState===4&&st.signal.removeEventListener("abort",xe)}),De.send(typeof st._bodyInit>"u"?null:st._bodyInit)})}return ot.polyfill=!0,l.fetch||(l.fetch=ot,l.Headers=R,l.Request=ae,l.Response=Ve),s.Headers=R,s.Request=ae,s.Response=Ve,s.fetch=ot,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(dh,dh.exports)),dh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ko<"u"&&Ko.fetch?n=Ko.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof vM<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||mM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Wv,Wv.exports);var eT=Wv.exports;const tT=Bc(eT),L0=LI({__proto__:null,default:tT},[eT]);function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function N0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(r){yM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yM(e,t,n){return t=bM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bM(e){var t=wM(e,"string");return Rc(t)=="symbol"?t:String(t)}function wM(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}var Du;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Du=global.fetch:typeof window<"u"&&window.fetch?Du=window.fetch:Du=fetch);var Ed;Q1()&&(typeof global<"u"&&global.XMLHttpRequest?Ed=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ed=window.XMLHttpRequest));var rp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?rp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(rp=window.ActiveXObject));!Du&&L0&&!Ed&&!rp&&(Du=tT||L0);typeof Du!="function"&&(Du=void 0);var zv=function(t,n){if(n&&Rc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},j0=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Du(t,n).then(o).catch(r)},B0=!1,xM=function(t,n,r,i){t.queryStringParams&&(n=zv(n,t.queryStringParams));var o=N0({},typeof t.customHeaders=="function"?t.customHeaders():t.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 s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=N0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},B0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{j0(n,l,i,c)}catch(d){if(!s||Object.keys(s).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(s).forEach(function(y){delete l[y]}),j0(n,l,i,c),B0=!0}catch(y){i(y)}}},SM=function(t,n,r,i){r&&Rc(r)==="object"&&(r=zv("",r).slice(1)),t.queryStringParams&&(n=zv(n,t.queryStringParams));try{var o;Ed?o=new Ed:o=new rp("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var l in s)o.setRequestHeader(l,s[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},TM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Du&&n.indexOf("file:")!==0)return xM(t,n,r,i);if(Q1()||typeof ActiveXObject=="function")return SM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kd(e)}function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(r){nT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rT(r.key),r)}}function EM(e,t,n){return t&&V0(e.prototype,t),n&&V0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nT(e,t,n){return t=rT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rT(e){var t=kM(e,"string");return kd(t)=="symbol"?t:String(t)}function kM(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OM=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 nT({},r,i||"")},parseLoadPayload:function(n,r){},request:TM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},iT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return EM(e,[{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=Ng(Ng(Ng({},OM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{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,s){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=gM(c),c.then(function(d){if(!d)return s(null,{});var y=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(y,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&y&&y.message&&y.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+y.message,!0);if(y)return r(y,!1);var S,T;try{typeof p.data=="string"?S=s.options.parse(p.data,i,o):S=p.data}catch{T="failed parsing "+n+" to json"}if(T)return r(T,!1);r(null,S)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,y=[],p=[];n.forEach(function(S){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(S,r));var _=l.services.interpolator.interpolate(T,{lng:S,ns:r});l.options.request(l.options,_,c,function(R,L){d+=1,y.push(R),p.push(L),d===n.length&&typeof s=="function"&&s(y,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(p){i.read(y,p,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(y," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(y),T),i.loaded("".concat(y,"|").concat(p),S,T)})})})}}}]),e}();iT.type="backend";var Xm=(e=>(e.en="en",e.de="de",e))(Xm||{});const DM={en:"English",de:"German"};li.use(J1).use(rM).use(Y1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(DM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[iT],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});const PM=e=>{const t=Cd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},_M=e=>{const t=Cd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Km=Q.createContext({}),RM=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=PM({axiosInstance:r,baseUrl:n}),s=_M({axiosInstance:r,baseUrl:n});function l(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return it.jsx(Km.Provider,{value:{user:o==null?void 0:o.data,login:l,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},IM=()=>Q.useContext(Km);function AM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}function MM(){const[e,t]=Q.useState();return Q.useEffect(()=>{const n=localStorage.getItem("language");t(n||Xm.en)},[]),{language:e,setLanguage:t}}const oT=Q.createContext({}),LM=()=>Q.useContext(oT),FM=li,NM=M1,jM=()=>K1(),BM=({children:e})=>{const t=MM();return it.jsx(oT.Provider,{value:t,children:it.jsx(uM,{i18n:li,children:e})})};var ip={exports:{}};/**
6
- * @license
7
- * Lodash <https://lodash.com/>
8
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
9
- * Released under MIT license <https://lodash.com/license>
10
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
11
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
12
- */ip.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,y="__lodash_placeholder__",p=1,S=2,T=4,_=1,R=2,L=1,I=2,U=4,z=8,re=16,Z=32,de=64,x=128,ye=256,ae=512,Me=30,Ze="...",Ve=800,Ye=16,ot=1,me=2,Oe=3,He=1/0,Je=9007199254740991,st=17976931348623157e292,De=0/0,xe=4294967295,We=xe-1,Ue=xe>>>1,Re=[["ary",x],["bind",L],["bindKey",I],["curry",z],["curryRight",re],["flip",ae],["partial",Z],["partialRight",de],["rearg",ye]],Le="[object Arguments]",Xe="[object Array]",lt="[object AsyncFunction]",mt="[object Boolean]",wt="[object Date]",vt="[object DOMException]",Et="[object Error]",rt="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",br="[object Null]",Kn="[object Object]",kn="[object Promise]",ji="[object Proxy]",Pr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",Rn="[object WeakSet]",ci="[object ArrayBuffer]",ln="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",_r="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",wr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Po=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,fi=RegExp(ir.source),Hi=RegExp(Zt.source),In=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,di=/<%=([\s\S]+?)%>/g,hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(xr.source),fn=/^\s+/,Si=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,_o=/\\(\\)?/g,Ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,Ci=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,Ei=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,Ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ar=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Mr="\\ufe20-\\ufe2f",Tr="\\u20d0-\\u20ff",An=vn+Mr+Tr,vi="\\u2700-\\u27bf",Lr="a-z\\xdf-\\xf6\\xf8-\\xff",ei="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ti="\\u2000-\\u206f",ni=" \\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",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",Cr=ei+Jn+ti+ni,fr="['’]",Ro="["+Wn+"]",Wi="["+Cr+"]",Fr="["+An+"]",E="\\d+",j="["+vi+"]",q="["+Lr+"]",ne="[^"+Wn+Cr+E+vi+Lr+Ui+"]",Pe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Fr+"|"+Pe+")",Fe="[^"+Wn+"]",tt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Ui+"]",bt="\\u200d",Ut="(?:"+q+"|"+ne+")",Qn="(?:"+Tt+"|"+ne+")",zn="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",Nr=be+"?",or="["+_n+"]?",zi="(?:"+bt+"(?:"+[Fe,tt,yt].join("|")+")"+or+Nr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=or+Nr+zi,Io="(?:"+[j,tt,yt].join("|")+")"+jr,Vs="(?:"+[Fe+Fr+"?",Fr,tt,yt,Ro].join("|")+")",Aa=RegExp(fr,"g"),Ma=RegExp(Fr,"g"),La=RegExp(Pe+"(?="+Pe+")|"+Vs+jr,"g"),Fa=RegExp([Tt+"?"+q+"+"+zn+"(?="+[Wi,Tt,"$"].join("|")+")",Qn+"+"+On+"(?="+[Wi,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+zn,Tt+"+"+On,Yi,mi,E,Io].join("|"),"g"),yi=RegExp("["+bt+Wn+An+_n+"]"),Ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ra=["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"],sn=-1,Qt={};Qt[Bi]=Qt[$i]=Qt[Vi]=Qt[_r]=Qt[Un]=Qt[Rr]=Qt[wr]=Qt[qr]=Qt[Xr]=!0,Qt[Le]=Qt[Xe]=Qt[ci]=Qt[mt]=Qt[ln]=Qt[wt]=Qt[Et]=Qt[rt]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Pr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Le]=Vt[Xe]=Vt[ci]=Vt[ln]=Vt[mt]=Vt[wt]=Vt[Bi]=Vt[$i]=Vt[Vi]=Vt[_r]=Vt[Un]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Pr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Rr]=Vt[wr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[rt]=Vt[gt]=!1;var ki={À:"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"},ri={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dr=parseFloat,Na=parseInt,ia=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,os=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||os||Function("return this")(),Lo=t&&!t.nodeType&&t,wi=Lo&&!0&&e&&!e.nodeType&&e,as=wi&&wi.exports===Lo,ho=as&&ia.process,er=function(){try{var J=wi&&wi.require&&wi.require("util").types;return J||ho&&ho.binding&&ho.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,v=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function H(J,he,fe){switch(fe.length){case 0:return J.call(he);case 1:return J.call(he,fe[0]);case 2:return J.call(he,fe[0],fe[1]);case 3:return J.call(he,fe[0],fe[1],fe[2])}return J.apply(he,fe)}function le(J,he,fe,$e){for(var ze=-1,ft=J==null?0:J.length;++ze<ft;){var dt=J[ze];he($e,dt,fe(dt),J)}return $e}function oe(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e&&he(J[fe],fe,J)!==!1;);return J}function we(J,he){for(var fe=J==null?0:J.length;fe--&&he(J[fe],fe,J)!==!1;);return J}function Ne(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e;)if(!he(J[fe],fe,J))return!1;return!0}function je(J,he){for(var fe=-1,$e=J==null?0:J.length,ze=0,ft=[];++fe<$e;){var dt=J[fe];he(dt,fe,J)&&(ft[ze++]=dt)}return ft}function Ee(J,he){var fe=J==null?0:J.length;return!!fe&&on(J,he,0)>-1}function Ge(J,he,fe){for(var $e=-1,ze=J==null?0:J.length;++$e<ze;)if(fe(he,J[$e]))return!0;return!1}function ct(J,he){for(var fe=-1,$e=J==null?0:J.length,ze=Array($e);++fe<$e;)ze[fe]=he(J[fe],fe,J);return ze}function Pt(J,he){for(var fe=-1,$e=he.length,ze=J.length;++fe<$e;)J[ze+fe]=he[fe];return J}function It(J,he,fe,$e){var ze=-1,ft=J==null?0:J.length;for($e&&ft&&(fe=J[++ze]);++ze<ft;)fe=he(fe,J[ze],ze,J);return fe}function Mn(J,he,fe,$e){var ze=J==null?0:J.length;for($e&&ze&&(fe=J[--ze]);ze--;)fe=he(fe,J[ze],ze,J);return fe}function dn(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e;)if(he(J[fe],fe,J))return!0;return!1}var Br=k("length");function $r(J){return J.split("")}function Wt(J){return J.match(lo)||[]}function Vr(J,he,fe){var $e;return fe(J,function(ze,ft,dt){if(he(ze,ft,dt))return $e=ft,!1}),$e}function zt(J,he,fe,$e){for(var ze=J.length,ft=fe+($e?1:-1);$e?ft--:++ft<ze;)if(he(J[ft],ft,J))return ft;return-1}function on(J,he,fe){return he===he?Ml(J,he,fe):zt(J,go,fe)}function po(J,he,fe,$e){for(var ze=fe-1,ft=J.length;++ze<ft;)if($e(J[ze],he))return ze;return-1}function go(J){return J!==J}function Er(J,he){var fe=J==null?0:J.length;return fe?Te(J,he)/fe:De}function k(J){return function(he){return he==null?n:he[J]}}function F(J){return function(he){return J==null?n:J[he]}}function W(J,he,fe,$e,ze){return ze(J,function(ft,dt,ut){fe=$e?($e=!1,ft):he(fe,ft,dt,ut)}),fe}function te(J,he){var fe=J.length;for(J.sort(he);fe--;)J[fe]=J[fe].value;return J}function Te(J,he){for(var fe,$e=-1,ze=J.length;++$e<ze;){var ft=he(J[$e]);ft!==n&&(fe=fe===n?ft:fe+ft)}return fe}function Ce(J,he){for(var fe=-1,$e=Array(J);++fe<J;)$e[fe]=he(fe);return $e}function Be(J,he){return ct(he,function(fe){return[fe,J[fe]]})}function et(J){return J&&J.slice(0,Ws(J)+1).replace(fn,"")}function xt(J){return function(he){return J(he)}}function Nt(J,he){return ct(he,function(fe){return J[fe]})}function Dt(J,he){return J.has(he)}function Ct(J,he){for(var fe=-1,$e=J.length;++fe<$e&&on(he,J[fe],0)>-1;);return fe}function Bn(J,he){for(var fe=J.length;fe--&&on(he,J[fe],0)>-1;);return fe}function Tn(J,he){for(var fe=J.length,$e=0;fe--;)J[fe]===he&&++$e;return $e}var Yn=F(ki),oa=F(ri);function ss(J){return"\\"+bi[J]}function aa(J,he){return J==null?n:J[he]}function ii(J){return yi.test(J)}function Hs(J){return Ao.test(J)}function vo(J){for(var he,fe=[];!(he=J.next()).done;)fe.push(he.value);return fe}function us(J){var he=-1,fe=Array(J.size);return J.forEach(function($e,ze){fe[++he]=[ze,$e]}),fe}function sa(J,he){return function(fe){return J(he(fe))}}function xi(J,he){for(var fe=-1,$e=J.length,ze=0,ft=[];++fe<$e;){var dt=J[fe];(dt===he||dt===y)&&(J[fe]=y,ft[ze++]=fe)}return ft}function Gi(J){var he=-1,fe=Array(J.size);return J.forEach(function($e){fe[++he]=$e}),fe}function Us(J){var he=-1,fe=Array(J.size);return J.forEach(function($e){fe[++he]=[$e,$e]}),fe}function Ml(J,he,fe){for(var $e=fe-1,ze=J.length;++$e<ze;)if(J[$e]===he)return $e;return-1}function ua(J,he,fe){for(var $e=fe+1;$e--;)if(J[$e]===he)return $e;return $e}function mo(J){return ii(J)?cs(J):Br(J)}function hr(J){return ii(J)?ee(J):$r(J)}function Ws(J){for(var he=J.length;he--&&Si.test(J.charAt(he)););return he}var ls=F(Mo);function cs(J){for(var he=La.lastIndex=0;La.test(J);)++he;return he}function ee(J){return J.match(La)||[]}function ve(J){return J.match(Fa)||[]}var _e=function J(he){he=he==null?yn:ke.defaults(yn.Object(),he,ke.pick(yn,ra));var fe=he.Array,$e=he.Date,ze=he.Error,ft=he.Function,dt=he.Math,ut=he.Object,At=he.RegExp,kt=he.String,Yt=he.TypeError,Ln=fe.prototype,ar=ft.prototype,Gn=ut.prototype,Hr=he["__core-js_shared__"],qi=ar.toString,Mt=Gn.hasOwnProperty,Uc=0,Dn=function(){var a=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),la=Gn.toString,Ll=qi.call(ut),Pn=yn._,fs=At("^"+qi.call(Mt).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=as?he.Buffer:n,yo=he.Symbol,hs=he.Uint8Array,Nu=ds?ds.allocUnsafe:n,ps=sa(ut.getPrototypeOf,ut),Fl=ut.create,Nl=Gn.propertyIsEnumerable,ja=Ln.splice,ju=yo?yo.isConcatSpreadable:n,Fo=yo?yo.iterator:n,Xi=yo?yo.toStringTag:n,No=function(){try{var a=dc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),zs=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Ys=$e&&$e.now!==yn.Date.now&&$e.now,Bu=he.setTimeout!==yn.setTimeout&&he.setTimeout,Gs=dt.ceil,gs=dt.floor,qs=ut.getOwnPropertySymbols,jl=ds?ds.isBuffer:n,Bl=he.isFinite,vs=Ln.join,$l=sa(ut.keys,ut),Fn=dt.max,Nn=dt.min,Vl=$e.now,Hl=he.parseInt,jo=dt.random,Wc=Ln.reverse,Bo=dc(he,"DataView"),Ki=dc(he,"Map"),Xs=dc(he,"Promise"),Ur=dc(he,"Set"),ca=dc(he,"WeakMap"),fa=dc(ut,"create"),da=ca&&new ca,ha={},Ks=hc(Bo),zc=hc(Ki),Yc=hc(Xs),$u=hc(Ur),Zs=hc(ca),ms=yo?yo.prototype:n,Js=ms?ms.valueOf:n,Ba=ms?ms.toString:n;function G(a){if(ur(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Wr)return a;if(Mt.call(a,"__wrapped__"))return bb(a)}return new Wr(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Fl)return Fl(u);a.prototype=u;var m=new a;return a.prototype=n,m}}();function $a(){}function Wr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}G.templateSettings={escape:In,evaluate:gn,interpolate:di,variable:"",imports:{_:G}},G.prototype=$a.prototype,G.prototype.constructor=G,Wr.prototype=pa($a.prototype),Wr.prototype.constructor=Wr;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function Vu(){var a=new qt(this.__wrapped__);return a.__actions__=vr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=vr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=vr(this.__views__),a}function ys(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Qs(){var a=this.__wrapped__.value(),u=this.__dir__,m=Xt(a),P=u<0,V=m?a.length:0,X=oD(0,V,this.__views__),ue=X.start,ge=X.end,Se=ge-ue,qe=P?ge:ue-1,Ke=this.__iteratees__,nt=Ke.length,pt=0,Ot=Nn(Se,this.__takeCount__);if(!m||!P&&V==Se&&Ot==Se)return si(a,this.__actions__);var Lt=[];e:for(;Se--&&pt<Ot;){qe+=u;for(var tn=-1,Ft=a[qe];++tn<nt;){var rn=Ke[tn],an=rn.iteratee,Go=rn.type,ro=an(Ft);if(Go==me)Ft=ro;else if(!ro){if(Go==ot)continue e;break e}}Lt[pt++]=Ft}return Lt}qt.prototype=pa($a.prototype),qt.prototype.constructor=qt;function bo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function bs(){this.__data__=fa?fa(null):{},this.size=0}function Hu(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Uu(a){var u=this.__data__;if(fa){var m=u[a];return m===c?n:m}return Mt.call(u,a)?u[a]:n}function Wu(a){var u=this.__data__;return fa?u[a]!==n:Mt.call(u,a)}function Gc(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=fa&&u===n?c:u,this}bo.prototype.clear=bs,bo.prototype.delete=Hu,bo.prototype.get=Uu,bo.prototype.has=Wu,bo.prototype.set=Gc;function wo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function qc(){this.__data__=[],this.size=0}function $f(a){var u=this.__data__,m=Di(u,a);if(m<0)return!1;var P=u.length-1;return m==P?u.pop():ja.call(u,m,1),--this.size,!0}function Vf(a){var u=this.__data__,m=Di(u,a);return m<0?n:u[m][1]}function Xc(a){return Di(this.__data__,a)>-1}function Hf(a,u){var m=this.__data__,P=Di(m,a);return P<0?(++this.size,m.push([a,u])):m[P][1]=u,this}wo.prototype.clear=qc,wo.prototype.delete=$f,wo.prototype.get=Vf,wo.prototype.has=Xc,wo.prototype.set=Hf;function $o(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function zu(){this.size=0,this.__data__={hash:new bo,map:new(Ki||wo),string:new bo}}function Yu(a){var u=eh(this,a).delete(a);return this.size-=u?1:0,u}function Uf(a){return eh(this,a).get(a)}function Ul(a){return eh(this,a).has(a)}function Gu(a,u){var m=eh(this,a),P=m.size;return m.set(a,u),this.size+=m.size==P?0:1,this}$o.prototype.clear=zu,$o.prototype.delete=Yu,$o.prototype.get=Uf,$o.prototype.has=Ul,$o.prototype.set=Gu;function Va(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new $o;++u<m;)this.add(a[u])}function Wf(a){return this.__data__.set(a,c),this}function zf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=Wf,Va.prototype.has=zf;function Zi(a){var u=this.__data__=new wo(a);this.size=u.size}function Vo(){this.__data__=new wo,this.size=0}function Wl(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function qu(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ha(a,u){var m=this.__data__;if(m instanceof wo){var P=m.__data__;if(!Ki||P.length<i-1)return P.push([a,u]),this.size=++m.size,this;m=this.__data__=new $o(P)}return m.set(a,u),this.size=m.size,this}Zi.prototype.clear=Vo,Zi.prototype.delete=Wl,Zi.prototype.get=qu,Zi.prototype.has=nn,Zi.prototype.set=Ha;function ga(a,u){var m=Xt(a),P=!m&&pc(a),V=!m&&!P&&ll(a),X=!m&&!P&&!V&&cf(a),ue=m||P||V||X,ge=ue?Ce(a.length,kt):[],Se=ge.length;for(var qe in a)(u||Mt.call(a,qe))&&!(ue&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||X&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||yu(qe,Se)))&&ge.push(qe);return ge}function un(a){var u=a.length;return u?a[tl(0,u-1)]:n}function Oi(a,u){return th(vr(a),va(u,0,a.length))}function Ua(a){return th(vr(a))}function ws(a,u,m){(m!==n&&!Ja(a[u],m)||m===n&&!(u in a))&&pr(a,u,m)}function $n(a,u,m){var P=a[u];(!(Mt.call(a,u)&&Ja(P,m))||m===n&&!(u in a))&&pr(a,u,m)}function Di(a,u){for(var m=a.length;m--;)if(Ja(a[m][0],u))return m;return-1}function Wa(a,u,m,P){return ma(a,function(V,X,ue){u(P,V,m(V),ue)}),P}function Ji(a,u){return a&&To(u,ui(u),a)}function za(a,u){return a&&To(u,Eo(u),a)}function pr(a,u,m){u=="__proto__"&&No?No(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function zl(a,u){for(var m=-1,P=u.length,V=fe(P),X=a==null;++m<P;)V[m]=X?n:Cg(a,u[m]);return V}function va(a,u,m){return a===a&&(m!==n&&(a=a<=m?a:m),u!==n&&(a=a>=u?a:u)),a}function zr(a,u,m,P,V,X){var ue,ge=u&p,Se=u&S,qe=u&T;if(m&&(ue=V?m(a,P,V,X):m(a)),ue!==n)return ue;if(!tr(a))return a;var Ke=Xt(a);if(Ke){if(ue=sD(a),!ge)return vr(a,ue)}else{var nt=Ii(a),pt=nt==rt||nt==$t;if(ll(a))return uc(a,ge);if(nt==Kn||nt==Le||pt&&!V){if(ue=Se||pt?{}:cb(a),!ge)return Se?sl(a,za(ue,a)):sf(a,Ji(ue,a))}else{if(!Vt[nt])return V?a:{};ue=uD(a,nt,ge)}}X||(X=new Zi);var Ot=X.get(a);if(Ot)return Ot;X.set(a,ue),Bb(a)?a.forEach(function(Ft){ue.add(zr(Ft,u,m,Ft,a,X))}):Nb(a)&&a.forEach(function(Ft,rn){ue.set(rn,zr(Ft,u,m,rn,a,X))});var Lt=qe?Se?cg:lg:Se?Eo:ui,tn=Ke?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),$n(ue,rn,zr(Ft,u,m,rn,a,X))}),ue}function Yl(a){var u=ui(a);return function(m){return Kc(m,a,u)}}function Kc(a,u,m){var P=m.length;if(a==null)return!P;for(a=ut(a);P--;){var V=m[P],X=u[V],ue=a[V];if(ue===n&&!(V in a)||!X(ue))return!1}return!0}function Gl(a,u,m){if(typeof a!="function")throw new Yt(s);return Kf(function(){a.apply(n,m)},u)}function Ho(a,u,m,P){var V=-1,X=Ee,ue=!0,ge=a.length,Se=[],qe=u.length;if(!ge)return Se;m&&(u=ct(u,xt(m))),P?(X=Ge,ue=!1):u.length>=i&&(X=Dt,ue=!1,u=new Va(u));e:for(;++V<ge;){var Ke=a[V],nt=m==null?Ke:m(Ke);if(Ke=P||Ke!==0?Ke:0,ue&&nt===nt){for(var pt=qe;pt--;)if(u[pt]===nt)continue e;Se.push(Ke)}else X(u,nt,P)||Se.push(Ke)}return Se}var ma=w(xo),ql=w(Zl,!0);function Xu(a,u){var m=!0;return ma(a,function(P,V,X){return m=!!u(P,V,X),m}),m}function Ku(a,u,m){for(var P=-1,V=a.length;++P<V;){var X=a[P],ue=u(X);if(ue!=null&&(ge===n?ue===ue&&!Yo(ue):m(ue,ge)))var ge=ue,Se=X}return Se}function Zc(a,u,m,P){var V=a.length;for(m=en(m),m<0&&(m=-m>V?0:V+m),P=P===n||P>V?V:en(P),P<0&&(P+=V),P=m>P?0:Vb(P);m<P;)a[m++]=u;return a}function Xl(a,u){var m=[];return ma(a,function(P,V,X){u(P,V,X)&&m.push(P)}),m}function gr(a,u,m,P,V){var X=-1,ue=a.length;for(m||(m=cD),V||(V=[]);++X<ue;){var ge=a[X];u>0&&m(ge)?u>1?gr(ge,u-1,m,P,V):Pt(V,ge):P||(V[V.length]=ge)}return V}var Kl=A(),Jc=A(!0);function xo(a,u){return a&&Kl(a,u,ui)}function Zl(a,u){return a&&Jc(a,u,ui)}function Zu(a,u){return je(u,function(m){return bu(a[m])})}function Ya(a,u){u=zo(u,a);for(var m=0,P=u.length;a!=null&&m<P;)a=a[Ds(u[m++])];return m&&m==P?a:n}function eu(a,u,m){var P=u(a);return Xt(a)?P:Pt(P,m(a))}function kr(a){return a==null?a===n?pn:br:Xi&&Xi in ut(a)?iD(a):mD(a)}function tu(a,u){return a>u}function nu(a,u){return a!=null&&Mt.call(a,u)}function Qc(a,u){return a!=null&&u in ut(a)}function ru(a,u,m){return a>=Nn(u,m)&&a<Fn(u,m)}function xs(a,u,m){for(var P=m?Ge:Ee,V=a[0].length,X=a.length,ue=X,ge=fe(X),Se=1/0,qe=[];ue--;){var Ke=a[ue];ue&&u&&(Ke=ct(Ke,xt(u))),Se=Nn(Ke.length,Se),ge[ue]=!m&&(u||V>=120&&Ke.length>=120)?new Va(ue&&Ke):n}Ke=a[0];var nt=-1,pt=ge[0];e:for(;++nt<V&&qe.length<Se;){var Ot=Ke[nt],Lt=u?u(Ot):Ot;if(Ot=m||Ot!==0?Ot:0,!(pt?Dt(pt,Lt):P(qe,Lt,m))){for(ue=X;--ue;){var tn=ge[ue];if(!(tn?Dt(tn,Lt):P(a[ue],Lt,m)))continue e}pt&&pt.push(Lt),qe.push(Ot)}}return qe}function Jl(a,u,m,P){return xo(a,function(V,X,ue){u(P,m(V),X,ue)}),P}function Pi(a,u,m){u=zo(u,a),a=pb(a,u);var P=a==null?a:a[Ds(ba(u))];return P==null?n:H(P,a,m)}function iu(a){return ur(a)&&kr(a)==Le}function Ju(a){return ur(a)&&kr(a)==ci}function Ga(a){return ur(a)&&kr(a)==wt}function Ss(a,u,m,P,V){return a===u?!0:a==null||u==null||!ur(a)&&!ur(u)?a!==a&&u!==u:Ql(a,u,m,P,Ss,V)}function Ql(a,u,m,P,V,X){var ue=Xt(a),ge=Xt(u),Se=ue?Xe:Ii(a),qe=ge?Xe:Ii(u);Se=Se==Le?Kn:Se,qe=qe==Le?Kn:qe;var Ke=Se==Kn,nt=qe==Kn,pt=Se==qe;if(pt&&ll(a)){if(!ll(u))return!1;ue=!0,Ke=!1}if(pt&&!Ke)return X||(X=new Zi),ue||cf(a)?vu(a,u,m,P,V,X):sg(a,u,Se,m,P,V,X);if(!(m&_)){var Ot=Ke&&Mt.call(a,"__wrapped__"),Lt=nt&&Mt.call(u,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Ft=Lt?u.value():u;return X||(X=new Zi),V(tn,Ft,m,P,X)}}return pt?(X||(X=new Zi),ug(a,u,m,P,V,X)):!1}function qa(a){return ur(a)&&Ii(a)==Ht}function ec(a,u,m,P){var V=m.length,X=V,ue=!P;if(a==null)return!X;for(a=ut(a);V--;){var ge=m[V];if(ue&&ge[2]?ge[1]!==a[ge[0]]:!(ge[0]in a))return!1}for(;++V<X;){ge=m[V];var Se=ge[0],qe=a[Se],Ke=ge[1];if(ue&&ge[2]){if(qe===n&&!(Se in a))return!1}else{var nt=new Zi;if(P)var pt=P(qe,Ke,Se,a,u,nt);if(!(pt===n?Ss(Ke,qe,_|R,P,nt):pt))return!1}}return!0}function tc(a){if(!tr(a)||dD(a))return!1;var u=bu(a)?fs:Ei;return u.test(hc(a))}function So(a){return ur(a)&&kr(a)==Pr}function Yf(a){return ur(a)&&Ii(a)==rr}function Gf(a){return ur(a)&&sh(a.length)&&!!Qt[kr(a)]}function Ts(a){return typeof a=="function"?a:a==null?ko:typeof a=="object"?Xt(a)?eo(a[0],a[1]):Uo(a):Jb(a)}function ou(a){if(!Xf(a))return $l(a);var u=[];for(var m in ut(a))Mt.call(a,m)&&m!="constructor"&&u.push(m);return u}function Qu(a){if(!tr(a))return vD(a);var u=Xf(a),m=[];for(var P in a)P=="constructor"&&(u||!Mt.call(a,P))||m.push(P);return m}function Qi(a,u){return a<u}function Cs(a,u){var m=-1,P=Co(a)?fe(a.length):[];return ma(a,function(V,X,ue){P[++m]=u(V,X,ue)}),P}function Uo(a){var u=dg(a);return u.length==1&&u[0][2]?db(u[0][0],u[0][1]):function(m){return m===a||ec(m,a,u)}}function eo(a,u){return pg(a)&&fb(u)?db(Ds(a),u):function(m){var P=Cg(m,a);return P===n&&P===u?Eg(m,a):Ss(u,P,_|R)}}function Es(a,u,m,P,V){a!==u&&Kl(u,function(X,ue){if(V||(V=new Zi),tr(X))_i(a,u,ue,m,Es,P,V);else{var ge=P?P(vg(a,ue),X,ue+"",a,u,V):n;ge===n&&(ge=X),ws(a,ue,ge)}},Eo)}function _i(a,u,m,P,V,X,ue){var ge=vg(a,m),Se=vg(u,m),qe=ue.get(Se);if(qe){ws(a,m,qe);return}var Ke=X?X(ge,Se,m+"",a,u,ue):n,nt=Ke===n;if(nt){var pt=Xt(Se),Ot=!pt&&ll(Se),Lt=!pt&&!Ot&&cf(Se);Ke=Se,pt||Ot||Lt?Xt(ge)?Ke=ge:mr(ge)?Ke=vr(ge):Ot?(nt=!1,Ke=uc(Se,!0)):Lt?(nt=!1,Ke=lc(Se,!0)):Ke=[]:Zf(Se)||pc(Se)?(Ke=ge,pc(ge)?Ke=Hb(ge):(!tr(ge)||bu(ge))&&(Ke=cb(Se))):nt=!1}nt&&(ue.set(Se,Ke),V(Ke,Se,P,X,ue),ue.delete(Se)),ws(a,m,Ke)}function Xa(a,u){var m=a.length;if(m)return u+=u<0?m:0,yu(u,m)?a[u]:n}function el(a,u,m){u.length?u=ct(u,function(X){return Xt(X)?function(ue){return Ya(ue,X.length===1?X[0]:X)}:X}):u=[ko];var P=-1;u=ct(u,xt(Rt()));var V=Cs(a,function(X,ue,ge){var Se=ct(u,function(qe){return qe(X)});return{criteria:Se,index:++P,value:X}});return te(V,function(X,ue){return gu(X,ue,m)})}function Ri(a,u){return Wo(a,u,function(m,P){return Eg(a,P)})}function Wo(a,u,m){for(var P=-1,V=u.length,X={};++P<V;){var ue=u[P],ge=Ya(a,ue);m(ge,ue)&&Za(X,zo(ue,a),ge)}return X}function nc(a){return function(u){return Ya(u,a)}}function Ka(a,u,m,P){var V=P?po:on,X=-1,ue=u.length,ge=a;for(a===u&&(u=vr(u)),m&&(ge=ct(a,xt(m)));++X<ue;)for(var Se=0,qe=u[X],Ke=m?m(qe):qe;(Se=V(ge,Ke,Se,P))>-1;)ge!==a&&ja.call(ge,Se,1),ja.call(a,Se,1);return a}function au(a,u){for(var m=a?u.length:0,P=m-1;m--;){var V=u[m];if(m==P||V!==X){var X=V;yu(V)?ja.call(a,V,1):ac(a,V)}}return a}function tl(a,u){return a+gs(jo()*(u-a+1))}function ef(a,u,m,P){for(var V=-1,X=Fn(Gs((u-a)/(m||1)),0),ue=fe(X);X--;)ue[P?X:++V]=a,a+=m;return ue}function rc(a,u){var m="";if(!a||u<1||u>Je)return m;do u%2&&(m+=a),u=gs(u/2),u&&(a+=a);while(u);return m}function Gt(a,u){return mg(hb(a,u,ko),a+"")}function su(a){return un(ff(a))}function tf(a,u){var m=ff(a);return th(m,va(u,0,m.length))}function Za(a,u,m,P){if(!tr(a))return a;u=zo(u,a);for(var V=-1,X=u.length,ue=X-1,ge=a;ge!=null&&++V<X;){var Se=Ds(u[V]),qe=m;if(Se==="__proto__"||Se==="constructor"||Se==="prototype")return a;if(V!=ue){var Ke=ge[Se];qe=P?P(Ke,Se,ge):n,qe===n&&(qe=tr(Ke)?Ke:yu(u[V+1])?[]:{})}$n(ge,Se,qe),ge=ge[Se]}return a}var ks=da?function(a,u){return da.set(a,u),a}:ko,ic=No?function(a,u){return No(a,"toString",{configurable:!0,enumerable:!1,value:Og(u),writable:!0})}:ko;function oc(a){return th(ff(a))}function oi(a,u,m){var P=-1,V=a.length;u<0&&(u=-u>V?0:V+u),m=m>V?V:m,m<0&&(m+=V),V=u>m?0:m-u>>>0,u>>>=0;for(var X=fe(V);++P<V;)X[P]=a[P+u];return X}function nf(a,u){var m;return ma(a,function(P,V,X){return m=u(P,V,X),!m}),!!m}function uu(a,u,m){var P=0,V=a==null?P:a.length;if(typeof u=="number"&&u===u&&V<=Ue){for(;P<V;){var X=P+V>>>1,ue=a[X];ue!==null&&!Yo(ue)&&(m?ue<=u:ue<u)?P=X+1:V=X}return V}return lu(a,u,ko,m)}function lu(a,u,m,P){var V=0,X=a==null?0:a.length;if(X===0)return 0;u=m(u);for(var ue=u!==u,ge=u===null,Se=Yo(u),qe=u===n;V<X;){var Ke=gs((V+X)/2),nt=m(a[Ke]),pt=nt!==n,Ot=nt===null,Lt=nt===nt,tn=Yo(nt);if(ue)var Ft=P||Lt;else qe?Ft=Lt&&(P||pt):ge?Ft=Lt&&pt&&(P||!Ot):Se?Ft=Lt&&pt&&!Ot&&(P||!tn):Ot||tn?Ft=!1:Ft=P?nt<=u:nt<u;Ft?V=Ke+1:X=Ke}return Nn(X,We)}function rf(a,u){for(var m=-1,P=a.length,V=0,X=[];++m<P;){var ue=a[m],ge=u?u(ue):ue;if(!m||!Ja(ge,Se)){var Se=ge;X[V++]=ue===0?0:ue}}return X}function of(a){return typeof a=="number"?a:Yo(a)?De:+a}function ai(a){if(typeof a=="string")return a;if(Xt(a))return ct(a,ai)+"";if(Yo(a))return Ba?Ba.call(a):"";var u=a+"";return u=="0"&&1/a==-He?"-0":u}function ya(a,u,m){var P=-1,V=Ee,X=a.length,ue=!0,ge=[],Se=ge;if(m)ue=!1,V=Ge;else if(X>=i){var qe=u?null:Cn(a);if(qe)return Gi(qe);ue=!1,V=Dt,Se=new Va}else Se=u?[]:ge;e:for(;++P<X;){var Ke=a[P],nt=u?u(Ke):Ke;if(Ke=m||Ke!==0?Ke:0,ue&&nt===nt){for(var pt=Se.length;pt--;)if(Se[pt]===nt)continue e;u&&Se.push(nt),ge.push(Ke)}else V(Se,nt,m)||(Se!==ge&&Se.push(nt),ge.push(Ke))}return ge}function ac(a,u){return u=zo(u,a),a=pb(a,u),a==null||delete a[Ds(ba(u))]}function nl(a,u,m,P){return Za(a,u,m(Ya(a,u)),P)}function rl(a,u,m,P){for(var V=a.length,X=P?V:-1;(P?X--:++X<V)&&u(a[X],X,a););return m?oi(a,P?0:X,P?X+1:V):oi(a,P?X+1:0,P?V:X)}function si(a,u){var m=a;return m instanceof qt&&(m=m.value()),It(u,function(P,V){return V.func.apply(V.thisArg,Pt([P],V.args))},m)}function cu(a,u,m){var P=a.length;if(P<2)return P?ya(a[0]):[];for(var V=-1,X=fe(P);++V<P;)for(var ue=a[V],ge=-1;++ge<P;)ge!=V&&(X[V]=Ho(X[V]||ue,a[ge],u,m));return ya(gr(X,1),u,m)}function sc(a,u,m){for(var P=-1,V=a.length,X=u.length,ue={};++P<V;){var ge=P<X?u[P]:n;m(ue,a[P],ge)}return ue}function Yr(a){return mr(a)?a:[]}function fu(a){return typeof a=="function"?a:ko}function zo(a,u){return Xt(a)?a:pg(a,u)?[a]:yb(bn(a))}var qf=Gt;function to(a,u,m){var P=a.length;return m=m===n?P:m,!u&&m>=P?a:oi(a,u,m)}var du=zs||function(a){return yn.clearTimeout(a)};function uc(a,u){if(u)return a.slice();var m=a.length,P=Nu?Nu(m):new a.constructor(m);return a.copy(P),P}function il(a){var u=new a.constructor(a.byteLength);return new hs(u).set(new hs(a)),u}function hu(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function pu(a){var u=new a.constructor(a.source,gi.exec(a));return u.lastIndex=a.lastIndex,u}function ol(a){return Js?ut(Js.call(a)):{}}function lc(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Os(a,u){if(a!==u){var m=a!==n,P=a===null,V=a===a,X=Yo(a),ue=u!==n,ge=u===null,Se=u===u,qe=Yo(u);if(!ge&&!qe&&!X&&a>u||X&&ue&&Se&&!ge&&!qe||P&&ue&&Se||!m&&Se||!V)return 1;if(!P&&!X&&!qe&&a<u||qe&&m&&V&&!P&&!X||ge&&m&&V||!ue&&V||!Se)return-1}return 0}function gu(a,u,m){for(var P=-1,V=a.criteria,X=u.criteria,ue=V.length,ge=m.length;++P<ue;){var Se=Os(V[P],X[P]);if(Se){if(P>=ge)return Se;var qe=m[P];return Se*(qe=="desc"?-1:1)}}return a.index-u.index}function af(a,u,m,P){for(var V=-1,X=a.length,ue=m.length,ge=-1,Se=u.length,qe=Fn(X-ue,0),Ke=fe(Se+qe),nt=!P;++ge<Se;)Ke[ge]=u[ge];for(;++V<ue;)(nt||V<X)&&(Ke[m[V]]=a[V]);for(;qe--;)Ke[ge++]=a[V++];return Ke}function al(a,u,m,P){for(var V=-1,X=a.length,ue=-1,ge=m.length,Se=-1,qe=u.length,Ke=Fn(X-ge,0),nt=fe(Ke+qe),pt=!P;++V<Ke;)nt[V]=a[V];for(var Ot=V;++Se<qe;)nt[Ot+Se]=u[Se];for(;++ue<ge;)(pt||V<X)&&(nt[Ot+m[ue]]=a[V++]);return nt}function vr(a,u){var m=-1,P=a.length;for(u||(u=fe(P));++m<P;)u[m]=a[m];return u}function To(a,u,m,P){var V=!m;m||(m={});for(var X=-1,ue=u.length;++X<ue;){var ge=u[X],Se=P?P(m[ge],a[ge],ge,m,a):n;Se===n&&(Se=a[ge]),V?pr(m,ge,Se):$n(m,ge,Se)}return m}function sf(a,u){return To(a,hg(a),u)}function sl(a,u){return To(a,ub(a),u)}function ul(a,u){return function(m,P){var V=Xt(m)?le:Wa,X=u?u():{};return V(m,a,Rt(P,2),X)}}function g(a){return Gt(function(u,m){var P=-1,V=m.length,X=V>1?m[V-1]:n,ue=V>2?m[2]:n;for(X=a.length>3&&typeof X=="function"?(V--,X):n,ue&&no(m[0],m[1],ue)&&(X=V<3?n:X,V=1),u=ut(u);++P<V;){var ge=m[P];ge&&a(u,ge,P,X)}return u})}function w(a,u){return function(m,P){if(m==null)return m;if(!Co(m))return a(m,P);for(var V=m.length,X=u?V:-1,ue=ut(m);(u?X--:++X<V)&&P(ue[X],X,ue)!==!1;);return m}}function A(a){return function(u,m,P){for(var V=-1,X=ut(u),ue=P(u),ge=ue.length;ge--;){var Se=ue[a?ge:++V];if(m(X[Se],Se,X)===!1)break}return u}}function $(a,u,m){var P=u&L,V=pe(a);function X(){var ue=this&&this!==yn&&this instanceof X?V:a;return ue.apply(P?m:this,arguments)}return X}function K(a){return function(u){u=bn(u);var m=ii(u)?hr(u):n,P=m?m[0]:u.charAt(0),V=m?to(m,1).join(""):u.slice(1);return P[a]()+V}}function se(a){return function(u){return It(Kb(Xb(u).replace(Aa,"")),a,"")}}function pe(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=pa(a.prototype),P=a.apply(m,u);return tr(P)?P:m}}function Ae(a,u,m){var P=pe(a);function V(){for(var X=arguments.length,ue=fe(X),ge=X,Se=lf(V);ge--;)ue[ge]=arguments[ge];var qe=X<3&&ue[0]!==Se&&ue[X-1]!==Se?[]:xi(ue,Se);if(X-=qe.length,X<m)return St(a,u,D,V.placeholder,n,ue,qe,n,n,m-X);var Ke=this&&this!==yn&&this instanceof V?P:a;return H(Ke,this,ue)}return V}function h(a){return function(u,m,P){var V=ut(u);if(!Co(u)){var X=Rt(m,3);u=ui(u),m=function(ge){return X(V[ge],ge,V)}}var ue=a(u,m,P);return ue>-1?V[X?u[ue]:ue]:n}}function b(a){return mu(function(u){var m=u.length,P=m,V=Wr.prototype.thru;for(a&&u.reverse();P--;){var X=u[P];if(typeof X!="function")throw new Yt(s);if(V&&!ue&&Qd(X)=="wrapper")var ue=new Wr([],!0)}for(P=ue?P:m;++P<m;){X=u[P];var ge=Qd(X),Se=ge=="wrapper"?fg(X):n;Se&&gg(Se[0])&&Se[1]==(x|z|Z|ye)&&!Se[4].length&&Se[9]==1?ue=ue[Qd(Se[0])].apply(ue,Se[3]):ue=X.length==1&&gg(X)?ue[ge]():ue.thru(X)}return function(){var qe=arguments,Ke=qe[0];if(ue&&qe.length==1&&Xt(Ke))return ue.plant(Ke).value();for(var nt=0,pt=m?u[nt].apply(this,qe):Ke;++nt<m;)pt=u[nt].call(this,pt);return pt}})}function D(a,u,m,P,V,X,ue,ge,Se,qe){var Ke=u&x,nt=u&L,pt=u&I,Ot=u&(z|re),Lt=u&ae,tn=pt?n:pe(a);function Ft(){for(var rn=arguments.length,an=fe(rn),Go=rn;Go--;)an[Go]=arguments[Go];if(Ot)var ro=lf(Ft),qo=Tn(an,ro);if(P&&(an=af(an,P,V,Ot)),X&&(an=al(an,X,ue,Ot)),rn-=qo,Ot&&rn<qe){var yr=xi(an,ro);return St(a,u,D,Ft.placeholder,m,an,yr,ge,Se,qe-rn)}var Qa=nt?m:this,xu=pt?Qa[a]:a;return rn=an.length,ge?an=yD(an,ge):Lt&&rn>1&&an.reverse(),Ke&&Se<rn&&(an.length=Se),this&&this!==yn&&this instanceof Ft&&(xu=tn||pe(xu)),xu.apply(Qa,an)}return Ft}function M(a,u){return function(m,P){return Jl(m,a,u(P),{})}}function Y(a,u){return function(m,P){var V;if(m===n&&P===n)return u;if(m!==n&&(V=m),P!==n){if(V===n)return P;typeof m=="string"||typeof P=="string"?(m=ai(m),P=ai(P)):(m=of(m),P=of(P)),V=a(m,P)}return V}}function ie(a){return mu(function(u){return u=ct(u,xt(Rt())),Gt(function(m){var P=this;return a(u,function(V){return H(V,P,m)})})})}function ce(a,u){u=u===n?" ":ai(u);var m=u.length;if(m<2)return m?rc(u,a):u;var P=rc(u,Gs(a/mo(u)));return ii(u)?to(hr(P),0,a).join(""):P.slice(0,a)}function Ie(a,u,m,P){var V=u&L,X=pe(a);function ue(){for(var ge=-1,Se=arguments.length,qe=-1,Ke=P.length,nt=fe(Ke+Se),pt=this&&this!==yn&&this instanceof ue?X:a;++qe<Ke;)nt[qe]=P[qe];for(;Se--;)nt[qe++]=arguments[++ge];return H(pt,V?m:this,nt)}return ue}function Qe(a){return function(u,m,P){return P&&typeof P!="number"&&no(u,m,P)&&(m=P=n),u=wu(u),m===n?(m=u,u=0):m=wu(m),P=P===n?u<m?1:-1:wu(P),ef(u,m,P,a)}}function ht(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=wa(u),m=wa(m)),a(u,m)}}function St(a,u,m,P,V,X,ue,ge,Se,qe){var Ke=u&z,nt=Ke?ue:n,pt=Ke?n:ue,Ot=Ke?X:n,Lt=Ke?n:X;u|=Ke?Z:de,u&=~(Ke?de:Z),u&U||(u&=~(L|I));var tn=[a,u,V,Ot,nt,Lt,pt,ge,Se,qe],Ft=m.apply(n,tn);return gg(a)&&gb(Ft,tn),Ft.placeholder=P,vb(Ft,a,u)}function _t(a){var u=dt[a];return function(m,P){if(m=wa(m),P=P==null?0:Nn(en(P),292),P&&Bl(m)){var V=(bn(m)+"e").split("e"),X=u(V[0]+"e"+(+V[1]+P));return V=(bn(X)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return u(m)}}var Cn=Ur&&1/Gi(new Ur([,-0]))[1]==He?function(a){return new Ur(a)}:_g;function sr(a){return function(u){var m=Ii(u);return m==Ht?us(u):m==rr?Us(u):Be(u,a(u))}}function qn(a,u,m,P,V,X,ue,ge){var Se=u&I;if(!Se&&typeof a!="function")throw new Yt(s);var qe=P?P.length:0;if(qe||(u&=~(Z|de),P=V=n),ue=ue===n?ue:Fn(en(ue),0),ge=ge===n?ge:en(ge),qe-=V?V.length:0,u&de){var Ke=P,nt=V;P=V=n}var pt=Se?n:fg(a),Ot=[a,u,m,P,V,Ke,nt,X,ue,ge];if(pt&&gD(Ot,pt),a=Ot[0],u=Ot[1],m=Ot[2],P=Ot[3],V=Ot[4],ge=Ot[9]=Ot[9]===n?Se?0:a.length:Fn(Ot[9]-qe,0),!ge&&u&(z|re)&&(u&=~(z|re)),!u||u==L)var Lt=$(a,u,m);else u==z||u==re?Lt=Ae(a,u,ge):(u==Z||u==(L|Z))&&!V.length?Lt=Ie(a,u,m,P):Lt=D.apply(n,Ot);var tn=pt?ks:gb;return vb(tn(Lt,Ot),a,u)}function cc(a,u,m,P){return a===n||Ja(a,Gn[m])&&!Mt.call(P,m)?u:a}function fc(a,u,m,P,V,X){return tr(a)&&tr(u)&&(X.set(u,a),Es(a,u,n,fc,X),X.delete(u)),a}function uf(a){return Zf(a)?n:a}function vu(a,u,m,P,V,X){var ue=m&_,ge=a.length,Se=u.length;if(ge!=Se&&!(ue&&Se>ge))return!1;var qe=X.get(a),Ke=X.get(u);if(qe&&Ke)return qe==u&&Ke==a;var nt=-1,pt=!0,Ot=m&R?new Va:n;for(X.set(a,u),X.set(u,a);++nt<ge;){var Lt=a[nt],tn=u[nt];if(P)var Ft=ue?P(tn,Lt,nt,u,a,X):P(Lt,tn,nt,a,u,X);if(Ft!==n){if(Ft)continue;pt=!1;break}if(Ot){if(!dn(u,function(rn,an){if(!Dt(Ot,an)&&(Lt===rn||V(Lt,rn,m,P,X)))return Ot.push(an)})){pt=!1;break}}else if(!(Lt===tn||V(Lt,tn,m,P,X))){pt=!1;break}}return X.delete(a),X.delete(u),pt}function sg(a,u,m,P,V,X,ue){switch(m){case ln:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ci:return!(a.byteLength!=u.byteLength||!X(new hs(a),new hs(u)));case mt:case wt:case Xn:return Ja(+a,+u);case Et:return a.name==u.name&&a.message==u.message;case Pr:case cn:return a==u+"";case Ht:var ge=us;case rr:var Se=P&_;if(ge||(ge=Gi),a.size!=u.size&&!Se)return!1;var qe=ue.get(a);if(qe)return qe==u;P|=R,ue.set(a,u);var Ke=vu(ge(a),ge(u),P,V,X,ue);return ue.delete(a),Ke;case hn:if(Js)return Js.call(a)==Js.call(u)}return!1}function ug(a,u,m,P,V,X){var ue=m&_,ge=lg(a),Se=ge.length,qe=lg(u),Ke=qe.length;if(Se!=Ke&&!ue)return!1;for(var nt=Se;nt--;){var pt=ge[nt];if(!(ue?pt in u:Mt.call(u,pt)))return!1}var Ot=X.get(a),Lt=X.get(u);if(Ot&&Lt)return Ot==u&&Lt==a;var tn=!0;X.set(a,u),X.set(u,a);for(var Ft=ue;++nt<Se;){pt=ge[nt];var rn=a[pt],an=u[pt];if(P)var Go=ue?P(an,rn,pt,u,a,X):P(rn,an,pt,a,u,X);if(!(Go===n?rn===an||V(rn,an,m,P,X):Go)){tn=!1;break}Ft||(Ft=pt=="constructor")}if(tn&&!Ft){var ro=a.constructor,qo=u.constructor;ro!=qo&&"constructor"in a&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(tn=!1)}return X.delete(a),X.delete(u),tn}function mu(a){return mg(hb(a,n,Sb),a+"")}function lg(a){return eu(a,ui,hg)}function cg(a){return eu(a,Eo,ub)}var fg=da?function(a){return da.get(a)}:_g;function Qd(a){for(var u=a.name+"",m=ha[u],P=Mt.call(ha,u)?m.length:0;P--;){var V=m[P],X=V.func;if(X==null||X==a)return V.name}return u}function lf(a){var u=Mt.call(G,"placeholder")?G:a;return u.placeholder}function Rt(){var a=G.iteratee||Dg;return a=a===Dg?Ts:a,arguments.length?a(arguments[0],arguments[1]):a}function eh(a,u){var m=a.__data__;return fD(u)?m[typeof u=="string"?"string":"hash"]:m.map}function dg(a){for(var u=ui(a),m=u.length;m--;){var P=u[m],V=a[P];u[m]=[P,V,fb(V)]}return u}function dc(a,u){var m=aa(a,u);return tc(m)?m:n}function iD(a){var u=Mt.call(a,Xi),m=a[Xi];try{a[Xi]=n;var P=!0}catch{}var V=la.call(a);return P&&(u?a[Xi]=m:delete a[Xi]),V}var hg=qs?function(a){return a==null?[]:(a=ut(a),je(qs(a),function(u){return Nl.call(a,u)}))}:Rg,ub=qs?function(a){for(var u=[];a;)Pt(u,hg(a)),a=ps(a);return u}:Rg,Ii=kr;(Bo&&Ii(new Bo(new ArrayBuffer(1)))!=ln||Ki&&Ii(new Ki)!=Ht||Xs&&Ii(Xs.resolve())!=kn||Ur&&Ii(new Ur)!=rr||ca&&Ii(new ca)!=gt)&&(Ii=function(a){var u=kr(a),m=u==Kn?a.constructor:n,P=m?hc(m):"";if(P)switch(P){case Ks:return ln;case zc:return Ht;case Yc:return kn;case $u:return rr;case Zs:return gt}return u});function oD(a,u,m){for(var P=-1,V=m.length;++P<V;){var X=m[P],ue=X.size;switch(X.type){case"drop":a+=ue;break;case"dropRight":u-=ue;break;case"take":u=Nn(u,a+ue);break;case"takeRight":a=Fn(a,u-ue);break}}return{start:a,end:u}}function aD(a){var u=a.match(Ia);return u?u[1].split(Zr):[]}function lb(a,u,m){u=zo(u,a);for(var P=-1,V=u.length,X=!1;++P<V;){var ue=Ds(u[P]);if(!(X=a!=null&&m(a,ue)))break;a=a[ue]}return X||++P!=V?X:(V=a==null?0:a.length,!!V&&sh(V)&&yu(ue,V)&&(Xt(a)||pc(a)))}function sD(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&Mt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function cb(a){return typeof a.constructor=="function"&&!Xf(a)?pa(ps(a)):{}}function uD(a,u,m){var P=a.constructor;switch(u){case ci:return il(a);case mt:case wt:return new P(+a);case ln:return hu(a,m);case Bi:case $i:case Vi:case _r:case Un:case Rr:case wr:case qr:case Xr:return lc(a,m);case Ht:return new P;case Xn:case cn:return new P(a);case Pr:return pu(a);case rr:return new P;case hn:return ol(a)}}function lD(a,u){var m=u.length;if(!m)return a;var P=m-1;return u[P]=(m>1?"& ":"")+u[P],u=u.join(m>2?", ":" "),a.replace(Ra,`{
13
- /* [wrapped with `+u+`] */
14
- `)}function cD(a){return Xt(a)||pc(a)||!!(ju&&a&&a[ju])}function yu(a,u){var m=typeof a;return u=u??Je,!!u&&(m=="number"||m!="symbol"&&Sr.test(a))&&a>-1&&a%1==0&&a<u}function no(a,u,m){if(!tr(m))return!1;var P=typeof u;return(P=="number"?Co(m)&&yu(u,m.length):P=="string"&&u in m)?Ja(m[u],a):!1}function pg(a,u){if(Xt(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||Yo(a)?!0:mn.test(a)||!hi.test(a)||u!=null&&a in ut(u)}function fD(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function gg(a){var u=Qd(a),m=G[u];if(typeof m!="function"||!(u in qt.prototype))return!1;if(a===m)return!0;var P=fg(m);return!!P&&a===P[0]}function dD(a){return!!Dn&&Dn in a}var hD=Hr?bu:Ig;function Xf(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Gn;return a===m}function fb(a){return a===a&&!tr(a)}function db(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==n||a in ut(m))}}function pD(a){var u=oh(a,function(P){return m.size===d&&m.clear(),P}),m=u.cache;return u}function gD(a,u){var m=a[1],P=u[1],V=m|P,X=V<(L|I|x),ue=P==x&&m==z||P==x&&m==ye&&a[7].length<=u[8]||P==(x|ye)&&u[7].length<=u[8]&&m==z;if(!(X||ue))return a;P&L&&(a[2]=u[2],V|=m&L?0:U);var ge=u[3];if(ge){var Se=a[3];a[3]=Se?af(Se,ge,u[4]):ge,a[4]=Se?xi(a[3],y):u[4]}return ge=u[5],ge&&(Se=a[5],a[5]=Se?al(Se,ge,u[6]):ge,a[6]=Se?xi(a[5],y):u[6]),ge=u[7],ge&&(a[7]=ge),P&x&&(a[8]=a[8]==null?u[8]:Nn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function vD(a){var u=[];if(a!=null)for(var m in ut(a))u.push(m);return u}function mD(a){return la.call(a)}function hb(a,u,m){return u=Fn(u===n?a.length-1:u,0),function(){for(var P=arguments,V=-1,X=Fn(P.length-u,0),ue=fe(X);++V<X;)ue[V]=P[u+V];V=-1;for(var ge=fe(u+1);++V<u;)ge[V]=P[V];return ge[u]=m(ue),H(a,this,ge)}}function pb(a,u){return u.length<2?a:Ya(a,oi(u,0,-1))}function yD(a,u){for(var m=a.length,P=Nn(u.length,m),V=vr(a);P--;){var X=u[P];a[P]=yu(X,m)?V[X]:n}return a}function vg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var gb=mb(ks),Kf=Bu||function(a,u){return yn.setTimeout(a,u)},mg=mb(ic);function vb(a,u,m){var P=u+"";return mg(a,lD(P,bD(aD(P),m)))}function mb(a){var u=0,m=0;return function(){var P=Vl(),V=Ye-(P-m);if(m=P,V>0){if(++u>=Ve)return arguments[0]}else u=0;return a.apply(n,arguments)}}function th(a,u){var m=-1,P=a.length,V=P-1;for(u=u===n?P:u;++m<u;){var X=tl(m,V),ue=a[X];a[X]=a[m],a[m]=ue}return a.length=u,a}var yb=pD(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(uo,function(m,P,V,X){u.push(V?X.replace(_o,"$1"):P||m)}),u});function Ds(a){if(typeof a=="string"||Yo(a))return a;var u=a+"";return u=="0"&&1/a==-He?"-0":u}function hc(a){if(a!=null){try{return qi.call(a)}catch{}try{return a+""}catch{}}return""}function bD(a,u){return oe(Re,function(m){var P="_."+m[0];u&m[1]&&!Ee(a,P)&&a.push(P)}),a.sort()}function bb(a){if(a instanceof qt)return a.clone();var u=new Wr(a.__wrapped__,a.__chain__);return u.__actions__=vr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function wD(a,u,m){(m?no(a,u,m):u===n)?u=1:u=Fn(en(u),0);var P=a==null?0:a.length;if(!P||u<1)return[];for(var V=0,X=0,ue=fe(Gs(P/u));V<P;)ue[X++]=oi(a,V,V+=u);return ue}function xD(a){for(var u=-1,m=a==null?0:a.length,P=0,V=[];++u<m;){var X=a[u];X&&(V[P++]=X)}return V}function SD(){var a=arguments.length;if(!a)return[];for(var u=fe(a-1),m=arguments[0],P=a;P--;)u[P-1]=arguments[P];return Pt(Xt(m)?vr(m):[m],gr(u,1))}var TD=Gt(function(a,u){return mr(a)?Ho(a,gr(u,1,mr,!0)):[]}),CD=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),Rt(m,2)):[]}),ED=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),n,m):[]});function kD(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),oi(a,u<0?0:u,P)):[]}function OD(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,0,u<0?0:u)):[]}function DD(a,u){return a&&a.length?rl(a,Rt(u,3),!0,!0):[]}function PD(a,u){return a&&a.length?rl(a,Rt(u,3),!0):[]}function _D(a,u,m,P){var V=a==null?0:a.length;return V?(m&&typeof m!="number"&&no(a,u,m)&&(m=0,P=V),Zc(a,u,m,P)):[]}function wb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),zt(a,Rt(u,3),V)}function xb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P-1;return m!==n&&(V=en(m),V=m<0?Fn(P+V,0):Nn(V,P-1)),zt(a,Rt(u,3),V,!0)}function Sb(a){var u=a==null?0:a.length;return u?gr(a,1):[]}function RD(a){var u=a==null?0:a.length;return u?gr(a,He):[]}function ID(a,u){var m=a==null?0:a.length;return m?(u=u===n?1:en(u),gr(a,u)):[]}function AD(a){for(var u=-1,m=a==null?0:a.length,P={};++u<m;){var V=a[u];P[V[0]]=V[1]}return P}function Tb(a){return a&&a.length?a[0]:n}function MD(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),on(a,u,V)}function LD(a){var u=a==null?0:a.length;return u?oi(a,0,-1):[]}var FD=Gt(function(a){var u=ct(a,Yr);return u.length&&u[0]===a[0]?xs(u):[]}),ND=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u===ba(m)?u=n:m.pop(),m.length&&m[0]===a[0]?xs(m,Rt(u,2)):[]}),jD=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u=typeof u=="function"?u:n,u&&m.pop(),m.length&&m[0]===a[0]?xs(m,n,u):[]});function BD(a,u){return a==null?"":vs.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function $D(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P;return m!==n&&(V=en(m),V=V<0?Fn(P+V,0):Nn(V,P-1)),u===u?ua(a,u,V):zt(a,go,V,!0)}function VD(a,u){return a&&a.length?Xa(a,en(u)):n}var HD=Gt(Cb);function Cb(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function UD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,Rt(m,2)):a}function WD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,n,m):a}var zD=mu(function(a,u){var m=a==null?0:a.length,P=zl(a,u);return au(a,ct(u,function(V){return yu(V,m)?+V:V}).sort(Os)),P});function YD(a,u){var m=[];if(!(a&&a.length))return m;var P=-1,V=[],X=a.length;for(u=Rt(u,3);++P<X;){var ue=a[P];u(ue,P,a)&&(m.push(ue),V.push(P))}return au(a,V),m}function yg(a){return a==null?a:Wc.call(a)}function GD(a,u,m){var P=a==null?0:a.length;return P?(m&&typeof m!="number"&&no(a,u,m)?(u=0,m=P):(u=u==null?0:en(u),m=m===n?P:en(m)),oi(a,u,m)):[]}function qD(a,u){return uu(a,u)}function XD(a,u,m){return lu(a,u,Rt(m,2))}function KD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u);if(P<m&&Ja(a[P],u))return P}return-1}function ZD(a,u){return uu(a,u,!0)}function JD(a,u,m){return lu(a,u,Rt(m,2),!0)}function QD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u,!0)-1;if(Ja(a[P],u))return P}return-1}function eP(a){return a&&a.length?rf(a):[]}function tP(a,u){return a&&a.length?rf(a,Rt(u,2)):[]}function nP(a){var u=a==null?0:a.length;return u?oi(a,1,u):[]}function rP(a,u,m){return a&&a.length?(u=m||u===n?1:en(u),oi(a,0,u<0?0:u)):[]}function iP(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,u<0?0:u,P)):[]}function oP(a,u){return a&&a.length?rl(a,Rt(u,3),!1,!0):[]}function aP(a,u){return a&&a.length?rl(a,Rt(u,3)):[]}var sP=Gt(function(a){return ya(gr(a,1,mr,!0))}),uP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),ya(gr(a,1,mr,!0),Rt(u,2))}),lP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,ya(gr(a,1,mr,!0),n,u)});function cP(a){return a&&a.length?ya(a):[]}function fP(a,u){return a&&a.length?ya(a,Rt(u,2)):[]}function dP(a,u){return u=typeof u=="function"?u:n,a&&a.length?ya(a,n,u):[]}function bg(a){if(!(a&&a.length))return[];var u=0;return a=je(a,function(m){if(mr(m))return u=Fn(m.length,u),!0}),Ce(u,function(m){return ct(a,k(m))})}function Eb(a,u){if(!(a&&a.length))return[];var m=bg(a);return u==null?m:ct(m,function(P){return H(u,n,P)})}var hP=Gt(function(a,u){return mr(a)?Ho(a,u):[]}),pP=Gt(function(a){return cu(je(a,mr))}),gP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),cu(je(a,mr),Rt(u,2))}),vP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,cu(je(a,mr),n,u)}),mP=Gt(bg);function yP(a,u){return sc(a||[],u||[],$n)}function bP(a,u){return sc(a||[],u||[],Za)}var wP=Gt(function(a){var u=a.length,m=u>1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,Eb(a,m)});function kb(a){var u=G(a);return u.__chain__=!0,u}function xP(a,u){return u(a),a}function nh(a,u){return u(a)}var SP=mu(function(a){var u=a.length,m=u?a[0]:0,P=this.__wrapped__,V=function(X){return zl(X,a)};return u>1||this.__actions__.length||!(P instanceof qt)||!yu(m)?this.thru(V):(P=P.slice(m,+m+(u?1:0)),P.__actions__.push({func:nh,args:[V],thisArg:n}),new Wr(P,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function TP(){return kb(this)}function CP(){return new Wr(this.value(),this.__chain__)}function EP(){this.__values__===n&&(this.__values__=$b(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function kP(){return this}function OP(a){for(var u,m=this;m instanceof $a;){var P=bb(m);P.__index__=0,P.__values__=n,u?V.__wrapped__=P:u=P;var V=P;m=m.__wrapped__}return V.__wrapped__=a,u}function DP(){var a=this.__wrapped__;if(a instanceof qt){var u=a;return this.__actions__.length&&(u=new qt(this)),u=u.reverse(),u.__actions__.push({func:nh,args:[yg],thisArg:n}),new Wr(u,this.__chain__)}return this.thru(yg)}function PP(){return si(this.__wrapped__,this.__actions__)}var _P=ul(function(a,u,m){Mt.call(a,m)?++a[m]:pr(a,m,1)});function RP(a,u,m){var P=Xt(a)?Ne:Xu;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}function IP(a,u){var m=Xt(a)?je:Xl;return m(a,Rt(u,3))}var AP=h(wb),MP=h(xb);function LP(a,u){return gr(rh(a,u),1)}function FP(a,u){return gr(rh(a,u),He)}function NP(a,u,m){return m=m===n?1:en(m),gr(rh(a,u),m)}function Ob(a,u){var m=Xt(a)?oe:ma;return m(a,Rt(u,3))}function Db(a,u){var m=Xt(a)?we:ql;return m(a,Rt(u,3))}var jP=ul(function(a,u,m){Mt.call(a,m)?a[m].push(u):pr(a,m,[u])});function BP(a,u,m,P){a=Co(a)?a:ff(a),m=m&&!P?en(m):0;var V=a.length;return m<0&&(m=Fn(V+m,0)),uh(a)?m<=V&&a.indexOf(u,m)>-1:!!V&&on(a,u,m)>-1}var $P=Gt(function(a,u,m){var P=-1,V=typeof u=="function",X=Co(a)?fe(a.length):[];return ma(a,function(ue){X[++P]=V?H(u,ue,m):Pi(ue,u,m)}),X}),VP=ul(function(a,u,m){pr(a,m,u)});function rh(a,u){var m=Xt(a)?ct:Cs;return m(a,Rt(u,3))}function HP(a,u,m,P){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),m=P?n:m,Xt(m)||(m=m==null?[]:[m]),el(a,u,m))}var UP=ul(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function WP(a,u,m){var P=Xt(a)?It:W,V=arguments.length<3;return P(a,Rt(u,4),m,V,ma)}function zP(a,u,m){var P=Xt(a)?Mn:W,V=arguments.length<3;return P(a,Rt(u,4),m,V,ql)}function YP(a,u){var m=Xt(a)?je:Xl;return m(a,ah(Rt(u,3)))}function GP(a){var u=Xt(a)?un:su;return u(a)}function qP(a,u,m){(m?no(a,u,m):u===n)?u=1:u=en(u);var P=Xt(a)?Oi:tf;return P(a,u)}function XP(a){var u=Xt(a)?Ua:oc;return u(a)}function KP(a){if(a==null)return 0;if(Co(a))return uh(a)?mo(a):a.length;var u=Ii(a);return u==Ht||u==rr?a.size:ou(a).length}function ZP(a,u,m){var P=Xt(a)?dn:nf;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}var JP=Gt(function(a,u){if(a==null)return[];var m=u.length;return m>1&&no(a,u[0],u[1])?u=[]:m>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),el(a,gr(u,1),[])}),ih=Ys||function(){return yn.Date.now()};function QP(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function Pb(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,qn(a,x,n,n,n,n,u)}function _b(a,u){var m;if(typeof u!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var wg=Gt(function(a,u,m){var P=L;if(m.length){var V=xi(m,lf(wg));P|=Z}return qn(a,P,u,m,V)}),Rb=Gt(function(a,u,m){var P=L|I;if(m.length){var V=xi(m,lf(Rb));P|=Z}return qn(u,P,a,m,V)});function Ib(a,u,m){u=m?n:u;var P=qn(a,z,n,n,n,n,n,u);return P.placeholder=Ib.placeholder,P}function Ab(a,u,m){u=m?n:u;var P=qn(a,re,n,n,n,n,n,u);return P.placeholder=Ab.placeholder,P}function Mb(a,u,m){var P,V,X,ue,ge,Se,qe=0,Ke=!1,nt=!1,pt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(m)&&(Ke=!!m.leading,nt="maxWait"in m,X=nt?Fn(wa(m.maxWait)||0,u):X,pt="trailing"in m?!!m.trailing:pt);function Ot(yr){var Qa=P,xu=V;return P=V=n,qe=yr,ue=a.apply(xu,Qa),ue}function Lt(yr){return qe=yr,ge=Kf(rn,u),Ke?Ot(yr):ue}function tn(yr){var Qa=yr-Se,xu=yr-qe,Qb=u-Qa;return nt?Nn(Qb,X-xu):Qb}function Ft(yr){var Qa=yr-Se,xu=yr-qe;return Se===n||Qa>=u||Qa<0||nt&&xu>=X}function rn(){var yr=ih();if(Ft(yr))return an(yr);ge=Kf(rn,tn(yr))}function an(yr){return ge=n,pt&&P?Ot(yr):(P=V=n,ue)}function Go(){ge!==n&&du(ge),qe=0,P=Se=V=ge=n}function ro(){return ge===n?ue:an(ih())}function qo(){var yr=ih(),Qa=Ft(yr);if(P=arguments,V=this,Se=yr,Qa){if(ge===n)return Lt(Se);if(nt)return du(ge),ge=Kf(rn,u),Ot(Se)}return ge===n&&(ge=Kf(rn,u)),ue}return qo.cancel=Go,qo.flush=ro,qo}var e_=Gt(function(a,u){return Gl(a,1,u)}),t_=Gt(function(a,u,m){return Gl(a,wa(u)||0,m)});function n_(a){return qn(a,ae)}function oh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var m=function(){var P=arguments,V=u?u.apply(this,P):P[0],X=m.cache;if(X.has(V))return X.get(V);var ue=a.apply(this,P);return m.cache=X.set(V,ue)||X,ue};return m.cache=new(oh.Cache||$o),m}oh.Cache=$o;function ah(a){if(typeof a!="function")throw new Yt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function r_(a){return _b(2,a)}var i_=qf(function(a,u){u=u.length==1&&Xt(u[0])?ct(u[0],xt(Rt())):ct(gr(u,1),xt(Rt()));var m=u.length;return Gt(function(P){for(var V=-1,X=Nn(P.length,m);++V<X;)P[V]=u[V].call(this,P[V]);return H(a,this,P)})}),xg=Gt(function(a,u){var m=xi(u,lf(xg));return qn(a,Z,n,u,m)}),Lb=Gt(function(a,u){var m=xi(u,lf(Lb));return qn(a,de,n,u,m)}),o_=mu(function(a,u){return qn(a,ye,n,n,n,u)});function a_(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function s_(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Fn(en(u),0),Gt(function(m){var P=m[u],V=to(m,0,u);return P&&Pt(V,P),H(a,this,V)})}function u_(a,u,m){var P=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(m)&&(P="leading"in m?!!m.leading:P,V="trailing"in m?!!m.trailing:V),Mb(a,u,{leading:P,maxWait:u,trailing:V})}function l_(a){return Pb(a,1)}function c_(a,u){return xg(fu(u),a)}function f_(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function d_(a){return zr(a,T)}function h_(a,u){return u=typeof u=="function"?u:n,zr(a,T,u)}function p_(a){return zr(a,p|T)}function g_(a,u){return u=typeof u=="function"?u:n,zr(a,p|T,u)}function v_(a,u){return u==null||Kc(a,u,ui(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var m_=ht(tu),y_=ht(function(a,u){return a>=u}),pc=iu(function(){return arguments}())?iu:function(a){return ur(a)&&Mt.call(a,"callee")&&!Nl.call(a,"callee")},Xt=fe.isArray,b_=f?xt(f):Ju;function Co(a){return a!=null&&sh(a.length)&&!bu(a)}function mr(a){return ur(a)&&Co(a)}function w_(a){return a===!0||a===!1||ur(a)&&kr(a)==mt}var ll=jl||Ig,x_=v?xt(v):Ga;function S_(a){return ur(a)&&a.nodeType===1&&!Zf(a)}function T_(a){if(a==null)return!0;if(Co(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||ll(a)||cf(a)||pc(a)))return!a.length;var u=Ii(a);if(u==Ht||u==rr)return!a.size;if(Xf(a))return!ou(a).length;for(var m in a)if(Mt.call(a,m))return!1;return!0}function C_(a,u){return Ss(a,u)}function E_(a,u,m){m=typeof m=="function"?m:n;var P=m?m(a,u):n;return P===n?Ss(a,u,n,m):!!P}function Sg(a){if(!ur(a))return!1;var u=kr(a);return u==Et||u==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Zf(a)}function k_(a){return typeof a=="number"&&Bl(a)}function bu(a){if(!tr(a))return!1;var u=kr(a);return u==rt||u==$t||u==lt||u==ji}function Fb(a){return typeof a=="number"&&a==en(a)}function sh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Je}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ur(a){return a!=null&&typeof a=="object"}var Nb=C?xt(C):qa;function O_(a,u){return a===u||ec(a,u,dg(u))}function D_(a,u,m){return m=typeof m=="function"?m:n,ec(a,u,dg(u),m)}function P_(a){return jb(a)&&a!=+a}function __(a){if(hD(a))throw new ze(o);return tc(a)}function R_(a){return a===null}function I_(a){return a==null}function jb(a){return typeof a=="number"||ur(a)&&kr(a)==Xn}function Zf(a){if(!ur(a)||kr(a)!=Kn)return!1;var u=ps(a);if(u===null)return!0;var m=Mt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&qi.call(m)==Ll}var Tg=O?xt(O):So;function A_(a){return Fb(a)&&a>=-Je&&a<=Je}var Bb=N?xt(N):Yf;function uh(a){return typeof a=="string"||!Xt(a)&&ur(a)&&kr(a)==cn}function Yo(a){return typeof a=="symbol"||ur(a)&&kr(a)==hn}var cf=B?xt(B):Gf;function M_(a){return a===n}function L_(a){return ur(a)&&Ii(a)==gt}function F_(a){return ur(a)&&kr(a)==Rn}var N_=ht(Qi),j_=ht(function(a,u){return a<=u});function $b(a){if(!a)return[];if(Co(a))return uh(a)?hr(a):vr(a);if(Fo&&a[Fo])return vo(a[Fo]());var u=Ii(a),m=u==Ht?us:u==rr?Gi:ff;return m(a)}function wu(a){if(!a)return a===0?a:0;if(a=wa(a),a===He||a===-He){var u=a<0?-1:1;return u*st}return a===a?a:0}function en(a){var u=wu(a),m=u%1;return u===u?m?u-m:u:0}function Vb(a){return a?va(en(a),0,xe):0}function wa(a){if(typeof a=="number")return a;if(Yo(a))return De;if(tr(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=tr(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=et(a);var m=fo.test(a);return m||Jr.test(a)?Na(a.slice(2),m?2:8):Ci.test(a)?De:+a}function Hb(a){return To(a,Eo(a))}function B_(a){return a?va(en(a),-Je,Je):a===0?a:0}function bn(a){return a==null?"":ai(a)}var $_=g(function(a,u){if(Xf(u)||Co(u)){To(u,ui(u),a);return}for(var m in u)Mt.call(u,m)&&$n(a,m,u[m])}),Ub=g(function(a,u){To(u,Eo(u),a)}),lh=g(function(a,u,m,P){To(u,Eo(u),a,P)}),V_=g(function(a,u,m,P){To(u,ui(u),a,P)}),H_=mu(zl);function U_(a,u){var m=pa(a);return u==null?m:Ji(m,u)}var W_=Gt(function(a,u){a=ut(a);var m=-1,P=u.length,V=P>2?u[2]:n;for(V&&no(u[0],u[1],V)&&(P=1);++m<P;)for(var X=u[m],ue=Eo(X),ge=-1,Se=ue.length;++ge<Se;){var qe=ue[ge],Ke=a[qe];(Ke===n||Ja(Ke,Gn[qe])&&!Mt.call(a,qe))&&(a[qe]=X[qe])}return a}),z_=Gt(function(a){return a.push(n,fc),H(Wb,n,a)});function Y_(a,u){return Vr(a,Rt(u,3),xo)}function G_(a,u){return Vr(a,Rt(u,3),Zl)}function q_(a,u){return a==null?a:Kl(a,Rt(u,3),Eo)}function X_(a,u){return a==null?a:Jc(a,Rt(u,3),Eo)}function K_(a,u){return a&&xo(a,Rt(u,3))}function Z_(a,u){return a&&Zl(a,Rt(u,3))}function J_(a){return a==null?[]:Zu(a,ui(a))}function Q_(a){return a==null?[]:Zu(a,Eo(a))}function Cg(a,u,m){var P=a==null?n:Ya(a,u);return P===n?m:P}function eR(a,u){return a!=null&&lb(a,u,nu)}function Eg(a,u){return a!=null&&lb(a,u,Qc)}var tR=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),a[u]=m},Og(ko)),nR=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),Mt.call(a,u)?a[u].push(m):a[u]=[m]},Rt),rR=Gt(Pi);function ui(a){return Co(a)?ga(a):ou(a)}function Eo(a){return Co(a)?ga(a,!0):Qu(a)}function iR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,u(P,V,X),P)}),m}function oR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,V,u(P,V,X))}),m}var aR=g(function(a,u,m){Es(a,u,m)}),Wb=g(function(a,u,m,P){Es(a,u,m,P)}),sR=mu(function(a,u){var m={};if(a==null)return m;var P=!1;u=ct(u,function(X){return X=zo(X,a),P||(P=X.length>1),X}),To(a,cg(a),m),P&&(m=zr(m,p|S|T,uf));for(var V=u.length;V--;)ac(m,u[V]);return m});function uR(a,u){return zb(a,ah(Rt(u)))}var lR=mu(function(a,u){return a==null?{}:Ri(a,u)});function zb(a,u){if(a==null)return{};var m=ct(cg(a),function(P){return[P]});return u=Rt(u),Wo(a,m,function(P,V){return u(P,V[0])})}function cR(a,u,m){u=zo(u,a);var P=-1,V=u.length;for(V||(V=1,a=n);++P<V;){var X=a==null?n:a[Ds(u[P])];X===n&&(P=V,X=m),a=bu(X)?X.call(a):X}return a}function fR(a,u,m){return a==null?a:Za(a,u,m)}function dR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:Za(a,u,m,P)}var Yb=sr(ui),Gb=sr(Eo);function hR(a,u,m){var P=Xt(a),V=P||ll(a)||cf(a);if(u=Rt(u,4),m==null){var X=a&&a.constructor;V?m=P?new X:[]:tr(a)?m=bu(X)?pa(ps(a)):{}:m={}}return(V?oe:xo)(a,function(ue,ge,Se){return u(m,ue,ge,Se)}),m}function pR(a,u){return a==null?!0:ac(a,u)}function gR(a,u,m){return a==null?a:nl(a,u,fu(m))}function vR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:nl(a,u,fu(m),P)}function ff(a){return a==null?[]:Nt(a,ui(a))}function mR(a){return a==null?[]:Nt(a,Eo(a))}function yR(a,u,m){return m===n&&(m=u,u=n),m!==n&&(m=wa(m),m=m===m?m:0),u!==n&&(u=wa(u),u=u===u?u:0),va(wa(a),u,m)}function bR(a,u,m){return u=wu(u),m===n?(m=u,u=0):m=wu(m),a=wa(a),ru(a,u,m)}function wR(a,u,m){if(m&&typeof m!="boolean"&&no(a,u,m)&&(u=m=n),m===n&&(typeof u=="boolean"?(m=u,u=n):typeof a=="boolean"&&(m=a,a=n)),a===n&&u===n?(a=0,u=1):(a=wu(a),u===n?(u=a,a=0):u=wu(u)),a>u){var P=a;a=u,u=P}if(m||a%1||u%1){var V=jo();return Nn(a+V*(u-a+dr("1e-"+((V+"").length-1))),u)}return tl(a,u)}var xR=se(function(a,u,m){return u=u.toLowerCase(),a+(m?qb(u):u)});function qb(a){return kg(bn(a).toLowerCase())}function Xb(a){return a=bn(a),a&&a.replace(Ir,Yn).replace(Ma,"")}function SR(a,u,m){a=bn(a),u=ai(u);var P=a.length;m=m===n?P:va(en(m),0,P);var V=m;return m-=u.length,m>=0&&a.slice(m,V)==u}function TR(a){return a=bn(a),a&&Hi.test(a)?a.replace(Zt,oa):a}function CR(a){return a=bn(a),a&&pi.test(a)?a.replace(xr,"\\$&"):a}var ER=se(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),kR=se(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),OR=K("toLowerCase");function DR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;if(!u||P>=u)return a;var V=(u-P)/2;return ce(gs(V),m)+a+ce(Gs(V),m)}function PR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?a+ce(u-P,m):a}function _R(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?ce(u-P,m)+a:a}function RR(a,u,m){return m||u==null?u=0:u&&(u=+u),Hl(bn(a).replace(fn,""),u||0)}function IR(a,u,m){return(m?no(a,u,m):u===n)?u=1:u=en(u),rc(bn(a),u)}function AR(){var a=arguments,u=bn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var MR=se(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function LR(a,u,m){return m&&typeof m!="number"&&no(a,u,m)&&(u=m=n),m=m===n?xe:m>>>0,m?(a=bn(a),a&&(typeof u=="string"||u!=null&&!Tg(u))&&(u=ai(u),!u&&ii(a))?to(hr(a),0,m):a.split(u,m)):[]}var FR=se(function(a,u,m){return a+(m?" ":"")+kg(u)});function NR(a,u,m){return a=bn(a),m=m==null?0:va(en(m),0,a.length),u=ai(u),a.slice(m,m+u.length)==u}function jR(a,u,m){var P=G.templateSettings;m&&no(a,u,m)&&(u=n),a=bn(a),u=lh({},u,P,cc);var V=lh({},u.imports,P.imports,cc),X=ui(V),ue=Nt(V,X),ge,Se,qe=0,Ke=u.interpolate||Qr,nt="__p += '",pt=At((u.escape||Qr).source+"|"+Ke.source+"|"+(Ke===di?Ti:Qr).source+"|"+(u.evaluate||Qr).source+"|$","g"),Ot="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
15
- `;a.replace(pt,function(Ft,rn,an,Go,ro,qo){return an||(an=Go),nt+=a.slice(qe,qo).replace(Ar,ss),rn&&(ge=!0,nt+=`' +
16
- __e(`+rn+`) +
17
- '`),ro&&(Se=!0,nt+=`';
18
- `+ro+`;
19
- __p += '`),an&&(nt+=`' +
20
- ((__t = (`+an+`)) == null ? '' : __t) +
21
- '`),qe=qo+Ft.length,Ft}),nt+=`';
22
- `;var Lt=Mt.call(u,"variable")&&u.variable;if(!Lt)nt=`with (obj) {
23
- `+nt+`
24
- }
25
- `;else if(co.test(Lt))throw new ze(l);nt=(Se?nt.replace(Po,""):nt).replace(Zn,"$1").replace(Kr,"$1;"),nt="function("+(Lt||"obj")+`) {
26
- `+(Lt?"":`obj || (obj = {});
27
- `)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(Se?`, __j = Array.prototype.join;
28
- function print() { __p += __j.call(arguments, '') }
29
- `:`;
30
- `)+nt+`return __p
31
- }`;var tn=Zb(function(){return ft(X,Ot+"return "+nt).apply(n,ue)});if(tn.source=nt,Sg(tn))throw tn;return tn}function BR(a){return bn(a).toLowerCase()}function $R(a){return bn(a).toUpperCase()}function VR(a,u,m){if(a=bn(a),a&&(m||u===n))return et(a);if(!a||!(u=ai(u)))return a;var P=hr(a),V=hr(u),X=Ct(P,V),ue=Bn(P,V)+1;return to(P,X,ue).join("")}function HR(a,u,m){if(a=bn(a),a&&(m||u===n))return a.slice(0,Ws(a)+1);if(!a||!(u=ai(u)))return a;var P=hr(a),V=Bn(P,hr(u))+1;return to(P,0,V).join("")}function UR(a,u,m){if(a=bn(a),a&&(m||u===n))return a.replace(fn,"");if(!a||!(u=ai(u)))return a;var P=hr(a),V=Ct(P,hr(u));return to(P,V).join("")}function WR(a,u){var m=Me,P=Ze;if(tr(u)){var V="separator"in u?u.separator:V;m="length"in u?en(u.length):m,P="omission"in u?ai(u.omission):P}a=bn(a);var X=a.length;if(ii(a)){var ue=hr(a);X=ue.length}if(m>=X)return a;var ge=m-mo(P);if(ge<1)return P;var Se=ue?to(ue,0,ge).join(""):a.slice(0,ge);if(V===n)return Se+P;if(ue&&(ge+=Se.length-ge),Tg(V)){if(a.slice(ge).search(V)){var qe,Ke=Se;for(V.global||(V=At(V.source,bn(gi.exec(V))+"g")),V.lastIndex=0;qe=V.exec(Ke);)var nt=qe.index;Se=Se.slice(0,nt===n?ge:nt)}}else if(a.indexOf(ai(V),ge)!=ge){var pt=Se.lastIndexOf(V);pt>-1&&(Se=Se.slice(0,pt))}return Se+P}function zR(a){return a=bn(a),a&&fi.test(a)?a.replace(ir,ls):a}var YR=se(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),kg=K("toUpperCase");function Kb(a,u,m){return a=bn(a),u=m?n:u,u===n?Hs(a)?ve(a):Wt(a):a.match(u)||[]}var Zb=Gt(function(a,u){try{return H(a,n,u)}catch(m){return Sg(m)?m:new ze(m)}}),GR=mu(function(a,u){return oe(u,function(m){m=Ds(m),pr(a,m,wg(a[m],a))}),a});function qR(a){var u=a==null?0:a.length,m=Rt();return a=u?ct(a,function(P){if(typeof P[1]!="function")throw new Yt(s);return[m(P[0]),P[1]]}):[],Gt(function(P){for(var V=-1;++V<u;){var X=a[V];if(H(X[0],this,P))return H(X[1],this,P)}})}function XR(a){return Yl(zr(a,p))}function Og(a){return function(){return a}}function KR(a,u){return a==null||a!==a?u:a}var ZR=b(),JR=b(!0);function ko(a){return a}function Dg(a){return Ts(typeof a=="function"?a:zr(a,p))}function QR(a){return Uo(zr(a,p))}function eI(a,u){return eo(a,zr(u,p))}var tI=Gt(function(a,u){return function(m){return Pi(m,a,u)}}),nI=Gt(function(a,u){return function(m){return Pi(a,m,u)}});function Pg(a,u,m){var P=ui(u),V=Zu(u,P);m==null&&!(tr(u)&&(V.length||!P.length))&&(m=u,u=a,a=this,V=Zu(u,ui(u)));var X=!(tr(m)&&"chain"in m)||!!m.chain,ue=bu(a);return oe(V,function(ge){var Se=u[ge];a[ge]=Se,ue&&(a.prototype[ge]=function(){var qe=this.__chain__;if(X||qe){var Ke=a(this.__wrapped__),nt=Ke.__actions__=vr(this.__actions__);return nt.push({func:Se,args:arguments,thisArg:a}),Ke.__chain__=qe,Ke}return Se.apply(a,Pt([this.value()],arguments))})}),a}function rI(){return yn._===this&&(yn._=Pn),this}function _g(){}function iI(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var oI=ie(ct),aI=ie(Ne),sI=ie(dn);function Jb(a){return pg(a)?k(Ds(a)):nc(a)}function uI(a){return function(u){return a==null?n:Ya(a,u)}}var lI=Qe(),cI=Qe(!0);function Rg(){return[]}function Ig(){return!1}function fI(){return{}}function dI(){return""}function hI(){return!0}function pI(a,u){if(a=en(a),a<1||a>Je)return[];var m=xe,P=Nn(a,xe);u=Rt(u),a-=xe;for(var V=Ce(P,u);++m<a;)u(m);return V}function gI(a){return Xt(a)?ct(a,Ds):Yo(a)?[a]:vr(yb(bn(a)))}function vI(a){var u=++Uc;return bn(a)+u}var mI=Y(function(a,u){return a+u},0),yI=_t("ceil"),bI=Y(function(a,u){return a/u},1),wI=_t("floor");function xI(a){return a&&a.length?Ku(a,ko,tu):n}function SI(a,u){return a&&a.length?Ku(a,Rt(u,2),tu):n}function TI(a){return Er(a,ko)}function CI(a,u){return Er(a,Rt(u,2))}function EI(a){return a&&a.length?Ku(a,ko,Qi):n}function kI(a,u){return a&&a.length?Ku(a,Rt(u,2),Qi):n}var OI=Y(function(a,u){return a*u},1),DI=_t("round"),PI=Y(function(a,u){return a-u},0);function _I(a){return a&&a.length?Te(a,ko):0}function RI(a,u){return a&&a.length?Te(a,Rt(u,2)):0}return G.after=QP,G.ary=Pb,G.assign=$_,G.assignIn=Ub,G.assignInWith=lh,G.assignWith=V_,G.at=H_,G.before=_b,G.bind=wg,G.bindAll=GR,G.bindKey=Rb,G.castArray=f_,G.chain=kb,G.chunk=wD,G.compact=xD,G.concat=SD,G.cond=qR,G.conforms=XR,G.constant=Og,G.countBy=_P,G.create=U_,G.curry=Ib,G.curryRight=Ab,G.debounce=Mb,G.defaults=W_,G.defaultsDeep=z_,G.defer=e_,G.delay=t_,G.difference=TD,G.differenceBy=CD,G.differenceWith=ED,G.drop=kD,G.dropRight=OD,G.dropRightWhile=DD,G.dropWhile=PD,G.fill=_D,G.filter=IP,G.flatMap=LP,G.flatMapDeep=FP,G.flatMapDepth=NP,G.flatten=Sb,G.flattenDeep=RD,G.flattenDepth=ID,G.flip=n_,G.flow=ZR,G.flowRight=JR,G.fromPairs=AD,G.functions=J_,G.functionsIn=Q_,G.groupBy=jP,G.initial=LD,G.intersection=FD,G.intersectionBy=ND,G.intersectionWith=jD,G.invert=tR,G.invertBy=nR,G.invokeMap=$P,G.iteratee=Dg,G.keyBy=VP,G.keys=ui,G.keysIn=Eo,G.map=rh,G.mapKeys=iR,G.mapValues=oR,G.matches=QR,G.matchesProperty=eI,G.memoize=oh,G.merge=aR,G.mergeWith=Wb,G.method=tI,G.methodOf=nI,G.mixin=Pg,G.negate=ah,G.nthArg=iI,G.omit=sR,G.omitBy=uR,G.once=r_,G.orderBy=HP,G.over=oI,G.overArgs=i_,G.overEvery=aI,G.overSome=sI,G.partial=xg,G.partialRight=Lb,G.partition=UP,G.pick=lR,G.pickBy=zb,G.property=Jb,G.propertyOf=uI,G.pull=HD,G.pullAll=Cb,G.pullAllBy=UD,G.pullAllWith=WD,G.pullAt=zD,G.range=lI,G.rangeRight=cI,G.rearg=o_,G.reject=YP,G.remove=YD,G.rest=a_,G.reverse=yg,G.sampleSize=qP,G.set=fR,G.setWith=dR,G.shuffle=XP,G.slice=GD,G.sortBy=JP,G.sortedUniq=eP,G.sortedUniqBy=tP,G.split=LR,G.spread=s_,G.tail=nP,G.take=rP,G.takeRight=iP,G.takeRightWhile=oP,G.takeWhile=aP,G.tap=xP,G.throttle=u_,G.thru=nh,G.toArray=$b,G.toPairs=Yb,G.toPairsIn=Gb,G.toPath=gI,G.toPlainObject=Hb,G.transform=hR,G.unary=l_,G.union=sP,G.unionBy=uP,G.unionWith=lP,G.uniq=cP,G.uniqBy=fP,G.uniqWith=dP,G.unset=pR,G.unzip=bg,G.unzipWith=Eb,G.update=gR,G.updateWith=vR,G.values=ff,G.valuesIn=mR,G.without=hP,G.words=Kb,G.wrap=c_,G.xor=pP,G.xorBy=gP,G.xorWith=vP,G.zip=mP,G.zipObject=yP,G.zipObjectDeep=bP,G.zipWith=wP,G.entries=Yb,G.entriesIn=Gb,G.extend=Ub,G.extendWith=lh,Pg(G,G),G.add=mI,G.attempt=Zb,G.camelCase=xR,G.capitalize=qb,G.ceil=yI,G.clamp=yR,G.clone=d_,G.cloneDeep=p_,G.cloneDeepWith=g_,G.cloneWith=h_,G.conformsTo=v_,G.deburr=Xb,G.defaultTo=KR,G.divide=bI,G.endsWith=SR,G.eq=Ja,G.escape=TR,G.escapeRegExp=CR,G.every=RP,G.find=AP,G.findIndex=wb,G.findKey=Y_,G.findLast=MP,G.findLastIndex=xb,G.findLastKey=G_,G.floor=wI,G.forEach=Ob,G.forEachRight=Db,G.forIn=q_,G.forInRight=X_,G.forOwn=K_,G.forOwnRight=Z_,G.get=Cg,G.gt=m_,G.gte=y_,G.has=eR,G.hasIn=Eg,G.head=Tb,G.identity=ko,G.includes=BP,G.indexOf=MD,G.inRange=bR,G.invoke=rR,G.isArguments=pc,G.isArray=Xt,G.isArrayBuffer=b_,G.isArrayLike=Co,G.isArrayLikeObject=mr,G.isBoolean=w_,G.isBuffer=ll,G.isDate=x_,G.isElement=S_,G.isEmpty=T_,G.isEqual=C_,G.isEqualWith=E_,G.isError=Sg,G.isFinite=k_,G.isFunction=bu,G.isInteger=Fb,G.isLength=sh,G.isMap=Nb,G.isMatch=O_,G.isMatchWith=D_,G.isNaN=P_,G.isNative=__,G.isNil=I_,G.isNull=R_,G.isNumber=jb,G.isObject=tr,G.isObjectLike=ur,G.isPlainObject=Zf,G.isRegExp=Tg,G.isSafeInteger=A_,G.isSet=Bb,G.isString=uh,G.isSymbol=Yo,G.isTypedArray=cf,G.isUndefined=M_,G.isWeakMap=L_,G.isWeakSet=F_,G.join=BD,G.kebabCase=ER,G.last=ba,G.lastIndexOf=$D,G.lowerCase=kR,G.lowerFirst=OR,G.lt=N_,G.lte=j_,G.max=xI,G.maxBy=SI,G.mean=TI,G.meanBy=CI,G.min=EI,G.minBy=kI,G.stubArray=Rg,G.stubFalse=Ig,G.stubObject=fI,G.stubString=dI,G.stubTrue=hI,G.multiply=OI,G.nth=VD,G.noConflict=rI,G.noop=_g,G.now=ih,G.pad=DR,G.padEnd=PR,G.padStart=_R,G.parseInt=RR,G.random=wR,G.reduce=WP,G.reduceRight=zP,G.repeat=IR,G.replace=AR,G.result=cR,G.round=DI,G.runInContext=J,G.sample=GP,G.size=KP,G.snakeCase=MR,G.some=ZP,G.sortedIndex=qD,G.sortedIndexBy=XD,G.sortedIndexOf=KD,G.sortedLastIndex=ZD,G.sortedLastIndexBy=JD,G.sortedLastIndexOf=QD,G.startCase=FR,G.startsWith=NR,G.subtract=PI,G.sum=_I,G.sumBy=RI,G.template=jR,G.times=pI,G.toFinite=wu,G.toInteger=en,G.toLength=Vb,G.toLower=BR,G.toNumber=wa,G.toSafeInteger=B_,G.toString=bn,G.toUpper=$R,G.trim=VR,G.trimEnd=HR,G.trimStart=UR,G.truncate=WR,G.unescape=zR,G.uniqueId=vI,G.upperCase=YR,G.upperFirst=kg,G.each=Ob,G.eachRight=Db,G.first=Tb,Pg(G,function(){var a={};return xo(G,function(u,m){Mt.call(G.prototype,m)||(a[m]=u)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,u){qt.prototype[a]=function(m){m=m===n?1:Fn(en(m),0);var P=this.__filtered__&&!u?new qt(this):this.clone();return P.__filtered__?P.__takeCount__=Nn(m,P.__takeCount__):P.__views__.push({size:Nn(m,xe),type:a+(P.__dir__<0?"Right":"")}),P},qt.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var m=u+1,P=m==ot||m==Oe;qt.prototype[a]=function(V){var X=this.clone();return X.__iteratees__.push({iteratee:Rt(V,3),type:m}),X.__filtered__=X.__filtered__||P,X}}),oe(["head","last"],function(a,u){var m="take"+(u?"Right":"");qt.prototype[a]=function(){return this[m](1).value()[0]}}),oe(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[m](1)}}),qt.prototype.compact=function(){return this.filter(ko)},qt.prototype.find=function(a){return this.filter(a).head()},qt.prototype.findLast=function(a){return this.reverse().find(a)},qt.prototype.invokeMap=Gt(function(a,u){return typeof a=="function"?new qt(this):this.map(function(m){return Pi(m,a,u)})}),qt.prototype.reject=function(a){return this.filter(ah(Rt(a)))},qt.prototype.slice=function(a,u){a=en(a);var m=this;return m.__filtered__&&(a>0||u<0)?new qt(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=en(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(xe)},xo(qt.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),V=G[P?"take"+(u=="last"?"Right":""):u],X=P||/^find/.test(u);V&&(G.prototype[u]=function(){var ue=this.__wrapped__,ge=P?[1]:arguments,Se=ue instanceof qt,qe=ge[0],Ke=Se||Xt(ue),nt=function(rn){var an=V.apply(G,Pt([rn],ge));return P&&pt?an[0]:an};Ke&&m&&typeof qe=="function"&&qe.length!=1&&(Se=Ke=!1);var pt=this.__chain__,Ot=!!this.__actions__.length,Lt=X&&!pt,tn=Se&&!Ot;if(!X&&Ke){ue=tn?ue:new qt(this);var Ft=a.apply(ue,ge);return Ft.__actions__.push({func:nh,args:[nt],thisArg:n}),new Wr(Ft,pt)}return Lt&&tn?a.apply(this,ge):(Ft=this.thru(nt),Lt?P?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ln[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(P&&!this.__chain__){var X=this.value();return u.apply(Xt(X)?X:[],V)}return this[m](function(ue){return u.apply(Xt(ue)?ue:[],V)})}}),xo(qt.prototype,function(a,u){var m=G[u];if(m){var P=m.name+"";Mt.call(ha,P)||(ha[P]=[]),ha[P].push({name:u,func:m})}}),ha[D(n,I).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Vu,qt.prototype.reverse=ys,qt.prototype.value=Qs,G.prototype.at=SP,G.prototype.chain=TP,G.prototype.commit=CP,G.prototype.next=EP,G.prototype.plant=OP,G.prototype.reverse=DP,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=PP,G.prototype.first=G.prototype.head,Fo&&(G.prototype[Fo]=kP),G},ke=_e();wi?((wi.exports=ke)._=ke,Lo._=ke):yn._=ke}).call(Ko)})(ip,ip.exports);var aT=ip.exports;const $M=Bc(aT);var VM=typeof global=="object"&&global&&global.Object===Object&&global;const HM=VM;var UM=typeof self=="object"&&self&&self.Object===Object&&self,WM=HM||UM||Function("return this")();const sT=WM;var zM=sT.Symbol;const op=zM;var uT=Object.prototype,YM=uT.hasOwnProperty,GM=uT.toString,td=op?op.toStringTag:void 0;function qM(e){var t=YM.call(e,td),n=e[td];try{e[td]=void 0;var r=!0}catch{}var i=GM.call(e);return r&&(t?e[td]=n:delete e[td]),i}var XM=Object.prototype,KM=XM.toString;function ZM(e){return KM.call(e)}var JM="[object Null]",QM="[object Undefined]",H0=op?op.toStringTag:void 0;function eL(e){return e==null?e===void 0?QM:JM:H0&&H0 in Object(e)?qM(e):ZM(e)}function tL(e){return e!=null&&typeof e=="object"}var nL="[object Symbol]";function rL(e){return typeof e=="symbol"||tL(e)&&eL(e)==nL}var iL=/\s/;function oL(e){for(var t=e.length;t--&&iL.test(e.charAt(t)););return t}var aL=/^\s+/;function sL(e){return e&&e.slice(0,oL(e)+1).replace(aL,"")}function ap(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U0=0/0,uL=/^[-+]0x[0-9a-f]+$/i,lL=/^0b[01]+$/i,cL=/^0o[0-7]+$/i,fL=parseInt;function W0(e){if(typeof e=="number")return e;if(rL(e))return U0;if(ap(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ap(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sL(e);var n=lL.test(e);return n||cL.test(e)?fL(e.slice(2),n?2:8):uL.test(e)?U0:+e}var dL=function(){return sT.Date.now()};const jg=dL;var hL="Expected a function",pL=Math.max,gL=Math.min;function Vh(e,t,n){var r,i,o,s,l,c,d=0,y=!1,p=!1,S=!0;if(typeof e!="function")throw new TypeError(hL);t=W0(t)||0,ap(n)&&(y=!!n.leading,p="maxWait"in n,o=p?pL(W0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function T(de){var x=r,ye=i;return r=i=void 0,d=de,s=e.apply(ye,x),s}function _(de){return d=de,l=setTimeout(I,t),y?T(de):s}function R(de){var x=de-c,ye=de-d,ae=t-x;return p?gL(ae,o-ye):ae}function L(de){var x=de-c,ye=de-d;return c===void 0||x>=t||x<0||p&&ye>=o}function I(){var de=jg();if(L(de))return U(de);l=setTimeout(I,R(de))}function U(de){return l=void 0,S&&r?T(de):(r=i=void 0,s)}function z(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function re(){return l===void 0?s:U(jg())}function Z(){var de=jg(),x=L(de);if(r=arguments,i=this,c=de,x){if(l===void 0)return _(c);if(p)return clearTimeout(l),l=setTimeout(I,t),T(c)}return l===void 0&&(l=setTimeout(I,t)),s}return Z.cancel=z,Z.flush=re,Z}var vL="Expected a function";function mL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(vL);return ap(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vh(e,t,{leading:r,maxWait:t,trailing:i})}var yL=!!(typeof window<"u"&&window.document&&window.document.createElement),bL=yL;const lT=Bc(bL);var wf=function(){return wf=Object.assign||function(t){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)&&(t[o]=n[o])}return t},wf.apply(this,arguments)},yf=null,z0=null;lT&&window.addEventListener("resize",function(){z0!==window.devicePixelRatio&&(z0=window.devicePixelRatio,yf=null)});function Y0(){if(yf===null){if(typeof document>"u")return yf=0,yf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),yf=n}return yf}function cT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function fT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var dT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(l,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function hT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function pT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function gT(e){return".".concat(e.split(" ").join("."))}var wL=Object.freeze({__proto__:null,getElementWindow:cT,getElementDocument:fT,getOptions:dT,addClasses:hT,removeClasses:pT,classNamesToQuery:gT}),cl=cT,Bg=fT,xL=dT,fl=hT,dl=pT,Oo=gT,hh=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=cl(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,fl(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(){dl(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(fl(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){dl(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,l,c,d,y,p,S,T,_,R;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,I=r.axis[r.draggedAxis].track,U=(s=(o=I.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,z=r.axis[r.draggedAxis].scrollbar,re=(c=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,Z=parseInt((y=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var de=L-((S=(p=I.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;de=r.draggedAxis==="x"&&r.isRtl?((_=(T=I.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-z.size-de:de;var x=de/(U-z.size),ye=x*(re-Z);r.draggedAxis==="x"&&r.isRtl&&(ye=!((R=e.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-ye:ye),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ye}},this.onEndDrag=function(i){var o=Bg(r.el),s=cl(r.el);i.preventDefault(),i.stopPropagation(),dl(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=wf(wf({},e.defaultOptions),n),this.classNames=wf(wf({},e.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=mL(this._onMouseMove,64),this.onWindowResize=Vh(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vh(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vh(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.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:Y0()}catch{return Y0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Bg(t),i=cl(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){lT&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(fl(this.axis.x.scrollbar.el,this.classNames.visible),fl(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=cl(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(){t.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(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=cl(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=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 c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>y,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-S,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>y-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,l;return l=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var y=d/(s-c),p=~~((l-o.size)*y);p=t==="x"&&this.isRtl?-p+(l-o.size):p,o.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(fl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(dl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!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(t),fl(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?fl(n.scrollbar.el,this.classNames.hover):dl(n.scrollbar.el,this.classNames.hover)):(dl(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),dl(this.axis[t].track.el,this.classNames.hover),dl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=Bg(this.el),o=cl(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,fl(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)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,l;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=cl(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,p=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,S=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-p:this.mouseX-p,R=_<0?-1:1,L=R===-1?T-S:T+S,I=40,U=function(){r.contentWrapperEl&&(R===-1?T>L&&(T-=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)):T<L&&(T+=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)))};U()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=cl(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),t.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=xL,e.helpers=wL,e}(),Xo=function(){return Xo=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Xo.apply(this,arguments)};function SL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var vT=Sn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=SL(e,["children","scrollableNodeProps"]),s=Sn.useRef(),l=Sn.useRef(),c=Sn.useRef(),d={},y={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(hh.defaultOptions,T)?d[T]=o[T]:y[T]=o[T]});var p=Xo(Xo({},hh.defaultOptions.classNames),d.classNames),S=Xo(Xo({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||hh.defaultOptions.ariaLabel});return Sn.useEffect(function(){var T;return l.current=S.ref?S.ref.current:l.current,s.current&&(T=new hh(s.current,Xo(Xo(Xo({},d),l.current&&{scrollableNode:l.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(T):t&&(t.current=T)),function(){T==null||T.unMount(),T=null,typeof t=="function"&&t(null)}},[]),Sn.createElement("div",Xo({"data-simplebar":"init",ref:s},y),Sn.createElement("div",{className:p.wrapper},Sn.createElement("div",{className:p.heightAutoObserverWrapperEl},Sn.createElement("div",{className:p.heightAutoObserverEl})),Sn.createElement("div",{className:p.mask},Sn.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Xo(Xo({},S),{ref:l}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Sn.createElement("div",Xo({},S),Sn.createElement("div",{className:p.contentEl},n)))),Sn.createElement("div",{className:p.placeholder})),Sn.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},Sn.createElement("div",{className:p.scrollbar})),Sn.createElement("div",{className:"".concat(p.track," simplebar-vertical")},Sn.createElement("div",{className:p.scrollbar})))});vT.displayName="SimpleBar";const mT=`[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}
32
- `;function yT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yT(e))&&(r&&(r+=" "),r+=t);return r}const Od=e=>typeof e=="number"&&!isNaN(e),Oc=e=>typeof e=="string",Zo=e=>typeof e=="function",Hh=e=>Oc(e)||Zo(e)?e:null,Yv=e=>Q.isValidElement(e)||Oc(e)||Zo(e)||Od(e);function TL(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Rp(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:d,done:y,nodeRef:p,isIn:S,playToast:T}=s;const _=r?`${t}--${c}`:t,R=r?`${n}--${c}`:n,L=Q.useRef(0);return Q.useLayoutEffect(()=>{const I=p.current,U=_.split(" "),z=re=>{re.target===p.current&&(T(),I.removeEventListener("animationend",z),I.removeEventListener("animationcancel",z),L.current===0&&re.type!=="animationcancel"&&I.classList.remove(...U))};I.classList.add(...U),I.addEventListener("animationend",z),I.addEventListener("animationcancel",z)},[]),Q.useEffect(()=>{const I=p.current,U=()=>{I.removeEventListener("animationend",U),i?TL(I,y,o):y()};S||(d?U():(L.current=1,I.className+=` ${R}`,I.addEventListener("animationend",U)))},[S]),Q.createElement(Q.Fragment,null,l)}}function G0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const so=new Map;let Dd=[];const Gv=new Set,CL=e=>Gv.forEach(t=>t(e)),bT=()=>so.size>0;function wT(e,t){var n;if(t)return!((n=so.get(t))==null||!n.isToastActive(e));let r=!1;return so.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function xT(e,t){Yv(e)&&(bT()||Dd.push({content:e,options:t}),so.forEach(n=>{n.buildToast(e,t)}))}function q0(e,t){so.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function EL(e){const{subscribe:t,getSnapshot:n,setProps:r}=Q.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(y,p,S){let T=1,_=0,R=[],L=[],I=[],U=p;const z=new Map,re=new Set,Z=()=>{I=Array.from(z.values()),re.forEach(ye=>ye())},de=ye=>{L=ye==null?[]:L.filter(ae=>ae!==ye),Z()},x=ye=>{const{toastId:ae,onOpen:Me,updateId:Ze,children:Ve}=ye.props,Ye=Ze==null;ye.staleId&&z.delete(ye.staleId),z.set(ae,ye),L=[...L,ye.props.toastId].filter(ot=>ot!==ye.staleId),Z(),S(G0(ye,Ye?"added":"updated")),Ye&&Zo(Me)&&Me(Q.isValidElement(Ve)&&Ve.props)};return{id:y,props:U,observe:ye=>(re.add(ye),()=>re.delete(ye)),toggle:(ye,ae)=>{z.forEach(Me=>{ae!=null&&ae!==Me.props.toastId||Zo(Me.toggle)&&Me.toggle(ye)})},removeToast:de,toasts:z,clearQueue:()=>{_-=R.length,R=[]},buildToast:(ye,ae)=>{if((We=>{let{containerId:Ue,toastId:Re,updateId:Le}=We;const Xe=Ue?Ue!==y:y!==1,lt=z.has(Re)&&Le==null;return Xe||lt})(ae))return;const{toastId:Me,updateId:Ze,data:Ve,staleId:Ye,delay:ot}=ae,me=()=>{de(Me)},Oe=Ze==null;Oe&&_++;const He={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(ae).filter(We=>{let[Ue,Re]=We;return Re!=null})),toastId:Me,updateId:Ze,data:Ve,closeToast:me,isIn:!1,className:Hh(ae.className||U.toastClassName),bodyClassName:Hh(ae.bodyClassName||U.bodyClassName),progressClassName:Hh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Je=ae.autoClose,st=U.autoClose,Je===!1||Od(Je)&&Je>0?Je:st),deleteToast(){const We=z.get(Me),{onClose:Ue,children:Re}=We.props;Zo(Ue)&&Ue(Q.isValidElement(Re)&&Re.props),S(G0(We,"removed")),z.delete(Me),_--,_<0&&(_=0),R.length>0?x(R.shift()):Z()}};var Je,st;He.closeButton=U.closeButton,ae.closeButton===!1||Yv(ae.closeButton)?He.closeButton=ae.closeButton:ae.closeButton===!0&&(He.closeButton=!Yv(U.closeButton)||U.closeButton);let De=ye;Q.isValidElement(ye)&&!Oc(ye.type)?De=Q.cloneElement(ye,{closeToast:me,toastProps:He,data:Ve}):Zo(ye)&&(De=ye({closeToast:me,toastProps:He,data:Ve}));const xe={content:De,props:He,staleId:Ye};U.limit&&U.limit>0&&_>U.limit&&Oe?R.push(xe):Od(ot)?setTimeout(()=>{x(xe)},ot):x(xe)},setProps(ye){U=ye},setToggle:(ye,ae)=>{z.get(ye).toggle=ae},isToastActive:ye=>L.some(ae=>ae===ye),getSnapshot:()=>U.newestOnTop?I.reverse():I}}(s,o,CL);so.set(s,c);const d=c.observe(l);return Dd.forEach(y=>xT(y.content,y.options)),Dd=[],()=>{d(),so.delete(s)}},setProps(l){var c;(c=so.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=so.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=Q.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:wT,count:i==null?void 0:i.length}}function kL(e){const[t,n]=Q.useState(!1),[r,i]=Q.useState(!1),o=Q.useRef(null),s=Q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:y,closeOnClick:p}=e;var S,T;function _(){n(!0)}function R(){n(!1)}function L(z){const re=o.current;s.canDrag&&re&&(s.didMove=!0,t&&R(),s.delta=e.draggableDirection==="x"?z.clientX-s.start:z.clientY-s.start,s.start!==z.clientX&&(s.canCloseOnClick=!1),re.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,re.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const z=o.current;if(s.canDrag&&s.didMove&&z){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();z.style.transition="transform 0.2s, opacity 0.2s",z.style.removeProperty("transform"),z.style.removeProperty("opacity")}}(T=so.get((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(S.id,S.fn),Q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||R(),window.addEventListener("focus",_),window.addEventListener("blur",R),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",R)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(z){if(e.draggable===!0||e.draggable===z.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const re=o.current;s.canCloseOnClick=!0,s.canDrag=!0,re.style.transition="none",e.draggableDirection==="x"?(s.start=z.clientX,s.removalDistance=re.offsetWidth*(e.draggablePercent/100)):(s.start=z.clientY,s.removalDistance=re.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(z){const{top:re,bottom:Z,left:de,right:x}=o.current.getBoundingClientRect();z.nativeEvent.type!=="touchend"&&e.pauseOnHover&&z.clientX>=de&&z.clientX<=x&&z.clientY>=re&&z.clientY<=Z?R():_()}};return l&&c&&(U.onMouseEnter=R,e.stacked||(U.onMouseLeave=_)),p&&(U.onClick=z=>{y&&y(z),s.canCloseOnClick&&d()}),{playToast:_,pauseToast:R,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function OL(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:c,progress:d,rtl:y,isIn:p,theme:S}=e;const T=o||c&&d===0,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(_.transform=`scaleX(${d})`);const R=Eu("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),L=Zo(s)?s({rtl:y,type:i,defaultClassName:R}):Eu(R,s),I={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return Q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},Q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),Q.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:_,...I}))}let DL=1;const ST=()=>""+DL++;function PL(e){return e&&(Oc(e.toastId)||Od(e.toastId))?e.toastId:ST()}function ld(e,t){return xT(e,t),t.toastId}function sp(e,t){return{...t,type:t&&t.type||e,toastId:PL(t)}}function ph(e){return(t,n)=>ld(t,sp(e,n))}function En(e,t){return ld(e,sp("default",t))}En.loading=(e,t)=>ld(e,sp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),En.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Oc(i)?En.loading(i,n):En.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(y,p,S)=>{if(p==null)return void En.dismiss(r);const T={type:y,...l,...n,data:S},_=Oc(p)?{render:p}:p;return r?En.update(r,{...T,..._}):En(_.render,{...T,..._}),S},d=Zo(e)?e():e;return d.then(y=>c("success",s,y)).catch(y=>c("error",o,y)),d},En.success=ph("success"),En.info=ph("info"),En.error=ph("error"),En.warning=ph("warning"),En.warn=En.warning,En.dark=(e,t)=>ld(e,sp("default",{theme:"dark",...t})),En.dismiss=function(e){(function(t){var n;if(bT()){if(t==null||Oc(n=t)||Od(n))so.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=so.get(t.containerId))!=null&&r.removeToast(t.id)||so.forEach(i=>{i.removeToast(t.id)})}}else Dd=Dd.filter(i=>t!=null&&i.options.toastId!==t)})(e)},En.clearWaitingQueue=function(e){e===void 0&&(e={}),so.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},En.isActive=wT,En.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=so.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:ST()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ld(s,o)}},En.done=e=>{En.update(e,{progress:1})},En.onChange=function(e){return Gv.add(e),()=>{Gv.delete(e)}},En.play=e=>q0(!0,e),En.pause=e=>q0(!1,e);const _L=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,gh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},$g={info:function(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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 Q.createElement("div",{className:"Toastify__spinner"})}},RL=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=kL(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:y,hideProgressBar:p,closeToast:S,transition:T,position:_,className:R,style:L,bodyClassName:I,bodyStyle:U,progressClassName:z,progressStyle:re,updateId:Z,role:de,progress:x,rtl:ye,toastId:ae,deleteToast:Me,isIn:Ze,isLoading:Ve,closeOnClick:Ye,theme:ot}=e,me=Eu("Toastify__toast",`Toastify__toast-theme--${ot}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":ye},{"Toastify__toast--close-on-click":Ye}),Oe=Zo(R)?R({rtl:ye,position:_,type:y,defaultClassName:me}):Eu(me,R),He=function(xe){let{theme:We,type:Ue,isLoading:Re,icon:Le}=xe,Xe=null;const lt={theme:We,type:Ue};return Le===!1||(Zo(Le)?Xe=Le({...lt,isLoading:Re}):Q.isValidElement(Le)?Xe=Q.cloneElement(Le,lt):Re?Xe=$g.spinner():(mt=>mt in $g)(Ue)&&(Xe=$g[Ue](lt))),Xe}(e),Je=!!x||!c,st={closeToast:S,type:y,theme:ot};let De=null;return s===!1||(De=Zo(s)?s(st):Q.isValidElement(s)?Q.cloneElement(s,st):function(xe){let{closeToast:We,theme:Ue,ariaLabel:Re="close"}=xe;return Q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:Le=>{Le.stopPropagation(),We(Le)},"aria-label":Re},Q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Q.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"})))}(st)),Q.createElement(T,{isIn:Ze,done:Me,position:_,preventExitTransition:n,nodeRef:r,playToast:o},Q.createElement("div",{id:ae,onClick:d,"data-in":Ze,className:Oe,...i,style:L,ref:r},Q.createElement("div",{...Ze&&{role:de},className:Zo(I)?I({type:y}):Eu("Toastify__toast-body",I),style:U},He!=null&&Q.createElement("div",{className:Eu("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ve})},He),Q.createElement("div",null,l)),De,Q.createElement(OL,{...Z&&!Je?{key:`pb-${Z}`}:{},rtl:ye,theme:ot,delay:c,isRunning:t,isIn:Ze,closeToast:S,hide:p,type:y,style:re,className:z,controlledProgress:Je,progress:x||0})))},Ip=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},IL=Rp(Ip("bounce",!0));Rp(Ip("slide",!0));Rp(Ip("zoom"));Rp(Ip("flip"));const AL={position:"top-right",transition:IL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function ML(e){let t={...AL,...e};const n=e.stacked,[r,i]=Q.useState(!0),o=Q.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=EL(t),{className:d,style:y,rtl:p,containerId:S}=t;function T(R){const L=Eu("Toastify__toast-container",`Toastify__toast-container--${R}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:R,rtl:p,defaultClassName:L}):Eu(L,Hh(d))}function _(){n&&(i(!0),En.play())}return _L(()=>{if(n){var R;const L=o.current.querySelectorAll('[data-in="true"]'),I=12,U=(R=t.position)==null?void 0:R.includes("top");let z=0,re=0;Array.from(L).reverse().forEach((Z,de)=>{const x=Z;x.classList.add("Toastify__toast--stacked"),de>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const ye=z*(r?.2:1)+(r?0:I*de);x.style.setProperty("--y",`${U?ye:-1*ye}px`),x.style.setProperty("--g",`${I}`),x.style.setProperty("--s",""+(1-(r?re:0))),z+=x.offsetHeight,re+=.025})}},[r,c,n]),Q.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),En.pause())},onMouseLeave:_},s((R,L)=>{const I=L.length?{...y}:{...y,pointerEvents:"none"};return Q.createElement("div",{className:T(R),style:I,key:`container-${R}`},L.map(U=>{let{content:z,props:re}=U;return Q.createElement(RL,{...re,stacked:n,collapseAll:_,isIn:l(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},z)}))}))}function LL(){return it.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.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"}),it.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),it.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function FL(){return it.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),it.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function NL(){return it.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.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"}),it.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 Zm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},jL=({closeToast:e})=>it.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:it.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:it.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"})})}),TT=e=>{En.success(e,{icon:it.jsx(FL,{}),bodyStyle:{},position:"bottom-right",style:{...Zm,background:Fi.successLight,borderColor:Fi.success,color:Fi.success}})},Ap=e=>{En.error(e,{icon:it.jsx(LL,{}),position:"bottom-right",style:{...Zm,background:Fi.dangerLight,borderColor:Fi.danger,color:Fi.danger}})},BL=e=>{En.error(e,{icon:it.jsx(NL,{}),position:"bottom-right",style:{...Zm,background:Fi.warningLight,borderColor:Fi.warning,color:Fi.warning}})},$L=e=>{En(e,{closeButton:jL,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Fi.textPrimary}})};function CT(e){let t=null;return()=>(t==null&&(t=e()),t)}function VL(e,t){return e.filter(n=>n!==t)}function HL(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class UL{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=HL(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=VL(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class WL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const ET="__NATIVE_FILE__",kT="__NATIVE_URL__",OT="__NATIVE_TEXT__",DT="__NATIVE_HTML__",X0=Object.freeze(Object.defineProperty({__proto__:null,FILE:ET,HTML:DT,TEXT:OT,URL:kT},Symbol.toStringTag,{value:"Module"}));function Vg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const qv={[ET]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[DT]:{exposeProperties:{html:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[kT]:{exposeProperties:{urls:(e,t)=>Vg(e,t,"").split(`
33
- `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[OT]:{exposeProperties:{text:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function zL(e,t){const n=qv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new WL(n);return r.loadDataTransfer(t),r}function Hg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(qv).filter(n=>{const r=qv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const YL=CT(()=>/firefox/i.test(navigator.userAgent)),PT=CT(()=>!!window.safari);class K0{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,d=s.length-1,y;for(;c<=d;){y=Math.floor(.5*(c+d));const T=n[y];if(T<t)c=y+1;else if(T>t)d=y-1;else return r[y]}l=Math.max(0,d);const p=t-n[l],S=p*p;return r[l]+i[l]*p+o[l]*S+s[l]*p*S}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,_)=>t[T]<t[_]?-1:1);const o=[],s=[];let l,c;for(let T=0;T<r-1;T++)l=t[T+1]-t[T],c=n[T+1]-n[T],o.push(l),s.push(c/l);const d=[s[0]];for(let T=0;T<o.length-1;T++){const _=s[T],R=s[T+1];if(_*R<=0)d.push(0);else{l=o[T];const L=o[T+1],I=l+L;d.push(3*I/((I+L)/_+(I+l)/R))}}d.push(s[s.length-1]);const y=[],p=[];let S;for(let T=0;T<d.length-1;T++){S=s[T];const _=d[T],R=1/o[T],L=_+d[T+1]-S-S;y.push((S-_-L)*R),p.push(L*R*R)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=p}}const GL=1;function _T(e){const t=e.nodeType===GL?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function vh(e){return{x:e.clientX,y:e.clientY}}function qL(e){var t;return e.nodeName==="IMG"&&(YL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function XL(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return PT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function KL(e,t,n,r,i){const o=qL(t),l=_T(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:y}=e,{anchorX:p,anchorY:S}=r,{dragPreviewWidth:T,dragPreviewHeight:_}=XL(o,t,d,y),R=()=>{let de=new K0([0,.5,1],[c.y,c.y/y*_,c.y+_-y]).interpolate(S);return PT()&&o&&(de+=(window.devicePixelRatio-1)*_),de},L=()=>new K0([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:I,offsetY:U}=i,z=I===0||I,re=U===0||U;return{x:z?I:L(),y:re?U:R()}}let ZL=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function JL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){JL(e,i,n[i])})}return e}class QL{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.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 t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);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(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Z0({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Z0({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(X0).some(n=>X0[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=zL(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;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 t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,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&&_T(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 s=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Hg(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const y=this.monitor.getSourceId(),p=this.sourceNodes.get(y),S=this.sourcePreviewNodes.get(y)||p;if(S){const{anchorX:T,anchorY:_,offsetX:R,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),z=KL(p,S,s,{anchorX:T,anchorY:_},{offsetX:R,offsetY:L});l.setDragImage(S,z.x,z.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.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:l}=i,c=Hg(l);c&&this.beginDragNativeItem(c,l)},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:vh(i)}),o.some(l=>this.monitor.canDropOnTarget(l))&&(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=vh(i),this.scheduleHover(o),(o||[]).some(l=>this.monitor.canDropOnTarget(l))?(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 Hg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:vh(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 ZL(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new UL(this.isNodeInDocument)}}let mh;function e2(){return mh||(mh=new Image,mh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),mh}const t2=function(t,n,r){return new QL(t,n,r)};var Dc=[],n2=function(){return Dc.some(function(e){return e.activeTargets.length>0})},r2=function(){return Dc.some(function(e){return e.skippedTargets.length>0})},J0="ResizeObserver loop completed with undelivered notifications.",i2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:J0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=J0),window.dispatchEvent(e)},Pd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pd||(Pd={}));var Pc=function(e){return Object.freeze(e)},o2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pc(this)}return e}(),RT=function(){function e(t,n,r,i){return this.x=t,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,Pc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,l=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Jm=function(e){return e instanceof SVGElement&&"getBBox"in e},IT=function(e){if(Jm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},Q0=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},a2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},cd=typeof window<"u"?window:{},yh=new WeakMap,ew=/auto|scroll/,s2=/^tb|vertical/,u2=/msie|trident/i.test(cd.navigator&&cd.navigator.userAgent),_s=function(e){return parseFloat(e||"0")},Of=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new o2((n?t:e)||0,(n?e:t)||0)},tw=Pc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new RT(0,0,0,0)}),AT=function(e,t){if(t===void 0&&(t=!1),yh.has(e)&&!t)return yh.get(e);if(IT(e))return yh.set(e,tw),tw;var n=getComputedStyle(e),r=Jm(e)&&e.ownerSVGElement&&e.getBBox(),i=!u2&&n.boxSizing==="border-box",o=s2.test(n.writingMode||""),s=!r&&ew.test(n.overflowY||""),l=!r&&ew.test(n.overflowX||""),c=r?0:_s(n.paddingTop),d=r?0:_s(n.paddingRight),y=r?0:_s(n.paddingBottom),p=r?0:_s(n.paddingLeft),S=r?0:_s(n.borderTopWidth),T=r?0:_s(n.borderRightWidth),_=r?0:_s(n.borderBottomWidth),R=r?0:_s(n.borderLeftWidth),L=p+d,I=c+y,U=R+T,z=S+_,re=l?e.offsetHeight-z-e.clientHeight:0,Z=s?e.offsetWidth-U-e.clientWidth:0,de=i?L+U:0,x=i?I+z:0,ye=r?r.width:_s(n.width)-de-Z,ae=r?r.height:_s(n.height)-x-re,Me=ye+L+Z+U,Ze=ae+I+re+z,Ve=Pc({devicePixelContentBoxSize:Of(Math.round(ye*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Of(Me,Ze,o),contentBoxSize:Of(ye,ae,o),contentRect:new RT(p,c,ye,ae)});return yh.set(e,Ve),Ve},MT=function(e,t,n){var r=AT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Pd.DEVICE_PIXEL_CONTENT_BOX:return s;case Pd.BORDER_BOX:return i;default:return o}},l2=function(){function e(t){var n=AT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pc([n.borderBoxSize]),this.contentBoxSize=Pc([n.contentBoxSize]),this.devicePixelContentBoxSize=Pc([n.devicePixelContentBoxSize])}return e}(),LT=function(e){if(IT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},c2=function(){var e=1/0,t=[];Dc.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(d){var y=new l2(d.target),p=LT(d.target);l.push(y),d.lastReportedSize=MT(d.target,d.observedBox),p<e&&(e=p)}),t.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},nw=function(e){Dc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(LT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},f2=function(){var e=0;for(nw(e);n2();)e=c2(),nw(e);return r2()&&i2(),e>0},Ug,FT=[],d2=function(){return FT.splice(0).forEach(function(e){return e()})},h2=function(e){if(!Ug){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return d2()}).observe(n,r),Ug=function(){n.textContent="".concat(t?t--:t++)}}FT.push(e),Ug()},p2=function(e){h2(function(){requestAnimationFrame(e)})},Uh=0,g2=function(){return!!Uh},v2=250,m2={attributes:!0,characterData:!0,childList:!0,subtree:!0},rw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],iw=function(e){return e===void 0&&(e=0),Date.now()+e},Wg=!1,y2=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=v2),!Wg){Wg=!0;var r=iw(t);p2(function(){var i=!1;try{i=f2()}finally{if(Wg=!1,t=r-iw(),!g2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,m2)};document.body?n():cd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rw.forEach(function(n){return cd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),rw.forEach(function(n){return cd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Xv=new y2,ow=function(e){!Uh&&e>0&&Xv.start(),Uh+=e,!Uh&&Xv.stop()},b2=function(e){return!Jm(e)&&!a2(e)&&getComputedStyle(e).display==="inline"},w2=function(){function e(t,n){this.target=t,this.observedBox=n||Pd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=MT(this.target,this.observedBox,!0);return b2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),x2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),bh=new WeakMap,aw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},wh=function(){function e(){}return e.connect=function(t,n){var r=new x2(t,n);bh.set(t,r)},e.observe=function(t,n,r){var i=bh.get(t),o=i.observationTargets.length===0;aw(i.observationTargets,n)<0&&(o&&Dc.push(i),i.observationTargets.push(new w2(n,r&&r.box)),ow(1),Xv.schedule())},e.unobserve=function(t,n){var r=bh.get(t),i=aw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Dc.splice(Dc.indexOf(r),1),r.observationTargets.splice(i,1),ow(-1))},e.disconnect=function(t){var n=this,r=bh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),S2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.unobserve(this,t)},e.prototype.disconnect=function(){wh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Kv=function(e,t){return Kv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Kv(e,t)};function NT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var at=function(){return at=Object.assign||function(t){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)&&(t[o]=n[o])}return t},at.apply(this,arguments)};function _a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var sw="production",jT=typeof process>"u"||process.env===void 0?sw:process.env.NODE_ENV||sw,Tu=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},_d={measureLayout:Tu(["layout","layoutId","drag"]),animation:Tu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Tu(["exit"]),drag:Tu(["drag","dragControls"]),focus:Tu(["whileFocus"]),hover:Tu(["whileHover","onHoverStart","onHoverEnd"]),tap:Tu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Tu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Tu(["whileInView","onViewportEnter","onViewportLeave"])};function T2(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?_d.projectionNodeConstructor=e[t]:_d[t].Component=e[t])}var Hd=function(){},Da=function(){};process.env.NODE_ENV!=="production"&&(Hd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Da=function(e,t){if(!e)throw new Error(t)});var BT=Q.createContext({strict:!1}),$T=Object.keys(_d),C2=$T.length;function E2(e,t,n){var r=[],i=Q.useContext(BT);if(!t)return null;jT!=="production"&&n&&i.strict&&Da(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<C2;o++){var s=$T[o],l=_d[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Sn.createElement(d,at({key:s},e,{visualElement:t})))}return r}var Qm=Q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mp=Q.createContext({});function k2(){return Q.useContext(Mp).visualElement}var Lp=Q.createContext(null),jf=typeof document<"u",uw=jf?Q.useLayoutEffect:Q.useEffect,Zv={current:null},VT=!1;function O2(){if(VT=!0,!!jf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Zv.current=e.matches};e.addListener(t),t()}else Zv.current=!1}function D2(){!VT&&O2();var e=Gr(Q.useState(Zv.current),1),t=e[0];return t}function P2(){var e=D2(),t=Q.useContext(Qm).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function _2(e,t,n,r){var i=Q.useContext(BT),o=k2(),s=Q.useContext(Lp),l=P2(),c=Q.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:l}));var d=c.current;return uw(function(){d==null||d.syncRender()}),Q.useEffect(function(){var y;(y=d==null?void 0:d.animationState)===null||y===void 0||y.animateChanges()}),uw(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function xf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function R2(e,t,n){return Q.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function HT(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||HT(e)}function I2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function A2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function UT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Fp(e,t,n){var r=e.getProps();return UT(r,t,n??r.custom,I2(e),A2(e))}function Np(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function WT(e){return!!(Np(e)||e.variants)}function M2(e,t){if(Np(e)){var n=e.initial,r=e.animate;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function L2(e){var t=M2(e,Q.useContext(Mp)),n=t.initial,r=t.animate;return Q.useMemo(function(){return{initial:n,animate:r}},[lw(n),lw(r)])}function lw(e){return Array.isArray(e)?e.join(" "):e}function jp(e){var t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}var fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},F2=1;function N2(){return jp(function(){if(fd.hasEverUpdated)return F2++})}var zT=Q.createContext({}),YT=Q.createContext({});function j2(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,y=Q.useContext(YT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:d}))}var B2=function(e){NT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Q.Component);function $2(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&T2(t);function l(c,d){var y=V2(c);c=at(at({},c),{layoutId:y});var p=Q.useContext(Qm),S=null,T=L2(c),_=p.isStatic?void 0:N2(),R=o(c,p.isStatic);return!p.isStatic&&jf&&(T.visualElement=_2(s,R,at(at({},p),c),n),j2(_,c,T.visualElement,r||_d.projectionNodeConstructor),S=E2(c,T.visualElement,t)),Sn.createElement(B2,{visualElement:T.visualElement,props:at(at({},p),c)},S,Sn.createElement(Mp.Provider,{value:T},i(s,c,_,R2(R,T.visualElement,d),R,p.isStatic,T.visualElement)))}return Q.forwardRef(l)}function V2(e){var t,n=e.layoutId,r=(t=Q.useContext(zT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function H2(e){function t(r,i){return i===void 0&&(i={}),$2(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var U2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ey(e){return typeof e!="string"||e.includes("-")?!1:!!(U2.indexOf(e)>-1||/[A-Z]/.test(e))}var up={};function W2(e){Object.assign(up,e)}var Jv=["","X","Y","Z"],z2=["translate","scale","rotate","skew"],Rd=["transformPerspective","x","y","z"];z2.forEach(function(e){return Jv.forEach(function(t){return Rd.push(e+t)})});function Y2(e,t){return Rd.indexOf(e)-Rd.indexOf(t)}var G2=new Set(Rd);function Ud(e){return G2.has(e)}var q2=new Set(["originX","originY","originZ"]);function GT(e){return q2.has(e)}function qT(e,t){var n=t.layout,r=t.layoutId;return Ud(e)||GT(e)||(n||r!==void 0)&&(!!up[e]||e==="opacity")}var Iu=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},X2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function K2(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,y="";o.sort(Y2);for(var p=!1,S=o.length,T=0;T<S;T++){var _=o[T];y+="".concat(X2[_]||_,"(").concat(i[_],") "),_==="z"&&(p=!0)}return!p&&l?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):d&&n&&(y="none"),y}function Z2(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function XT(e){return e.startsWith("--")}var J2=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const KT=(e,t)=>n=>Math.max(Math.min(n,t),e),dd=e=>e%1?Number(e.toFixed(5)):e,Id=/(-)?([\d]*\.?[\d])+/g,Qv=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Q2=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Wd(e){return typeof e=="string"}const $c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd=Object.assign(Object.assign({},$c),{transform:KT(0,1)}),xh=Object.assign(Object.assign({},$c),{default:1}),zd=e=>({test:t=>Wd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pl=zd("deg"),Fs=zd("%"),jt=zd("px"),eF=zd("vh"),tF=zd("vw"),cw=Object.assign(Object.assign({},Fs),{parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)}),ty=(e,t)=>n=>!!(Wd(n)&&Q2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ZT=(e,t,n)=>r=>{if(!Wd(r))return r;const[i,o,s,l]=r.match(Id);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Cc={test:ty("hsl","hue"),parse:ZT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fs.transform(dd(t))+", "+Fs.transform(dd(n))+", "+dd(hd.transform(r))+")"},nF=KT(0,255),zg=Object.assign(Object.assign({},$c),{transform:e=>Math.round(nF(e))}),wl={test:ty("rgb","red"),parse:ZT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zg.transform(e)+", "+zg.transform(t)+", "+zg.transform(n)+", "+dd(hd.transform(r))+")"};function rF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const em={test:ty("#"),parse:rF,transform:wl.transform},io={test:e=>wl.test(e)||em.test(e)||Cc.test(e),parse:e=>wl.test(e)?wl.parse(e):Cc.test(e)?Cc.parse(e):em.parse(e),transform:e=>Wd(e)?e:e.hasOwnProperty("red")?wl.transform(e):Cc.transform(e)},JT="${c}",QT="${n}";function iF(e){var t,n,r,i;return isNaN(e)&&Wd(e)&&((n=(t=e.match(Id))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Qv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function eC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Qv);r&&(n=r.length,e=e.replace(Qv,JT),t.push(...r.map(io.parse)));const i=e.match(Id);return i&&(e=e.replace(Id,QT),t.push(...i.map($c.parse))),{values:t,numColors:n,tokenised:e}}function tC(e){return eC(e).values}function nC(e){const{values:t,numColors:n,tokenised:r}=eC(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?JT:QT,l<n?io.transform(o[l]):dd(o[l]));return s}}const oF=e=>typeof e=="number"?0:e;function aF(e){const t=tC(e);return nC(e)(t.map(oF))}const Au={test:iF,parse:tC,createTransformer:nC,getAnimatableNone:aF},sF=new Set(["brightness","contrast","saturate","opacity"]);function uF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Id)||[];if(!r)return e;const i=n.replace(r,"");let o=sF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lF=/([a-z-]*)\(.*?\)/g,tm=Object.assign(Object.assign({},Au),{getAnimatableNone:e=>{const t=e.match(lF);return t?t.map(uF).join(" "):e}});var fw=at(at({},$c),{transform:Math.round}),rC={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:pl,rotateX:pl,rotateY:pl,rotateZ:pl,scale:xh,scaleX:xh,scaleY:xh,scaleZ:xh,skew:pl,skewX:pl,skewY:pl,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:hd,originX:cw,originY:cw,originZ:jt,zIndex:fw,fillOpacity:hd,strokeOpacity:hd,numOctaves:fw};function ny(e,t,n,r){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var y=!1,p=!1,S=!0;for(var T in t){var _=t[T];if(XT(T)){s[T]=_;continue}var R=rC[T],L=J2(_,R);if(Ud(T)){if(y=!0,l[T]=L,c.push(T),!S)continue;_!==((i=R.default)!==null&&i!==void 0?i:0)&&(S=!1)}else GT(T)?(d[T]=L,p=!0):o[T]=L}y?o.transform=K2(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=Z2(d))}var ry=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function iC(e,t,n){for(var r in t)!Iu(t[r])&&!qT(r,n)&&(e[r]=t[r])}function cF(e,t,n){var r=e.transformTemplate;return Q.useMemo(function(){var i=ry();ny(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return at(at({},o),s)},[t])}function fF(e,t,n){var r=e.style||{},i={};return iC(i,r,e),Object.assign(i,cF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function dF(e,t,n){var r={},i=fF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var hF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function lp(e){return hF.has(e)}var oC=function(e){return!lp(e)};function pF(e){e&&(oC=function(t){return t.startsWith("on")?!lp(t):e(t)})}try{pF(require("@emotion/is-prop-valid").default)}catch{}function gF(e,t,n){var r={};for(var i in e)(oC(i)||n===!0&&lp(i)||!t&&!lp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function vF(e,t,n){var r=dw(t,e.x,e.width),i=dw(n,e.y,e.height);return"".concat(r," ").concat(i)}var mF={offset:"stroke-dashoffset",array:"stroke-dasharray"},yF={offset:"strokeDashoffset",array:"strokeDasharray"};function bF(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?mF:yF;e[o.offset]=jt.transform(-r);var s=jt.transform(t),l=jt.transform(n);e[o.array]="".concat(s," ").concat(l)}function iy(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,y=d===void 0?1:d,p=t.pathOffset,S=p===void 0?0:p,T=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ny(e,T,n,r),e.attrs=e.style,e.style={};var _=e.attrs,R=e.style,L=e.dimensions;_.transform&&(L&&(R.transform=_.transform),delete _.transform),L&&(s!==void 0||l!==void 0||R.transform)&&(R.transformOrigin=vF(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(_.x=i),o!==void 0&&(_.y=o),c!==void 0&&bF(_,c,y,S,!1)}var aC=function(){return at(at({},ry()),{attrs:{}})};function wF(e,t){var n=Q.useMemo(function(){var i=aC();return iy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),at(at({},i.attrs),{style:at({},i.style)})},[t]);if(e.style){var r={};iC(r,e.style,e),n.style=at(at({},r),n.style)}return n}function xF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=ey(n)?wF:dF,y=d(r,c,l),p=gF(r,typeof n=="string",e),S=at(at(at({},p),y),{ref:o});return i&&(S["data-projection-id"]=i),Q.createElement(n,S)};return t}var SF=/([a-z])([A-Z])/g,TF="$1-$2",sC=function(e){return e.replace(SF,TF).toLowerCase()};function uC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var lC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function cC(e,t,n,r){uC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(lC.has(i)?i:sC(i),t.attrs[i])}function oy(e){var t=e.style,n={};for(var r in t)(Iu(t[r])||qT(r,e))&&(n[r]=t[r]);return n}function fC(e){var t=oy(e);for(var n in e)if(Iu(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ay(e){return typeof e=="object"&&typeof e.start=="function"}var Ad=function(e){return Array.isArray(e)},CF=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},dC=function(e){return Ad(e)?e[e.length-1]||0:e};function Wh(e){var t=Iu(e)?e.get():e;return CF(t)?t.toValue():t}function hw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:EF(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var hC=function(e){return function(t,n){var r=Q.useContext(Mp),i=Q.useContext(Lp);return n?hw(e,t,r,i):jp(function(){return hw(e,t,r,i)})}};function EF(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=Wh(s[l]);var c=e.initial,d=e.animate,y=Np(e),p=WT(e);t&&p&&!y&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var S=o||c===!1,T=S?d:c;if(T&&typeof T!="boolean"&&!ay(T)){var _=Array.isArray(T)?T:[T];_.forEach(function(R){var L=UT(e,R);if(L){var I=L.transitionEnd;L.transition;var U=_a(L,["transitionEnd","transition"]);for(var z in U){var re=U[z];if(Array.isArray(re)){var Z=S?re.length-1:0;re=re[Z]}re!==null&&(i[z]=re)}for(var z in I)i[z]=I[z]}})}return i}var kF={useVisualState:hC({scrapeMotionValuesFromProps:fC,createRenderState:aC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}iy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),cC(t,r)}})},OF={useVisualState:hC({scrapeMotionValuesFromProps:oy,createRenderState:ry})};function DF(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=ey(e)?kF:OF;return at(at({},l),{preloadedFeatures:n,useRender:xF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var jn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(jn||(jn={}));function Bp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function nm(e,t,n,r){Q.useEffect(function(){var i=e.current;if(n&&i)return Bp(i,t,n,r)},[e,t,n,r])}function PF(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!1)};nm(n,"focus",t?r:void 0),nm(n,"blur",t?i:void 0)}function pC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function gC(e){var t=!!e.touches;return t}function _F(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var RF={pageX:0,pageY:0};function IF(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||RF;return{x:r[t+"X"],y:r[t+"Y"]}}function AF(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function sy(e,t){return t===void 0&&(t="page"),{point:gC(e)?IF(e,t):AF(e,t)}}var vC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,sy(r))};return t?_F(n):n},MF=function(){return jf&&window.onpointerdown===null},LF=function(){return jf&&window.ontouchstart===null},FF=function(){return jf&&window.onmousedown===null},NF={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},jF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mC(e){return MF()?e:LF()?jF[e]:FF()?NF[e]:e}function Df(e,t,n,r){return Bp(e,mC(t),vC(n,t==="pointerdown"),r)}function cp(e,t,n,r){return nm(e,mC(t),n&&vC(n,t==="pointerdown"),r)}function yC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var pw=yC("dragHorizontal"),gw=yC("dragVertical");function bC(e){var t=!1;if(e==="y")t=gw();else if(e==="x")t=pw();else{var n=pw(),r=gw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function wC(){var e=bC(!0);return e?(e(),!1):!0}function vw(e,t,n){return function(r,i){var o;!pC(r)||wC()||((o=e.animationState)===null||o===void 0||o.setActive(jn.Hover,t),n==null||n(r,i))}}function BF(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;cp(i,"pointerenter",t||r?vw(i,!0,t):void 0,{passive:!t}),cp(i,"pointerleave",n||r?vw(i,!1,n):void 0,{passive:!n})}var xC=function(e,t){return t?e===t?!0:xC(e,t.parentElement):!1};function SC(e){return Q.useEffect(function(){return function(){return e()}},[])}const fp=(e,t,n)=>Math.min(Math.max(n,e),t),Yg=.001,$F=.01,mw=10,VF=.05,HF=1;function UF({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hd(e<=mw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=fp(VF,HF,s),e=fp($F,mw,e/1e3),s<1?(i=d=>{const y=d*s,p=y*e,S=y-n,T=rm(d,s),_=Math.exp(-p);return Yg-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=rm(Math.pow(d,2),s);return(-i(d)+Yg>0?-1:1)*((S-T)*_)/R}):(i=d=>{const y=Math.exp(-d*e),p=(d-n)*e+1;return-Yg+y*p},o=d=>{const y=Math.exp(-d*e),p=(n-d)*(e*e);return y*p});const l=5/e,c=zF(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const WF=12;function zF(e,t,n){let r=n;for(let i=1;i<WF;i++)r=r-e(r)/t(r);return r}function rm(e,t){return e*Math.sqrt(1-t*t)}const YF=["duration","bounce"],GF=["stiffness","damping","mass"];function yw(e,t){return t.some(n=>e[n]!==void 0)}function qF(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yw(e,GF)&&yw(e,YF)){const n=UF(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function uy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:y,duration:p,isResolvedFromDuration:S}=qF(o),T=bw,_=bw;function R(){const L=y?-(y/1e3):0,I=n-t,U=c/(2*Math.sqrt(l*d)),z=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const re=rm(z,U);T=Z=>{const de=Math.exp(-U*z*Z);return n-de*((L+U*z*I)/re*Math.sin(re*Z)+I*Math.cos(re*Z))},_=Z=>{const de=Math.exp(-U*z*Z);return U*z*de*(Math.sin(re*Z)*(L+U*z*I)/re+I*Math.cos(re*Z))-de*(Math.cos(re*Z)*(L+U*z*I)-re*I*Math.sin(re*Z))}}else if(U===1)T=re=>n-Math.exp(-z*re)*(I+(L+z*I)*re);else{const re=z*Math.sqrt(U*U-1);T=Z=>{const de=Math.exp(-U*z*Z),x=Math.min(re*Z,300);return n-de*((L+U*z*I)*Math.sinh(x)+re*I*Math.cosh(x))/re}}}return R(),{next:L=>{const I=T(L);if(S)s.done=L>=p;else{const U=_(L)*1e3,z=Math.abs(U)<=r,re=Math.abs(n-I)<=i;s.done=z&&re}return s.value=s.done?n:I,s},flipTarget:()=>{y=-y,[t,n]=[n,t],R()}}}uy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const bw=e=>0,Md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lr=(e,t,n)=>-n*e+n*t+e;function Gg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ww({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Gg(c,l,e+1/3),o=Gg(c,l,e),s=Gg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const XF=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},KF=[em,wl,Cc],xw=e=>KF.find(t=>t.test(e)),Sw=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,TC=(e,t)=>{let n=xw(e),r=xw(t);Da(!!n,Sw(e)),Da(!!r,Sw(t));let i=n.parse(e),o=r.parse(t);n===Cc&&(i=ww(i),n=wl),r===Cc&&(o=ww(o),r=wl);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=XF(i[c],o[c],l));return s.alpha=lr(i.alpha,o.alpha,l),n.transform(s)}},im=e=>typeof e=="number",ZF=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(ZF);function CC(e,t){return im(e)?n=>lr(e,t,n):io.test(e)?TC(e,t):kC(e,t)}const EC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>CC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},JF=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=CC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Tw(e){const t=Au.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const kC=(e,t)=>{const n=Au.createTransformer(t),r=Tw(e),i=Tw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?$p(EC(r.parsed,i.parsed),n):(Hd(!0,`Complex values '${e}' and '${t}' 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.`),s=>`${s>0?t:e}`)},QF=(e,t)=>n=>lr(e,t,n);function eN(e){if(typeof e=="number")return QF;if(typeof e=="string")return io.test(e)?TC:kC;if(Array.isArray(e))return EC;if(typeof e=="object")return JF}function tN(e,t,n){const r=[],i=n||eN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;l=$p(c,l)}r.push(l)}return r}function nN([e,t],[n]){return r=>n(Md(e,t,r))}function rN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>i||c===r);c++);o=c-1}const l=Md(e[o],e[o+1],i);return t[o](l)}}function OC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Da(o===t.length,"Both input and output ranges must be the same length"),Da(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=tN(t,r,i),l=o===2?nN(e,s):rN(e,s);return n?c=>l(fp(e[0],e[o-1],c)):l}const Vp=e=>t=>1-e(1-t),ly=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iN=e=>t=>Math.pow(t,e),DC=e=>t=>t*t*((e+1)*t-e),oN=e=>{const t=DC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},PC=1.525,aN=4/11,sN=8/11,uN=9/10,cy=e=>e,fy=iN(2),lN=Vp(fy),_C=ly(fy),RC=e=>1-Math.sin(Math.acos(e)),dy=Vp(RC),cN=ly(dy),hy=DC(PC),fN=Vp(hy),dN=ly(hy),hN=oN(PC),pN=4356/361,gN=35442/1805,vN=16061/1805,dp=e=>{if(e===1||e===0)return e;const t=e*e;return e<aN?7.5625*t:e<sN?9.075*t-9.9*e+3.4:e<uN?pN*t-gN*e+vN:10.8*e*e-20.52*e+10.72},mN=Vp(dp),yN=e=>e<.5?.5*(1-dp(1-e*2)):.5*dp(e*2-1)+.5;function bN(e,t){return e.map(()=>t||_C).splice(0,e.length-1)}function wN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function xN(e,t){return e.map(n=>n*t)}function zh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=xN(r&&r.length===s.length?r:wN(s),i);function c(){return OC(l,s,{ease:Array.isArray(n)?n:bN(s,n)})}let d=c();return{next:y=>(o.value=d(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function SN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let l=n*e;const c=t+l,d=o===void 0?c:o(c);return d!==c&&(l=d-t),{next:y=>{const p=-l*Math.exp(-y/r);return s.done=!(p>i||p<-i),s.value=s.done?d:d+p,s},flipTarget:()=>{}}}const Cw={keyframes:zh,spring:uy,decay:SN};function TN(e){if(Array.isArray(e.to))return zh;if(Cw[e.type])return Cw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?uy:zh}const IC=1/60*1e3,CN=typeof performance<"u"?()=>performance.now():()=>Date.now(),AC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(CN()),IC);function EN(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const p=y&&i,S=p?t:n;return d&&s.add(c),S.indexOf(c)===-1&&(S.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const y=t[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const kN=40;let om=!0,Ld=!1,am=!1;const Pf={delta:0,timestamp:0},Yd=["read","update","preRender","render","postRender"],Hp=Yd.reduce((e,t)=>(e[t]=EN(()=>Ld=!0),e),{}),Ns=Yd.reduce((e,t)=>{const n=Hp[t];return e[t]=(r,i=!1,o=!1)=>(Ld||DN(),n.schedule(r,i,o)),e},{}),Rf=Yd.reduce((e,t)=>(e[t]=Hp[t].cancel,e),{}),qg=Yd.reduce((e,t)=>(e[t]=()=>Hp[t].process(Pf),e),{}),ON=e=>Hp[e].process(Pf),MC=e=>{Ld=!1,Pf.delta=om?IC:Math.max(Math.min(e-Pf.timestamp,kN),1),Pf.timestamp=e,am=!0,Yd.forEach(ON),am=!1,Ld&&(om=!1,AC(MC))},DN=()=>{Ld=!0,om=!0,am||AC(MC)},hp=()=>Pf;function LC(e,t,n=0){return e-t-n}function PN(e,t,n=0,r=!0){return r?LC(t+-e,t,n):t-(e-t)+n}function _N(e,t,n,r){return r?e>=t+n:e<=-n}const RN=e=>{const t=({delta:n})=>e(n);return{start:()=>Ns.update(t,!0),stop:()=>Rf.update(t)}};function FC(e){var t,n,{from:r,autoplay:i=!0,driver:o=RN,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:y,onStop:p,onComplete:S,onRepeat:T,onUpdate:_}=e,R=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=R,I,U=0,z=R.duration,re,Z=!1,de=!0,x;const ye=TN(R);!((n=(t=ye).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(x=OC([0,100],[r,L],{clamp:!1}),r=0,L=100);const ae=ye(Object.assign(Object.assign({},R),{from:r,to:L}));function Me(){U++,c==="reverse"?(de=U%2===0,s=PN(s,z,d,de)):(s=LC(s,z,d),c==="mirror"&&ae.flipTarget()),Z=!1,T&&T()}function Ze(){I.stop(),S&&S()}function Ve(ot){if(de||(ot=-ot),s+=ot,!Z){const me=ae.next(Math.max(0,s));re=me.value,x&&(re=x(re)),Z=de?me.done:s<=0}_==null||_(re),Z&&(U===0&&(z??(z=s)),U<l?_N(s,z,d,de)&&Me():Ze())}function Ye(){y==null||y(),I=o(Ve),I.start()}return i&&Ye(),{stop:()=>{p==null||p(),I.stop()}}}function NC(e,t){return t?e*(1e3/t):0}function IN({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:y,onUpdate:p,onComplete:S,onStop:T}){let _;function R(z){return n!==void 0&&z<n||r!==void 0&&z>r}function L(z){return n===void 0?r:r===void 0||Math.abs(n-z)<Math.abs(r-z)?n:r}function I(z){_==null||_.stop(),_=FC(Object.assign(Object.assign({},z),{driver:y,onUpdate:re=>{var Z;p==null||p(re),(Z=z.onUpdate)===null||Z===void 0||Z.call(z,re)},onComplete:S,onStop:T}))}function U(z){I(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},z))}if(R(e))U({from:e,velocity:t,to:L(e)});else{let z=i*t+e;typeof d<"u"&&(z=d(z));const re=L(z),Z=re===n?-1:1;let de,x;const ye=ae=>{de=x,x=ae,t=NC(ae-de,hp().delta),(Z===1&&ae>re||Z===-1&&ae<re)&&U({from:ae,to:re,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:R(z)?ye:void 0})}return{stop:()=>_==null?void 0:_.stop()}}const sm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ew=e=>sm(e)&&e.hasOwnProperty("z"),Sh=(e,t)=>Math.abs(e-t);function jC(e,t){if(im(e)&&im(t))return Sh(e,t);if(sm(e)&&sm(t)){const n=Sh(e.x,t.x),r=Sh(e.y,t.y),i=Ew(e)&&Ew(t)?Sh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const BC=(e,t)=>1-3*t+3*e,$C=(e,t)=>3*t-6*e,VC=e=>3*e,pp=(e,t,n)=>((BC(t,n)*e+$C(t,n))*e+VC(t))*e,HC=(e,t,n)=>3*BC(t,n)*e*e+2*$C(t,n)*e+VC(t),AN=1e-7,MN=10;function LN(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=pp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>AN&&++l<MN);return s}const FN=8,NN=.001;function jN(e,t,n,r){for(let i=0;i<FN;++i){const o=HC(t,n,r);if(o===0)return t;const s=pp(t,n,r)-e;t-=s/o}return t}const Yh=11,Th=1/(Yh-1);function BN(e,t,n,r){if(e===t&&n===r)return cy;const i=new Float32Array(Yh);for(let s=0;s<Yh;++s)i[s]=pp(s*Th,e,n);function o(s){let l=0,c=1;const d=Yh-1;for(;c!==d&&i[c]<=s;++c)l+=Th;--c;const y=(s-i[c])/(i[c+1]-i[c]),p=l+y*Th,S=HC(p,e,n);return S>=NN?jN(s,p,e,n):S===0?p:LN(s,l,l+Th,e,n)}return s=>s===0||s===1?s:pp(o(s),t,r)}function $N(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=Q.useRef(!1),c=Q.useRef(null),d={passive:!(n||t||r||_)};function y(){var R;(R=c.current)===null||R===void 0||R.call(c),c.current=null}function p(){var R;return y(),l.current=!1,(R=o.animationState)===null||R===void 0||R.setActive(jn.Tap,!1),!wC()}function S(R,L){p()&&(xC(o.getInstance(),R.target)?t==null||t(R,L):r==null||r(R,L))}function T(R,L){p()&&(r==null||r(R,L))}function _(R,L){var I;y(),!l.current&&(l.current=!0,c.current=$p(Df(window,"pointerup",S,d),Df(window,"pointercancel",T,d)),(I=o.animationState)===null||I===void 0||I.setActive(jn.Tap,!0),n==null||n(R,L))}cp(o,"pointerdown",s?_:void 0,d),SC(y)}var kw=new Set;function UC(e,t,n){e||kw.has(t)||(console.warn(t),n&&console.warn(n),kw.add(t))}var um=new WeakMap,Xg=new WeakMap,VN=function(e){var t;(t=um.get(e.target))===null||t===void 0||t(e)},HN=function(e){e.forEach(VN)};function UN(e){var t=e.root,n=_a(e,["root"]),r=t||document;Xg.has(r)||Xg.set(r,{});var i=Xg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(HN,at({root:t},n))),i[o]}function WN(e,t,n){var r=UN(t);return um.set(e,n),r.observe(e),function(){um.delete(e),r.unobserve(e)}}function zN(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=Q.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?qN:GN;d(c,l.current,t,s)}var YN={some:0,all:1};function GN(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;Q.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:YN[l]},y=function(p){var S,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(S=n.animationState)===null||S===void 0||S.setActive(jn.InView,T);var _=n.getProps(),R=T?_.onViewportEnter:_.onViewportLeave;R==null||R(p)}};return WN(n.getInstance(),d,y)}},[e,i,o,l])}function qN(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;Q.useEffect(function(){!e||!o||(jT!=="production"&&UC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=n.getProps().onViewportEnter;l==null||l(null),(s=n.animationState)===null||s===void 0||s.setActive(jn.InView,!0)}))},[e])}var xl=function(e){return function(t){return e(t),null}},XN={inView:xl(zN),tap:xl($N),focus:xl(PF),hover:xl(BF)},KN=0,ZN=function(){return KN++},JN=function(){return jp(ZN)};function WC(){var e=Q.useContext(Lp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=JN();Q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function zC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var gp=function(e){return e*1e3},Ow={linear:cy,easeIn:fy,easeInOut:_C,easeOut:lN,circIn:RC,circInOut:cN,circOut:dy,backIn:hy,backInOut:dN,backOut:fN,anticipate:hN,bounceIn:mN,bounceInOut:yN,bounceOut:dp},Dw=function(e){if(Array.isArray(e)){Da(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Gr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return BN(n,r,i,o)}else if(typeof e=="string")return Da(Ow[e]!==void 0,"Invalid easing type '".concat(e,"'")),Ow[e];return e},QN=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Pw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Au.test(t)&&!t.startsWith("url("))},gc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ch=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Kg=function(){return{type:"keyframes",ease:"linear",duration:.3}},ej=function(e){return{type:"keyframes",duration:.8,values:e}},_w={x:gc,y:gc,z:gc,rotate:gc,rotateX:gc,rotateY:gc,rotateZ:gc,scaleX:Ch,scaleY:Ch,scale:Ch,opacity:Kg,backgroundColor:Kg,color:Kg,default:Ch},tj=function(e,t){var n;return Ad(t)?n=ej:n=_w[e]||_w.default,at({to:t},n(t))},nj=at(at({},rC),{color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:tm,WebkitFilter:tm}),py=function(e){return nj[e]};function gy(e,t){var n,r=py(e);return r!==tm&&(r=Au),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function rj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Rw=!1;function ij(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=_a(e,["ease","times","yoyo","flip","loop"]),l=at({},s);return n&&(l.offset=n),s.duration&&(l.duration=gp(s.duration)),s.repeatDelay&&(l.repeatDelay=gp(s.repeatDelay)),t&&(l.ease=QN(t)?t.map(Dw):Dw(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(Hd(!Rw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Rw=!0,r?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||r||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function oj(e,t){var n,r,i=vy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function aj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function sj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),aj(t),rj(e)||(e=at(at({},e),tj(n,t.to))),at(at({},t),ij(e))}function uj(e,t,n,r,i){var o,s=vy(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Pw(e,n);l==="none"&&c&&typeof n=="string"?l=gy(e,n):Iw(l)&&typeof n=="string"?l=Aw(n):!Array.isArray(n)&&Iw(n)&&typeof l=="string"&&(n=Aw(l));var d=Pw(e,l);Hd(d===c,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property."));function y(){var S={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?IN(at(at({},S),s)):FC(at(at({},sj(s,S,e)),{onUpdate:function(T){var _;S.onUpdate(T),(_=s.onUpdate)===null||_===void 0||_.call(s,T)},onComplete:function(){var T;S.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var S,T,_=dC(n);return t.set(_),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,_),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?p:y}function Iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Aw(e){return typeof e=="number"?0:gy("",e)}function vy(e,t){return e[t]||e.default||e}function my(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=uj(e,t,n,r,i),c=oj(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,gp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var lj=function(e){return/^\-?\d*\.?\d+$/.test(e)},cj=function(e){return/^0[^.\s]+$/.test(e)};function yy(e,t){e.indexOf(t)===-1&&e.push(t)}function by(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return yy(this.subscriptions,t),function(){return by(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),fj=function(e){return!isNaN(parseFloat(e))},dj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new pd,this.velocityUpdateSubscribers=new pd,this.renderSubscribers=new pd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=hp(),s=o.delta,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,Ns.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Ns.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=fj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?NC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function If(e){return new dj(e)}var YC=function(e){return function(t){return t.test(e)}},hj={test:function(e){return e==="auto"},parse:function(e){return e}},GC=[$c,jt,Fs,pl,tF,eF,hj],nd=function(e){return GC.find(YC(e))},pj=Qo(Qo([],Gr(GC),!1),[io,Au],!1),gj=function(e){return pj.find(YC(e))};function vj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,If(n))}function mj(e,t){var n=Fp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=_a(r,["transitionEnd","transition"]);s=at(at({},s),o);for(var l in s){var c=dC(s[l]);vj(e,l,c)}}function yj(e,t,n){var r,i,o,s,l=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=l.length;if(c)for(var d=0;d<c;d++){var y=l[d],p=t[y],S=null;Array.isArray(p)&&(S=p[0]),S===null&&(S=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),S!=null&&(typeof S=="string"&&(lj(S)||cj(S))?S=parseFloat(S):!gj(S)&&Au.test(p)&&(S=gy(y,p)),e.addValue(y,If(S)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=S),e.setBaseTarget(y,S))}}function bj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function wj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=bj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function xj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return lm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=lm(e,t,n);else{var o=typeof t=="function"?Fp(e,t,n.custom):t;r=qC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function lm(e,t,n){var r;n===void 0&&(n={});var i=Fp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return qC(e,i,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(T){T===void 0&&(T=0);var _=s.delayChildren,R=_===void 0?0:_,L=s.staggerChildren,I=s.staggerDirection;return Sj(e,t,R+T,L,I,n)}:function(){return Promise.resolve()},d=s.when;if(d){var y=Gr(d==="beforeChildren"?[l,c]:[c,l],2),p=y[0],S=y[1];return p().then(S)}else return Promise.all([l(),c(n.delay)])}function qC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,l=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),y=d.transition,p=y===void 0?e.getDefaultTransition():y,S=d.transitionEnd,T=_a(d,["transition","transitionEnd"]);l&&(p=l);var _=[],R=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var I=e.getValue(L),U=T[L];if(!(!I||U===void 0||R&&Cj(R,L))){var z=at({delay:s},p);e.shouldReduceMotion&&Ud(L)&&(z=at(at({},z),{type:!1,delay:0}));var re=my(L,I,U,z);_.push(re)}}return Promise.all(_).then(function(){S&&mj(e,S)})}function Sj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],l=(e.variantChildren.size-1)*r,c=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),l-d*r};return Array.from(e.variantChildren).sort(Tj).forEach(function(d,y){s.push(lm(d,t,at(at({},o),{delay:n+c(y)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function Tj(e,t){return e.sortNodePosition(t)}function Cj(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var wy=[jn.Animate,jn.InView,jn.Focus,jn.Hover,jn.Tap,jn.Drag,jn.Exit],Ej=Qo([],Gr(wy),!1).reverse(),kj=wy.length;function Oj(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return xj(e,r,i)}))}}function Dj(e){var t=Oj(e),n=_j(),r={},i=!0,o=function(y,p){var S=Fp(e,p);if(S){S.transition;var T=S.transitionEnd,_=_a(S,["transition","transitionEnd"]);y=at(at(at({},y),_),T)}return y};function s(y){return r[y]!==void 0}function l(y){t=y(e)}function c(y,p){for(var S,T=e.getProps(),_=e.getVariantContext(!0)||{},R=[],L=new Set,I={},U=1/0,z=function(x){var ye=Ej[x],ae=n[ye],Me=(S=T[ye])!==null&&S!==void 0?S:_[ye],Ze=rs(Me),Ve=ye===p?ae.isActive:null;Ve===!1&&(U=x);var Ye=Me===_[ye]&&Me!==T[ye]&&Ze;if(Ye&&i&&e.manuallyAnimateOnMount&&(Ye=!1),ae.protectedKeys=at({},I),!ae.isActive&&Ve===null||!Me&&!ae.prevProp||ay(Me)||typeof Me=="boolean")return"continue";var ot=Pj(ae.prevProp,Me),me=ot||ye===p&&ae.isActive&&!Ye&&Ze||x>U&&Ze,Oe=Array.isArray(Me)?Me:[Me],He=Oe.reduce(o,{});Ve===!1&&(He={});var Je=ae.prevResolvedValues,st=Je===void 0?{}:Je,De=at(at({},st),He),xe=function(Le){me=!0,L.delete(Le),ae.needsAnimating[Le]=!0};for(var We in De){var Ue=He[We],Re=st[We];I.hasOwnProperty(We)||(Ue!==Re?Ad(Ue)&&Ad(Re)?!zC(Ue,Re)||ot?xe(We):ae.protectedKeys[We]=!0:Ue!==void 0?xe(We):L.add(We):Ue!==void 0&&L.has(We)?xe(We):ae.protectedKeys[We]=!0)}ae.prevProp=Me,ae.prevResolvedValues=He,ae.isActive&&(I=at(at({},I),He)),i&&e.blockInitialAnimation&&(me=!1),me&&!Ye&&R.push.apply(R,Qo([],Gr(Oe.map(function(Le){return{animation:Le,options:at({type:ye},y)}})),!1))},re=0;re<kj;re++)z(re);if(r=at({},I),L.size){var Z={};L.forEach(function(x){var ye=e.getBaseTarget(x);ye!==void 0&&(Z[x]=ye)}),R.push({animation:Z})}var de=!!R.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(de=!1),i=!1,de?t(R):Promise.resolve()}function d(y,p,S){var T;if(n[y].isActive===p)return Promise.resolve();(T=e.variantChildren)===null||T===void 0||T.forEach(function(L){var I;return(I=L.animationState)===null||I===void 0?void 0:I.setActive(y,p)}),n[y].isActive=p;var _=c(S,y);for(var R in n)n[R].protectedKeys={};return _}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function Pj(e,t){return typeof t=="string"?t!==e:HT(t)?!zC(t,e):!1}function vc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _j(){var e;return e={},e[jn.Animate]=vc(!0),e[jn.InView]=vc(),e[jn.Hover]=vc(),e[jn.Tap]=vc(),e[jn.Drag]=vc(),e[jn.Focus]=vc(),e[jn.Exit]=vc(),e}var Rj={animation:xl(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Dj(t)),ay(n)&&Q.useEffect(function(){return n.subscribe(t)},[n])}),exit:xl(function(e){var t=e.custom,n=e.visualElement,r=Gr(WC(),2),i=r[0],o=r[1],s=Q.useContext(Lp);Q.useEffect(function(){var l,c;n.isPresent=i;var d=(l=n.animationState)===null||l===void 0?void 0:l.setActive(jn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},XC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var S=Jg(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,_=jC(S.offset,{x:0,y:0})>=3;if(!(!T&&!_)){var R=S.point,L=hp().timestamp;i.history.push(at(at({},R),{timestamp:L}));var I=i.handlers,U=I.onStart,z=I.onMove;T||(U&&U(i.lastMoveEvent,S),i.startEvent=i.lastMoveEvent),z&&z(i.lastMoveEvent,S)}}},this.handlePointerMove=function(S,T){if(i.lastMoveEvent=S,i.lastMoveEventInfo=Zg(T,i.transformPagePoint),pC(S)&&S.buttons===0){i.handlePointerUp(S,T);return}Ns.update(i.updatePoint,!0)},this.handlePointerUp=function(S,T){i.end();var _=i.handlers,R=_.onEnd,L=_.onSessionEnd,I=Jg(Zg(T,i.transformPagePoint),i.history);i.startEvent&&R&&R(S,I),L&&L(S,I)},!(gC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=sy(t),c=Zg(l,this.transformPagePoint),d=c.point,y=hp().timestamp;this.history=[at(at({},d),{timestamp:y})];var p=n.onSessionStart;p&&p(t,Jg(c,this.history)),this.removeListeners=$p(Df(window,"pointermove",this.handlePointerMove),Df(window,"pointerup",this.handlePointerUp),Df(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Rf.update(this.updatePoint)},e}();function Zg(e,t){return t?{point:t(e.point)}:e}function Mw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jg(e,t){var n=e.point;return{point:n,delta:Mw(n,KC(t)),offset:Mw(n,Ij(t)),velocity:Aj(t,.1)}}function Ij(e){return e[0]}function KC(e){return e[e.length-1]}function Aj(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=KC(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>gp(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Mu(e){return e.max-e.min}function Lw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),jC(e,t)<n}function Fw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=lr(t.min,t.max,e.origin),e.scale=Mu(n)/Mu(t),(Lw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=lr(n.min,n.max,e.origin)-e.originPoint,(Lw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gd(e,t,n,r){Fw(e.x,t.x,n.x,r==null?void 0:r.originX),Fw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Nw(e,t,n){e.min=n.min+t.min,e.max=e.min+Mu(t)}function Mj(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function jw(e,t,n){e.min=t.min-n.min,e.max=e.min+Mu(t)}function vd(e,t,n){jw(e.x,t.x,n.x),jw(e.y,t.y,n.y)}function Lj(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?lr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?lr(i,e,n.max):Math.min(e,i)),e}function Bw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Fj(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Bw(e.x,r,o),y:Bw(e.y,n,i)}}function $w(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Gr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function Nj(e,t){return{x:$w(e.x,t.x),y:$w(e.y,t.y)}}function jj(e,t){var n=.5,r=Mu(e),i=Mu(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),fp(0,1,n)}function Bj(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var cm=.35;function $j(e){return e===void 0&&(e=cm),e===!1?e=0:e===!0&&(e=cm),{x:Vw(e,"left","right"),y:Vw(e,"top","bottom")}}function Vw(e,t,n){return{min:Hw(e,t),max:Hw(e,n)}}function Hw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Uw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},md=function(){return{x:Uw(),y:Uw()}},Ww=function(){return{min:0,max:0}},Mi=function(){return{x:Ww(),y:Ww()}};function As(e){return[e("x"),e("y")]}function ZC(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function Vj(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Hj(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qg(e){return e===void 0||e===1}function JC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Qg(t)||!Qg(n)||!Qg(r)}function gl(e){return JC(e)||zw(e.x)||zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zw(e){return e&&e!=="0%"}function vp(e,t,n){var r=e-n,i=t*r;return n+i}function Yw(e,t,n,r,i){return i!==void 0&&(e=vp(e,i,r)),vp(e,n,r)+t}function fm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Yw(e.min,t,n,r,i),e.max=Yw(e.max,t,n,r,i)}function QC(e,t){var n=t.x,r=t.y;fm(e.x,n.translate,n.scale,n.originPoint),fm(e.y,r.translate,r.scale,r.originPoint)}function Uj(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var l,c,d=0;d<s;d++)l=n[d],c=l.projectionDelta,((o=(i=l.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Sf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,QC(e,c)),r&&gl(l.latestValues)&&Sf(e,l.latestValues))}}function ml(e,t){e.min=e.min+t,e.max=e.max+t}function Gw(e,t,n){var r=Gr(n,3),i=r[0],o=r[1],s=r[2],l=t[s]!==void 0?t[s]:.5,c=lr(e.min,e.max,l);fm(e,t[i],t[o],c,t.scale)}var Wj=["x","scaleX","originX"],zj=["y","scaleY","originY"];function Sf(e,t){Gw(e.x,t,Wj),Gw(e.y,t,zj)}function eE(e,t){return ZC(Hj(e.getBoundingClientRect(),t))}function Yj(e,t,n){var r=eE(e,n),i=t.scroll;return i&&(ml(r.x,i.x),ml(r.y,i.y)),r}var Gj=new WeakMap,qj=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Mi(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var l=function(p){r.stopAnimation(),s&&r.snapToCursor(sy(p,"page").point)},c=function(p,S){var T,_=r.getProps(),R=_.drag,L=_.dragPropagation,I=_.onDragStart;R&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=bC(R),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),As(function(U){var z,re,Z=r.getAxisMotionValue(U).get()||0;if(Fs.test(Z)){var de=(re=(z=r.visualElement.projection)===null||z===void 0?void 0:z.layout)===null||re===void 0?void 0:re.actual[U];if(de){var x=Mu(de);Z=x*(parseFloat(Z)/100)}}r.originPoint[U]=Z}),I==null||I(p,S),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(jn.Drag,!0))},d=function(p,S){var T=r.getProps(),_=T.dragPropagation,R=T.dragDirectionLock,L=T.onDirectionLock,I=T.onDrag;if(!(!_&&!r.openGlobalLock)){var U=S.offset;if(R&&r.currentDirection===null){r.currentDirection=Xj(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",S.point,U),r.updateAxis("y",S.point,U),r.visualElement.syncRender(),I==null||I(p,S)}},y=function(p,S){return r.stop(p,S)};this.panSession=new XC(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:y},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(jn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Eh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Lj(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&xf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Fj(o.actual,r):this.constraints=!1,this.elastic=$j(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&As(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=Bj(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;Da(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=Yj(i,o.root,this.visualElement.getTransformPagePoint()),l=Nj(o.layout.actual,s);if(r){var c=r(Vj(l));this.hasMutatedConstraints=!!c,c&&(l=ZC(c))}return l},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,l=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,y=this.constraints||{},p=As(function(S){var T;if(Eh(S,i,n.currentDirection)){var _=(T=y==null?void 0:y[S])!==null&&T!==void 0?T:{};c&&(_={min:0,max:0});var R=s?200:1e6,L=s?40:1e7,I=at(at({type:"inertia",velocity:o?t[S]:0,bounceStiffness:R,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),_);return n.startAxisValueAnimation(S,I)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return my(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;As(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;As(function(r){var i=n.getProps().drag;if(Eh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var l=o.layout.actual[r],c=l.min,d=l.max;s.set(t[r]-lr(c,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!xf(o)||!s||!this.constraints)){this.stopAnimation();var l={x:0,y:0};As(function(d){var y=t.getAxisMotionValue(d);if(y){var p=y.get();l[d]=jj({min:p,max:p},t.constraints[d])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),As(function(d){if(Eh(d,i,null)){var y=t.getAxisMotionValue(d),p=t.constraints[d],S=p.min,T=p.max;y.set(lr(S,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;Gj.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Df(r,"pointerdown",function(d){var y=t.getProps(),p=y.drag,S=y.dragListener,T=S===void 0?!0:S;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,l=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var c=Bp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var y=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(As(function(S){var T=t.getAxisMotionValue(S);T&&(t.originPoint[S]+=y[S].translate,T.set(T.get()+y[S].translate))}),t.visualElement.syncRender())}),function(){c(),i(),l()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,l=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,y=t.dragElastic,p=y===void 0?cm:y,S=t.dragMomentum,T=S===void 0?!0:S;return at(at({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function Eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Xj(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Kj(e){var t=e.dragControls,n=e.visualElement,r=jp(function(){return new qj(n)});Q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),Q.useEffect(function(){return r.addListeners()},[r])}function Zj(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=Q.useRef(null),c=Q.useContext(Qm).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,S){l.current=null,r&&r(p,S)}};Q.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function y(p){l.current=new XC(p,d,{transformPagePoint:c})}cp(o,"pointerdown",s&&y),SC(function(){return l.current&&l.current.end()})}var Jj={pan:xl(Zj),drag:xl(Kj)},kh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Qj(){var e=kh.map(function(){return new pd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){kh.forEach(function(i){var o,s="on"+i,l=r[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=n[s](l))})}};return e.forEach(function(r,i){n["on"+kh[i]]=function(o){return r.add(o)},n["notify"+kh[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Qo([],Gr(o),!1))}}),n}function eB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Iu(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&UC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(Iu(s))e.addValue(i,If(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,If((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var tE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,l=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,y=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(S,T){var _=S.parent,R=S.props,L=S.presenceId,I=S.blockInitialAnimation,U=S.visualState,z=S.shouldReduceMotion;T===void 0&&(T={});var re=!1,Z=U.latestValues,de=U.renderState,x,ye=Qj(),ae=new Map,Me=new Map,Ze={},Ve=at({},Z),Ye;function ot(){!x||!re||(me(),l(x,de,R.style,Ue.projection))}function me(){r(Ue,de,Z,T,R)}function Oe(){ye.notifyUpdate(Z)}function He(Re,Le){var Xe=Le.onChange(function(mt){Z[Re]=mt,R.onUpdate&&Ns.update(Oe,!1,!0)}),lt=Le.onRenderRequest(Ue.scheduleRender);Me.set(Re,function(){Xe(),lt()})}var Je=p(R);for(var st in Je){var De=Je[st];Z[st]!==void 0&&Iu(De)&&De.set(Z[st],!1)}var xe=Np(R),We=WT(R),Ue=at(at({treeType:n,current:null,depth:_?_.depth+1:0,parent:_,children:new Set,presenceId:L,shouldReduceMotion:z,variantChildren:We?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(_!=null&&_.isMounted()),blockInitialAnimation:I,isMounted:function(){return!!x},mount:function(Re){re=!0,x=Ue.current=Re,Ue.projection&&Ue.projection.mount(Re),We&&_&&!xe&&(Ye=_==null?void 0:_.addVariantChild(Ue)),ae.forEach(function(Le,Xe){return He(Xe,Le)}),_==null||_.children.add(Ue),Ue.setProps(R)},unmount:function(){var Re;(Re=Ue.projection)===null||Re===void 0||Re.unmount(),Rf.update(Oe),Rf.render(ot),Me.forEach(function(Le){return Le()}),Ye==null||Ye(),_==null||_.children.delete(Ue),ye.clearAllListeners(),x=void 0,re=!1},addVariantChild:function(Re){var Le,Xe=Ue.getClosestVariantNode();if(Xe)return(Le=Xe.variantChildren)===null||Le===void 0||Le.add(Re),function(){return Xe.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!y||n!==Re.treeType?0:y(Ue.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return We?Ue:_==null?void 0:_.getClosestVariantNode()},getLayoutId:function(){return R.layoutId},getInstance:function(){return x},getStaticValue:function(Re){return Z[Re]},setStaticValue:function(Re,Le){return Z[Re]=Le},getLatestValues:function(){return Z},setVisibility:function(Re){Ue.isVisible!==Re&&(Ue.isVisible=Re,Ue.scheduleRender())},makeTargetAnimatable:function(Re,Le){return Le===void 0&&(Le=!0),o(Ue,Re,R,Le)},measureViewportBox:function(){return s(x,R)},addValue:function(Re,Le){Ue.hasValue(Re)&&Ue.removeValue(Re),ae.set(Re,Le),Z[Re]=Le.get(),He(Re,Le)},removeValue:function(Re){var Le;ae.delete(Re),(Le=Me.get(Re))===null||Le===void 0||Le(),Me.delete(Re),delete Z[Re],d(Re,de)},hasValue:function(Re){return ae.has(Re)},getValue:function(Re,Le){var Xe=ae.get(Re);return Xe===void 0&&Le!==void 0&&(Xe=If(Le),Ue.addValue(Re,Xe)),Xe},forEachValue:function(Re){return ae.forEach(Re)},readValue:function(Re){var Le;return(Le=Z[Re])!==null&&Le!==void 0?Le:c(x,Re,T)},setBaseTarget:function(Re,Le){Ve[Re]=Le},getBaseTarget:function(Re){if(i){var Le=i(R,Re);if(Le!==void 0&&!Iu(Le))return Le}return Ve[Re]}},ye),{build:function(){return me(),de},scheduleRender:function(){Ns.render(ot,!1,!0)},syncRender:ot,setProps:function(Re){(Re.transformTemplate||R.transformTemplate)&&Ue.scheduleRender(),R=Re,ye.updatePropListeners(Re),Ze=eB(Ue,p(R),Ze)},getProps:function(){return R},getVariant:function(Re){var Le;return(Le=R.variants)===null||Le===void 0?void 0:Le[Re]},getDefaultTransition:function(){return R.transition},getTransformPagePoint:function(){return R.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return _==null?void 0:_.getVariantContext();if(!xe){var Le=(_==null?void 0:_.getVariantContext())||{};return R.initial!==void 0&&(Le.initial=R.initial),Le}for(var Xe={},lt=0;lt<tB;lt++){var mt=nE[lt],wt=R[mt];(rs(wt)||wt===!1)&&(Xe[mt]=wt)}return Xe}});return Ue}},nE=Qo(["initial"],Gr(wy),!1),tB=nE.length;function dm(e){return typeof e=="string"&&e.startsWith("var(--")}var rE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nB(e){var t=rE.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var rB=4;function hm(e,t,n){n===void 0&&(n=1),Da(n<=rB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(nB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():dm(o)?hm(o,t,n+1):o}}function iB(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=at({},n)),e.forEachValue(function(d){var y=d.get();if(dm(y)){var p=hm(y,o);p&&d.set(p)}});for(var s in i){var l=i[s];if(dm(l)){var c=hm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var oB=new Set(["width","height","top","left","right","bottom","x","y"]),iE=function(e){return oB.has(e)},aB=function(e){return Object.keys(e).some(iE)},oE=function(e,t){e.set(t,!1),e.set(t)},Oh=function(e){return e===$c||e===jt},qw;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(qw||(qw={}));var Xw=function(e,t){return parseFloat(e.split(", ")[t])},Kw=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Xw(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?Xw(s[1],e):0}},sB=new Set(["x","y","z"]),uB=Rd.filter(function(e){return!sB.has(e)});function lB(e){var t=[];return uB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var Zw={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Kw(4,13),y:Kw(5,14)},cB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){l[d]=Zw[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var y=t.getValue(d);oE(y,l[d]),e[d]=Zw[d](c,o)}),e},fB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=at({},t),r=at({},r);var i=Object.keys(t).filter(iE),o=[],s=!1,l=[];if(i.forEach(function(y){var p=e.getValue(y);if(e.hasValue(y)){var S=n[y],T=nd(S),_=t[y],R;if(Ad(_)){var L=_.length,I=_[0]===null?1:0;S=_[I],T=nd(S);for(var U=I;U<L;U++)R?Da(nd(_[U])===R,"All keyframes must be of the same type"):(R=nd(_[U]),Da(R===T||Oh(T)&&Oh(R),"Keyframes must be of the same dimension as the current value"))}else R=nd(_);if(T!==R)if(Oh(T)&&Oh(R)){var z=p.get();typeof z=="string"&&p.set(parseFloat(z)),typeof _=="string"?t[y]=parseFloat(_):Array.isArray(_)&&R===jt&&(t[y]=_.map(parseFloat))}else T!=null&&T.transform&&(R!=null&&R.transform)&&(S===0||_===0)?S===0?p.set(R.transform(S)):t[y]=T.transform(_):(s||(o=lB(e),s=!0),l.push(y),r[y]=r[y]!==void 0?r[y]:t[y],oE(p,_))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=cB(t,e,l);return o.length&&o.forEach(function(y){var p=Gr(y,2),S=p[0],T=p[1];e.getValue(S).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function dB(e,t,n,r){return aB(t)?fB(e,t,n,r):{target:t,transitionEnd:r}}var hB=function(e,t,n,r){var i=iB(e,t,r);return t=i.target,r=i.transitionEnd,dB(e,t,n,r)};function pB(e){return window.getComputedStyle(e)}var aE={treeType:"dom",readValueFromInstance:function(e,t){if(Ud(t)){var n=py(t);return n&&n.default||0}else{var r=pB(e);return(XT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return eE(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,l=_a(t,["transition","transitionEnd"]),c=wj(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){yj(e,l,c);var d=hB(e,l,c,s);s=d.transitionEnd,l=d.target}return at({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:oy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ny(t,n,r,i.transformTemplate)},render:uC},gB=tE(aE),vB=tE(at(at({},aE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ud(t)?((n=py(t))===null||n===void 0?void 0:n.default)||0:(t=lC.has(t)?t:sC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:fC,build:function(e,t,n,r,i){iy(t,n,r,i.transformTemplate)},render:cC})),mB=function(e,t){return ey(e)?vB(t,{enableHardwareAcceleration:!1}):gB(t,{enableHardwareAcceleration:!0})};function Jw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var rd={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;var n=Jw(e,t.target.x),r=Jw(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Qw="_$css",yB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(rE,function(R){return s.push(R),Qw}));var l=Au.parse(e);if(l.length>5)return i;var c=Au.createTransformer(e),d=typeof l[0]!="number"?1:0,y=r.x.scale*n.x,p=r.y.scale*n.y;l[0+d]/=y,l[1+d]/=p;var S=lr(y,p,.5);typeof l[2+d]=="number"&&(l[2+d]/=S),typeof l[3+d]=="number"&&(l[3+d]/=S);var T=c(l);if(o){var _=0;T=T.replace(Qw,function(){var R=s[_];return _++,R})}return T}},bB=function(e){NT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,l=r.layoutId,c=i.projection;W2(xB),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(at(at({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),fd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,l||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Ns.postRender(function(){var y;!((y=d.getStack())===null||y===void 0)&&y.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(Q.Component);function wB(e){var t=Gr(WC(),2),n=t[0],r=t[1],i=Q.useContext(zT);return Q.createElement(bB,at({},e,{layoutGroup:i,switchLayoutGroup:Q.useContext(YT),isPresent:n,safeToRemove:r}))}var xB={borderRadius:at(at({},rd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:yB},SB={measureLayout:wB};function TB(e,t,n){n===void 0&&(n={});var r=Iu(e)?e:If(e);return my("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var sE=["TopLeft","TopRight","BottomLeft","BottomRight"],CB=sE.length,ex=function(e){return typeof e=="string"?parseFloat(e):e},tx=function(e){return typeof e=="number"||jt.test(e)};function EB(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=lr(0,(s=n.opacity)!==null&&s!==void 0?s:1,kB(r)),e.opacityExit=lr((l=t.opacity)!==null&&l!==void 0?l:1,0,OB(r))):o&&(e.opacity=lr((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var y=0;y<CB;y++){var p="border".concat(sE[y],"Radius"),S=nx(t,p),T=nx(n,p);if(!(S===void 0&&T===void 0)){S||(S=0),T||(T=0);var _=S===0||T===0||tx(S)===tx(T);_?(e[p]=Math.max(lr(ex(S),ex(T),r),0),(Fs.test(T)||Fs.test(S))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=lr(t.rotate||0,n.rotate||0,r))}function nx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var kB=uE(0,.5,dy),OB=uE(.5,.95,cy);function uE(e,t,n){return function(r){return r<e?0:r>t?1:n(Md(e,t,r))}}function rx(e,t){e.min=t.min,e.max=t.max}function ts(e,t){rx(e.x,t.x),rx(e.y,t.y)}function ix(e,t,n,r,i){return e-=t,e=vp(e,1/n,r),i!==void 0&&(e=vp(e,1/i,r)),e}function DB(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Fs.test(t)){t=parseFloat(t);var l=lr(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=lr(o.min,o.max,r);e===o&&(c-=t),e.min=ix(e.min,t,n,c,i),e.max=ix(e.max,t,n,c,i)}}function ox(e,t,n,r,i){var o=Gr(n,3),s=o[0],l=o[1],c=o[2];DB(e,t[s],t[l],t[c],t.scale,r,i)}var PB=["x","scaleX","originX"],_B=["y","scaleY","originY"];function ax(e,t,n,r){ox(e.x,t,PB,n==null?void 0:n.x,r==null?void 0:r.x),ox(e.y,t,_B,n==null?void 0:n.y,r==null?void 0:r.y)}function sx(e){return e.translate===0&&e.scale===1}function lE(e){return sx(e.x)&&sx(e.y)}function cE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var RB=function(){function e(){this.members=[]}return e.prototype.add=function(t){yy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(by(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),IB="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ux(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,l=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,y=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(y,")"),o===IB?"none":o}var AB=function(e,t){return e.depth-t.depth},MB=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){yy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){by(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(AB),this.isDirty=!1,this.children.forEach(t)},e}(),lx=1e3;function fE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,d){var y=this;c===void 0&&(c={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){y.isUpdating&&(y.isUpdating=!1,y.clearAllSnapshots())},this.updateProjection=function(){y.nodes.forEach($B),y.nodes.forEach(VB)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?Qo(Qo([],Gr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new MB)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new pd),this.eventHandlers.get(l).add(c)},s.prototype.notifyListeners=function(l){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var y=this.eventHandlers.get(l);y==null||y.notify.apply(y,Qo([],Gr(c),!1))},s.prototype.hasListeners=function(l){return this.eventHandlers.has(l)},s.prototype.registerPotentialNode=function(l,c){this.potentialNodes.set(l,c)},s.prototype.mount=function(l,c){var d=this,y;if(c===void 0&&(c=!1),!this.instance){this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;var p=this.options,S=p.layoutId,T=p.layout,_=p.visualElement;if(_&&!_.getInstance()&&_.mount(l),this.root.nodes.add(this),(y=this.parent)===null||y===void 0||y.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(T||S)&&(this.isLayoutDirty=!0),t){var R,L=function(){return d.root.updateBlockedByResize=!1};t(l,function(){d.root.updateBlockedByResize=!0,clearTimeout(R),R=window.setTimeout(L,250),fd.hasAnimatedSinceResize&&(fd.hasAnimatedSinceResize=!1,d.nodes.forEach(BB))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&_&&(S||T)&&this.addEventListener("didUpdate",function(I){var U,z,re,Z,de,x=I.delta,ye=I.hasLayoutChanged,ae=I.hasRelativeTargetChanged,Me=I.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Ze=(z=(U=d.options.transition)!==null&&U!==void 0?U:_.getDefaultTransition())!==null&&z!==void 0?z:YB,Ve=_.getProps(),Ye=Ve.onLayoutAnimationStart,ot=Ve.onLayoutAnimationComplete,me=!d.targetLayout||!cE(d.targetLayout,Me)||ae,Oe=!ye&&ae;if(!((re=d.resumeFrom)===null||re===void 0)&&re.instance||Oe||ye&&(me||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(x,Oe);var He=at(at({},vy(Ze,"layout")),{onPlay:Ye,onComplete:ot});_.shouldReduceMotion&&(He.delay=0,He.type=!1),d.startAnimation(He)}else!ye&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((de=(Z=d.options).onExitComplete)===null||de===void 0||de.call(Z));d.targetLayout=Me})}},s.prototype.unmount=function(){var l,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Rf.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(HB))},s.prototype.willUpdate=function(l){var c,d,y;if(l===void 0&&(l=!0),this.root.isUpdateBlocked()){(d=(c=this.options).onExitComplete)===null||d===void 0||d.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var p=0;p<this.path.length;p++){var S=this.path[p];S.shouldResetTransform=!0,S.updateScroll()}var T=this.options,_=T.layoutId,R=T.layout;if(!(_===void 0&&!R)){var L=(y=this.options.visualElement)===null||y===void 0?void 0:y.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var l=this.isUpdateBlocked();if(l){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(GB),this.potentialNodes.clear()),this.nodes.forEach(jB),this.nodes.forEach(LB),this.nodes.forEach(FB),this.clearAllSnapshots(),qg.update(),qg.preRender(),qg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(NB),this.sharedNodes.forEach(UB)},s.prototype.scheduleUpdateProjection=function(){Ns.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;Ns.postRender(function(){l.isLayoutDirty?l.root.didUpdate():l.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var l=this.measure(),c=this.removeTransform(this.removeElementScroll(l));px(c),this.snapshot={measured:l,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var l;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var d=this.path[c];d.updateScroll()}var y=this.measure();px(y);var p=this.layout;this.layout={measured:y,actual:this.removeElementScroll(y)},this.layoutCorrected=Mi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,p==null?void 0:p.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var l;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!lE(this.projectionDelta),y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,p=y==null?void 0:y(this.latestValues,""),S=p!==this.prevTransformTemplateValue;c&&(d||gl(this.latestValues)||S)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Mi();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(ml(c.x,d.x),ml(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Mi();ts(c,l);for(var d=0;d<this.path.length;d++){var y=this.path[d],p=y.scroll,S=y.options,T=y.isScrollRoot;if(y!==this.root&&p&&S.layoutScroll){if(T){ts(c,l);var _=this.root.scroll;_&&(ml(c.x,-_.x),ml(c.y,-_.y))}ml(c.x,p.x),ml(c.y,p.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var p=this.path[y];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Sf(d,{x:-p.scroll.x,y:-p.scroll.y}),gl(p.latestValues)&&Sf(d,p.latestValues)}return gl(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var p=this.path[y];if(p.instance&&gl(p.latestValues)){JC(p.latestValues)&&p.updateSnapshot();var S=Mi(),T=p.measure();ts(S,T),ax(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,S)}}return gl(this.latestValues)&&ax(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=at(at(at({},this.options),l),{crossfade:(c=l.crossfade)!==null&&c!==void 0?c:!0})},s.prototype.clearMeasurements=function(){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},s.prototype.resolveTargetDelta=function(){var l,c=this.options,d=c.layout,y=c.layoutId;!this.layout||!(d||y)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Mi(),this.targetWithTransforms=Mi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?Mj(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),QC(this.target,this.targetDelta)):ts(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||gl(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var l,c=this.options,d=c.layout,y=c.layoutId;if(this.isTreeAnimating=!!(!((l=this.parent)===null||l===void 0)&&l.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||y))){var p=this.getLead();ts(this.layoutCorrected,this.layout.actual),Uj(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var S=p.target;if(S){this.projectionDelta||(this.projectionDelta=md(),this.projectionDeltaWithTransform=md());var T=this.treeScale.x,_=this.treeScale.y,R=this.projectionTransform;gd(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=ux(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==T||this.treeScale.y!==_)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(l){var c,d,y;l===void 0&&(l=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),l&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(l,c){var d=this,y;c===void 0&&(c=!1);var p=this.snapshot,S=(p==null?void 0:p.latestValues)||{},T=at({},this.latestValues),_=md();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var R=Mi(),L=p==null?void 0:p.isShared,I=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,U=!!(L&&!I&&this.options.crossfade===!0&&!this.path.some(zB));this.animationProgress=0,this.mixTargetDelta=function(z){var re,Z=z/1e3;fx(_.x,l.x,Z),fx(_.y,l.y,Z),d.setTargetDelta(_),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((re=d.relativeParent)===null||re===void 0)&&re.layout)&&(vd(R,d.layout.actual,d.relativeParent.layout.actual),WB(d.relativeTarget,d.relativeTargetOrigin,R,Z)),L&&(d.animationValues=T,EB(T,S,d.latestValues,Z,U,I)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=Z},this.mixTargetDelta(0)},s.prototype.startAnimation=function(l){var c=this,d,y;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((y=this.resumingFrom.currentAnimation)===null||y===void 0||y.stop()),this.pendingAnimation&&(Rf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ns.update(function(){fd.hasAnimatedSinceResize=!0,c.currentAnimation=TB(0,lx,at(at({},l),{onUpdate:function(p){var S;c.mixTargetDelta(p),(S=l.onUpdate)===null||S===void 0||S.call(l,p)},onComplete:function(){var p;(p=l.onComplete)===null||p===void 0||p.call(l),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,lx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var l=this.getLead(),c=l.targetWithTransforms,d=l.target,y=l.layout,p=l.latestValues;!c||!d||!y||(ts(c,d),Sf(c,p),gd(this.projectionDeltaWithTransform,this.layoutCorrected,c,p))},s.prototype.registerSharedNode=function(l,c){var d,y,p;this.sharedNodes.has(l)||this.sharedNodes.set(l,new RB);var S=this.sharedNodes.get(l);S.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(p=(y=c.options.initialPromotionConfig)===null||y===void 0?void 0:y.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(y,c)})},s.prototype.isLead=function(){var l=this.getStack();return l?l.lead===this:!0},s.prototype.getLead=function(){var l,c=this.options.layoutId;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this},s.prototype.getPrevLead=function(){var l,c=this.options.layoutId;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0},s.prototype.getStack=function(){var l=this.options.layoutId;if(l)return this.root.sharedNodes.get(l)},s.prototype.promote=function(l){var c=l===void 0?{}:l,d=c.needsReset,y=c.transition,p=c.preserveFollowOpacity,S=this.getStack();S&&S.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var l=this.getStack();return l?l.relegate(this):!1},s.prototype.resetRotation=function(){var l=this.options.visualElement;if(l){for(var c=!1,d={},y=0;y<Jv.length;y++){var p=Jv[y],S="rotate"+p;l.getStaticValue(S)&&(c=!0,d[S]=l.getStaticValue(S),l.setStaticValue(S,0))}if(c){l==null||l.syncRender();for(var S in d)l.setStaticValue(S,d[S]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,y,p,S,T;l===void 0&&(l={});var _={};if(!this.instance||this.isSVG)return _;if(this.isVisible)_.visibility="";else return{visibility:"hidden"};var R=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,_.opacity="",_.pointerEvents=Wh(l.pointerEvents)||"",_.transform=R?R(this.latestValues,""):"none",_;var L=this.getLead();if(!this.projectionDelta||!this.layout||!L.target){var I={};return this.options.layoutId&&(I.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,I.pointerEvents=Wh(l.pointerEvents)||""),this.hasProjected&&!gl(this.latestValues)&&(I.transform=R?R({},""):"none",this.hasProjected=!1),I}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),_.transform=ux(this.projectionDeltaWithTransform,this.treeScale,U),R&&(_.transform=R(U,_.transform));var z=this.projectionDelta,re=z.x,Z=z.y;_.transformOrigin="".concat(re.origin*100,"% ").concat(Z.origin*100,"% 0"),L.animationValues?_.opacity=L===this?(p=(y=U.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:U.opacityExit:_.opacity=L===this?(S=U.opacity)!==null&&S!==void 0?S:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var de in up)if(U[de]!==void 0){var x=up[de],ye=x.correct,ae=x.applyTo,Me=ye(U[de],L);if(ae)for(var Ze=ae.length,Ve=0;Ve<Ze;Ve++)_[ae[Ve]]=Me;else _[de]=Me}return this.options.layoutId&&(_.pointerEvents=L===this?Wh(l.pointerEvents)||"":"none"),_},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(l){var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(cx),this.root.sharedNodes.clear()},s}()}function LB(e){e.updateLayout()}function FB(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,l=s.actual,c=s.measured;e.options.animationType==="size"?As(function(U){var z=o.isShared?o.measured[U]:o.layout[U],re=Mu(z);z.min=l[U].min,z.max=z.min+re}):e.options.animationType==="position"&&As(function(U){var z=o.isShared?o.measured[U]:o.layout[U],re=Mu(l[U]);z.max=z.min+re});var d=md();gd(d,l,o.layout);var y=md();o.isShared?gd(y,e.applyTransform(c,!0),o.measured):gd(y,l,o.layout);var p=!lE(d),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,_=T.snapshot,R=T.layout;if(_&&R){var L=Mi();vd(L,o.layout,_.layout);var I=Mi();vd(I,l,R.actual),cE(L,I)||(S=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:y,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function NB(e){e.clearSnapshot()}function cx(e){e.clearMeasurements()}function jB(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function BB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function $B(e){e.resolveTargetDelta()}function VB(e){e.calcProjection()}function HB(e){e.resetRotation()}function UB(e){e.removeLeadSnapshot()}function fx(e,t,n){e.translate=lr(t.translate,0,n),e.scale=lr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dx(e,t,n,r){e.min=lr(t.min,n.min,r),e.max=lr(t.max,n.max,r)}function WB(e,t,n,r){dx(e.x,t.x,n.x,r),dx(e.y,t.y,n.y,r)}function zB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var YB={duration:.45,ease:[.4,0,.1,1]};function GB(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function hx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function px(e){hx(e.x),hx(e.y)}var qB=fE({attachResizeListener:function(e,t){return Bp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ev={current:void 0},XB=fE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ev.current){var e=new qB(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ev.current=e}return ev.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),KB=at(at(at(at({},Rj),XN),Jj),SB),ZB=H2(function(e,t){return DF(e,t,KB,mB,XB)});function pm(e,t,n){var r,i,o,s,l;t==null&&(t=100);function c(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(c,t-y):(r=null,n||(l=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var y=n&&!r;return r||(r=setTimeout(c,t)),y&&(l=e.apply(o,i),o=i=null),l};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(l=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var JB=pm;const gx=Bc(JB);function QB(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;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[s,l]=Q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=Q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,p=Q.useRef(!1);Q.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[S,T,_]=Q.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:z,top:re,width:Z,height:de,bottom:x,right:ye,x:ae,y:Me}=c.current.element.getBoundingClientRect(),Ze={left:z,top:re,width:Z,height:de,bottom:x,right:ye,x:ae,y:Me};c.current.element instanceof HTMLElement&&i&&(Ze.height=c.current.element.offsetHeight,Ze.width=c.current.element.offsetWidth),Object.freeze(Ze),p.current&&!r$(c.current.lastBounds,Ze)&&l(c.current.lastBounds=Ze)};return[U,y?gx(U,y):U,d?gx(U,d):U]},[l,i,d,y]);function R(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",_,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function L(){c.current.element&&(c.current.resizeObserver=new o(_),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",_,{capture:!0,passive:!0})))}const I=U=>{!U||U===c.current.element||(R(),c.current.element=U,c.current.scrollContainers=dE(U),L())};return t$(_,!!n),e$(T),Q.useEffect(()=>{R(),L()},[n,_,T]),Q.useEffect(()=>R,[]),[I,s,S]}function e$(e){Q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function t$(e,t){Q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function dE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...dE(e.parentElement)]}const n$=["x","y","top","bottom","left","right","width","height"],r$=(e,t)=>n$.every(n=>e[n]===t[n]),hE=Q.createContext({dragDropManager:void 0});function xa(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tv=function(){return Math.random().toString(36).substring(7).split("").join(".")},mx={INIT:"@@redux/INIT"+tv(),REPLACE:"@@redux/REPLACE"+tv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tv()}};function i$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(u$(e))return"date";if(s$(e))return"error";var n=a$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function a$(e){return typeof e.constructor=="function"?e.constructor.name:null}function s$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function u$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=o$(e)),t}function pE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xa(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 t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(pE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xa(2):"Expected the root reducer to be a function. Instead, received: '"+pf(e)+"'");var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function y(){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 p(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(4):"Expected the listener to be a function. Instead, received: '"+pf(R)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 L=!0;return d(),l.push(R),function(){if(L){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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.");L=!1,d();var U=l.indexOf(R);l.splice(U,1),s=null}}}function S(R){if(!i$(R))throw new Error(process.env.NODE_ENV==="production"?xa(7):"Actions must be plain objects. Instead, the actual type was: '"+pf(R)+"'. 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 R.type>"u")throw new Error(process.env.NODE_ENV==="production"?xa(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,R)}finally{c=!1}for(var L=s=l,I=0;I<L.length;I++){var U=L[I];U()}return R}function T(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(R));i=R,S({type:mx.REPLACE})}function _(){var R,L=p;return R={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function z(){U.next&&U.next(y())}z();var re=L(z);return{unsubscribe:re}}},R[vx]=function(){return this},R}return S({type:mx.INIT}),r={dispatch:S,subscribe:p,getState:y,replaceReducer:T},r[vx]=_,r}function Kt(e,t,...n){if(l$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===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(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function l$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function c$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function f$(e,t){return e.filter(n=>n!==t)}function gE(e){return typeof e=="object"}function d$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function h$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const xy="dnd-core/INIT_COORDS",Up="dnd-core/BEGIN_DRAG",Sy="dnd-core/PUBLISH_DRAG_SOURCE",Wp="dnd-core/HOVER",zp="dnd-core/DROP",Yp="dnd-core/END_DRAG";function yx(e,t){return{type:xy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const p$={type:xy,payload:{clientOffset:null,sourceClientOffset:null}};function g$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(yx(o)),v$(n,l,c);const d=b$(n,l);if(d==null){e.dispatch(p$);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");m$(s),y=s(d)}e.dispatch(yx(o,y));const S=c.getSource(d).beginDrag(l,d);if(S==null)return;y$(S),c.pinSource(d);const T=c.getSourceType(d);return{type:Up,payload:{itemType:T,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function v$(e,t,n){Kt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function m$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function y$(e){Kt(gE(e),"Item must be an object.")}function b$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function w$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){w$(e,i,n[i])})}return e}function S$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();T$(r),k$(r).forEach((s,l)=>{const c=C$(s,l,i,r),d={type:zp,payload:{dropResult:x$({},n,c)}};e.dispatch(d)})}}function T$(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function C$(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return E$(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function E$(e){Kt(typeof e>"u"||gE(e),"Drop result must either be an object or undefined.")}function k$(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function O$(e){return function(){const n=e.getMonitor(),r=e.getRegistry();D$(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Yp}}}function D$(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function gm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function P$(e){return function(n,{clientOffset:r}={}){_$(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return I$(i,s,l),R$(i,o,s),A$(i,o,s),{type:Wp,payload:{targetIds:i,clientOffset:r||null}}}}function _$(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function R$(e,t,n){Kt(t.isDragging(),"Cannot call hover while not dragging."),Kt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Kt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Kt(o,"Expected targetIds to be registered.")}}function I$(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);gm(o,n)||e.splice(r,1)}}function A$(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function M$(e){return function(){if(e.getMonitor().isDragging())return{type:Sy}}}function L$(e){return{beginDrag:g$(e),publishDragSource:M$(e),hover:P$(e),drop:S$(e),endDrag:O$(e)}}class F${receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const l=o.apply(t,s);typeof l<"u"&&n(l)}}const i=L$(this);return Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=r(l),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,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=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function N$(e,t){return{x:e.x+t.x,y:e.y+t.y}}function vE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function j$(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:vE(N$(t,r),n)}function B$(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:vE(t,n)}const yd=[],Ty=[];yd.__IS_NONE__=!0;Ty.__IS_ALL__=!0;function $$(e,t){return e===yd?!1:e===Ty||typeof t>"u"?!0:h$(t,e).length>0}class V${subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Kt(typeof t=="function","listener must be a function."),Kt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!$$(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Kt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Kt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Kt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return gm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Kt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!gm(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-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 j$(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return B$(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const bx=typeof global<"u"?global:self,mE=bx.MutationObserver||bx.WebKitMutationObserver;function yE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function H$(e){let t=1;const n=new mE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const U$=typeof mE=="function"?H$:yE;class W${enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=U$(this.flush),this.requestErrorThrow=yE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class z${call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class Y${create(t){const n=this.freeTasks,r=n.length?n.pop():new z$(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const bE=new W$,G$=new Y$(bE.registerPendingError);function q$(e){bE.enqueueTask(G$.create(e))}const Cy="dnd-core/ADD_SOURCE",Ey="dnd-core/ADD_TARGET",ky="dnd-core/REMOVE_SOURCE",Gp="dnd-core/REMOVE_TARGET";function X$(e){return{type:Cy,payload:{sourceId:e}}}function K$(e){return{type:Ey,payload:{targetId:e}}}function Z$(e){return{type:ky,payload:{sourceId:e}}}function J$(e){return{type:Gp,payload:{targetId:e}}}function Q$(e){Kt(typeof e.canDrag=="function","Expected canDrag to be a function."),Kt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function eV(e){Kt(typeof e.canDrop=="function","Expected canDrop to be a function."),Kt(typeof e.hover=="function","Expected hover to be a function."),Kt(typeof e.drop=="function","Expected beginDrag to be a function.")}function vm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>vm(n,!1));return}Kt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ka;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ka||(ka={}));let tV=0;function nV(){return tV++}function rV(e){const t=nV().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function wx(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function xx(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class iV{addSource(t,n){vm(t),Q$(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(X$(r)),r}addTarget(t,n){vm(t,!0),eV(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(K$(r)),r}containsHandler(t){return xx(this.dragSources,t)||xx(this.dropTargets,t)}getSource(t,n=!1){return Kt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Kt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return wx(t)===ka.SOURCE}isTargetId(t){return wx(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(Z$(t)),q$(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(J$(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Kt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=rV(t);return this.types.set(i,n),t===ka.SOURCE?this.dragSources.set(i,r):t===ka.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const oV=(e,t)=>e===t;function aV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function sV(e,t,n=oV){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function uV(e=yd,t){switch(t.type){case Wp:break;case Cy:case Ey:case Gp:case ky:return yd;case Up:case Sy:case Yp:case zp:default:return Ty}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=d$(n,r);if(!(i.length>0||!sV(n,r)))return yd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function lV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){lV(e,i,n[i])})}return e}const Sx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function fV(e=Sx,t){const{payload:n}=t;switch(t.type){case xy:case Up:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wp:return aV(e.clientOffset,n.clientOffset)?e:cV({},e,{clientOffset:n.clientOffset});case Yp:case zp:return Sx;default:return e}}function dV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){dV(e,i,n[i])})}return e}const hV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function pV(e=hV,t){const{payload:n}=t;switch(t.type){case Up:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Sy:return gf({},e,{isSourcePublic:!0});case Wp:return gf({},e,{targetIds:n.targetIds});case Gp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:f$(e.targetIds,n.targetId)});case zp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Yp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function gV(e=0,t){switch(t.type){case Cy:case Ey:return e+1;case ky:case Gp:return e-1;default:return e}}function vV(e=0){return e+1}function mV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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(e,i,n[i])})}return e}function bV(e={},t){return{dirtyHandlerIds:uV(e.dirtyHandlerIds,{type:t.type,payload:yV({},t.payload,{prevTargetIds:c$(e,"dragOperation.targetIds",[])})}),dragOffset:fV(e.dragOffset,t),refCount:gV(e.refCount,t),dragOperation:pV(e.dragOperation,t),stateId:vV(e.stateId)}}function wV(e,t=void 0,n={},r=!1){const i=xV(r),o=new V$(i,new iV(i)),s=new F$(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function xV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return pE(bV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function SV(e,t){if(e==null)return{};var n=TV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Tx=0;const Gh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var CV=Q.memo(function(t){var{children:n}=t,r=SV(t,["children"]);const[i,o]=EV(r);return Q.useEffect(()=>{if(o){const s=wE();return++Tx,()=>{--Tx===0&&(s[Gh]=null)}}},[]),it.jsx(hE.Provider,{value:i,children:n})});function EV(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=kV(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function kV(e,t=wE(),n,r){const i=t;return i[Gh]||(i[Gh]={dragDropManager:wV(e,t,n,r)}),i[Gh]}function wE(){return typeof global<"u"?global:window}var OV=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),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 s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const DV=Bc(OV),Ic=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function xE(e,t,n){const[r,i]=Q.useState(()=>t(e)),o=Q.useCallback(()=>{const s=t(e);DV(r,s)||(i(s),n&&n())},[r,e,n]);return Ic(o),[r,o]}function PV(e,t,n){const[r,i]=xE(e,t,n);return Ic(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function SE(e,t,n){return PV(t,e||(()=>({})),()=>n.reconnect())}function TE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),Q.useMemo(()=>typeof e=="function"?e():e,n)}function _V(e){return Q.useMemo(()=>e.hooks.dragSource(),[e])}function RV(e){return Q.useMemo(()=>e.hooks.dragPreview(),[e])}let nv=!1,rv=!1;class IV{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!nv,"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 nv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!rv,"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 rv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rv=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}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(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let iv=!1;class AV{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Kt(!iv,"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 iv=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iv=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!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(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function MV(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function LV(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function mm(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!l(d))return!1;const y=e[d],p=t[d];if(i=n?n.call(r,y,p,d):void 0,i===!1||i===void 0&&y!==p)return!1}return!0}function ym(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function FV(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function NV(e){return(t=null,n=null)=>{if(!Q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return FV(r),jV(r,n?o=>e(o,n):e)}}function CE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=NV(r);t[n]=()=>i}}),t}function Cx(e,t){typeof e=="function"?e(t):e.current=t}function jV(e,t){const n=e.ref;return Kt(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?Q.cloneElement(e,{ref:r=>{Cx(n,r),Cx(t,r)}}):Q.cloneElement(e,{ref:t})}class BV{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||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!mm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!mm(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(t){this.hooks=CE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,ym(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,ym(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=t}}class $V{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!mm(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(t){this.hooks=CE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,ym(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=t}}function Fu(){const{dragDropManager:e}=Q.useContext(hE);return Kt(e!=null,"Expected drag drop context"),e}function VV(e,t){const n=Fu(),r=Q.useMemo(()=>new BV(n.getBackend()),[n]);return Ic(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ic(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function HV(){const e=Fu();return Q.useMemo(()=>new IV(e),[e])}class UV{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function WV(e,t,n){const r=Q.useMemo(()=>new UV(e,t,n),[t,n]);return Q.useEffect(()=>{r.spec=e},[e]),r}function zV(e){return Q.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function YV(e,t,n){const r=Fu(),i=WV(e,t,n),o=zV(e);Ic(function(){if(o!=null){const[l,c]=LV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function GV(e,t){const n=TE(e,t);Kt(!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=HV(),i=VV(n.options,n.previewOptions);return YV(n,r,i),[SE(n.collect,r,i),_V(i),RV(i)]}function qV(e){const n=Fu().getMonitor(),[r,i]=xE(n,e);return Q.useEffect(()=>n.subscribeToOffsetChange(i)),Q.useEffect(()=>n.subscribeToStateChange(i)),r}function XV(e){return Q.useMemo(()=>e.hooks.dropTarget(),[e])}function KV(e){const t=Fu(),n=Q.useMemo(()=>new $V(t.getBackend()),[t]);return Ic(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function ZV(){const e=Fu();return Q.useMemo(()=>new AV(e),[e])}function JV(e){const{accept:t}=e;return Q.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class QV{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function e3(e,t){const n=Q.useMemo(()=>new QV(e,t),[t]);return Q.useEffect(()=>{n.spec=e},[e]),n}function t3(e,t,n){const r=Fu(),i=e3(e,t),o=JV(e);Ic(function(){const[l,c]=MV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function EE(e,t){const n=TE(e,t),r=ZV(),i=KV(n.options);return t3(n,r,i),[SE(n.collect,r,i),XV(i)]}function ov(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n3(e,t,n){r3(e,t),t.set(e,n)}function r3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dh(e,t){var n=kE(e,t,"get");return i3(e,n)}function i3(e,t){return t.get?t.get.call(e):t.value}function o3(e,t,n){var r=kE(e,t,"set");return a3(e,r,n),n}function kE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function a3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var vf=new WeakMap;class s3{constructor(){n3(this,vf,{writable:!0,value:void 0}),ov(this,"register",t=>{Dh(this,vf).push(t)}),ov(this,"unregister",t=>{let n;for(;(n=Dh(this,vf).indexOf(t))!==-1;)Dh(this,vf).splice(n,1)}),ov(this,"backendChanged",t=>{for(const n of Dh(this,vf))n.backendChanged(t)}),o3(this,vf,[])}}function ns(e,t,n){u3(e,t),t.set(e,n)}function u3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){var n=OE(e,t,"get");return l3(e,n)}function l3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=OE(e,t,"set");return c3(e,r,n),n}function OE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function c3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Sa=new WeakMap,Ph=new WeakMap,Ta=new WeakMap,hl=new WeakMap,mc=new WeakMap,Ex=new WeakMap,kx=new WeakMap,Ox=new WeakMap,av=new WeakMap,sv=new WeakMap,_h=new WeakMap;class _f{constructor(t,n,r){if(ns(this,Sa,{writable:!0,value:void 0}),ns(this,Ph,{writable:!0,value:void 0}),ns(this,Ta,{writable:!0,value:void 0}),ns(this,hl,{writable:!0,value:void 0}),ns(this,mc,{writable:!0,value:void 0}),ns(this,Ex,{writable:!0,value:(i,o,s)=>{var l,c;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const d=s.backend(i,o,s.options);let y=s.id;const p=!s.id&&d&&d.constructor;if(p&&(y=d.constructor.name),y)p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
5
+ `)===0?Je.substr(1,Je.length):Je}).forEach(function(Je){var st=Je.split(":"),De=st.shift().trim();if(De){var xe=st.join(":").trim();Oe.append(De,xe)}}),Oe}de.call(ae.prototype);function Ve(me,Oe){if(!(this instanceof Ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Oe||(Oe={}),this.type="default",this.status=Oe.status===void 0?200:Oe.status,this.ok=this.status>=200&&this.status<300,this.statusText=Oe.statusText===void 0?"":""+Oe.statusText,this.headers=new R(Oe.headers),this.url=Oe.url||"",this._initBody(me)}de.call(Ve.prototype),Ve.prototype.clone=function(){return new Ve(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new R(this.headers),url:this.url})},Ve.error=function(){var me=new Ve(null,{status:0,statusText:""});return me.type="error",me};var Ye=[301,302,303,307,308];Ve.redirect=function(me,Oe){if(Ye.indexOf(Oe)===-1)throw new RangeError("Invalid status code");return new Ve(null,{status:Oe,headers:{location:me}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(Oe,He){this.message=Oe,this.name=He;var Je=Error(Oe);this.stack=Je.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function ot(me,Oe){return new Promise(function(He,Je){var st=new ae(me,Oe);if(st.signal&&st.signal.aborted)return Je(new s.DOMException("Aborted","AbortError"));var De=new XMLHttpRequest;function xe(){De.abort()}De.onload=function(){var Ue={status:De.status,statusText:De.statusText,headers:Ze(De.getAllResponseHeaders()||"")};Ue.url="responseURL"in De?De.responseURL:Ue.headers.get("X-Request-URL");var Re="response"in De?De.response:De.responseText;setTimeout(function(){He(new Ve(Re,Ue))},0)},De.onerror=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},De.ontimeout=function(){setTimeout(function(){Je(new TypeError("Network request failed"))},0)},De.onabort=function(){setTimeout(function(){Je(new s.DOMException("Aborted","AbortError"))},0)};function We(Ue){try{return Ue===""&&l.location.href?l.location.href:Ue}catch{return Ue}}De.open(st.method,We(st.url),!0),st.credentials==="include"?De.withCredentials=!0:st.credentials==="omit"&&(De.withCredentials=!1),"responseType"in De&&(c.blob?De.responseType="blob":c.arrayBuffer&&st.headers.get("Content-Type")&&st.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(De.responseType="arraybuffer")),Oe&&typeof Oe.headers=="object"&&!(Oe.headers instanceof R)?Object.getOwnPropertyNames(Oe.headers).forEach(function(Ue){De.setRequestHeader(Ue,T(Oe.headers[Ue]))}):st.headers.forEach(function(Ue,Re){De.setRequestHeader(Re,Ue)}),st.signal&&(st.signal.addEventListener("abort",xe),De.onreadystatechange=function(){De.readyState===4&&st.signal.removeEventListener("abort",xe)}),De.send(typeof st._bodyInit>"u"?null:st._bodyInit)})}return ot.polyfill=!0,l.fetch||(l.fetch=ot,l.Headers=R,l.Request=ae,l.Response=Ve),s.Headers=R,s.Request=ae,s.Response=Ve,s.fetch=ot,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(dh,dh.exports)),dh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ko<"u"&&Ko.fetch?n=Ko.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof vM<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||mM();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Wv,Wv.exports);var eT=Wv.exports;const tT=Bc(eT),L0=LI({__proto__:null,default:tT},[eT]);function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function N0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(r){yM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yM(e,t,n){return t=bM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bM(e){var t=wM(e,"string");return Rc(t)=="symbol"?t:String(t)}function wM(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}var Du;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Du=global.fetch:typeof window<"u"&&window.fetch?Du=window.fetch:Du=fetch);var Ed;Q1()&&(typeof global<"u"&&global.XMLHttpRequest?Ed=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Ed=window.XMLHttpRequest));var rp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?rp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(rp=window.ActiveXObject));!Du&&L0&&!Ed&&!rp&&(Du=tT||L0);typeof Du!="function"&&(Du=void 0);var zv=function(t,n){if(n&&Rc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},j0=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Du(t,n).then(o).catch(r)},B0=!1,xM=function(t,n,r,i){t.queryStringParams&&(n=zv(n,t.queryStringParams));var o=N0({},typeof t.customHeaders=="function"?t.customHeaders():t.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 s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=N0({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},B0?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{j0(n,l,i,c)}catch(d){if(!s||Object.keys(s).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(s).forEach(function(y){delete l[y]}),j0(n,l,i,c),B0=!0}catch(y){i(y)}}},SM=function(t,n,r,i){r&&Rc(r)==="object"&&(r=zv("",r).slice(1)),t.queryStringParams&&(n=zv(n,t.queryStringParams));try{var o;Ed?o=new Ed:o=new rp("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var l in s)o.setRequestHeader(l,s[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},TM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Du&&n.indexOf("file:")!==0)return xM(t,n,r,i);if(Q1()||typeof ActiveXObject=="function")return SM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kd(e)}function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(r){nT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rT(r.key),r)}}function EM(e,t,n){return t&&V0(e.prototype,t),n&&V0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nT(e,t,n){return t=rT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rT(e){var t=kM(e,"string");return kd(t)=="symbol"?t:String(t)}function kM(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OM=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 nT({},r,i||"")},parseLoadPayload:function(n,r){},request:TM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},iT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return EM(e,[{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=Ng(Ng(Ng({},OM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{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,s){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=gM(c),c.then(function(d){if(!d)return s(null,{});var y=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(y,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(y,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&y&&y.message&&y.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+y.message,!0);if(y)return r(y,!1);var S,T;try{typeof p.data=="string"?S=s.options.parse(p.data,i,o):S=p.data}catch{T="failed parsing "+n+" to json"}if(T)return r(T,!1);r(null,S)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,y=[],p=[];n.forEach(function(S){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(S,r));var _=l.services.interpolator.interpolate(T,{lng:S,ns:r});l.options.request(l.options,_,c,function(R,L){d+=1,y.push(R),p.push(L),d===n.length&&typeof s=="function"&&s(y,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var S=o.toResolveHierarchy(p);S.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return d(y)}),c.forEach(function(y){n.allOptions.ns.forEach(function(p){i.read(y,p,"read",null,null,function(S,T){S&&s.warn("loading namespace ".concat(p," for language ").concat(y," failed"),S),!S&&T&&s.log("loaded namespace ".concat(p," for language ").concat(y),T),i.loaded("".concat(y,"|").concat(p),S,T)})})})}}}]),e}();iT.type="backend";var Xm=(e=>(e.en="en",e.de="de",e))(Xm||{});const DM={en:"English",de:"German"};li.use(J1).use(rM).use(Y1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(DM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[iT],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});const PM=e=>{const t=Cd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user"])}},[t]),r},_M=e=>{const t=Cd.useQueryClient(),n=Q.useMemo(()=>e.axiosInstance||Ls,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=Cd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return Q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Km=Q.createContext({}),RM=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=PM({axiosInstance:r,baseUrl:n}),s=_M({axiosInstance:r,baseUrl:n});function l(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return it.jsx(Km.Provider,{value:{user:o==null?void 0:o.data,login:l,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},IM=()=>Q.useContext(Km);function AM(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}function MM(){const[e,t]=Q.useState();return Q.useEffect(()=>{const n=localStorage.getItem("language");t(n||Xm.en)},[]),{language:e,setLanguage:t}}const oT=Q.createContext({}),LM=()=>Q.useContext(oT),FM=li,NM=M1,jM=()=>K1(),BM=({children:e})=>{const t=MM();return it.jsx(oT.Provider,{value:t,children:it.jsx(uM,{i18n:li,children:e})})};var $M=typeof global=="object"&&global&&global.Object===Object&&global;const VM=$M;var HM=typeof self=="object"&&self&&self.Object===Object&&self,UM=VM||HM||Function("return this")();const aT=UM;var WM=aT.Symbol;const ip=WM;var sT=Object.prototype,zM=sT.hasOwnProperty,YM=sT.toString,td=ip?ip.toStringTag:void 0;function GM(e){var t=zM.call(e,td),n=e[td];try{e[td]=void 0;var r=!0}catch{}var i=YM.call(e);return r&&(t?e[td]=n:delete e[td]),i}var qM=Object.prototype,XM=qM.toString;function KM(e){return XM.call(e)}var ZM="[object Null]",JM="[object Undefined]",H0=ip?ip.toStringTag:void 0;function QM(e){return e==null?e===void 0?JM:ZM:H0&&H0 in Object(e)?GM(e):KM(e)}function eL(e){return e!=null&&typeof e=="object"}var tL="[object Symbol]";function nL(e){return typeof e=="symbol"||eL(e)&&QM(e)==tL}var rL=/\s/;function iL(e){for(var t=e.length;t--&&rL.test(e.charAt(t)););return t}var oL=/^\s+/;function aL(e){return e&&e.slice(0,iL(e)+1).replace(oL,"")}function op(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U0=0/0,sL=/^[-+]0x[0-9a-f]+$/i,uL=/^0b[01]+$/i,lL=/^0o[0-7]+$/i,cL=parseInt;function W0(e){if(typeof e=="number")return e;if(nL(e))return U0;if(op(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=op(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aL(e);var n=uL.test(e);return n||lL.test(e)?cL(e.slice(2),n?2:8):sL.test(e)?U0:+e}var fL=function(){return aT.Date.now()};const jg=fL;var dL="Expected a function",hL=Math.max,pL=Math.min;function Vh(e,t,n){var r,i,o,s,l,c,d=0,y=!1,p=!1,S=!0;if(typeof e!="function")throw new TypeError(dL);t=W0(t)||0,op(n)&&(y=!!n.leading,p="maxWait"in n,o=p?hL(W0(n.maxWait)||0,t):o,S="trailing"in n?!!n.trailing:S);function T(de){var x=r,ye=i;return r=i=void 0,d=de,s=e.apply(ye,x),s}function _(de){return d=de,l=setTimeout(I,t),y?T(de):s}function R(de){var x=de-c,ye=de-d,ae=t-x;return p?pL(ae,o-ye):ae}function L(de){var x=de-c,ye=de-d;return c===void 0||x>=t||x<0||p&&ye>=o}function I(){var de=jg();if(L(de))return U(de);l=setTimeout(I,R(de))}function U(de){return l=void 0,S&&r?T(de):(r=i=void 0,s)}function z(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function re(){return l===void 0?s:U(jg())}function Z(){var de=jg(),x=L(de);if(r=arguments,i=this,c=de,x){if(l===void 0)return _(c);if(p)return clearTimeout(l),l=setTimeout(I,t),T(c)}return l===void 0&&(l=setTimeout(I,t)),s}return Z.cancel=z,Z.flush=re,Z}var gL="Expected a function";function vL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(gL);return op(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vh(e,t,{leading:r,maxWait:t,trailing:i})}var mL=!!(typeof window<"u"&&window.document&&window.document.createElement),yL=mL;const uT=Bc(yL);var wf=function(){return wf=Object.assign||function(t){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)&&(t[o]=n[o])}return t},wf.apply(this,arguments)},yf=null,z0=null;uT&&window.addEventListener("resize",function(){z0!==window.devicePixelRatio&&(z0=window.devicePixelRatio,yf=null)});function Y0(){if(yf===null){if(typeof document>"u")return yf=0,yf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),yf=n}return yf}function lT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function cT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var fT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(l,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function dT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function hT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function pT(e){return".".concat(e.split(" ").join("."))}var bL=Object.freeze({__proto__:null,getElementWindow:lT,getElementDocument:cT,getOptions:fT,addClasses:dT,removeClasses:hT,classNamesToQuery:pT}),cl=lT,Bg=cT,wL=fT,fl=dT,dl=hT,Oo=pT,hh=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=cl(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,fl(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(){dl(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(fl(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){dl(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,l,c,d,y,p,S,T,_,R;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,I=r.axis[r.draggedAxis].track,U=(s=(o=I.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,z=r.axis[r.draggedAxis].scrollbar,re=(c=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,Z=parseInt((y=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var de=L-((S=(p=I.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&S!==void 0?S:0)-r.axis[r.draggedAxis].dragOffset;de=r.draggedAxis==="x"&&r.isRtl?((_=(T=I.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-z.size-de:de;var x=de/(U-z.size),ye=x*(re-Z);r.draggedAxis==="x"&&r.isRtl&&(ye=!((R=e.getRtlHelpers())===null||R===void 0)&&R.isScrollingToNegative?-ye:ye),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ye}},this.onEndDrag=function(i){var o=Bg(r.el),s=cl(r.el);i.preventDefault(),i.stopPropagation(),dl(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=wf(wf({},e.defaultOptions),n),this.classNames=wf(wf({},e.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=vL(this._onMouseMove,64),this.onWindowResize=Vh(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Vh(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Vh(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.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:Y0()}catch{return Y0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Bg(t),i=cl(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){uT&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(fl(this.axis.x.scrollbar.el,this.classNames.visible),fl(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=cl(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(){t.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(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=cl(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=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 c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>y,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,S=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-S,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>y-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,l;return l=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var y=d/(s-c),p=~~((l-o.size)*y);p=t==="x"&&this.isRtl?-p+(l-o.size):p,o.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(fl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(dl(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.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")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!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(t),fl(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?fl(n.scrollbar.el,this.classNames.hover):dl(n.scrollbar.el,this.classNames.hover)):(dl(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),dl(this.axis[t].track.el,this.classNames.hover),dl(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=Bg(this.el),o=cl(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,fl(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)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,l;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=cl(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,p=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,S=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-p:this.mouseX-p,R=_<0?-1:1,L=R===-1?T-S:T+S,I=40,U=function(){r.contentWrapperEl&&(R===-1?T>L&&(T-=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)):T<L&&(T+=I,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)))};U()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=cl(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),t.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()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=wL,e.helpers=bL,e}(),Xo=function(){return Xo=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Xo.apply(this,arguments)};function xL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var gT=Sn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=xL(e,["children","scrollableNodeProps"]),s=Sn.useRef(),l=Sn.useRef(),c=Sn.useRef(),d={},y={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(hh.defaultOptions,T)?d[T]=o[T]:y[T]=o[T]});var p=Xo(Xo({},hh.defaultOptions.classNames),d.classNames),S=Xo(Xo({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":d.ariaLabel||hh.defaultOptions.ariaLabel});return Sn.useEffect(function(){var T;return l.current=S.ref?S.ref.current:l.current,s.current&&(T=new hh(s.current,Xo(Xo(Xo({},d),l.current&&{scrollableNode:l.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(T):t&&(t.current=T)),function(){T==null||T.unMount(),T=null,typeof t=="function"&&t(null)}},[]),Sn.createElement("div",Xo({"data-simplebar":"init",ref:s},y),Sn.createElement("div",{className:p.wrapper},Sn.createElement("div",{className:p.heightAutoObserverWrapperEl},Sn.createElement("div",{className:p.heightAutoObserverEl})),Sn.createElement("div",{className:p.mask},Sn.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Xo(Xo({},S),{ref:l}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Sn.createElement("div",Xo({},S),Sn.createElement("div",{className:p.contentEl},n)))),Sn.createElement("div",{className:p.placeholder})),Sn.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},Sn.createElement("div",{className:p.scrollbar})),Sn.createElement("div",{className:"".concat(p.track," simplebar-vertical")},Sn.createElement("div",{className:p.scrollbar})))});gT.displayName="SimpleBar";const vT=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
6
+ `;function mT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eu(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mT(e))&&(r&&(r+=" "),r+=t);return r}const Od=e=>typeof e=="number"&&!isNaN(e),Oc=e=>typeof e=="string",Zo=e=>typeof e=="function",Hh=e=>Oc(e)||Zo(e)?e:null,Yv=e=>Q.isValidElement(e)||Oc(e)||Zo(e)||Od(e);function SL(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Rp(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:d,done:y,nodeRef:p,isIn:S,playToast:T}=s;const _=r?`${t}--${c}`:t,R=r?`${n}--${c}`:n,L=Q.useRef(0);return Q.useLayoutEffect(()=>{const I=p.current,U=_.split(" "),z=re=>{re.target===p.current&&(T(),I.removeEventListener("animationend",z),I.removeEventListener("animationcancel",z),L.current===0&&re.type!=="animationcancel"&&I.classList.remove(...U))};I.classList.add(...U),I.addEventListener("animationend",z),I.addEventListener("animationcancel",z)},[]),Q.useEffect(()=>{const I=p.current,U=()=>{I.removeEventListener("animationend",U),i?SL(I,y,o):y()};S||(d?U():(L.current=1,I.className+=` ${R}`,I.addEventListener("animationend",U)))},[S]),Q.createElement(Q.Fragment,null,l)}}function G0(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const so=new Map;let Dd=[];const Gv=new Set,TL=e=>Gv.forEach(t=>t(e)),yT=()=>so.size>0;function bT(e,t){var n;if(t)return!((n=so.get(t))==null||!n.isToastActive(e));let r=!1;return so.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function wT(e,t){Yv(e)&&(yT()||Dd.push({content:e,options:t}),so.forEach(n=>{n.buildToast(e,t)}))}function q0(e,t){so.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function CL(e){const{subscribe:t,getSnapshot:n,setProps:r}=Q.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(y,p,S){let T=1,_=0,R=[],L=[],I=[],U=p;const z=new Map,re=new Set,Z=()=>{I=Array.from(z.values()),re.forEach(ye=>ye())},de=ye=>{L=ye==null?[]:L.filter(ae=>ae!==ye),Z()},x=ye=>{const{toastId:ae,onOpen:Me,updateId:Ze,children:Ve}=ye.props,Ye=Ze==null;ye.staleId&&z.delete(ye.staleId),z.set(ae,ye),L=[...L,ye.props.toastId].filter(ot=>ot!==ye.staleId),Z(),S(G0(ye,Ye?"added":"updated")),Ye&&Zo(Me)&&Me(Q.isValidElement(Ve)&&Ve.props)};return{id:y,props:U,observe:ye=>(re.add(ye),()=>re.delete(ye)),toggle:(ye,ae)=>{z.forEach(Me=>{ae!=null&&ae!==Me.props.toastId||Zo(Me.toggle)&&Me.toggle(ye)})},removeToast:de,toasts:z,clearQueue:()=>{_-=R.length,R=[]},buildToast:(ye,ae)=>{if((We=>{let{containerId:Ue,toastId:Re,updateId:Le}=We;const Xe=Ue?Ue!==y:y!==1,lt=z.has(Re)&&Le==null;return Xe||lt})(ae))return;const{toastId:Me,updateId:Ze,data:Ve,staleId:Ye,delay:ot}=ae,me=()=>{de(Me)},Oe=Ze==null;Oe&&_++;const He={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(ae).filter(We=>{let[Ue,Re]=We;return Re!=null})),toastId:Me,updateId:Ze,data:Ve,closeToast:me,isIn:!1,className:Hh(ae.className||U.toastClassName),bodyClassName:Hh(ae.bodyClassName||U.bodyClassName),progressClassName:Hh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Je=ae.autoClose,st=U.autoClose,Je===!1||Od(Je)&&Je>0?Je:st),deleteToast(){const We=z.get(Me),{onClose:Ue,children:Re}=We.props;Zo(Ue)&&Ue(Q.isValidElement(Re)&&Re.props),S(G0(We,"removed")),z.delete(Me),_--,_<0&&(_=0),R.length>0?x(R.shift()):Z()}};var Je,st;He.closeButton=U.closeButton,ae.closeButton===!1||Yv(ae.closeButton)?He.closeButton=ae.closeButton:ae.closeButton===!0&&(He.closeButton=!Yv(U.closeButton)||U.closeButton);let De=ye;Q.isValidElement(ye)&&!Oc(ye.type)?De=Q.cloneElement(ye,{closeToast:me,toastProps:He,data:Ve}):Zo(ye)&&(De=ye({closeToast:me,toastProps:He,data:Ve}));const xe={content:De,props:He,staleId:Ye};U.limit&&U.limit>0&&_>U.limit&&Oe?R.push(xe):Od(ot)?setTimeout(()=>{x(xe)},ot):x(xe)},setProps(ye){U=ye},setToggle:(ye,ae)=>{z.get(ye).toggle=ae},isToastActive:ye=>L.some(ae=>ae===ye),getSnapshot:()=>U.newestOnTop?I.reverse():I}}(s,o,TL);so.set(s,c);const d=c.observe(l);return Dd.forEach(y=>wT(y.content,y.options)),Dd=[],()=>{d(),so.delete(s)}},setProps(l){var c;(c=so.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=so.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=Q.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:bT,count:i==null?void 0:i.length}}function EL(e){const[t,n]=Q.useState(!1),[r,i]=Q.useState(!1),o=Q.useRef(null),s=Q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:y,closeOnClick:p}=e;var S,T;function _(){n(!0)}function R(){n(!1)}function L(z){const re=o.current;s.canDrag&&re&&(s.didMove=!0,t&&R(),s.delta=e.draggableDirection==="x"?z.clientX-s.start:z.clientY-s.start,s.start!==z.clientX&&(s.canCloseOnClick=!1),re.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,re.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function I(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",I);const z=o.current;if(s.canDrag&&s.didMove&&z){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();z.style.transition="transform 0.2s, opacity 0.2s",z.style.removeProperty("transform"),z.style.removeProperty("opacity")}}(T=so.get((S={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(S.id,S.fn),Q.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||R(),window.addEventListener("focus",_),window.addEventListener("blur",R),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",R)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(z){if(e.draggable===!0||e.draggable===z.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",I);const re=o.current;s.canCloseOnClick=!0,s.canDrag=!0,re.style.transition="none",e.draggableDirection==="x"?(s.start=z.clientX,s.removalDistance=re.offsetWidth*(e.draggablePercent/100)):(s.start=z.clientY,s.removalDistance=re.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(z){const{top:re,bottom:Z,left:de,right:x}=o.current.getBoundingClientRect();z.nativeEvent.type!=="touchend"&&e.pauseOnHover&&z.clientX>=de&&z.clientX<=x&&z.clientY>=re&&z.clientY<=Z?R():_()}};return l&&c&&(U.onMouseEnter=R,e.stacked||(U.onMouseLeave=_)),p&&(U.onClick=z=>{y&&y(z),s.canCloseOnClick&&d()}),{playToast:_,pauseToast:R,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function kL(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:c,progress:d,rtl:y,isIn:p,theme:S}=e;const T=o||c&&d===0,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(_.transform=`scaleX(${d})`);const R=Eu("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${S}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),L=Zo(s)?s({rtl:y,type:i,defaultClassName:R}):Eu(R,s),I={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return Q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},Q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${S} Toastify__progress-bar--${i}`}),Q.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:_,...I}))}let OL=1;const xT=()=>""+OL++;function DL(e){return e&&(Oc(e.toastId)||Od(e.toastId))?e.toastId:xT()}function ld(e,t){return wT(e,t),t.toastId}function ap(e,t){return{...t,type:t&&t.type||e,toastId:DL(t)}}function ph(e){return(t,n)=>ld(t,ap(e,n))}function En(e,t){return ld(e,ap("default",t))}En.loading=(e,t)=>ld(e,ap("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),En.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Oc(i)?En.loading(i,n):En.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(y,p,S)=>{if(p==null)return void En.dismiss(r);const T={type:y,...l,...n,data:S},_=Oc(p)?{render:p}:p;return r?En.update(r,{...T,..._}):En(_.render,{...T,..._}),S},d=Zo(e)?e():e;return d.then(y=>c("success",s,y)).catch(y=>c("error",o,y)),d},En.success=ph("success"),En.info=ph("info"),En.error=ph("error"),En.warning=ph("warning"),En.warn=En.warning,En.dark=(e,t)=>ld(e,ap("default",{theme:"dark",...t})),En.dismiss=function(e){(function(t){var n;if(yT()){if(t==null||Oc(n=t)||Od(n))so.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=so.get(t.containerId))!=null&&r.removeToast(t.id)||so.forEach(i=>{i.removeToast(t.id)})}}else Dd=Dd.filter(i=>t!=null&&i.options.toastId!==t)})(e)},En.clearWaitingQueue=function(e){e===void 0&&(e={}),so.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},En.isActive=bT,En.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=so.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:xT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ld(s,o)}},En.done=e=>{En.update(e,{progress:1})},En.onChange=function(e){return Gv.add(e),()=>{Gv.delete(e)}},En.play=e=>q0(!0,e),En.pause=e=>q0(!1,e);const PL=typeof window<"u"?Q.useLayoutEffect:Q.useEffect,gh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return Q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},$g={info:function(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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(e){return Q.createElement(gh,{...e},Q.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 Q.createElement("div",{className:"Toastify__spinner"})}},_L=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=EL(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:y,hideProgressBar:p,closeToast:S,transition:T,position:_,className:R,style:L,bodyClassName:I,bodyStyle:U,progressClassName:z,progressStyle:re,updateId:Z,role:de,progress:x,rtl:ye,toastId:ae,deleteToast:Me,isIn:Ze,isLoading:Ve,closeOnClick:Ye,theme:ot}=e,me=Eu("Toastify__toast",`Toastify__toast-theme--${ot}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":ye},{"Toastify__toast--close-on-click":Ye}),Oe=Zo(R)?R({rtl:ye,position:_,type:y,defaultClassName:me}):Eu(me,R),He=function(xe){let{theme:We,type:Ue,isLoading:Re,icon:Le}=xe,Xe=null;const lt={theme:We,type:Ue};return Le===!1||(Zo(Le)?Xe=Le({...lt,isLoading:Re}):Q.isValidElement(Le)?Xe=Q.cloneElement(Le,lt):Re?Xe=$g.spinner():(mt=>mt in $g)(Ue)&&(Xe=$g[Ue](lt))),Xe}(e),Je=!!x||!c,st={closeToast:S,type:y,theme:ot};let De=null;return s===!1||(De=Zo(s)?s(st):Q.isValidElement(s)?Q.cloneElement(s,st):function(xe){let{closeToast:We,theme:Ue,ariaLabel:Re="close"}=xe;return Q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:Le=>{Le.stopPropagation(),We(Le)},"aria-label":Re},Q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Q.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"})))}(st)),Q.createElement(T,{isIn:Ze,done:Me,position:_,preventExitTransition:n,nodeRef:r,playToast:o},Q.createElement("div",{id:ae,onClick:d,"data-in":Ze,className:Oe,...i,style:L,ref:r},Q.createElement("div",{...Ze&&{role:de},className:Zo(I)?I({type:y}):Eu("Toastify__toast-body",I),style:U},He!=null&&Q.createElement("div",{className:Eu("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ve})},He),Q.createElement("div",null,l)),De,Q.createElement(kL,{...Z&&!Je?{key:`pb-${Z}`}:{},rtl:ye,theme:ot,delay:c,isRunning:t,isIn:Ze,closeToast:S,hide:p,type:y,style:re,className:z,controlledProgress:Je,progress:x||0})))},Ip=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},RL=Rp(Ip("bounce",!0));Rp(Ip("slide",!0));Rp(Ip("zoom"));Rp(Ip("flip"));const IL={position:"top-right",transition:RL,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function AL(e){let t={...IL,...e};const n=e.stacked,[r,i]=Q.useState(!0),o=Q.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=CL(t),{className:d,style:y,rtl:p,containerId:S}=t;function T(R){const L=Eu("Toastify__toast-container",`Toastify__toast-container--${R}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:R,rtl:p,defaultClassName:L}):Eu(L,Hh(d))}function _(){n&&(i(!0),En.play())}return PL(()=>{if(n){var R;const L=o.current.querySelectorAll('[data-in="true"]'),I=12,U=(R=t.position)==null?void 0:R.includes("top");let z=0,re=0;Array.from(L).reverse().forEach((Z,de)=>{const x=Z;x.classList.add("Toastify__toast--stacked"),de>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const ye=z*(r?.2:1)+(r?0:I*de);x.style.setProperty("--y",`${U?ye:-1*ye}px`),x.style.setProperty("--g",`${I}`),x.style.setProperty("--s",""+(1-(r?re:0))),z+=x.offsetHeight,re+=.025})}},[r,c,n]),Q.createElement("div",{ref:o,className:"Toastify",id:S,onMouseEnter:()=>{n&&(i(!1),En.pause())},onMouseLeave:_},s((R,L)=>{const I=L.length?{...y}:{...y,pointerEvents:"none"};return Q.createElement("div",{className:T(R),style:I,key:`container-${R}`},L.map(U=>{let{content:z,props:re}=U;return Q.createElement(_L,{...re,stacked:n,collapseAll:_,isIn:l(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},z)}))}))}function ML(){return it.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.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"}),it.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),it.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function LL(){return it.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),it.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function FL(){return it.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[it.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"}),it.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 Zm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},NL=({closeToast:e})=>it.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:it.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:it.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"})})}),ST=e=>{En.success(e,{icon:it.jsx(LL,{}),bodyStyle:{},position:"bottom-right",style:{...Zm,background:Fi.successLight,borderColor:Fi.success,color:Fi.success}})},Ap=e=>{En.error(e,{icon:it.jsx(ML,{}),position:"bottom-right",style:{...Zm,background:Fi.dangerLight,borderColor:Fi.danger,color:Fi.danger}})},jL=e=>{En.error(e,{icon:it.jsx(FL,{}),position:"bottom-right",style:{...Zm,background:Fi.warningLight,borderColor:Fi.warning,color:Fi.warning}})},BL=e=>{En(e,{closeButton:NL,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:Fi.textPrimary}})};function TT(e){let t=null;return()=>(t==null&&(t=e()),t)}function $L(e,t){return e.filter(n=>n!==t)}function VL(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class HL{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=VL(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=$L(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class UL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const CT="__NATIVE_FILE__",ET="__NATIVE_URL__",kT="__NATIVE_TEXT__",OT="__NATIVE_HTML__",X0=Object.freeze(Object.defineProperty({__proto__:null,FILE:CT,HTML:OT,TEXT:kT,URL:ET},Symbol.toStringTag,{value:"Module"}));function Vg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const qv={[CT]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[OT]:{exposeProperties:{html:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[ET]:{exposeProperties:{urls:(e,t)=>Vg(e,t,"").split(`
7
+ `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[kT]:{exposeProperties:{text:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function WL(e,t){const n=qv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new UL(n);return r.loadDataTransfer(t),r}function Hg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(qv).filter(n=>{const r=qv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const zL=TT(()=>/firefox/i.test(navigator.userAgent)),DT=TT(()=>!!window.safari);class K0{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,d=s.length-1,y;for(;c<=d;){y=Math.floor(.5*(c+d));const T=n[y];if(T<t)c=y+1;else if(T>t)d=y-1;else return r[y]}l=Math.max(0,d);const p=t-n[l],S=p*p;return r[l]+i[l]*p+o[l]*S+s[l]*p*S}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,_)=>t[T]<t[_]?-1:1);const o=[],s=[];let l,c;for(let T=0;T<r-1;T++)l=t[T+1]-t[T],c=n[T+1]-n[T],o.push(l),s.push(c/l);const d=[s[0]];for(let T=0;T<o.length-1;T++){const _=s[T],R=s[T+1];if(_*R<=0)d.push(0);else{l=o[T];const L=o[T+1],I=l+L;d.push(3*I/((I+L)/_+(I+l)/R))}}d.push(s[s.length-1]);const y=[],p=[];let S;for(let T=0;T<d.length-1;T++){S=s[T];const _=d[T],R=1/o[T],L=_+d[T+1]-S-S;y.push((S-_-L)*R),p.push(L*R*R)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=p}}const YL=1;function PT(e){const t=e.nodeType===YL?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function vh(e){return{x:e.clientX,y:e.clientY}}function GL(e){var t;return e.nodeName==="IMG"&&(zL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function qL(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return DT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function XL(e,t,n,r,i){const o=GL(t),l=PT(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:y}=e,{anchorX:p,anchorY:S}=r,{dragPreviewWidth:T,dragPreviewHeight:_}=qL(o,t,d,y),R=()=>{let de=new K0([0,.5,1],[c.y,c.y/y*_,c.y+_-y]).interpolate(S);return DT()&&o&&(de+=(window.devicePixelRatio-1)*_),de},L=()=>new K0([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:I,offsetY:U}=i,z=I===0||I,re=U===0||U;return{x:z?I:L(),y:re?U:R()}}let KL=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function ZL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){ZL(e,i,n[i])})}return e}class JL{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.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 t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);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(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Z0({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Z0({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(X0).some(n=>X0[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=WL(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;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 t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,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&&PT(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 s=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Hg(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const y=this.monitor.getSourceId(),p=this.sourceNodes.get(y),S=this.sourcePreviewNodes.get(y)||p;if(S){const{anchorX:T,anchorY:_,offsetX:R,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),z=XL(p,S,s,{anchorX:T,anchorY:_},{offsetX:R,offsetY:L});l.setDragImage(S,z.x,z.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.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:l}=i,c=Hg(l);c&&this.beginDragNativeItem(c,l)},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:vh(i)}),o.some(l=>this.monitor.canDropOnTarget(l))&&(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=vh(i),this.scheduleHover(o),(o||[]).some(l=>this.monitor.canDropOnTarget(l))?(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 Hg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:vh(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 KL(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new HL(this.isNodeInDocument)}}let mh;function QL(){return mh||(mh=new Image,mh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),mh}const e2=function(t,n,r){return new JL(t,n,r)};var Dc=[],t2=function(){return Dc.some(function(e){return e.activeTargets.length>0})},n2=function(){return Dc.some(function(e){return e.skippedTargets.length>0})},J0="ResizeObserver loop completed with undelivered notifications.",r2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:J0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=J0),window.dispatchEvent(e)},Pd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pd||(Pd={}));var Pc=function(e){return Object.freeze(e)},i2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pc(this)}return e}(),_T=function(){function e(t,n,r,i){return this.x=t,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,Pc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,l=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Jm=function(e){return e instanceof SVGElement&&"getBBox"in e},RT=function(e){if(Jm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},Q0=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},o2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},cd=typeof window<"u"?window:{},yh=new WeakMap,ew=/auto|scroll/,a2=/^tb|vertical/,s2=/msie|trident/i.test(cd.navigator&&cd.navigator.userAgent),_s=function(e){return parseFloat(e||"0")},Of=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new i2((n?t:e)||0,(n?e:t)||0)},tw=Pc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new _T(0,0,0,0)}),IT=function(e,t){if(t===void 0&&(t=!1),yh.has(e)&&!t)return yh.get(e);if(RT(e))return yh.set(e,tw),tw;var n=getComputedStyle(e),r=Jm(e)&&e.ownerSVGElement&&e.getBBox(),i=!s2&&n.boxSizing==="border-box",o=a2.test(n.writingMode||""),s=!r&&ew.test(n.overflowY||""),l=!r&&ew.test(n.overflowX||""),c=r?0:_s(n.paddingTop),d=r?0:_s(n.paddingRight),y=r?0:_s(n.paddingBottom),p=r?0:_s(n.paddingLeft),S=r?0:_s(n.borderTopWidth),T=r?0:_s(n.borderRightWidth),_=r?0:_s(n.borderBottomWidth),R=r?0:_s(n.borderLeftWidth),L=p+d,I=c+y,U=R+T,z=S+_,re=l?e.offsetHeight-z-e.clientHeight:0,Z=s?e.offsetWidth-U-e.clientWidth:0,de=i?L+U:0,x=i?I+z:0,ye=r?r.width:_s(n.width)-de-Z,ae=r?r.height:_s(n.height)-x-re,Me=ye+L+Z+U,Ze=ae+I+re+z,Ve=Pc({devicePixelContentBoxSize:Of(Math.round(ye*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Of(Me,Ze,o),contentBoxSize:Of(ye,ae,o),contentRect:new _T(p,c,ye,ae)});return yh.set(e,Ve),Ve},AT=function(e,t,n){var r=IT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Pd.DEVICE_PIXEL_CONTENT_BOX:return s;case Pd.BORDER_BOX:return i;default:return o}},u2=function(){function e(t){var n=IT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pc([n.borderBoxSize]),this.contentBoxSize=Pc([n.contentBoxSize]),this.devicePixelContentBoxSize=Pc([n.devicePixelContentBoxSize])}return e}(),MT=function(e){if(RT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},l2=function(){var e=1/0,t=[];Dc.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(d){var y=new u2(d.target),p=MT(d.target);l.push(y),d.lastReportedSize=AT(d.target,d.observedBox),p<e&&(e=p)}),t.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},nw=function(e){Dc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(MT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},c2=function(){var e=0;for(nw(e);t2();)e=l2(),nw(e);return n2()&&r2(),e>0},Ug,LT=[],f2=function(){return LT.splice(0).forEach(function(e){return e()})},d2=function(e){if(!Ug){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return f2()}).observe(n,r),Ug=function(){n.textContent="".concat(t?t--:t++)}}LT.push(e),Ug()},h2=function(e){d2(function(){requestAnimationFrame(e)})},Uh=0,p2=function(){return!!Uh},g2=250,v2={attributes:!0,characterData:!0,childList:!0,subtree:!0},rw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],iw=function(e){return e===void 0&&(e=0),Date.now()+e},Wg=!1,m2=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=g2),!Wg){Wg=!0;var r=iw(t);h2(function(){var i=!1;try{i=c2()}finally{if(Wg=!1,t=r-iw(),!p2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,v2)};document.body?n():cd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rw.forEach(function(n){return cd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),rw.forEach(function(n){return cd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Xv=new m2,ow=function(e){!Uh&&e>0&&Xv.start(),Uh+=e,!Uh&&Xv.stop()},y2=function(e){return!Jm(e)&&!o2(e)&&getComputedStyle(e).display==="inline"},b2=function(){function e(t,n){this.target=t,this.observedBox=n||Pd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=AT(this.target,this.observedBox,!0);return y2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),w2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),bh=new WeakMap,aw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},wh=function(){function e(){}return e.connect=function(t,n){var r=new w2(t,n);bh.set(t,r)},e.observe=function(t,n,r){var i=bh.get(t),o=i.observationTargets.length===0;aw(i.observationTargets,n)<0&&(o&&Dc.push(i),i.observationTargets.push(new b2(n,r&&r.box)),ow(1),Xv.schedule())},e.unobserve=function(t,n){var r=bh.get(t),i=aw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Dc.splice(Dc.indexOf(r),1),r.observationTargets.splice(i,1),ow(-1))},e.disconnect=function(t){var n=this,r=bh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),x2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Q0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.unobserve(this,t)},e.prototype.disconnect=function(){wh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Kv=function(e,t){return Kv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Kv(e,t)};function FT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var at=function(){return at=Object.assign||function(t){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)&&(t[o]=n[o])}return t},at.apply(this,arguments)};function _a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Gr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var sw="production",NT=typeof process>"u"||process.env===void 0?sw:process.env.NODE_ENV||sw,Tu=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},_d={measureLayout:Tu(["layout","layoutId","drag"]),animation:Tu(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Tu(["exit"]),drag:Tu(["drag","dragControls"]),focus:Tu(["whileFocus"]),hover:Tu(["whileHover","onHoverStart","onHoverEnd"]),tap:Tu(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Tu(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Tu(["whileInView","onViewportEnter","onViewportLeave"])};function S2(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?_d.projectionNodeConstructor=e[t]:_d[t].Component=e[t])}var Hd=function(){},Da=function(){};process.env.NODE_ENV!=="production"&&(Hd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Da=function(e,t){if(!e)throw new Error(t)});var jT=Q.createContext({strict:!1}),BT=Object.keys(_d),T2=BT.length;function C2(e,t,n){var r=[],i=Q.useContext(jT);if(!t)return null;NT!=="production"&&n&&i.strict&&Da(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<T2;o++){var s=BT[o],l=_d[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Sn.createElement(d,at({key:s},e,{visualElement:t})))}return r}var Qm=Q.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mp=Q.createContext({});function E2(){return Q.useContext(Mp).visualElement}var Lp=Q.createContext(null),jf=typeof document<"u",uw=jf?Q.useLayoutEffect:Q.useEffect,Zv={current:null},$T=!1;function k2(){if($T=!0,!!jf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Zv.current=e.matches};e.addListener(t),t()}else Zv.current=!1}function O2(){!$T&&k2();var e=Gr(Q.useState(Zv.current),1),t=e[0];return t}function D2(){var e=O2(),t=Q.useContext(Qm).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function P2(e,t,n,r){var i=Q.useContext(jT),o=E2(),s=Q.useContext(Lp),l=D2(),c=Q.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:l}));var d=c.current;return uw(function(){d==null||d.syncRender()}),Q.useEffect(function(){var y;(y=d==null?void 0:d.animationState)===null||y===void 0||y.animateChanges()}),uw(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function xf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _2(e,t,n){return Q.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function VT(e){return Array.isArray(e)}function rs(e){return typeof e=="string"||VT(e)}function R2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function I2(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function HT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Fp(e,t,n){var r=e.getProps();return HT(r,t,n??r.custom,R2(e),I2(e))}function Np(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||rs(e.initial)||rs(e.animate)||rs(e.whileHover)||rs(e.whileDrag)||rs(e.whileTap)||rs(e.whileFocus)||rs(e.exit)}function UT(e){return!!(Np(e)||e.variants)}function A2(e,t){if(Np(e)){var n=e.initial,r=e.animate;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function M2(e){var t=A2(e,Q.useContext(Mp)),n=t.initial,r=t.animate;return Q.useMemo(function(){return{initial:n,animate:r}},[lw(n),lw(r)])}function lw(e){return Array.isArray(e)?e.join(" "):e}function jp(e){var t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}var fd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},L2=1;function F2(){return jp(function(){if(fd.hasEverUpdated)return L2++})}var WT=Q.createContext({}),zT=Q.createContext({});function N2(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,y=Q.useContext(zT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:y,layoutScroll:d}))}var j2=function(e){FT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Q.Component);function B2(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&S2(t);function l(c,d){var y=$2(c);c=at(at({},c),{layoutId:y});var p=Q.useContext(Qm),S=null,T=M2(c),_=p.isStatic?void 0:F2(),R=o(c,p.isStatic);return!p.isStatic&&jf&&(T.visualElement=P2(s,R,at(at({},p),c),n),N2(_,c,T.visualElement,r||_d.projectionNodeConstructor),S=C2(c,T.visualElement,t)),Sn.createElement(j2,{visualElement:T.visualElement,props:at(at({},p),c)},S,Sn.createElement(Mp.Provider,{value:T},i(s,c,_,_2(R,T.visualElement,d),R,p.isStatic,T.visualElement)))}return Q.forwardRef(l)}function $2(e){var t,n=e.layoutId,r=(t=Q.useContext(WT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function V2(e){function t(r,i){return i===void 0&&(i={}),B2(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var H2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ey(e){return typeof e!="string"||e.includes("-")?!1:!!(H2.indexOf(e)>-1||/[A-Z]/.test(e))}var sp={};function U2(e){Object.assign(sp,e)}var Jv=["","X","Y","Z"],W2=["translate","scale","rotate","skew"],Rd=["transformPerspective","x","y","z"];W2.forEach(function(e){return Jv.forEach(function(t){return Rd.push(e+t)})});function z2(e,t){return Rd.indexOf(e)-Rd.indexOf(t)}var Y2=new Set(Rd);function Ud(e){return Y2.has(e)}var G2=new Set(["originX","originY","originZ"]);function YT(e){return G2.has(e)}function GT(e,t){var n=t.layout,r=t.layoutId;return Ud(e)||YT(e)||(n||r!==void 0)&&(!!sp[e]||e==="opacity")}var Iu=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},q2={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function X2(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,y="";o.sort(z2);for(var p=!1,S=o.length,T=0;T<S;T++){var _=o[T];y+="".concat(q2[_]||_,"(").concat(i[_],") "),_==="z"&&(p=!0)}return!p&&l?y+="translateZ(0)":y=y.trim(),r?y=r(i,n?"":y):d&&n&&(y="none"),y}function K2(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function qT(e){return e.startsWith("--")}var Z2=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const XT=(e,t)=>n=>Math.max(Math.min(n,t),e),dd=e=>e%1?Number(e.toFixed(5)):e,Id=/(-)?([\d]*\.?[\d])+/g,Qv=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,J2=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Wd(e){return typeof e=="string"}const $c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd=Object.assign(Object.assign({},$c),{transform:XT(0,1)}),xh=Object.assign(Object.assign({},$c),{default:1}),zd=e=>({test:t=>Wd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pl=zd("deg"),Fs=zd("%"),jt=zd("px"),Q2=zd("vh"),eF=zd("vw"),cw=Object.assign(Object.assign({},Fs),{parse:e=>Fs.parse(e)/100,transform:e=>Fs.transform(e*100)}),ty=(e,t)=>n=>!!(Wd(n)&&J2.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),KT=(e,t,n)=>r=>{if(!Wd(r))return r;const[i,o,s,l]=r.match(Id);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},Cc={test:ty("hsl","hue"),parse:KT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fs.transform(dd(t))+", "+Fs.transform(dd(n))+", "+dd(hd.transform(r))+")"},tF=XT(0,255),zg=Object.assign(Object.assign({},$c),{transform:e=>Math.round(tF(e))}),wl={test:ty("rgb","red"),parse:KT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zg.transform(e)+", "+zg.transform(t)+", "+zg.transform(n)+", "+dd(hd.transform(r))+")"};function nF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const em={test:ty("#"),parse:nF,transform:wl.transform},io={test:e=>wl.test(e)||em.test(e)||Cc.test(e),parse:e=>wl.test(e)?wl.parse(e):Cc.test(e)?Cc.parse(e):em.parse(e),transform:e=>Wd(e)?e:e.hasOwnProperty("red")?wl.transform(e):Cc.transform(e)},ZT="${c}",JT="${n}";function rF(e){var t,n,r,i;return isNaN(e)&&Wd(e)&&((n=(t=e.match(Id))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Qv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function QT(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Qv);r&&(n=r.length,e=e.replace(Qv,ZT),t.push(...r.map(io.parse)));const i=e.match(Id);return i&&(e=e.replace(Id,JT),t.push(...i.map($c.parse))),{values:t,numColors:n,tokenised:e}}function eC(e){return QT(e).values}function tC(e){const{values:t,numColors:n,tokenised:r}=QT(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?ZT:JT,l<n?io.transform(o[l]):dd(o[l]));return s}}const iF=e=>typeof e=="number"?0:e;function oF(e){const t=eC(e);return tC(e)(t.map(iF))}const Au={test:rF,parse:eC,createTransformer:tC,getAnimatableNone:oF},aF=new Set(["brightness","contrast","saturate","opacity"]);function sF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Id)||[];if(!r)return e;const i=n.replace(r,"");let o=aF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const uF=/([a-z-]*)\(.*?\)/g,tm=Object.assign(Object.assign({},Au),{getAnimatableNone:e=>{const t=e.match(uF);return t?t.map(sF).join(" "):e}});var fw=at(at({},$c),{transform:Math.round}),nC={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:pl,rotateX:pl,rotateY:pl,rotateZ:pl,scale:xh,scaleX:xh,scaleY:xh,scaleZ:xh,skew:pl,skewX:pl,skewY:pl,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:hd,originX:cw,originY:cw,originZ:jt,zIndex:fw,fillOpacity:hd,strokeOpacity:hd,numOctaves:fw};function ny(e,t,n,r){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var y=!1,p=!1,S=!0;for(var T in t){var _=t[T];if(qT(T)){s[T]=_;continue}var R=nC[T],L=Z2(_,R);if(Ud(T)){if(y=!0,l[T]=L,c.push(T),!S)continue;_!==((i=R.default)!==null&&i!==void 0?i:0)&&(S=!1)}else YT(T)?(d[T]=L,p=!0):o[T]=L}y?o.transform=X2(e,n,S,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=K2(d))}var ry=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function rC(e,t,n){for(var r in t)!Iu(t[r])&&!GT(r,n)&&(e[r]=t[r])}function lF(e,t,n){var r=e.transformTemplate;return Q.useMemo(function(){var i=ry();ny(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return at(at({},o),s)},[t])}function cF(e,t,n){var r=e.style||{},i={};return rC(i,r,e),Object.assign(i,lF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function fF(e,t,n){var r={},i=cF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var dF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function up(e){return dF.has(e)}var iC=function(e){return!up(e)};function hF(e){e&&(iC=function(t){return t.startsWith("on")?!up(t):e(t)})}try{hF(require("@emotion/is-prop-valid").default)}catch{}function pF(e,t,n){var r={};for(var i in e)(iC(i)||n===!0&&up(i)||!t&&!up(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function gF(e,t,n){var r=dw(t,e.x,e.width),i=dw(n,e.y,e.height);return"".concat(r," ").concat(i)}var vF={offset:"stroke-dashoffset",array:"stroke-dasharray"},mF={offset:"strokeDashoffset",array:"strokeDasharray"};function yF(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?vF:mF;e[o.offset]=jt.transform(-r);var s=jt.transform(t),l=jt.transform(n);e[o.array]="".concat(s," ").concat(l)}function iy(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,y=d===void 0?1:d,p=t.pathOffset,S=p===void 0?0:p,T=_a(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);ny(e,T,n,r),e.attrs=e.style,e.style={};var _=e.attrs,R=e.style,L=e.dimensions;_.transform&&(L&&(R.transform=_.transform),delete _.transform),L&&(s!==void 0||l!==void 0||R.transform)&&(R.transformOrigin=gF(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(_.x=i),o!==void 0&&(_.y=o),c!==void 0&&yF(_,c,y,S,!1)}var oC=function(){return at(at({},ry()),{attrs:{}})};function bF(e,t){var n=Q.useMemo(function(){var i=oC();return iy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),at(at({},i.attrs),{style:at({},i.style)})},[t]);if(e.style){var r={};rC(r,e.style,e),n.style=at(at({},r),n.style)}return n}function wF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=ey(n)?bF:fF,y=d(r,c,l),p=pF(r,typeof n=="string",e),S=at(at(at({},p),y),{ref:o});return i&&(S["data-projection-id"]=i),Q.createElement(n,S)};return t}var xF=/([a-z])([A-Z])/g,SF="$1-$2",aC=function(e){return e.replace(xF,SF).toLowerCase()};function sC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var uC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function lC(e,t,n,r){sC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(uC.has(i)?i:aC(i),t.attrs[i])}function oy(e){var t=e.style,n={};for(var r in t)(Iu(t[r])||GT(r,e))&&(n[r]=t[r]);return n}function cC(e){var t=oy(e);for(var n in e)if(Iu(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ay(e){return typeof e=="object"&&typeof e.start=="function"}var Ad=function(e){return Array.isArray(e)},TF=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},fC=function(e){return Ad(e)?e[e.length-1]||0:e};function Wh(e){var t=Iu(e)?e.get():e;return TF(t)?t.toValue():t}function hw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:CF(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var dC=function(e){return function(t,n){var r=Q.useContext(Mp),i=Q.useContext(Lp);return n?hw(e,t,r,i):jp(function(){return hw(e,t,r,i)})}};function CF(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=Wh(s[l]);var c=e.initial,d=e.animate,y=Np(e),p=UT(e);t&&p&&!y&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var S=o||c===!1,T=S?d:c;if(T&&typeof T!="boolean"&&!ay(T)){var _=Array.isArray(T)?T:[T];_.forEach(function(R){var L=HT(e,R);if(L){var I=L.transitionEnd;L.transition;var U=_a(L,["transitionEnd","transition"]);for(var z in U){var re=U[z];if(Array.isArray(re)){var Z=S?re.length-1:0;re=re[Z]}re!==null&&(i[z]=re)}for(var z in I)i[z]=I[z]}})}return i}var EF={useVisualState:dC({scrapeMotionValuesFromProps:cC,createRenderState:oC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}iy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),lC(t,r)}})},kF={useVisualState:dC({scrapeMotionValuesFromProps:oy,createRenderState:ry})};function OF(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=ey(e)?EF:kF;return at(at({},l),{preloadedFeatures:n,useRender:wF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var jn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(jn||(jn={}));function Bp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function nm(e,t,n,r){Q.useEffect(function(){var i=e.current;if(n&&i)return Bp(i,t,n,r)},[e,t,n,r])}function DF(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jn.Focus,!1)};nm(n,"focus",t?r:void 0),nm(n,"blur",t?i:void 0)}function hC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function pC(e){var t=!!e.touches;return t}function PF(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var _F={pageX:0,pageY:0};function RF(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||_F;return{x:r[t+"X"],y:r[t+"Y"]}}function IF(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function sy(e,t){return t===void 0&&(t="page"),{point:pC(e)?RF(e,t):IF(e,t)}}var gC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,sy(r))};return t?PF(n):n},AF=function(){return jf&&window.onpointerdown===null},MF=function(){return jf&&window.ontouchstart===null},LF=function(){return jf&&window.onmousedown===null},FF={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},NF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function vC(e){return AF()?e:MF()?NF[e]:LF()?FF[e]:e}function Df(e,t,n,r){return Bp(e,vC(t),gC(n,t==="pointerdown"),r)}function lp(e,t,n,r){return nm(e,vC(t),n&&gC(n,t==="pointerdown"),r)}function mC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var pw=mC("dragHorizontal"),gw=mC("dragVertical");function yC(e){var t=!1;if(e==="y")t=gw();else if(e==="x")t=pw();else{var n=pw(),r=gw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function bC(){var e=yC(!0);return e?(e(),!1):!0}function vw(e,t,n){return function(r,i){var o;!hC(r)||bC()||((o=e.animationState)===null||o===void 0||o.setActive(jn.Hover,t),n==null||n(r,i))}}function jF(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;lp(i,"pointerenter",t||r?vw(i,!0,t):void 0,{passive:!t}),lp(i,"pointerleave",n||r?vw(i,!1,n):void 0,{passive:!n})}var wC=function(e,t){return t?e===t?!0:wC(e,t.parentElement):!1};function xC(e){return Q.useEffect(function(){return function(){return e()}},[])}const cp=(e,t,n)=>Math.min(Math.max(n,e),t),Yg=.001,BF=.01,mw=10,$F=.05,VF=1;function HF({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Hd(e<=mw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=cp($F,VF,s),e=cp(BF,mw,e/1e3),s<1?(i=d=>{const y=d*s,p=y*e,S=y-n,T=rm(d,s),_=Math.exp(-p);return Yg-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=rm(Math.pow(d,2),s);return(-i(d)+Yg>0?-1:1)*((S-T)*_)/R}):(i=d=>{const y=Math.exp(-d*e),p=(d-n)*e+1;return-Yg+y*p},o=d=>{const y=Math.exp(-d*e),p=(n-d)*(e*e);return y*p});const l=5/e,c=WF(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const UF=12;function WF(e,t,n){let r=n;for(let i=1;i<UF;i++)r=r-e(r)/t(r);return r}function rm(e,t){return e*Math.sqrt(1-t*t)}const zF=["duration","bounce"],YF=["stiffness","damping","mass"];function yw(e,t){return t.some(n=>e[n]!==void 0)}function GF(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!yw(e,YF)&&yw(e,zF)){const n=HF(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function uy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=_a(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:y,duration:p,isResolvedFromDuration:S}=GF(o),T=bw,_=bw;function R(){const L=y?-(y/1e3):0,I=n-t,U=c/(2*Math.sqrt(l*d)),z=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const re=rm(z,U);T=Z=>{const de=Math.exp(-U*z*Z);return n-de*((L+U*z*I)/re*Math.sin(re*Z)+I*Math.cos(re*Z))},_=Z=>{const de=Math.exp(-U*z*Z);return U*z*de*(Math.sin(re*Z)*(L+U*z*I)/re+I*Math.cos(re*Z))-de*(Math.cos(re*Z)*(L+U*z*I)-re*I*Math.sin(re*Z))}}else if(U===1)T=re=>n-Math.exp(-z*re)*(I+(L+z*I)*re);else{const re=z*Math.sqrt(U*U-1);T=Z=>{const de=Math.exp(-U*z*Z),x=Math.min(re*Z,300);return n-de*((L+U*z*I)*Math.sinh(x)+re*I*Math.cosh(x))/re}}}return R(),{next:L=>{const I=T(L);if(S)s.done=L>=p;else{const U=_(L)*1e3,z=Math.abs(U)<=r,re=Math.abs(n-I)<=i;s.done=z&&re}return s.value=s.done?n:I,s},flipTarget:()=>{y=-y,[t,n]=[n,t],R()}}}uy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const bw=e=>0,Md=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lr=(e,t,n)=>-n*e+n*t+e;function Gg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ww({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Gg(c,l,e+1/3),o=Gg(c,l,e),s=Gg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const qF=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},XF=[em,wl,Cc],xw=e=>XF.find(t=>t.test(e)),Sw=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,SC=(e,t)=>{let n=xw(e),r=xw(t);Da(!!n,Sw(e)),Da(!!r,Sw(t));let i=n.parse(e),o=r.parse(t);n===Cc&&(i=ww(i),n=wl),r===Cc&&(o=ww(o),r=wl);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=qF(i[c],o[c],l));return s.alpha=lr(i.alpha,o.alpha,l),n.transform(s)}},im=e=>typeof e=="number",KF=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(KF);function TC(e,t){return im(e)?n=>lr(e,t,n):io.test(e)?SC(e,t):EC(e,t)}const CC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>TC(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},ZF=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=TC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Tw(e){const t=Au.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const EC=(e,t)=>{const n=Au.createTransformer(t),r=Tw(e),i=Tw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?$p(CC(r.parsed,i.parsed),n):(Hd(!0,`Complex values '${e}' and '${t}' 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.`),s=>`${s>0?t:e}`)},JF=(e,t)=>n=>lr(e,t,n);function QF(e){if(typeof e=="number")return JF;if(typeof e=="string")return io.test(e)?SC:EC;if(Array.isArray(e))return CC;if(typeof e=="object")return ZF}function eN(e,t,n){const r=[],i=n||QF(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;l=$p(c,l)}r.push(l)}return r}function tN([e,t],[n]){return r=>n(Md(e,t,r))}function nN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>i||c===r);c++);o=c-1}const l=Md(e[o],e[o+1],i);return t[o](l)}}function kC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Da(o===t.length,"Both input and output ranges must be the same length"),Da(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=eN(t,r,i),l=o===2?tN(e,s):nN(e,s);return n?c=>l(cp(e[0],e[o-1],c)):l}const Vp=e=>t=>1-e(1-t),ly=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rN=e=>t=>Math.pow(t,e),OC=e=>t=>t*t*((e+1)*t-e),iN=e=>{const t=OC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},DC=1.525,oN=4/11,aN=8/11,sN=9/10,cy=e=>e,fy=rN(2),uN=Vp(fy),PC=ly(fy),_C=e=>1-Math.sin(Math.acos(e)),dy=Vp(_C),lN=ly(dy),hy=OC(DC),cN=Vp(hy),fN=ly(hy),dN=iN(DC),hN=4356/361,pN=35442/1805,gN=16061/1805,fp=e=>{if(e===1||e===0)return e;const t=e*e;return e<oN?7.5625*t:e<aN?9.075*t-9.9*e+3.4:e<sN?hN*t-pN*e+gN:10.8*e*e-20.52*e+10.72},vN=Vp(fp),mN=e=>e<.5?.5*(1-fp(1-e*2)):.5*fp(e*2-1)+.5;function yN(e,t){return e.map(()=>t||PC).splice(0,e.length-1)}function bN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function wN(e,t){return e.map(n=>n*t)}function zh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=wN(r&&r.length===s.length?r:bN(s),i);function c(){return kC(l,s,{ease:Array.isArray(n)?n:yN(s,n)})}let d=c();return{next:y=>(o.value=d(y),o.done=y>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function xN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let l=n*e;const c=t+l,d=o===void 0?c:o(c);return d!==c&&(l=d-t),{next:y=>{const p=-l*Math.exp(-y/r);return s.done=!(p>i||p<-i),s.value=s.done?d:d+p,s},flipTarget:()=>{}}}const Cw={keyframes:zh,spring:uy,decay:xN};function SN(e){if(Array.isArray(e.to))return zh;if(Cw[e.type])return Cw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?zh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?uy:zh}const RC=1/60*1e3,TN=typeof performance<"u"?()=>performance.now():()=>Date.now(),IC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(TN()),RC);function CN(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const p=y&&i,S=p?t:n;return d&&s.add(c),S.indexOf(c)===-1&&(S.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const y=t[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const EN=40;let om=!0,Ld=!1,am=!1;const Pf={delta:0,timestamp:0},Yd=["read","update","preRender","render","postRender"],Hp=Yd.reduce((e,t)=>(e[t]=CN(()=>Ld=!0),e),{}),Ns=Yd.reduce((e,t)=>{const n=Hp[t];return e[t]=(r,i=!1,o=!1)=>(Ld||ON(),n.schedule(r,i,o)),e},{}),Rf=Yd.reduce((e,t)=>(e[t]=Hp[t].cancel,e),{}),qg=Yd.reduce((e,t)=>(e[t]=()=>Hp[t].process(Pf),e),{}),kN=e=>Hp[e].process(Pf),AC=e=>{Ld=!1,Pf.delta=om?RC:Math.max(Math.min(e-Pf.timestamp,EN),1),Pf.timestamp=e,am=!0,Yd.forEach(kN),am=!1,Ld&&(om=!1,IC(AC))},ON=()=>{Ld=!0,om=!0,am||IC(AC)},dp=()=>Pf;function MC(e,t,n=0){return e-t-n}function DN(e,t,n=0,r=!0){return r?MC(t+-e,t,n):t-(e-t)+n}function PN(e,t,n,r){return r?e>=t+n:e<=-n}const _N=e=>{const t=({delta:n})=>e(n);return{start:()=>Ns.update(t,!0),stop:()=>Rf.update(t)}};function LC(e){var t,n,{from:r,autoplay:i=!0,driver:o=_N,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:y,onStop:p,onComplete:S,onRepeat:T,onUpdate:_}=e,R=_a(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=R,I,U=0,z=R.duration,re,Z=!1,de=!0,x;const ye=SN(R);!((n=(t=ye).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(x=kC([0,100],[r,L],{clamp:!1}),r=0,L=100);const ae=ye(Object.assign(Object.assign({},R),{from:r,to:L}));function Me(){U++,c==="reverse"?(de=U%2===0,s=DN(s,z,d,de)):(s=MC(s,z,d),c==="mirror"&&ae.flipTarget()),Z=!1,T&&T()}function Ze(){I.stop(),S&&S()}function Ve(ot){if(de||(ot=-ot),s+=ot,!Z){const me=ae.next(Math.max(0,s));re=me.value,x&&(re=x(re)),Z=de?me.done:s<=0}_==null||_(re),Z&&(U===0&&(z??(z=s)),U<l?PN(s,z,d,de)&&Me():Ze())}function Ye(){y==null||y(),I=o(Ve),I.start()}return i&&Ye(),{stop:()=>{p==null||p(),I.stop()}}}function FC(e,t){return t?e*(1e3/t):0}function RN({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:y,onUpdate:p,onComplete:S,onStop:T}){let _;function R(z){return n!==void 0&&z<n||r!==void 0&&z>r}function L(z){return n===void 0?r:r===void 0||Math.abs(n-z)<Math.abs(r-z)?n:r}function I(z){_==null||_.stop(),_=LC(Object.assign(Object.assign({},z),{driver:y,onUpdate:re=>{var Z;p==null||p(re),(Z=z.onUpdate)===null||Z===void 0||Z.call(z,re)},onComplete:S,onStop:T}))}function U(z){I(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},z))}if(R(e))U({from:e,velocity:t,to:L(e)});else{let z=i*t+e;typeof d<"u"&&(z=d(z));const re=L(z),Z=re===n?-1:1;let de,x;const ye=ae=>{de=x,x=ae,t=FC(ae-de,dp().delta),(Z===1&&ae>re||Z===-1&&ae<re)&&U({from:ae,to:re,velocity:t})};I({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:R(z)?ye:void 0})}return{stop:()=>_==null?void 0:_.stop()}}const sm=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ew=e=>sm(e)&&e.hasOwnProperty("z"),Sh=(e,t)=>Math.abs(e-t);function NC(e,t){if(im(e)&&im(t))return Sh(e,t);if(sm(e)&&sm(t)){const n=Sh(e.x,t.x),r=Sh(e.y,t.y),i=Ew(e)&&Ew(t)?Sh(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const jC=(e,t)=>1-3*t+3*e,BC=(e,t)=>3*t-6*e,$C=e=>3*e,hp=(e,t,n)=>((jC(t,n)*e+BC(t,n))*e+$C(t))*e,VC=(e,t,n)=>3*jC(t,n)*e*e+2*BC(t,n)*e+$C(t),IN=1e-7,AN=10;function MN(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=hp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>IN&&++l<AN);return s}const LN=8,FN=.001;function NN(e,t,n,r){for(let i=0;i<LN;++i){const o=VC(t,n,r);if(o===0)return t;const s=hp(t,n,r)-e;t-=s/o}return t}const Yh=11,Th=1/(Yh-1);function jN(e,t,n,r){if(e===t&&n===r)return cy;const i=new Float32Array(Yh);for(let s=0;s<Yh;++s)i[s]=hp(s*Th,e,n);function o(s){let l=0,c=1;const d=Yh-1;for(;c!==d&&i[c]<=s;++c)l+=Th;--c;const y=(s-i[c])/(i[c+1]-i[c]),p=l+y*Th,S=VC(p,e,n);return S>=FN?NN(s,p,e,n):S===0?p:MN(s,l,l+Th,e,n)}return s=>s===0||s===1?s:hp(o(s),t,r)}function BN(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=Q.useRef(!1),c=Q.useRef(null),d={passive:!(n||t||r||_)};function y(){var R;(R=c.current)===null||R===void 0||R.call(c),c.current=null}function p(){var R;return y(),l.current=!1,(R=o.animationState)===null||R===void 0||R.setActive(jn.Tap,!1),!bC()}function S(R,L){p()&&(wC(o.getInstance(),R.target)?t==null||t(R,L):r==null||r(R,L))}function T(R,L){p()&&(r==null||r(R,L))}function _(R,L){var I;y(),!l.current&&(l.current=!0,c.current=$p(Df(window,"pointerup",S,d),Df(window,"pointercancel",T,d)),(I=o.animationState)===null||I===void 0||I.setActive(jn.Tap,!0),n==null||n(R,L))}lp(o,"pointerdown",s?_:void 0,d),xC(y)}var kw=new Set;function HC(e,t,n){e||kw.has(t)||(console.warn(t),n&&console.warn(n),kw.add(t))}var um=new WeakMap,Xg=new WeakMap,$N=function(e){var t;(t=um.get(e.target))===null||t===void 0||t(e)},VN=function(e){e.forEach($N)};function HN(e){var t=e.root,n=_a(e,["root"]),r=t||document;Xg.has(r)||Xg.set(r,{});var i=Xg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(VN,at({root:t},n))),i[o]}function UN(e,t,n){var r=HN(t);return um.set(e,n),r.observe(e),function(){um.delete(e),r.unobserve(e)}}function WN(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=Q.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?GN:YN;d(c,l.current,t,s)}var zN={some:0,all:1};function YN(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;Q.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:zN[l]},y=function(p){var S,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(S=n.animationState)===null||S===void 0||S.setActive(jn.InView,T);var _=n.getProps(),R=T?_.onViewportEnter:_.onViewportLeave;R==null||R(p)}};return UN(n.getInstance(),d,y)}},[e,i,o,l])}function GN(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;Q.useEffect(function(){!e||!o||(NT!=="production"&&HC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=n.getProps().onViewportEnter;l==null||l(null),(s=n.animationState)===null||s===void 0||s.setActive(jn.InView,!0)}))},[e])}var xl=function(e){return function(t){return e(t),null}},qN={inView:xl(WN),tap:xl(BN),focus:xl(DF),hover:xl(jF)},XN=0,KN=function(){return XN++},ZN=function(){return jp(KN)};function UC(){var e=Q.useContext(Lp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=ZN();Q.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function WC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var pp=function(e){return e*1e3},Ow={linear:cy,easeIn:fy,easeInOut:PC,easeOut:uN,circIn:_C,circInOut:lN,circOut:dy,backIn:hy,backInOut:fN,backOut:cN,anticipate:dN,bounceIn:vN,bounceInOut:mN,bounceOut:fp},Dw=function(e){if(Array.isArray(e)){Da(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=Gr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return jN(n,r,i,o)}else if(typeof e=="string")return Da(Ow[e]!==void 0,"Invalid easing type '".concat(e,"'")),Ow[e];return e},JN=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Pw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Au.test(t)&&!t.startsWith("url("))},gc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ch=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Kg=function(){return{type:"keyframes",ease:"linear",duration:.3}},QN=function(e){return{type:"keyframes",duration:.8,values:e}},_w={x:gc,y:gc,z:gc,rotate:gc,rotateX:gc,rotateY:gc,rotateZ:gc,scaleX:Ch,scaleY:Ch,scale:Ch,opacity:Kg,backgroundColor:Kg,color:Kg,default:Ch},ej=function(e,t){var n;return Ad(t)?n=QN:n=_w[e]||_w.default,at({to:t},n(t))},tj=at(at({},nC),{color:io,backgroundColor:io,outlineColor:io,fill:io,stroke:io,borderColor:io,borderTopColor:io,borderRightColor:io,borderBottomColor:io,borderLeftColor:io,filter:tm,WebkitFilter:tm}),py=function(e){return tj[e]};function gy(e,t){var n,r=py(e);return r!==tm&&(r=Au),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function nj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=_a(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Rw=!1;function rj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=_a(e,["ease","times","yoyo","flip","loop"]),l=at({},s);return n&&(l.offset=n),s.duration&&(l.duration=pp(s.duration)),s.repeatDelay&&(l.repeatDelay=pp(s.repeatDelay)),t&&(l.ease=JN(t)?t.map(Dw):Dw(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(Hd(!Rw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Rw=!0,r?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||r||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function ij(e,t){var n,r,i=vy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function oj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],Gr(e.to),!1),e.to[0]=e.from),e}function aj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),oj(t),nj(e)||(e=at(at({},e),ej(n,t.to))),at(at({},t),rj(e))}function sj(e,t,n,r,i){var o,s=vy(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Pw(e,n);l==="none"&&c&&typeof n=="string"?l=gy(e,n):Iw(l)&&typeof n=="string"?l=Aw(n):!Array.isArray(n)&&Iw(n)&&typeof l=="string"&&(n=Aw(l));var d=Pw(e,l);Hd(d===c,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property."));function y(){var S={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?RN(at(at({},S),s)):LC(at(at({},aj(s,S,e)),{onUpdate:function(T){var _;S.onUpdate(T),(_=s.onUpdate)===null||_===void 0||_.call(s,T)},onComplete:function(){var T;S.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var S,T,_=fC(n);return t.set(_),i(),(S=s==null?void 0:s.onUpdate)===null||S===void 0||S.call(s,_),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?p:y}function Iw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Aw(e){return typeof e=="number"?0:gy("",e)}function vy(e,t){return e[t]||e.default||e}function my(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=sj(e,t,n,r,i),c=ij(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,pp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var uj=function(e){return/^\-?\d*\.?\d+$/.test(e)},lj=function(e){return/^0[^.\s]+$/.test(e)};function yy(e,t){e.indexOf(t)===-1&&e.push(t)}function by(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return yy(this.subscriptions,t),function(){return by(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),cj=function(e){return!isNaN(parseFloat(e))},fj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new pd,this.velocityUpdateSubscribers=new pd,this.renderSubscribers=new pd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=dp(),s=o.delta,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,Ns.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Ns.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=cj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?FC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function If(e){return new fj(e)}var zC=function(e){return function(t){return t.test(e)}},dj={test:function(e){return e==="auto"},parse:function(e){return e}},YC=[$c,jt,Fs,pl,eF,Q2,dj],nd=function(e){return YC.find(zC(e))},hj=Qo(Qo([],Gr(YC),!1),[io,Au],!1),pj=function(e){return hj.find(zC(e))};function gj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,If(n))}function vj(e,t){var n=Fp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=_a(r,["transitionEnd","transition"]);s=at(at({},s),o);for(var l in s){var c=fC(s[l]);gj(e,l,c)}}function mj(e,t,n){var r,i,o,s,l=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=l.length;if(c)for(var d=0;d<c;d++){var y=l[d],p=t[y],S=null;Array.isArray(p)&&(S=p[0]),S===null&&(S=(i=(r=n[y])!==null&&r!==void 0?r:e.readValue(y))!==null&&i!==void 0?i:t[y]),S!=null&&(typeof S=="string"&&(uj(S)||lj(S))?S=parseFloat(S):!pj(S)&&Au.test(p)&&(S=gy(y,p)),e.addValue(y,If(S)),(o=(s=n)[y])!==null&&o!==void 0||(s[y]=S),e.setBaseTarget(y,S))}}function yj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function bj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=yj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function wj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return lm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=lm(e,t,n);else{var o=typeof t=="function"?Fp(e,t,n.custom):t;r=GC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function lm(e,t,n){var r;n===void 0&&(n={});var i=Fp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return GC(e,i,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(T){T===void 0&&(T=0);var _=s.delayChildren,R=_===void 0?0:_,L=s.staggerChildren,I=s.staggerDirection;return xj(e,t,R+T,L,I,n)}:function(){return Promise.resolve()},d=s.when;if(d){var y=Gr(d==="beforeChildren"?[l,c]:[c,l],2),p=y[0],S=y[1];return p().then(S)}else return Promise.all([l(),c(n.delay)])}function GC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,l=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),y=d.transition,p=y===void 0?e.getDefaultTransition():y,S=d.transitionEnd,T=_a(d,["transition","transitionEnd"]);l&&(p=l);var _=[],R=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var I=e.getValue(L),U=T[L];if(!(!I||U===void 0||R&&Tj(R,L))){var z=at({delay:s},p);e.shouldReduceMotion&&Ud(L)&&(z=at(at({},z),{type:!1,delay:0}));var re=my(L,I,U,z);_.push(re)}}return Promise.all(_).then(function(){S&&vj(e,S)})}function xj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],l=(e.variantChildren.size-1)*r,c=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),l-d*r};return Array.from(e.variantChildren).sort(Sj).forEach(function(d,y){s.push(lm(d,t,at(at({},o),{delay:n+c(y)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function Sj(e,t){return e.sortNodePosition(t)}function Tj(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var wy=[jn.Animate,jn.InView,jn.Focus,jn.Hover,jn.Tap,jn.Drag,jn.Exit],Cj=Qo([],Gr(wy),!1).reverse(),Ej=wy.length;function kj(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return wj(e,r,i)}))}}function Oj(e){var t=kj(e),n=Pj(),r={},i=!0,o=function(y,p){var S=Fp(e,p);if(S){S.transition;var T=S.transitionEnd,_=_a(S,["transition","transitionEnd"]);y=at(at(at({},y),_),T)}return y};function s(y){return r[y]!==void 0}function l(y){t=y(e)}function c(y,p){for(var S,T=e.getProps(),_=e.getVariantContext(!0)||{},R=[],L=new Set,I={},U=1/0,z=function(x){var ye=Cj[x],ae=n[ye],Me=(S=T[ye])!==null&&S!==void 0?S:_[ye],Ze=rs(Me),Ve=ye===p?ae.isActive:null;Ve===!1&&(U=x);var Ye=Me===_[ye]&&Me!==T[ye]&&Ze;if(Ye&&i&&e.manuallyAnimateOnMount&&(Ye=!1),ae.protectedKeys=at({},I),!ae.isActive&&Ve===null||!Me&&!ae.prevProp||ay(Me)||typeof Me=="boolean")return"continue";var ot=Dj(ae.prevProp,Me),me=ot||ye===p&&ae.isActive&&!Ye&&Ze||x>U&&Ze,Oe=Array.isArray(Me)?Me:[Me],He=Oe.reduce(o,{});Ve===!1&&(He={});var Je=ae.prevResolvedValues,st=Je===void 0?{}:Je,De=at(at({},st),He),xe=function(Le){me=!0,L.delete(Le),ae.needsAnimating[Le]=!0};for(var We in De){var Ue=He[We],Re=st[We];I.hasOwnProperty(We)||(Ue!==Re?Ad(Ue)&&Ad(Re)?!WC(Ue,Re)||ot?xe(We):ae.protectedKeys[We]=!0:Ue!==void 0?xe(We):L.add(We):Ue!==void 0&&L.has(We)?xe(We):ae.protectedKeys[We]=!0)}ae.prevProp=Me,ae.prevResolvedValues=He,ae.isActive&&(I=at(at({},I),He)),i&&e.blockInitialAnimation&&(me=!1),me&&!Ye&&R.push.apply(R,Qo([],Gr(Oe.map(function(Le){return{animation:Le,options:at({type:ye},y)}})),!1))},re=0;re<Ej;re++)z(re);if(r=at({},I),L.size){var Z={};L.forEach(function(x){var ye=e.getBaseTarget(x);ye!==void 0&&(Z[x]=ye)}),R.push({animation:Z})}var de=!!R.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(de=!1),i=!1,de?t(R):Promise.resolve()}function d(y,p,S){var T;if(n[y].isActive===p)return Promise.resolve();(T=e.variantChildren)===null||T===void 0||T.forEach(function(L){var I;return(I=L.animationState)===null||I===void 0?void 0:I.setActive(y,p)}),n[y].isActive=p;var _=c(S,y);for(var R in n)n[R].protectedKeys={};return _}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function Dj(e,t){return typeof t=="string"?t!==e:VT(t)?!WC(t,e):!1}function vc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Pj(){var e;return e={},e[jn.Animate]=vc(!0),e[jn.InView]=vc(),e[jn.Hover]=vc(),e[jn.Tap]=vc(),e[jn.Drag]=vc(),e[jn.Focus]=vc(),e[jn.Exit]=vc(),e}var _j={animation:xl(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Oj(t)),ay(n)&&Q.useEffect(function(){return n.subscribe(t)},[n])}),exit:xl(function(e){var t=e.custom,n=e.visualElement,r=Gr(UC(),2),i=r[0],o=r[1],s=Q.useContext(Lp);Q.useEffect(function(){var l,c;n.isPresent=i;var d=(l=n.animationState)===null||l===void 0?void 0:l.setActive(jn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},qC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var S=Jg(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,_=NC(S.offset,{x:0,y:0})>=3;if(!(!T&&!_)){var R=S.point,L=dp().timestamp;i.history.push(at(at({},R),{timestamp:L}));var I=i.handlers,U=I.onStart,z=I.onMove;T||(U&&U(i.lastMoveEvent,S),i.startEvent=i.lastMoveEvent),z&&z(i.lastMoveEvent,S)}}},this.handlePointerMove=function(S,T){if(i.lastMoveEvent=S,i.lastMoveEventInfo=Zg(T,i.transformPagePoint),hC(S)&&S.buttons===0){i.handlePointerUp(S,T);return}Ns.update(i.updatePoint,!0)},this.handlePointerUp=function(S,T){i.end();var _=i.handlers,R=_.onEnd,L=_.onSessionEnd,I=Jg(Zg(T,i.transformPagePoint),i.history);i.startEvent&&R&&R(S,I),L&&L(S,I)},!(pC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=sy(t),c=Zg(l,this.transformPagePoint),d=c.point,y=dp().timestamp;this.history=[at(at({},d),{timestamp:y})];var p=n.onSessionStart;p&&p(t,Jg(c,this.history)),this.removeListeners=$p(Df(window,"pointermove",this.handlePointerMove),Df(window,"pointerup",this.handlePointerUp),Df(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Rf.update(this.updatePoint)},e}();function Zg(e,t){return t?{point:t(e.point)}:e}function Mw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jg(e,t){var n=e.point;return{point:n,delta:Mw(n,XC(t)),offset:Mw(n,Rj(t)),velocity:Ij(t,.1)}}function Rj(e){return e[0]}function XC(e){return e[e.length-1]}function Ij(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=XC(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pp(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Mu(e){return e.max-e.min}function Lw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),NC(e,t)<n}function Fw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=lr(t.min,t.max,e.origin),e.scale=Mu(n)/Mu(t),(Lw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=lr(n.min,n.max,e.origin)-e.originPoint,(Lw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function gd(e,t,n,r){Fw(e.x,t.x,n.x,r==null?void 0:r.originX),Fw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Nw(e,t,n){e.min=n.min+t.min,e.max=e.min+Mu(t)}function Aj(e,t,n){Nw(e.x,t.x,n.x),Nw(e.y,t.y,n.y)}function jw(e,t,n){e.min=t.min-n.min,e.max=e.min+Mu(t)}function vd(e,t,n){jw(e.x,t.x,n.x),jw(e.y,t.y,n.y)}function Mj(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?lr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?lr(i,e,n.max):Math.min(e,i)),e}function Bw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Lj(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Bw(e.x,r,o),y:Bw(e.y,n,i)}}function $w(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Gr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function Fj(e,t){return{x:$w(e.x,t.x),y:$w(e.y,t.y)}}function Nj(e,t){var n=.5,r=Mu(e),i=Mu(t);return i>r?n=Md(t.min,t.max-r,e.min):r>i&&(n=Md(e.min,e.max-i,t.min)),cp(0,1,n)}function jj(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var cm=.35;function Bj(e){return e===void 0&&(e=cm),e===!1?e=0:e===!0&&(e=cm),{x:Vw(e,"left","right"),y:Vw(e,"top","bottom")}}function Vw(e,t,n){return{min:Hw(e,t),max:Hw(e,n)}}function Hw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Uw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},md=function(){return{x:Uw(),y:Uw()}},Ww=function(){return{min:0,max:0}},Mi=function(){return{x:Ww(),y:Ww()}};function As(e){return[e("x"),e("y")]}function KC(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function $j(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Vj(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qg(e){return e===void 0||e===1}function ZC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Qg(t)||!Qg(n)||!Qg(r)}function gl(e){return ZC(e)||zw(e.x)||zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function zw(e){return e&&e!=="0%"}function gp(e,t,n){var r=e-n,i=t*r;return n+i}function Yw(e,t,n,r,i){return i!==void 0&&(e=gp(e,i,r)),gp(e,n,r)+t}function fm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Yw(e.min,t,n,r,i),e.max=Yw(e.max,t,n,r,i)}function JC(e,t){var n=t.x,r=t.y;fm(e.x,n.translate,n.scale,n.originPoint),fm(e.y,r.translate,r.scale,r.originPoint)}function Hj(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var l,c,d=0;d<s;d++)l=n[d],c=l.projectionDelta,((o=(i=l.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Sf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,JC(e,c)),r&&gl(l.latestValues)&&Sf(e,l.latestValues))}}function ml(e,t){e.min=e.min+t,e.max=e.max+t}function Gw(e,t,n){var r=Gr(n,3),i=r[0],o=r[1],s=r[2],l=t[s]!==void 0?t[s]:.5,c=lr(e.min,e.max,l);fm(e,t[i],t[o],c,t.scale)}var Uj=["x","scaleX","originX"],Wj=["y","scaleY","originY"];function Sf(e,t){Gw(e.x,t,Uj),Gw(e.y,t,Wj)}function QC(e,t){return KC(Vj(e.getBoundingClientRect(),t))}function zj(e,t,n){var r=QC(e,n),i=t.scroll;return i&&(ml(r.x,i.x),ml(r.y,i.y)),r}var Yj=new WeakMap,Gj=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Mi(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var l=function(p){r.stopAnimation(),s&&r.snapToCursor(sy(p,"page").point)},c=function(p,S){var T,_=r.getProps(),R=_.drag,L=_.dragPropagation,I=_.onDragStart;R&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=yC(R),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),As(function(U){var z,re,Z=r.getAxisMotionValue(U).get()||0;if(Fs.test(Z)){var de=(re=(z=r.visualElement.projection)===null||z===void 0?void 0:z.layout)===null||re===void 0?void 0:re.actual[U];if(de){var x=Mu(de);Z=x*(parseFloat(Z)/100)}}r.originPoint[U]=Z}),I==null||I(p,S),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(jn.Drag,!0))},d=function(p,S){var T=r.getProps(),_=T.dragPropagation,R=T.dragDirectionLock,L=T.onDirectionLock,I=T.onDrag;if(!(!_&&!r.openGlobalLock)){var U=S.offset;if(R&&r.currentDirection===null){r.currentDirection=qj(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",S.point,U),r.updateAxis("y",S.point,U),r.visualElement.syncRender(),I==null||I(p,S)}},y=function(p,S){return r.stop(p,S)};this.panSession=new qC(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:y},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(jn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Eh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Mj(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&xf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Lj(o.actual,r):this.constraints=!1,this.elastic=Bj(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&As(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=jj(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;Da(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=zj(i,o.root,this.visualElement.getTransformPagePoint()),l=Fj(o.layout.actual,s);if(r){var c=r($j(l));this.hasMutatedConstraints=!!c,c&&(l=KC(c))}return l},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,l=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,y=this.constraints||{},p=As(function(S){var T;if(Eh(S,i,n.currentDirection)){var _=(T=y==null?void 0:y[S])!==null&&T!==void 0?T:{};c&&(_={min:0,max:0});var R=s?200:1e6,L=s?40:1e7,I=at(at({type:"inertia",velocity:o?t[S]:0,bounceStiffness:R,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),_);return n.startAxisValueAnimation(S,I)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return my(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;As(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;As(function(r){var i=n.getProps().drag;if(Eh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var l=o.layout.actual[r],c=l.min,d=l.max;s.set(t[r]-lr(c,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!xf(o)||!s||!this.constraints)){this.stopAnimation();var l={x:0,y:0};As(function(d){var y=t.getAxisMotionValue(d);if(y){var p=y.get();l[d]=Nj({min:p,max:p},t.constraints[d])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),As(function(d){if(Eh(d,i,null)){var y=t.getAxisMotionValue(d),p=t.constraints[d],S=p.min,T=p.max;y.set(lr(S,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;Yj.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Df(r,"pointerdown",function(d){var y=t.getProps(),p=y.drag,S=y.dragListener,T=S===void 0?!0:S;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,l=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var c=Bp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var y=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(As(function(S){var T=t.getAxisMotionValue(S);T&&(t.originPoint[S]+=y[S].translate,T.set(T.get()+y[S].translate))}),t.visualElement.syncRender())}),function(){c(),i(),l()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,l=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,y=t.dragElastic,p=y===void 0?cm:y,S=t.dragMomentum,T=S===void 0?!0:S;return at(at({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function Eh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qj(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Xj(e){var t=e.dragControls,n=e.visualElement,r=jp(function(){return new Gj(n)});Q.useEffect(function(){return t&&t.subscribe(r)},[r,t]),Q.useEffect(function(){return r.addListeners()},[r])}function Kj(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=Q.useRef(null),c=Q.useContext(Qm).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,S){l.current=null,r&&r(p,S)}};Q.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function y(p){l.current=new qC(p,d,{transformPagePoint:c})}lp(o,"pointerdown",s&&y),xC(function(){return l.current&&l.current.end()})}var Zj={pan:xl(Kj),drag:xl(Xj)},kh=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Jj(){var e=kh.map(function(){return new pd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){kh.forEach(function(i){var o,s="on"+i,l=r[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=n[s](l))})}};return e.forEach(function(r,i){n["on"+kh[i]]=function(o){return r.add(o)},n["notify"+kh[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Qo([],Gr(o),!1))}}),n}function Qj(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Iu(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&HC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(Iu(s))e.addValue(i,If(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,If((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var eE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,l=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,y=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(S,T){var _=S.parent,R=S.props,L=S.presenceId,I=S.blockInitialAnimation,U=S.visualState,z=S.shouldReduceMotion;T===void 0&&(T={});var re=!1,Z=U.latestValues,de=U.renderState,x,ye=Jj(),ae=new Map,Me=new Map,Ze={},Ve=at({},Z),Ye;function ot(){!x||!re||(me(),l(x,de,R.style,Ue.projection))}function me(){r(Ue,de,Z,T,R)}function Oe(){ye.notifyUpdate(Z)}function He(Re,Le){var Xe=Le.onChange(function(mt){Z[Re]=mt,R.onUpdate&&Ns.update(Oe,!1,!0)}),lt=Le.onRenderRequest(Ue.scheduleRender);Me.set(Re,function(){Xe(),lt()})}var Je=p(R);for(var st in Je){var De=Je[st];Z[st]!==void 0&&Iu(De)&&De.set(Z[st],!1)}var xe=Np(R),We=UT(R),Ue=at(at({treeType:n,current:null,depth:_?_.depth+1:0,parent:_,children:new Set,presenceId:L,shouldReduceMotion:z,variantChildren:We?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(_!=null&&_.isMounted()),blockInitialAnimation:I,isMounted:function(){return!!x},mount:function(Re){re=!0,x=Ue.current=Re,Ue.projection&&Ue.projection.mount(Re),We&&_&&!xe&&(Ye=_==null?void 0:_.addVariantChild(Ue)),ae.forEach(function(Le,Xe){return He(Xe,Le)}),_==null||_.children.add(Ue),Ue.setProps(R)},unmount:function(){var Re;(Re=Ue.projection)===null||Re===void 0||Re.unmount(),Rf.update(Oe),Rf.render(ot),Me.forEach(function(Le){return Le()}),Ye==null||Ye(),_==null||_.children.delete(Ue),ye.clearAllListeners(),x=void 0,re=!1},addVariantChild:function(Re){var Le,Xe=Ue.getClosestVariantNode();if(Xe)return(Le=Xe.variantChildren)===null||Le===void 0||Le.add(Re),function(){return Xe.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!y||n!==Re.treeType?0:y(Ue.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return We?Ue:_==null?void 0:_.getClosestVariantNode()},getLayoutId:function(){return R.layoutId},getInstance:function(){return x},getStaticValue:function(Re){return Z[Re]},setStaticValue:function(Re,Le){return Z[Re]=Le},getLatestValues:function(){return Z},setVisibility:function(Re){Ue.isVisible!==Re&&(Ue.isVisible=Re,Ue.scheduleRender())},makeTargetAnimatable:function(Re,Le){return Le===void 0&&(Le=!0),o(Ue,Re,R,Le)},measureViewportBox:function(){return s(x,R)},addValue:function(Re,Le){Ue.hasValue(Re)&&Ue.removeValue(Re),ae.set(Re,Le),Z[Re]=Le.get(),He(Re,Le)},removeValue:function(Re){var Le;ae.delete(Re),(Le=Me.get(Re))===null||Le===void 0||Le(),Me.delete(Re),delete Z[Re],d(Re,de)},hasValue:function(Re){return ae.has(Re)},getValue:function(Re,Le){var Xe=ae.get(Re);return Xe===void 0&&Le!==void 0&&(Xe=If(Le),Ue.addValue(Re,Xe)),Xe},forEachValue:function(Re){return ae.forEach(Re)},readValue:function(Re){var Le;return(Le=Z[Re])!==null&&Le!==void 0?Le:c(x,Re,T)},setBaseTarget:function(Re,Le){Ve[Re]=Le},getBaseTarget:function(Re){if(i){var Le=i(R,Re);if(Le!==void 0&&!Iu(Le))return Le}return Ve[Re]}},ye),{build:function(){return me(),de},scheduleRender:function(){Ns.render(ot,!1,!0)},syncRender:ot,setProps:function(Re){(Re.transformTemplate||R.transformTemplate)&&Ue.scheduleRender(),R=Re,ye.updatePropListeners(Re),Ze=Qj(Ue,p(R),Ze)},getProps:function(){return R},getVariant:function(Re){var Le;return(Le=R.variants)===null||Le===void 0?void 0:Le[Re]},getDefaultTransition:function(){return R.transition},getTransformPagePoint:function(){return R.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return _==null?void 0:_.getVariantContext();if(!xe){var Le=(_==null?void 0:_.getVariantContext())||{};return R.initial!==void 0&&(Le.initial=R.initial),Le}for(var Xe={},lt=0;lt<eB;lt++){var mt=tE[lt],wt=R[mt];(rs(wt)||wt===!1)&&(Xe[mt]=wt)}return Xe}});return Ue}},tE=Qo(["initial"],Gr(wy),!1),eB=tE.length;function dm(e){return typeof e=="string"&&e.startsWith("var(--")}var nE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tB(e){var t=nE.exec(e);if(!t)return[,];var n=Gr(t,3),r=n[1],i=n[2];return[r,i]}var nB=4;function hm(e,t,n){n===void 0&&(n=1),Da(n<=nB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=Gr(tB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():dm(o)?hm(o,t,n+1):o}}function rB(e,t,n){var r,i=_a(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=at({},n)),e.forEachValue(function(d){var y=d.get();if(dm(y)){var p=hm(y,o);p&&d.set(p)}});for(var s in i){var l=i[s];if(dm(l)){var c=hm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var iB=new Set(["width","height","top","left","right","bottom","x","y"]),rE=function(e){return iB.has(e)},oB=function(e){return Object.keys(e).some(rE)},iE=function(e,t){e.set(t,!1),e.set(t)},Oh=function(e){return e===$c||e===jt},qw;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(qw||(qw={}));var Xw=function(e,t){return parseFloat(e.split(", ")[t])},Kw=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Xw(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?Xw(s[1],e):0}},aB=new Set(["x","y","z"]),sB=Rd.filter(function(e){return!aB.has(e)});function uB(e){var t=[];return sB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var Zw={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Kw(4,13),y:Kw(5,14)},lB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){l[d]=Zw[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var y=t.getValue(d);iE(y,l[d]),e[d]=Zw[d](c,o)}),e},cB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=at({},t),r=at({},r);var i=Object.keys(t).filter(rE),o=[],s=!1,l=[];if(i.forEach(function(y){var p=e.getValue(y);if(e.hasValue(y)){var S=n[y],T=nd(S),_=t[y],R;if(Ad(_)){var L=_.length,I=_[0]===null?1:0;S=_[I],T=nd(S);for(var U=I;U<L;U++)R?Da(nd(_[U])===R,"All keyframes must be of the same type"):(R=nd(_[U]),Da(R===T||Oh(T)&&Oh(R),"Keyframes must be of the same dimension as the current value"))}else R=nd(_);if(T!==R)if(Oh(T)&&Oh(R)){var z=p.get();typeof z=="string"&&p.set(parseFloat(z)),typeof _=="string"?t[y]=parseFloat(_):Array.isArray(_)&&R===jt&&(t[y]=_.map(parseFloat))}else T!=null&&T.transform&&(R!=null&&R.transform)&&(S===0||_===0)?S===0?p.set(R.transform(S)):t[y]=T.transform(_):(s||(o=uB(e),s=!0),l.push(y),r[y]=r[y]!==void 0?r[y]:t[y],iE(p,_))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=lB(t,e,l);return o.length&&o.forEach(function(y){var p=Gr(y,2),S=p[0],T=p[1];e.getValue(S).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function fB(e,t,n,r){return oB(t)?cB(e,t,n,r):{target:t,transitionEnd:r}}var dB=function(e,t,n,r){var i=rB(e,t,r);return t=i.target,r=i.transitionEnd,fB(e,t,n,r)};function hB(e){return window.getComputedStyle(e)}var oE={treeType:"dom",readValueFromInstance:function(e,t){if(Ud(t)){var n=py(t);return n&&n.default||0}else{var r=hB(e);return(qT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return QC(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,l=_a(t,["transition","transitionEnd"]),c=bj(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){mj(e,l,c);var d=dB(e,l,c,s);s=d.transitionEnd,l=d.target}return at({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:oy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),ny(t,n,r,i.transformTemplate)},render:sC},pB=eE(oE),gB=eE(at(at({},oE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Ud(t)?((n=py(t))===null||n===void 0?void 0:n.default)||0:(t=uC.has(t)?t:aC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:cC,build:function(e,t,n,r,i){iy(t,n,r,i.transformTemplate)},render:lC})),vB=function(e,t){return ey(e)?gB(t,{enableHardwareAcceleration:!1}):pB(t,{enableHardwareAcceleration:!0})};function Jw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var rd={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;var n=Jw(e,t.target.x),r=Jw(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Qw="_$css",mB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(nE,function(R){return s.push(R),Qw}));var l=Au.parse(e);if(l.length>5)return i;var c=Au.createTransformer(e),d=typeof l[0]!="number"?1:0,y=r.x.scale*n.x,p=r.y.scale*n.y;l[0+d]/=y,l[1+d]/=p;var S=lr(y,p,.5);typeof l[2+d]=="number"&&(l[2+d]/=S),typeof l[3+d]=="number"&&(l[3+d]/=S);var T=c(l);if(o){var _=0;T=T.replace(Qw,function(){var R=s[_];return _++,R})}return T}},yB=function(e){FT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,l=r.layoutId,c=i.projection;U2(wB),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(at(at({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),fd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,l||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Ns.postRender(function(){var y;!((y=d.getStack())===null||y===void 0)&&y.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(Q.Component);function bB(e){var t=Gr(UC(),2),n=t[0],r=t[1],i=Q.useContext(WT);return Q.createElement(yB,at({},e,{layoutGroup:i,switchLayoutGroup:Q.useContext(zT),isPresent:n,safeToRemove:r}))}var wB={borderRadius:at(at({},rd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:mB},xB={measureLayout:bB};function SB(e,t,n){n===void 0&&(n={});var r=Iu(e)?e:If(e);return my("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var aE=["TopLeft","TopRight","BottomLeft","BottomRight"],TB=aE.length,ex=function(e){return typeof e=="string"?parseFloat(e):e},tx=function(e){return typeof e=="number"||jt.test(e)};function CB(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=lr(0,(s=n.opacity)!==null&&s!==void 0?s:1,EB(r)),e.opacityExit=lr((l=t.opacity)!==null&&l!==void 0?l:1,0,kB(r))):o&&(e.opacity=lr((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var y=0;y<TB;y++){var p="border".concat(aE[y],"Radius"),S=nx(t,p),T=nx(n,p);if(!(S===void 0&&T===void 0)){S||(S=0),T||(T=0);var _=S===0||T===0||tx(S)===tx(T);_?(e[p]=Math.max(lr(ex(S),ex(T),r),0),(Fs.test(T)||Fs.test(S))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=lr(t.rotate||0,n.rotate||0,r))}function nx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var EB=sE(0,.5,dy),kB=sE(.5,.95,cy);function sE(e,t,n){return function(r){return r<e?0:r>t?1:n(Md(e,t,r))}}function rx(e,t){e.min=t.min,e.max=t.max}function ts(e,t){rx(e.x,t.x),rx(e.y,t.y)}function ix(e,t,n,r,i){return e-=t,e=gp(e,1/n,r),i!==void 0&&(e=gp(e,1/i,r)),e}function OB(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Fs.test(t)){t=parseFloat(t);var l=lr(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=lr(o.min,o.max,r);e===o&&(c-=t),e.min=ix(e.min,t,n,c,i),e.max=ix(e.max,t,n,c,i)}}function ox(e,t,n,r,i){var o=Gr(n,3),s=o[0],l=o[1],c=o[2];OB(e,t[s],t[l],t[c],t.scale,r,i)}var DB=["x","scaleX","originX"],PB=["y","scaleY","originY"];function ax(e,t,n,r){ox(e.x,t,DB,n==null?void 0:n.x,r==null?void 0:r.x),ox(e.y,t,PB,n==null?void 0:n.y,r==null?void 0:r.y)}function sx(e){return e.translate===0&&e.scale===1}function uE(e){return sx(e.x)&&sx(e.y)}function lE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var _B=function(){function e(){this.members=[]}return e.prototype.add=function(t){yy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(by(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),RB="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function ux(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,l=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,y=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(y,")"),o===RB?"none":o}var IB=function(e,t){return e.depth-t.depth},AB=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){yy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){by(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(IB),this.isDirty=!1,this.children.forEach(t)},e}(),lx=1e3;function cE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,d){var y=this;c===void 0&&(c={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=function(){y.isUpdating&&(y.isUpdating=!1,y.clearAllSnapshots())},this.updateProjection=function(){y.nodes.forEach(BB),y.nodes.forEach($B)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?Qo(Qo([],Gr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new AB)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new pd),this.eventHandlers.get(l).add(c)},s.prototype.notifyListeners=function(l){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var y=this.eventHandlers.get(l);y==null||y.notify.apply(y,Qo([],Gr(c),!1))},s.prototype.hasListeners=function(l){return this.eventHandlers.has(l)},s.prototype.registerPotentialNode=function(l,c){this.potentialNodes.set(l,c)},s.prototype.mount=function(l,c){var d=this,y;if(c===void 0&&(c=!1),!this.instance){this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;var p=this.options,S=p.layoutId,T=p.layout,_=p.visualElement;if(_&&!_.getInstance()&&_.mount(l),this.root.nodes.add(this),(y=this.parent)===null||y===void 0||y.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(T||S)&&(this.isLayoutDirty=!0),t){var R,L=function(){return d.root.updateBlockedByResize=!1};t(l,function(){d.root.updateBlockedByResize=!0,clearTimeout(R),R=window.setTimeout(L,250),fd.hasAnimatedSinceResize&&(fd.hasAnimatedSinceResize=!1,d.nodes.forEach(jB))})}S&&this.root.registerSharedNode(S,this),this.options.animate!==!1&&_&&(S||T)&&this.addEventListener("didUpdate",function(I){var U,z,re,Z,de,x=I.delta,ye=I.hasLayoutChanged,ae=I.hasRelativeTargetChanged,Me=I.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Ze=(z=(U=d.options.transition)!==null&&U!==void 0?U:_.getDefaultTransition())!==null&&z!==void 0?z:zB,Ve=_.getProps(),Ye=Ve.onLayoutAnimationStart,ot=Ve.onLayoutAnimationComplete,me=!d.targetLayout||!lE(d.targetLayout,Me)||ae,Oe=!ye&&ae;if(!((re=d.resumeFrom)===null||re===void 0)&&re.instance||Oe||ye&&(me||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(x,Oe);var He=at(at({},vy(Ze,"layout")),{onPlay:Ye,onComplete:ot});_.shouldReduceMotion&&(He.delay=0,He.type=!1),d.startAnimation(He)}else!ye&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((de=(Z=d.options).onExitComplete)===null||de===void 0||de.call(Z));d.targetLayout=Me})}},s.prototype.unmount=function(){var l,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Rf.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(VB))},s.prototype.willUpdate=function(l){var c,d,y;if(l===void 0&&(l=!0),this.root.isUpdateBlocked()){(d=(c=this.options).onExitComplete)===null||d===void 0||d.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var p=0;p<this.path.length;p++){var S=this.path[p];S.shouldResetTransform=!0,S.updateScroll()}var T=this.options,_=T.layoutId,R=T.layout;if(!(_===void 0&&!R)){var L=(y=this.options.visualElement)===null||y===void 0?void 0:y.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var l=this.isUpdateBlocked();if(l){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(cx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(YB),this.potentialNodes.clear()),this.nodes.forEach(NB),this.nodes.forEach(MB),this.nodes.forEach(LB),this.clearAllSnapshots(),qg.update(),qg.preRender(),qg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(FB),this.sharedNodes.forEach(HB)},s.prototype.scheduleUpdateProjection=function(){Ns.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;Ns.postRender(function(){l.isLayoutDirty?l.root.didUpdate():l.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var l=this.measure(),c=this.removeTransform(this.removeElementScroll(l));px(c),this.snapshot={measured:l,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var l;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var d=this.path[c];d.updateScroll()}var y=this.measure();px(y);var p=this.layout;this.layout={measured:y,actual:this.removeElementScroll(y)},this.layoutCorrected=Mi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,p==null?void 0:p.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var l;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!uE(this.projectionDelta),y=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,p=y==null?void 0:y(this.latestValues,""),S=p!==this.prevTransformTemplateValue;c&&(d||gl(this.latestValues)||S)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Mi();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(ml(c.x,d.x),ml(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Mi();ts(c,l);for(var d=0;d<this.path.length;d++){var y=this.path[d],p=y.scroll,S=y.options,T=y.isScrollRoot;if(y!==this.root&&p&&S.layoutScroll){if(T){ts(c,l);var _=this.root.scroll;_&&(ml(c.x,-_.x),ml(c.y,-_.y))}ml(c.x,p.x),ml(c.y,p.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var p=this.path[y];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Sf(d,{x:-p.scroll.x,y:-p.scroll.y}),gl(p.latestValues)&&Sf(d,p.latestValues)}return gl(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Mi();ts(d,l);for(var y=0;y<this.path.length;y++){var p=this.path[y];if(p.instance&&gl(p.latestValues)){ZC(p.latestValues)&&p.updateSnapshot();var S=Mi(),T=p.measure();ts(S,T),ax(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,S)}}return gl(this.latestValues)&&ax(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=at(at(at({},this.options),l),{crossfade:(c=l.crossfade)!==null&&c!==void 0?c:!0})},s.prototype.clearMeasurements=function(){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},s.prototype.resolveTargetDelta=function(){var l,c=this.options,d=c.layout,y=c.layoutId;!this.layout||!(d||y)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ts(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Mi(),this.targetWithTransforms=Mi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?Aj(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ts(this.target,this.layout.actual),JC(this.target,this.targetDelta)):ts(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Mi(),this.relativeTargetOrigin=Mi(),vd(this.relativeTargetOrigin,this.target,this.relativeParent.target),ts(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||gl(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var l,c=this.options,d=c.layout,y=c.layoutId;if(this.isTreeAnimating=!!(!((l=this.parent)===null||l===void 0)&&l.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||y))){var p=this.getLead();ts(this.layoutCorrected,this.layout.actual),Hj(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var S=p.target;if(S){this.projectionDelta||(this.projectionDelta=md(),this.projectionDeltaWithTransform=md());var T=this.treeScale.x,_=this.treeScale.y,R=this.projectionTransform;gd(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=ux(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==T||this.treeScale.y!==_)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(l){var c,d,y;l===void 0&&(l=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),l&&((y=this.getStack())===null||y===void 0||y.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(l,c){var d=this,y;c===void 0&&(c=!1);var p=this.snapshot,S=(p==null?void 0:p.latestValues)||{},T=at({},this.latestValues),_=md();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var R=Mi(),L=p==null?void 0:p.isShared,I=(((y=this.getStack())===null||y===void 0?void 0:y.members.length)||0)<=1,U=!!(L&&!I&&this.options.crossfade===!0&&!this.path.some(WB));this.animationProgress=0,this.mixTargetDelta=function(z){var re,Z=z/1e3;fx(_.x,l.x,Z),fx(_.y,l.y,Z),d.setTargetDelta(_),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((re=d.relativeParent)===null||re===void 0)&&re.layout)&&(vd(R,d.layout.actual,d.relativeParent.layout.actual),UB(d.relativeTarget,d.relativeTargetOrigin,R,Z)),L&&(d.animationValues=T,CB(T,S,d.latestValues,Z,U,I)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=Z},this.mixTargetDelta(0)},s.prototype.startAnimation=function(l){var c=this,d,y;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((y=this.resumingFrom.currentAnimation)===null||y===void 0||y.stop()),this.pendingAnimation&&(Rf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ns.update(function(){fd.hasAnimatedSinceResize=!0,c.currentAnimation=SB(0,lx,at(at({},l),{onUpdate:function(p){var S;c.mixTargetDelta(p),(S=l.onUpdate)===null||S===void 0||S.call(l,p)},onComplete:function(){var p;(p=l.onComplete)===null||p===void 0||p.call(l),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,lx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var l=this.getLead(),c=l.targetWithTransforms,d=l.target,y=l.layout,p=l.latestValues;!c||!d||!y||(ts(c,d),Sf(c,p),gd(this.projectionDeltaWithTransform,this.layoutCorrected,c,p))},s.prototype.registerSharedNode=function(l,c){var d,y,p;this.sharedNodes.has(l)||this.sharedNodes.set(l,new _B);var S=this.sharedNodes.get(l);S.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(p=(y=c.options.initialPromotionConfig)===null||y===void 0?void 0:y.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(y,c)})},s.prototype.isLead=function(){var l=this.getStack();return l?l.lead===this:!0},s.prototype.getLead=function(){var l,c=this.options.layoutId;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this},s.prototype.getPrevLead=function(){var l,c=this.options.layoutId;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0},s.prototype.getStack=function(){var l=this.options.layoutId;if(l)return this.root.sharedNodes.get(l)},s.prototype.promote=function(l){var c=l===void 0?{}:l,d=c.needsReset,y=c.transition,p=c.preserveFollowOpacity,S=this.getStack();S&&S.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})},s.prototype.relegate=function(){var l=this.getStack();return l?l.relegate(this):!1},s.prototype.resetRotation=function(){var l=this.options.visualElement;if(l){for(var c=!1,d={},y=0;y<Jv.length;y++){var p=Jv[y],S="rotate"+p;l.getStaticValue(S)&&(c=!0,d[S]=l.getStaticValue(S),l.setStaticValue(S,0))}if(c){l==null||l.syncRender();for(var S in d)l.setStaticValue(S,d[S]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,y,p,S,T;l===void 0&&(l={});var _={};if(!this.instance||this.isSVG)return _;if(this.isVisible)_.visibility="";else return{visibility:"hidden"};var R=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,_.opacity="",_.pointerEvents=Wh(l.pointerEvents)||"",_.transform=R?R(this.latestValues,""):"none",_;var L=this.getLead();if(!this.projectionDelta||!this.layout||!L.target){var I={};return this.options.layoutId&&(I.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,I.pointerEvents=Wh(l.pointerEvents)||""),this.hasProjected&&!gl(this.latestValues)&&(I.transform=R?R({},""):"none",this.hasProjected=!1),I}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),_.transform=ux(this.projectionDeltaWithTransform,this.treeScale,U),R&&(_.transform=R(U,_.transform));var z=this.projectionDelta,re=z.x,Z=z.y;_.transformOrigin="".concat(re.origin*100,"% ").concat(Z.origin*100,"% 0"),L.animationValues?_.opacity=L===this?(p=(y=U.opacity)!==null&&y!==void 0?y:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:U.opacityExit:_.opacity=L===this?(S=U.opacity)!==null&&S!==void 0?S:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var de in sp)if(U[de]!==void 0){var x=sp[de],ye=x.correct,ae=x.applyTo,Me=ye(U[de],L);if(ae)for(var Ze=ae.length,Ve=0;Ve<Ze;Ve++)_[ae[Ve]]=Me;else _[de]=Me}return this.options.layoutId&&(_.pointerEvents=L===this?Wh(l.pointerEvents)||"":"none"),_},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(l){var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(cx),this.root.sharedNodes.clear()},s}()}function MB(e){e.updateLayout()}function LB(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,l=s.actual,c=s.measured;e.options.animationType==="size"?As(function(U){var z=o.isShared?o.measured[U]:o.layout[U],re=Mu(z);z.min=l[U].min,z.max=z.min+re}):e.options.animationType==="position"&&As(function(U){var z=o.isShared?o.measured[U]:o.layout[U],re=Mu(l[U]);z.max=z.min+re});var d=md();gd(d,l,o.layout);var y=md();o.isShared?gd(y,e.applyTransform(c,!0),o.measured):gd(y,l,o.layout);var p=!uE(d),S=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,_=T.snapshot,R=T.layout;if(_&&R){var L=Mi();vd(L,o.layout,_.layout);var I=Mi();vd(I,l,R.actual),lE(L,I)||(S=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:y,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:S})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function FB(e){e.clearSnapshot()}function cx(e){e.clearMeasurements()}function NB(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function jB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function BB(e){e.resolveTargetDelta()}function $B(e){e.calcProjection()}function VB(e){e.resetRotation()}function HB(e){e.removeLeadSnapshot()}function fx(e,t,n){e.translate=lr(t.translate,0,n),e.scale=lr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function dx(e,t,n,r){e.min=lr(t.min,n.min,r),e.max=lr(t.max,n.max,r)}function UB(e,t,n,r){dx(e.x,t.x,n.x,r),dx(e.y,t.y,n.y,r)}function WB(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var zB={duration:.45,ease:[.4,0,.1,1]};function YB(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function hx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function px(e){hx(e.x),hx(e.y)}var GB=cE({attachResizeListener:function(e,t){return Bp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ev={current:void 0},qB=cE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ev.current){var e=new GB(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ev.current=e}return ev.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),XB=at(at(at(at({},_j),qN),Zj),xB),KB=V2(function(e,t){return OF(e,t,XB,vB,qB)});function pm(e,t,n){var r,i,o,s,l;t==null&&(t=100);function c(){var y=Date.now()-s;y<t&&y>=0?r=setTimeout(c,t-y):(r=null,n||(l=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var y=n&&!r;return r||(r=setTimeout(c,t)),y&&(l=e.apply(o,i),o=i=null),l};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(l=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}pm.debounce=pm;var ZB=pm;const gx=Bc(ZB);function JB(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;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[s,l]=Q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=Q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,y=t?typeof t=="number"?t:t.resize:null,p=Q.useRef(!1);Q.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[S,T,_]=Q.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:z,top:re,width:Z,height:de,bottom:x,right:ye,x:ae,y:Me}=c.current.element.getBoundingClientRect(),Ze={left:z,top:re,width:Z,height:de,bottom:x,right:ye,x:ae,y:Me};c.current.element instanceof HTMLElement&&i&&(Ze.height=c.current.element.offsetHeight,Ze.width=c.current.element.offsetWidth),Object.freeze(Ze),p.current&&!n$(c.current.lastBounds,Ze)&&l(c.current.lastBounds=Ze)};return[U,y?gx(U,y):U,d?gx(U,d):U]},[l,i,d,y]);function R(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",_,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function L(){c.current.element&&(c.current.resizeObserver=new o(_),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",_,{capture:!0,passive:!0})))}const I=U=>{!U||U===c.current.element||(R(),c.current.element=U,c.current.scrollContainers=fE(U),L())};return e$(_,!!n),QB(T),Q.useEffect(()=>{R(),L()},[n,_,T]),Q.useEffect(()=>R,[]),[I,s,S]}function QB(e){Q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function e$(e,t){Q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function fE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...fE(e.parentElement)]}const t$=["x","y","top","bottom","left","right","width","height"],n$=(e,t)=>t$.every(n=>e[n]===t[n]),dE=Q.createContext({dragDropManager:void 0});function xa(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tv=function(){return Math.random().toString(36).substring(7).split("").join(".")},mx={INIT:"@@redux/INIT"+tv(),REPLACE:"@@redux/REPLACE"+tv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tv()}};function r$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(s$(e))return"date";if(a$(e))return"error";var n=o$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function o$(e){return typeof e.constructor=="function"?e.constructor.name:null}function a$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function s$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=i$(e)),t}function hE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xa(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 t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(hE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xa(2):"Expected the root reducer to be a function. Instead, received: '"+pf(e)+"'");var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function y(){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 p(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(4):"Expected the listener to be a function. Instead, received: '"+pf(R)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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 L=!0;return d(),l.push(R),function(){if(L){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(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.");L=!1,d();var U=l.indexOf(R);l.splice(U,1),s=null}}}function S(R){if(!r$(R))throw new Error(process.env.NODE_ENV==="production"?xa(7):"Actions must be plain objects. Instead, the actual type was: '"+pf(R)+"'. 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 R.type>"u")throw new Error(process.env.NODE_ENV==="production"?xa(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,R)}finally{c=!1}for(var L=s=l,I=0;I<L.length;I++){var U=L[I];U()}return R}function T(R){if(typeof R!="function")throw new Error(process.env.NODE_ENV==="production"?xa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(R));i=R,S({type:mx.REPLACE})}function _(){var R,L=p;return R={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function z(){U.next&&U.next(y())}z();var re=L(z);return{unsubscribe:re}}},R[vx]=function(){return this},R}return S({type:mx.INIT}),r={dispatch:S,subscribe:p,getState:y,replaceReducer:T},r[vx]=_,r}function Kt(e,t,...n){if(u$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===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(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function u$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function l$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function c$(e,t){return e.filter(n=>n!==t)}function pE(e){return typeof e=="object"}function f$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function d$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const xy="dnd-core/INIT_COORDS",Up="dnd-core/BEGIN_DRAG",Sy="dnd-core/PUBLISH_DRAG_SOURCE",Wp="dnd-core/HOVER",zp="dnd-core/DROP",Yp="dnd-core/END_DRAG";function yx(e,t){return{type:xy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const h$={type:xy,payload:{clientOffset:null,sourceClientOffset:null}};function p$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(yx(o)),g$(n,l,c);const d=y$(n,l);if(d==null){e.dispatch(h$);return}let y=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");v$(s),y=s(d)}e.dispatch(yx(o,y));const S=c.getSource(d).beginDrag(l,d);if(S==null)return;m$(S),c.pinSource(d);const T=c.getSourceType(d);return{type:Up,payload:{itemType:T,item:S,sourceId:d,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function g$(e,t,n){Kt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function v$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function m$(e){Kt(pE(e),"Item must be an object.")}function y$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function b$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){b$(e,i,n[i])})}return e}function x$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();S$(r),E$(r).forEach((s,l)=>{const c=T$(s,l,i,r),d={type:zp,payload:{dropResult:w$({},n,c)}};e.dispatch(d)})}}function S$(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function T$(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return C$(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function C$(e){Kt(typeof e>"u"||pE(e),"Drop result must either be an object or undefined.")}function E$(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function k$(e){return function(){const n=e.getMonitor(),r=e.getRegistry();O$(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Yp}}}function O$(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function gm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function D$(e){return function(n,{clientOffset:r}={}){P$(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return R$(i,s,l),_$(i,o,s),I$(i,o,s),{type:Wp,payload:{targetIds:i,clientOffset:r||null}}}}function P$(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function _$(e,t,n){Kt(t.isDragging(),"Cannot call hover while not dragging."),Kt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Kt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Kt(o,"Expected targetIds to be registered.")}}function R$(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);gm(o,n)||e.splice(r,1)}}function I$(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function A$(e){return function(){if(e.getMonitor().isDragging())return{type:Sy}}}function M$(e){return{beginDrag:p$(e),publishDragSource:A$(e),hover:D$(e),drop:x$(e),endDrag:k$(e)}}class L${receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const l=o.apply(t,s);typeof l<"u"&&n(l)}}const i=M$(this);return Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=r(l),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,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=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function F$(e,t){return{x:e.x+t.x,y:e.y+t.y}}function gE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function N$(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:gE(F$(t,r),n)}function j$(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:gE(t,n)}const yd=[],Ty=[];yd.__IS_NONE__=!0;Ty.__IS_ALL__=!0;function B$(e,t){return e===yd?!1:e===Ty||typeof t>"u"?!0:d$(t,e).length>0}class $${subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Kt(typeof t=="function","listener must be a function."),Kt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!B$(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Kt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Kt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Kt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return gm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Kt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!gm(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-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 N$(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return j$(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const bx=typeof global<"u"?global:self,vE=bx.MutationObserver||bx.WebKitMutationObserver;function mE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function V$(e){let t=1;const n=new vE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const H$=typeof vE=="function"?V$:mE;class U${enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=H$(this.flush),this.requestErrorThrow=mE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class W${call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class z${create(t){const n=this.freeTasks,r=n.length?n.pop():new W$(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const yE=new U$,Y$=new z$(yE.registerPendingError);function G$(e){yE.enqueueTask(Y$.create(e))}const Cy="dnd-core/ADD_SOURCE",Ey="dnd-core/ADD_TARGET",ky="dnd-core/REMOVE_SOURCE",Gp="dnd-core/REMOVE_TARGET";function q$(e){return{type:Cy,payload:{sourceId:e}}}function X$(e){return{type:Ey,payload:{targetId:e}}}function K$(e){return{type:ky,payload:{sourceId:e}}}function Z$(e){return{type:Gp,payload:{targetId:e}}}function J$(e){Kt(typeof e.canDrag=="function","Expected canDrag to be a function."),Kt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Q$(e){Kt(typeof e.canDrop=="function","Expected canDrop to be a function."),Kt(typeof e.hover=="function","Expected hover to be a function."),Kt(typeof e.drop=="function","Expected beginDrag to be a function.")}function vm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>vm(n,!1));return}Kt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ka;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ka||(ka={}));let eV=0;function tV(){return eV++}function nV(e){const t=tV().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function wx(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function xx(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class rV{addSource(t,n){vm(t),J$(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(q$(r)),r}addTarget(t,n){vm(t,!0),Q$(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(X$(r)),r}containsHandler(t){return xx(this.dragSources,t)||xx(this.dropTargets,t)}getSource(t,n=!1){return Kt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Kt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return wx(t)===ka.SOURCE}isTargetId(t){return wx(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(K$(t)),G$(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Z$(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Kt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=nV(t);return this.types.set(i,n),t===ka.SOURCE?this.dragSources.set(i,r):t===ka.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const iV=(e,t)=>e===t;function oV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function aV(e,t,n=iV){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function sV(e=yd,t){switch(t.type){case Wp:break;case Cy:case Ey:case Gp:case ky:return yd;case Up:case Sy:case Yp:case zp:default:return Ty}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=f$(n,r);if(!(i.length>0||!aV(n,r)))return yd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function uV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){uV(e,i,n[i])})}return e}const Sx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function cV(e=Sx,t){const{payload:n}=t;switch(t.type){case xy:case Up:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wp:return oV(e.clientOffset,n.clientOffset)?e:lV({},e,{clientOffset:n.clientOffset});case Yp:case zp:return Sx;default:return e}}function fV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){fV(e,i,n[i])})}return e}const dV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function hV(e=dV,t){const{payload:n}=t;switch(t.type){case Up:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Sy:return gf({},e,{isSourcePublic:!0});case Wp:return gf({},e,{targetIds:n.targetIds});case Gp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:c$(e.targetIds,n.targetId)});case zp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Yp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function pV(e=0,t){switch(t.type){case Cy:case Ey:return e+1;case ky:case Gp:return e-1;default:return e}}function gV(e=0){return e+1}function vV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},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){vV(e,i,n[i])})}return e}function yV(e={},t){return{dirtyHandlerIds:sV(e.dirtyHandlerIds,{type:t.type,payload:mV({},t.payload,{prevTargetIds:l$(e,"dragOperation.targetIds",[])})}),dragOffset:cV(e.dragOffset,t),refCount:pV(e.refCount,t),dragOperation:hV(e.dragOperation,t),stateId:gV(e.stateId)}}function bV(e,t=void 0,n={},r=!1){const i=wV(r),o=new $$(i,new rV(i)),s=new L$(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function wV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return hE(yV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function xV(e,t){if(e==null)return{};var n=SV(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Tx=0;const Gh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var TV=Q.memo(function(t){var{children:n}=t,r=xV(t,["children"]);const[i,o]=CV(r);return Q.useEffect(()=>{if(o){const s=bE();return++Tx,()=>{--Tx===0&&(s[Gh]=null)}}},[]),it.jsx(dE.Provider,{value:i,children:n})});function CV(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=EV(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function EV(e,t=bE(),n,r){const i=t;return i[Gh]||(i[Gh]={dragDropManager:bV(e,t,n,r)}),i[Gh]}function bE(){return typeof global<"u"?global:window}var kV=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),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 s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const OV=Bc(kV),Ic=typeof window<"u"?Q.useLayoutEffect:Q.useEffect;function wE(e,t,n){const[r,i]=Q.useState(()=>t(e)),o=Q.useCallback(()=>{const s=t(e);OV(r,s)||(i(s),n&&n())},[r,e,n]);return Ic(o),[r,o]}function DV(e,t,n){const[r,i]=wE(e,t,n);return Ic(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function xE(e,t,n){return DV(t,e||(()=>({})),()=>n.reconnect())}function SE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),Q.useMemo(()=>typeof e=="function"?e():e,n)}function PV(e){return Q.useMemo(()=>e.hooks.dragSource(),[e])}function _V(e){return Q.useMemo(()=>e.hooks.dragPreview(),[e])}let nv=!1,rv=!1;class RV{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!nv,"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 nv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!rv,"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 rv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rv=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}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(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let iv=!1;class IV{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Kt(!iv,"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 iv=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iv=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!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(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function AV(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function MV(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function mm(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!l(d))return!1;const y=e[d],p=t[d];if(i=n?n.call(r,y,p,d):void 0,i===!1||i===void 0&&y!==p)return!1}return!0}function ym(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LV(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function FV(e){return(t=null,n=null)=>{if(!Q.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return LV(r),NV(r,n?o=>e(o,n):e)}}function TE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=FV(r);t[n]=()=>i}}),t}function Cx(e,t){typeof e=="function"?e(t):e.current=t}function NV(e,t){const n=e.ref;return Kt(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?Q.cloneElement(e,{ref:r=>{Cx(n,r),Cx(t,r)}}):Q.cloneElement(e,{ref:t})}class jV{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||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!mm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!mm(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(t){this.hooks=TE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,ym(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,ym(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=t}}class BV{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!mm(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(t){this.hooks=TE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,ym(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=t}}function Fu(){const{dragDropManager:e}=Q.useContext(dE);return Kt(e!=null,"Expected drag drop context"),e}function $V(e,t){const n=Fu(),r=Q.useMemo(()=>new jV(n.getBackend()),[n]);return Ic(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ic(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function VV(){const e=Fu();return Q.useMemo(()=>new RV(e),[e])}class HV{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function UV(e,t,n){const r=Q.useMemo(()=>new HV(e,t,n),[t,n]);return Q.useEffect(()=>{r.spec=e},[e]),r}function WV(e){return Q.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function zV(e,t,n){const r=Fu(),i=UV(e,t,n),o=WV(e);Ic(function(){if(o!=null){const[l,c]=MV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function YV(e,t){const n=SE(e,t);Kt(!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=VV(),i=$V(n.options,n.previewOptions);return zV(n,r,i),[xE(n.collect,r,i),PV(i),_V(i)]}function GV(e){const n=Fu().getMonitor(),[r,i]=wE(n,e);return Q.useEffect(()=>n.subscribeToOffsetChange(i)),Q.useEffect(()=>n.subscribeToStateChange(i)),r}function qV(e){return Q.useMemo(()=>e.hooks.dropTarget(),[e])}function XV(e){const t=Fu(),n=Q.useMemo(()=>new BV(t.getBackend()),[t]);return Ic(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function KV(){const e=Fu();return Q.useMemo(()=>new IV(e),[e])}function ZV(e){const{accept:t}=e;return Q.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class JV{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function QV(e,t){const n=Q.useMemo(()=>new JV(e,t),[t]);return Q.useEffect(()=>{n.spec=e},[e]),n}function e3(e,t,n){const r=Fu(),i=QV(e,t),o=ZV(e);Ic(function(){const[l,c]=AV(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function CE(e,t){const n=SE(e,t),r=KV(),i=XV(n.options);return e3(n,r,i),[xE(n.collect,r,i),qV(i)]}function ov(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t3(e,t,n){n3(e,t),t.set(e,n)}function n3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dh(e,t){var n=EE(e,t,"get");return r3(e,n)}function r3(e,t){return t.get?t.get.call(e):t.value}function i3(e,t,n){var r=EE(e,t,"set");return o3(e,r,n),n}function EE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var vf=new WeakMap;class a3{constructor(){t3(this,vf,{writable:!0,value:void 0}),ov(this,"register",t=>{Dh(this,vf).push(t)}),ov(this,"unregister",t=>{let n;for(;(n=Dh(this,vf).indexOf(t))!==-1;)Dh(this,vf).splice(n,1)}),ov(this,"backendChanged",t=>{for(const n of Dh(this,vf))n.backendChanged(t)}),i3(this,vf,[])}}function ns(e,t,n){s3(e,t),t.set(e,n)}function s3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){var n=kE(e,t,"get");return u3(e,n)}function u3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=kE(e,t,"set");return l3(e,r,n),n}function kE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function l3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Sa=new WeakMap,Ph=new WeakMap,Ta=new WeakMap,hl=new WeakMap,mc=new WeakMap,Ex=new WeakMap,kx=new WeakMap,Ox=new WeakMap,av=new WeakMap,sv=new WeakMap,_h=new WeakMap;class _f{constructor(t,n,r){if(ns(this,Sa,{writable:!0,value:void 0}),ns(this,Ph,{writable:!0,value:void 0}),ns(this,Ta,{writable:!0,value:void 0}),ns(this,hl,{writable:!0,value:void 0}),ns(this,mc,{writable:!0,value:void 0}),ns(this,Ex,{writable:!0,value:(i,o,s)=>{var l,c;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const d=s.backend(i,o,s.options);let y=s.id;const p=!s.id&&d&&d.constructor;if(p&&(y=d.constructor.name),y)p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
34
8
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(s),`
35
9
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Jt(this,Ta)[y])throw new Error(`You must specify a unique 'id' property in your Backend entry:
36
10
  `.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Jt(this,Ta)[y]),")"));return{id:y,instance:d,preview:(l=s.preview)!==null&&l!==void 0?l:!1,transition:s.transition,skipDispatchOnTransition:(c=s.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),Is(this,"setup",()=>{if(!(typeof window>"u")){if(_f.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");_f.isSetUp=!0,Jt(this,kx).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.setup()}}),Is(this,"teardown",()=>{typeof window>"u"||(_f.isSetUp=!1,Jt(this,Ox).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.teardown())}),Is(this,"connectDragSource",(i,o,s)=>Jt(this,_h).call(this,"connectDragSource",i,o,s)),Is(this,"connectDragPreview",(i,o,s)=>Jt(this,_h).call(this,"connectDragPreview",i,o,s)),Is(this,"connectDropTarget",(i,o,s)=>Jt(this,_h).call(this,"connectDropTarget",i,o,s)),Is(this,"profile",()=>Jt(this,Ta)[Jt(this,Sa)].instance.profile()),Is(this,"previewEnabled",()=>Jt(this,Ta)[Jt(this,Sa)].preview),Is(this,"previewsList",()=>Jt(this,Ph)),Is(this,"backendsList",()=>Jt(this,hl)),ns(this,kx,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,av))})}}),ns(this,Ox,{writable:!0,value:i=>{Jt(this,hl).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,av))})}}),ns(this,av,{writable:!0,value:i=>{const o=Jt(this,Sa);if(Jt(this,hl).some(l=>l.id!==Jt(this,Sa)&&l.transition&&l.transition.check(i)?(mf(this,Sa,l.id),!0):!1),Jt(this,Sa)!==o){var s;Jt(this,Ta)[o].instance.teardown(),Object.keys(Jt(this,mc)).forEach(y=>{const p=Jt(this,mc)[y];p.unsubscribe(),p.unsubscribe=Jt(this,sv).call(this,p.func,...p.args)}),Jt(this,Ph).backendChanged(this);const l=Jt(this,Ta)[Jt(this,Sa)];if(l.instance.setup(),l.skipDispatchOnTransition)return;const c=i.constructor,d=new c(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(d)}}}),ns(this,sv,{writable:!0,value:(i,o,s,l)=>Jt(this,Ta)[Jt(this,Sa)].instance[i](o,s,l)}),ns(this,_h,{writable:!0,value:(i,o,s,l)=>{const c="".concat(i,"_").concat(o),d=Jt(this,sv).call(this,i,o,s,l);return Jt(this,mc)[c]={func:i,args:[o,s,l],unsubscribe:d},()=>{Jt(this,mc)[c].unsubscribe(),delete Jt(this,mc)[c]}}}),!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)
37
- see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);mf(this,Ph,new s3),mf(this,Ta,{}),mf(this,hl,[]),r.backends.forEach(i=>{const o=Jt(this,Ex).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,hl).push(o)}),mf(this,Sa,Jt(this,hl)[0].id),mf(this,mc,{})}}Is(_f,"isSetUp",!1);const f3=(e,t,n)=>new _f(e,t,n),DE=(e,t)=>({event:e,check:t}),d3=DE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),h3=DE("pointerdown",e=>e.pointerType=="mouse");var Sl;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Sl||(Sl={}));class p3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function g3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function v3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const l=i[s];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const m3={Left:1,Right:2,Center:4},y3={Left:0,Center:1,Right:2};function uv(e){return e.button===void 0||e.button===y3.Left}function b3(e){return e.buttons===void 0||(e.buttons&m3.Left)===0}function PE(e){return!!e.targetTouches}const w3=1;function x3(e){const t=e.nodeType===w3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function S3(e,t){if(e.targetTouches.length===1)return mp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return mp(e.touches[0])}function mp(e,t){return PE(e)?S3(e,t):{x:e.clientX,y:e.clientY}}const Dx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),id={[Sl.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Sl.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Sl.keyboard]:{keydown:"keydown"}};class bd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Kt(!bd.isSetUp,"Cannot have two Touch backends at the same time."),bd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(bd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.addEventListener(l,r,o)})}removeEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.removeEventListener(l,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case id.mouse.move:s={x:o.clientX,y:o.clientY};break;case id.touch.move:var l,c;s={x:((l=o.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((c=o.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const d=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,y=d&&n.contains(d);if(d===n||y)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.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(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&x3(o)},this.handleTopMoveStartCapture=i=>{uv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!uv(i))return;const o=mp(i);o&&(PE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!uv(i))return;const o=i.type===id.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:s}=this,l=this.options.enableHoverOutsideTarget,c=mp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&v3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&g3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.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 d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(s||[]).map(_=>this.targetNodes.get(_)).filter(_=>!!_),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,y):this.document.elementsFromPoint(c.x,c.y),S=[];for(const _ in p){if(!p.hasOwnProperty(_))continue;let R=p[_];for(R!=null&&S.push(R);R;)R=R.parentElement,R&&S.indexOf(R)===-1&&S.push(R)}const T=S.filter(_=>y.indexOf(_)>-1).map(_=>this._getDropTargetId(_)).filter(_=>!!_).filter((_,R,L)=>L.indexOf(_)===R);if(l)for(const _ in this.targetNodes){const R=this.targetNodes.get(_);if(d&&R&&R.contains(d)&&T.indexOf(_)===-1){T.unshift(_);break}}T.reverse(),this.actions.hover(T,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const l=s.value;if(i===this.targetNodes.get(l))return l;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!b3(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 p3(r,n),this.actions=t.getActions(),this.monitor=t.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(Sl.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Sl.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Sl.keyboard)}}const T3=function(t,n={},r={}){return new bd(t,n,r)};var Pa=function(){return Pa=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Pa.apply(this,arguments)};function ao(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function C3(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,l=e.children,c=QB({polyfill:S2}),d=c[0],y=c[1].height,p=Q.useState(t),S=p[0],T=p[1],_=Q.useState(t),R=_[0],L=_[1],I=Q.useState(!1),U=I[0],z=I[1],re=function(){z(!1),t||T(!1)};return Q.useEffect(function(){z(!0),t?T(!0):L(!1)},[t]),Q.useEffect(function(){S&&L(!0)},[y]),Q.createElement(ZB.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:R?"open":"close",animate:R?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:E3(y,i)}},Q.createElement("div",{ref:d},S&&l))}function E3(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var k3=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},od=function(e,t){return e.find(function(n){return n.id===t})},_E=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:_E(e,t,r.parent)},Oy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Dl=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(y){return y.id===t});return!!(s&&s.droppable)}else{var l=Oy(e)?e.id:null;if(o){var c=o(l,t);if(c!==void 0)return c}if(l===t)return!1;var d=r.find(function(p){return p.id===l}),s=r.find(function(p){return p.id===t});return d===void 0||l===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!_E(r,l,t)}},O3=function(e,t,n){return e.map(function(r){return r.id===t?Pa(Pa({},r),{parent:n}):r})},RE=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},D3=function(e,t){return e.findIndex(function(n){return n.id===t})},IE=function(e,t,n,r){var i=D3(e,t),o=RE(e,n,r);return o=o>i?o-1:o,[i,o]},P3=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},_3=function(e,t,n,r){var i=IE(e,t,n,r),o=i[0],s=i[1],l=ao([],e,!0);return P3(l,o,s),l.map(function(c){return c.id===t?Pa(Pa({},c),{parent:n}):c})},R3=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},bm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,l=R3(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=l:n!==l&&(n=l,r=o),o===e.length-1&&l==="down"&&(r=o+1)}),r},Px=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?bm(i,n):null},I3=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},wm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:bm(o,n)}}var s=n.getItem(),l=t.querySelector('[role="list"]'),c=I3(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=l.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:bm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},A3=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:t2,options:e.html5,transition:h3},{id:"touch",backend:T3,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:d3}]}},qh=function(e,t){return e.some(function(n){return n.parent===t})},AE=Q.createContext({}),M3=function(e){var t=W3(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,l=r.handleOpen,c=r.handleClose;Q.useImperativeHandle(e.treeRef,function(){return{open:function(T){return l(T,e.onChangeOpen)},close:function(T){return c(T,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var d=Fu().getMonitor(),y=e.canDrop,p=e.canDrag,S=Pa(Pa({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,_,R){if(T){var L={dragSourceId:T.id,dropTargetId:_,dragSource:T,dropTarget:od(e.tree,_),monitor:d},I=e.tree;if(od(I,T.id)||(I=ao(ao([],I,!0),[T],!1)),e.sort===!1){var U=IE(I,T.id,_,R),z=U[1];L.destinationIndex=z,L.relativeIndex=R,e.onDrop(_3(I,T.id,_,R),L);return}e.onDrop(O3(I,T.id,_),L)}else{var L={dropTargetId:_,dropTarget:od(e.tree,_),monitor:d};e.sort===!1&&(L.destinationIndex=RE(e.tree,_,R),L.relativeIndex=R),e.onDrop(e.tree,L)}},canDrop:y?function(T,_){return y(e.tree,{dragSourceId:T??void 0,dropTargetId:_,dragSource:d.getItem(),dropTarget:od(e.tree,_),monitor:d})}:void 0,canDrag:p?function(T){return p(od(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return Q.createElement(AE.Provider,{value:S},e.children)},ME=Q.createContext({}),L3={isLock:!1},F3=function(e){var t=Q.useState(L3.isLock),n=t[0],r=t[1];return Q.createElement(ME.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Gd=Q.createContext({}),Rh={dropTargetId:void 0,index:void 0},N3=function(e){var t=Q.useState(Rh.dropTargetId),n=t[0],r=t[1],i=Q.useState(Rh.index),o=i[0],s=i[1],l=function(d,y){r(d),s(y)},c=function(){r(Rh.dropTargetId),s(Rh.index)};return Q.createElement(Gd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},j3=function(e){return Q.createElement(M3,Pa({},e),Q.createElement(F3,null,Q.createElement(N3,null,e.children)))},B3=function(e){var t=Q.useContext(ME);Q.useEffect(function(){if(e.current){var n=e.current,r=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.lock()},i=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.unlock()},o=function(y){return r(y)},s=function(y){return i(y)},l=function(y){return r(y)},c=function(y){return i(y)},d=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",l),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c)}}},[e,t]),Q.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},qp={TREE_ITEM:Symbol()},LE=null,FE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(LE=n)}},_x=function(e){return FE(e)},Rx=function(e){return FE(e)},$3=function(e,t){var n=Il();Q.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",_x),l==null||l.addEventListener("touchstart",Rx,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",_x),l==null||l.removeEventListener("touchstart",Rx)}},[t]);var r=GV({type:qp.TREE_ITEM,item:function(l){var c=Pa({ref:t},e);return n.onDragStart&&n.onDragStart(c,l),c},end:function(l,c){var d=l;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var l=n.canDrag;return LE!==t.current?!1:l?l(e.id):!0},collect:function(l){return{isDragging:l.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},V3=function(e,t,n){var r=Q.useRef(0),i=Q.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},H3=function(e){var t=Il(),n=Q.useContext(Gd),r=EE({accept:ao([qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var y=t.rootId,p=t.onDrop,S=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&S!==void 0&&T!==void 0&&p(Oy(c)?c:null,y,T),n.hidePlaceholder()},canDrop:function(c,d){var y=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Dl(c,y,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var y=t.rootId,p=n.dropTargetId,S=n.index,T=n.showPlaceholder,_=n.hidePlaceholder,R=wm(null,e.current,d,t);if(R===null||!Dl(c,y,t)){_();return}(R.id!==p||R.index!==S)&&T(R.id,R.index)}},collect:function(c){var d=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:d}}}),i=r[0],o=i.isOver,s=i.dragSource,l=r[1];return[o,s,l]},U3=function(e,t){var n=Il(),r=Q.useContext(Gd),i=EE({accept:ao([qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,y){var p=r.dropTargetId,S=r.index;y.isOver({shallow:!0})&&p!==void 0&&S!==void 0&&n.onDrop(Oy(d)?d:null,p,S),r.hidePlaceholder()},canDrop:function(d,y){if(y.isOver({shallow:!0})){var p=wm(e,t.current,y,n);return p===null?!1:Dl(d,p.id,n)}return!1},hover:function(d,y){if(y.isOver({shallow:!0})){var p=r.dropTargetId,S=r.index,T=r.showPlaceholder,_=r.hidePlaceholder,R=wm(e,t.current,y,n);if(R===null||!Dl(d,R.id,n)){_();return}(R.id!==p||R.index!==S)&&T(R.id,R.index)}},collect:function(d){var y=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:y}}}),o=i[0],s=o.isOver,l=o.dragSource,c=i[1];return[s,l,c]},W3=function(e,t){var n=Q.useMemo(function(){return t===!0?e.filter(function(p){return qh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=Q.useState(n),i=r[0],o=r[1];Q.useEffect(function(){return o(n)},[t]);var s=function(p,S){var T=i.includes(p)?i.filter(function(_){return _!==p}):ao(ao([],i,!0),[p],!1);o(T),S&&S(T)},l=function(p){o([]),p&&p([])},c=function(p){var S=e.filter(function(T){return qh(e,T.id)}).map(function(T){return T.id});o(S),p&&p(S)},d=function(p,S){var T=[];if(Array.isArray(p)){var _=e.filter(function(R){return p.includes(R.id)&&qh(e,R.id)});T=ao(ao([],i,!0),_.map(function(R){return R.id}),!0).filter(function(R,L,I){return I.indexOf(R)===L})}else T=i.includes(p)?i:ao(ao([],i,!0),[p],!1);o(T),S&&S(T)},y=function(p,S){var T=i.filter(function(_){return Array.isArray(p)?!p.includes(_):_!==p});o(T),S&&S(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:y}]},z3=function(){return qV(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===qp.TREE_ITEM}})},Il=function(){var e=Q.useContext(AE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},Y3=function(e,t){var n=Il(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},G3=function(e,t,n){t.current?n(t):n(e),Q.useEffect(function(){t.current?n(t):n(e)},[t.current])},q3=function(e){var t=Il(),n=Q.useContext(Gd),r=Q.useRef(null),i=Q.useRef(null),o=t.tree.find(function(ye){return ye.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),y=$3(o,r),p=y[0],S=y[1],T=y[2],_=U3(o,r),R=_[0],L=_[1],I=_[2];G3(r,i,S),Dl(L,e.id,t)&&I(r),Q.useEffect(function(){t.dragPreviewRender?T(e2(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),B3(r);var U=function(){return t.onToggle(o.id)},z=t.listItemComponent,re=(l==null?void 0:l.listItem)||"";R&&(l!=null&&l.dropTarget)&&(re="".concat(re," ").concat(l.dropTarget)),p&&(l!=null&&l.draggingSource)&&(re="".concat(re," ").concat(l.draggingSource));var Z=t.canDrag?t.canDrag(e.id):!0,de=n.dropTargetId===e.id,x={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:de,draggable:Z,hasChild:qh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return Q.createElement(z,{ref:r,className:re,role:"listitem"},t.render(o,x),c&&x.hasChild&&Q.createElement(C3,{isVisible:d},Q.createElement(xm,{parentId:e.id,depth:e.depth+1})),!c&&x.hasChild&&d&&Q.createElement(xm,{parentId:e.id,depth:e.depth+1}))},Ix=function(e){var t=Il(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=Q.useContext(Gd),s=Fu(),l=s.getMonitor(),c=l.getItem();if(!n||!c)return null;var d=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return d?Q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},xm=function(e){var t=Il(),n=Q.useRef(null),r=t.tree.filter(function(R){return R.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:k3;if(t.insertDroppableFirst){var s=r.filter(function(R){return R.droppable}),l=r.filter(function(R){return!R.droppable});t.sort===!1?i=ao(ao([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=ao(ao([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=H3(n),d=c[0],y=c[1],p=c[2];e.parentId===t.rootId&&Dl(y,t.rootId,t)&&p(n);var S=Y3(e.parentId,d),T=t.rootProps||{},_=t.listComponent;return Q.createElement(_,Pa({ref:n,role:"list"},T,{className:S}),i.map(function(R,L){return Q.createElement(Q.Fragment,{key:R.id},Q.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),Q.createElement(q3,{id:R.id,depth:e.depth}))}),Q.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},X3={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},K3=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},Z3=function(){var e=Il(),t=z3(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:Q.createElement("div",{style:X3},Q.createElement("div",{style:K3(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function J3(e,t){return Q.createElement(j3,Pa({},e,{treeRef:t}),e.dragPreviewRender&&Q.createElement(Z3,null),Q.createElement(xm,{parentId:e.rootId,depth:0}))}var Q3=Q.forwardRef(J3);const NE=Q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xp=Q.createContext({}),Dy=Q.createContext(null),Kp=typeof document<"u",eH=Kp?Q.useLayoutEffect:Q.useEffect,jE=Q.createContext({strict:!1}),Py=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),tH="framerAppearId",BE="data-"+Py(tH);function nH(e,t,n,r){const{visualElement:i}=Q.useContext(Xp),o=Q.useContext(jE),s=Q.useContext(Dy),l=Q.useContext(NE).reducedMotion,c=Q.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=c.current;Q.useInsertionEffect(()=>{d&&d.update(n,s)});const y=Q.useRef(!!(n[BE]&&!window.HandoffComplete));return eH(()=>{d&&(d.render(),y.current&&d.animationState&&d.animationState.animateChanges())}),Q.useEffect(()=>{d&&(d.updateFeatures(),!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rH(e,t,n){return Q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tf(n)&&(n.current=r))},[t])}function Fd(e){return typeof e=="string"||Array.isArray(e)}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const _y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ry=["initial",..._y];function Jp(e){return Zp(e.animate)||Ry.some(t=>Fd(e[t]))}function $E(e){return!!(Jp(e)||e.variants)}function iH(e,t){if(Jp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function oH(e){const{initial:t,animate:n}=iH(e,Q.useContext(Xp));return Q.useMemo(()=>({initial:t,animate:n}),[Ax(t),Ax(n)])}function Ax(e){return Array.isArray(e)?e.join(" "):e}const Mx={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"]},Nd={};for(const e in Mx)Nd[e]={isEnabled:t=>Mx[e].some(n=>!!t[n])};function aH(e){for(const t in e)Nd[t]={...Nd[t],...e[t]}}const VE=Q.createContext({}),HE=Q.createContext({}),sH=Symbol.for("motionComponentSymbol");function uH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&aH(e);function o(l,c){let d;const y={...Q.useContext(NE),...l,layoutId:lH(l)},{isStatic:p}=y,S=oH(l),T=r(l,p);if(!p&&Kp){S.visualElement=nH(i,T,y,t);const _=Q.useContext(HE),R=Q.useContext(jE).strict;S.visualElement&&(d=S.visualElement.loadFeatures(y,R,e,_))}return Sn.createElement(Xp.Provider,{value:S},d&&S.visualElement?Sn.createElement(d,{visualElement:S.visualElement,...y}):null,n(i,l,rH(T,S.visualElement,c),T,p,S.visualElement))}const s=Q.forwardRef(o);return s[sH]=i,s}function lH({layoutId:e}){const t=Q.useContext(VE).id;return t&&e!==void 0?t+"-"+e:e}function cH(e){function t(r,i={}){return uH(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const fH=["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 Iy(e){return typeof e!="string"||e.includes("-")?!1:!!(fH.indexOf(e)>-1||/[A-Z]/.test(e))}const yp={};function dH(e){Object.assign(yp,e)}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vc=new Set(qd);function UE(e,{layout:t,layoutId:n}){return Vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yp[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),hH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pH=qd.length;function gH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<pH;s++){const l=qd[s];if(e[l]!==void 0){const c=hH[l]||l;o+=`${c}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const WE=e=>t=>typeof t=="string"&&t.startsWith(e),zE=WE("--"),Sm=WE("var(--"),vH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,mH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pl=(e,t,n)=>Math.min(Math.max(n,e),t),Hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wd={...Hc,transform:e=>Pl(0,1,e)},Ih={...Hc,default:1},xd=e=>Math.round(e*1e5)/1e5,Qp=/(-)?([\d]*\.?[\d])+/g,YE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,yH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xd(e){return typeof e=="string"}const Kd=e=>({test:t=>Xd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vl=Kd("deg"),js=Kd("%"),Bt=Kd("px"),bH=Kd("vh"),wH=Kd("vw"),Lx={...js,parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)},Fx={...Hc,transform:Math.round},GE={borderWidth:Bt,borderTopWidth:Bt,borderRightWidth:Bt,borderBottomWidth:Bt,borderLeftWidth:Bt,borderRadius:Bt,radius:Bt,borderTopLeftRadius:Bt,borderTopRightRadius:Bt,borderBottomRightRadius:Bt,borderBottomLeftRadius:Bt,width:Bt,maxWidth:Bt,height:Bt,maxHeight:Bt,size:Bt,top:Bt,right:Bt,bottom:Bt,left:Bt,padding:Bt,paddingTop:Bt,paddingRight:Bt,paddingBottom:Bt,paddingLeft:Bt,margin:Bt,marginTop:Bt,marginRight:Bt,marginBottom:Bt,marginLeft:Bt,rotate:vl,rotateX:vl,rotateY:vl,rotateZ:vl,scale:Ih,scaleX:Ih,scaleY:Ih,scaleZ:Ih,skew:vl,skewX:vl,skewY:vl,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:wd,originX:Lx,originY:Lx,originZ:Bt,zIndex:Fx,fillOpacity:wd,strokeOpacity:wd,numOctaves:Fx};function Ay(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let c=!1,d=!1,y=!0;for(const p in t){const S=t[p];if(zE(p)){o[p]=S;continue}const T=GE[p],_=mH(S,T);if(Vc.has(p)){if(c=!0,s[p]=_,!y)continue;S!==(T.default||0)&&(y=!1)}else p.startsWith("origin")?(d=!0,l[p]=_):i[p]=_}if(t.transform||(c||r?i.transform=gH(e.transform,n,y,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:S="50%",originZ:T=0}=l;i.transformOrigin=`${p} ${S} ${T}`}}const My=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qE(e,t,n){for(const r in t)!Do(t[r])&&!UE(r,n)&&(e[r]=t[r])}function xH({transformTemplate:e},t,n){return Q.useMemo(()=>{const r=My();return Ay(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function SH(e,t,n){const r=e.style||{},i={};return qE(i,r,e),Object.assign(i,xH(e,t,n)),e.transformValues?e.transformValues(i):i}function TH(e,t,n){const r={},i=SH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const CH=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 bp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CH.has(e)}let XE=e=>!bp(e);function EH(e){e&&(XE=t=>t.startsWith("on")?!bp(t):e(t))}try{EH(require("@emotion/is-prop-valid").default)}catch{}function kH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(XE(i)||n===!0&&bp(i)||!t&&!bp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Nx(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function OH(e,t,n){const r=Nx(t,e.x,e.width),i=Nx(n,e.y,e.height);return`${r} ${i}`}const DH={offset:"stroke-dashoffset",array:"stroke-dasharray"},PH={offset:"strokeDashoffset",array:"strokeDasharray"};function _H(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?DH:PH;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),l=Bt.transform(n);e[o.array]=`${s} ${l}`}function Ly(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},y,p,S){if(Ay(e,d,y,S),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:_,dimensions:R}=e;T.transform&&(R&&(_.transform=T.transform),delete T.transform),R&&(i!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=OH(R,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(T.x=t),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),s!==void 0&&_H(T,s,l,c,!1)}const KE=()=>({...My(),attrs:{}}),Fy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function RH(e,t,n,r){const i=Q.useMemo(()=>{const o=KE();return Ly(o,t,{enableHardwareAcceleration:!1},Fy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};qE(o,e.style,e),i.style={...o,...i.style}}return i}function IH(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Iy(n)?RH:TH)(r,o,s,n),y={...kH(r,typeof n=="string",e),...c,ref:i},{children:p}=r,S=Q.useMemo(()=>Do(p)?p.get():p,[p]);return Q.createElement(n,{...y,children:S})}}function ZE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const JE=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 QE(e,t,n,r){ZE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(JE.has(i)?i:Py(i),t.attrs[i])}function Ny(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||UE(i,e))&&(r[i]=n[i]);return r}function ek(e,t){const n=Ny(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function AH(e){const t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}const wp=e=>Array.isArray(e),MH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LH=e=>wp(e)?e[e.length-1]||0:e;function Xh(e){const t=Do(e)?e.get():e;return MH(t)?t.toValue():t}function FH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:NH(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const tk=e=>(t,n)=>{const r=Q.useContext(Xp),i=Q.useContext(Dy),o=()=>FH(e,t,r,i);return n?o():AH(o)};function NH(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Xh(o[S]);let{initial:s,animate:l}=e;const c=Jp(e),d=$E(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const p=y?l:s;return p&&typeof p!="boolean"&&!Zp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const _=jy(e,T);if(!_)return;const{transitionEnd:R,transition:L,...I}=_;for(const U in I){let z=I[U];if(Array.isArray(z)){const re=y?z.length-1:0;z=z[re]}z!==null&&(i[U]=z)}for(const U in R)i[U]=R[U]}),i}const cr=e=>e;class jx{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function jH(e){let t=new jx,n=new jx,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const p=y&&i,S=p?t:n;return d&&s.add(c),S.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const y=t.order[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const Ah=["prepare","read","update","preRender","render","postRender"],BH=40;function $H(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ah.reduce((p,S)=>(p[S]=jH(()=>n=!0),p),{}),s=p=>o[p].process(i),l=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,BH),1),i.timestamp=p,i.isProcessing=!0,Ah.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ah.reduce((p,S)=>{const T=o[S];return p[S]=(_,R=!1,L=!1)=>(n||c(),T.schedule(_,R,L)),p},{}),cancel:p=>Ah.forEach(S=>o[S].cancel(p)),state:i,steps:o}}const{schedule:Hn,cancel:Lu,state:Li,steps:lv}=$H(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0),VH={useVisualState:tk({scrapeMotionValuesFromProps:ek,createRenderState:KE,onMount:(e,t,{renderState:n,latestValues:r})=>{Hn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Hn.render(()=>{Ly(n,r,{enableHardwareAcceleration:!1},Fy(t.tagName),e.transformTemplate),QE(t,n)})}})},HH={useVisualState:tk({scrapeMotionValuesFromProps:Ny,createRenderState:My})};function UH(e,{forwardMotionProps:t=!1},n,r){return{...Iy(e)?VH:HH,preloadedFeatures:n,useRender:IH(t),createVisualElement:r,Component:e}}function ku(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function eg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const WH=e=>t=>nk(t)&&e(t,eg(t));function Pu(e,t,n,r){return ku(e,t,WH(n),r)}const zH=(e,t)=>n=>t(e(n)),Tl=(...e)=>e.reduce(zH);function rk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bx=rk("dragHorizontal"),$x=rk("dragVertical");function ik(e){let t=!1;if(e==="y")t=$x();else if(e==="x")t=Bx();else{const n=Bx(),r=$x();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ok(){const e=ik(!0);return e?(e(),!1):!0}class Al{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ok())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Hn.update(()=>l[r](o,s))};return Pu(e.current,n,i,{passive:!e.getProps()[r]})}class YH extends Al{mount(){this.unmount=Tl(Vx(this.node,!0),Vx(this.node,!1))}unmount(){}}class GH extends Al{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Tl(ku(this.node.current,"focus",()=>this.onFocus()),ku(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ak=(e,t)=>t?e===t?!0:ak(e,t.parentElement):!1;function cv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eg(n))}class qH extends Al{constructor(){super(...arguments),this.removeStartListeners=cr,this.removeEndListeners=cr,this.removeAccessibleListeners=cr,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Pu(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:y,globalTapTarget:p}=this.node.getProps();Hn.update(()=>{!p&&!ak(this.node.current,l.target)?y&&y(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Pu(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Tl(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||cv("up",(c,d)=>{const{onTap:y}=this.node.getProps();y&&Hn.update(()=>y(c,d))})};this.removeEndListeners(),this.removeEndListeners=ku(this.node.current,"keyup",s),cv("down",(l,c)=>{this.startPress(l,c)})},n=ku(this.node.current,"keydown",t),r=()=>{this.isPressing&&cv("cancel",(o,s)=>this.cancelPress(o,s))},i=ku(this.node.current,"blur",r);this.removeAccessibleListeners=Tl(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Hn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ok()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Hn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Pu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ku(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Tl(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tm=new WeakMap,fv=new WeakMap,XH=e=>{const t=Tm.get(e.target);t&&t(e)},KH=e=>{e.forEach(XH)};function ZH({root:e,...t}){const n=e||document;fv.has(n)||fv.set(n,{});const r=fv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(KH,{root:e,...t})),r[i]}function JH(e,t,n){const r=ZH(t);return Tm.set(e,n),r.observe(e),()=>{Tm.delete(e),r.unobserve(e)}}const QH={some:0,all:1};class eU extends Al{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:QH[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:y,onViewportLeave:p}=this.node.getProps(),S=d?y:p;S&&S(c)};return JH(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(tU(t,n))&&this.startObserver()}unmount(){}}function tU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nU={inView:{Feature:eU},tap:{Feature:qH},focus:{Feature:GH},hover:{Feature:YH}};function sk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function rU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function iU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tg(e,t,n){const r=e.getProps();return jy(r,t,n!==void 0?n:r.custom,rU(e),iU(e))}let Zd=cr,is=cr;process.env.NODE_ENV!=="production"&&(Zd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},is=(e,t)=>{if(!e)throw new Error(t)});const Cl=e=>e*1e3,_u=e=>e/1e3,oU={current:!1},uk=e=>Array.isArray(e)&&typeof e[0]=="number";function lk(e){return!!(!e||typeof e=="string"&&ck[e]||uk(e)||Array.isArray(e)&&e.every(lk))}const ud=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ck={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function fk(e){if(e)return uk(e)?ud(e):Array.isArray(e)?e.map(fk):ck[e]}function aU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:c}={}){const d={[t]:n};c&&(d.offset=c);const y=fk(l);return Array.isArray(y)&&(d.easing=y),e.animate(d,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function sU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uU=1e-7,lU=12;function cU(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=dk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>uU&&++l<lU);return s}function Jd(e,t,n,r){if(e===t&&n===r)return cr;const i=o=>cU(o,0,1,e,n);return o=>o===0||o===1?o:dk(i(o),t,r)}const fU=Jd(.42,0,1,1),dU=Jd(0,0,.58,1),hk=Jd(.42,0,.58,1),hU=e=>Array.isArray(e)&&typeof e[0]!="number",pk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gk=e=>t=>1-e(1-t),By=e=>1-Math.sin(Math.acos(e)),vk=gk(By),pU=pk(By),mk=Jd(.33,1.53,.69,.99),$y=gk(mk),gU=pk($y),vU=e=>(e*=2)<1?.5*$y(e):.5*(2-Math.pow(2,-10*(e-1))),Hx={linear:cr,easeIn:fU,easeInOut:hk,easeOut:dU,circIn:By,circInOut:pU,circOut:vk,backIn:$y,backInOut:gU,backOut:mk,anticipate:vU},Ux=e=>{if(Array.isArray(e)){is(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jd(t,n,r,i)}else if(typeof e=="string")return is(Hx[e]!==void 0,`Invalid easing type '${e}'`),Hx[e];return e},Vy=(e,t)=>n=>!!(Xd(n)&&yH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),yk=(e,t,n)=>r=>{if(!Xd(r))return r;const[i,o,s,l]=r.match(Qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},mU=e=>Pl(0,255,e),dv={...Hc,transform:e=>Math.round(mU(e))},Ec={test:Vy("rgb","red"),parse:yk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dv.transform(e)+", "+dv.transform(t)+", "+dv.transform(n)+", "+xd(wd.transform(r))+")"};function yU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Cm={test:Vy("#"),parse:yU,transform:Ec.transform},Cf={test:Vy("hsl","hue"),parse:yk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(xd(t))+", "+js.transform(xd(n))+", "+xd(wd.transform(r))+")"},oo={test:e=>Ec.test(e)||Cm.test(e)||Cf.test(e),parse:e=>Ec.test(e)?Ec.parse(e):Cf.test(e)?Cf.parse(e):Cm.parse(e),transform:e=>Xd(e)?e:e.hasOwnProperty("red")?Ec.transform(e):Cf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function hv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=hv(c,l,e+1/3),o=hv(c,l,e),s=hv(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const pv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},wU=[Cm,Ec,Cf],xU=e=>wU.find(t=>t.test(e));function Wx(e){const t=xU(e);is(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=bU(n)),n}const bk=(e,t)=>{const n=Wx(e),r=Wx(t),i={...n};return o=>(i.red=pv(n.red,r.red,o),i.green=pv(n.green,r.green,o),i.blue=pv(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),Ec.transform(i))};function SU(e){var t,n;return isNaN(e)&&Xd(e)&&(((t=e.match(Qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(YE))===null||n===void 0?void 0:n.length)||0)>0}const wk={regex:vH,countKey:"Vars",token:"${v}",parse:cr},xk={regex:YE,countKey:"Colors",token:"${c}",parse:oo.parse},Sk={regex:Qp,countKey:"Numbers",token:"${n}",parse:Hc.parse};function gv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function xp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&gv(n,wk),gv(n,xk),gv(n,Sk),n}function Tk(e){return xp(e).values}function Ck(e){const{values:t,numColors:n,numVars:r,tokenised:i}=xp(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(wk.token,s[c]):c<r+n?l=l.replace(xk.token,oo.transform(s[c])):l=l.replace(Sk.token,xd(s[c]));return l}}const TU=e=>typeof e=="number"?0:e;function CU(e){const t=Tk(e);return Ck(e)(t.map(TU))}const _l={test:SU,parse:Tk,createTransformer:Ck,getAnimatableNone:CU},Ek=(e,t)=>n=>`${n>0?t:e}`;function kk(e,t){return typeof e=="number"?n=>nr(e,t,n):oo.test(e)?bk(e,t):e.startsWith("var(")?Ek(e,t):Dk(e,t)}const Ok=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>kk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},EU=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=kk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Dk=(e,t)=>{const n=_l.createTransformer(t),r=xp(e),i=xp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Tl(Ok(r.values,i.values),n):(Zd(!0,`Complex values '${e}' and '${t}' 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.`),Ek(e,t))},jd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zx=(e,t)=>n=>nr(e,t,n);function kU(e){return typeof e=="number"?zx:typeof e=="string"?oo.test(e)?bk:Dk:Array.isArray(e)?Ok:typeof e=="object"?EU:zx}function OU(e,t,n){const r=[],i=n||kU(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||cr:t;l=Tl(c,l)}r.push(l)}return r}function Pk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(is(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=OU(t,r,i),l=s.length,c=d=>{let y=0;if(l>1)for(;y<e.length-2&&!(d<e[y+1]);y++);const p=jd(e[y],e[y+1],d);return s[y](p)};return n?d=>c(Pl(e[0],e[o-1],d)):c}function DU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=jd(0,t,r);e.push(nr(n,1,i))}}function PU(e){const t=[0];return DU(t,e.length-1),t}function _U(e,t){return e.map(n=>n*t)}function RU(e,t){return e.map(()=>t||hk).splice(0,e.length-1)}function Sp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=hU(r)?r.map(Ux):Ux(r),o={done:!1,value:t[0]},s=_U(n&&n.length===t.length?n:PU(t),e),l=Pk(s,t,{ease:Array.isArray(i)?i:RU(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function _k(e,t){return t?e*(1e3/t):0}const IU=5;function Rk(e,t,n){const r=Math.max(t-IU,0);return _k(n-e(r),t-r)}const vv=.001,AU=.01,Yx=10,MU=.05,LU=1;function FU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Zd(e<=Cl(Yx),"Spring duration must be 10 seconds or less");let s=1-t;s=Pl(MU,LU,s),e=Pl(AU,Yx,_u(e)),s<1?(i=d=>{const y=d*s,p=y*e,S=y-n,T=Em(d,s),_=Math.exp(-p);return vv-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=Em(Math.pow(d,2),s);return(-i(d)+vv>0?-1:1)*((S-T)*_)/R}):(i=d=>{const y=Math.exp(-d*e),p=(d-n)*e+1;return-vv+y*p},o=d=>{const y=Math.exp(-d*e),p=(n-d)*(e*e);return y*p});const l=5/e,c=jU(i,o,l);if(e=Cl(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const NU=12;function jU(e,t,n){let r=n;for(let i=1;i<NU;i++)r=r-e(r)/t(r);return r}function Em(e,t){return e*Math.sqrt(1-t*t)}const BU=["duration","bounce"],$U=["stiffness","damping","mass"];function Gx(e,t){return t.some(n=>e[n]!==void 0)}function VU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gx(e,$U)&&Gx(e,BU)){const n=FU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ik({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:y,velocity:p,isResolvedFromDuration:S}=VU({...r,velocity:-_u(r.velocity||0)}),T=p||0,_=c/(2*Math.sqrt(l*d)),R=o-i,L=_u(Math.sqrt(l/d)),I=Math.abs(R)<5;n||(n=I?.01:2),t||(t=I?.005:.5);let U;if(_<1){const z=Em(L,_);U=re=>{const Z=Math.exp(-_*L*re);return o-Z*((T+_*L*R)/z*Math.sin(z*re)+R*Math.cos(z*re))}}else if(_===1)U=z=>o-Math.exp(-L*z)*(R+(T+L*R)*z);else{const z=L*Math.sqrt(_*_-1);U=re=>{const Z=Math.exp(-_*L*re),de=Math.min(z*re,300);return o-Z*((T+_*L*R)*Math.sinh(de)+z*R*Math.cosh(de))/z}}return{calculatedDuration:S&&y||null,next:z=>{const re=U(z);if(S)s.done=z>=y;else{let Z=T;z!==0&&(_<1?Z=Rk(U,z,re):Z=0);const de=Math.abs(Z)<=n,x=Math.abs(o-re)<=t;s.done=de&&x}return s.value=s.done?o:re,s}}}function qx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:y}){const p=e[0],S={done:!1,value:p},T=ye=>l!==void 0&&ye<l||c!==void 0&&ye>c,_=ye=>l===void 0?c:c===void 0||Math.abs(l-ye)<Math.abs(c-ye)?l:c;let R=n*t;const L=p+R,I=s===void 0?L:s(L);I!==L&&(R=I-p);const U=ye=>-R*Math.exp(-ye/r),z=ye=>I+U(ye),re=ye=>{const ae=U(ye),Me=z(ye);S.done=Math.abs(ae)<=d,S.value=S.done?I:Me};let Z,de;const x=ye=>{T(S.value)&&(Z=ye,de=Ik({keyframes:[S.value,_(S.value)],velocity:Rk(z,ye,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:y}))};return x(0),{calculatedDuration:null,next:ye=>{let ae=!1;return!de&&Z===void 0&&(ae=!0,re(ye),x(ye)),Z!==void 0&&ye>Z?de.next(ye-Z):(!ae&&re(ye),S)}}}const HU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Hn.update(t,!0),stop:()=>Lu(t),now:()=>Li.isProcessing?Li.timestamp:performance.now()}},Xx=2e4;function Kx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xx;)t+=n,r=e.next(t);return t>=Xx?1/0:t}const UU={decay:qx,inertia:qx,tween:Sp,keyframes:Sp,spring:Ik};function Tp({autoplay:e=!0,delay:t=0,driver:n=HU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:y,onUpdate:p,...S}){let T=1,_=!1,R,L;const I=()=>{L=new Promise(xe=>{R=xe})};I();let U;const z=UU[i]||Sp;let re;z!==Sp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&is(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=Pk([0,100],r,{clamp:!1}),r=[0,100]);const Z=z({...S,keyframes:r});let de;l==="mirror"&&(de=z({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ye=null,ae=null,Me=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=Kx(Z));const{calculatedDuration:Ze}=Z;let Ve=1/0,Ye=1/0;Ze!==null&&(Ve=Ze+s,Ye=Ve*(o+1)-s);let ot=0;const me=xe=>{if(ae===null)return;T>0&&(ae=Math.min(ae,xe)),T<0&&(ae=Math.min(xe-Ye/T,ae)),ye!==null?ot=ye:ot=Math.round(xe-ae)*T;const We=ot-t*(T>=0?1:-1),Ue=T>=0?We<0:We>Ye;ot=Math.max(We,0),x==="finished"&&ye===null&&(ot=Ye);let Re=ot,Le=Z;if(o){const wt=Math.min(ot,Ye)/Ve;let vt=Math.floor(wt),Et=wt%1;!Et&&wt>=1&&(Et=1),Et===1&&vt--,vt=Math.min(vt,o+1),!!(vt%2)&&(l==="reverse"?(Et=1-Et,s&&(Et-=s/Ve)):l==="mirror"&&(Le=de)),Re=Pl(0,1,Et)*Ve}const Xe=Ue?{done:!1,value:r[0]}:Le.next(Re);re&&(Xe.value=re(Xe.value));let{done:lt}=Xe;!Ue&&Ze!==null&&(lt=T>=0?ot>=Ye:ot<=0);const mt=ye===null&&(x==="finished"||x==="running"&&lt);return p&&p(Xe.value),mt&&Je(),Xe},Oe=()=>{U&&U.stop(),U=void 0},He=()=>{x="idle",Oe(),R(),I(),ae=Me=null},Je=()=>{x="finished",y&&y(),Oe(),R()},st=()=>{if(_)return;U||(U=n(me));const xe=U.now();c&&c(),ye!==null?ae=xe-ye:(!ae||x==="finished")&&(ae=xe),x==="finished"&&I(),Me=ae,ye=null,x="running",U.start()};e&&st();const De={then(xe,We){return L.then(xe,We)},get time(){return _u(ot)},set time(xe){xe=Cl(xe),ot=xe,ye!==null||!U||T===0?ye=xe:ae=U.now()-xe/T},get duration(){const xe=Z.calculatedDuration===null?Kx(Z):Z.calculatedDuration;return _u(xe)},get speed(){return T},set speed(xe){xe===T||!U||(T=xe,De.time=_u(ot))},get state(){return x},play:st,pause:()=>{x="paused",ye=ot},stop:()=>{_=!0,x!=="idle"&&(x="idle",d&&d(),He())},cancel:()=>{Me!==null&&me(Me),He()},complete:()=>{x="finished"},sample:xe=>(ae=0,me(xe))};return De}function WU(e){let t;return()=>(t===void 0&&(t=e()),t)}const zU=WU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),YU=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mh=10,GU=2e4,qU=(e,t)=>t.type==="spring"||e==="backgroundColor"||!lk(t.ease);function XU(e,t,{onUpdate:n,onComplete:r,...i}){if(!(zU()&&YU.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,c,d=!1;const y=()=>{c=new Promise(z=>{l=z})};y();let{keyframes:p,duration:S=300,ease:T,times:_}=i;if(qU(t,i)){const z=Tp({...i,repeat:0,delay:0});let re={done:!1,value:p[0]};const Z=[];let de=0;for(;!re.done&&de<GU;)re=z.sample(de),Z.push(re.value),de+=Mh;_=void 0,p=Z,S=de-Mh,T="linear"}const R=aU(e.owner.current,t,p,{...i,duration:S,ease:T,times:_}),L=()=>{d=!1,R.cancel()},I=()=>{d=!0,Hn.update(L),l(),y()};return R.onfinish=()=>{d||(e.set(sU(p,i)),r&&r(),I())},{then(z,re){return c.then(z,re)},attachTimeline(z){return R.timeline=z,R.onfinish=null,cr},get time(){return _u(R.currentTime||0)},set time(z){R.currentTime=Cl(z)},get speed(){return R.playbackRate},set speed(z){R.playbackRate=z},get duration(){return _u(S)},play:()=>{s||(R.play(),Lu(L))},pause:()=>R.pause(),stop:()=>{if(s=!0,R.playState==="idle")return;const{currentTime:z}=R;if(z){const re=Tp({...i,autoplay:!1});e.setWithVelocity(re.sample(z-Mh).value,re.sample(z).value,Mh)}I()},complete:()=>{d||R.finish()},cancel:I}}function KU({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:cr,pause:cr,stop:cr,then:o=>(o(),Promise.resolve()),cancel:cr,complete:cr});return t?Tp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const ZU={type:"spring",stiffness:500,damping:25,restSpeed:10},JU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),QU={type:"keyframes",duration:.8},eW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tW=(e,{keyframes:t})=>t.length>2?QU:Vc.has(e)?e.startsWith("scale")?JU(t[1]):ZU:eW,km=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_l.test(t)||t==="0")&&!t.startsWith("url(")),nW=new Set(["brightness","contrast","saturate","opacity"]);function rW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qp)||[];if(!r)return e;const i=n.replace(r,"");let o=nW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const iW=/([a-z-]*)\(.*?\)/g,Om={..._l,getAnimatableNone:e=>{const t=e.match(iW);return t?t.map(rW).join(" "):e}},oW={...GE,color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:Om,WebkitFilter:Om},Hy=e=>oW[e];function Ak(e,t){let n=Hy(e);return n!==Om&&(n=_l),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Mk=e=>/^0[^.\s]+$/.test(e);function aW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Mk(e)}function sW(e,t,n,r){const i=km(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),aW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(l=o[d]);if(i&&c.length&&l)for(let d=0;d<c.length;d++){const y=c[d];o[y]=Ak(t,l)}return o}function uW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:c,elapsed:d,...y}){return!!Object.keys(y).length}function Uy(e,t){return e[t]||e.default||e}const lW={skipAnimations:!1},Wy=(e,t,n,r={})=>i=>{const o=Uy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Cl(s);const c=sW(t,e,n,o),d=c[0],y=c[c.length-1],p=km(e,d),S=km(e,y);Zd(p===S,`You are trying to animate ${e} from "${d}" to "${y}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${y} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:_=>{t.set(_),o.onUpdate&&o.onUpdate(_)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(uW(o)||(T={...T,...tW(e,T)}),T.duration&&(T.duration=Cl(T.duration)),T.repeatDelay&&(T.repeatDelay=Cl(T.repeatDelay)),!p||!S||oU.current||o.type===!1||lW.skipAnimations)return KU(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=XU(t,e,T);if(_)return _}return Tp(T)};function Cp(e){return!!(Do(e)&&e.add)}const Lk=e=>/^\-?\d*\.?\d+$/.test(e);function zy(e,t){e.indexOf(t)===-1&&e.push(t)}function Yy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gy{constructor(){this.subscriptions=[]}add(t){return zy(this.subscriptions,t),()=>Yy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zx=new Set;function qy(e,t,n){e||Zx.has(t)||(console.warn(t),n&&console.warn(n),Zx.add(t))}const cW=e=>!isNaN(parseFloat(e));class fW{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Li;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Hn.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=()=>Hn.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=t,this.canTrackVelocity=cW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&qy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Hn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_k(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(e,t){return new fW(e,t)}const Fk=e=>t=>t.test(e),dW={test:e=>e==="auto",parse:e=>e},Nk=[Hc,Bt,js,vl,wH,bH,dW],ad=e=>Nk.find(Fk(e)),hW=[...Nk,oo,_l],pW=e=>hW.find(Fk(e));function gW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function vW(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=LH(o[s]);gW(e,s,l)}}function mW(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const c=o[l],d=t[c];let y=null;Array.isArray(d)&&(y=d[0]),y===null&&(y=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),y!=null&&(typeof y=="string"&&(Lk(y)||Mk(y))?y=parseFloat(y):!pW(y)&&_l.test(d)&&(y=Ak(c,d)),e.addValue(c,Af(y,{owner:e})),n[c]===void 0&&(n[c]=y),y!==null&&e.setBaseTarget(c,y))}}function yW(e,t){return t?(t[e]||t.default||t).from:void 0}function bW(e,t,n){const r={};for(const i in e){const o=yW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function wW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function jk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],y=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const S=e.getValue(p),T=l[p];if(!S||T===void 0||y&&wW(y,p))continue;const _={delay:n,elapsed:0,...Uy(o||{},p)};if(window.HandoffAppearAnimations){const I=e.getProps()[BE];if(I){const U=window.HandoffAppearAnimations(I,p,S,Hn);U!==null&&(_.elapsed=U,_.isHandoff=!0)}}let R=!_.isHandoff&&!xW(S,T);if(_.type==="spring"&&(S.getVelocity()||_.velocity)&&(R=!1),S.animation&&(R=!1),R)continue;S.start(Wy(p,S,T,e.shouldReduceMotion&&Vc.has(p)?{type:!1}:_));const L=S.animation;Cp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&vW(e,s)}),d}function Dm(e,t,n={}){const r=tg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(jk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:y,staggerDirection:p}=i;return SW(e,t,d+c,y,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function SW(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(TW).forEach((d,y)=>{d.notify("AnimationStart",t),s.push(Dm(d,t,{...o,delay:n+c(y)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function TW(e,t){return e.sortNodePosition(t)}function CW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Dm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Dm(e,t,n);else{const i=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(jk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const EW=[..._y].reverse(),kW=_y.length;function OW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CW(e,n,r)))}function DW(e){let t=OW(e);const n=_W();let r=!0;const i=(c,d)=>{const y=tg(e,d);if(y){const{transition:p,transitionEnd:S,...T}=y;c={...c,...T,...S}}return c};function o(c){t=c(e)}function s(c,d){const y=e.getProps(),p=e.getVariantContext(!0)||{},S=[],T=new Set;let _={},R=1/0;for(let I=0;I<kW;I++){const U=EW[I],z=n[U],re=y[U]!==void 0?y[U]:p[U],Z=Fd(re),de=U===d?z.isActive:null;de===!1&&(R=I);let x=re===p[U]&&re!==y[U]&&Z;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),z.protectedKeys={..._},!z.isActive&&de===null||!re&&!z.prevProp||Zp(re)||typeof re=="boolean")continue;let ae=PW(z.prevProp,re)||U===d&&z.isActive&&!x&&Z||I>R&&Z,Me=!1;const Ze=Array.isArray(re)?re:[re];let Ve=Ze.reduce(i,{});de===!1&&(Ve={});const{prevResolvedValues:Ye={}}=z,ot={...Ye,...Ve},me=Oe=>{ae=!0,T.has(Oe)&&(Me=!0,T.delete(Oe)),z.needsAnimating[Oe]=!0};for(const Oe in ot){const He=Ve[Oe],Je=Ye[Oe];if(_.hasOwnProperty(Oe))continue;let st=!1;wp(He)&&wp(Je)?st=!sk(He,Je):st=He!==Je,st?He!==void 0?me(Oe):T.add(Oe):He!==void 0&&T.has(Oe)?me(Oe):z.protectedKeys[Oe]=!0}z.prevProp=re,z.prevResolvedValues=Ve,z.isActive&&(_={..._,...Ve}),r&&e.blockInitialAnimation&&(ae=!1),ae&&(!x||Me)&&S.push(...Ze.map(Oe=>({animation:Oe,options:{type:U,...c}})))}if(T.size){const I={};T.forEach(U=>{const z=e.getBaseTarget(U);z!==void 0&&(I[U]=z)}),S.push({animation:I})}let L=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(S):Promise.resolve()}function l(c,d,y){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(T=>{var _;return(_=T.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const S=s(y,c);for(const T in n)n[T].protectedKeys={};return S}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function PW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sk(t,e):!1}function yc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _W(){return{animate:yc(!0),whileInView:yc(),whileHover:yc(),whileTap:yc(),whileDrag:yc(),whileFocus:yc(),exit:yc()}}class RW extends Al{constructor(t){super(t),t.animationState||(t.animationState=DW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let IW=0;class AW extends Al{constructor(){super(...arguments),this.id=IW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const MW={animation:{Feature:RW},exit:{Feature:AW}},Jx=(e,t)=>Math.abs(e-t);function LW(e,t){const n=Jx(e.x,t.x),r=Jx(e.y,t.y);return Math.sqrt(n**2+r**2)}class Bk{constructor(t,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 p=yv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=LW(p.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:_}=p,{timestamp:R}=Li;this.history.push({..._,timestamp:R});const{onStart:L,onMove:I}=this.handlers;S||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=mv(S,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=yv(p.type==="pointercancel"?this.lastMoveEventInfo:mv(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),_&&_(p,L)},!nk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=eg(t),l=mv(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Li;this.history=[{...c,timestamp:d}];const{onSessionStart:y}=n;y&&y(t,yv(l,this.history)),this.removeListeners=Tl(Pu(this.contextWindow,"pointermove",this.handlePointerMove),Pu(this.contextWindow,"pointerup",this.handlePointerUp),Pu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lu(this.updatePoint)}}function mv(e,t){return t?{point:t(e.point)}:e}function Qx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:Qx(e,$k(t)),offset:Qx(e,FW(t)),velocity:NW(t,.1)}}function FW(e){return e[0]}function $k(e){return e[e.length-1]}function NW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$k(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cl(t)));)n--;if(!r)return{x:0,y:0};const o=_u(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ea(e){return e.max-e.min}function Pm(e,t=0,n=.01){return Math.abs(e-t)<=n}function eS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(Pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(Pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Sd(e,t,n,r){eS(e.x,t.x,n.x,r?r.originX:void 0),eS(e.y,t.y,n.y,r?r.originY:void 0)}function tS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function jW(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}function nS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Td(e,t,n){nS(e.x,t.x,n.x),nS(e.y,t.y,n.y)}function BW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nr(n,e,r.max):Math.min(e,n)),e}function rS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function $W(e,{top:t,left:n,bottom:r,right:i}){return{x:rS(e.x,n,i),y:rS(e.y,t,r)}}function iS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function VW(e,t){return{x:iS(e.x,t.x),y:iS(e.y,t.y)}}function HW(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=jd(t.min,t.max-r,e.min):r>i&&(n=jd(e.min,e.max-i,t.min)),Pl(0,1,n)}function UW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _m=.35;function WW(e=_m){return e===!1?e=0:e===!0&&(e=_m),{x:oS(e,"left","right"),y:oS(e,"top","bottom")}}function oS(e,t,n){return{min:aS(e,t),max:aS(e,n)}}function aS(e,t){return typeof e=="number"?e:e[t]||0}const sS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:sS(),y:sS()}),uS=()=>({min:0,max:0}),Dr=()=>({x:uS(),y:uS()});function Ea(e){return[e("x"),e("y")]}function Vk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function YW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bv(e){return e===void 0||e===1}function Rm({scale:e,scaleX:t,scaleY:n}){return!bv(e)||!bv(t)||!bv(n)}function xc(e){return Rm(e)||Hk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hk(e){return lS(e.x)||lS(e.y)}function lS(e){return e&&e!=="0%"}function Ep(e,t,n){const r=e-n,i=t*r;return n+i}function cS(e,t,n,r,i){return i!==void 0&&(e=Ep(e,i,r)),Ep(e,n,r)+t}function Im(e,t=0,n=1,r,i){e.min=cS(e.min,t,n,r,i),e.max=cS(e.max,t,n,r,i)}function Uk(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function GW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Uk(e,s)),r&&xc(o.latestValues)&&kf(e,o.latestValues))}t.x=fS(t.x),t.y=fS(t.y)}function fS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function yl(e,t){e.min=e.min+t,e.max=e.max+t}function dS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Im(e,t[n],t[r],s,t.scale)}const qW=["x","scaleX","originX"],XW=["y","scaleY","originY"];function kf(e,t){dS(e.x,t,qW),dS(e.y,t,XW)}function Wk(e,t){return Vk(YW(e.getBoundingClientRect(),t))}function KW(e,t,n){const r=Wk(e,n),{scroll:i}=t;return i&&(yl(r.x,i.offset.x),yl(r.y,i.offset.y)),r}const zk=({current:e})=>e?e.ownerDocument.defaultView:null,ZW=new WeakMap;class JW{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Dr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(eg(y,"page").point)},o=(y,p)=>{const{drag:S,dragPropagation:T,onDragStart:_}=this.getProps();if(S&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ik(S),!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),Ea(L=>{let I=this.getAxisMotionValue(L).get()||0;if(js.test(I)){const{projection:U}=this.visualElement;if(U&&U.layout){const z=U.layout.layoutBox[L];z&&(I=ea(z)*(parseFloat(I)/100))}}this.originPoint[L]=I}),_&&Hn.update(()=>_(y,p),!1,!0);const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},s=(y,p)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:_,onDrag:R}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=QW(L),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",p.point,L),this.updateAxis("y",p.point,L),this.visualElement.render(),R&&R(y,p)},l=(y,p)=>this.stop(y,p),c=()=>Ea(y=>{var p;return this.getAnimationState(y)==="paused"&&((p=this.getAxisMotionValue(y).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Bk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:zk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Hn.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:i}=this.getProps();if(!r||!Lh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=BW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=$W(i.layoutBox,n):this.constraints=!1,this.elastic=WW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=UW(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;is(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=KW(r,i.root,this.visualElement.getTransformPagePoint());let s=VW(i.layout.layoutBox,o);if(n){const l=n(zW(s));this.hasMutatedConstraints=!!l,l&&(s=Vk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Ea(y=>{if(!Lh(y,n,this.currentDirection))return;let p=c&&c[y]||{};s&&(p={min:0,max:0});const S=i?200:1e6,T=i?40:1e7,_={type:"inertia",velocity:r?t[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(y,_)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wy(t,r,0,n))}stopAnimation(){Ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ea(n=>{const{drag:r}=this.getProps();if(!Lh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-nr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ea(s=>{const l=this.getAxisMotionValue(s);if(l){const c=l.get();i[s]=HW({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ea(s=>{if(!Lh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;ZW.set(this.visualElement,this);const t=this.visualElement.current,n=Pu(t,"pointerdown",c=>{const{drag:d,dragListener:y=!0}=this.getProps();d&&y&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tf(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ku(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(y=>{const p=this.getAxisMotionValue(y);p&&(this.originPoint[y]+=c[y].translate,p.set(p.get()+c[y].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=_m,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Lh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function QW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ez extends Al{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new JW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const hS=e=>(t,n)=>{e&&Hn.update(()=>e(t,n))};class tz extends Al{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new Bk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hS(t),onStart:hS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Hn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Pu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function nz(){const e=Q.useContext(Dy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=Q.useId();return Q.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=pS(e,t.target.x),r=pS(e,t.target.y);return`${n}% ${r}%`}},rz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_l.parse(e);if(i.length>5)return r;const o=_l.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const d=nr(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class iz extends Q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;dH(oz),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(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Hn.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yk(e){const[t,n]=nz(),r=Q.useContext(VE);return Q.createElement(iz,{...e,layoutGroup:r,switchLayoutGroup:Q.useContext(HE),isPresent:t,safeToRemove:n})}const oz={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:rz},Gk=["TopLeft","TopRight","BottomLeft","BottomRight"],az=Gk.length,gS=e=>typeof e=="string"?parseFloat(e):e,vS=e=>typeof e=="number"||Bt.test(e);function sz(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,uz(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,lz(r))):o&&(e.opacity=nr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<az;s++){const l=`border${Gk[s]}Radius`;let c=mS(t,l),d=mS(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||vS(c)===vS(d)?(e[l]=Math.max(nr(gS(c),gS(d),r),0),(js.test(d)||js.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function mS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const uz=qk(0,.5,vk),lz=qk(.5,.95,cr);function qk(e,t,n){return r=>r<e?0:r>t?1:n(jd(e,t,r))}function yS(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){yS(e.x,t.x),yS(e.y,t.y)}function bS(e,t,n,r,i){return e-=t,e=Ep(e,1/n,r),i!==void 0&&(e=Ep(e,1/i,r)),e}function cz(e,t=0,n=1,r=.5,i,o=e,s=e){if(js.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=nr(o.min,o.max,r);e===o&&(l-=t),e.min=bS(e.min,t,n,l,i),e.max=bS(e.max,t,n,l,i)}function wS(e,t,[n,r,i],o,s){cz(e,t[n],t[r],t[i],t.scale,o,s)}const fz=["x","scaleX","originX"],dz=["y","scaleY","originY"];function xS(e,t,n,r){wS(e.x,t,fz,n?n.x:void 0,r?r.x:void 0),wS(e.y,t,dz,n?n.y:void 0,r?r.y:void 0)}function SS(e){return e.translate===0&&e.scale===1}function Xk(e){return SS(e.x)&&SS(e.y)}function hz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Kk(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function TS(e){return ea(e.x)/ea(e.y)}class pz{constructor(){this.members=[]}add(t){zy(this.members,t),t.scheduleRender()}remove(t){if(Yy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function CS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:y}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),y&&(r+=`rotateY(${y}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const gz=(e,t)=>e.depth-t.depth;class vz{constructor(){this.children=[],this.isDirty=!1}add(t){zy(this.children,t),this.isDirty=!0}remove(t){Yy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gz),this.isDirty=!1,this.children.forEach(t)}}function mz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Lu(r),e(o-t))};return Hn.read(r,!0),()=>Lu(r)}function yz(e){window.MotionDebug&&window.MotionDebug.record(e)}function bz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function wz(e,t,n){const r=Do(e)?e:Af(e);return r.start(Wy("",r,t,n)),r.animation}const ES=["","X","Y","Z"],xz={visibility:"hidden"},kS=1e3;let Sz=0;const Sc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Zk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=Sz++,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,Sc.totalNodes=Sc.resolvedTargetDeltas=Sc.recalculatedProjection=0,this.nodes.forEach(Ez),this.nodes.forEach(_z),this.nodes.forEach(Rz),this.nodes.forEach(kz),yz(Sc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new vz)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Gy),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=bz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:y}=this.options;if(y&&!y.current&&y.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let p;const S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=mz(S,250),Kh.hasAnimatedSinceResize&&(Kh.hasAnimatedSinceResize=!1,this.nodes.forEach(DS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&y&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:T,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||y.getDefaultTransition()||Fz,{onLayoutAnimationStart:L,onLayoutAnimationComplete:I}=y.getProps(),U=!this.targetLayout||!Kk(this.targetLayout,_)||T,z=!S&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||z||S&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,z);const re={...Uy(R,"layout"),onPlay:L,onComplete:I};(y.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else S||DS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lu(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(Iz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const p=this.path[y];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(OS);return}this.isUpdating||this.nodes.forEach(Dz),this.isUpdating=!1,this.nodes.forEach(Pz),this.nodes.forEach(Tz),this.nodes.forEach(Cz),this.clearAllSnapshots();const l=performance.now();Li.delta=Pl(0,1e3/60,l-Li.timestamp),Li.timestamp=l,Li.isProcessing=!0,lv.update.process(Li),lv.preRender.process(Li),lv.render.process(Li),Li.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Oz),this.sharedNodes.forEach(Az)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Hn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Hn.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Dr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Xk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,y=d!==this.prevTransformTemplateValue;s&&(l||xc(this.latestValues)||y)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),Nz(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Dr();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(yl(l.x,c.offset.x),yl(l.y,c.offset.y)),l}removeElementScroll(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:y,options:p}=d;if(d!==this.root&&y&&p.layoutScroll){if(y.isRoot){Ca(l,s);const{scroll:S}=this.root;S&&(yl(l.x,-S.offset.x),yl(l.y,-S.offset.y))}yl(l.x,y.offset.x),yl(l.y,y.offset.y)}}return l}applyTransform(s,l=!1){const c=Dr();Ca(c,s);for(let d=0;d<this.path.length;d++){const y=this.path[d];!l&&y.options.layoutScroll&&y.scroll&&y!==y.root&&kf(c,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),xc(y.latestValues)&&kf(c,y.latestValues)}return xc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xc(d.latestValues))continue;Rm(d.latestValues)&&d.updateSnapshot();const y=Dr(),p=d.measurePageBox();Ca(y,p),xS(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,y)}return xc(this.latestValues)&&xS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Li.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:S}=this.options;if(!(!this.layout||!(p||S))){if(this.resolvedRelativeTargetAt=Li.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),Td(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Dr(),this.targetWithTransforms=Dr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Uk(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),Td(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rm(this.parent.latestValues)||Hk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Li.timestamp&&(d=!1),d)return;const{layout:y,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||p))return;Ca(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;GW(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:_}=l;if(!_){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const R=this.projectionTransform;Sd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),this.projectionTransform=CS(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==S||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Sc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const c=this.snapshot,d=c?c.latestValues:{},y={...this.latestValues},p=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const S=Dr(),T=c?c.source:void 0,_=this.layout?this.layout.source:void 0,R=T!==_,L=this.getStack(),I=!L||L.members.length<=1,U=!!(R&&!I&&this.options.crossfade===!0&&!this.path.some(Lz));this.animationProgress=0;let z;this.mixTargetDelta=re=>{const Z=re/1e3;PS(p.x,s.x,Z),PS(p.y,s.y,Z),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Td(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Mz(this.relativeTarget,this.relativeTargetOrigin,S,Z),z&&hz(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Dr()),Ca(z,this.relativeTarget)),R&&(this.animationValues=y,sz(y,d,this.latestValues,Z,U,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Kh.hasAnimatedSinceResize=!0,this.currentAnimation=wz(0,kS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:y}=s;if(!(!l||!c||!d)){if(this!==s&&this.layout&&d&&Jk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Dr();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const S=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+S}Ca(l,c),kf(l,y),Sd(this.projectionDeltaWithTransform,this.layoutCorrected,l,y)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new pz),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let y=0;y<ES.length;y++){const p="rotate"+ES[y];c[p]&&(d[p]=c[p],s.setStaticValue(p,0))}s.render();for(const y in d)s.setStaticValue(y,d[y]);s.scheduleRender()}getProjectionStyles(s){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return xz;const d={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!xc(this.latestValues)&&(R.transform=y?y({},""):"none",this.hasProjected=!1),R}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=CS(this.projectionDeltaWithTransform,this.treeScale,S),y&&(d.transform=y(S,d.transform));const{x:T,y:_}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${_.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(l=S.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=p===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const R in yp){if(S[R]===void 0)continue;const{correct:L,applyTo:I}=yp[R],U=d.transform==="none"?S[R]:L(S[R],p);if(I){const z=I.length;for(let re=0;re<z;re++)d[I[re]]=U}else d[R]=U}return this.options.layoutId&&(d.pointerEvents=p===this?Xh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(OS),this.root.sharedNodes.clear()}}}function Tz(e){e.updateLayout()}function Cz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(S);S.min=r[p].min,S.max=S.min+T}):Jk(o,n.layoutBox,r)&&Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const l=Ef();Sd(l,r,n.layoutBox);const c=Ef();s?Sd(c,e.applyTransform(i,!0),n.measuredBox):Sd(c,r,n.layoutBox);const d=!Xk(l);let y=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:T}=p;if(S&&T){const _=Dr();Td(_,n.layoutBox,S.layoutBox);const R=Dr();Td(R,r,T.layoutBox),Kk(_,R)||(y=!0),p.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Ez(e){Sc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Oz(e){e.clearSnapshot()}function OS(e){e.clearMeasurements()}function Dz(e){e.isLayoutDirty=!1}function Pz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function DS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _z(e){e.resolveTargetDelta()}function Rz(e){e.calcProjection()}function Iz(e){e.resetRotation()}function Az(e){e.removeLeadSnapshot()}function PS(e,t,n){e.translate=nr(t.translate,0,n),e.scale=nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _S(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function Mz(e,t,n,r){_S(e.x,t.x,n.x,r),_S(e.y,t.y,n.y,r)}function Lz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Fz={duration:.45,ease:[.4,0,.1,1]},RS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),IS=RS("applewebkit/")&&!RS("chrome/")?Math.round:cr;function AS(e){e.min=IS(e.min),e.max=IS(e.max)}function Nz(e){AS(e.x),AS(e.y)}function Jk(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pm(TS(t),TS(n),.2)}const jz=Zk({attachResizeListener:(e,t)=>ku(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wv={current:void 0},Qk=Zk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wv.current){const e=new jz({});e.mount(window),e.setOptions({layoutScroll:!0}),wv.current=e}return wv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Bz={pan:{Feature:tz},drag:{Feature:ez,ProjectionNode:Qk,MeasureLayout:Yk}},$z=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Vz(e){const t=$z.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const Hz=4;function Am(e,t,n=1){is(n<=Hz,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Vz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Lk(s)?parseFloat(s):s}else return Sm(i)?Am(i,t,n+1):i}function Uz(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Sm(o))return;const s=Am(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Sm(o))continue;const s=Am(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const Wz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eO=e=>Wz.has(e),zz=e=>Object.keys(e).some(eO),Fh=e=>e===Hc||e===Bt,MS=(e,t)=>parseFloat(e.split(", ")[t]),LS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return MS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?MS(o[1],e):0}},Yz=new Set(["x","y","z"]),Gz=qd.filter(e=>!Yz.has(e));function qz(e){const t=[];return Gz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Mf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:LS(4,13),y:LS(5,14)};Mf.translateX=Mf.x;Mf.translateY=Mf.y;const Xz=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Mf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const y=t.getValue(d);y&&y.jump(l[d]),e[d]=Mf[d](c,o)}),e},Kz=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(eO);let o=[],s=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let y=n[c],p=ad(y);const S=t[c];let T;if(wp(S)){const _=S.length,R=S[0]===null?1:0;y=S[R],p=ad(y);for(let L=R;L<_&&S[L]!==null;L++)T?is(ad(S[L])===T,"All keyframes must be of the same type"):(T=ad(S[L]),is(T===p||Fh(p)&&Fh(T),"Keyframes must be of the same dimension as the current value"))}else T=ad(S);if(p!==T)if(Fh(p)&&Fh(T)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&T===Bt&&(t[c]=S.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(y===0||S===0)?y===0?d.set(T.transform(y)):t[c]=p.transform(S):(s||(o=qz(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=Xz(t,e,l);return o.length&&o.forEach(([y,p])=>{e.getValue(y).set(p)}),e.render(),Kp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Zz(e,t,n,r){return zz(t)?Kz(e,t,n,r):{target:t,transitionEnd:r}}const Jz=(e,t,n,r)=>{const i=Uz(e,t,r);return t=i.target,r=i.transitionEnd,Zz(e,t,n,r)},Mm={current:null},tO={current:!1};function Qz(){if(tO.current=!0,!!Kp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mm.current=e.matches;e.addListener(t),t()}else Mm.current=!1}function e5(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Do(o))e.addValue(i,o),Cp(r)&&r.add(i),process.env.NODE_ENV==="development"&&qy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Do(s))e.addValue(i,Af(o,{owner:e})),Cp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Af(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const FS=new WeakMap,nO=Object.keys(Nd),t5=nO.length,NS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],n5=Ry.length;class r5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Hn.render(this.render,!1,!0);const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jp(n),this.isVariantNode=$E(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...y}=this.scrapeMotionValuesFromProps(n,{});for(const p in y){const S=y[p];l[p]!==void 0&&Do(S)&&(S.set(l[p],!1),Cp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,FS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tO.current||Qz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mm.current,process.env.NODE_ENV!=="production"&&qy(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(){FS.delete(this.current),this.projection&&this.projection.unmount(),Lu(this.notifyUpdate),Lu(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Hn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Zd(!1,c):is(!1,c)}for(let c=0;c<t5;c++){const d=nO[c],{isEnabled:y,Feature:p,ProjectionNode:S,MeasureLayout:T}=Nd[d];S&&(s=S),y(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),T&&(l=T))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:y,dragConstraints:p,layoutScroll:S,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!y||p&&Tf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:T})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];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):Dr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<NS.length;r++){const i=NS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=e5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)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<n5;r++){const i=Ry[r],o=this.props[i];(Fd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Af(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Do(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rO extends r5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=bW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){mW(this,r,s);const l=Jz(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function i5(e){return window.getComputedStyle(e)}class o5 extends rO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}else{const r=i5(t),i=(zE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wk(t,n)}build(t,n,r,i){Ay(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ny(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Do(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){ZE(t,n,r,i)}}class a5 extends rO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}return n=JE.has(n)?n:Py(n),t.getAttribute(n)}measureInstanceViewportBox(){return Dr()}scrapeMotionValuesFromProps(t,n){return ek(t,n)}build(t,n,r,i){Ly(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){QE(t,n,r,i)}mount(t){this.isSVGTag=Fy(t.tagName),super.mount(t)}}const s5=(e,t)=>Iy(e)?new a5(t,{enableHardwareAcceleration:!1}):new o5(t,{enableHardwareAcceleration:!0}),u5={layout:{ProjectionNode:Qk,MeasureLayout:Yk}},l5={...MW,...nU,...Bz,...u5},iO=cH((e,t)=>UH(e,t,l5,s5));function oO(e){return _p({tag:"svg",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:[]}]})(e)}function aO(e){return _p({tag:"svg",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:[]}]})(e)}function sO(e,t){return t?e:void 0}function c5(e){return it.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:it.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 f5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=Q.useState({top:0,left:0}),s=Q.useRef(null),[l,c]=Q.useState("auto");return Q.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),y=s.current.getBoundingClientRect();let p=d.top;const S=d.left+d.width,T=y.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+y.height>window.innerHeight&&!T&&(p=d.top-y.height+d.height),o({top:p,left:S})}},[n,s]),r?t({maxHeight:l}):k1.createPortal(it.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:t({maxHeight:l})}),n.current)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(this,arguments)}const d5=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"}));function uO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zh(e,t)}/*!
11
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);mf(this,Ph,new a3),mf(this,Ta,{}),mf(this,hl,[]),r.backends.forEach(i=>{const o=Jt(this,Ex).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,hl).push(o)}),mf(this,Sa,Jt(this,hl)[0].id),mf(this,mc,{})}}Is(_f,"isSetUp",!1);const c3=(e,t,n)=>new _f(e,t,n),OE=(e,t)=>({event:e,check:t}),f3=OE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),d3=OE("pointerdown",e=>e.pointerType=="mouse");var Sl;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Sl||(Sl={}));class h3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.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 t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function p3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function g3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const l=i[s];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const v3={Left:1,Right:2,Center:4},m3={Left:0,Center:1,Right:2};function uv(e){return e.button===void 0||e.button===m3.Left}function y3(e){return e.buttons===void 0||(e.buttons&v3.Left)===0}function DE(e){return!!e.targetTouches}const b3=1;function w3(e){const t=e.nodeType===b3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function x3(e,t){if(e.targetTouches.length===1)return vp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return vp(e.touches[0])}function vp(e,t){return DE(e)?x3(e,t):{x:e.clientX,y:e.clientY}}const Dx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),id={[Sl.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Sl.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Sl.keyboard]:{keydown:"keydown"}};class bd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Kt(!bd.isSetUp,"Cannot have two Touch backends at the same time."),bd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(bd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.addEventListener(l,r,o)})}removeEventListener(t,n,r,i=!1){const o=Dx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=id[s][n];l&&t.removeEventListener(l,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case id.mouse.move:s={x:o.clientX,y:o.clientY};break;case id.touch.move:var l,c;s={x:((l=o.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((c=o.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const d=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,y=d&&n.contains(d);if(d===n||y)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.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(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&w3(o)},this.handleTopMoveStartCapture=i=>{uv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!uv(i))return;const o=vp(i);o&&(DE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!uv(i))return;const o=i.type===id.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:s}=this,l=this.options.enableHoverOutsideTarget,c=vp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&g3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&p3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.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 d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(s||[]).map(_=>this.targetNodes.get(_)).filter(_=>!!_),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,y):this.document.elementsFromPoint(c.x,c.y),S=[];for(const _ in p){if(!p.hasOwnProperty(_))continue;let R=p[_];for(R!=null&&S.push(R);R;)R=R.parentElement,R&&S.indexOf(R)===-1&&S.push(R)}const T=S.filter(_=>y.indexOf(_)>-1).map(_=>this._getDropTargetId(_)).filter(_=>!!_).filter((_,R,L)=>L.indexOf(_)===R);if(l)for(const _ in this.targetNodes){const R=this.targetNodes.get(_);if(d&&R&&R.contains(d)&&T.indexOf(_)===-1){T.unshift(_);break}}T.reverse(),this.actions.hover(T,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const l=s.value;if(i===this.targetNodes.get(l))return l;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!y3(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 h3(r,n),this.actions=t.getActions(),this.monitor=t.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(Sl.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Sl.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Sl.keyboard)}}const S3=function(t,n={},r={}){return new bd(t,n,r)};var Pa=function(){return Pa=Object.assign||function(t){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)&&(t[o]=n[o])}return t},Pa.apply(this,arguments)};function ao(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function T3(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,l=e.children,c=JB({polyfill:x2}),d=c[0],y=c[1].height,p=Q.useState(t),S=p[0],T=p[1],_=Q.useState(t),R=_[0],L=_[1],I=Q.useState(!1),U=I[0],z=I[1],re=function(){z(!1),t||T(!1)};return Q.useEffect(function(){z(!0),t?T(!0):L(!1)},[t]),Q.useEffect(function(){S&&L(!0)},[y]),Q.createElement(KB.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:R?"open":"close",animate:R?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:C3(y,i)}},Q.createElement("div",{ref:d},S&&l))}function C3(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var E3=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},od=function(e,t){return e.find(function(n){return n.id===t})},PE=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:PE(e,t,r.parent)},Oy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Dl=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(y){return y.id===t});return!!(s&&s.droppable)}else{var l=Oy(e)?e.id:null;if(o){var c=o(l,t);if(c!==void 0)return c}if(l===t)return!1;var d=r.find(function(p){return p.id===l}),s=r.find(function(p){return p.id===t});return d===void 0||l===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!PE(r,l,t)}},k3=function(e,t,n){return e.map(function(r){return r.id===t?Pa(Pa({},r),{parent:n}):r})},_E=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},O3=function(e,t){return e.findIndex(function(n){return n.id===t})},RE=function(e,t,n,r){var i=O3(e,t),o=_E(e,n,r);return o=o>i?o-1:o,[i,o]},D3=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},P3=function(e,t,n,r){var i=RE(e,t,n,r),o=i[0],s=i[1],l=ao([],e,!0);return D3(l,o,s),l.map(function(c){return c.id===t?Pa(Pa({},c),{parent:n}):c})},_3=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},bm=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,l=_3(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=l:n!==l&&(n=l,r=o),o===e.length-1&&l==="down"&&(r=o+1)}),r},Px=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?bm(i,n):null},R3=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},wm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:bm(o,n)}}var s=n.getItem(),l=t.querySelector('[role="list"]'),c=R3(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=l.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:bm(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Dl(s,e.parent,r)){var d=Px(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},I3=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:e2,options:e.html5,transition:d3},{id:"touch",backend:S3,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:f3}]}},qh=function(e,t){return e.some(function(n){return n.parent===t})},IE=Q.createContext({}),A3=function(e){var t=U3(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,l=r.handleOpen,c=r.handleClose;Q.useImperativeHandle(e.treeRef,function(){return{open:function(T){return l(T,e.onChangeOpen)},close:function(T){return c(T,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var d=Fu().getMonitor(),y=e.canDrop,p=e.canDrag,S=Pa(Pa({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,_,R){if(T){var L={dragSourceId:T.id,dropTargetId:_,dragSource:T,dropTarget:od(e.tree,_),monitor:d},I=e.tree;if(od(I,T.id)||(I=ao(ao([],I,!0),[T],!1)),e.sort===!1){var U=RE(I,T.id,_,R),z=U[1];L.destinationIndex=z,L.relativeIndex=R,e.onDrop(P3(I,T.id,_,R),L);return}e.onDrop(k3(I,T.id,_),L)}else{var L={dropTargetId:_,dropTarget:od(e.tree,_),monitor:d};e.sort===!1&&(L.destinationIndex=_E(e.tree,_,R),L.relativeIndex=R),e.onDrop(e.tree,L)}},canDrop:y?function(T,_){return y(e.tree,{dragSourceId:T??void 0,dropTargetId:_,dragSource:d.getItem(),dropTarget:od(e.tree,_),monitor:d})}:void 0,canDrag:p?function(T){return p(od(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return Q.createElement(IE.Provider,{value:S},e.children)},AE=Q.createContext({}),M3={isLock:!1},L3=function(e){var t=Q.useState(M3.isLock),n=t[0],r=t[1];return Q.createElement(AE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Gd=Q.createContext({}),Rh={dropTargetId:void 0,index:void 0},F3=function(e){var t=Q.useState(Rh.dropTargetId),n=t[0],r=t[1],i=Q.useState(Rh.index),o=i[0],s=i[1],l=function(d,y){r(d),s(y)},c=function(){r(Rh.dropTargetId),s(Rh.index)};return Q.createElement(Gd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},N3=function(e){return Q.createElement(A3,Pa({},e),Q.createElement(L3,null,Q.createElement(F3,null,e.children)))},j3=function(e){var t=Q.useContext(AE);Q.useEffect(function(){if(e.current){var n=e.current,r=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.lock()},i=function(y){var p=y.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.unlock()},o=function(y){return r(y)},s=function(y){return i(y)},l=function(y){return r(y)},c=function(y){return i(y)},d=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",l),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c)}}},[e,t]),Q.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},qp={TREE_ITEM:Symbol()},ME=null,LE=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(ME=n)}},_x=function(e){return LE(e)},Rx=function(e){return LE(e)},B3=function(e,t){var n=Il();Q.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",_x),l==null||l.addEventListener("touchstart",Rx,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",_x),l==null||l.removeEventListener("touchstart",Rx)}},[t]);var r=YV({type:qp.TREE_ITEM,item:function(l){var c=Pa({ref:t},e);return n.onDragStart&&n.onDragStart(c,l),c},end:function(l,c){var d=l;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var l=n.canDrag;return ME!==t.current?!1:l?l(e.id):!0},collect:function(l){return{isDragging:l.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},$3=function(e,t,n){var r=Q.useRef(0),i=Q.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},V3=function(e){var t=Il(),n=Q.useContext(Gd),r=CE({accept:ao([qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var y=t.rootId,p=t.onDrop,S=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&S!==void 0&&T!==void 0&&p(Oy(c)?c:null,y,T),n.hidePlaceholder()},canDrop:function(c,d){var y=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Dl(c,y,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var y=t.rootId,p=n.dropTargetId,S=n.index,T=n.showPlaceholder,_=n.hidePlaceholder,R=wm(null,e.current,d,t);if(R===null||!Dl(c,y,t)){_();return}(R.id!==p||R.index!==S)&&T(R.id,R.index)}},collect:function(c){var d=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:d}}}),i=r[0],o=i.isOver,s=i.dragSource,l=r[1];return[o,s,l]},H3=function(e,t){var n=Il(),r=Q.useContext(Gd),i=CE({accept:ao([qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,y){var p=r.dropTargetId,S=r.index;y.isOver({shallow:!0})&&p!==void 0&&S!==void 0&&n.onDrop(Oy(d)?d:null,p,S),r.hidePlaceholder()},canDrop:function(d,y){if(y.isOver({shallow:!0})){var p=wm(e,t.current,y,n);return p===null?!1:Dl(d,p.id,n)}return!1},hover:function(d,y){if(y.isOver({shallow:!0})){var p=r.dropTargetId,S=r.index,T=r.showPlaceholder,_=r.hidePlaceholder,R=wm(e,t.current,y,n);if(R===null||!Dl(d,R.id,n)){_();return}(R.id!==p||R.index!==S)&&T(R.id,R.index)}},collect:function(d){var y=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:y}}}),o=i[0],s=o.isOver,l=o.dragSource,c=i[1];return[s,l,c]},U3=function(e,t){var n=Q.useMemo(function(){return t===!0?e.filter(function(p){return qh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=Q.useState(n),i=r[0],o=r[1];Q.useEffect(function(){return o(n)},[t]);var s=function(p,S){var T=i.includes(p)?i.filter(function(_){return _!==p}):ao(ao([],i,!0),[p],!1);o(T),S&&S(T)},l=function(p){o([]),p&&p([])},c=function(p){var S=e.filter(function(T){return qh(e,T.id)}).map(function(T){return T.id});o(S),p&&p(S)},d=function(p,S){var T=[];if(Array.isArray(p)){var _=e.filter(function(R){return p.includes(R.id)&&qh(e,R.id)});T=ao(ao([],i,!0),_.map(function(R){return R.id}),!0).filter(function(R,L,I){return I.indexOf(R)===L})}else T=i.includes(p)?i:ao(ao([],i,!0),[p],!1);o(T),S&&S(T)},y=function(p,S){var T=i.filter(function(_){return Array.isArray(p)?!p.includes(_):_!==p});o(T),S&&S(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:y}]},W3=function(){return GV(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===qp.TREE_ITEM}})},Il=function(){var e=Q.useContext(IE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},z3=function(e,t){var n=Il(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},Y3=function(e,t,n){t.current?n(t):n(e),Q.useEffect(function(){t.current?n(t):n(e)},[t.current])},G3=function(e){var t=Il(),n=Q.useContext(Gd),r=Q.useRef(null),i=Q.useRef(null),o=t.tree.find(function(ye){return ye.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),y=B3(o,r),p=y[0],S=y[1],T=y[2],_=H3(o,r),R=_[0],L=_[1],I=_[2];Y3(r,i,S),Dl(L,e.id,t)&&I(r),Q.useEffect(function(){t.dragPreviewRender?T(QL(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),j3(r);var U=function(){return t.onToggle(o.id)},z=t.listItemComponent,re=(l==null?void 0:l.listItem)||"";R&&(l!=null&&l.dropTarget)&&(re="".concat(re," ").concat(l.dropTarget)),p&&(l!=null&&l.draggingSource)&&(re="".concat(re," ").concat(l.draggingSource));var Z=t.canDrag?t.canDrag(e.id):!0,de=n.dropTargetId===e.id,x={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:de,draggable:Z,hasChild:qh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return Q.createElement(z,{ref:r,className:re,role:"listitem"},t.render(o,x),c&&x.hasChild&&Q.createElement(T3,{isVisible:d},Q.createElement(xm,{parentId:e.id,depth:e.depth+1})),!c&&x.hasChild&&d&&Q.createElement(xm,{parentId:e.id,depth:e.depth+1}))},Ix=function(e){var t=Il(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=Q.useContext(Gd),s=Fu(),l=s.getMonitor(),c=l.getItem();if(!n||!c)return null;var d=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return d?Q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},xm=function(e){var t=Il(),n=Q.useRef(null),r=t.tree.filter(function(R){return R.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:E3;if(t.insertDroppableFirst){var s=r.filter(function(R){return R.droppable}),l=r.filter(function(R){return!R.droppable});t.sort===!1?i=ao(ao([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=ao(ao([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=V3(n),d=c[0],y=c[1],p=c[2];e.parentId===t.rootId&&Dl(y,t.rootId,t)&&p(n);var S=z3(e.parentId,d),T=t.rootProps||{},_=t.listComponent;return Q.createElement(_,Pa({ref:n,role:"list"},T,{className:S}),i.map(function(R,L){return Q.createElement(Q.Fragment,{key:R.id},Q.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),Q.createElement(G3,{id:R.id,depth:e.depth}))}),Q.createElement(Ix,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},q3={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},X3=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},K3=function(){var e=Il(),t=W3(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:Q.createElement("div",{style:q3},Q.createElement("div",{style:X3(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function Z3(e,t){return Q.createElement(N3,Pa({},e,{treeRef:t}),e.dragPreviewRender&&Q.createElement(K3,null),Q.createElement(xm,{parentId:e.rootId,depth:0}))}var J3=Q.forwardRef(Z3);const FE=Q.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xp=Q.createContext({}),Dy=Q.createContext(null),Kp=typeof document<"u",Q3=Kp?Q.useLayoutEffect:Q.useEffect,NE=Q.createContext({strict:!1}),Py=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),eH="framerAppearId",jE="data-"+Py(eH);function tH(e,t,n,r){const{visualElement:i}=Q.useContext(Xp),o=Q.useContext(NE),s=Q.useContext(Dy),l=Q.useContext(FE).reducedMotion,c=Q.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=c.current;Q.useInsertionEffect(()=>{d&&d.update(n,s)});const y=Q.useRef(!!(n[jE]&&!window.HandoffComplete));return Q3(()=>{d&&(d.render(),y.current&&d.animationState&&d.animationState.animateChanges())}),Q.useEffect(()=>{d&&(d.updateFeatures(),!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function nH(e,t,n){return Q.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tf(n)&&(n.current=r))},[t])}function Fd(e){return typeof e=="string"||Array.isArray(e)}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const _y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ry=["initial",..._y];function Jp(e){return Zp(e.animate)||Ry.some(t=>Fd(e[t]))}function BE(e){return!!(Jp(e)||e.variants)}function rH(e,t){if(Jp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function iH(e){const{initial:t,animate:n}=rH(e,Q.useContext(Xp));return Q.useMemo(()=>({initial:t,animate:n}),[Ax(t),Ax(n)])}function Ax(e){return Array.isArray(e)?e.join(" "):e}const Mx={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"]},Nd={};for(const e in Mx)Nd[e]={isEnabled:t=>Mx[e].some(n=>!!t[n])};function oH(e){for(const t in e)Nd[t]={...Nd[t],...e[t]}}const $E=Q.createContext({}),VE=Q.createContext({}),aH=Symbol.for("motionComponentSymbol");function sH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&oH(e);function o(l,c){let d;const y={...Q.useContext(FE),...l,layoutId:uH(l)},{isStatic:p}=y,S=iH(l),T=r(l,p);if(!p&&Kp){S.visualElement=tH(i,T,y,t);const _=Q.useContext(VE),R=Q.useContext(NE).strict;S.visualElement&&(d=S.visualElement.loadFeatures(y,R,e,_))}return Sn.createElement(Xp.Provider,{value:S},d&&S.visualElement?Sn.createElement(d,{visualElement:S.visualElement,...y}):null,n(i,l,nH(T,S.visualElement,c),T,p,S.visualElement))}const s=Q.forwardRef(o);return s[aH]=i,s}function uH({layoutId:e}){const t=Q.useContext($E).id;return t&&e!==void 0?t+"-"+e:e}function lH(e){function t(r,i={}){return sH(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const cH=["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 Iy(e){return typeof e!="string"||e.includes("-")?!1:!!(cH.indexOf(e)>-1||/[A-Z]/.test(e))}const mp={};function fH(e){Object.assign(mp,e)}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vc=new Set(qd);function HE(e,{layout:t,layoutId:n}){return Vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mp[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),dH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hH=qd.length;function pH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<hH;s++){const l=qd[s];if(e[l]!==void 0){const c=dH[l]||l;o+=`${c}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const UE=e=>t=>typeof t=="string"&&t.startsWith(e),WE=UE("--"),Sm=UE("var(--"),gH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,vH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pl=(e,t,n)=>Math.min(Math.max(n,e),t),Hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wd={...Hc,transform:e=>Pl(0,1,e)},Ih={...Hc,default:1},xd=e=>Math.round(e*1e5)/1e5,Qp=/(-)?([\d]*\.?[\d])+/g,zE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,mH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xd(e){return typeof e=="string"}const Kd=e=>({test:t=>Xd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vl=Kd("deg"),js=Kd("%"),Bt=Kd("px"),yH=Kd("vh"),bH=Kd("vw"),Lx={...js,parse:e=>js.parse(e)/100,transform:e=>js.transform(e*100)},Fx={...Hc,transform:Math.round},YE={borderWidth:Bt,borderTopWidth:Bt,borderRightWidth:Bt,borderBottomWidth:Bt,borderLeftWidth:Bt,borderRadius:Bt,radius:Bt,borderTopLeftRadius:Bt,borderTopRightRadius:Bt,borderBottomRightRadius:Bt,borderBottomLeftRadius:Bt,width:Bt,maxWidth:Bt,height:Bt,maxHeight:Bt,size:Bt,top:Bt,right:Bt,bottom:Bt,left:Bt,padding:Bt,paddingTop:Bt,paddingRight:Bt,paddingBottom:Bt,paddingLeft:Bt,margin:Bt,marginTop:Bt,marginRight:Bt,marginBottom:Bt,marginLeft:Bt,rotate:vl,rotateX:vl,rotateY:vl,rotateZ:vl,scale:Ih,scaleX:Ih,scaleY:Ih,scaleZ:Ih,skew:vl,skewX:vl,skewY:vl,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:wd,originX:Lx,originY:Lx,originZ:Bt,zIndex:Fx,fillOpacity:wd,strokeOpacity:wd,numOctaves:Fx};function Ay(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let c=!1,d=!1,y=!0;for(const p in t){const S=t[p];if(WE(p)){o[p]=S;continue}const T=YE[p],_=vH(S,T);if(Vc.has(p)){if(c=!0,s[p]=_,!y)continue;S!==(T.default||0)&&(y=!1)}else p.startsWith("origin")?(d=!0,l[p]=_):i[p]=_}if(t.transform||(c||r?i.transform=pH(e.transform,n,y,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:S="50%",originZ:T=0}=l;i.transformOrigin=`${p} ${S} ${T}`}}const My=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GE(e,t,n){for(const r in t)!Do(t[r])&&!HE(r,n)&&(e[r]=t[r])}function wH({transformTemplate:e},t,n){return Q.useMemo(()=>{const r=My();return Ay(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function xH(e,t,n){const r=e.style||{},i={};return GE(i,r,e),Object.assign(i,wH(e,t,n)),e.transformValues?e.transformValues(i):i}function SH(e,t,n){const r={},i=xH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const TH=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 yp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||TH.has(e)}let qE=e=>!yp(e);function CH(e){e&&(qE=t=>t.startsWith("on")?!yp(t):e(t))}try{CH(require("@emotion/is-prop-valid").default)}catch{}function EH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(qE(i)||n===!0&&yp(i)||!t&&!yp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Nx(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function kH(e,t,n){const r=Nx(t,e.x,e.width),i=Nx(n,e.y,e.height);return`${r} ${i}`}const OH={offset:"stroke-dashoffset",array:"stroke-dasharray"},DH={offset:"strokeDashoffset",array:"strokeDasharray"};function PH(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?OH:DH;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),l=Bt.transform(n);e[o.array]=`${s} ${l}`}function Ly(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},y,p,S){if(Ay(e,d,y,S),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:_,dimensions:R}=e;T.transform&&(R&&(_.transform=T.transform),delete T.transform),R&&(i!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=kH(R,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(T.x=t),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),s!==void 0&&PH(T,s,l,c,!1)}const XE=()=>({...My(),attrs:{}}),Fy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _H(e,t,n,r){const i=Q.useMemo(()=>{const o=XE();return Ly(o,t,{enableHardwareAcceleration:!1},Fy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};GE(o,e.style,e),i.style={...o,...i.style}}return i}function RH(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Iy(n)?_H:SH)(r,o,s,n),y={...EH(r,typeof n=="string",e),...c,ref:i},{children:p}=r,S=Q.useMemo(()=>Do(p)?p.get():p,[p]);return Q.createElement(n,{...y,children:S})}}function KE(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const ZE=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 JE(e,t,n,r){KE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ZE.has(i)?i:Py(i),t.attrs[i])}function Ny(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||HE(i,e))&&(r[i]=n[i]);return r}function QE(e,t){const n=Ny(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jy(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function IH(e){const t=Q.useRef(null);return t.current===null&&(t.current=e()),t.current}const bp=e=>Array.isArray(e),AH=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),MH=e=>bp(e)?e[e.length-1]||0:e;function Xh(e){const t=Do(e)?e.get():e;return AH(t)?t.toValue():t}function LH({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:FH(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const ek=e=>(t,n)=>{const r=Q.useContext(Xp),i=Q.useContext(Dy),o=()=>LH(e,t,r,i);return n?o():IH(o)};function FH(e,t,n,r){const i={},o=r(e,{});for(const S in o)i[S]=Xh(o[S]);let{initial:s,animate:l}=e;const c=Jp(e),d=BE(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let y=n?n.initial===!1:!1;y=y||s===!1;const p=y?l:s;return p&&typeof p!="boolean"&&!Zp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const _=jy(e,T);if(!_)return;const{transitionEnd:R,transition:L,...I}=_;for(const U in I){let z=I[U];if(Array.isArray(z)){const re=y?z.length-1:0;z=z[re]}z!==null&&(i[U]=z)}for(const U in R)i[U]=R[U]}),i}const cr=e=>e;class jx{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function NH(e){let t=new jx,n=new jx,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,y=!1)=>{const p=y&&i,S=p?t:n;return d&&s.add(c),S.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const y=t.order[d];y(c),s.has(y)&&(l.schedule(y),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const Ah=["prepare","read","update","preRender","render","postRender"],jH=40;function BH(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ah.reduce((p,S)=>(p[S]=NH(()=>n=!0),p),{}),s=p=>o[p].process(i),l=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,jH),1),i.timestamp=p,i.isProcessing=!0,Ah.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Ah.reduce((p,S)=>{const T=o[S];return p[S]=(_,R=!1,L=!1)=>(n||c(),T.schedule(_,R,L)),p},{}),cancel:p=>Ah.forEach(S=>o[S].cancel(p)),state:i,steps:o}}const{schedule:Hn,cancel:Lu,state:Li,steps:lv}=BH(typeof requestAnimationFrame<"u"?requestAnimationFrame:cr,!0),$H={useVisualState:ek({scrapeMotionValuesFromProps:QE,createRenderState:XE,onMount:(e,t,{renderState:n,latestValues:r})=>{Hn.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Hn.render(()=>{Ly(n,r,{enableHardwareAcceleration:!1},Fy(t.tagName),e.transformTemplate),JE(t,n)})}})},VH={useVisualState:ek({scrapeMotionValuesFromProps:Ny,createRenderState:My})};function HH(e,{forwardMotionProps:t=!1},n,r){return{...Iy(e)?$H:VH,preloadedFeatures:n,useRender:RH(t),createVisualElement:r,Component:e}}function ku(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tk=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function eg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const UH=e=>t=>tk(t)&&e(t,eg(t));function Pu(e,t,n,r){return ku(e,t,UH(n),r)}const WH=(e,t)=>n=>t(e(n)),Tl=(...e)=>e.reduce(WH);function nk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Bx=nk("dragHorizontal"),$x=nk("dragVertical");function rk(e){let t=!1;if(e==="y")t=$x();else if(e==="x")t=Bx();else{const n=Bx(),r=$x();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ik(){const e=rk(!0);return e?(e(),!1):!0}class Al{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||ik())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Hn.update(()=>l[r](o,s))};return Pu(e.current,n,i,{passive:!e.getProps()[r]})}class zH extends Al{mount(){this.unmount=Tl(Vx(this.node,!0),Vx(this.node,!1))}unmount(){}}class YH extends Al{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Tl(ku(this.node.current,"focus",()=>this.onFocus()),ku(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ok=(e,t)=>t?e===t?!0:ok(e,t.parentElement):!1;function cv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eg(n))}class GH extends Al{constructor(){super(...arguments),this.removeStartListeners=cr,this.removeEndListeners=cr,this.removeAccessibleListeners=cr,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Pu(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:y,globalTapTarget:p}=this.node.getProps();Hn.update(()=>{!p&&!ok(this.node.current,l.target)?y&&y(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Pu(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Tl(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||cv("up",(c,d)=>{const{onTap:y}=this.node.getProps();y&&Hn.update(()=>y(c,d))})};this.removeEndListeners(),this.removeEndListeners=ku(this.node.current,"keyup",s),cv("down",(l,c)=>{this.startPress(l,c)})},n=ku(this.node.current,"keydown",t),r=()=>{this.isPressing&&cv("cancel",(o,s)=>this.cancelPress(o,s))},i=ku(this.node.current,"blur",r);this.removeAccessibleListeners=Tl(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Hn.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ik()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Hn.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Pu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ku(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Tl(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tm=new WeakMap,fv=new WeakMap,qH=e=>{const t=Tm.get(e.target);t&&t(e)},XH=e=>{e.forEach(qH)};function KH({root:e,...t}){const n=e||document;fv.has(n)||fv.set(n,{});const r=fv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XH,{root:e,...t})),r[i]}function ZH(e,t,n){const r=KH(t);return Tm.set(e,n),r.observe(e),()=>{Tm.delete(e),r.unobserve(e)}}const JH={some:0,all:1};class QH extends Al{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:JH[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:y,onViewportLeave:p}=this.node.getProps(),S=d?y:p;S&&S(c)};return ZH(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eU(t,n))&&this.startObserver()}unmount(){}}function eU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tU={inView:{Feature:QH},tap:{Feature:GH},focus:{Feature:YH},hover:{Feature:zH}};function ak(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function nU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function rU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tg(e,t,n){const r=e.getProps();return jy(r,t,n!==void 0?n:r.custom,nU(e),rU(e))}let Zd=cr,is=cr;process.env.NODE_ENV!=="production"&&(Zd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},is=(e,t)=>{if(!e)throw new Error(t)});const Cl=e=>e*1e3,_u=e=>e/1e3,iU={current:!1},sk=e=>Array.isArray(e)&&typeof e[0]=="number";function uk(e){return!!(!e||typeof e=="string"&&lk[e]||sk(e)||Array.isArray(e)&&e.every(uk))}const ud=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function ck(e){if(e)return sk(e)?ud(e):Array.isArray(e)?e.map(ck):lk[e]}function oU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:c}={}){const d={[t]:n};c&&(d.offset=c);const y=ck(l);return Array.isArray(y)&&(d.easing=y),e.animate(d,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function aU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const fk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sU=1e-7,uU=12;function lU(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=fk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>sU&&++l<uU);return s}function Jd(e,t,n,r){if(e===t&&n===r)return cr;const i=o=>lU(o,0,1,e,n);return o=>o===0||o===1?o:fk(i(o),t,r)}const cU=Jd(.42,0,1,1),fU=Jd(0,0,.58,1),dk=Jd(.42,0,.58,1),dU=e=>Array.isArray(e)&&typeof e[0]!="number",hk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pk=e=>t=>1-e(1-t),By=e=>1-Math.sin(Math.acos(e)),gk=pk(By),hU=hk(By),vk=Jd(.33,1.53,.69,.99),$y=pk(vk),pU=hk($y),gU=e=>(e*=2)<1?.5*$y(e):.5*(2-Math.pow(2,-10*(e-1))),Hx={linear:cr,easeIn:cU,easeInOut:dk,easeOut:fU,circIn:By,circInOut:hU,circOut:gk,backIn:$y,backInOut:pU,backOut:vk,anticipate:gU},Ux=e=>{if(Array.isArray(e)){is(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jd(t,n,r,i)}else if(typeof e=="string")return is(Hx[e]!==void 0,`Invalid easing type '${e}'`),Hx[e];return e},Vy=(e,t)=>n=>!!(Xd(n)&&mH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),mk=(e,t,n)=>r=>{if(!Xd(r))return r;const[i,o,s,l]=r.match(Qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},vU=e=>Pl(0,255,e),dv={...Hc,transform:e=>Math.round(vU(e))},Ec={test:Vy("rgb","red"),parse:mk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dv.transform(e)+", "+dv.transform(t)+", "+dv.transform(n)+", "+xd(wd.transform(r))+")"};function mU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Cm={test:Vy("#"),parse:mU,transform:Ec.transform},Cf={test:Vy("hsl","hue"),parse:mk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+js.transform(xd(t))+", "+js.transform(xd(n))+", "+xd(wd.transform(r))+")"},oo={test:e=>Ec.test(e)||Cm.test(e)||Cf.test(e),parse:e=>Ec.test(e)?Ec.parse(e):Cf.test(e)?Cf.parse(e):Cm.parse(e),transform:e=>Xd(e)?e:e.hasOwnProperty("red")?Ec.transform(e):Cf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function hv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=hv(c,l,e+1/3),o=hv(c,l,e),s=hv(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const pv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},bU=[Cm,Ec,Cf],wU=e=>bU.find(t=>t.test(e));function Wx(e){const t=wU(e);is(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=yU(n)),n}const yk=(e,t)=>{const n=Wx(e),r=Wx(t),i={...n};return o=>(i.red=pv(n.red,r.red,o),i.green=pv(n.green,r.green,o),i.blue=pv(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),Ec.transform(i))};function xU(e){var t,n;return isNaN(e)&&Xd(e)&&(((t=e.match(Qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(zE))===null||n===void 0?void 0:n.length)||0)>0}const bk={regex:gH,countKey:"Vars",token:"${v}",parse:cr},wk={regex:zE,countKey:"Colors",token:"${c}",parse:oo.parse},xk={regex:Qp,countKey:"Numbers",token:"${n}",parse:Hc.parse};function gv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function wp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&gv(n,bk),gv(n,wk),gv(n,xk),n}function Sk(e){return wp(e).values}function Tk(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wp(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(bk.token,s[c]):c<r+n?l=l.replace(wk.token,oo.transform(s[c])):l=l.replace(xk.token,xd(s[c]));return l}}const SU=e=>typeof e=="number"?0:e;function TU(e){const t=Sk(e);return Tk(e)(t.map(SU))}const _l={test:xU,parse:Sk,createTransformer:Tk,getAnimatableNone:TU},Ck=(e,t)=>n=>`${n>0?t:e}`;function Ek(e,t){return typeof e=="number"?n=>nr(e,t,n):oo.test(e)?yk(e,t):e.startsWith("var(")?Ck(e,t):Ok(e,t)}const kk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Ek(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},CU=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ek(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Ok=(e,t)=>{const n=_l.createTransformer(t),r=wp(e),i=wp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Tl(kk(r.values,i.values),n):(Zd(!0,`Complex values '${e}' and '${t}' 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.`),Ck(e,t))},jd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zx=(e,t)=>n=>nr(e,t,n);function EU(e){return typeof e=="number"?zx:typeof e=="string"?oo.test(e)?yk:Ok:Array.isArray(e)?kk:typeof e=="object"?CU:zx}function kU(e,t,n){const r=[],i=n||EU(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||cr:t;l=Tl(c,l)}r.push(l)}return r}function Dk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(is(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=kU(t,r,i),l=s.length,c=d=>{let y=0;if(l>1)for(;y<e.length-2&&!(d<e[y+1]);y++);const p=jd(e[y],e[y+1],d);return s[y](p)};return n?d=>c(Pl(e[0],e[o-1],d)):c}function OU(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=jd(0,t,r);e.push(nr(n,1,i))}}function DU(e){const t=[0];return OU(t,e.length-1),t}function PU(e,t){return e.map(n=>n*t)}function _U(e,t){return e.map(()=>t||dk).splice(0,e.length-1)}function xp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=dU(r)?r.map(Ux):Ux(r),o={done:!1,value:t[0]},s=PU(n&&n.length===t.length?n:DU(t),e),l=Dk(s,t,{ease:Array.isArray(i)?i:_U(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function Pk(e,t){return t?e*(1e3/t):0}const RU=5;function _k(e,t,n){const r=Math.max(t-RU,0);return Pk(n-e(r),t-r)}const vv=.001,IU=.01,Yx=10,AU=.05,MU=1;function LU({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Zd(e<=Cl(Yx),"Spring duration must be 10 seconds or less");let s=1-t;s=Pl(AU,MU,s),e=Pl(IU,Yx,_u(e)),s<1?(i=d=>{const y=d*s,p=y*e,S=y-n,T=Em(d,s),_=Math.exp(-p);return vv-S/T*_},o=d=>{const p=d*s*e,S=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),R=Em(Math.pow(d,2),s);return(-i(d)+vv>0?-1:1)*((S-T)*_)/R}):(i=d=>{const y=Math.exp(-d*e),p=(d-n)*e+1;return-vv+y*p},o=d=>{const y=Math.exp(-d*e),p=(n-d)*(e*e);return y*p});const l=5/e,c=NU(i,o,l);if(e=Cl(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const FU=12;function NU(e,t,n){let r=n;for(let i=1;i<FU;i++)r=r-e(r)/t(r);return r}function Em(e,t){return e*Math.sqrt(1-t*t)}const jU=["duration","bounce"],BU=["stiffness","damping","mass"];function Gx(e,t){return t.some(n=>e[n]!==void 0)}function $U(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gx(e,BU)&&Gx(e,jU)){const n=LU(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Rk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:y,velocity:p,isResolvedFromDuration:S}=$U({...r,velocity:-_u(r.velocity||0)}),T=p||0,_=c/(2*Math.sqrt(l*d)),R=o-i,L=_u(Math.sqrt(l/d)),I=Math.abs(R)<5;n||(n=I?.01:2),t||(t=I?.005:.5);let U;if(_<1){const z=Em(L,_);U=re=>{const Z=Math.exp(-_*L*re);return o-Z*((T+_*L*R)/z*Math.sin(z*re)+R*Math.cos(z*re))}}else if(_===1)U=z=>o-Math.exp(-L*z)*(R+(T+L*R)*z);else{const z=L*Math.sqrt(_*_-1);U=re=>{const Z=Math.exp(-_*L*re),de=Math.min(z*re,300);return o-Z*((T+_*L*R)*Math.sinh(de)+z*R*Math.cosh(de))/z}}return{calculatedDuration:S&&y||null,next:z=>{const re=U(z);if(S)s.done=z>=y;else{let Z=T;z!==0&&(_<1?Z=_k(U,z,re):Z=0);const de=Math.abs(Z)<=n,x=Math.abs(o-re)<=t;s.done=de&&x}return s.value=s.done?o:re,s}}}function qx({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:y}){const p=e[0],S={done:!1,value:p},T=ye=>l!==void 0&&ye<l||c!==void 0&&ye>c,_=ye=>l===void 0?c:c===void 0||Math.abs(l-ye)<Math.abs(c-ye)?l:c;let R=n*t;const L=p+R,I=s===void 0?L:s(L);I!==L&&(R=I-p);const U=ye=>-R*Math.exp(-ye/r),z=ye=>I+U(ye),re=ye=>{const ae=U(ye),Me=z(ye);S.done=Math.abs(ae)<=d,S.value=S.done?I:Me};let Z,de;const x=ye=>{T(S.value)&&(Z=ye,de=Rk({keyframes:[S.value,_(S.value)],velocity:_k(z,ye,S.value),damping:i,stiffness:o,restDelta:d,restSpeed:y}))};return x(0),{calculatedDuration:null,next:ye=>{let ae=!1;return!de&&Z===void 0&&(ae=!0,re(ye),x(ye)),Z!==void 0&&ye>Z?de.next(ye-Z):(!ae&&re(ye),S)}}}const VU=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Hn.update(t,!0),stop:()=>Lu(t),now:()=>Li.isProcessing?Li.timestamp:performance.now()}},Xx=2e4;function Kx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Xx;)t+=n,r=e.next(t);return t>=Xx?1/0:t}const HU={decay:qx,inertia:qx,tween:xp,keyframes:xp,spring:Rk};function Sp({autoplay:e=!0,delay:t=0,driver:n=VU,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:y,onUpdate:p,...S}){let T=1,_=!1,R,L;const I=()=>{L=new Promise(xe=>{R=xe})};I();let U;const z=HU[i]||xp;let re;z!==xp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&is(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=Dk([0,100],r,{clamp:!1}),r=[0,100]);const Z=z({...S,keyframes:r});let de;l==="mirror"&&(de=z({...S,keyframes:[...r].reverse(),velocity:-(S.velocity||0)}));let x="idle",ye=null,ae=null,Me=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=Kx(Z));const{calculatedDuration:Ze}=Z;let Ve=1/0,Ye=1/0;Ze!==null&&(Ve=Ze+s,Ye=Ve*(o+1)-s);let ot=0;const me=xe=>{if(ae===null)return;T>0&&(ae=Math.min(ae,xe)),T<0&&(ae=Math.min(xe-Ye/T,ae)),ye!==null?ot=ye:ot=Math.round(xe-ae)*T;const We=ot-t*(T>=0?1:-1),Ue=T>=0?We<0:We>Ye;ot=Math.max(We,0),x==="finished"&&ye===null&&(ot=Ye);let Re=ot,Le=Z;if(o){const wt=Math.min(ot,Ye)/Ve;let vt=Math.floor(wt),Et=wt%1;!Et&&wt>=1&&(Et=1),Et===1&&vt--,vt=Math.min(vt,o+1),!!(vt%2)&&(l==="reverse"?(Et=1-Et,s&&(Et-=s/Ve)):l==="mirror"&&(Le=de)),Re=Pl(0,1,Et)*Ve}const Xe=Ue?{done:!1,value:r[0]}:Le.next(Re);re&&(Xe.value=re(Xe.value));let{done:lt}=Xe;!Ue&&Ze!==null&&(lt=T>=0?ot>=Ye:ot<=0);const mt=ye===null&&(x==="finished"||x==="running"&&lt);return p&&p(Xe.value),mt&&Je(),Xe},Oe=()=>{U&&U.stop(),U=void 0},He=()=>{x="idle",Oe(),R(),I(),ae=Me=null},Je=()=>{x="finished",y&&y(),Oe(),R()},st=()=>{if(_)return;U||(U=n(me));const xe=U.now();c&&c(),ye!==null?ae=xe-ye:(!ae||x==="finished")&&(ae=xe),x==="finished"&&I(),Me=ae,ye=null,x="running",U.start()};e&&st();const De={then(xe,We){return L.then(xe,We)},get time(){return _u(ot)},set time(xe){xe=Cl(xe),ot=xe,ye!==null||!U||T===0?ye=xe:ae=U.now()-xe/T},get duration(){const xe=Z.calculatedDuration===null?Kx(Z):Z.calculatedDuration;return _u(xe)},get speed(){return T},set speed(xe){xe===T||!U||(T=xe,De.time=_u(ot))},get state(){return x},play:st,pause:()=>{x="paused",ye=ot},stop:()=>{_=!0,x!=="idle"&&(x="idle",d&&d(),He())},cancel:()=>{Me!==null&&me(Me),He()},complete:()=>{x="finished"},sample:xe=>(ae=0,me(xe))};return De}function UU(e){let t;return()=>(t===void 0&&(t=e()),t)}const WU=UU(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zU=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Mh=10,YU=2e4,GU=(e,t)=>t.type==="spring"||e==="backgroundColor"||!uk(t.ease);function qU(e,t,{onUpdate:n,onComplete:r,...i}){if(!(WU()&&zU.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,c,d=!1;const y=()=>{c=new Promise(z=>{l=z})};y();let{keyframes:p,duration:S=300,ease:T,times:_}=i;if(GU(t,i)){const z=Sp({...i,repeat:0,delay:0});let re={done:!1,value:p[0]};const Z=[];let de=0;for(;!re.done&&de<YU;)re=z.sample(de),Z.push(re.value),de+=Mh;_=void 0,p=Z,S=de-Mh,T="linear"}const R=oU(e.owner.current,t,p,{...i,duration:S,ease:T,times:_}),L=()=>{d=!1,R.cancel()},I=()=>{d=!0,Hn.update(L),l(),y()};return R.onfinish=()=>{d||(e.set(aU(p,i)),r&&r(),I())},{then(z,re){return c.then(z,re)},attachTimeline(z){return R.timeline=z,R.onfinish=null,cr},get time(){return _u(R.currentTime||0)},set time(z){R.currentTime=Cl(z)},get speed(){return R.playbackRate},set speed(z){R.playbackRate=z},get duration(){return _u(S)},play:()=>{s||(R.play(),Lu(L))},pause:()=>R.pause(),stop:()=>{if(s=!0,R.playState==="idle")return;const{currentTime:z}=R;if(z){const re=Sp({...i,autoplay:!1});e.setWithVelocity(re.sample(z-Mh).value,re.sample(z).value,Mh)}I()},complete:()=>{d||R.finish()},cancel:I}}function XU({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:cr,pause:cr,stop:cr,then:o=>(o(),Promise.resolve()),cancel:cr,complete:cr});return t?Sp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const KU={type:"spring",stiffness:500,damping:25,restSpeed:10},ZU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JU={type:"keyframes",duration:.8},QU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eW=(e,{keyframes:t})=>t.length>2?JU:Vc.has(e)?e.startsWith("scale")?ZU(t[1]):KU:QU,km=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_l.test(t)||t==="0")&&!t.startsWith("url(")),tW=new Set(["brightness","contrast","saturate","opacity"]);function nW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qp)||[];if(!r)return e;const i=n.replace(r,"");let o=tW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const rW=/([a-z-]*)\(.*?\)/g,Om={..._l,getAnimatableNone:e=>{const t=e.match(rW);return t?t.map(nW).join(" "):e}},iW={...YE,color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:Om,WebkitFilter:Om},Hy=e=>iW[e];function Ik(e,t){let n=Hy(e);return n!==Om&&(n=_l),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ak=e=>/^0[^.\s]+$/.test(e);function oW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ak(e)}function aW(e,t,n,r){const i=km(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),oW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(l=o[d]);if(i&&c.length&&l)for(let d=0;d<c.length;d++){const y=c[d];o[y]=Ik(t,l)}return o}function sW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:c,elapsed:d,...y}){return!!Object.keys(y).length}function Uy(e,t){return e[t]||e.default||e}const uW={skipAnimations:!1},Wy=(e,t,n,r={})=>i=>{const o=Uy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Cl(s);const c=aW(t,e,n,o),d=c[0],y=c[c.length-1],p=km(e,d),S=km(e,y);Zd(p===S,`You are trying to animate ${e} from "${d}" to "${y}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${y} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:_=>{t.set(_),o.onUpdate&&o.onUpdate(_)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(sW(o)||(T={...T,...eW(e,T)}),T.duration&&(T.duration=Cl(T.duration)),T.repeatDelay&&(T.repeatDelay=Cl(T.repeatDelay)),!p||!S||iU.current||o.type===!1||uW.skipAnimations)return XU(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=qU(t,e,T);if(_)return _}return Sp(T)};function Tp(e){return!!(Do(e)&&e.add)}const Mk=e=>/^\-?\d*\.?\d+$/.test(e);function zy(e,t){e.indexOf(t)===-1&&e.push(t)}function Yy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gy{constructor(){this.subscriptions=[]}add(t){return zy(this.subscriptions,t),()=>Yy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zx=new Set;function qy(e,t,n){e||Zx.has(t)||(console.warn(t),n&&console.warn(n),Zx.add(t))}const lW=e=>!isNaN(parseFloat(e));class cW{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=Li;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Hn.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=()=>Hn.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=t,this.canTrackVelocity=lW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&qy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Hn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Pk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(e,t){return new cW(e,t)}const Lk=e=>t=>t.test(e),fW={test:e=>e==="auto",parse:e=>e},Fk=[Hc,Bt,js,vl,bH,yH,fW],ad=e=>Fk.find(Lk(e)),dW=[...Fk,oo,_l],hW=e=>dW.find(Lk(e));function pW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function gW(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=MH(o[s]);pW(e,s,l)}}function vW(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const c=o[l],d=t[c];let y=null;Array.isArray(d)&&(y=d[0]),y===null&&(y=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),y!=null&&(typeof y=="string"&&(Mk(y)||Ak(y))?y=parseFloat(y):!hW(y)&&_l.test(d)&&(y=Ik(c,d)),e.addValue(c,Af(y,{owner:e})),n[c]===void 0&&(n[c]=y),y!==null&&e.setBaseTarget(c,y))}}function mW(e,t){return t?(t[e]||t.default||t).from:void 0}function yW(e,t,n){const r={};for(const i in e){const o=mW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function bW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Nk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],y=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const S=e.getValue(p),T=l[p];if(!S||T===void 0||y&&bW(y,p))continue;const _={delay:n,elapsed:0,...Uy(o||{},p)};if(window.HandoffAppearAnimations){const I=e.getProps()[jE];if(I){const U=window.HandoffAppearAnimations(I,p,S,Hn);U!==null&&(_.elapsed=U,_.isHandoff=!0)}}let R=!_.isHandoff&&!wW(S,T);if(_.type==="spring"&&(S.getVelocity()||_.velocity)&&(R=!1),S.animation&&(R=!1),R)continue;S.start(Wy(p,S,T,e.shouldReduceMotion&&Vc.has(p)?{type:!1}:_));const L=S.animation;Tp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&gW(e,s)}),d}function Dm(e,t,n={}){const r=tg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Nk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:y,staggerDirection:p}=i;return xW(e,t,d+c,y,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function xW(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(SW).forEach((d,y)=>{d.notify("AnimationStart",t),s.push(Dm(d,t,{...o,delay:n+c(y)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function SW(e,t){return e.sortNodePosition(t)}function TW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Dm(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Dm(e,t,n);else{const i=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(Nk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const CW=[..._y].reverse(),EW=_y.length;function kW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>TW(e,n,r)))}function OW(e){let t=kW(e);const n=PW();let r=!0;const i=(c,d)=>{const y=tg(e,d);if(y){const{transition:p,transitionEnd:S,...T}=y;c={...c,...T,...S}}return c};function o(c){t=c(e)}function s(c,d){const y=e.getProps(),p=e.getVariantContext(!0)||{},S=[],T=new Set;let _={},R=1/0;for(let I=0;I<EW;I++){const U=CW[I],z=n[U],re=y[U]!==void 0?y[U]:p[U],Z=Fd(re),de=U===d?z.isActive:null;de===!1&&(R=I);let x=re===p[U]&&re!==y[U]&&Z;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),z.protectedKeys={..._},!z.isActive&&de===null||!re&&!z.prevProp||Zp(re)||typeof re=="boolean")continue;let ae=DW(z.prevProp,re)||U===d&&z.isActive&&!x&&Z||I>R&&Z,Me=!1;const Ze=Array.isArray(re)?re:[re];let Ve=Ze.reduce(i,{});de===!1&&(Ve={});const{prevResolvedValues:Ye={}}=z,ot={...Ye,...Ve},me=Oe=>{ae=!0,T.has(Oe)&&(Me=!0,T.delete(Oe)),z.needsAnimating[Oe]=!0};for(const Oe in ot){const He=Ve[Oe],Je=Ye[Oe];if(_.hasOwnProperty(Oe))continue;let st=!1;bp(He)&&bp(Je)?st=!ak(He,Je):st=He!==Je,st?He!==void 0?me(Oe):T.add(Oe):He!==void 0&&T.has(Oe)?me(Oe):z.protectedKeys[Oe]=!0}z.prevProp=re,z.prevResolvedValues=Ve,z.isActive&&(_={..._,...Ve}),r&&e.blockInitialAnimation&&(ae=!1),ae&&(!x||Me)&&S.push(...Ze.map(Oe=>({animation:Oe,options:{type:U,...c}})))}if(T.size){const I={};T.forEach(U=>{const z=e.getBaseTarget(U);z!==void 0&&(I[U]=z)}),S.push({animation:I})}let L=!!S.length;return r&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(S):Promise.resolve()}function l(c,d,y){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(T=>{var _;return(_=T.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const S=s(y,c);for(const T in n)n[T].protectedKeys={};return S}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function DW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ak(t,e):!1}function yc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function PW(){return{animate:yc(!0),whileInView:yc(),whileHover:yc(),whileTap:yc(),whileDrag:yc(),whileFocus:yc(),exit:yc()}}class _W extends Al{constructor(t){super(t),t.animationState||(t.animationState=OW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let RW=0;class IW extends Al{constructor(){super(...arguments),this.id=RW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const AW={animation:{Feature:_W},exit:{Feature:IW}},Jx=(e,t)=>Math.abs(e-t);function MW(e,t){const n=Jx(e.x,t.x),r=Jx(e.y,t.y);return Math.sqrt(n**2+r**2)}class jk{constructor(t,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 p=yv(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=MW(p.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:_}=p,{timestamp:R}=Li;this.history.push({..._,timestamp:R});const{onStart:L,onMove:I}=this.handlers;S||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),I&&I(this.lastMoveEvent,p)},this.handlePointerMove=(p,S)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=mv(S,this.transformPagePoint),Hn.update(this.updatePoint,!0)},this.handlePointerUp=(p,S)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=yv(p.type==="pointercancel"?this.lastMoveEventInfo:mv(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),_&&_(p,L)},!tk(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=eg(t),l=mv(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=Li;this.history=[{...c,timestamp:d}];const{onSessionStart:y}=n;y&&y(t,yv(l,this.history)),this.removeListeners=Tl(Pu(this.contextWindow,"pointermove",this.handlePointerMove),Pu(this.contextWindow,"pointerup",this.handlePointerUp),Pu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Lu(this.updatePoint)}}function mv(e,t){return t?{point:t(e.point)}:e}function Qx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:Qx(e,Bk(t)),offset:Qx(e,LW(t)),velocity:FW(t,.1)}}function LW(e){return e[0]}function Bk(e){return e[e.length-1]}function FW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Bk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cl(t)));)n--;if(!r)return{x:0,y:0};const o=_u(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ea(e){return e.max-e.min}function Pm(e,t=0,n=.01){return Math.abs(e-t)<=n}function eS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(Pm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(Pm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Sd(e,t,n,r){eS(e.x,t.x,n.x,r?r.originX:void 0),eS(e.y,t.y,n.y,r?r.originY:void 0)}function tS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function NW(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}function nS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Td(e,t,n){nS(e.x,t.x,n.x),nS(e.y,t.y,n.y)}function jW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nr(n,e,r.max):Math.min(e,n)),e}function rS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function BW(e,{top:t,left:n,bottom:r,right:i}){return{x:rS(e.x,n,i),y:rS(e.y,t,r)}}function iS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $W(e,t){return{x:iS(e.x,t.x),y:iS(e.y,t.y)}}function VW(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=jd(t.min,t.max-r,e.min):r>i&&(n=jd(e.min,e.max-i,t.min)),Pl(0,1,n)}function HW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _m=.35;function UW(e=_m){return e===!1?e=0:e===!0&&(e=_m),{x:oS(e,"left","right"),y:oS(e,"top","bottom")}}function oS(e,t,n){return{min:aS(e,t),max:aS(e,n)}}function aS(e,t){return typeof e=="number"?e:e[t]||0}const sS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:sS(),y:sS()}),uS=()=>({min:0,max:0}),Dr=()=>({x:uS(),y:uS()});function Ea(e){return[e("x"),e("y")]}function $k({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function WW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zW(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bv(e){return e===void 0||e===1}function Rm({scale:e,scaleX:t,scaleY:n}){return!bv(e)||!bv(t)||!bv(n)}function xc(e){return Rm(e)||Vk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Vk(e){return lS(e.x)||lS(e.y)}function lS(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function cS(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function Im(e,t=0,n=1,r,i){e.min=cS(e.min,t,n,r,i),e.max=cS(e.max,t,n,r,i)}function Hk(e,{x:t,y:n}){Im(e.x,t.translate,t.scale,t.originPoint),Im(e.y,n.translate,n.scale,n.originPoint)}function YW(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Hk(e,s)),r&&xc(o.latestValues)&&kf(e,o.latestValues))}t.x=fS(t.x),t.y=fS(t.y)}function fS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function yl(e,t){e.min=e.min+t,e.max=e.max+t}function dS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Im(e,t[n],t[r],s,t.scale)}const GW=["x","scaleX","originX"],qW=["y","scaleY","originY"];function kf(e,t){dS(e.x,t,GW),dS(e.y,t,qW)}function Uk(e,t){return $k(zW(e.getBoundingClientRect(),t))}function XW(e,t,n){const r=Uk(e,n),{scroll:i}=t;return i&&(yl(r.x,i.offset.x),yl(r.y,i.offset.y)),r}const Wk=({current:e})=>e?e.ownerDocument.defaultView:null,KW=new WeakMap;class ZW{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Dr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(eg(y,"page").point)},o=(y,p)=>{const{drag:S,dragPropagation:T,onDragStart:_}=this.getProps();if(S&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rk(S),!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),Ea(L=>{let I=this.getAxisMotionValue(L).get()||0;if(js.test(I)){const{projection:U}=this.visualElement;if(U&&U.layout){const z=U.layout.layoutBox[L];z&&(I=ea(z)*(parseFloat(I)/100))}}this.originPoint[L]=I}),_&&Hn.update(()=>_(y,p),!1,!0);const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},s=(y,p)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:_,onDrag:R}=this.getProps();if(!S&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=JW(L),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",p.point,L),this.updateAxis("y",p.point,L),this.visualElement.render(),R&&R(y,p)},l=(y,p)=>this.stop(y,p),c=()=>Ea(y=>{var p;return this.getAnimationState(y)==="paused"&&((p=this.getAxisMotionValue(y).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new jk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Wk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Hn.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.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(t,n,r){const{drag:i}=this.getProps();if(!r||!Lh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=jW(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=BW(i.layoutBox,n):this.constraints=!1,this.elastic=UW(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=HW(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;is(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=XW(r,i.root,this.visualElement.getTransformPagePoint());let s=$W(i.layout.layoutBox,o);if(n){const l=n(WW(s));this.hasMutatedConstraints=!!l,l&&(s=$k(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Ea(y=>{if(!Lh(y,n,this.currentDirection))return;let p=c&&c[y]||{};s&&(p={min:0,max:0});const S=i?200:1e6,T=i?40:1e7,_={type:"inertia",velocity:r?t[y]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(y,_)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Wy(t,r,0,n))}stopAnimation(){Ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ea(n=>{const{drag:r}=this.getProps();if(!Lh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-nr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ea(s=>{const l=this.getAxisMotionValue(s);if(l){const c=l.get();i[s]=VW({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ea(s=>{if(!Lh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;KW.set(this.visualElement,this);const t=this.visualElement.current,n=Pu(t,"pointerdown",c=>{const{drag:d,dragListener:y=!0}=this.getProps();d&&y&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tf(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ku(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(y=>{const p=this.getAxisMotionValue(y);p&&(this.originPoint[y]+=c[y].translate,p.set(p.get()+c[y].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=_m,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Lh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function JW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class QW extends Al{constructor(t){super(t),this.removeGroupControls=cr,this.removeListeners=cr,this.controls=new ZW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const hS=e=>(t,n)=>{e&&Hn.update(()=>e(t,n))};class ez extends Al{constructor(){super(...arguments),this.removePointerDownListener=cr}onPointerDown(t){this.session=new jk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hS(t),onStart:hS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Hn.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Pu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function tz(){const e=Q.useContext(Dy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=Q.useId();return Q.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Kh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const sd={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=pS(e,t.target.x),r=pS(e,t.target.y);return`${n}% ${r}%`}},nz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_l.parse(e);if(i.length>5)return r;const o=_l.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const d=nr(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class rz extends Q.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;fH(iz),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(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Hn.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zk(e){const[t,n]=tz(),r=Q.useContext($E);return Q.createElement(rz,{...e,layoutGroup:r,switchLayoutGroup:Q.useContext(VE),isPresent:t,safeToRemove:n})}const iz={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:nz},Yk=["TopLeft","TopRight","BottomLeft","BottomRight"],oz=Yk.length,gS=e=>typeof e=="string"?parseFloat(e):e,vS=e=>typeof e=="number"||Bt.test(e);function az(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,sz(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,uz(r))):o&&(e.opacity=nr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<oz;s++){const l=`border${Yk[s]}Radius`;let c=mS(t,l),d=mS(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||vS(c)===vS(d)?(e[l]=Math.max(nr(gS(c),gS(d),r),0),(js.test(d)||js.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function mS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sz=Gk(0,.5,gk),uz=Gk(.5,.95,cr);function Gk(e,t,n){return r=>r<e?0:r>t?1:n(jd(e,t,r))}function yS(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){yS(e.x,t.x),yS(e.y,t.y)}function bS(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function lz(e,t=0,n=1,r=.5,i,o=e,s=e){if(js.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=nr(o.min,o.max,r);e===o&&(l-=t),e.min=bS(e.min,t,n,l,i),e.max=bS(e.max,t,n,l,i)}function wS(e,t,[n,r,i],o,s){lz(e,t[n],t[r],t[i],t.scale,o,s)}const cz=["x","scaleX","originX"],fz=["y","scaleY","originY"];function xS(e,t,n,r){wS(e.x,t,cz,n?n.x:void 0,r?r.x:void 0),wS(e.y,t,fz,n?n.y:void 0,r?r.y:void 0)}function SS(e){return e.translate===0&&e.scale===1}function qk(e){return SS(e.x)&&SS(e.y)}function dz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Xk(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function TS(e){return ea(e.x)/ea(e.y)}class hz{constructor(){this.members=[]}add(t){zy(this.members,t),t.scheduleRender()}remove(t){if(Yy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function CS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:y}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),y&&(r+=`rotateY(${y}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const pz=(e,t)=>e.depth-t.depth;class gz{constructor(){this.children=[],this.isDirty=!1}add(t){zy(this.children,t),this.isDirty=!0}remove(t){Yy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pz),this.isDirty=!1,this.children.forEach(t)}}function vz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Lu(r),e(o-t))};return Hn.read(r,!0),()=>Lu(r)}function mz(e){window.MotionDebug&&window.MotionDebug.record(e)}function yz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function bz(e,t,n){const r=Do(e)?e:Af(e);return r.start(Wy("",r,t,n)),r.animation}const ES=["","X","Y","Z"],wz={visibility:"hidden"},kS=1e3;let xz=0;const Sc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Kk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=xz++,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,Sc.totalNodes=Sc.resolvedTargetDeltas=Sc.recalculatedProjection=0,this.nodes.forEach(Cz),this.nodes.forEach(Pz),this.nodes.forEach(_z),this.nodes.forEach(Ez),mz(Sc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new gz)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Gy),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=yz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:y}=this.options;if(y&&!y.current&&y.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let p;const S=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=vz(S,250),Kh.hasAnimatedSinceResize&&(Kh.hasAnimatedSinceResize=!1,this.nodes.forEach(DS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&y&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:S,hasRelativeTargetChanged:T,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const R=this.options.transition||y.getDefaultTransition()||Lz,{onLayoutAnimationStart:L,onLayoutAnimationComplete:I}=y.getProps(),U=!this.targetLayout||!Xk(this.targetLayout,_)||T,z=!S&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||z||S&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,z);const re={...Uy(R,"layout"),onPlay:L,onComplete:I};(y.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else S||DS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lu(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(Rz),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const p=this.path[y];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(OS);return}this.isUpdating||this.nodes.forEach(Oz),this.isUpdating=!1,this.nodes.forEach(Dz),this.nodes.forEach(Sz),this.nodes.forEach(Tz),this.clearAllSnapshots();const l=performance.now();Li.delta=Pl(0,1e3/60,l-Li.timestamp),Li.timestamp=l,Li.isProcessing=!0,lv.update.process(Li),lv.preRender.process(Li),lv.render.process(Li),Li.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(kz),this.sharedNodes.forEach(Iz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Hn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Hn.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Dr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!qk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,y=d!==this.prevTransformTemplateValue;s&&(l||xc(this.latestValues)||y)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),Fz(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Dr();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(yl(l.x,c.offset.x),yl(l.y,c.offset.y)),l}removeElementScroll(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:y,options:p}=d;if(d!==this.root&&y&&p.layoutScroll){if(y.isRoot){Ca(l,s);const{scroll:S}=this.root;S&&(yl(l.x,-S.offset.x),yl(l.y,-S.offset.y))}yl(l.x,y.offset.x),yl(l.y,y.offset.y)}}return l}applyTransform(s,l=!1){const c=Dr();Ca(c,s);for(let d=0;d<this.path.length;d++){const y=this.path[d];!l&&y.options.layoutScroll&&y.scroll&&y!==y.root&&kf(c,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),xc(y.latestValues)&&kf(c,y.latestValues)}return xc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const l=Dr();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!xc(d.latestValues))continue;Rm(d.latestValues)&&d.updateSnapshot();const y=Dr(),p=d.measurePageBox();Ca(y,p),xS(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,y)}return xc(this.latestValues)&&xS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Li.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:S}=this.options;if(!(!this.layout||!(p||S))){if(this.resolvedRelativeTargetAt=Li.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),Td(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Dr(),this.targetWithTransforms=Dr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),NW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Hk(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dr(),this.relativeTargetOrigin=Dr(),Td(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Rm(this.parent.latestValues)||Vk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Li.timestamp&&(d=!1),d)return;const{layout:y,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||p))return;Ca(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,T=this.treeScale.y;YW(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:_}=l;if(!_){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const R=this.projectionTransform;Sd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),this.projectionTransform=CS(this.projectionDelta,this.treeScale),(this.projectionTransform!==R||this.treeScale.x!==S||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Sc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const c=this.snapshot,d=c?c.latestValues:{},y={...this.latestValues},p=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const S=Dr(),T=c?c.source:void 0,_=this.layout?this.layout.source:void 0,R=T!==_,L=this.getStack(),I=!L||L.members.length<=1,U=!!(R&&!I&&this.options.crossfade===!0&&!this.path.some(Mz));this.animationProgress=0;let z;this.mixTargetDelta=re=>{const Z=re/1e3;PS(p.x,s.x,Z),PS(p.y,s.y,Z),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Td(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Az(this.relativeTarget,this.relativeTargetOrigin,S,Z),z&&dz(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Dr()),Ca(z,this.relativeTarget)),R&&(this.animationValues=y,az(y,d,this.latestValues,Z,U,I)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hn.update(()=>{Kh.hasAnimatedSinceResize=!0,this.currentAnimation=bz(0,kS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:y}=s;if(!(!l||!c||!d)){if(this!==s&&this.layout&&d&&Zk(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Dr();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const S=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+S}Ca(l,c),kf(l,y),Sd(this.projectionDeltaWithTransform,this.layoutCorrected,l,y)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new hz),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let y=0;y<ES.length;y++){const p="rotate"+ES[y];c[p]&&(d[p]=c[p],s.setStaticValue(p,0))}s.render();for(const y in d)s.setStaticValue(y,d[y]);s.scheduleRender()}getProjectionStyles(s){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wz;const d={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||"",d.transform=y?y(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const R={};return this.options.layoutId&&(R.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,R.pointerEvents=Xh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!xc(this.latestValues)&&(R.transform=y?y({},""):"none",this.hasProjected=!1),R}const S=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=CS(this.projectionDeltaWithTransform,this.treeScale,S),y&&(d.transform=y(S,d.transform));const{x:T,y:_}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${_.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(l=S.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=p===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const R in mp){if(S[R]===void 0)continue;const{correct:L,applyTo:I}=mp[R],U=d.transform==="none"?S[R]:L(S[R],p);if(I){const z=I.length;for(let re=0;re<z;re++)d[I[re]]=U}else d[R]=U}return this.options.layoutId&&(d.pointerEvents=p===this?Xh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(OS),this.root.sharedNodes.clear()}}}function Sz(e){e.updateLayout()}function Tz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(S);S.min=r[p].min,S.max=S.min+T}):Zk(o,n.layoutBox,r)&&Ea(p=>{const S=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const l=Ef();Sd(l,r,n.layoutBox);const c=Ef();s?Sd(c,e.applyTransform(i,!0),n.measuredBox):Sd(c,r,n.layoutBox);const d=!qk(l);let y=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:S,layout:T}=p;if(S&&T){const _=Dr();Td(_,n.layoutBox,S.layoutBox);const R=Dr();Td(R,r,T.layoutBox),Xk(_,R)||(y=!0),p.options.layoutRoot&&(e.relativeTarget=R,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Cz(e){Sc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ez(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kz(e){e.clearSnapshot()}function OS(e){e.clearMeasurements()}function Oz(e){e.isLayoutDirty=!1}function Dz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function DS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pz(e){e.resolveTargetDelta()}function _z(e){e.calcProjection()}function Rz(e){e.resetRotation()}function Iz(e){e.removeLeadSnapshot()}function PS(e,t,n){e.translate=nr(t.translate,0,n),e.scale=nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _S(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function Az(e,t,n,r){_S(e.x,t.x,n.x,r),_S(e.y,t.y,n.y,r)}function Mz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lz={duration:.45,ease:[.4,0,.1,1]},RS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),IS=RS("applewebkit/")&&!RS("chrome/")?Math.round:cr;function AS(e){e.min=IS(e.min),e.max=IS(e.max)}function Fz(e){AS(e.x),AS(e.y)}function Zk(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pm(TS(t),TS(n),.2)}const Nz=Kk({attachResizeListener:(e,t)=>ku(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wv={current:void 0},Jk=Kk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wv.current){const e=new Nz({});e.mount(window),e.setOptions({layoutScroll:!0}),wv.current=e}return wv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jz={pan:{Feature:ez},drag:{Feature:QW,ProjectionNode:Jk,MeasureLayout:zk}},Bz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $z(e){const t=Bz.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const Vz=4;function Am(e,t,n=1){is(n<=Vz,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=$z(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Mk(s)?parseFloat(s):s}else return Sm(i)?Am(i,t,n+1):i}function Hz(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Sm(o))return;const s=Am(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Sm(o))continue;const s=Am(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const Uz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Qk=e=>Uz.has(e),Wz=e=>Object.keys(e).some(Qk),Fh=e=>e===Hc||e===Bt,MS=(e,t)=>parseFloat(e.split(", ")[t]),LS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return MS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?MS(o[1],e):0}},zz=new Set(["x","y","z"]),Yz=qd.filter(e=>!zz.has(e));function Gz(e){const t=[];return Yz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Mf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:LS(4,13),y:LS(5,14)};Mf.translateX=Mf.x;Mf.translateY=Mf.y;const qz=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Mf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const y=t.getValue(d);y&&y.jump(l[d]),e[d]=Mf[d](c,o)}),e},Xz=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Qk);let o=[],s=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let y=n[c],p=ad(y);const S=t[c];let T;if(bp(S)){const _=S.length,R=S[0]===null?1:0;y=S[R],p=ad(y);for(let L=R;L<_&&S[L]!==null;L++)T?is(ad(S[L])===T,"All keyframes must be of the same type"):(T=ad(S[L]),is(T===p||Fh(p)&&Fh(T),"Keyframes must be of the same dimension as the current value"))}else T=ad(S);if(p!==T)if(Fh(p)&&Fh(T)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&T===Bt&&(t[c]=S.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(y===0||S===0)?y===0?d.set(T.transform(y)):t[c]=p.transform(S):(s||(o=Gz(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=qz(t,e,l);return o.length&&o.forEach(([y,p])=>{e.getValue(y).set(p)}),e.render(),Kp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Kz(e,t,n,r){return Wz(t)?Xz(e,t,n,r):{target:t,transitionEnd:r}}const Zz=(e,t,n,r)=>{const i=Hz(e,t,r);return t=i.target,r=i.transitionEnd,Kz(e,t,n,r)},Mm={current:null},eO={current:!1};function Jz(){if(eO.current=!0,!!Kp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mm.current=e.matches;e.addListener(t),t()}else Mm.current=!1}function Qz(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Do(o))e.addValue(i,o),Tp(r)&&r.add(i),process.env.NODE_ENV==="development"&&qy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Do(s))e.addValue(i,Af(o,{owner:e})),Tp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Af(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const FS=new WeakMap,tO=Object.keys(Nd),e5=tO.length,NS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],t5=Ry.length;class n5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Hn.render(this.render,!1,!0);const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jp(n),this.isVariantNode=BE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...y}=this.scrapeMotionValuesFromProps(n,{});for(const p in y){const S=y[p];l[p]!==void 0&&Do(S)&&(S.set(l[p],!1),Tp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,FS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),eO.current||Jz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mm.current,process.env.NODE_ENV!=="production"&&qy(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(){FS.delete(this.current),this.projection&&this.projection.unmount(),Lu(this.notifyUpdate),Lu(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Vc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Hn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Zd(!1,c):is(!1,c)}for(let c=0;c<e5;c++){const d=tO[c],{isEnabled:y,Feature:p,ProjectionNode:S,MeasureLayout:T}=Nd[d];S&&(s=S),y(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),T&&(l=T))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:y,dragConstraints:p,layoutScroll:S,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!y||p&&Tf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:S,layoutRoot:T})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];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):Dr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<NS.length;r++){const i=NS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Qz(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)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<t5;r++){const i=Ry[r],o=this.props[i];(Fd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Af(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jy(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Do(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nO extends n5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=yW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){vW(this,r,s);const l=Zz(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function r5(e){return window.getComputedStyle(e)}class i5 extends nO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}else{const r=r5(t),i=(WE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Uk(t,n)}build(t,n,r,i){Ay(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Ny(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Do(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){KE(t,n,r,i)}}class o5 extends nO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vc.has(n)){const r=Hy(n);return r&&r.default||0}return n=ZE.has(n)?n:Py(n),t.getAttribute(n)}measureInstanceViewportBox(){return Dr()}scrapeMotionValuesFromProps(t,n){return QE(t,n)}build(t,n,r,i){Ly(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){JE(t,n,r,i)}mount(t){this.isSVGTag=Fy(t.tagName),super.mount(t)}}const a5=(e,t)=>Iy(e)?new o5(t,{enableHardwareAcceleration:!1}):new i5(t,{enableHardwareAcceleration:!0}),s5={layout:{ProjectionNode:Jk,MeasureLayout:zk}},u5={...AW,...tU,...jz,...s5},rO=lH((e,t)=>HH(e,t,u5,a5));function iO(e){return _p({tag:"svg",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:[]}]})(e)}function oO(e){return _p({tag:"svg",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:[]}]})(e)}function aO(e,t){return t?e:void 0}function l5(e){return it.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:it.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 c5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=Q.useState({top:0,left:0}),s=Q.useRef(null),[l,c]=Q.useState("auto");return Q.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),y=s.current.getBoundingClientRect();let p=d.top;const S=d.left+d.width,T=y.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+y.height>window.innerHeight&&!T&&(p=d.top-y.height+d.height),o({top:p,left:S})}},[n,s]),r?t({maxHeight:l}):k1.createPortal(it.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:t({maxHeight:l})}),n.current)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(this,arguments)}const f5=Object.freeze(Object.defineProperty({__proto__:null,default:Lf},Symbol.toStringTag,{value:"Module"}));function sO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zh(e,t)}/*!
38
12
  * content-type
39
13
  * Copyright(c) 2015 Douglas Christopher Wilson
40
14
  * MIT Licensed
41
- */var jS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,h5=/\\([\u000b\u0020-\u00ff])/g,p5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,g5=v5;function v5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?m5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!p5.test(r))throw new TypeError("invalid media type");var i=new y5(r.toLowerCase());if(n!==-1){var o,s,l;for(jS.lastIndex=n;s=jS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),l=s[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(h5,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function m5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function y5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,lO=function(t){return t.cloneNode(!0)},BS=function(){return window.location.protocol==="file:"},cO=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=g5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(BS()?"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: "+t);if(i.status===200||BS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(l){if(i.abort(),l instanceof Error)r(l,i);else throw l}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},bl={},$S=function(t,n){bl[t]=bl[t]||[],bl[t].push(n)},b5=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(bl[t])){var c=bf.get(t),d=bl[t][s];c instanceof SVGSVGElement&&d(null,lO(c)),c instanceof Error&&d(c),s===bl[t].length-1&&delete bl[t]}},0)},r=0,i=bl[t].length;r<i;r++)n(r)},w5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){$S(t,r);return}if(i instanceof SVGSVGElement){r(null,lO(i));return}}bf.set(t,void 0),$S(t,r),cO(t,n,function(o,s){var l;o?bf.set(t,o):((l=s.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),b5(t)})},x5=function(t,n,r){cO(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},S5=0,T5=function(){return++S5},Rs=[],VS={},C5="http://www.w3.org/2000/svg",xv="http://www.w3.org/1999/xlink",HS=function(t,n,r,i,o,s,l){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){l(new Error("Invalid data-src or src attribute"));return}if(Rs.indexOf(t)!==-1){Rs.splice(Rs.indexOf(t),1),t=null;return}Rs.push(t),t.setAttribute("src","");var d=i?w5:x5;d(c,o,function(y,p){if(!p){Rs.splice(Rs.indexOf(t),1),t=null,l(y);return}var S=t.getAttribute("id");S&&p.setAttribute("id",S);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var _=t.getAttribute("width");_&&p.setAttribute("width",_);var R=t.getAttribute("height");R&&p.setAttribute("height",R);var L=Array.from(new Set(Qo(Qo(Qo([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",L);var I=t.getAttribute("style");I&&p.setAttribute("style",I),p.setAttribute("data-src",c);var U=[].filter.call(t.attributes,function(Je){return/^data-\w[\w-]*$/.test(Je.name)});if(Array.prototype.forEach.call(U,function(Je){Je.name&&Je.value&&p.setAttribute(Je.name,Je.value)}),r){var z={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"]},re,Z,de,x,ye;Object.keys(z).forEach(function(Je){re=Je,de=z[Je],Z=p.querySelectorAll(re+"[id]");for(var st=function(Ue,Re){x=Z[Ue].id,ye=x+"-"+T5();var Le;Array.prototype.forEach.call(de,function($t){Le=p.querySelectorAll("["+$t+'*="'+x+'"]');for(var Ht=0,Xn=Le.length;Ht<Xn;Ht++){var br=Le[Ht].getAttribute($t);br&&!br.match(new RegExp('url\\("?#'+x+'"?\\)'))||Le[Ht].setAttribute($t,"url(#"+ye+")")}});for(var Xe=p.querySelectorAll("[*|href]"),lt=[],mt=0,wt=Xe.length;mt<wt;mt++){var vt=Xe[mt].getAttributeNS(xv,"href");vt&&vt.toString()==="#"+Z[Ue].id&&lt.push(Xe[mt])}for(var Et=0,rt=lt.length;Et<rt;Et++)lt[Et].setAttributeNS(xv,"href","#"+ye);Z[Ue].id=ye},De=0,xe=Z.length;De<xe;De++)st(De)})}p.removeAttribute("xmlns:a");for(var ae=p.querySelectorAll("script"),Me=[],Ze,Ve,Ye=0,ot=ae.length;Ye<ot;Ye++)Ve=ae[Ye].getAttribute("type"),(!Ve||Ve==="application/ecmascript"||Ve==="application/javascript"||Ve==="text/javascript")&&(Ze=ae[Ye].innerText||ae[Ye].textContent,Ze&&Me.push(Ze),p.removeChild(ae[Ye]));if(Me.length>0&&(n==="always"||n==="once"&&!VS[c])){for(var me=0,Oe=Me.length;me<Oe;me++)new Function(Me[me])(window);VS[c]=!0}var He=p.querySelectorAll("style");if(Array.prototype.forEach.call(He,function(Je){Je.textContent+=""}),p.setAttribute("xmlns",C5),p.setAttribute("xmlns:xlink",xv),s(p),!t.parentNode){Rs.splice(Rs.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),Rs.splice(Rs.indexOf(t),1),t=null,l(null,p)})},E5=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,l=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,y=r.cacheRequests,p=y===void 0?!0:y,S=r.evalScripts,T=S===void 0?"never":S,_=r.httpRequestWithCredentials,R=_===void 0?!1:_,L=r.renumerateIRIElements,I=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,z=0,re=t.length;z<re;z++)HS(t[z],T,I,p,R,d,function(Z,de){l(Z,de),t&&"length"in t&&t.length===++U&&o(U)});else t?HS(t,T,I,p,R,d,function(Z,de){l(Z,de),o(1),t=null}):o(0)},Lm={exports:{}},Nh={exports:{}},wn={};/** @license React v16.13.1
15
+ */var jS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,d5=/\\([\u000b\u0020-\u00ff])/g,h5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,p5=g5;function g5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?v5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!h5.test(r))throw new TypeError("invalid media type");var i=new m5(r.toLowerCase());if(n!==-1){var o,s,l;for(jS.lastIndex=n;s=jS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),l=s[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(d5,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function v5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function m5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,uO=function(t){return t.cloneNode(!0)},BS=function(){return window.location.protocol==="file:"},lO=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=p5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(BS()?"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: "+t);if(i.status===200||BS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(l){if(i.abort(),l instanceof Error)r(l,i);else throw l}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},bl={},$S=function(t,n){bl[t]=bl[t]||[],bl[t].push(n)},y5=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(bl[t])){var c=bf.get(t),d=bl[t][s];c instanceof SVGSVGElement&&d(null,uO(c)),c instanceof Error&&d(c),s===bl[t].length-1&&delete bl[t]}},0)},r=0,i=bl[t].length;r<i;r++)n(r)},b5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){$S(t,r);return}if(i instanceof SVGSVGElement){r(null,uO(i));return}}bf.set(t,void 0),$S(t,r),lO(t,n,function(o,s){var l;o?bf.set(t,o):((l=s.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),y5(t)})},w5=function(t,n,r){lO(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},x5=0,S5=function(){return++x5},Rs=[],VS={},T5="http://www.w3.org/2000/svg",xv="http://www.w3.org/1999/xlink",HS=function(t,n,r,i,o,s,l){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){l(new Error("Invalid data-src or src attribute"));return}if(Rs.indexOf(t)!==-1){Rs.splice(Rs.indexOf(t),1),t=null;return}Rs.push(t),t.setAttribute("src","");var d=i?b5:w5;d(c,o,function(y,p){if(!p){Rs.splice(Rs.indexOf(t),1),t=null,l(y);return}var S=t.getAttribute("id");S&&p.setAttribute("id",S);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var _=t.getAttribute("width");_&&p.setAttribute("width",_);var R=t.getAttribute("height");R&&p.setAttribute("height",R);var L=Array.from(new Set(Qo(Qo(Qo([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",L);var I=t.getAttribute("style");I&&p.setAttribute("style",I),p.setAttribute("data-src",c);var U=[].filter.call(t.attributes,function(Je){return/^data-\w[\w-]*$/.test(Je.name)});if(Array.prototype.forEach.call(U,function(Je){Je.name&&Je.value&&p.setAttribute(Je.name,Je.value)}),r){var z={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"]},re,Z,de,x,ye;Object.keys(z).forEach(function(Je){re=Je,de=z[Je],Z=p.querySelectorAll(re+"[id]");for(var st=function(Ue,Re){x=Z[Ue].id,ye=x+"-"+S5();var Le;Array.prototype.forEach.call(de,function($t){Le=p.querySelectorAll("["+$t+'*="'+x+'"]');for(var Ht=0,Xn=Le.length;Ht<Xn;Ht++){var br=Le[Ht].getAttribute($t);br&&!br.match(new RegExp('url\\("?#'+x+'"?\\)'))||Le[Ht].setAttribute($t,"url(#"+ye+")")}});for(var Xe=p.querySelectorAll("[*|href]"),lt=[],mt=0,wt=Xe.length;mt<wt;mt++){var vt=Xe[mt].getAttributeNS(xv,"href");vt&&vt.toString()==="#"+Z[Ue].id&&lt.push(Xe[mt])}for(var Et=0,rt=lt.length;Et<rt;Et++)lt[Et].setAttributeNS(xv,"href","#"+ye);Z[Ue].id=ye},De=0,xe=Z.length;De<xe;De++)st(De)})}p.removeAttribute("xmlns:a");for(var ae=p.querySelectorAll("script"),Me=[],Ze,Ve,Ye=0,ot=ae.length;Ye<ot;Ye++)Ve=ae[Ye].getAttribute("type"),(!Ve||Ve==="application/ecmascript"||Ve==="application/javascript"||Ve==="text/javascript")&&(Ze=ae[Ye].innerText||ae[Ye].textContent,Ze&&Me.push(Ze),p.removeChild(ae[Ye]));if(Me.length>0&&(n==="always"||n==="once"&&!VS[c])){for(var me=0,Oe=Me.length;me<Oe;me++)new Function(Me[me])(window);VS[c]=!0}var He=p.querySelectorAll("style");if(Array.prototype.forEach.call(He,function(Je){Je.textContent+=""}),p.setAttribute("xmlns",T5),p.setAttribute("xmlns:xlink",xv),s(p),!t.parentNode){Rs.splice(Rs.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),Rs.splice(Rs.indexOf(t),1),t=null,l(null,p)})},C5=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,l=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,y=r.cacheRequests,p=y===void 0?!0:y,S=r.evalScripts,T=S===void 0?"never":S,_=r.httpRequestWithCredentials,R=_===void 0?!1:_,L=r.renumerateIRIElements,I=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,z=0,re=t.length;z<re;z++)HS(t[z],T,I,p,R,d,function(Z,de){l(Z,de),t&&"length"in t&&t.length===++U&&o(U)});else t?HS(t,T,I,p,R,d,function(Z,de){l(Z,de),o(1),t=null}):o(0)},Lm={exports:{}},Nh={exports:{}},wn={};/** @license React v16.13.1
42
16
  * react-is.production.min.js
43
17
  *
44
18
  * Copyright (c) Facebook, Inc. and its affiliates.
45
19
  *
46
20
  * This source code is licensed under the MIT license found in the
47
21
  * LICENSE file in the root directory of this source tree.
48
- */var US;function k5(){if(US)return wn;US=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function z(Z){if(typeof Z=="object"&&Z!==null){var de=Z.$$typeof;switch(de){case t:switch(Z=Z.type,Z){case c:case d:case r:case o:case i:case p:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case l:case y:case _:case T:case s:return Z;default:return de}}case n:return de}}}function re(Z){return z(Z)===d}return wn.AsyncMode=c,wn.ConcurrentMode=d,wn.ContextConsumer=l,wn.ContextProvider=s,wn.Element=t,wn.ForwardRef=y,wn.Fragment=r,wn.Lazy=_,wn.Memo=T,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=p,wn.isAsyncMode=function(Z){return re(Z)||z(Z)===c},wn.isConcurrentMode=re,wn.isContextConsumer=function(Z){return z(Z)===l},wn.isContextProvider=function(Z){return z(Z)===s},wn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t},wn.isForwardRef=function(Z){return z(Z)===y},wn.isFragment=function(Z){return z(Z)===r},wn.isLazy=function(Z){return z(Z)===_},wn.isMemo=function(Z){return z(Z)===T},wn.isPortal=function(Z){return z(Z)===n},wn.isProfiler=function(Z){return z(Z)===o},wn.isStrictMode=function(Z){return z(Z)===i},wn.isSuspense=function(Z){return z(Z)===p},wn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===d||Z===o||Z===i||Z===p||Z===S||typeof Z=="object"&&Z!==null&&(Z.$$typeof===_||Z.$$typeof===T||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===y||Z.$$typeof===L||Z.$$typeof===I||Z.$$typeof===U||Z.$$typeof===R)},wn.typeOf=z,wn}var xn={};/** @license React v16.13.1
22
+ */var US;function E5(){if(US)return wn;US=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function z(Z){if(typeof Z=="object"&&Z!==null){var de=Z.$$typeof;switch(de){case t:switch(Z=Z.type,Z){case c:case d:case r:case o:case i:case p:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case l:case y:case _:case T:case s:return Z;default:return de}}case n:return de}}}function re(Z){return z(Z)===d}return wn.AsyncMode=c,wn.ConcurrentMode=d,wn.ContextConsumer=l,wn.ContextProvider=s,wn.Element=t,wn.ForwardRef=y,wn.Fragment=r,wn.Lazy=_,wn.Memo=T,wn.Portal=n,wn.Profiler=o,wn.StrictMode=i,wn.Suspense=p,wn.isAsyncMode=function(Z){return re(Z)||z(Z)===c},wn.isConcurrentMode=re,wn.isContextConsumer=function(Z){return z(Z)===l},wn.isContextProvider=function(Z){return z(Z)===s},wn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t},wn.isForwardRef=function(Z){return z(Z)===y},wn.isFragment=function(Z){return z(Z)===r},wn.isLazy=function(Z){return z(Z)===_},wn.isMemo=function(Z){return z(Z)===T},wn.isPortal=function(Z){return z(Z)===n},wn.isProfiler=function(Z){return z(Z)===o},wn.isStrictMode=function(Z){return z(Z)===i},wn.isSuspense=function(Z){return z(Z)===p},wn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===d||Z===o||Z===i||Z===p||Z===S||typeof Z=="object"&&Z!==null&&(Z.$$typeof===_||Z.$$typeof===T||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===y||Z.$$typeof===L||Z.$$typeof===I||Z.$$typeof===U||Z.$$typeof===R)},wn.typeOf=z,wn}var xn={};/** @license React v16.13.1
49
23
  * react-is.development.js
50
24
  *
51
25
  * Copyright (c) Facebook, Inc. and its affiliates.
52
26
  *
53
27
  * This source code is licensed under the MIT license found in the
54
28
  * LICENSE file in the root directory of this source tree.
55
- */var WS;function O5(){return WS||(WS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function z(rt){return typeof rt=="string"||typeof rt=="function"||rt===r||rt===d||rt===o||rt===i||rt===p||rt===S||typeof rt=="object"&&rt!==null&&(rt.$$typeof===_||rt.$$typeof===T||rt.$$typeof===s||rt.$$typeof===l||rt.$$typeof===y||rt.$$typeof===L||rt.$$typeof===I||rt.$$typeof===U||rt.$$typeof===R)}function re(rt){if(typeof rt=="object"&&rt!==null){var $t=rt.$$typeof;switch($t){case t:var Ht=rt.type;switch(Ht){case c:case d:case r:case o:case i:case p:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case l:case y:case _:case T:case s:return Xn;default:return $t}}case n:return $t}}}var Z=c,de=d,x=l,ye=s,ae=t,Me=y,Ze=r,Ve=_,Ye=T,ot=n,me=o,Oe=i,He=p,Je=!1;function st(rt){return Je||(Je=!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.")),De(rt)||re(rt)===c}function De(rt){return re(rt)===d}function xe(rt){return re(rt)===l}function We(rt){return re(rt)===s}function Ue(rt){return typeof rt=="object"&&rt!==null&&rt.$$typeof===t}function Re(rt){return re(rt)===y}function Le(rt){return re(rt)===r}function Xe(rt){return re(rt)===_}function lt(rt){return re(rt)===T}function mt(rt){return re(rt)===n}function wt(rt){return re(rt)===o}function vt(rt){return re(rt)===i}function Et(rt){return re(rt)===p}xn.AsyncMode=Z,xn.ConcurrentMode=de,xn.ContextConsumer=x,xn.ContextProvider=ye,xn.Element=ae,xn.ForwardRef=Me,xn.Fragment=Ze,xn.Lazy=Ve,xn.Memo=Ye,xn.Portal=ot,xn.Profiler=me,xn.StrictMode=Oe,xn.Suspense=He,xn.isAsyncMode=st,xn.isConcurrentMode=De,xn.isContextConsumer=xe,xn.isContextProvider=We,xn.isElement=Ue,xn.isForwardRef=Re,xn.isFragment=Le,xn.isLazy=Xe,xn.isMemo=lt,xn.isPortal=mt,xn.isProfiler=wt,xn.isStrictMode=vt,xn.isSuspense=Et,xn.isValidElementType=z,xn.typeOf=re}()),xn}var zS;function fO(){return zS||(zS=1,process.env.NODE_ENV==="production"?Nh.exports=k5():Nh.exports=O5()),Nh.exports}/*
29
+ */var WS;function k5(){return WS||(WS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function z(rt){return typeof rt=="string"||typeof rt=="function"||rt===r||rt===d||rt===o||rt===i||rt===p||rt===S||typeof rt=="object"&&rt!==null&&(rt.$$typeof===_||rt.$$typeof===T||rt.$$typeof===s||rt.$$typeof===l||rt.$$typeof===y||rt.$$typeof===L||rt.$$typeof===I||rt.$$typeof===U||rt.$$typeof===R)}function re(rt){if(typeof rt=="object"&&rt!==null){var $t=rt.$$typeof;switch($t){case t:var Ht=rt.type;switch(Ht){case c:case d:case r:case o:case i:case p:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case l:case y:case _:case T:case s:return Xn;default:return $t}}case n:return $t}}}var Z=c,de=d,x=l,ye=s,ae=t,Me=y,Ze=r,Ve=_,Ye=T,ot=n,me=o,Oe=i,He=p,Je=!1;function st(rt){return Je||(Je=!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.")),De(rt)||re(rt)===c}function De(rt){return re(rt)===d}function xe(rt){return re(rt)===l}function We(rt){return re(rt)===s}function Ue(rt){return typeof rt=="object"&&rt!==null&&rt.$$typeof===t}function Re(rt){return re(rt)===y}function Le(rt){return re(rt)===r}function Xe(rt){return re(rt)===_}function lt(rt){return re(rt)===T}function mt(rt){return re(rt)===n}function wt(rt){return re(rt)===o}function vt(rt){return re(rt)===i}function Et(rt){return re(rt)===p}xn.AsyncMode=Z,xn.ConcurrentMode=de,xn.ContextConsumer=x,xn.ContextProvider=ye,xn.Element=ae,xn.ForwardRef=Me,xn.Fragment=Ze,xn.Lazy=Ve,xn.Memo=Ye,xn.Portal=ot,xn.Profiler=me,xn.StrictMode=Oe,xn.Suspense=He,xn.isAsyncMode=st,xn.isConcurrentMode=De,xn.isContextConsumer=xe,xn.isContextProvider=We,xn.isElement=Ue,xn.isForwardRef=Re,xn.isFragment=Le,xn.isLazy=Xe,xn.isMemo=lt,xn.isPortal=mt,xn.isProfiler=wt,xn.isStrictMode=vt,xn.isSuspense=Et,xn.isValidElementType=z,xn.typeOf=re}()),xn}var zS;function cO(){return zS||(zS=1,process.env.NODE_ENV==="production"?Nh.exports=E5():Nh.exports=k5()),Nh.exports}/*
56
30
  object-assign
57
31
  (c) Sindre Sorhus
58
32
  @license MIT
59
- */var Sv,YS;function D5(){if(YS)return Sv;YS=1;var e=Object.getOwnPropertySymbols,t=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 s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(y){return s[y]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(y){d[y]=y}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sv=i()?Object.assign:function(o,s){for(var l,c=r(o),d,y=1;y<arguments.length;y++){l=Object(arguments[y]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var S=0;S<d.length;S++)n.call(l,d[S])&&(c[d[S]]=l[d[S]])}}return c},Sv}var Tv,GS;function Xy(){if(GS)return Tv;GS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tv=e,Tv}var Cv,qS;function dO(){return qS||(qS=1,Cv=Function.call.bind(Object.prototype.hasOwnProperty)),Cv}var Ev,XS;function P5(){if(XS)return Ev;XS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xy(),n={},r=dO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var p;try{if(typeof o[y]!="function"){var S=Error((c||"React class")+": "+l+" 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 S.name="Invariant Violation",S}p=o[y](s,y,c,l,null,t)}catch(_){p=_}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var T=d?d():"";e("Failed "+l+" type: "+p.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ev=i,Ev}var kv,KS;function _5(){if(KS)return kv;KS=1;var e=fO(),t=D5(),n=Xy(),r=dO(),i=P5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return kv=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(De){var xe=De&&(d&&De[d]||De[y]);if(typeof xe=="function")return xe}var S="<<anonymous>>",T={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:U(),arrayOf:z,element:re(),elementType:Z(),instanceOf:de,node:Me(),objectOf:ye,oneOf:x,oneOfType:ae,shape:Ve,exact:Ye};function _(De,xe){return De===xe?De!==0||1/De===1/xe:De!==De&&xe!==xe}function R(De,xe){this.message=De,this.data=xe&&typeof xe=="object"?xe:{},this.stack=""}R.prototype=Error.prototype;function L(De){if(process.env.NODE_ENV!=="production")var xe={},We=0;function Ue(Le,Xe,lt,mt,wt,vt,Et){if(mt=mt||S,vt=vt||lt,Et!==n){if(c){var rt=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 rt.name="Invariant Violation",rt}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=mt+":"+lt;!xe[$t]&&We<3&&(o("You are manually calling a React.PropTypes validation function for the `"+vt+"` prop on `"+mt+"`. 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."),xe[$t]=!0,We++)}}return Xe[lt]==null?Le?Xe[lt]===null?new R("The "+wt+" `"+vt+"` is marked as required "+("in `"+mt+"`, but its value is `null`.")):new R("The "+wt+" `"+vt+"` is marked as required in "+("`"+mt+"`, but its value is `undefined`.")):null:De(Xe,lt,mt,wt,vt)}var Re=Ue.bind(null,!1);return Re.isRequired=Ue.bind(null,!0),Re}function I(De){function xe(We,Ue,Re,Le,Xe,lt){var mt=We[Ue],wt=Oe(mt);if(wt!==De){var vt=He(mt);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+De+"`."),{expectedType:De})}return null}return L(xe)}function U(){return L(s)}function z(De){function xe(We,Ue,Re,Le,Xe){if(typeof De!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=We[Ue];if(!Array.isArray(lt)){var mt=Oe(lt);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<lt.length;wt++){var vt=De(lt,wt,Re,Le,Xe+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(xe)}function re(){function De(xe,We,Ue,Re,Le){var Xe=xe[We];if(!l(Xe)){var lt=Oe(Xe);return new R("Invalid "+Re+" `"+Le+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement."))}return null}return L(De)}function Z(){function De(xe,We,Ue,Re,Le){var Xe=xe[We];if(!e.isValidElementType(Xe)){var lt=Oe(Xe);return new R("Invalid "+Re+" `"+Le+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement type."))}return null}return L(De)}function de(De){function xe(We,Ue,Re,Le,Xe){if(!(We[Ue]instanceof De)){var lt=De.name||S,mt=st(We[Ue]);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(xe)}function x(De){if(!Array.isArray(De))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.")),s;function xe(We,Ue,Re,Le,Xe){for(var lt=We[Ue],mt=0;mt<De.length;mt++)if(_(lt,De[mt]))return null;var wt=JSON.stringify(De,function(Et,rt){var $t=He(rt);return $t==="symbol"?String(rt):rt});return new R("Invalid "+Le+" `"+Xe+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(xe)}function ye(De){function xe(We,Ue,Re,Le,Xe){if(typeof De!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in lt)if(r(lt,wt)){var vt=De(lt,wt,Re,Le,Xe+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(xe)}function ae(De){if(!Array.isArray(De))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var xe=0;xe<De.length;xe++){var We=De[xe];if(typeof We!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Je(We)+" at index "+xe+"."),s}function Ue(Re,Le,Xe,lt,mt){for(var wt=[],vt=0;vt<De.length;vt++){var Et=De[vt],rt=Et(Re,Le,Xe,lt,mt,n);if(rt==null)return null;rt.data&&r(rt.data,"expectedType")&&wt.push(rt.data.expectedType)}var $t=wt.length>0?", expected one of type ["+wt.join(", ")+"]":"";return new R("Invalid "+lt+" `"+mt+"` supplied to "+("`"+Xe+"`"+$t+"."))}return L(Ue)}function Me(){function De(xe,We,Ue,Re,Le){return ot(xe[We])?null:new R("Invalid "+Re+" `"+Le+"` supplied to "+("`"+Ue+"`, expected a ReactNode."))}return L(De)}function Ze(De,xe,We,Ue,Re){return new R((De||"React class")+": "+xe+" type `"+We+"."+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function Ve(De){function xe(We,Ue,Re,Le,Xe){var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in De){var vt=De[wt];if(typeof vt!="function")return Ze(Re,Le,Xe,wt,He(vt));var Et=vt(lt,wt,Re,Le,Xe+"."+wt,n);if(Et)return Et}return null}return L(xe)}function Ye(De){function xe(We,Ue,Re,Le,Xe){var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},We[Ue],De);for(var vt in wt){var Et=De[vt];if(r(De,vt)&&typeof Et!="function")return Ze(Re,Le,Xe,vt,He(Et));if(!Et)return new R("Invalid "+Le+" `"+Xe+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(We[Ue],null," ")+`
60
- Valid keys: `+JSON.stringify(Object.keys(De),null," "));var rt=Et(lt,vt,Re,Le,Xe+"."+vt,n);if(rt)return rt}return null}return L(xe)}function ot(De){switch(typeof De){case"number":case"string":case"undefined":return!0;case"boolean":return!De;case"object":if(Array.isArray(De))return De.every(ot);if(De===null||l(De))return!0;var xe=p(De);if(xe){var We=xe.call(De),Ue;if(xe!==De.entries){for(;!(Ue=We.next()).done;)if(!ot(Ue.value))return!1}else for(;!(Ue=We.next()).done;){var Re=Ue.value;if(Re&&!ot(Re[1]))return!1}}else return!1;return!0;default:return!1}}function me(De,xe){return De==="symbol"?!0:xe?xe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&xe instanceof Symbol:!1}function Oe(De){var xe=typeof De;return Array.isArray(De)?"array":De instanceof RegExp?"object":me(xe,De)?"symbol":xe}function He(De){if(typeof De>"u"||De===null)return""+De;var xe=Oe(De);if(xe==="object"){if(De instanceof Date)return"date";if(De instanceof RegExp)return"regexp"}return xe}function Je(De){var xe=He(De);switch(xe){case"array":case"object":return"an "+xe;case"boolean":case"date":case"regexp":return"a "+xe;default:return xe}}function st(De){return!De.constructor||!De.constructor.name?S:De.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},kv}var Ov,ZS;function R5(){if(ZS)return Ov;ZS=1;var e=Xy();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,l,c,d,y,p){if(p!==e){var S=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 S.name="Invariant Violation",S}}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:t};return o.PropTypes=o,o},Ov}if(process.env.NODE_ENV!=="production"){var I5=fO(),A5=!0;Lm.exports=_5()(I5.isElement,A5)}else Lm.exports=R5()();var Or=Lm.exports;const Oa=Bc(Or);var M5=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},L5=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},F5=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],jh="http://www.w3.org/2000/svg",JS="http://www.w3.org/1999/xlink",ng=function(e){uO(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[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(l){r.reactWrapper=l},r}var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof M5(this.reactWrapper).Node){var o=this.props,s=o.desc,l=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,y=o.src,p=o.title,S=o.useRequestCache,T=this.props.onError,_=this.props.beforeInjection,R=this.props.afterInjection,L=this.props.wrapper,I,U;L==="svg"?(I=document.createElementNS(jh,L),I.setAttribute("xmlns",jh),I.setAttribute("xmlns:xlink",JS),U=document.createElementNS(jh,L)):(I=document.createElement(L),U=document.createElement(L)),I.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(I);var z=function(x){if(i.removeSVG(),!i._isMounted){T(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(x)})},re=function(x,ye){if(x){z(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{R(ye)}catch(ae){z(ae)}})},Z=function(x){if(x.setAttribute("role","img"),s){var ye=x.querySelector(":scope > desc");ye&&x.removeChild(ye);var ae=document.createElement("desc");ae.innerHTML=s,x.prepend(ae)}if(p){var Me=x.querySelector(":scope > title");Me&&x.removeChild(Me);var Ze=document.createElement("title");Ze.innerHTML=p,x.prepend(Ze)}try{_(x)}catch(Ve){z(Ve)}};E5(U,{afterEach:re,beforeEach:Z,cacheRequests:S,evalScripts:l,httpRequestWithCredentials:c,renumerateIRIElements:d})}},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;L5(Lf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var l=i.wrapper,c=qm(i,F5),d=l;return Sn.createElement(d,Lf({},c,{ref:this.refCallback},l==="svg"?{xmlns:jh,xmlnsXlink:JS}:{}),this.state.isLoading&&s&&Sn.createElement(s,null),this.state.hasError&&o&&Sn.createElement(o,null))},t}(Sn.Component);ng.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};ng.propTypes={afterInjection:Or.func,beforeInjection:Or.func,desc:Or.string,evalScripts:Or.oneOf(["always","once","never"]),fallback:Or.oneOfType([Or.func,Or.object,Or.string]),httpRequestWithCredentials:Or.bool,loading:Or.oneOfType([Or.func,Or.object,Or.string]),onError:Or.func,renumerateIRIElements:Or.bool,src:Or.string.isRequired,title:Or.string,useRequestCache:Or.bool,wrapper:Or.oneOf(["div","span","svg"])};const Ff=new Map;Ff.set("text",e=>{var t;return it.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Ff.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return it.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return it.jsx(t,{svgString:e.icon})});Ff.set("svgHttp",e=>it.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Ff.set("img",e=>it.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function N5(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function hO({item:e}){return(Ff.get(N5(e))||Ff.get("text"))(e)}function pO({...e}){var Oe,He,Je,st,De;const t=e.item,n=e.level||0,r=!!((Oe=e.item.children)!=null&&Oe.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(xe,We=s)=>`${xe} ${We} ${l} ${c}`,[y,p]=Q.useState(!1),[S,T]=Q.useState(t.isFavorite||!1);Q.useEffect(()=>{T(!!e.item.isFavorite)},[e.item.isFavorite]);const _=Q.useRef(),R=Q.useRef();R!=null&&R.current&&((He=R==null?void 0:R.current)==null?void 0:He.scrollWidth)>((Je=R==null?void 0:R.current)==null?void 0:Je.clientWidth);const L=window.location.origin,I=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},U=window.location.pathname.split("/")[1],z=I.pathname.split("/")[1],re=e.ssr||!L.includes("local")&&L!==I.origin||z!==U,Z=r||n===0?"div":re?"a":E1.Link,de=t.path||"#",x=n+1,ye=r&&o&&y&&n>0,ae=o||n===0?void 0:`${n+.25}rem`,Me=()=>{p(!0)},Ze=()=>{p(!1)},Ve="/global-menu-config/api/v1/menu-items/user/set-favorite",Ye=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,V3(t.id,e.params.isOpen,e.params.onToggle);const ot=xe=>{xe.stopPropagation(),e.params.onToggle()},me=Ye||o&&n===1;return it.jsxs("div",{ref:_,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Me,onMouseOut:Ze,onDragStart:xe=>{o&&n>1&&xe.preventDefault()},children:[it.jsx(_c.Tooltip,{placement:"top",disableInteractive:!0,title:me?t.description||t.name:null,onDragStart:xe=>{console.log("onDragStart Tooltip",xe.target)},children:it.jsxs(Z,{to:de,href:de,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:ae,transition:"all 0.3s",color:i(t.id)?((st=e.brandColors)==null?void 0:st.primary400)||Fi.primary400:void 0,backgroundColor:i(t.id)&&n===1?(De=e.brandColors)==null?void 0:De.primary200:void 0},onClick:xe=>{o||ot(xe)},onDragStart:xe=>{console.log("onDragStart component",xe.target)},children:[it.jsx(j5,{cls:d,item:t}),it.jsx("span",{className:d("menu-item__label"),ref:R,children:t.name}),it.jsx(B5,{menuLevel:n,hasChildren:r,isHovered:y,isFavorite:S,onClick:xe=>{const We={menuConfigId:t.id,isFavorite:xe},Ue=e.baseUrl+Ve;Ls.post(Ue,We).then(Re=>{var Le;T(xe),TT("Set favorite menu item successfully"),(Le=e.onSetFavoriteSuccess)==null||Le.call(e,e.item.id,xe)}).catch(Re=>{var Le,Xe;Ap(((Xe=(Le=Re.response)==null?void 0:Le.data)==null?void 0:Xe.errorMessage)||"Have error when set favorite menu item")})}}),r&&it.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:it.jsx(c5,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ye&&it.jsx(f5,{parentRef:_,onlyChild:!o||o&&x<2,renderChildren:({maxHeight:xe})=>{var We;return it.jsx(iO.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${x}`),style:sO({maxHeight:xe,overflowY:"auto",paddingRight:3},xe!=="auto"&&!!x),children:(We=t.children)==null?void 0:We.map(Ue=>Q.createElement(pO,{...e,key:Ue.id,item:Ue,level:x}))})}})]})}function j5({item:e,cls:t}){return it.jsx("div",{className:t("menu-item__icon"),children:it.jsx(hO,{item:e})})}function B5(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Fi.warning};if(e.menuLevel!==0)return it.jsxs(it.Fragment,{children:[e.isHovered&&!e.isFavorite&&it.jsx(_c.Tooltip,{title:"Add to favorites",children:it.jsx(oO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&it.jsx(_c.Tooltip,{title:"Remove from favorites",children:it.jsx(aO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}function $5(){return it.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:it.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 V5(){return it.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:it.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function H5(e){return it.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:it.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 U5=`.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{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;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%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0,.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.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.collapsed.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.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left: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.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown::-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-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
33
+ */var Sv,YS;function O5(){if(YS)return Sv;YS=1;var e=Object.getOwnPropertySymbols,t=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 s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(y){return s[y]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(y){d[y]=y}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sv=i()?Object.assign:function(o,s){for(var l,c=r(o),d,y=1;y<arguments.length;y++){l=Object(arguments[y]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var S=0;S<d.length;S++)n.call(l,d[S])&&(c[d[S]]=l[d[S]])}}return c},Sv}var Tv,GS;function Xy(){if(GS)return Tv;GS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tv=e,Tv}var Cv,qS;function fO(){return qS||(qS=1,Cv=Function.call.bind(Object.prototype.hasOwnProperty)),Cv}var Ev,XS;function D5(){if(XS)return Ev;XS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xy(),n={},r=fO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var p;try{if(typeof o[y]!="function"){var S=Error((c||"React class")+": "+l+" 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 S.name="Invariant Violation",S}p=o[y](s,y,c,l,null,t)}catch(_){p=_}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var T=d?d():"";e("Failed "+l+" type: "+p.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ev=i,Ev}var kv,KS;function P5(){if(KS)return kv;KS=1;var e=cO(),t=O5(),n=Xy(),r=fO(),i=D5(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return kv=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function p(De){var xe=De&&(d&&De[d]||De[y]);if(typeof xe=="function")return xe}var S="<<anonymous>>",T={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:U(),arrayOf:z,element:re(),elementType:Z(),instanceOf:de,node:Me(),objectOf:ye,oneOf:x,oneOfType:ae,shape:Ve,exact:Ye};function _(De,xe){return De===xe?De!==0||1/De===1/xe:De!==De&&xe!==xe}function R(De,xe){this.message=De,this.data=xe&&typeof xe=="object"?xe:{},this.stack=""}R.prototype=Error.prototype;function L(De){if(process.env.NODE_ENV!=="production")var xe={},We=0;function Ue(Le,Xe,lt,mt,wt,vt,Et){if(mt=mt||S,vt=vt||lt,Et!==n){if(c){var rt=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 rt.name="Invariant Violation",rt}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=mt+":"+lt;!xe[$t]&&We<3&&(o("You are manually calling a React.PropTypes validation function for the `"+vt+"` prop on `"+mt+"`. 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."),xe[$t]=!0,We++)}}return Xe[lt]==null?Le?Xe[lt]===null?new R("The "+wt+" `"+vt+"` is marked as required "+("in `"+mt+"`, but its value is `null`.")):new R("The "+wt+" `"+vt+"` is marked as required in "+("`"+mt+"`, but its value is `undefined`.")):null:De(Xe,lt,mt,wt,vt)}var Re=Ue.bind(null,!1);return Re.isRequired=Ue.bind(null,!0),Re}function I(De){function xe(We,Ue,Re,Le,Xe,lt){var mt=We[Ue],wt=Oe(mt);if(wt!==De){var vt=He(mt);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+vt+"` supplied to `"+Re+"`, expected ")+("`"+De+"`."),{expectedType:De})}return null}return L(xe)}function U(){return L(s)}function z(De){function xe(We,Ue,Re,Le,Xe){if(typeof De!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=We[Ue];if(!Array.isArray(lt)){var mt=Oe(lt);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an array."))}for(var wt=0;wt<lt.length;wt++){var vt=De(lt,wt,Re,Le,Xe+"["+wt+"]",n);if(vt instanceof Error)return vt}return null}return L(xe)}function re(){function De(xe,We,Ue,Re,Le){var Xe=xe[We];if(!l(Xe)){var lt=Oe(Xe);return new R("Invalid "+Re+" `"+Le+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement."))}return null}return L(De)}function Z(){function De(xe,We,Ue,Re,Le){var Xe=xe[We];if(!e.isValidElementType(Xe)){var lt=Oe(Xe);return new R("Invalid "+Re+" `"+Le+"` of type "+("`"+lt+"` supplied to `"+Ue+"`, expected a single ReactElement type."))}return null}return L(De)}function de(De){function xe(We,Ue,Re,Le,Xe){if(!(We[Ue]instanceof De)){var lt=De.name||S,mt=st(We[Ue]);return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(xe)}function x(De){if(!Array.isArray(De))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.")),s;function xe(We,Ue,Re,Le,Xe){for(var lt=We[Ue],mt=0;mt<De.length;mt++)if(_(lt,De[mt]))return null;var wt=JSON.stringify(De,function(Et,rt){var $t=He(rt);return $t==="symbol"?String(rt):rt});return new R("Invalid "+Le+" `"+Xe+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+wt+"."))}return L(xe)}function ye(De){function xe(We,Ue,Re,Le,Xe){if(typeof De!="function")return new R("Property `"+Xe+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type "+("`"+mt+"` supplied to `"+Re+"`, expected an object."));for(var wt in lt)if(r(lt,wt)){var vt=De(lt,wt,Re,Le,Xe+"."+wt,n);if(vt instanceof Error)return vt}return null}return L(xe)}function ae(De){if(!Array.isArray(De))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var xe=0;xe<De.length;xe++){var We=De[xe];if(typeof We!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Je(We)+" at index "+xe+"."),s}function Ue(Re,Le,Xe,lt,mt){for(var wt=[],vt=0;vt<De.length;vt++){var Et=De[vt],rt=Et(Re,Le,Xe,lt,mt,n);if(rt==null)return null;rt.data&&r(rt.data,"expectedType")&&wt.push(rt.data.expectedType)}var $t=wt.length>0?", expected one of type ["+wt.join(", ")+"]":"";return new R("Invalid "+lt+" `"+mt+"` supplied to "+("`"+Xe+"`"+$t+"."))}return L(Ue)}function Me(){function De(xe,We,Ue,Re,Le){return ot(xe[We])?null:new R("Invalid "+Re+" `"+Le+"` supplied to "+("`"+Ue+"`, expected a ReactNode."))}return L(De)}function Ze(De,xe,We,Ue,Re){return new R((De||"React class")+": "+xe+" type `"+We+"."+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function Ve(De){function xe(We,Ue,Re,Le,Xe){var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));for(var wt in De){var vt=De[wt];if(typeof vt!="function")return Ze(Re,Le,Xe,wt,He(vt));var Et=vt(lt,wt,Re,Le,Xe+"."+wt,n);if(Et)return Et}return null}return L(xe)}function Ye(De){function xe(We,Ue,Re,Le,Xe){var lt=We[Ue],mt=Oe(lt);if(mt!=="object")return new R("Invalid "+Le+" `"+Xe+"` of type `"+mt+"` "+("supplied to `"+Re+"`, expected `object`."));var wt=t({},We[Ue],De);for(var vt in wt){var Et=De[vt];if(r(De,vt)&&typeof Et!="function")return Ze(Re,Le,Xe,vt,He(Et));if(!Et)return new R("Invalid "+Le+" `"+Xe+"` key `"+vt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(We[Ue],null," ")+`
34
+ Valid keys: `+JSON.stringify(Object.keys(De),null," "));var rt=Et(lt,vt,Re,Le,Xe+"."+vt,n);if(rt)return rt}return null}return L(xe)}function ot(De){switch(typeof De){case"number":case"string":case"undefined":return!0;case"boolean":return!De;case"object":if(Array.isArray(De))return De.every(ot);if(De===null||l(De))return!0;var xe=p(De);if(xe){var We=xe.call(De),Ue;if(xe!==De.entries){for(;!(Ue=We.next()).done;)if(!ot(Ue.value))return!1}else for(;!(Ue=We.next()).done;){var Re=Ue.value;if(Re&&!ot(Re[1]))return!1}}else return!1;return!0;default:return!1}}function me(De,xe){return De==="symbol"?!0:xe?xe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&xe instanceof Symbol:!1}function Oe(De){var xe=typeof De;return Array.isArray(De)?"array":De instanceof RegExp?"object":me(xe,De)?"symbol":xe}function He(De){if(typeof De>"u"||De===null)return""+De;var xe=Oe(De);if(xe==="object"){if(De instanceof Date)return"date";if(De instanceof RegExp)return"regexp"}return xe}function Je(De){var xe=He(De);switch(xe){case"array":case"object":return"an "+xe;case"boolean":case"date":case"regexp":return"a "+xe;default:return xe}}function st(De){return!De.constructor||!De.constructor.name?S:De.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},kv}var Ov,ZS;function _5(){if(ZS)return Ov;ZS=1;var e=Xy();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,l,c,d,y,p){if(p!==e){var S=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 S.name="Invariant Violation",S}}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:t};return o.PropTypes=o,o},Ov}if(process.env.NODE_ENV!=="production"){var R5=cO(),I5=!0;Lm.exports=P5()(R5.isElement,I5)}else Lm.exports=_5()();var Or=Lm.exports;const Oa=Bc(Or);var A5=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},M5=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},L5=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],jh="http://www.w3.org/2000/svg",JS="http://www.w3.org/1999/xlink",ng=function(e){sO(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[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(l){r.reactWrapper=l},r}var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof A5(this.reactWrapper).Node){var o=this.props,s=o.desc,l=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,y=o.src,p=o.title,S=o.useRequestCache,T=this.props.onError,_=this.props.beforeInjection,R=this.props.afterInjection,L=this.props.wrapper,I,U;L==="svg"?(I=document.createElementNS(jh,L),I.setAttribute("xmlns",jh),I.setAttribute("xmlns:xlink",JS),U=document.createElementNS(jh,L)):(I=document.createElement(L),U=document.createElement(L)),I.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(I);var z=function(x){if(i.removeSVG(),!i._isMounted){T(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(x)})},re=function(x,ye){if(x){z(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{R(ye)}catch(ae){z(ae)}})},Z=function(x){if(x.setAttribute("role","img"),s){var ye=x.querySelector(":scope > desc");ye&&x.removeChild(ye);var ae=document.createElement("desc");ae.innerHTML=s,x.prepend(ae)}if(p){var Me=x.querySelector(":scope > title");Me&&x.removeChild(Me);var Ze=document.createElement("title");Ze.innerHTML=p,x.prepend(Ze)}try{_(x)}catch(Ve){z(Ve)}};C5(U,{afterEach:re,beforeEach:Z,cacheRequests:S,evalScripts:l,httpRequestWithCredentials:c,renumerateIRIElements:d})}},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;M5(Lf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var l=i.wrapper,c=qm(i,L5),d=l;return Sn.createElement(d,Lf({},c,{ref:this.refCallback},l==="svg"?{xmlns:jh,xmlnsXlink:JS}:{}),this.state.isLoading&&s&&Sn.createElement(s,null),this.state.hasError&&o&&Sn.createElement(o,null))},t}(Sn.Component);ng.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};ng.propTypes={afterInjection:Or.func,beforeInjection:Or.func,desc:Or.string,evalScripts:Or.oneOf(["always","once","never"]),fallback:Or.oneOfType([Or.func,Or.object,Or.string]),httpRequestWithCredentials:Or.bool,loading:Or.oneOfType([Or.func,Or.object,Or.string]),onError:Or.func,renumerateIRIElements:Or.bool,src:Or.string.isRequired,title:Or.string,useRequestCache:Or.bool,wrapper:Or.oneOf(["div","span","svg"])};const Ff=new Map;Ff.set("text",e=>{var t;return it.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Ff.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return it.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return it.jsx(t,{svgString:e.icon})});Ff.set("svgHttp",e=>it.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Ff.set("img",e=>it.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function F5(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function dO({item:e}){return(Ff.get(F5(e))||Ff.get("text"))(e)}function hO({...e}){var Oe,He,Je,st,De;const t=e.item,n=e.level||0,r=!!((Oe=e.item.children)!=null&&Oe.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=(xe,We=s)=>`${xe} ${We} ${l} ${c}`,[y,p]=Q.useState(!1),[S,T]=Q.useState(t.isFavorite||!1);Q.useEffect(()=>{T(!!e.item.isFavorite)},[e.item.isFavorite]);const _=Q.useRef(),R=Q.useRef();R!=null&&R.current&&((He=R==null?void 0:R.current)==null?void 0:He.scrollWidth)>((Je=R==null?void 0:R.current)==null?void 0:Je.clientWidth);const L=window.location.origin,I=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},U=window.location.pathname.split("/")[1],z=I.pathname.split("/")[1],re=e.ssr||!L.includes("local")&&L!==I.origin||z!==U,Z=r||n===0?"div":re?"a":E1.Link,de=t.path||"#",x=n+1,ye=r&&o&&y&&n>0,ae=o||n===0?void 0:`${n+.25}rem`,Me=()=>{p(!0)},Ze=()=>{p(!1)},Ve="/global-menu-config/api/v1/menu-items/user/set-favorite",Ye=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,$3(t.id,e.params.isOpen,e.params.onToggle);const ot=xe=>{xe.stopPropagation(),e.params.onToggle()},me=Ye||o&&n===1;return it.jsxs("div",{ref:_,className:d("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Me,onMouseOut:Ze,onDragStart:xe=>{o&&n>1&&xe.preventDefault()},children:[it.jsx(_c.Tooltip,{placement:"top",disableInteractive:!0,title:me?t.description||t.name:null,onDragStart:xe=>{console.log("onDragStart Tooltip",xe.target)},children:it.jsxs(Z,{to:de,href:de,draggable:"true",className:d("menu-item__link"),style:{paddingLeft:ae,transition:"all 0.3s",color:i(t.id)?((st=e.brandColors)==null?void 0:st.primary400)||Fi.primary400:void 0,backgroundColor:i(t.id)&&n===1?(De=e.brandColors)==null?void 0:De.primary200:void 0},onClick:xe=>{o||ot(xe)},onDragStart:xe=>{console.log("onDragStart component",xe.target)},children:[it.jsx(N5,{cls:d,item:t}),it.jsx("span",{className:d("menu-item__label"),ref:R,children:t.name}),it.jsx(j5,{menuLevel:n,hasChildren:r,isHovered:y,isFavorite:S,onClick:xe=>{const We={menuConfigId:t.id,isFavorite:xe},Ue=e.baseUrl+Ve;Ls.post(Ue,We).then(Re=>{var Le;T(xe),ST("Set favorite menu item successfully"),(Le=e.onSetFavoriteSuccess)==null||Le.call(e,e.item.id,xe)}).catch(Re=>{var Le,Xe;Ap(((Xe=(Le=Re.response)==null?void 0:Le.data)==null?void 0:Xe.errorMessage)||"Have error when set favorite menu item")})}}),r&&it.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:it.jsx(l5,{className:d(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),ye&&it.jsx(c5,{parentRef:_,onlyChild:!o||o&&x<2,renderChildren:({maxHeight:xe})=>{var We;return it.jsx(rO.div,{className:d(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${x}`),style:aO({maxHeight:xe,overflowY:"auto",paddingRight:3},xe!=="auto"&&!!x),children:(We=t.children)==null?void 0:We.map(Ue=>Q.createElement(hO,{...e,key:Ue.id,item:Ue,level:x}))})}})]})}function N5({item:e,cls:t}){return it.jsx("div",{className:t("menu-item__icon"),children:it.jsx(dO,{item:e})})}function j5(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Fi.warning};if(e.menuLevel!==0)return it.jsxs(it.Fragment,{children:[e.isHovered&&!e.isFavorite&&it.jsx(_c.Tooltip,{title:"Add to favorites",children:it.jsx(iO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&it.jsx(_c.Tooltip,{title:"Remove from favorites",children:it.jsx(oO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}function B5(){return it.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:it.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 $5(){return it.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:it.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function V5(e){return it.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:it.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 H5=`.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{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;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%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0,.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.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.collapsed.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.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left: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.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown::-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-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}
61
35
  `;var bc={};/**
62
36
  * @license React
63
37
  * react-dom-server-legacy.browser.production.min.js
@@ -66,7 +40,7 @@ Valid keys: `+JSON.stringify(Object.keys(De),null," "));var rt=Et(lt,vt,Re,Le,X
66
40
  *
67
41
  * This source code is licensed under the MIT license found in the
68
42
  * LICENSE file in the root directory of this source tree.
69
- */var QS;function W5(){if(QS)return bc;QS=1;var e=Q;function t(E){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+E,q=1;q<arguments.length;q++)j+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+E+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[: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]*$/,i={},o={};function s(E){return n.call(o,E)?!0:n.call(i,E)?!1:r.test(E)?o[E]=!0:(i[E]=!0,!1)}function l(E,j,q,ne,Pe,be,Fe){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=ne,this.attributeNamespace=Pe,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Fe}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){c[E]=new l(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var j=E[0];c[j]=new l(j,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new l(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new l(E,2,!1,E,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(E){c[E]=new l(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new l(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new l(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new l(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new l(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function y(E){return E[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(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!0,!0)});var p={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},S=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){S.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function _(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",ne,Pe=0;for(ne=j.index;ne<E.length;ne++){switch(E.charCodeAt(ne)){case 34:j="&quot;";break;case 38:j="&amp;";break;case 39:j="&#x27;";break;case 60:j="&lt;";break;case 62:j="&gt;";break;default:continue}Pe!==ne&&(q+=E.substring(Pe,ne)),Pe=ne+1,q+=j}E=Pe!==ne?q+E.substring(Pe,ne):q}return E}var R=/([A-Z])/g,L=/^ms-/,I=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function z(E,j,q){switch(j){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=E.insertionMode||E.insertionMode===0?U(1,null):E}var re=new Map;function Z(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var ne in q)if(n.call(q,ne)){var Pe=q[ne];if(Pe!=null&&typeof Pe!="boolean"&&Pe!==""){if(ne.indexOf("--")===0){var be=_(ne);Pe=_((""+Pe).trim())}else{be=ne;var Fe=re.get(be);Fe!==void 0||(Fe=_(be.replace(R,"-$1").toLowerCase().replace(L,"-ms-")),re.set(be,Fe)),be=Fe,Pe=typeof Pe=="number"?Pe===0||n.call(p,ne)?""+Pe:Pe+"px":_((""+Pe).trim())}j?(j=!1,E.push(' style="',be,":",Pe)):E.push(";",be,":",Pe)}}j||E.push('"')}function de(E,j,q,ne){switch(q){case"style":Z(E,j,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(j=c.hasOwnProperty(q)?c[q]:null,j!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(q=j.attributeName,j.type){case 3:ne&&E.push(" ",q,'=""');break;case 4:ne===!0?E.push(" ",q,'=""'):ne!==!1&&E.push(" ",q,'="',_(ne),'"');break;case 5:isNaN(ne)||E.push(" ",q,'="',_(ne),'"');break;case 6:!isNaN(ne)&&1<=ne&&E.push(" ",q,'="',_(ne),'"');break;default:j.sanitizeURL&&(ne=""+ne),E.push(" ",q,'="',_(ne),'"')}}else if(s(q)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(j=q.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}E.push(" ",q,'="',_(ne),'"')}}}function x(E,j,q){if(j!=null){if(q!=null)throw Error(t(60));if(typeof j!="object"||!("__html"in j))throw Error(t(61));j=j.__html,j!=null&&E.push(""+j)}}function ye(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function ae(E,j,q,ne){E.push(Ve(q));var Pe=q=null,be;for(be in j)if(n.call(j,be)){var Fe=j[be];if(Fe!=null)switch(be){case"children":q=Fe;break;case"dangerouslySetInnerHTML":Pe=Fe;break;default:de(E,ne,be,Fe)}}return E.push(">"),x(E,Pe,q),typeof q=="string"?(E.push(_(q)),null):q}var Me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ze=new Map;function Ve(E){var j=Ze.get(E);if(j===void 0){if(!Me.test(E))throw Error(t(65,E));j="<"+E,Ze.set(E,j)}return j}function Ye(E,j,q,ne,Pe){switch(j){case"select":E.push(Ve("select"));var be=null,Fe=null;for(bt in q)if(n.call(q,bt)){var tt=q[bt];if(tt!=null)switch(bt){case"children":be=tt;break;case"dangerouslySetInnerHTML":Fe=tt;break;case"defaultValue":case"value":break;default:de(E,ne,bt,tt)}}return E.push(">"),x(E,Fe,be),be;case"option":Fe=Pe.selectedValue,E.push(Ve("option"));var yt=tt=null,Tt=null,bt=null;for(be in q)if(n.call(q,be)){var Ut=q[be];if(Ut!=null)switch(be){case"children":tt=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:de(E,ne,be,Ut)}}if(Fe!=null)if(q=yt!==null?""+yt:ye(tt),I(Fe)){for(ne=0;ne<Fe.length;ne++)if(""+Fe[ne]===q){E.push(' selected=""');break}}else""+Fe===q&&E.push(' selected=""');else Tt&&E.push(' selected=""');return E.push(">"),x(E,bt,tt),tt;case"textarea":E.push(Ve("textarea")),bt=Fe=be=null;for(tt in q)if(n.call(q,tt)&&(yt=q[tt],yt!=null))switch(tt){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Fe=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:de(E,ne,tt,yt)}if(be===null&&Fe!==null&&(be=Fe),E.push(">"),bt!=null){if(be!=null)throw Error(t(92));if(I(bt)&&1<bt.length)throw Error(t(93));be=""+bt}return typeof be=="string"&&be[0]===`
43
+ */var QS;function U5(){if(QS)return bc;QS=1;var e=Q;function t(E){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+E,q=1;q<arguments.length;q++)j+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+E+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[: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]*$/,i={},o={};function s(E){return n.call(o,E)?!0:n.call(i,E)?!1:r.test(E)?o[E]=!0:(i[E]=!0,!1)}function l(E,j,q,ne,Pe,be,Fe){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=ne,this.attributeNamespace=Pe,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Fe}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){c[E]=new l(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var j=E[0];c[j]=new l(j,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new l(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new l(E,2,!1,E,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(E){c[E]=new l(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new l(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new l(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new l(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new l(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function y(E){return E[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(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var j=E.replace(d,y);c[j]=new l(j,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!0,!0)});var p={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},S=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){S.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function _(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",ne,Pe=0;for(ne=j.index;ne<E.length;ne++){switch(E.charCodeAt(ne)){case 34:j="&quot;";break;case 38:j="&amp;";break;case 39:j="&#x27;";break;case 60:j="&lt;";break;case 62:j="&gt;";break;default:continue}Pe!==ne&&(q+=E.substring(Pe,ne)),Pe=ne+1,q+=j}E=Pe!==ne?q+E.substring(Pe,ne):q}return E}var R=/([A-Z])/g,L=/^ms-/,I=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function z(E,j,q){switch(j){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=E.insertionMode||E.insertionMode===0?U(1,null):E}var re=new Map;function Z(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var ne in q)if(n.call(q,ne)){var Pe=q[ne];if(Pe!=null&&typeof Pe!="boolean"&&Pe!==""){if(ne.indexOf("--")===0){var be=_(ne);Pe=_((""+Pe).trim())}else{be=ne;var Fe=re.get(be);Fe!==void 0||(Fe=_(be.replace(R,"-$1").toLowerCase().replace(L,"-ms-")),re.set(be,Fe)),be=Fe,Pe=typeof Pe=="number"?Pe===0||n.call(p,ne)?""+Pe:Pe+"px":_((""+Pe).trim())}j?(j=!1,E.push(' style="',be,":",Pe)):E.push(";",be,":",Pe)}}j||E.push('"')}function de(E,j,q,ne){switch(q){case"style":Z(E,j,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(j=c.hasOwnProperty(q)?c[q]:null,j!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(q=j.attributeName,j.type){case 3:ne&&E.push(" ",q,'=""');break;case 4:ne===!0?E.push(" ",q,'=""'):ne!==!1&&E.push(" ",q,'="',_(ne),'"');break;case 5:isNaN(ne)||E.push(" ",q,'="',_(ne),'"');break;case 6:!isNaN(ne)&&1<=ne&&E.push(" ",q,'="',_(ne),'"');break;default:j.sanitizeURL&&(ne=""+ne),E.push(" ",q,'="',_(ne),'"')}}else if(s(q)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(j=q.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}E.push(" ",q,'="',_(ne),'"')}}}function x(E,j,q){if(j!=null){if(q!=null)throw Error(t(60));if(typeof j!="object"||!("__html"in j))throw Error(t(61));j=j.__html,j!=null&&E.push(""+j)}}function ye(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function ae(E,j,q,ne){E.push(Ve(q));var Pe=q=null,be;for(be in j)if(n.call(j,be)){var Fe=j[be];if(Fe!=null)switch(be){case"children":q=Fe;break;case"dangerouslySetInnerHTML":Pe=Fe;break;default:de(E,ne,be,Fe)}}return E.push(">"),x(E,Pe,q),typeof q=="string"?(E.push(_(q)),null):q}var Me=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ze=new Map;function Ve(E){var j=Ze.get(E);if(j===void 0){if(!Me.test(E))throw Error(t(65,E));j="<"+E,Ze.set(E,j)}return j}function Ye(E,j,q,ne,Pe){switch(j){case"select":E.push(Ve("select"));var be=null,Fe=null;for(bt in q)if(n.call(q,bt)){var tt=q[bt];if(tt!=null)switch(bt){case"children":be=tt;break;case"dangerouslySetInnerHTML":Fe=tt;break;case"defaultValue":case"value":break;default:de(E,ne,bt,tt)}}return E.push(">"),x(E,Fe,be),be;case"option":Fe=Pe.selectedValue,E.push(Ve("option"));var yt=tt=null,Tt=null,bt=null;for(be in q)if(n.call(q,be)){var Ut=q[be];if(Ut!=null)switch(be){case"children":tt=Ut;break;case"selected":Tt=Ut;break;case"dangerouslySetInnerHTML":bt=Ut;break;case"value":yt=Ut;default:de(E,ne,be,Ut)}}if(Fe!=null)if(q=yt!==null?""+yt:ye(tt),I(Fe)){for(ne=0;ne<Fe.length;ne++)if(""+Fe[ne]===q){E.push(' selected=""');break}}else""+Fe===q&&E.push(' selected=""');else Tt&&E.push(' selected=""');return E.push(">"),x(E,bt,tt),tt;case"textarea":E.push(Ve("textarea")),bt=Fe=be=null;for(tt in q)if(n.call(q,tt)&&(yt=q[tt],yt!=null))switch(tt){case"children":bt=yt;break;case"value":be=yt;break;case"defaultValue":Fe=yt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:de(E,ne,tt,yt)}if(be===null&&Fe!==null&&(be=Fe),E.push(">"),bt!=null){if(be!=null)throw Error(t(92));if(I(bt)&&1<bt.length)throw Error(t(93));be=""+bt}return typeof be=="string"&&be[0]===`
70
44
  `&&E.push(`
71
45
  `),be!==null&&E.push(_(""+be)),null;case"input":E.push(Ve("input")),yt=bt=tt=be=null;for(Fe in q)if(n.call(q,Fe)&&(Tt=q[Fe],Tt!=null))switch(Fe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":yt=Tt;break;case"defaultValue":tt=Tt;break;case"checked":bt=Tt;break;case"value":be=Tt;break;default:de(E,ne,Fe,Tt)}return bt!==null?de(E,ne,"checked",bt):yt!==null&&de(E,ne,"checked",yt),be!==null?de(E,ne,"value",be):tt!==null&&de(E,ne,"value",tt),E.push("/>"),null;case"menuitem":E.push(Ve("menuitem"));for(var Qn in q)if(n.call(q,Qn)&&(be=q[Qn],be!=null))switch(Qn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:de(E,ne,Qn,be)}return E.push(">"),null;case"title":E.push(Ve("title")),be=null;for(Ut in q)if(n.call(q,Ut)&&(Fe=q[Ut],Fe!=null))switch(Ut){case"children":be=Fe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:de(E,ne,Ut,Fe)}return E.push(">"),be;case"listing":case"pre":E.push(Ve(j)),Fe=be=null;for(yt in q)if(n.call(q,yt)&&(tt=q[yt],tt!=null))switch(yt){case"children":be=tt;break;case"dangerouslySetInnerHTML":Fe=tt;break;default:de(E,ne,yt,tt)}if(E.push(">"),Fe!=null){if(be!=null)throw Error(t(60));if(typeof Fe!="object"||!("__html"in Fe))throw Error(t(61));q=Fe.__html,q!=null&&(typeof q=="string"&&0<q.length&&q[0]===`
72
46
  `?E.push(`
@@ -80,7 +54,7 @@ Valid keys: `+JSON.stringify(Object.keys(De),null," "));var rt=Et(lt,vt,Re,Le,X
80
54
  *
81
55
  * This source code is licensed under the MIT license found in the
82
56
  * LICENSE file in the root directory of this source tree.
83
- */var e1;function z5(){if(e1)return Bh;e1=1;var e=Q;function t(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,W=1;W<arguments.length;W++)F+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+k+"; visit "+F+" 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(k,F){if(F.length!==0)if(512<F.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(F);else{var W=n.length-r;W<F.length&&(W===0?k.enqueue(n):(n.set(F.subarray(0,W),r),k.enqueue(n),F=F.subarray(W)),n=new Uint8Array(512),r=0),n.set(F,r),r+=F.length}}function o(k,F){return i(k,F),!0}function s(k){n&&0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var l=new TextEncoder;function c(k){return l.encode(k)}function d(k){return l.encode(k)}function y(k,F){typeof k.error=="function"?k.error(F):k.close()}var p=Object.prototype.hasOwnProperty,S=/^[: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]*$/,T={},_={};function R(k){return p.call(_,k)?!0:p.call(T,k)?!1:S.test(k)?_[k]=!0:(T[k]=!0,!1)}function L(k,F,W,te,Te,Ce,Be){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=te,this.attributeNamespace=Te,this.mustUseProperty=W,this.propertyName=k,this.type=F,this.sanitizeURL=Ce,this.removeEmptyString=Be}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){I[k]=new L(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];I[F]=new L(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){I[k]=new L(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){I[k]=new L(k,2,!1,k,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(k){I[k]=new L(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){I[k]=new L(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){I[k]=new L(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){I[k]=new L(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){I[k]=new L(k,5,!1,k.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function z(k){return k[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(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!1,!1)}),I.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!0,!0)});var re={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},Z=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(k){Z.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),re[F]=re[k]})});var de=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=de.exec(k);if(F){var W="",te,Te=0;for(te=F.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Te!==te&&(W+=k.substring(Te,te)),Te=te+1,W+=F}k=Te!==te?W+k.substring(Te,te):W}return k}var ye=/([A-Z])/g,ae=/^ms-/,Me=Array.isArray,Ze=d("<script>"),Ve=d("<\/script>"),Ye=d('<script src="'),ot=d('<script type="module" src="'),me=d('" async=""><\/script>'),Oe=/(<\/|<)(s)(cript)/gi;function He(k,F,W,te){return""+F+(W==="s"?"\\u0073":"\\u0053")+te}function Je(k,F,W,te,Te){k=k===void 0?"":k,F=F===void 0?Ze:d('<script nonce="'+x(F)+'">');var Ce=[];if(W!==void 0&&Ce.push(F,c((""+W).replace(Oe,He)),Ve),te!==void 0)for(W=0;W<te.length;W++)Ce.push(Ye,c(x(te[W])),me);if(Te!==void 0)for(te=0;te<Te.length;te++)Ce.push(ot,c(x(Te[te])),me);return{bootstrapChunks:Ce,startInlineScript:F,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function st(k,F){return{insertionMode:k,selectedValue:F}}function De(k){return st(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function xe(k,F,W){switch(F){case"select":return st(1,W.value!=null?W.value:W.defaultValue);case"svg":return st(2,null);case"math":return st(3,null);case"foreignObject":return st(1,null);case"table":return st(4,null);case"thead":case"tbody":case"tfoot":return st(5,null);case"colgroup":return st(7,null);case"tr":return st(6,null)}return 4<=k.insertionMode||k.insertionMode===0?st(1,null):k}var We=d("<!-- -->");function Ue(k,F,W,te){return F===""?te:(te&&k.push(We),k.push(c(x(F))),!0)}var Re=new Map,Le=d(' style="'),Xe=d(":"),lt=d(";");function mt(k,F,W){if(typeof W!="object")throw Error(t(62));F=!0;for(var te in W)if(p.call(W,te)){var Te=W[te];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(te.indexOf("--")===0){var Ce=c(x(te));Te=c(x((""+Te).trim()))}else{Ce=te;var Be=Re.get(Ce);Be!==void 0||(Be=d(x(Ce.replace(ye,"-$1").toLowerCase().replace(ae,"-ms-"))),Re.set(Ce,Be)),Ce=Be,Te=typeof Te=="number"?Te===0||p.call(re,te)?c(""+Te):c(Te+"px"):c(x((""+Te).trim()))}F?(F=!1,k.push(Le,Ce,Xe,Te)):k.push(lt,Ce,Xe,Te)}}F||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),rt=d('=""');function $t(k,F,W,te){switch(W){case"style":mt(k,F,te);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(F=I.hasOwnProperty(W)?I[W]:null,F!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(W=c(F.attributeName),F.type){case 3:te&&k.push(wt,W,rt);break;case 4:te===!0?k.push(wt,W,rt):te!==!1&&k.push(wt,W,vt,c(x(te)),Et);break;case 5:isNaN(te)||k.push(wt,W,vt,c(x(te)),Et);break;case 6:!isNaN(te)&&1<=te&&k.push(wt,W,vt,c(x(te)),Et);break;default:F.sanitizeURL&&(te=""+te),k.push(wt,W,vt,c(x(te)),Et)}}else if(R(W)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(F=W.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(wt,c(W),vt,c(x(te)),Et)}}}var Ht=d(">"),Xn=d("/>");function br(k,F,W){if(F!=null){if(W!=null)throw Error(t(60));if(typeof F!="object"||!("__html"in F))throw Error(t(61));F=F.__html,F!=null&&k.push(c(""+F))}}function Kn(k){var F="";return e.Children.forEach(k,function(W){W!=null&&(F+=W)}),F}var kn=d(' selected=""');function ji(k,F,W,te){k.push(hn(W));var Te=W=null,Ce;for(Ce in F)if(p.call(F,Ce)){var Be=F[Ce];if(Be!=null)switch(Ce){case"children":W=Be;break;case"dangerouslySetInnerHTML":Te=Be;break;default:$t(k,te,Ce,Be)}}return k.push(Ht),br(k,Te,W),typeof W=="string"?(k.push(c(x(W))),null):W}var Pr=d(`
57
+ */var e1;function W5(){if(e1)return Bh;e1=1;var e=Q;function t(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,W=1;W<arguments.length;W++)F+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+k+"; visit "+F+" 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(k,F){if(F.length!==0)if(512<F.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(F);else{var W=n.length-r;W<F.length&&(W===0?k.enqueue(n):(n.set(F.subarray(0,W),r),k.enqueue(n),F=F.subarray(W)),n=new Uint8Array(512),r=0),n.set(F,r),r+=F.length}}function o(k,F){return i(k,F),!0}function s(k){n&&0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var l=new TextEncoder;function c(k){return l.encode(k)}function d(k){return l.encode(k)}function y(k,F){typeof k.error=="function"?k.error(F):k.close()}var p=Object.prototype.hasOwnProperty,S=/^[: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]*$/,T={},_={};function R(k){return p.call(_,k)?!0:p.call(T,k)?!1:S.test(k)?_[k]=!0:(T[k]=!0,!1)}function L(k,F,W,te,Te,Ce,Be){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=te,this.attributeNamespace=Te,this.mustUseProperty=W,this.propertyName=k,this.type=F,this.sanitizeURL=Ce,this.removeEmptyString=Be}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){I[k]=new L(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];I[F]=new L(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){I[k]=new L(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){I[k]=new L(k,2,!1,k,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(k){I[k]=new L(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){I[k]=new L(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){I[k]=new L(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){I[k]=new L(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){I[k]=new L(k,5,!1,k.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function z(k){return k[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(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(U,z);I[F]=new L(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!1,!1)}),I.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){I[k]=new L(k,1,!1,k.toLowerCase(),null,!0,!0)});var re={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},Z=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(k){Z.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),re[F]=re[k]})});var de=/["'&<>]/;function x(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=de.exec(k);if(F){var W="",te,Te=0;for(te=F.index;te<k.length;te++){switch(k.charCodeAt(te)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Te!==te&&(W+=k.substring(Te,te)),Te=te+1,W+=F}k=Te!==te?W+k.substring(Te,te):W}return k}var ye=/([A-Z])/g,ae=/^ms-/,Me=Array.isArray,Ze=d("<script>"),Ve=d("<\/script>"),Ye=d('<script src="'),ot=d('<script type="module" src="'),me=d('" async=""><\/script>'),Oe=/(<\/|<)(s)(cript)/gi;function He(k,F,W,te){return""+F+(W==="s"?"\\u0073":"\\u0053")+te}function Je(k,F,W,te,Te){k=k===void 0?"":k,F=F===void 0?Ze:d('<script nonce="'+x(F)+'">');var Ce=[];if(W!==void 0&&Ce.push(F,c((""+W).replace(Oe,He)),Ve),te!==void 0)for(W=0;W<te.length;W++)Ce.push(Ye,c(x(te[W])),me);if(Te!==void 0)for(te=0;te<Te.length;te++)Ce.push(ot,c(x(Te[te])),me);return{bootstrapChunks:Ce,startInlineScript:F,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function st(k,F){return{insertionMode:k,selectedValue:F}}function De(k){return st(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function xe(k,F,W){switch(F){case"select":return st(1,W.value!=null?W.value:W.defaultValue);case"svg":return st(2,null);case"math":return st(3,null);case"foreignObject":return st(1,null);case"table":return st(4,null);case"thead":case"tbody":case"tfoot":return st(5,null);case"colgroup":return st(7,null);case"tr":return st(6,null)}return 4<=k.insertionMode||k.insertionMode===0?st(1,null):k}var We=d("<!-- -->");function Ue(k,F,W,te){return F===""?te:(te&&k.push(We),k.push(c(x(F))),!0)}var Re=new Map,Le=d(' style="'),Xe=d(":"),lt=d(";");function mt(k,F,W){if(typeof W!="object")throw Error(t(62));F=!0;for(var te in W)if(p.call(W,te)){var Te=W[te];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(te.indexOf("--")===0){var Ce=c(x(te));Te=c(x((""+Te).trim()))}else{Ce=te;var Be=Re.get(Ce);Be!==void 0||(Be=d(x(Ce.replace(ye,"-$1").toLowerCase().replace(ae,"-ms-"))),Re.set(Ce,Be)),Ce=Be,Te=typeof Te=="number"?Te===0||p.call(re,te)?c(""+Te):c(Te+"px"):c(x((""+Te).trim()))}F?(F=!1,k.push(Le,Ce,Xe,Te)):k.push(lt,Ce,Xe,Te)}}F||k.push(Et)}var wt=d(" "),vt=d('="'),Et=d('"'),rt=d('=""');function $t(k,F,W,te){switch(W){case"style":mt(k,F,te);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(F=I.hasOwnProperty(W)?I[W]:null,F!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(W=c(F.attributeName),F.type){case 3:te&&k.push(wt,W,rt);break;case 4:te===!0?k.push(wt,W,rt):te!==!1&&k.push(wt,W,vt,c(x(te)),Et);break;case 5:isNaN(te)||k.push(wt,W,vt,c(x(te)),Et);break;case 6:!isNaN(te)&&1<=te&&k.push(wt,W,vt,c(x(te)),Et);break;default:F.sanitizeURL&&(te=""+te),k.push(wt,W,vt,c(x(te)),Et)}}else if(R(W)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(F=W.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(wt,c(W),vt,c(x(te)),Et)}}}var Ht=d(">"),Xn=d("/>");function br(k,F,W){if(F!=null){if(W!=null)throw Error(t(60));if(typeof F!="object"||!("__html"in F))throw Error(t(61));F=F.__html,F!=null&&k.push(c(""+F))}}function Kn(k){var F="";return e.Children.forEach(k,function(W){W!=null&&(F+=W)}),F}var kn=d(' selected=""');function ji(k,F,W,te){k.push(hn(W));var Te=W=null,Ce;for(Ce in F)if(p.call(F,Ce)){var Be=F[Ce];if(Be!=null)switch(Ce){case"children":W=Be;break;case"dangerouslySetInnerHTML":Te=Be;break;default:$t(k,te,Ce,Be)}}return k.push(Ht),br(k,Te,W),typeof W=="string"?(k.push(c(x(W))),null):W}var Pr=d(`
84
58
  `),rr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cn=new Map;function hn(k){var F=cn.get(k);if(F===void 0){if(!rr.test(k))throw Error(t(65,k));F=d("<"+k),cn.set(k,F)}return F}var pn=d("<!DOCTYPE html>");function gt(k,F,W,te,Te){switch(F){case"select":k.push(hn("select"));var Ce=null,Be=null;for(Dt in W)if(p.call(W,Dt)){var et=W[Dt];if(et!=null)switch(Dt){case"children":Ce=et;break;case"dangerouslySetInnerHTML":Be=et;break;case"defaultValue":case"value":break;default:$t(k,te,Dt,et)}}return k.push(Ht),br(k,Be,Ce),Ce;case"option":Be=Te.selectedValue,k.push(hn("option"));var xt=et=null,Nt=null,Dt=null;for(Ce in W)if(p.call(W,Ce)){var Ct=W[Ce];if(Ct!=null)switch(Ce){case"children":et=Ct;break;case"selected":Nt=Ct;break;case"dangerouslySetInnerHTML":Dt=Ct;break;case"value":xt=Ct;default:$t(k,te,Ce,Ct)}}if(Be!=null)if(W=xt!==null?""+xt:Kn(et),Me(Be)){for(te=0;te<Be.length;te++)if(""+Be[te]===W){k.push(kn);break}}else""+Be===W&&k.push(kn);else Nt&&k.push(kn);return k.push(Ht),br(k,Dt,et),et;case"textarea":k.push(hn("textarea")),Dt=Be=Ce=null;for(et in W)if(p.call(W,et)&&(xt=W[et],xt!=null))switch(et){case"children":Dt=xt;break;case"value":Ce=xt;break;case"defaultValue":Be=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,te,et,xt)}if(Ce===null&&Be!==null&&(Ce=Be),k.push(Ht),Dt!=null){if(Ce!=null)throw Error(t(92));if(Me(Dt)&&1<Dt.length)throw Error(t(93));Ce=""+Dt}return typeof Ce=="string"&&Ce[0]===`
85
59
  `&&k.push(Pr),Ce!==null&&k.push(c(x(""+Ce))),null;case"input":k.push(hn("input")),xt=Dt=et=Ce=null;for(Be in W)if(p.call(W,Be)&&(Nt=W[Be],Nt!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Nt;break;case"defaultValue":et=Nt;break;case"checked":Dt=Nt;break;case"value":Ce=Nt;break;default:$t(k,te,Be,Nt)}return Dt!==null?$t(k,te,"checked",Dt):xt!==null&&$t(k,te,"checked",xt),Ce!==null?$t(k,te,"value",Ce):et!==null&&$t(k,te,"value",et),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var Bn in W)if(p.call(W,Bn)&&(Ce=W[Bn],Ce!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,te,Bn,Ce)}return k.push(Ht),null;case"title":k.push(hn("title")),Ce=null;for(Ct in W)if(p.call(W,Ct)&&(Be=W[Ct],Be!=null))switch(Ct){case"children":Ce=Be;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,te,Ct,Be)}return k.push(Ht),Ce;case"listing":case"pre":k.push(hn(F)),Be=Ce=null;for(xt in W)if(p.call(W,xt)&&(et=W[xt],et!=null))switch(xt){case"children":Ce=et;break;case"dangerouslySetInnerHTML":Be=et;break;default:$t(k,te,xt,et)}if(k.push(Ht),Be!=null){if(Ce!=null)throw Error(t(60));if(typeof Be!="object"||!("__html"in Be))throw Error(t(61));W=Be.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
86
60
  `?k.push(Pr,c(W)):k.push(c(""+W)))}return typeof Ce=="string"&&Ce[0]===`
@@ -92,7 +66,7 @@ Valid keys: `+JSON.stringify(Object.keys(De),null," "));var rt=Et(lt,vt,Re,Le,X
92
66
  *
93
67
  * This source code is licensed under the MIT license found in the
94
68
  * LICENSE file in the root directory of this source tree.
95
- */var t1;function Y5(){return t1||(t1=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("warn",h,D)}}function i(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("error",h,D)}}function o(h,b,D){{var M=n.ReactDebugCurrentFrame,Y=M.getStackAddendum();Y!==""&&(b+="%s",D=D.concat([Y]));var ie=D.map(function(ce){return String(ce)});ie.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,ie)}}function s(h){h()}function l(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function y(h){}function p(h){h.push(null)}function S(h){return h}function T(h){return h}function _(h,b){h.destroy(b)}function R(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,D=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}function L(h){try{return I(h),!1}catch{return!0}}function I(h){return""+h}function U(h,b){if(L(h))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,R(h)),I(h)}function z(h,b){if(L(h))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,R(h)),I(h)}function re(h){if(L(h))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",R(h)),I(h)}var Z=Object.prototype.hasOwnProperty,de=0,x=1,ye=2,ae=3,Me=4,Ze=5,Ve=6,Ye=":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",ot=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+Ye+"]["+ot+"]*$"),Oe={},He={};function Je(h){return Z.call(He,h)?!0:Z.call(Oe,h)?!1:me.test(h)?(He[h]=!0,!0):(Oe[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function st(h,b,D,M){if(D!==null&&D.type===de)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(D!==null)return!D.acceptsBooleans;var Y=h.toLowerCase().slice(0,5);return Y!=="data-"&&Y!=="aria-"}default:return!1}}function De(h){return We.hasOwnProperty(h)?We[h]:null}function xe(h,b,D,M,Y,ie,ce){this.acceptsBooleans=b===ye||b===ae||b===Me,this.attributeName=M,this.attributeNamespace=Y,this.mustUseProperty=D,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=ce}var We={},Ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ue.forEach(function(h){We[h]=new xe(h,de,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],D=h[1];We[b]=new xe(b,x,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){We[h]=new xe(h,ye,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){We[h]=new xe(h,ye,!1,h,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"].forEach(function(h){We[h]=new xe(h,ae,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){We[h]=new xe(h,ae,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){We[h]=new xe(h,Me,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){We[h]=new xe(h,Ve,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){We[h]=new xe(h,Ze,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Le=function(h){return h[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"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){We[h]=new xe(h,x,!1,h.toLowerCase(),null,!1,!1)});var Xe="xlinkHref";We[Xe]=new xe("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){We[h]=new xe(h,x,!1,h.toLowerCase(),null,!0,!0)});var lt={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};function mt(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var wt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){wt.forEach(function(b){lt[mt(b,h)]=lt[h]})});var vt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Et(h,b){vt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),b.onChange||b.readOnly||b.disabled||b.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function rt(h,b){if(h.indexOf("-")===-1)return typeof b.is=="string";switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $t={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ht={},Xn=new RegExp("^(aria)-["+ot+"]*$"),br=new RegExp("^(aria)[A-Z]["+ot+"]*$");function Kn(h,b){{if(Z.call(Ht,b)&&Ht[b])return!0;if(br.test(b)){var D="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(D)?D:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Ht[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Ht[b]=!0,!0}if(Xn.test(b)){var Y=b.toLowerCase(),ie=$t.hasOwnProperty(Y)?Y:null;if(ie==null)return Ht[b]=!0,!1;if(b!==ie)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ie),Ht[b]=!0,!0}}return!0}function kn(h,b){{var D=[];for(var M in b){var Y=Kn(h,M);Y||D.push(M)}var ie=D.map(function(ce){return"`"+ce+"`"}).join(", ");D.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):D.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function ji(h,b){rt(h,b)||kn(h,b)}var Pr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Pr&&(Pr=!0,h==="select"&&b.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",h):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",h))}}var cn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},hn=function(){};{var pn={},gt=/^on./,Rn=/^on[^A-Z]/,ci=new RegExp("^(aria)-["+ot+"]*$"),ln=new RegExp("^(aria)[A-Z]["+ot+"]*$");hn=function(h,b,D,M){if(Z.call(pn,b)&&pn[b])return!0;var Y=b.toLowerCase();if(Y==="onfocusin"||Y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,ce=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=ce.hasOwnProperty(Y)?ce[Y]:null;if(Ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Ie),pn[b]=!0,!0;if(gt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),pn[b]=!0,!0}else if(gt.test(b))return Rn.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(ci.test(b)||ln.test(b))return!0;if(Y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(Y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(Y==="is"&&D!==null&&D!==void 0&&typeof D!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),pn[b]=!0,!0;if(typeof D=="number"&&isNaN(D))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var Qe=De(b),ht=Qe!==null&&Qe.type===de;if(cn.hasOwnProperty(Y)){var St=cn[Y];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!ht&&b!==Y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,Y),pn[b]=!0,!0;return typeof D=="boolean"&&st(b,D,Qe,!1)?(D?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,b,b,D,b):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',D,b,b,D,b,b,b),pn[b]=!0,!0):ht?!0:st(b,D,Qe,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&Qe!==null&&Qe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,b,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,D),pn[b]=!0),!0)}}var Bi=function(h,b,D){{var M=[];for(var Y in b){var ie=hn(h,Y,b[Y],D);ie||M.push(Y)}var ce=M.map(function(Ie){return"`"+Ie+"`"}).join(", ");M.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ce,h):M.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ce,h)}};function $i(h,b,D){rt(h,b)||Bi(h,b,D)}var Vi=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,wr=/;\s*$/,qr={},Xr={},Po=!1,Zn=!1,Kr=function(h){return h.replace(Rr,function(b,D){return D.toUpperCase()})},ir=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Kr(h.replace(Un,"ms-"))))},Zt=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},fi=function(h,b){Xr.hasOwnProperty(b)&&Xr[b]||(Xr[b]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,h,b.replace(wr,"")))},Hi=function(h,b){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},In=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Vi=function(h,b){h.indexOf("-")>-1?ir(h):_r.test(h)?Zt(h):wr.test(b)&&fi(h,b),typeof b=="number"&&(isNaN(b)?Hi(h,b):isFinite(b)||In(h,b))}}var gn=Vi,di=/["'&<>]/;function hi(h){re(h);var b=""+h,D=di.exec(b);if(!D)return b;var M,Y="",ie,ce=0;for(ie=D.index;ie<b.length;ie++){switch(b.charCodeAt(ie)){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}ce!==ie&&(Y+=b.substring(ce,ie)),ce=ie+1,Y+=M}return ce!==ie?Y+b.substring(ce,ie):Y}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:hi(h)}var uo=/([A-Z])/g,xr=/^ms-/;function pi(h){return h.replace(uo,"-$1").toLowerCase().replace(xr,"-ms-")}var fn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Si=!1;function Ra(h){!Si&&fn.test(h)&&(Si=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(h)))}var Ia=Array.isArray;function Zr(h){return Ia(h)}var lo="<script>",co="<\/script>",_o='<script src="',Ti='<script type="module" src="',gi='" async=""><\/script>';function Ci(h){return re(h),(""+h).replace(fo,Ei)}var fo=/(<\/|<)(s)(cript)/gi,Ei=function(h,b,D,M){return""+b+(D==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,D,M,Y){var ie=h===void 0?"":h,ce=b===void 0?lo:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(ce,Ci(D),co),M!==void 0)for(var Qe=0;Qe<M.length;Qe++)Ie.push(_o,mn(M[Qe]),gi);if(Y!==void 0)for(var ht=0;ht<Y.length;ht++)Ie.push(Ti,mn(Y[ht]),gi);return{bootstrapChunks:Ie,startInlineScript:ce,placeholderPrefix:ie+"P:",segmentPrefix:ie+"S:",boundaryPrefix:ie+"B:",idPrefix:ie,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Sr=0,Ir=1,Qr=2,Ar=3,Wn=4,vn=5,Mr=6,Tr=7;function An(h,b){return{insertionMode:h,selectedValue:b}}function vi(h,b,D){switch(b){case"select":return An(Ir,D.value!=null?D.value:D.defaultValue);case"svg":return An(Qr,null);case"math":return An(Ar,null);case"foreignObject":return An(Ir,null);case"table":return An(Wn,null);case"thead":case"tbody":case"tfoot":return An(vn,null);case"colgroup":return An(Tr,null);case"tr":return An(Mr,null)}return h.insertionMode>=Wn||h.insertionMode===Sr?An(Ir,null):h}var Lr=null;function ei(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Jn(h,b,D){var M=h.idPrefix,Y=":"+M+"R"+b;return D>0&&(Y+="H"+D.toString(32)),Y+":"}function ti(h){return mn(h)}var ni="<!-- -->";function Ui(h,b,D,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function _n(h,b,D,M){D&&M&&h.push(ni)}var Cr=new Map;function fr(h){var b=Cr.get(h);if(b!==void 0)return b;var D=mn(pi(h));return Cr.set(h,D),D}var Ro=' style="',Wi=":",Fr=";";function E(h,b,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var M=!0;for(var Y in D)if(Z.call(D,Y)){var ie=D[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var ce=void 0,Ie=void 0,Qe=Y.indexOf("--")===0;Qe?(ce=mn(Y),z(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),ce=fr(Y),typeof ie=="number"?ie!==0&&!Z.call(lt,Y)?Ie=ie+"px":Ie=""+ie:(z(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Ro,ce,Wi,Ie)):h.push(Fr,ce,Wi,Ie)}}M||h.push(ne)}var j=" ",q='="',ne='"',Pe='=""';function be(h,b,D,M){switch(D){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var Y=De(D);if(Y!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!Y.acceptsBooleans)return}var ie=Y.attributeName,ce=ie;switch(Y.type){case ae:M&&h.push(j,ce,Pe);return;case Me:M===!0?h.push(j,ce,Pe):M===!1||h.push(j,ce,q,mn(M),ne);return;case Ze:isNaN(M)||h.push(j,ce,q,mn(M),ne);break;case Ve:!isNaN(M)&&M>=1&&h.push(j,ce,q,mn(M),ne);break;default:Y.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,ce,q,mn(M),ne)}}else if(Je(D)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=D.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,D,q,mn(M),ne)}}}var Fe=">",tt="/>";function yt(h,b,D){if(b!=null){if(D!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var M=b.__html;M!=null&&(re(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,zn=!1,On=!1,Nr=!1;function or(h,b){{var D=h[b];if(D!=null){var M=Zr(D);h.multiple&&!M?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!h.multiple&&M&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function zi(h,b,D){Et("select",b),or(b,"value"),or(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ut&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ut=!0),h.push(Vt("select"));var M=null,Y=null;for(var ie in b)if(Z.call(b,ie)){var ce=b[ie];if(ce==null)continue;switch(ie){case"children":M=ce;break;case"dangerouslySetInnerHTML":Y=ce;break;case"defaultValue":case"value":break;default:be(h,D,ie,ce);break}}return h.push(Fe),yt(h,Y,M),M}function mi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!zn&&typeof D!="string"&&typeof D!="number"&&(zn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Yi=' selected=""';function jr(h,b,D,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,ce=null,Ie=null,Qe=null;for(var ht in b)if(Z.call(b,ht)){var St=b[ht];if(St==null)continue;switch(ht){case"children":ie=St;break;case"selected":Ie=St,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":Qe=St;break;case"value":ce=St;default:be(h,D,ht,St);break}}if(Y!=null){var _t;if(ce!==null?(U(ce,"value"),_t=""+ce):(Qe!==null&&(On||(On=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),_t=mi(ie)),Zr(Y))for(var Cn=0;Cn<Y.length;Cn++){U(Y[Cn],"value");var sr=""+Y[Cn];if(sr===_t){h.push(Yi);break}}else U(Y,"select.value"),""+Y===_t&&h.push(Yi)}else Ie&&h.push(Yi);return h.push(Fe),yt(h,Qe,ie),ie}function Io(h,b,D){Et("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!bt&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),bt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Tt&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),Tt=!0),h.push(Vt("input"));var M=null,Y=null,ie=null,ce=null;for(var Ie in b)if(Z.call(b,Ie)){var Qe=b[Ie];if(Qe==null)continue;switch(Ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ce=Qe;break;case"defaultValue":Y=Qe;break;case"checked":ie=Qe;break;case"value":M=Qe;break;default:be(h,D,Ie,Qe);break}}return ie!==null?be(h,D,"checked",ie):ce!==null&&be(h,D,"checked",ce),M!==null?be(h,D,"value",M):Y!==null&&be(h,D,"value",Y),h.push(tt),null}function Vs(h,b,D){Et("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Qn&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Qn=!0),h.push(Vt("textarea"));var M=null,Y=null,ie=null;for(var ce in b)if(Z.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":Y=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,D,ce,Ie);break}}if(M===null&&Y!==null&&(M=Y),h.push(Fe),ie!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),M!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zr(ie)){if(ie.length>1)throw new Error("<textarea> can only have at most one child.");re(ie[0]),M=""+ie[0]}re(ie),M=""+ie}return typeof M=="string"&&M[0]===`
69
+ */var t1;function z5(){return t1||(t1=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("warn",h,D)}}function i(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("error",h,D)}}function o(h,b,D){{var M=n.ReactDebugCurrentFrame,Y=M.getStackAddendum();Y!==""&&(b+="%s",D=D.concat([Y]));var ie=D.map(function(ce){return String(ce)});ie.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,ie)}}function s(h){h()}function l(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function y(h){}function p(h){h.push(null)}function S(h){return h}function T(h){return h}function _(h,b){h.destroy(b)}function R(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,D=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}function L(h){try{return I(h),!1}catch{return!0}}function I(h){return""+h}function U(h,b){if(L(h))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,R(h)),I(h)}function z(h,b){if(L(h))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,R(h)),I(h)}function re(h){if(L(h))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",R(h)),I(h)}var Z=Object.prototype.hasOwnProperty,de=0,x=1,ye=2,ae=3,Me=4,Ze=5,Ve=6,Ye=":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",ot=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+Ye+"]["+ot+"]*$"),Oe={},He={};function Je(h){return Z.call(He,h)?!0:Z.call(Oe,h)?!1:me.test(h)?(He[h]=!0,!0):(Oe[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function st(h,b,D,M){if(D!==null&&D.type===de)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(D!==null)return!D.acceptsBooleans;var Y=h.toLowerCase().slice(0,5);return Y!=="data-"&&Y!=="aria-"}default:return!1}}function De(h){return We.hasOwnProperty(h)?We[h]:null}function xe(h,b,D,M,Y,ie,ce){this.acceptsBooleans=b===ye||b===ae||b===Me,this.attributeName=M,this.attributeNamespace=Y,this.mustUseProperty=D,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=ce}var We={},Ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ue.forEach(function(h){We[h]=new xe(h,de,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],D=h[1];We[b]=new xe(b,x,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){We[h]=new xe(h,ye,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){We[h]=new xe(h,ye,!1,h,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"].forEach(function(h){We[h]=new xe(h,ae,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){We[h]=new xe(h,ae,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){We[h]=new xe(h,Me,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){We[h]=new xe(h,Ve,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){We[h]=new xe(h,Ze,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Le=function(h){return h[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"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Le);We[b]=new xe(b,x,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){We[h]=new xe(h,x,!1,h.toLowerCase(),null,!1,!1)});var Xe="xlinkHref";We[Xe]=new xe("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){We[h]=new xe(h,x,!1,h.toLowerCase(),null,!0,!0)});var lt={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};function mt(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var wt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){wt.forEach(function(b){lt[mt(b,h)]=lt[h]})});var vt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Et(h,b){vt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),b.onChange||b.readOnly||b.disabled||b.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function rt(h,b){if(h.indexOf("-")===-1)return typeof b.is=="string";switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $t={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ht={},Xn=new RegExp("^(aria)-["+ot+"]*$"),br=new RegExp("^(aria)[A-Z]["+ot+"]*$");function Kn(h,b){{if(Z.call(Ht,b)&&Ht[b])return!0;if(br.test(b)){var D="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(D)?D:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Ht[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Ht[b]=!0,!0}if(Xn.test(b)){var Y=b.toLowerCase(),ie=$t.hasOwnProperty(Y)?Y:null;if(ie==null)return Ht[b]=!0,!1;if(b!==ie)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ie),Ht[b]=!0,!0}}return!0}function kn(h,b){{var D=[];for(var M in b){var Y=Kn(h,M);Y||D.push(M)}var ie=D.map(function(ce){return"`"+ce+"`"}).join(", ");D.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):D.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function ji(h,b){rt(h,b)||kn(h,b)}var Pr=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!Pr&&(Pr=!0,h==="select"&&b.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",h):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",h))}}var cn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},hn=function(){};{var pn={},gt=/^on./,Rn=/^on[^A-Z]/,ci=new RegExp("^(aria)-["+ot+"]*$"),ln=new RegExp("^(aria)[A-Z]["+ot+"]*$");hn=function(h,b,D,M){if(Z.call(pn,b)&&pn[b])return!0;var Y=b.toLowerCase();if(Y==="onfocusin"||Y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,ce=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=ce.hasOwnProperty(Y)?ce[Y]:null;if(Ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Ie),pn[b]=!0,!0;if(gt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),pn[b]=!0,!0}else if(gt.test(b))return Rn.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(ci.test(b)||ln.test(b))return!0;if(Y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(Y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(Y==="is"&&D!==null&&D!==void 0&&typeof D!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),pn[b]=!0,!0;if(typeof D=="number"&&isNaN(D))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var Qe=De(b),ht=Qe!==null&&Qe.type===de;if(cn.hasOwnProperty(Y)){var St=cn[Y];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!ht&&b!==Y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,Y),pn[b]=!0,!0;return typeof D=="boolean"&&st(b,D,Qe,!1)?(D?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,b,b,D,b):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',D,b,b,D,b,b,b),pn[b]=!0,!0):ht?!0:st(b,D,Qe,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&Qe!==null&&Qe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,b,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,D),pn[b]=!0),!0)}}var Bi=function(h,b,D){{var M=[];for(var Y in b){var ie=hn(h,Y,b[Y],D);ie||M.push(Y)}var ce=M.map(function(Ie){return"`"+Ie+"`"}).join(", ");M.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ce,h):M.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ce,h)}};function $i(h,b,D){rt(h,b)||Bi(h,b,D)}var Vi=function(){};{var _r=/^(?:webkit|moz|o)[A-Z]/,Un=/^-ms-/,Rr=/-(.)/g,wr=/;\s*$/,qr={},Xr={},Po=!1,Zn=!1,Kr=function(h){return h.replace(Rr,function(b,D){return D.toUpperCase()})},ir=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Kr(h.replace(Un,"ms-"))))},Zt=function(h){qr.hasOwnProperty(h)&&qr[h]||(qr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},fi=function(h,b){Xr.hasOwnProperty(b)&&Xr[b]||(Xr[b]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,h,b.replace(wr,"")))},Hi=function(h,b){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},In=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Vi=function(h,b){h.indexOf("-")>-1?ir(h):_r.test(h)?Zt(h):wr.test(b)&&fi(h,b),typeof b=="number"&&(isNaN(b)?Hi(h,b):isFinite(b)||In(h,b))}}var gn=Vi,di=/["'&<>]/;function hi(h){re(h);var b=""+h,D=di.exec(b);if(!D)return b;var M,Y="",ie,ce=0;for(ie=D.index;ie<b.length;ie++){switch(b.charCodeAt(ie)){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}ce!==ie&&(Y+=b.substring(ce,ie)),ce=ie+1,Y+=M}return ce!==ie?Y+b.substring(ce,ie):Y}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:hi(h)}var uo=/([A-Z])/g,xr=/^ms-/;function pi(h){return h.replace(uo,"-$1").toLowerCase().replace(xr,"-ms-")}var fn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Si=!1;function Ra(h){!Si&&fn.test(h)&&(Si=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(h)))}var Ia=Array.isArray;function Zr(h){return Ia(h)}var lo="<script>",co="<\/script>",_o='<script src="',Ti='<script type="module" src="',gi='" async=""><\/script>';function Ci(h){return re(h),(""+h).replace(fo,Ei)}var fo=/(<\/|<)(s)(cript)/gi,Ei=function(h,b,D,M){return""+b+(D==="s"?"\\u0073":"\\u0053")+M};function Jr(h,b,D,M,Y){var ie=h===void 0?"":h,ce=b===void 0?lo:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(ce,Ci(D),co),M!==void 0)for(var Qe=0;Qe<M.length;Qe++)Ie.push(_o,mn(M[Qe]),gi);if(Y!==void 0)for(var ht=0;ht<Y.length;ht++)Ie.push(Ti,mn(Y[ht]),gi);return{bootstrapChunks:Ie,startInlineScript:ce,placeholderPrefix:ie+"P:",segmentPrefix:ie+"S:",boundaryPrefix:ie+"B:",idPrefix:ie,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Sr=0,Ir=1,Qr=2,Ar=3,Wn=4,vn=5,Mr=6,Tr=7;function An(h,b){return{insertionMode:h,selectedValue:b}}function vi(h,b,D){switch(b){case"select":return An(Ir,D.value!=null?D.value:D.defaultValue);case"svg":return An(Qr,null);case"math":return An(Ar,null);case"foreignObject":return An(Ir,null);case"table":return An(Wn,null);case"thead":case"tbody":case"tfoot":return An(vn,null);case"colgroup":return An(Tr,null);case"tr":return An(Mr,null)}return h.insertionMode>=Wn||h.insertionMode===Sr?An(Ir,null):h}var Lr=null;function ei(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Jn(h,b,D){var M=h.idPrefix,Y=":"+M+"R"+b;return D>0&&(Y+="H"+D.toString(32)),Y+":"}function ti(h){return mn(h)}var ni="<!-- -->";function Ui(h,b,D,M){return b===""?M:(M&&h.push(ni),h.push(ti(b)),!0)}function _n(h,b,D,M){D&&M&&h.push(ni)}var Cr=new Map;function fr(h){var b=Cr.get(h);if(b!==void 0)return b;var D=mn(pi(h));return Cr.set(h,D),D}var Ro=' style="',Wi=":",Fr=";";function E(h,b,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var M=!0;for(var Y in D)if(Z.call(D,Y)){var ie=D[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var ce=void 0,Ie=void 0,Qe=Y.indexOf("--")===0;Qe?(ce=mn(Y),z(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),ce=fr(Y),typeof ie=="number"?ie!==0&&!Z.call(lt,Y)?Ie=ie+"px":Ie=""+ie:(z(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Ro,ce,Wi,Ie)):h.push(Fr,ce,Wi,Ie)}}M||h.push(ne)}var j=" ",q='="',ne='"',Pe='=""';function be(h,b,D,M){switch(D){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var Y=De(D);if(Y!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!Y.acceptsBooleans)return}var ie=Y.attributeName,ce=ie;switch(Y.type){case ae:M&&h.push(j,ce,Pe);return;case Me:M===!0?h.push(j,ce,Pe):M===!1||h.push(j,ce,q,mn(M),ne);return;case Ze:isNaN(M)||h.push(j,ce,q,mn(M),ne);break;case Ve:!isNaN(M)&&M>=1&&h.push(j,ce,q,mn(M),ne);break;default:Y.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,ce,q,mn(M),ne)}}else if(Je(D)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=D.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,D,q,mn(M),ne)}}}var Fe=">",tt="/>";function yt(h,b,D){if(b!=null){if(D!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var M=b.__html;M!=null&&(re(M),h.push(""+M))}}var Tt=!1,bt=!1,Ut=!1,Qn=!1,zn=!1,On=!1,Nr=!1;function or(h,b){{var D=h[b];if(D!=null){var M=Zr(D);h.multiple&&!M?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!h.multiple&&M&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function zi(h,b,D){Et("select",b),or(b,"value"),or(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ut&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ut=!0),h.push(Vt("select"));var M=null,Y=null;for(var ie in b)if(Z.call(b,ie)){var ce=b[ie];if(ce==null)continue;switch(ie){case"children":M=ce;break;case"dangerouslySetInnerHTML":Y=ce;break;case"defaultValue":case"value":break;default:be(h,D,ie,ce);break}}return h.push(Fe),yt(h,Y,M),M}function mi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!zn&&typeof D!="string"&&typeof D!="number"&&(zn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var Yi=' selected=""';function jr(h,b,D,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,ce=null,Ie=null,Qe=null;for(var ht in b)if(Z.call(b,ht)){var St=b[ht];if(St==null)continue;switch(ht){case"children":ie=St;break;case"selected":Ie=St,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":Qe=St;break;case"value":ce=St;default:be(h,D,ht,St);break}}if(Y!=null){var _t;if(ce!==null?(U(ce,"value"),_t=""+ce):(Qe!==null&&(On||(On=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),_t=mi(ie)),Zr(Y))for(var Cn=0;Cn<Y.length;Cn++){U(Y[Cn],"value");var sr=""+Y[Cn];if(sr===_t){h.push(Yi);break}}else U(Y,"select.value"),""+Y===_t&&h.push(Yi)}else Ie&&h.push(Yi);return h.push(Fe),yt(h,Qe,ie),ie}function Io(h,b,D){Et("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!bt&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),bt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Tt&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),Tt=!0),h.push(Vt("input"));var M=null,Y=null,ie=null,ce=null;for(var Ie in b)if(Z.call(b,Ie)){var Qe=b[Ie];if(Qe==null)continue;switch(Ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ce=Qe;break;case"defaultValue":Y=Qe;break;case"checked":ie=Qe;break;case"value":M=Qe;break;default:be(h,D,Ie,Qe);break}}return ie!==null?be(h,D,"checked",ie):ce!==null&&be(h,D,"checked",ce),M!==null?be(h,D,"value",M):Y!==null&&be(h,D,"value",Y),h.push(tt),null}function Vs(h,b,D){Et("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Qn&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Qn=!0),h.push(Vt("textarea"));var M=null,Y=null,ie=null;for(var ce in b)if(Z.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":Y=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,D,ce,Ie);break}}if(M===null&&Y!==null&&(M=Y),h.push(Fe),ie!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),M!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Zr(ie)){if(ie.length>1)throw new Error("<textarea> can only have at most one child.");re(ie[0]),M=""+ie[0]}re(ie),M=""+ie}return typeof M=="string"&&M[0]===`
96
70
  `&&h.push(Ao),M!==null&&(U(M,"value"),h.push(ti(""+M))),null}function Aa(h,b,D,M){h.push(Vt(D));for(var Y in b)if(Z.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error(D+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,Y,ie);break}}return h.push(tt),null}function Ma(h,b,D){h.push(Vt("menuitem"));for(var M in b)if(Z.call(b,M)){var Y=b[M];if(Y==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,D,M,Y);break}}return h.push(Fe),null}function La(h,b,D){h.push(Vt("title"));var M=null;for(var Y in b)if(Z.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,D,Y,ie);break}}h.push(Fe);{var ce=Array.isArray(M)&&M.length<2?M[0]||null:M;Array.isArray(M)&&M.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ce!=null&&ce.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ce!=null&&typeof ce!="string"&&typeof ce!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return M}function Fa(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var ce in b)if(Z.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,ce,Ie);break}}return h.push(Fe),yt(h,ie,Y),typeof Y=="string"?(h.push(ti(Y)),null):Y}function yi(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var ce in b)if(Z.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;case"style":E(h,M,Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Je(ce)&&typeof Ie!="function"&&typeof Ie!="symbol"&&h.push(j,ce,q,mn(Ie),ne);break}}return h.push(Fe),yt(h,ie,Y),Y}var Ao=`
97
71
  `;function ra(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var ce in b)if(Z.call(b,ce)){var Ie=b[ce];if(Ie==null)continue;switch(ce){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,ce,Ie);break}}if(h.push(Fe),ie!=null){if(Y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ie!="object"||!("__html"in ie))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Qe=ie.__html;Qe!=null&&(typeof Qe=="string"&&Qe.length>0&&Qe[0]===`
98
72
  `?h.push(Ao,Qe):(re(Qe),h.push(""+Qe)))}return typeof Y=="string"&&Y[0]===`
@@ -131,7 +105,7 @@ Error generating stack: `+M.message+`
131
105
  *
132
106
  * This source code is licensed under the MIT license found in the
133
107
  * LICENSE file in the root directory of this source tree.
134
- */var n1;function G5(){return n1||(n1=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",g,A)}}function i(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",g,A)}}function o(g,w,A){{var $=n.ReactDebugCurrentFrame,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var se=A.map(function(pe){return String(pe)});se.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,se)}}function s(g){g()}var l=512,c=null,d=0;function y(g){c=new Uint8Array(l),d=0}function p(g,w){if(w.length!==0){if(w.length>l){d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(l),d=0),g.enqueue(w);return}var A=w,$=c.length-d;$<A.length&&($===0?g.enqueue(c):(c.set(A.subarray(0,$),d),g.enqueue(c),A=A.subarray($)),c=new Uint8Array(l),d=0),c.set(A,d),d+=A.length}}function S(g,w){return p(g,w),!0}function T(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function _(g){g.close()}var R=new TextEncoder;function L(g){return R.encode(g)}function I(g){return R.encode(g)}function U(g,w){typeof g.error=="function"?g.error(w):g.close()}function z(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function re(g){try{return Z(g),!1}catch{return!0}}function Z(g){return""+g}function de(g,w){if(re(g))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",w,z(g)),Z(g)}function x(g,w){if(re(g))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",w,z(g)),Z(g)}function ye(g){if(re(g))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",z(g)),Z(g)}var ae=Object.prototype.hasOwnProperty,Me=0,Ze=1,Ve=2,Ye=3,ot=4,me=5,Oe=6,He=":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",Je=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",st=new RegExp("^["+He+"]["+Je+"]*$"),De={},xe={};function We(g){return ae.call(xe,g)?!0:ae.call(De,g)?!1:st.test(g)?(xe[g]=!0,!0):(De[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function Ue(g,w,A,$){if(A!==null&&A.type===Me)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var K=g.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(g){return Xe.hasOwnProperty(g)?Xe[g]:null}function Le(g,w,A,$,K,se,pe){this.acceptsBooleans=w===Ve||w===Ye||w===ot,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=se,this.removeEmptyString=pe}var Xe={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){Xe[g]=new Le(g,Me,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],A=g[1];Xe[w]=new Le(w,Ze,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){Xe[g]=new Le(g,Ve,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){Xe[g]=new Le(g,Ve,!1,g,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"].forEach(function(g){Xe[g]=new Le(g,Ye,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){Xe[g]=new Le(g,Ye,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){Xe[g]=new Le(g,ot,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){Xe[g]=new Le(g,Oe,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){Xe[g]=new Le(g,me,!1,g.toLowerCase(),null,!1,!1)});var mt=/[\-\:]([a-z])/g,wt=function(g){return g[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"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){Xe[g]=new Le(g,Ze,!1,g.toLowerCase(),null,!1,!1)});var vt="xlinkHref";Xe[vt]=new Le("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){Xe[g]=new Le(g,Ze,!1,g.toLowerCase(),null,!0,!0)});var Et={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};function rt(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(g){$t.forEach(function(w){Et[rt(w,g)]=Et[g]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(g,w){Ht[w.type]||w.onChange||w.onInput||w.readOnly||w.disabled||w.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),w.onChange||w.readOnly||w.disabled||w.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function br(g,w){if(g.indexOf("-")===-1)return typeof w.is=="string";switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},kn={},ji=new RegExp("^(aria)-["+Je+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Je+"]*$");function rr(g,w){{if(ae.call(kn,w)&&kn[w])return!0;if(Pr.test(w)){var A="aria-"+w.slice(4).toLowerCase(),$=Kn.hasOwnProperty(A)?A:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),kn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),kn[w]=!0,!0}if(ji.test(w)){var K=w.toLowerCase(),se=Kn.hasOwnProperty(K)?K:null;if(se==null)return kn[w]=!0,!1;if(w!==se)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,se),kn[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var K=rr(g,$);K||A.push($)}var se=A.map(function(pe){return"`"+pe+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g)}}function hn(g,w){br(g,w)||cn(g,w)}var pn=!1;function gt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!0,g==="select"&&w.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",g):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",g))}}var Rn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ci=function(){};{var ln={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+Je+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Je+"]*$");ci=function(g,w,A,$){if(ae.call(ln,w)&&ln[w])return!0;var K=w.toLowerCase();if(K==="onfocusin"||K==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ln[w]=!0,!0;if($!=null){var se=$.registrationNameDependencies,pe=$.possibleRegistrationNames;if(se.hasOwnProperty(w))return!0;var Ae=pe.hasOwnProperty(K)?pe[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),ln[w]=!0,!0;if(Bi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),ln[w]=!0,!0}else if(Bi.test(w))return $i.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),ln[w]=!0,!0;if(Vi.test(w)||_r.test(w))return!0;if(K==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ln[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[w]=!0,!0;if(K==="is"&&A!==null&&A!==void 0&&typeof A!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),ln[w]=!0,!0;if(typeof A=="number"&&isNaN(A))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),ln[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Me;if(Rn.hasOwnProperty(K)){var D=Rn[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),ln[w]=!0,!0}else if(!b&&w!==K)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",w,K),ln[w]=!0,!0;return typeof A=="boolean"&&Ue(w,A,h,!1)?(A?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',A,w,w,A,w):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',A,w,w,A,w,w,w),ln[w]=!0,!0):b?!0:Ue(w,A,h,!1)?(ln[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===Ye&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,w,A==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',w,A),ln[w]=!0),!0)}}var Un=function(g,w,A){{var $=[];for(var K in w){var se=ci(g,K,w[K],A);se||$.push(K)}var pe=$.map(function(Ae){return"`"+Ae+"`"}).join(", ");$.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",pe,g):$.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",pe,g)}};function Rr(g,w,A){br(g,w)||Un(g,w,A)}var wr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Po=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,fi=!1,Hi=function(g){return g.replace(Po,function(w,A){return A.toUpperCase()})},In=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Hi(g.replace(Xr,"ms-"))))},gn=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",g,g.charAt(0).toUpperCase()+g.slice(1)))},di=function(g,w){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Zn,"")))},hi=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){fi||(fi=!0,i("`Infinity` is an invalid value for the `%s` css style property.",g))};wr=function(g,w){g.indexOf("-")>-1?In(g):qr.test(g)?gn(g):Zn.test(w)&&di(g,w),typeof w=="number"&&(isNaN(w)?hi(g,w):isFinite(w)||mn(g,w))}}var uo=wr,xr=/["'&<>]/;function pi(g){ye(g);var w=""+g,A=xr.exec(w);if(!A)return w;var $,K="",se,pe=0;for(se=A.index;se<w.length;se++){switch(w.charCodeAt(se)){case 34:$="&quot;";break;case 38:$="&amp;";break;case 39:$="&#x27;";break;case 60:$="&lt;";break;case 62:$="&gt;";break;default:continue}pe!==se&&(K+=w.substring(pe,se)),pe=se+1,K+=$}return pe!==se?K+w.substring(pe,se):K}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:pi(g)}var Si=/([A-Z])/g,Ra=/^ms-/;function Ia(g){return g.replace(Si,"-$1").toLowerCase().replace(Ra,"-ms-")}var Zr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,lo=!1;function co(g){!lo&&Zr.test(g)&&(lo=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(g)))}var _o=Array.isArray;function Ti(g){return _o(g)}var gi=I("<script>"),Ci=I("<\/script>"),fo=I('<script src="'),Ei=I('<script type="module" src="'),Jr=I('" async=""><\/script>');function Sr(g){return ye(g),(""+g).replace(Ir,Qr)}var Ir=/(<\/|<)(s)(cript)/gi,Qr=function(g,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ar(g,w,A,$,K){var se=g===void 0?"":g,pe=w===void 0?gi:I('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(pe,L(Sr(A)),Ci),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(fo,L(fn($[h])),Jr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(Ei,L(fn(K[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:pe,placeholderPrefix:I(se+"P:"),segmentPrefix:I(se+"S:"),boundaryPrefix:se+"B:",idPrefix:se,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,vn=1,Mr=2,Tr=3,An=4,vi=5,Lr=6,ei=7;function Jn(g,w){return{insertionMode:g,selectedValue:w}}function ti(g){var w=g==="http://www.w3.org/2000/svg"?Mr:g==="http://www.w3.org/1998/Math/MathML"?Tr:Wn;return Jn(w,null)}function ni(g,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Mr,null);case"math":return Jn(Tr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(An,null);case"thead":case"tbody":case"tfoot":return Jn(vi,null);case"colgroup":return Jn(ei,null);case"tr":return Jn(Lr,null)}return g.insertionMode>=An||g.insertionMode===Wn?Jn(vn,null):g}var Ui=null;function _n(g){var w=g.nextSuspenseID++;return I(g.boundaryPrefix+w.toString(16))}function Cr(g,w,A){var $=g.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function fr(g){return fn(g)}var Ro=I("<!-- -->");function Wi(g,w,A,$){return w===""?$:($&&g.push(Ro),g.push(L(fr(w))),!0)}function Fr(g,w,A,$){A&&$&&g.push(Ro)}var E=new Map;function j(g){var w=E.get(g);if(w!==void 0)return w;var A=I(fn(Ia(g)));return E.set(g,A),A}var q=I(' style="'),ne=I(":"),Pe=I(";");function be(g,w,A){if(typeof A!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var $=!0;for(var K in A)if(ae.call(A,K)){var se=A[K];if(!(se==null||typeof se=="boolean"||se==="")){var pe=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(pe=L(fn(K)),x(se,K),Ae=L(fn((""+se).trim()))):(uo(K,se),pe=j(K),typeof se=="number"?se!==0&&!ae.call(Et,K)?Ae=L(se+"px"):Ae=L(""+se):(x(se,K),Ae=L(fn((""+se).trim())))),$?($=!1,g.push(q,pe,ne,Ae)):g.push(Pe,pe,ne,Ae)}}$||g.push(yt)}var Fe=I(" "),tt=I('="'),yt=I('"'),Tt=I('=""');function bt(g,w,A,$){switch(A){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var K=Re(A);if(K!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!K.acceptsBooleans)return}var se=K.attributeName,pe=L(se);switch(K.type){case Ye:$&&g.push(Fe,pe,Tt);return;case ot:$===!0?g.push(Fe,pe,Tt):$===!1||g.push(Fe,pe,tt,L(fn($)),yt);return;case me:isNaN($)||g.push(Fe,pe,tt,L(fn($)),yt);break;case Oe:!isNaN($)&&$>=1&&g.push(Fe,pe,tt,L(fn($)),yt);break;default:K.sanitizeURL&&(de($,se),$=""+$,co($)),g.push(Fe,pe,tt,L(fn($)),yt)}}else if(We(A)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=A.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Fe,L(A),tt,L(fn($)),yt)}}}var Ut=I(">"),Qn=I("/>");function zn(g,w,A){if(w!=null){if(A!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof w!="object"||!("__html"in w))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var $=w.__html;$!=null&&(ye($),g.push(L(""+$)))}}var On=!1,Nr=!1,or=!1,zi=!1,mi=!1,Yi=!1,jr=!1;function Io(g,w){{var A=g[w];if(A!=null){var $=Ti(A);g.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!g.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Vs(g,w,A){Xn("select",w),Io(w,"value"),Io(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!or&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),or=!0),g.push(dr("select"));var $=null,K=null;for(var se in w)if(ae.call(w,se)){var pe=w[se];if(pe==null)continue;switch(se){case"children":$=pe;break;case"dangerouslySetInnerHTML":K=pe;break;case"defaultValue":case"value":break;default:bt(g,A,se,pe);break}}return g.push(Ut),zn(g,K,$),$}function Aa(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!mi&&typeof A!="string"&&typeof A!="number"&&(mi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),w}var Ma=I(' selected=""');function La(g,w,A,$){var K=$.selectedValue;g.push(dr("option"));var se=null,pe=null,Ae=null,h=null;for(var b in w)if(ae.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":se=D;break;case"selected":Ae=D,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":pe=D;default:bt(g,A,b,D);break}}if(K!=null){var M;if(pe!==null?(de(pe,"value"),M=""+pe):(h!==null&&(Yi||(Yi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(se)),Ti(K))for(var Y=0;Y<K.length;Y++){de(K[Y],"value");var ie=""+K[Y];if(ie===M){g.push(Ma);break}}else de(K,"select.value"),""+K===M&&g.push(Ma)}else Ae&&g.push(Ma);return g.push(Ut),zn(g,h,se),se}function Fa(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Nr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),Nr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!On&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),On=!0),g.push(dr("input"));var $=null,K=null,se=null,pe=null;for(var Ae in w)if(ae.call(w,Ae)){var h=w[Ae];if(h==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":pe=h;break;case"defaultValue":K=h;break;case"checked":se=h;break;case"value":$=h;break;default:bt(g,A,Ae,h);break}}return se!==null?bt(g,A,"checked",se):pe!==null&&bt(g,A,"checked",pe),$!==null?bt(g,A,"value",$):K!==null&&bt(g,A,"value",K),g.push(Qn),null}function yi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!zi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),zi=!0),g.push(dr("textarea"));var $=null,K=null,se=null;for(var pe in w)if(ae.call(w,pe)){var Ae=w[pe];if(Ae==null)continue;switch(pe){case"children":se=Ae;break;case"value":$=Ae;break;case"defaultValue":K=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:bt(g,A,pe,Ae);break}}if($===null&&K!==null&&($=K),g.push(Ut),se!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),$!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ti(se)){if(se.length>1)throw new Error("<textarea> can only have at most one child.");ye(se[0]),$=""+se[0]}ye(se),$=""+se}return typeof $=="string"&&$[0]===`
108
+ */var n1;function Y5(){return n1||(n1=1,process.env.NODE_ENV!=="production"&&function(){var e=Q,t="18.2.0",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",g,A)}}function i(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",g,A)}}function o(g,w,A){{var $=n.ReactDebugCurrentFrame,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var se=A.map(function(pe){return String(pe)});se.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,se)}}function s(g){g()}var l=512,c=null,d=0;function y(g){c=new Uint8Array(l),d=0}function p(g,w){if(w.length!==0){if(w.length>l){d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(l),d=0),g.enqueue(w);return}var A=w,$=c.length-d;$<A.length&&($===0?g.enqueue(c):(c.set(A.subarray(0,$),d),g.enqueue(c),A=A.subarray($)),c=new Uint8Array(l),d=0),c.set(A,d),d+=A.length}}function S(g,w){return p(g,w),!0}function T(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function _(g){g.close()}var R=new TextEncoder;function L(g){return R.encode(g)}function I(g){return R.encode(g)}function U(g,w){typeof g.error=="function"?g.error(w):g.close()}function z(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function re(g){try{return Z(g),!1}catch{return!0}}function Z(g){return""+g}function de(g,w){if(re(g))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",w,z(g)),Z(g)}function x(g,w){if(re(g))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",w,z(g)),Z(g)}function ye(g){if(re(g))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",z(g)),Z(g)}var ae=Object.prototype.hasOwnProperty,Me=0,Ze=1,Ve=2,Ye=3,ot=4,me=5,Oe=6,He=":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",Je=He+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",st=new RegExp("^["+He+"]["+Je+"]*$"),De={},xe={};function We(g){return ae.call(xe,g)?!0:ae.call(De,g)?!1:st.test(g)?(xe[g]=!0,!0):(De[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function Ue(g,w,A,$){if(A!==null&&A.type===Me)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var K=g.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(g){return Xe.hasOwnProperty(g)?Xe[g]:null}function Le(g,w,A,$,K,se,pe){this.acceptsBooleans=w===Ve||w===Ye||w===ot,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=se,this.removeEmptyString=pe}var Xe={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){Xe[g]=new Le(g,Me,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],A=g[1];Xe[w]=new Le(w,Ze,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){Xe[g]=new Le(g,Ve,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){Xe[g]=new Le(g,Ve,!1,g,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"].forEach(function(g){Xe[g]=new Le(g,Ye,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){Xe[g]=new Le(g,Ye,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){Xe[g]=new Le(g,ot,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){Xe[g]=new Le(g,Oe,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){Xe[g]=new Le(g,me,!1,g.toLowerCase(),null,!1,!1)});var mt=/[\-\:]([a-z])/g,wt=function(g){return g[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"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(mt,wt);Xe[w]=new Le(w,Ze,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){Xe[g]=new Le(g,Ze,!1,g.toLowerCase(),null,!1,!1)});var vt="xlinkHref";Xe[vt]=new Le("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){Xe[g]=new Le(g,Ze,!1,g.toLowerCase(),null,!0,!0)});var Et={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};function rt(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(g){$t.forEach(function(w){Et[rt(w,g)]=Et[g]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(g,w){Ht[w.type]||w.onChange||w.onInput||w.readOnly||w.disabled||w.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),w.onChange||w.readOnly||w.disabled||w.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function br(g,w){if(g.indexOf("-")===-1)return typeof w.is=="string";switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},kn={},ji=new RegExp("^(aria)-["+Je+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Je+"]*$");function rr(g,w){{if(ae.call(kn,w)&&kn[w])return!0;if(Pr.test(w)){var A="aria-"+w.slice(4).toLowerCase(),$=Kn.hasOwnProperty(A)?A:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),kn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),kn[w]=!0,!0}if(ji.test(w)){var K=w.toLowerCase(),se=Kn.hasOwnProperty(K)?K:null;if(se==null)return kn[w]=!0,!1;if(w!==se)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,se),kn[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var K=rr(g,$);K||A.push($)}var se=A.map(function(pe){return"`"+pe+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g)}}function hn(g,w){br(g,w)||cn(g,w)}var pn=!1;function gt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!0,g==="select"&&w.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",g):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",g))}}var Rn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ci=function(){};{var ln={},Bi=/^on./,$i=/^on[^A-Z]/,Vi=new RegExp("^(aria)-["+Je+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Je+"]*$");ci=function(g,w,A,$){if(ae.call(ln,w)&&ln[w])return!0;var K=w.toLowerCase();if(K==="onfocusin"||K==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ln[w]=!0,!0;if($!=null){var se=$.registrationNameDependencies,pe=$.possibleRegistrationNames;if(se.hasOwnProperty(w))return!0;var Ae=pe.hasOwnProperty(K)?pe[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),ln[w]=!0,!0;if(Bi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),ln[w]=!0,!0}else if(Bi.test(w))return $i.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),ln[w]=!0,!0;if(Vi.test(w)||_r.test(w))return!0;if(K==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ln[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ln[w]=!0,!0;if(K==="is"&&A!==null&&A!==void 0&&typeof A!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),ln[w]=!0,!0;if(typeof A=="number"&&isNaN(A))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),ln[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Me;if(Rn.hasOwnProperty(K)){var D=Rn[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),ln[w]=!0,!0}else if(!b&&w!==K)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",w,K),ln[w]=!0,!0;return typeof A=="boolean"&&Ue(w,A,h,!1)?(A?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',A,w,w,A,w):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',A,w,w,A,w,w,w),ln[w]=!0,!0):b?!0:Ue(w,A,h,!1)?(ln[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===Ye&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,w,A==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',w,A),ln[w]=!0),!0)}}var Un=function(g,w,A){{var $=[];for(var K in w){var se=ci(g,K,w[K],A);se||$.push(K)}var pe=$.map(function(Ae){return"`"+Ae+"`"}).join(", ");$.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",pe,g):$.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",pe,g)}};function Rr(g,w,A){br(g,w)||Un(g,w,A)}var wr=function(){};{var qr=/^(?:webkit|moz|o)[A-Z]/,Xr=/^-ms-/,Po=/-(.)/g,Zn=/;\s*$/,Kr={},ir={},Zt=!1,fi=!1,Hi=function(g){return g.replace(Po,function(w,A){return A.toUpperCase()})},In=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Hi(g.replace(Xr,"ms-"))))},gn=function(g){Kr.hasOwnProperty(g)&&Kr[g]||(Kr[g]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",g,g.charAt(0).toUpperCase()+g.slice(1)))},di=function(g,w){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Zn,"")))},hi=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){fi||(fi=!0,i("`Infinity` is an invalid value for the `%s` css style property.",g))};wr=function(g,w){g.indexOf("-")>-1?In(g):qr.test(g)?gn(g):Zn.test(w)&&di(g,w),typeof w=="number"&&(isNaN(w)?hi(g,w):isFinite(w)||mn(g,w))}}var uo=wr,xr=/["'&<>]/;function pi(g){ye(g);var w=""+g,A=xr.exec(w);if(!A)return w;var $,K="",se,pe=0;for(se=A.index;se<w.length;se++){switch(w.charCodeAt(se)){case 34:$="&quot;";break;case 38:$="&amp;";break;case 39:$="&#x27;";break;case 60:$="&lt;";break;case 62:$="&gt;";break;default:continue}pe!==se&&(K+=w.substring(pe,se)),pe=se+1,K+=$}return pe!==se?K+w.substring(pe,se):K}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:pi(g)}var Si=/([A-Z])/g,Ra=/^ms-/;function Ia(g){return g.replace(Si,"-$1").toLowerCase().replace(Ra,"-ms-")}var Zr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,lo=!1;function co(g){!lo&&Zr.test(g)&&(lo=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(g)))}var _o=Array.isArray;function Ti(g){return _o(g)}var gi=I("<script>"),Ci=I("<\/script>"),fo=I('<script src="'),Ei=I('<script type="module" src="'),Jr=I('" async=""><\/script>');function Sr(g){return ye(g),(""+g).replace(Ir,Qr)}var Ir=/(<\/|<)(s)(cript)/gi,Qr=function(g,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ar(g,w,A,$,K){var se=g===void 0?"":g,pe=w===void 0?gi:I('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(pe,L(Sr(A)),Ci),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(fo,L(fn($[h])),Jr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(Ei,L(fn(K[b])),Jr);return{bootstrapChunks:Ae,startInlineScript:pe,placeholderPrefix:I(se+"P:"),segmentPrefix:I(se+"S:"),boundaryPrefix:se+"B:",idPrefix:se,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Wn=0,vn=1,Mr=2,Tr=3,An=4,vi=5,Lr=6,ei=7;function Jn(g,w){return{insertionMode:g,selectedValue:w}}function ti(g){var w=g==="http://www.w3.org/2000/svg"?Mr:g==="http://www.w3.org/1998/Math/MathML"?Tr:Wn;return Jn(w,null)}function ni(g,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Mr,null);case"math":return Jn(Tr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(An,null);case"thead":case"tbody":case"tfoot":return Jn(vi,null);case"colgroup":return Jn(ei,null);case"tr":return Jn(Lr,null)}return g.insertionMode>=An||g.insertionMode===Wn?Jn(vn,null):g}var Ui=null;function _n(g){var w=g.nextSuspenseID++;return I(g.boundaryPrefix+w.toString(16))}function Cr(g,w,A){var $=g.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function fr(g){return fn(g)}var Ro=I("<!-- -->");function Wi(g,w,A,$){return w===""?$:($&&g.push(Ro),g.push(L(fr(w))),!0)}function Fr(g,w,A,$){A&&$&&g.push(Ro)}var E=new Map;function j(g){var w=E.get(g);if(w!==void 0)return w;var A=I(fn(Ia(g)));return E.set(g,A),A}var q=I(' style="'),ne=I(":"),Pe=I(";");function be(g,w,A){if(typeof A!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var $=!0;for(var K in A)if(ae.call(A,K)){var se=A[K];if(!(se==null||typeof se=="boolean"||se==="")){var pe=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(pe=L(fn(K)),x(se,K),Ae=L(fn((""+se).trim()))):(uo(K,se),pe=j(K),typeof se=="number"?se!==0&&!ae.call(Et,K)?Ae=L(se+"px"):Ae=L(""+se):(x(se,K),Ae=L(fn((""+se).trim())))),$?($=!1,g.push(q,pe,ne,Ae)):g.push(Pe,pe,ne,Ae)}}$||g.push(yt)}var Fe=I(" "),tt=I('="'),yt=I('"'),Tt=I('=""');function bt(g,w,A,$){switch(A){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var K=Re(A);if(K!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!K.acceptsBooleans)return}var se=K.attributeName,pe=L(se);switch(K.type){case Ye:$&&g.push(Fe,pe,Tt);return;case ot:$===!0?g.push(Fe,pe,Tt):$===!1||g.push(Fe,pe,tt,L(fn($)),yt);return;case me:isNaN($)||g.push(Fe,pe,tt,L(fn($)),yt);break;case Oe:!isNaN($)&&$>=1&&g.push(Fe,pe,tt,L(fn($)),yt);break;default:K.sanitizeURL&&(de($,se),$=""+$,co($)),g.push(Fe,pe,tt,L(fn($)),yt)}}else if(We(A)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=A.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Fe,L(A),tt,L(fn($)),yt)}}}var Ut=I(">"),Qn=I("/>");function zn(g,w,A){if(w!=null){if(A!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof w!="object"||!("__html"in w))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var $=w.__html;$!=null&&(ye($),g.push(L(""+$)))}}var On=!1,Nr=!1,or=!1,zi=!1,mi=!1,Yi=!1,jr=!1;function Io(g,w){{var A=g[w];if(A!=null){var $=Ti(A);g.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!g.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Vs(g,w,A){Xn("select",w),Io(w,"value"),Io(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!or&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),or=!0),g.push(dr("select"));var $=null,K=null;for(var se in w)if(ae.call(w,se)){var pe=w[se];if(pe==null)continue;switch(se){case"children":$=pe;break;case"dangerouslySetInnerHTML":K=pe;break;case"defaultValue":case"value":break;default:bt(g,A,se,pe);break}}return g.push(Ut),zn(g,K,$),$}function Aa(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!mi&&typeof A!="string"&&typeof A!="number"&&(mi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),w}var Ma=I(' selected=""');function La(g,w,A,$){var K=$.selectedValue;g.push(dr("option"));var se=null,pe=null,Ae=null,h=null;for(var b in w)if(ae.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":se=D;break;case"selected":Ae=D,jr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":pe=D;default:bt(g,A,b,D);break}}if(K!=null){var M;if(pe!==null?(de(pe,"value"),M=""+pe):(h!==null&&(Yi||(Yi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(se)),Ti(K))for(var Y=0;Y<K.length;Y++){de(K[Y],"value");var ie=""+K[Y];if(ie===M){g.push(Ma);break}}else de(K,"select.value"),""+K===M&&g.push(Ma)}else Ae&&g.push(Ma);return g.push(Ut),zn(g,h,se),se}function Fa(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Nr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),Nr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!On&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),On=!0),g.push(dr("input"));var $=null,K=null,se=null,pe=null;for(var Ae in w)if(ae.call(w,Ae)){var h=w[Ae];if(h==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":pe=h;break;case"defaultValue":K=h;break;case"checked":se=h;break;case"value":$=h;break;default:bt(g,A,Ae,h);break}}return se!==null?bt(g,A,"checked",se):pe!==null&&bt(g,A,"checked",pe),$!==null?bt(g,A,"value",$):K!==null&&bt(g,A,"value",K),g.push(Qn),null}function yi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!zi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),zi=!0),g.push(dr("textarea"));var $=null,K=null,se=null;for(var pe in w)if(ae.call(w,pe)){var Ae=w[pe];if(Ae==null)continue;switch(pe){case"children":se=Ae;break;case"value":$=Ae;break;case"defaultValue":K=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:bt(g,A,pe,Ae);break}}if($===null&&K!==null&&($=K),g.push(Ut),se!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),$!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ti(se)){if(se.length>1)throw new Error("<textarea> can only have at most one child.");ye(se[0]),$=""+se[0]}ye(se),$=""+se}return typeof $=="string"&&$[0]===`
135
109
  `&&g.push(ki),$!==null&&(de($,"value"),g.push(L(fr(""+$)))),null}function Ao(g,w,A,$){g.push(dr(A));for(var K in w)if(ae.call(w,K)){var se=w[K];if(se==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:bt(g,$,K,se);break}}return g.push(Qn),null}function ra(g,w,A){g.push(dr("menuitem"));for(var $ in w)if(ae.call(w,$)){var K=w[$];if(K==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:bt(g,A,$,K);break}}return g.push(Ut),null}function sn(g,w,A){g.push(dr("title"));var $=null;for(var K in w)if(ae.call(w,K)){var se=w[K];if(se==null)continue;switch(K){case"children":$=se;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:bt(g,A,K,se);break}}g.push(Ut);{var pe=Array.isArray($)&&$.length<2?$[0]||null:$;Array.isArray($)&&$.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):pe!=null&&pe.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):pe!=null&&typeof pe!="string"&&typeof pe!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return $}function Qt(g,w,A,$){g.push(dr(A));var K=null,se=null;for(var pe in w)if(ae.call(w,pe)){var Ae=w[pe];if(Ae==null)continue;switch(pe){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:bt(g,$,pe,Ae);break}}return g.push(Ut),zn(g,se,K),typeof K=="string"?(g.push(L(fr(K))),null):K}function Vt(g,w,A,$){g.push(dr(A));var K=null,se=null;for(var pe in w)if(ae.call(w,pe)){var Ae=w[pe];if(Ae==null)continue;switch(pe){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:We(pe)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Fe,L(pe),tt,L(fn(Ae)),yt);break}}return g.push(Ut),zn(g,se,K),K}var ki=I(`
136
110
  `);function ri(g,w,A,$){g.push(dr(A));var K=null,se=null;for(var pe in w)if(ae.call(w,pe)){var Ae=w[pe];if(Ae==null)continue;switch(pe){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:bt(g,$,pe,Ae);break}}if(g.push(Ut),se!=null){if(K!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof se!="object"||!("__html"in se))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=se.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
137
111
  `?g.push(ki,L(h)):(ye(h),g.push(L(""+h))))}return typeof K=="string"&&K[0]===`
@@ -162,9 +136,35 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
162
136
  Previous: %s
163
137
  Incoming: %s`,Di,"["+g.join(", ")+"]","["+w.join(", ")+"]");for(var A=0;A<w.length&&A<g.length;A++)if(!Zi(g[A],w[A]))return!1;return!0}function za(){if(Ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function pr(){return nn===null?qu===null?(Ha=!1,qu=nn=za()):(Ha=!0,nn=qu):nn.next===null?(Ha=!1,nn=nn.next=za()):(Ha=!0,nn=nn.next),nn}function zl(g,w){Vo=w,Wl=g,$n=!1,un=0}function va(g,w,A,$){for(;ga;)ga=!1,un=0,Ua+=1,nn=null,A=g(w,$);return Yl(),A}function zr(){var g=un!==0;return g}function Yl(){$n=!1,Vo=null,Wl=null,ga=!1,qu=null,Ua=0,Oi=null,nn=null}function Kc(g){return $n&&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()."),Zs(g)}function Gl(g){return Di="useContext",Wa(),Zs(g)}function Ho(g,w){return typeof w=="function"?w(g):w}function ma(g){return Di="useState",ql(Ho,g)}function ql(g,w,A){if(g!==Ho&&(Di="useReducer"),Vo=Wa(),nn=pr(),Ha){var $=nn.queue,K=$.dispatch;if(Oi!==null){var se=Oi.get($);if(se!==void 0){Oi.delete($);var pe=nn.memoizedState,Ae=se;do{var h=Ae.action;$n=!0,pe=g(pe,h),$n=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=pe,[pe,K]}}return[nn.memoizedState,K]}else{$n=!0;var b;g===Ho?b=typeof w=="function"?w():w:b=A!==void 0?A(w):w,$n=!1,nn.memoizedState=b;var D=nn.queue={last:null,dispatch:null},M=D.dispatch=Xl.bind(null,Vo,D);return[nn.memoizedState,M]}}function Xu(g,w){Vo=Wa(),nn=pr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var K=$[1];if(Ji(A,K))return $[0]}}$n=!0;var se=g();return $n=!1,nn.memoizedState=[se,A],se}function Ku(g){Vo=Wa(),nn=pr();var w=nn.memoizedState;if(w===null){var A={current:g};return Object.seal(A),nn.memoizedState=A,A}else return w}function Zc(g,w){Di="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 Xl(g,w,A){if(Ua>=ws)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g===Vo){ga=!0;var $={action:A,next:null};Oi===null&&(Oi=new Map);var K=Oi.get(w);if(K===void 0)Oi.set(w,$);else{for(var se=K;se.next!==null;)se=se.next;se.next=$}}}function gr(g,w){return Xu(function(){return g},w)}function Kl(g,w,A){return Wa(),w(g._source)}function Jc(g,w,A){if(A===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return A()}function xo(g){return Wa(),g}function Zl(){throw new Error("startTransition cannot be called during server rendering.")}function Zu(){return Wa(),[!1,Zl]}function Ya(){var g=Wl,w=$o(g.treeContext),A=tu;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=un++;return Cr(A,w,$)}function eu(){}var kr={readContext:Kc,useContext:Gl,useMemo:Xu,useReducer:ql,useRef:Ku,useState:ma,useInsertionEffect:eu,useLayoutEffect:Zc,useCallback:gr,useImperativeHandle:eu,useEffect:eu,useDebugValue:eu,useDeferredValue:xo,useTransition:Zu,useId:Ya,useMutableSource:Kl,useSyncExternalStore:Jc},tu=null;function nu(g){tu=g}function Qc(g){try{var w="",A=g;do{switch(A.tag){case 0:w+=Fo(A.type,null,null);break;case 1:w+=Gs(A.type,null,null);break;case 2:w+=Bu(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
164
138
  Error generating stack: `+$.message+`
165
- `+$.stack}}var ru=n.ReactCurrentDispatcher,xs=n.ReactDebugCurrentFrame,Jl=0,Pi=1,iu=2,Ju=3,Ga=4,Ss=0,Ql=1,qa=2,ec=12800;function tc(g){return console.error(g),null}function So(){}function Yf(g,w,A,$,K,se,pe,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?ec:$,status:Ss,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?tc:K,onAllReady:se===void 0?So:se,onShellReady:pe===void 0?So:pe,onShellError:Ae===void 0?So:Ae,onFatalError:h===void 0?So:h},Y=Qu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=ou(M,g,null,Y,D,Nn,Wc,Hf);return b.push(ie),M}function Gf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return hu(g)})}function Ts(g,w){return{id:Ui,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function ou(g,w,A,$,K,se,pe,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return Gf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:se,context:pe,treeContext:Ae};return h.componentStack=null,K.add(h),h}function Qu(g,w,A,$,K,se){return{status:Jl,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:se}}var Qi=null;function Cs(){return Qi===null||Qi.componentStack===null?"":Qc(Qi.componentStack)}function Uo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function eo(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function Es(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function _i(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Xa=null;function el(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||Cs();Xa=null,g.errorMessage=A,g.errorComponentStack=$}}function Ri(g,w){var A=g.onError(w);if(A!=null&&typeof A!="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 A+'" instead');return A}function Wo(g,w){var A=g.onShellError;A(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=qa,U(g.destination,w)):(g.status=Ql,g.fatalError=w)}function nc(g,w,A){Uo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,se=A.fallback,pe=A.children,Ae=new Set,h=Ts(g,Ae),b=K.chunks.length,D=Qu(g,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=Qu(g,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(fu(g,w,pe),Fr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Pi,du(h,M),h.pendingTasks===0){_i(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Ri(g,ie),el(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var Y=ou(g,se,$,D,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,g.pingedTasks.push(Y),_i(w)}function Ka(g,w,A,$){Uo(w,A);var K=w.blockedSegment,se=ia(K.chunks,A,$,g.responseState,K.formatContext);K.lastPushedText=!1;var pe=K.formatContext;K.formatContext=ni(pe,A,$),fu(g,w,se),K.formatContext=pe,Lo(K.chunks,A),K.lastPushedText=!1,_i(w)}function au(g){return g.prototype&&g.prototype.isReactComponent}function tl(g,w,A,$,K){var se={};zl(w,se);var pe=A($,K);return va(A,$,pe,K)}function ef(g,w,A,$,K){var se=A.render();A.props!==K&&(ks||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Dn($)||"a component"),ks=!0);{var pe=$.childContextTypes;if(pe!=null){var Ae=w.legacyContext,h=Hl(A,$,Ae,pe);w.legacyContext=h,si(g,w,se),w.legacyContext=Ae;return}}si(g,w,se)}function rc(g,w,A,$){Es(w,A);var K=Vl(A,w.legacyContext),se=wo(A,$,K);Xc(se,A,$,K),ef(g,w,se,A,$),_i(w)}var Gt={},su={},tf={},Za={},ks=!1,ic=!1,oc=!1,oi=!1;function nf(g,w,A,$){var K;if(K=Vl(A,w.legacyContext),eo(w,A),A.prototype&&typeof A.prototype.render=="function"){var se=Dn(A)||"Unknown";Gt[se]||(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.",se,se),Gt[se]=!0)}var pe=tl(g,w,A,$,K),Ae=zr();if(typeof pe=="object"&&pe!==null&&typeof pe.render=="function"&&pe.$$typeof===void 0){var h=Dn(A)||"Unknown";su[h]||(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.",h,h,h),su[h]=!0)}if(typeof pe=="object"&&pe!==null&&typeof pe.render=="function"&&pe.$$typeof===void 0){{var b=Dn(A)||"Unknown";su[b]||(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.",b,b,b),su[b]=!0)}Xc(pe,A,$,K),ef(g,w,pe,A,$)}else if(uu(A),Ae){var D=w.treeContext,M=1,Y=0;w.treeContext=zu(D,M,Y);try{si(g,w,pe)}finally{w.treeContext=D}}else si(g,w,pe);_i(w)}function uu(g){{if(g&&g.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",g.displayName||g.name||"Component"),typeof g.getDerivedStateFromProps=="function"){var w=Dn(g)||"Unknown";Za[w]||(i("%s: Function components do not support getDerivedStateFromProps.",w),Za[w]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var A=Dn(g)||"Unknown";tf[A]||(i("%s: Function components do not support contextType.",A),tf[A]=!0)}}}function lu(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function rf(g,w,A,$,K){eo(w,A.render);var se=tl(g,w,A.render,$,K),pe=zr();if(pe){var Ae=w.treeContext,h=1,b=0;w.treeContext=zu(Ae,h,b);try{si(g,w,se)}finally{w.treeContext=Ae}}else si(g,w,se);_i(w)}function of(g,w,A,$,K){var se=A.type,pe=lu(se,$);nl(g,w,se,pe,K)}function ai(g,w,A,$){A._context===void 0?A!==A.Consumer&&(oi||(oi=!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?"))):A=A._context;var K=$.children;typeof K!="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 se=Zs(A),pe=K(se);si(g,w,pe)}function ya(g,w,A,$){var K=A._context,se=$.value,pe=$.children,Ae;Ae=w.context,w.context=zc(K,se),si(g,w,pe),w.context=Yc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ac(g,w,A,$,K){Uo(w,"Lazy");var se=A._payload,pe=A._init,Ae=pe(se),h=lu(Ae,$);nl(g,w,Ae,h,K),_i(w)}function nl(g,w,A,$,K){if(typeof A=="function")if(au(A)){rc(g,w,A,$);return}else{nf(g,w,A,$);return}if(typeof A=="string"){Ka(g,w,A,$);return}switch(A){case Ln:case Yt:case J:case he:case ke:{si(g,w,$.children);return}case dt:{Uo(w,"SuspenseList"),si(g,w,$.children),_i(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{nc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case ze:{rf(g,w,A,$,K);return}case ut:{of(g,w,A,$,K);return}case fe:{ya(g,w,A,$);return}case $e:{ai(g,w,A,$);return}case At:{ac(g,w,A,$);return}}var se="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(se+=" 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: "+(A==null?A:typeof A)+"."+se))}function rl(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(ic||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."),ic=!0),g.entries===w&&(oc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oc=!0)}function si(g,w,A){try{return cu(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:Cs()),$}}function cu(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case ve:{var $=A,K=$.type,se=$.props,pe=$.ref;nl(g,w,K,se,pe);return}case _e: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 At:{var Ae=A,h=Ae._payload,b=Ae._init,D;try{D=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Uo(w,"Lazy"),St}si(g,w,D);return}}if(Ti(A)){sc(g,w,A);return}var M=qi(A);if(M){rl(A,M);var Y=M.call(A);if(Y){var ie=Y.next();if(!ie.done){var ce=[];do ce.push(ie.value),ie=Y.next();while(!ie.done);sc(g,w,ce);return}return}}var Ie=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var Qe=w.blockedSegment;Qe.lastPushedText=Wi(w.blockedSegment.chunks,A,g.responseState,Qe.lastPushedText);return}if(typeof A=="number"){var ht=w.blockedSegment;ht.lastPushedText=Wi(w.blockedSegment.chunks,""+A,g.responseState,ht.lastPushedText);return}typeof A=="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 sc(g,w,A){for(var $=A.length,K=0;K<$;K++){var se=w.treeContext;w.treeContext=zu(se,$,K);try{fu(g,w,A[K])}finally{w.treeContext=se}}}function Yr(g,w,A){var $=w.blockedSegment,K=$.chunks.length,se=Qu(g,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(se),$.lastPushedText=!1;var pe=ou(g,w.node,w.blockedBoundary,se,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(pe.componentStack=w.componentStack.parent);var Ae=pe.ping;A.then(Ae,Ae)}function fu(g,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,se=w.context,pe=null;pe=w.componentStack;try{return si(g,w,A)}catch(Ae){if(Yl(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,Ks(se),w.componentStack=pe;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,Ks(se),w.componentStack=pe,Ae}}function zo(g,w,A,$){var K=Ri(g,$);if(w===null?Wo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,el(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function qf(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=Ju,uc(w,A,$)}function to(g,w,A){var $=g.blockedBoundary,K=g.blockedSegment;if(K.status=Ju,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&_(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var se=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(se);{var pe="The server did not finish this Suspense boundary: ";se&&typeof se.message=="string"?se=pe+se.message:se=pe+String(se);var Ae=Qi;Qi=g;try{el($,se)}finally{Qi=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return to(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function du(g,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var A=w.children[0];A.id=w.id,A.parentFlushed=!0,A.status===Pi&&du(g,A)}else{var $=g.completedSegments;$.push(w)}}function uc(g,w,A){if(w===null){if(A.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=A}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=So;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Pi&&du(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(qf,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Pi){du(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function il(g,w){var A=w.blockedSegment;if(A.status===Jl){Ks(w.context);var $=null;$=Qi,Qi=w;try{si(g,w,w.node),Fr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Pi,uc(g,w.blockedBoundary,A)}catch(se){if(Yl(),typeof se=="object"&&se!==null&&typeof se.then=="function"){var K=w.ping;se.then(K,K)}else w.abortSet.delete(w),A.status=Ga,zo(g,w.blockedBoundary,A,se)}finally{Qi=$}}}function hu(g){if(g.status!==qa){var w=$u(),A=ru.current;ru.current=kr;var $;$=xs.getCurrentStack,xs.getCurrentStack=Cs;var K=tu;nu(g.responseState);try{var se=g.pingedTasks,pe;for(pe=0;pe<se.length;pe++){var Ae=se[pe];il(g,Ae)}se.splice(0,pe),g.destination!==null&&vr(g,g.destination)}catch(h){Ri(g,h),Wo(g,h)}finally{nu(K),ru.current=A,xs.getCurrentStack=$,A===kr&&Ks(w)}}}function pu(g,w,A){switch(A.parentFlushed=!0,A.status){case Jl:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Pi:{A.status=iu;for(var K=!0,se=A.chunks,pe=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];pe<b.index;pe++)p(w,se[pe]);K=ol(g,w,b)}for(;pe<se.length-1;pe++)p(w,se[pe]);return pe<se.length&&(K=S(w,se[pe])),K}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ol(g,w,A){var $=A.boundary;if($===null)return pu(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return Ge(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),pu(g,w,A),It(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var K=$.id=_n(g.responseState);return Ee(w,g.responseState,K),pu(g,w,A),Pt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),Ee(w,g.responseState,$.id),pu(g,w,A),Pt(w,g.responseState);je(w,g.responseState);var se=$.completedSegments;if(se.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var pe=se[0];return ol(g,w,pe),ct(w,g.responseState)}}function lc(g,w,A){return Ws(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function Os(g,w,A){return Dt(w,g.responseState,A.formatContext,A.id),ol(g,w,A),Ct(w,A.formatContext)}function gu(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];al(g,w,A,se)}return $.length=0,Gi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];if(!al(g,w,A,se))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function al(g,w,A,$){if($.status===iu)return!0;var K=$.id;if(K===-1){var se=$.id=A.rootSegmentID;if(se===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Os(g,w,$)}else return Os(g,w,$),Hs(w,g.responseState,K)}function vr(g,w){y();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(ol(g,w,A),g.completedRootSegment=null,wi(w,g.responseState));var $=g.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var se=$[K];lc(g,w,se)}$.splice(0,K);var pe=g.completedBoundaries;for(K=0;K<pe.length;K++){var Ae=pe[K];gu(g,w,Ae)}pe.splice(0,K),T(w),y(w);var h=g.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(g,w,b)){g.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=g.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];gu(g,w,M)}D.splice(0,K)}finally{T(w),g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(w))}}function To(g){s(function(){return hu(g)})}function sf(g,w){if(g.status===Ql){g.status=qa,U(w,g.fatalError);return}if(g.status!==qa&&g.destination===null){g.destination=w;try{vr(g,w)}catch(A){Ri(g,A),Wo(g,A)}}}function sl(g,w){try{var A=g.abortableTasks;A.forEach(function($){return to($,g,w)}),A.clear(),g.destination!==null&&vr(g,g.destination)}catch($){Ri(g,$),Wo(g,$)}}function ul(g,w){return new Promise(function(A,$){var K,se,pe=new Promise(function(Y,ie){se=Y,K=ie});function Ae(){var Y=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){sl(b)}},{highWaterMark:0});Y.allReady=pe,A(Y)}function h(Y){pe.catch(function(){}),$(Y)}var b=Yf(g,Ar(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),ti(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,se,Ae,h,K);if(w&&w.signal){var D=w.signal,M=function(){sl(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}To(b)})}$h.renderToReadableStream=ul,$h.version=t}()),$h}var Ac,Fm;process.env.NODE_ENV==="production"?(Ac=W5(),Fm=z5()):(Ac=Y5(),Fm=G5());Ac.version;var q5=Ac.renderToString;Ac.renderToStaticMarkup;Ac.renderToNodeStream;Ac.renderToStaticNodeStream;Fm.renderToReadableStream;var X5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gO(e,t){return e(t={exports:{}},t.exports),t.exports}var K5=gO(function(e){(function(t){var n=function(L,I,U){if(!c(I)||y(I)||p(I)||S(I)||l(I))return I;var z,re=0,Z=0;if(d(I))for(z=[],Z=I.length;re<Z;re++)z.push(n(L,I[re],U));else for(var de in z={},I)Object.prototype.hasOwnProperty.call(I,de)&&(z[L(de,U)]=n(L,I[de],U));return z},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(I,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var I=r(L);return I.substr(0,1).toUpperCase()+I.substr(1)},o=function(L,I){return function(U,z){var re=(z=z||{}).separator||"_",Z=z.split||/(?=[A-Z])/;return U.split(Z).join(re)}(L,I).toLowerCase()},s=Object.prototype.toString,l=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},y=function(L){return s.call(L)=="[object Date]"},p=function(L){return s.call(L)=="[object RegExp]"},S=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},_=function(L,I){var U=I&&"process"in I?I.process:I;return typeof U!="function"?L:function(z,re){return U(z,L,re)}},R={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,I){return n(_(r,I),L)},decamelizeKeys:function(L,I){return n(_(o,I),L,I)},pascalizeKeys:function(L,I){return n(_(i,I),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=R:t.humps=R})(X5)}).decamelize,Z5=function(e){if(Array.isArray(e))return e},J5=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},r1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},Q5=function(e,t){if(e){if(typeof e=="string")return r1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r1(e,t):void 0}},e4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
166
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t4=function(e,t){return Z5(e)||J5(e,t)||Q5(e,t)||e4()},vO=gO(function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t}),n4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},mO=function(e,t){if(e==null)return{};var n,r,i=n4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},r4=Q.createContext(null);function Nm(e){var t=e.children,n=mO(e,["children"]);return typeof t!="string"&&(t=q5(t)),Q.createElement("template",vO({},n,{dangerouslySetInnerHTML:{__html:t}}))}function jm(e){var t=e.root,n=e.children;return k1.createPortal(n,t)}function i4(e){var t=Q.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,c=n.styleSheets,d=n.ssr,y=n.children,p=mO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(o=Q.useRef((i=r)&&i.current),Q.useEffect(function(){i&&(i.current=o.current)},[i]),o),T=Q.useState(null),_=t4(T,2),R=_[0],L=_[1],I="node_".concat(s).concat(l);return Q.useLayoutEffect(function(){if(S.current)try{if(typeof r=="function"&&r(S.current),d){var U=S.current.shadowRoot;return void L(U)}var z=S.current.attachShadow({mode:s,delegatesFocus:l});c.length>0&&(z.adoptedStyleSheets=c),L(z)}catch(re){(function(Z){var de=Z.error,x=Z.styleSheets,ye=Z.root;switch(de.name){case"NotSupportedError":x.length>0&&(ye.adoptedStyleSheets=x);break;default:throw de}})({error:re,styleSheets:c,root:R})}},[r,S,c]),Q.createElement(Q.Fragment,null,Q.createElement(e.tag,vO({key:I,ref:S},p),(R||d)&&Q.createElement(r4.Provider,{value:R},d?Q.createElement(Nm,{shadowroot:s,shadowrootmode:s},e.render({root:R,ssr:d,children:y})):Q.createElement(jm,{root:R},e.render({root:R,ssr:d,children:y})))))});return t.propTypes={mode:Oa.oneOf(["open","closed"]),delegatesFocus:Oa.bool,styleSheets:Oa.arrayOf(Oa.instanceOf(globalThis.CSSStyleSheet)),ssr:Oa.bool,children:Oa.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Nm.propTypes={children:Oa.oneOfType([Oa.string,Oa.node])},Nm.defaultProps={children:""},jm.propTypes={root:Oa.object.isRequired,children:Oa.node},jm.defaultProps={children:null};var Dv=new Map;function o4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=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(e,{get:function(r,i){var o=K5(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Dv.has(s)||Dv.set(s,i4({tag:o,render:n})),Dv.get(s)}})}var yO=o4();const a4=e=>{const t=e.isCollapsed?0:e.depth*16;return it.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})};function s4(){const e=JSON.parse(localStorage.getItem("menuOpenIds")||"[]");function t(i){localStorage.setItem("menuOpenIds",JSON.stringify(i))}const n=JSON.parse(localStorage.getItem("prevMenuOpenIds")||"[]");function r(){localStorage.setItem("prevMenuOpenIds",localStorage.getItem("menuOpenIds"))}return{menuOpenIds:e,setMenuOpenIds:t,prevMenuOpenIds:n,setPrevMenuOpenIds:r}}const u4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
167
- `,i1=localStorage.getItem("isCollapsed");function l4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function c4(e){const t=E1.useLocation(),[n,r]=Q.useState([]),i=n.map(ae=>ae.data),[o,s]=Q.useState(!1);console.log("isSubmitting:",o),Q.useMemo(()=>{const ae=new Map;return n.forEach(Me=>{ae.set(Me.id,Me)}),ae},[n]);const{menuOpenIds:l,prevMenuOpenIds:c,setMenuOpenIds:d,setPrevMenuOpenIds:y}=s4();console.log("🚀 ~ GlobalMenuContent ~ menuItems:",i);const[p,S]=Q.useState(i1===null?!0:i1==="true"),[T,_]=Q.useState(window.location.href),R=Q.useRef(null);Q.useEffect(()=>{var ae;(ae=e.handleCallback)==null||ae.call(e,i)},[i,e.handleCallback]),Q.useEffect(()=>{_(window.location.href)},[t]);const L=d4(i,T).filter(ae=>ae.parentKey!==0);console.log("matchPaths:",T,t,L);const I=()=>{var ae,Me;if(p)c&&((Me=R.current)==null||Me.open(c));else{const Ze=n.filter(Ye=>Ye.parent!==0).map(Ye=>Ye.id);console.log("closeIds:",Ze);const Ve=n.filter(Ye=>Ye.parent===0).map(Ye=>Ye.id);y(),(ae=R.current)==null||ae.close(Ze),setTimeout(()=>{var Ye;console.log("openIds:",Ve),(Ye=R.current)==null||Ye.open(Ve)},1)}S(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p))},[U,z]=Q.useState(!1),re=p?"collapsed":"expanded",Z=ae=>`${ae} ${re}`,de=Q.useRef(null);Q.useLayoutEffect(()=>{(async()=>{var Me,Ze;try{const Ve=e.menuPath||"/global-menu-config/api/v1/menu-items/user",Ye=e.baseUrl+Ve,{data:ot}=await Ls.get(Ye);let me=ot.map(He=>({...He,parentKey:He.parentKey||0}));me=wO(me),e.replacePath&&(me=bO(me,e.replacePath));const Oe=me.map(He=>({id:He.id,parent:He.parentKey,text:He.name,data:He}));r(Oe)}catch(Ve){console.error(Ve),Ap(((Ze=(Me=Ve.response)==null?void 0:Me.data)==null?void 0:Ze.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),Q.useEffect(()=>{const ae=i.filter(Ve=>Ve.isFavorite);function Me(Ve){return i.every(Ye=>Ye.parentKey!==Ve.id)?Ve:{...Ve,children:i.filter(Ye=>Ye.parentKey===Ve.id).map(Ye=>Me(Ye))}}const Ze=ae.map(Ve=>Me(Ve));l4(Ze)},[i]);function x(ae){const Me=ae.detail.menuItem;r(Ze=>Ze.map(Ve=>Ve.id!==Me.id?Ve:{...Ve,data:Me}))}Q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",x),()=>{window.removeEventListener("updateFavoriteMenu",x)}),[]),Q.useLayoutEffect(()=>{var Ve;const ae=localStorage.getItem("scrollPos");ae&&de.current&&setTimeout(()=>{const Ye=de.current.getScrollElement();Ye.scrollTop=parseInt(ae)},0);const Me=()=>{if(de.current){const Ye=de.current.getScrollElement();localStorage.setItem("scrollPos",Ye.scrollTop.toString())}},Ze=(Ve=de.current)==null?void 0:Ve.getScrollElement();return Ze==null||Ze.addEventListener("scroll",Me),()=>{Ze==null||Ze.removeEventListener("scroll",Me)}},[i]);function ye(ae){s(!0);const Me=[...n];r(ae);const Ze=ae.map((Ve,Ye)=>({menuItemId:Ve.id,order:Ye}));Ls.post("/global-menu-config/api/v1/menu-items/user",Ze,{baseURL:e.baseUrl}).then(()=>{}).catch(Ve=>{console.error(Ve),r(Me)}).finally(()=>{s(!1)})}return it.jsxs("div",{className:Z("side-bar"),children:[it.jsx("div",{className:Z("wrap-section side-bar__wrapper-toggle-btn"),children:it.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:I,children:p?it.jsx(V5,{}):it.jsx($5,{})})}),it.jsx(vT,{ref:de,className:Z("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:it.jsx(CV,{backend:f3,options:A3(),children:it.jsx(Q3,{ref:R,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ye,render:(ae,Me)=>{function Ze(me){return n.every(Oe=>Oe.parent!==me.id)?me:{...me,children:n.filter(Oe=>Oe.parent===me.id).map(Oe=>Ze(Oe.data))}}const Ve=Ze(ae.data),Ye=me=>L.some(Oe=>Oe.id===me);function ot(me,Oe){r(He=>He.map(Je=>Je.id===me?{...Je,data:{...Je.data,isFavorite:Oe}}:Je))}return it.jsx(pO,{isActive:Ye,isCollapsed:p,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ae,params:Me,nodes:n,item:Ve,expanded:()=>!1,toggleExpand:()=>{},level:Me.depth,onSetFavoriteSuccess:ot})},placeholderRender:(ae,{depth:Me})=>{var Ze;return it.jsx(a4,{node:ae,depth:Me,color:(Ze=e.brandColors)==null?void 0:Ze.primary300,isCollapsed:p})},canDrag:ae=>!o&&!!(ae!=null&&ae.parent),canDrop:(ae,{dragSource:Me,dropTargetId:Ze,dropTarget:Ve})=>(console.log("dragSource",Me,Ve),!((Me==null?void 0:Me.parent)!==0&&Ze===0||(Me==null?void 0:Me.parent)===0&&Ze!==0||(Ve==null?void 0:Ve.id)!==(Me==null?void 0:Me.parent)||h4(ae,Me==null?void 0:Me.id,Ze))),onDragStart:ae=>{console.log("onDragStart",ae)},onChangeOpen:ae=>{console.log("onChangeOpen:",ae),d(ae)},initialOpen:l.length?l:[1]})})}),it.jsxs("div",{className:Z("wrap-section side-bar__wrap-btn-logout"),children:[it.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>z(!0),children:[it.jsx(H5,{className:Z("side-bar__icon-logout")}),it.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),it.jsx(O1,{isOpen:U,onClose:()=>z(!1),onConfirm:()=>e.logout?e.logout():N1(e.baseUrl)})]})]})}function f4(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function d4(e,t){var c;console.log("menuItems:",e);const n=new URL(t);let r=e.filter(d=>d.path&&d.path.includes("http")).map(d=>({item:d,itemUrl:new URL(d.path),matchingParamsCount:f4(t,d.path)})).sort((d,y)=>{const p=new URL(d.itemUrl).searchParams,S=new URL(y.itemUrl).searchParams;return Array.from(p).length-Array.from(S).length}).filter(({itemUrl:d})=>n.origin===d.origin);const i=r.filter(({itemUrl:d})=>n.pathname===d.pathname),o=r.filter(({itemUrl:d})=>n.pathname.includes(d.pathname));r=i.length>0?i:o,r=r.sort((d,y)=>y.matchingParamsCount-d.matchingParamsCount);let s=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let l=[];for(;s;)l=[s,...l],s=e.find(d=>d.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",l),l}function bO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=bO(n.children,t)):n.path=t(n.path),n})}function wO(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=wO(n.children)),n))}function o1(e,t){return e.find(n=>n.id===t)}function h4(e,t,n){let r=o1(e,n);for(;r;){if(r.id===t)return!0;r=o1(e,r.parent)}return!1}function p4(e){return it.jsx(yO.div,{children:it.jsx(W1,{styles:[mT,U5,u4],style:{position:"sticky",zIndex:20},children:it.jsx(c4,{...e})})})}const Nf=new Map;Nf.set("text",e=>{var t;return it.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Nf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return it.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return it.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>it.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Nf.set("img",e=>it.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function g4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function v4({item:e}){return(Nf.get(g4(e))||Nf.get("text"))(e)}const m4={"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"};function a1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function y4(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function b4(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],l=null,c=null,d=i;d<=o;d++){var y=t(d);y?c!==null&&(s.push(l,c),l=c=null):(c=d,l===null&&(l=d))}if(c!==null){for(var p=Math.min(Math.max(c,l+r-1),n-1),S=c+1;S<=p&&!t(S);S++)c=S;s.push(l,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var T=s[0]-1;if(!t(T))s[0]=T;else break}return s}var w4=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x4=function(){function e(t,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(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S4=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},s1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},T4=function(e){S4(t,e);function t(){var n,r,i,o;w4(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=s1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var y=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!a1(y)||!a1(p))&&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=p,i._ensureRowsLoaded(y,p)},i._setRef=function(d){i._listRef=d},r),s1(i,o)}return x4(t,[{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,s=o.isItemLoaded,l=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,y=o.threshold,p=y===void 0?15:y,S=b4({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(l-1,i+p)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(T,_){return S[_]!==T}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var y=r[d],p=r[d+1],S=o(y,p);S!=null&&S.then(function(){if(y4({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:p})){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())}})},l=0;l<r.length;l+=2)s(l)}}]),t}(Q.PureComponent),Pv={exports:{}};/*!
139
+ `+$.stack}}var ru=n.ReactCurrentDispatcher,xs=n.ReactDebugCurrentFrame,Jl=0,Pi=1,iu=2,Ju=3,Ga=4,Ss=0,Ql=1,qa=2,ec=12800;function tc(g){return console.error(g),null}function So(){}function Yf(g,w,A,$,K,se,pe,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?ec:$,status:Ss,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?tc:K,onAllReady:se===void 0?So:se,onShellReady:pe===void 0?So:pe,onShellError:Ae===void 0?So:Ae,onFatalError:h===void 0?So:h},Y=Qu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=ou(M,g,null,Y,D,Nn,Wc,Hf);return b.push(ie),M}function Gf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return hu(g)})}function Ts(g,w){return{id:Ui,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function ou(g,w,A,$,K,se,pe,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return Gf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:se,context:pe,treeContext:Ae};return h.componentStack=null,K.add(h),h}function Qu(g,w,A,$,K,se){return{status:Jl,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:se}}var Qi=null;function Cs(){return Qi===null||Qi.componentStack===null?"":Qc(Qi.componentStack)}function Uo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function eo(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function Es(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function _i(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Xa=null;function el(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||Cs();Xa=null,g.errorMessage=A,g.errorComponentStack=$}}function Ri(g,w){var A=g.onError(w);if(A!=null&&typeof A!="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 A+'" instead');return A}function Wo(g,w){var A=g.onShellError;A(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=qa,U(g.destination,w)):(g.status=Ql,g.fatalError=w)}function nc(g,w,A){Uo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,se=A.fallback,pe=A.children,Ae=new Set,h=Ts(g,Ae),b=K.chunks.length,D=Qu(g,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=Qu(g,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(fu(g,w,pe),Fr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Pi,du(h,M),h.pendingTasks===0){_i(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Ri(g,ie),el(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var Y=ou(g,se,$,D,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,g.pingedTasks.push(Y),_i(w)}function Ka(g,w,A,$){Uo(w,A);var K=w.blockedSegment,se=ia(K.chunks,A,$,g.responseState,K.formatContext);K.lastPushedText=!1;var pe=K.formatContext;K.formatContext=ni(pe,A,$),fu(g,w,se),K.formatContext=pe,Lo(K.chunks,A),K.lastPushedText=!1,_i(w)}function au(g){return g.prototype&&g.prototype.isReactComponent}function tl(g,w,A,$,K){var se={};zl(w,se);var pe=A($,K);return va(A,$,pe,K)}function ef(g,w,A,$,K){var se=A.render();A.props!==K&&(ks||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Dn($)||"a component"),ks=!0);{var pe=$.childContextTypes;if(pe!=null){var Ae=w.legacyContext,h=Hl(A,$,Ae,pe);w.legacyContext=h,si(g,w,se),w.legacyContext=Ae;return}}si(g,w,se)}function rc(g,w,A,$){Es(w,A);var K=Vl(A,w.legacyContext),se=wo(A,$,K);Xc(se,A,$,K),ef(g,w,se,A,$),_i(w)}var Gt={},su={},tf={},Za={},ks=!1,ic=!1,oc=!1,oi=!1;function nf(g,w,A,$){var K;if(K=Vl(A,w.legacyContext),eo(w,A),A.prototype&&typeof A.prototype.render=="function"){var se=Dn(A)||"Unknown";Gt[se]||(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.",se,se),Gt[se]=!0)}var pe=tl(g,w,A,$,K),Ae=zr();if(typeof pe=="object"&&pe!==null&&typeof pe.render=="function"&&pe.$$typeof===void 0){var h=Dn(A)||"Unknown";su[h]||(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.",h,h,h),su[h]=!0)}if(typeof pe=="object"&&pe!==null&&typeof pe.render=="function"&&pe.$$typeof===void 0){{var b=Dn(A)||"Unknown";su[b]||(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.",b,b,b),su[b]=!0)}Xc(pe,A,$,K),ef(g,w,pe,A,$)}else if(uu(A),Ae){var D=w.treeContext,M=1,Y=0;w.treeContext=zu(D,M,Y);try{si(g,w,pe)}finally{w.treeContext=D}}else si(g,w,pe);_i(w)}function uu(g){{if(g&&g.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",g.displayName||g.name||"Component"),typeof g.getDerivedStateFromProps=="function"){var w=Dn(g)||"Unknown";Za[w]||(i("%s: Function components do not support getDerivedStateFromProps.",w),Za[w]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var A=Dn(g)||"Unknown";tf[A]||(i("%s: Function components do not support contextType.",A),tf[A]=!0)}}}function lu(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function rf(g,w,A,$,K){eo(w,A.render);var se=tl(g,w,A.render,$,K),pe=zr();if(pe){var Ae=w.treeContext,h=1,b=0;w.treeContext=zu(Ae,h,b);try{si(g,w,se)}finally{w.treeContext=Ae}}else si(g,w,se);_i(w)}function of(g,w,A,$,K){var se=A.type,pe=lu(se,$);nl(g,w,se,pe,K)}function ai(g,w,A,$){A._context===void 0?A!==A.Consumer&&(oi||(oi=!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?"))):A=A._context;var K=$.children;typeof K!="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 se=Zs(A),pe=K(se);si(g,w,pe)}function ya(g,w,A,$){var K=A._context,se=$.value,pe=$.children,Ae;Ae=w.context,w.context=zc(K,se),si(g,w,pe),w.context=Yc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function ac(g,w,A,$,K){Uo(w,"Lazy");var se=A._payload,pe=A._init,Ae=pe(se),h=lu(Ae,$);nl(g,w,Ae,h,K),_i(w)}function nl(g,w,A,$,K){if(typeof A=="function")if(au(A)){rc(g,w,A,$);return}else{nf(g,w,A,$);return}if(typeof A=="string"){Ka(g,w,A,$);return}switch(A){case Ln:case Yt:case J:case he:case ke:{si(g,w,$.children);return}case dt:{Uo(w,"SuspenseList"),si(g,w,$.children),_i(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ft:{nc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case ze:{rf(g,w,A,$,K);return}case ut:{of(g,w,A,$,K);return}case fe:{ya(g,w,A,$);return}case $e:{ai(g,w,A,$);return}case At:{ac(g,w,A,$);return}}var se="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(se+=" 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: "+(A==null?A:typeof A)+"."+se))}function rl(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(ic||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."),ic=!0),g.entries===w&&(oc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oc=!0)}function si(g,w,A){try{return cu(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:Cs()),$}}function cu(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case ve:{var $=A,K=$.type,se=$.props,pe=$.ref;nl(g,w,K,se,pe);return}case _e: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 At:{var Ae=A,h=Ae._payload,b=Ae._init,D;try{D=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Uo(w,"Lazy"),St}si(g,w,D);return}}if(Ti(A)){sc(g,w,A);return}var M=qi(A);if(M){rl(A,M);var Y=M.call(A);if(Y){var ie=Y.next();if(!ie.done){var ce=[];do ce.push(ie.value),ie=Y.next();while(!ie.done);sc(g,w,ce);return}return}}var Ie=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var Qe=w.blockedSegment;Qe.lastPushedText=Wi(w.blockedSegment.chunks,A,g.responseState,Qe.lastPushedText);return}if(typeof A=="number"){var ht=w.blockedSegment;ht.lastPushedText=Wi(w.blockedSegment.chunks,""+A,g.responseState,ht.lastPushedText);return}typeof A=="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 sc(g,w,A){for(var $=A.length,K=0;K<$;K++){var se=w.treeContext;w.treeContext=zu(se,$,K);try{fu(g,w,A[K])}finally{w.treeContext=se}}}function Yr(g,w,A){var $=w.blockedSegment,K=$.chunks.length,se=Qu(g,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(se),$.lastPushedText=!1;var pe=ou(g,w.node,w.blockedBoundary,se,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(pe.componentStack=w.componentStack.parent);var Ae=pe.ping;A.then(Ae,Ae)}function fu(g,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,se=w.context,pe=null;pe=w.componentStack;try{return si(g,w,A)}catch(Ae){if(Yl(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,Ks(se),w.componentStack=pe;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,Ks(se),w.componentStack=pe,Ae}}function zo(g,w,A,$){var K=Ri(g,$);if(w===null?Wo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,el(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function qf(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=Ju,uc(w,A,$)}function to(g,w,A){var $=g.blockedBoundary,K=g.blockedSegment;if(K.status=Ju,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&_(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var se=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(se);{var pe="The server did not finish this Suspense boundary: ";se&&typeof se.message=="string"?se=pe+se.message:se=pe+String(se);var Ae=Qi;Qi=g;try{el($,se)}finally{Qi=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return to(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function du(g,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var A=w.children[0];A.id=w.id,A.parentFlushed=!0,A.status===Pi&&du(g,A)}else{var $=g.completedSegments;$.push(w)}}function uc(g,w,A){if(w===null){if(A.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=A}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=So;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Pi&&du(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(qf,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Pi){du(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function il(g,w){var A=w.blockedSegment;if(A.status===Jl){Ks(w.context);var $=null;$=Qi,Qi=w;try{si(g,w,w.node),Fr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Pi,uc(g,w.blockedBoundary,A)}catch(se){if(Yl(),typeof se=="object"&&se!==null&&typeof se.then=="function"){var K=w.ping;se.then(K,K)}else w.abortSet.delete(w),A.status=Ga,zo(g,w.blockedBoundary,A,se)}finally{Qi=$}}}function hu(g){if(g.status!==qa){var w=$u(),A=ru.current;ru.current=kr;var $;$=xs.getCurrentStack,xs.getCurrentStack=Cs;var K=tu;nu(g.responseState);try{var se=g.pingedTasks,pe;for(pe=0;pe<se.length;pe++){var Ae=se[pe];il(g,Ae)}se.splice(0,pe),g.destination!==null&&vr(g,g.destination)}catch(h){Ri(g,h),Wo(g,h)}finally{nu(K),ru.current=A,xs.getCurrentStack=$,A===kr&&Ks(w)}}}function pu(g,w,A){switch(A.parentFlushed=!0,A.status){case Jl:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Pi:{A.status=iu;for(var K=!0,se=A.chunks,pe=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];pe<b.index;pe++)p(w,se[pe]);K=ol(g,w,b)}for(;pe<se.length-1;pe++)p(w,se[pe]);return pe<se.length&&(K=S(w,se[pe])),K}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ol(g,w,A){var $=A.boundary;if($===null)return pu(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return Ge(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),pu(g,w,A),It(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var K=$.id=_n(g.responseState);return Ee(w,g.responseState,K),pu(g,w,A),Pt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),Ee(w,g.responseState,$.id),pu(g,w,A),Pt(w,g.responseState);je(w,g.responseState);var se=$.completedSegments;if(se.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var pe=se[0];return ol(g,w,pe),ct(w,g.responseState)}}function lc(g,w,A){return Ws(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function Os(g,w,A){return Dt(w,g.responseState,A.formatContext,A.id),ol(g,w,A),Ct(w,A.formatContext)}function gu(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];al(g,w,A,se)}return $.length=0,Gi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];if(!al(g,w,A,se))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function al(g,w,A,$){if($.status===iu)return!0;var K=$.id;if(K===-1){var se=$.id=A.rootSegmentID;if(se===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Os(g,w,$)}else return Os(g,w,$),Hs(w,g.responseState,K)}function vr(g,w){y();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(ol(g,w,A),g.completedRootSegment=null,wi(w,g.responseState));var $=g.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var se=$[K];lc(g,w,se)}$.splice(0,K);var pe=g.completedBoundaries;for(K=0;K<pe.length;K++){var Ae=pe[K];gu(g,w,Ae)}pe.splice(0,K),T(w),y(w);var h=g.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(g,w,b)){g.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=g.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];gu(g,w,M)}D.splice(0,K)}finally{T(w),g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(w))}}function To(g){s(function(){return hu(g)})}function sf(g,w){if(g.status===Ql){g.status=qa,U(w,g.fatalError);return}if(g.status!==qa&&g.destination===null){g.destination=w;try{vr(g,w)}catch(A){Ri(g,A),Wo(g,A)}}}function sl(g,w){try{var A=g.abortableTasks;A.forEach(function($){return to($,g,w)}),A.clear(),g.destination!==null&&vr(g,g.destination)}catch($){Ri(g,$),Wo(g,$)}}function ul(g,w){return new Promise(function(A,$){var K,se,pe=new Promise(function(Y,ie){se=Y,K=ie});function Ae(){var Y=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){sl(b)}},{highWaterMark:0});Y.allReady=pe,A(Y)}function h(Y){pe.catch(function(){}),$(Y)}var b=Yf(g,Ar(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),ti(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,se,Ae,h,K);if(w&&w.signal){var D=w.signal,M=function(){sl(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}To(b)})}$h.renderToReadableStream=ul,$h.version=t}()),$h}var Ac,Fm;process.env.NODE_ENV==="production"?(Ac=U5(),Fm=W5()):(Ac=z5(),Fm=Y5());Ac.version;var G5=Ac.renderToString;Ac.renderToStaticMarkup;Ac.renderToNodeStream;Ac.renderToStaticNodeStream;Fm.renderToReadableStream;var q5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pO(e,t){return e(t={exports:{}},t.exports),t.exports}var X5=pO(function(e){(function(t){var n=function(L,I,U){if(!c(I)||y(I)||p(I)||S(I)||l(I))return I;var z,re=0,Z=0;if(d(I))for(z=[],Z=I.length;re<Z;re++)z.push(n(L,I[re],U));else for(var de in z={},I)Object.prototype.hasOwnProperty.call(I,de)&&(z[L(de,U)]=n(L,I[de],U));return z},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(I,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var I=r(L);return I.substr(0,1).toUpperCase()+I.substr(1)},o=function(L,I){return function(U,z){var re=(z=z||{}).separator||"_",Z=z.split||/(?=[A-Z])/;return U.split(Z).join(re)}(L,I).toLowerCase()},s=Object.prototype.toString,l=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},y=function(L){return s.call(L)=="[object Date]"},p=function(L){return s.call(L)=="[object RegExp]"},S=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},_=function(L,I){var U=I&&"process"in I?I.process:I;return typeof U!="function"?L:function(z,re){return U(z,L,re)}},R={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,I){return n(_(r,I),L)},decamelizeKeys:function(L,I){return n(_(o,I),L,I)},pascalizeKeys:function(L,I){return n(_(i,I),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=R:t.humps=R})(q5)}).decamelize,K5=function(e){if(Array.isArray(e))return e},Z5=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},r1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},J5=function(e,t){if(e){if(typeof e=="string")return r1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r1(e,t):void 0}},Q5=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},e4=function(e,t){return K5(e)||Z5(e,t)||J5(e,t)||Q5()},gO=pO(function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t}),t4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},vO=function(e,t){if(e==null)return{};var n,r,i=t4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},n4=Q.createContext(null);function Nm(e){var t=e.children,n=vO(e,["children"]);return typeof t!="string"&&(t=G5(t)),Q.createElement("template",gO({},n,{dangerouslySetInnerHTML:{__html:t}}))}function jm(e){var t=e.root,n=e.children;return k1.createPortal(n,t)}function r4(e){var t=Q.forwardRef(function(n,r){var i,o,s=n.mode,l=n.delegatesFocus,c=n.styleSheets,d=n.ssr,y=n.children,p=vO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),S=(o=Q.useRef((i=r)&&i.current),Q.useEffect(function(){i&&(i.current=o.current)},[i]),o),T=Q.useState(null),_=e4(T,2),R=_[0],L=_[1],I="node_".concat(s).concat(l);return Q.useLayoutEffect(function(){if(S.current)try{if(typeof r=="function"&&r(S.current),d){var U=S.current.shadowRoot;return void L(U)}var z=S.current.attachShadow({mode:s,delegatesFocus:l});c.length>0&&(z.adoptedStyleSheets=c),L(z)}catch(re){(function(Z){var de=Z.error,x=Z.styleSheets,ye=Z.root;switch(de.name){case"NotSupportedError":x.length>0&&(ye.adoptedStyleSheets=x);break;default:throw de}})({error:re,styleSheets:c,root:R})}},[r,S,c]),Q.createElement(Q.Fragment,null,Q.createElement(e.tag,gO({key:I,ref:S},p),(R||d)&&Q.createElement(n4.Provider,{value:R},d?Q.createElement(Nm,{shadowroot:s,shadowrootmode:s},e.render({root:R,ssr:d,children:y})):Q.createElement(jm,{root:R},e.render({root:R,ssr:d,children:y})))))});return t.propTypes={mode:Oa.oneOf(["open","closed"]),delegatesFocus:Oa.bool,styleSheets:Oa.arrayOf(Oa.instanceOf(globalThis.CSSStyleSheet)),ssr:Oa.bool,children:Oa.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Nm.propTypes={children:Oa.oneOfType([Oa.string,Oa.node])},Nm.defaultProps={children:""},jm.propTypes={root:Oa.object.isRequired,children:Oa.node},jm.defaultProps={children:null};var Dv=new Map;function i4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=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(e,{get:function(r,i){var o=X5(i,{separator:"-"}),s="".concat(t,"-").concat(o);return Dv.has(s)||Dv.set(s,r4({tag:o,render:n})),Dv.get(s)}})}var mO=i4();const o4=e=>{const t=e.isCollapsed?0:e.depth*16;return it.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})};function a4(){const e=JSON.parse(localStorage.getItem("menuOpenIds")||"[]");function t(i){localStorage.setItem("menuOpenIds",JSON.stringify(i))}const n=JSON.parse(localStorage.getItem("prevMenuOpenIds")||"[]");function r(){localStorage.setItem("prevMenuOpenIds",localStorage.getItem("menuOpenIds"))}return{menuOpenIds:e,setMenuOpenIds:t,prevMenuOpenIds:n,setPrevMenuOpenIds:r}}const s4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
141
+ `,i1=localStorage.getItem("isCollapsed");function u4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function l4(e){const t=E1.useLocation(),[n,r]=Q.useState([]),i=n.map(ae=>ae.data),[o,s]=Q.useState(!1);console.log("isSubmitting:",o),Q.useMemo(()=>{const ae=new Map;return n.forEach(Me=>{ae.set(Me.id,Me)}),ae},[n]);const{menuOpenIds:l,prevMenuOpenIds:c,setMenuOpenIds:d,setPrevMenuOpenIds:y}=a4();console.log("🚀 ~ GlobalMenuContent ~ menuItems:",i);const[p,S]=Q.useState(i1===null?!0:i1==="true"),[T,_]=Q.useState(window.location.href),R=Q.useRef(null);Q.useEffect(()=>{var ae;(ae=e.handleCallback)==null||ae.call(e,i)},[i,e.handleCallback]),Q.useEffect(()=>{_(window.location.href)},[t]);const L=f4(i,T).filter(ae=>ae.parentKey!==0);console.log("matchPaths:",T,t,L);const I=()=>{var ae,Me;if(p)c&&((Me=R.current)==null||Me.open(c));else{const Ze=n.filter(Ye=>Ye.parent!==0).map(Ye=>Ye.id);console.log("closeIds:",Ze);const Ve=n.filter(Ye=>Ye.parent===0).map(Ye=>Ye.id);y(),(ae=R.current)==null||ae.close(Ze),setTimeout(()=>{var Ye;console.log("openIds:",Ve),(Ye=R.current)==null||Ye.open(Ve)},1)}S(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p))},[U,z]=Q.useState(!1),re=p?"collapsed":"expanded",Z=ae=>`${ae} ${re}`,de=Q.useRef(null);Q.useLayoutEffect(()=>{(async()=>{var Me,Ze;try{const Ve=e.menuPath||"/global-menu-config/api/v1/menu-items/user",Ye=e.baseUrl+Ve,{data:ot}=await Ls.get(Ye);let me=ot.map(He=>({...He,parentKey:He.parentKey||0}));me=bO(me),e.replacePath&&(me=yO(me,e.replacePath));const Oe=me.map(He=>({id:He.id,parent:He.parentKey,text:He.name,data:He}));r(Oe)}catch(Ve){console.error(Ve),Ap(((Ze=(Me=Ve.response)==null?void 0:Me.data)==null?void 0:Ze.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),Q.useEffect(()=>{const ae=i.filter(Ve=>Ve.isFavorite);function Me(Ve){return i.every(Ye=>Ye.parentKey!==Ve.id)?Ve:{...Ve,children:i.filter(Ye=>Ye.parentKey===Ve.id).map(Ye=>Me(Ye))}}const Ze=ae.map(Ve=>Me(Ve));u4(Ze)},[i]);function x(ae){const Me=ae.detail.menuItem;r(Ze=>Ze.map(Ve=>Ve.id!==Me.id?Ve:{...Ve,data:Me}))}Q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",x),()=>{window.removeEventListener("updateFavoriteMenu",x)}),[]),Q.useLayoutEffect(()=>{var Ve;const ae=localStorage.getItem("scrollPos");ae&&de.current&&setTimeout(()=>{const Ye=de.current.getScrollElement();Ye.scrollTop=parseInt(ae)},0);const Me=()=>{if(de.current){const Ye=de.current.getScrollElement();localStorage.setItem("scrollPos",Ye.scrollTop.toString())}},Ze=(Ve=de.current)==null?void 0:Ve.getScrollElement();return Ze==null||Ze.addEventListener("scroll",Me),()=>{Ze==null||Ze.removeEventListener("scroll",Me)}},[i]);function ye(ae){s(!0);const Me=[...n];r(ae);const Ze=ae.map((Ve,Ye)=>({menuItemId:Ve.id,order:Ye}));Ls.post("/global-menu-config/api/v1/menu-items/user",Ze,{baseURL:e.baseUrl}).then(()=>{}).catch(Ve=>{console.error(Ve),r(Me)}).finally(()=>{s(!1)})}return it.jsxs("div",{className:Z("side-bar"),children:[it.jsx("div",{className:Z("wrap-section side-bar__wrapper-toggle-btn"),children:it.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:I,children:p?it.jsx($5,{}):it.jsx(B5,{})})}),it.jsx(gT,{ref:de,className:Z("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:it.jsx(TV,{backend:c3,options:I3(),children:it.jsx(J3,{ref:R,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ye,render:(ae,Me)=>{function Ze(me){return n.every(Oe=>Oe.parent!==me.id)?me:{...me,children:n.filter(Oe=>Oe.parent===me.id).map(Oe=>Ze(Oe.data))}}const Ve=Ze(ae.data),Ye=me=>L.some(Oe=>Oe.id===me);function ot(me,Oe){r(He=>He.map(Je=>Je.id===me?{...Je,data:{...Je.data,isFavorite:Oe}}:Je))}return it.jsx(hO,{isActive:Ye,isCollapsed:p,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ae,params:Me,nodes:n,item:Ve,expanded:()=>!1,toggleExpand:()=>{},level:Me.depth,onSetFavoriteSuccess:ot})},placeholderRender:(ae,{depth:Me})=>{var Ze;return it.jsx(o4,{node:ae,depth:Me,color:(Ze=e.brandColors)==null?void 0:Ze.primary300,isCollapsed:p})},canDrag:ae=>!o&&!!(ae!=null&&ae.parent),canDrop:(ae,{dragSource:Me,dropTargetId:Ze,dropTarget:Ve})=>(console.log("dragSource",Me,Ve),!((Me==null?void 0:Me.parent)!==0&&Ze===0||(Me==null?void 0:Me.parent)===0&&Ze!==0||(Ve==null?void 0:Ve.id)!==(Me==null?void 0:Me.parent)||d4(ae,Me==null?void 0:Me.id,Ze))),onDragStart:ae=>{console.log("onDragStart",ae)},onChangeOpen:ae=>{console.log("onChangeOpen:",ae),d(ae)},initialOpen:l.length?l:[1]})})}),it.jsxs("div",{className:Z("wrap-section side-bar__wrap-btn-logout"),children:[it.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>z(!0),children:[it.jsx(V5,{className:Z("side-bar__icon-logout")}),it.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),it.jsx(O1,{isOpen:U,onClose:()=>z(!1),onConfirm:()=>e.logout?e.logout():N1(e.baseUrl)})]})]})}function c4(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function f4(e,t){var c;console.log("menuItems:",e);const n=new URL(t);let r=e.filter(d=>d.path&&d.path.includes("http")).map(d=>({item:d,itemUrl:new URL(d.path),matchingParamsCount:c4(t,d.path)})).sort((d,y)=>{const p=new URL(d.itemUrl).searchParams,S=new URL(y.itemUrl).searchParams;return Array.from(p).length-Array.from(S).length}).filter(({itemUrl:d})=>n.origin===d.origin);const i=r.filter(({itemUrl:d})=>n.pathname===d.pathname),o=r.filter(({itemUrl:d})=>n.pathname.includes(d.pathname));r=i.length>0?i:o,r=r.sort((d,y)=>y.matchingParamsCount-d.matchingParamsCount);let s=r.length>0?(c=r.find(d=>d.item.parentKey))==null?void 0:c.item:null;console.log("matchingItems:",r);let l=[];for(;s;)l=[s,...l],s=e.find(d=>d.id===(s==null?void 0:s.parentKey))||null;return console.log("parents:",l),l}function yO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=yO(n.children,t)):n.path=t(n.path),n})}function bO(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=bO(n.children)),n))}function o1(e,t){return e.find(n=>n.id===t)}function d4(e,t,n){let r=o1(e,n);for(;r;){if(r.id===t)return!0;r=o1(e,r.parent)}return!1}function h4(e){return it.jsx(mO.div,{children:it.jsx(W1,{styles:[vT,H5,s4],style:{position:"sticky",zIndex:20},children:it.jsx(l4,{...e})})})}const Nf=new Map;Nf.set("text",e=>{var t;return it.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Nf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return it.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return it.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>it.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Nf.set("img",e=>it.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function p4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function g4({item:e}){return(Nf.get(p4(e))||Nf.get("text"))(e)}const v4={"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"};var Ep={exports:{}};/**
142
+ * @license
143
+ * Lodash <https://lodash.com/>
144
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
145
+ * Released under MIT license <https://lodash.com/license>
146
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
147
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
148
+ */Ep.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,y="__lodash_placeholder__",p=1,S=2,T=4,_=1,R=2,L=1,I=2,U=4,z=8,re=16,Z=32,de=64,x=128,ye=256,ae=512,Me=30,Ze="...",Ve=800,Ye=16,ot=1,me=2,Oe=3,He=1/0,Je=9007199254740991,st=17976931348623157e292,De=0/0,xe=4294967295,We=xe-1,Ue=xe>>>1,Re=[["ary",x],["bind",L],["bindKey",I],["curry",z],["curryRight",re],["flip",ae],["partial",Z],["partialRight",de],["rearg",ye]],Le="[object Arguments]",Xe="[object Array]",lt="[object AsyncFunction]",mt="[object Boolean]",wt="[object Date]",vt="[object DOMException]",Et="[object Error]",rt="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",br="[object Null]",Kn="[object Object]",kn="[object Promise]",ji="[object Proxy]",Pr="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",gt="[object WeakMap]",Rn="[object WeakSet]",ci="[object ArrayBuffer]",ln="[object DataView]",Bi="[object Float32Array]",$i="[object Float64Array]",Vi="[object Int8Array]",_r="[object Int16Array]",Un="[object Int32Array]",Rr="[object Uint8Array]",wr="[object Uint8ClampedArray]",qr="[object Uint16Array]",Xr="[object Uint32Array]",Po=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,fi=RegExp(ir.source),Hi=RegExp(Zt.source),In=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,di=/<%=([\s\S]+?)%>/g,hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xr=/[\\^$.*+?()[\]{}|]/g,pi=RegExp(xr.source),fn=/^\s+/,Si=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Zr=/,? & /,lo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,_o=/\\(\\)?/g,Ti=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gi=/\w*$/,Ci=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,Ei=/^\[object .+?Constructor\]$/,Jr=/^0o[0-7]+$/i,Sr=/^(?:0|[1-9]\d*)$/,Ir=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qr=/($^)/,Ar=/['\n\r\u2028\u2029\\]/g,Wn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Mr="\\ufe20-\\ufe2f",Tr="\\u20d0-\\u20ff",An=vn+Mr+Tr,vi="\\u2700-\\u27bf",Lr="a-z\\xdf-\\xf6\\xf8-\\xff",ei="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ti="\\u2000-\\u206f",ni=" \\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",Ui="A-Z\\xc0-\\xd6\\xd8-\\xde",_n="\\ufe0e\\ufe0f",Cr=ei+Jn+ti+ni,fr="['’]",Ro="["+Wn+"]",Wi="["+Cr+"]",Fr="["+An+"]",E="\\d+",j="["+vi+"]",q="["+Lr+"]",ne="[^"+Wn+Cr+E+vi+Lr+Ui+"]",Pe="\\ud83c[\\udffb-\\udfff]",be="(?:"+Fr+"|"+Pe+")",Fe="[^"+Wn+"]",tt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Ui+"]",bt="\\u200d",Ut="(?:"+q+"|"+ne+")",Qn="(?:"+Tt+"|"+ne+")",zn="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",On="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",Nr=be+"?",or="["+_n+"]?",zi="(?:"+bt+"(?:"+[Fe,tt,yt].join("|")+")"+or+Nr+")*",mi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jr=or+Nr+zi,Io="(?:"+[j,tt,yt].join("|")+")"+jr,Vs="(?:"+[Fe+Fr+"?",Fr,tt,yt,Ro].join("|")+")",Aa=RegExp(fr,"g"),Ma=RegExp(Fr,"g"),La=RegExp(Pe+"(?="+Pe+")|"+Vs+jr,"g"),Fa=RegExp([Tt+"?"+q+"+"+zn+"(?="+[Wi,Tt,"$"].join("|")+")",Qn+"+"+On+"(?="+[Wi,Tt+Ut,"$"].join("|")+")",Tt+"?"+Ut+"+"+zn,Tt+"+"+On,Yi,mi,E,Io].join("|"),"g"),yi=RegExp("["+bt+Wn+An+_n+"]"),Ao=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ra=["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"],sn=-1,Qt={};Qt[Bi]=Qt[$i]=Qt[Vi]=Qt[_r]=Qt[Un]=Qt[Rr]=Qt[wr]=Qt[qr]=Qt[Xr]=!0,Qt[Le]=Qt[Xe]=Qt[ci]=Qt[mt]=Qt[ln]=Qt[wt]=Qt[Et]=Qt[rt]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[Pr]=Qt[rr]=Qt[cn]=Qt[gt]=!1;var Vt={};Vt[Le]=Vt[Xe]=Vt[ci]=Vt[ln]=Vt[mt]=Vt[wt]=Vt[Bi]=Vt[$i]=Vt[Vi]=Vt[_r]=Vt[Un]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[Pr]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Rr]=Vt[wr]=Vt[qr]=Vt[Xr]=!0,Vt[Et]=Vt[rt]=Vt[gt]=!1;var ki={À:"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"},ri={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mo={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dr=parseFloat,Na=parseInt,ia=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,os=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||os||Function("return this")(),Lo=t&&!t.nodeType&&t,wi=Lo&&!0&&e&&!e.nodeType&&e,as=wi&&wi.exports===Lo,ho=as&&ia.process,er=function(){try{var J=wi&&wi.require&&wi.require("util").types;return J||ho&&ho.binding&&ho.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,v=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function H(J,he,fe){switch(fe.length){case 0:return J.call(he);case 1:return J.call(he,fe[0]);case 2:return J.call(he,fe[0],fe[1]);case 3:return J.call(he,fe[0],fe[1],fe[2])}return J.apply(he,fe)}function le(J,he,fe,$e){for(var ze=-1,ft=J==null?0:J.length;++ze<ft;){var dt=J[ze];he($e,dt,fe(dt),J)}return $e}function oe(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e&&he(J[fe],fe,J)!==!1;);return J}function we(J,he){for(var fe=J==null?0:J.length;fe--&&he(J[fe],fe,J)!==!1;);return J}function Ne(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e;)if(!he(J[fe],fe,J))return!1;return!0}function je(J,he){for(var fe=-1,$e=J==null?0:J.length,ze=0,ft=[];++fe<$e;){var dt=J[fe];he(dt,fe,J)&&(ft[ze++]=dt)}return ft}function Ee(J,he){var fe=J==null?0:J.length;return!!fe&&on(J,he,0)>-1}function Ge(J,he,fe){for(var $e=-1,ze=J==null?0:J.length;++$e<ze;)if(fe(he,J[$e]))return!0;return!1}function ct(J,he){for(var fe=-1,$e=J==null?0:J.length,ze=Array($e);++fe<$e;)ze[fe]=he(J[fe],fe,J);return ze}function Pt(J,he){for(var fe=-1,$e=he.length,ze=J.length;++fe<$e;)J[ze+fe]=he[fe];return J}function It(J,he,fe,$e){var ze=-1,ft=J==null?0:J.length;for($e&&ft&&(fe=J[++ze]);++ze<ft;)fe=he(fe,J[ze],ze,J);return fe}function Mn(J,he,fe,$e){var ze=J==null?0:J.length;for($e&&ze&&(fe=J[--ze]);ze--;)fe=he(fe,J[ze],ze,J);return fe}function dn(J,he){for(var fe=-1,$e=J==null?0:J.length;++fe<$e;)if(he(J[fe],fe,J))return!0;return!1}var Br=k("length");function $r(J){return J.split("")}function Wt(J){return J.match(lo)||[]}function Vr(J,he,fe){var $e;return fe(J,function(ze,ft,dt){if(he(ze,ft,dt))return $e=ft,!1}),$e}function zt(J,he,fe,$e){for(var ze=J.length,ft=fe+($e?1:-1);$e?ft--:++ft<ze;)if(he(J[ft],ft,J))return ft;return-1}function on(J,he,fe){return he===he?Ml(J,he,fe):zt(J,go,fe)}function po(J,he,fe,$e){for(var ze=fe-1,ft=J.length;++ze<ft;)if($e(J[ze],he))return ze;return-1}function go(J){return J!==J}function Er(J,he){var fe=J==null?0:J.length;return fe?Te(J,he)/fe:De}function k(J){return function(he){return he==null?n:he[J]}}function F(J){return function(he){return J==null?n:J[he]}}function W(J,he,fe,$e,ze){return ze(J,function(ft,dt,ut){fe=$e?($e=!1,ft):he(fe,ft,dt,ut)}),fe}function te(J,he){var fe=J.length;for(J.sort(he);fe--;)J[fe]=J[fe].value;return J}function Te(J,he){for(var fe,$e=-1,ze=J.length;++$e<ze;){var ft=he(J[$e]);ft!==n&&(fe=fe===n?ft:fe+ft)}return fe}function Ce(J,he){for(var fe=-1,$e=Array(J);++fe<J;)$e[fe]=he(fe);return $e}function Be(J,he){return ct(he,function(fe){return[fe,J[fe]]})}function et(J){return J&&J.slice(0,Ws(J)+1).replace(fn,"")}function xt(J){return function(he){return J(he)}}function Nt(J,he){return ct(he,function(fe){return J[fe]})}function Dt(J,he){return J.has(he)}function Ct(J,he){for(var fe=-1,$e=J.length;++fe<$e&&on(he,J[fe],0)>-1;);return fe}function Bn(J,he){for(var fe=J.length;fe--&&on(he,J[fe],0)>-1;);return fe}function Tn(J,he){for(var fe=J.length,$e=0;fe--;)J[fe]===he&&++$e;return $e}var Yn=F(ki),oa=F(ri);function ss(J){return"\\"+bi[J]}function aa(J,he){return J==null?n:J[he]}function ii(J){return yi.test(J)}function Hs(J){return Ao.test(J)}function vo(J){for(var he,fe=[];!(he=J.next()).done;)fe.push(he.value);return fe}function us(J){var he=-1,fe=Array(J.size);return J.forEach(function($e,ze){fe[++he]=[ze,$e]}),fe}function sa(J,he){return function(fe){return J(he(fe))}}function xi(J,he){for(var fe=-1,$e=J.length,ze=0,ft=[];++fe<$e;){var dt=J[fe];(dt===he||dt===y)&&(J[fe]=y,ft[ze++]=fe)}return ft}function Gi(J){var he=-1,fe=Array(J.size);return J.forEach(function($e){fe[++he]=$e}),fe}function Us(J){var he=-1,fe=Array(J.size);return J.forEach(function($e){fe[++he]=[$e,$e]}),fe}function Ml(J,he,fe){for(var $e=fe-1,ze=J.length;++$e<ze;)if(J[$e]===he)return $e;return-1}function ua(J,he,fe){for(var $e=fe+1;$e--;)if(J[$e]===he)return $e;return $e}function mo(J){return ii(J)?cs(J):Br(J)}function hr(J){return ii(J)?ee(J):$r(J)}function Ws(J){for(var he=J.length;he--&&Si.test(J.charAt(he)););return he}var ls=F(Mo);function cs(J){for(var he=La.lastIndex=0;La.test(J);)++he;return he}function ee(J){return J.match(La)||[]}function ve(J){return J.match(Fa)||[]}var _e=function J(he){he=he==null?yn:ke.defaults(yn.Object(),he,ke.pick(yn,ra));var fe=he.Array,$e=he.Date,ze=he.Error,ft=he.Function,dt=he.Math,ut=he.Object,At=he.RegExp,kt=he.String,Yt=he.TypeError,Ln=fe.prototype,ar=ft.prototype,Gn=ut.prototype,Hr=he["__core-js_shared__"],qi=ar.toString,Mt=Gn.hasOwnProperty,Uc=0,Dn=function(){var a=/[^.]+$/.exec(Hr&&Hr.keys&&Hr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),la=Gn.toString,Ll=qi.call(ut),Pn=yn._,fs=At("^"+qi.call(Mt).replace(xr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ds=as?he.Buffer:n,yo=he.Symbol,hs=he.Uint8Array,Nu=ds?ds.allocUnsafe:n,ps=sa(ut.getPrototypeOf,ut),Fl=ut.create,Nl=Gn.propertyIsEnumerable,ja=Ln.splice,ju=yo?yo.isConcatSpreadable:n,Fo=yo?yo.iterator:n,Xi=yo?yo.toStringTag:n,No=function(){try{var a=dc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),zs=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Ys=$e&&$e.now!==yn.Date.now&&$e.now,Bu=he.setTimeout!==yn.setTimeout&&he.setTimeout,Gs=dt.ceil,gs=dt.floor,qs=ut.getOwnPropertySymbols,jl=ds?ds.isBuffer:n,Bl=he.isFinite,vs=Ln.join,$l=sa(ut.keys,ut),Fn=dt.max,Nn=dt.min,Vl=$e.now,Hl=he.parseInt,jo=dt.random,Wc=Ln.reverse,Bo=dc(he,"DataView"),Ki=dc(he,"Map"),Xs=dc(he,"Promise"),Ur=dc(he,"Set"),ca=dc(he,"WeakMap"),fa=dc(ut,"create"),da=ca&&new ca,ha={},Ks=hc(Bo),zc=hc(Ki),Yc=hc(Xs),$u=hc(Ur),Zs=hc(ca),ms=yo?yo.prototype:n,Js=ms?ms.valueOf:n,Ba=ms?ms.toString:n;function G(a){if(ur(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Wr)return a;if(Mt.call(a,"__wrapped__"))return bb(a)}return new Wr(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Fl)return Fl(u);a.prototype=u;var m=new a;return a.prototype=n,m}}();function $a(){}function Wr(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}G.templateSettings={escape:In,evaluate:gn,interpolate:di,variable:"",imports:{_:G}},G.prototype=$a.prototype,G.prototype.constructor=G,Wr.prototype=pa($a.prototype),Wr.prototype.constructor=Wr;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=xe,this.__views__=[]}function Vu(){var a=new qt(this.__wrapped__);return a.__actions__=vr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=vr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=vr(this.__views__),a}function ys(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Qs(){var a=this.__wrapped__.value(),u=this.__dir__,m=Xt(a),P=u<0,V=m?a.length:0,X=oD(0,V,this.__views__),ue=X.start,ge=X.end,Se=ge-ue,qe=P?ge:ue-1,Ke=this.__iteratees__,nt=Ke.length,pt=0,Ot=Nn(Se,this.__takeCount__);if(!m||!P&&V==Se&&Ot==Se)return si(a,this.__actions__);var Lt=[];e:for(;Se--&&pt<Ot;){qe+=u;for(var tn=-1,Ft=a[qe];++tn<nt;){var rn=Ke[tn],an=rn.iteratee,Go=rn.type,ro=an(Ft);if(Go==me)Ft=ro;else if(!ro){if(Go==ot)continue e;break e}}Lt[pt++]=Ft}return Lt}qt.prototype=pa($a.prototype),qt.prototype.constructor=qt;function bo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function bs(){this.__data__=fa?fa(null):{},this.size=0}function Hu(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Uu(a){var u=this.__data__;if(fa){var m=u[a];return m===c?n:m}return Mt.call(u,a)?u[a]:n}function Wu(a){var u=this.__data__;return fa?u[a]!==n:Mt.call(u,a)}function Gc(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=fa&&u===n?c:u,this}bo.prototype.clear=bs,bo.prototype.delete=Hu,bo.prototype.get=Uu,bo.prototype.has=Wu,bo.prototype.set=Gc;function wo(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function qc(){this.__data__=[],this.size=0}function $f(a){var u=this.__data__,m=Di(u,a);if(m<0)return!1;var P=u.length-1;return m==P?u.pop():ja.call(u,m,1),--this.size,!0}function Vf(a){var u=this.__data__,m=Di(u,a);return m<0?n:u[m][1]}function Xc(a){return Di(this.__data__,a)>-1}function Hf(a,u){var m=this.__data__,P=Di(m,a);return P<0?(++this.size,m.push([a,u])):m[P][1]=u,this}wo.prototype.clear=qc,wo.prototype.delete=$f,wo.prototype.get=Vf,wo.prototype.has=Xc,wo.prototype.set=Hf;function $o(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var P=a[u];this.set(P[0],P[1])}}function zu(){this.size=0,this.__data__={hash:new bo,map:new(Ki||wo),string:new bo}}function Yu(a){var u=eh(this,a).delete(a);return this.size-=u?1:0,u}function Uf(a){return eh(this,a).get(a)}function Ul(a){return eh(this,a).has(a)}function Gu(a,u){var m=eh(this,a),P=m.size;return m.set(a,u),this.size+=m.size==P?0:1,this}$o.prototype.clear=zu,$o.prototype.delete=Yu,$o.prototype.get=Uf,$o.prototype.has=Ul,$o.prototype.set=Gu;function Va(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new $o;++u<m;)this.add(a[u])}function Wf(a){return this.__data__.set(a,c),this}function zf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=Wf,Va.prototype.has=zf;function Zi(a){var u=this.__data__=new wo(a);this.size=u.size}function Vo(){this.__data__=new wo,this.size=0}function Wl(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function qu(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ha(a,u){var m=this.__data__;if(m instanceof wo){var P=m.__data__;if(!Ki||P.length<i-1)return P.push([a,u]),this.size=++m.size,this;m=this.__data__=new $o(P)}return m.set(a,u),this.size=m.size,this}Zi.prototype.clear=Vo,Zi.prototype.delete=Wl,Zi.prototype.get=qu,Zi.prototype.has=nn,Zi.prototype.set=Ha;function ga(a,u){var m=Xt(a),P=!m&&pc(a),V=!m&&!P&&ll(a),X=!m&&!P&&!V&&cf(a),ue=m||P||V||X,ge=ue?Ce(a.length,kt):[],Se=ge.length;for(var qe in a)(u||Mt.call(a,qe))&&!(ue&&(qe=="length"||V&&(qe=="offset"||qe=="parent")||X&&(qe=="buffer"||qe=="byteLength"||qe=="byteOffset")||yu(qe,Se)))&&ge.push(qe);return ge}function un(a){var u=a.length;return u?a[tl(0,u-1)]:n}function Oi(a,u){return th(vr(a),va(u,0,a.length))}function Ua(a){return th(vr(a))}function ws(a,u,m){(m!==n&&!Ja(a[u],m)||m===n&&!(u in a))&&pr(a,u,m)}function $n(a,u,m){var P=a[u];(!(Mt.call(a,u)&&Ja(P,m))||m===n&&!(u in a))&&pr(a,u,m)}function Di(a,u){for(var m=a.length;m--;)if(Ja(a[m][0],u))return m;return-1}function Wa(a,u,m,P){return ma(a,function(V,X,ue){u(P,V,m(V),ue)}),P}function Ji(a,u){return a&&To(u,ui(u),a)}function za(a,u){return a&&To(u,Eo(u),a)}function pr(a,u,m){u=="__proto__"&&No?No(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function zl(a,u){for(var m=-1,P=u.length,V=fe(P),X=a==null;++m<P;)V[m]=X?n:Cg(a,u[m]);return V}function va(a,u,m){return a===a&&(m!==n&&(a=a<=m?a:m),u!==n&&(a=a>=u?a:u)),a}function zr(a,u,m,P,V,X){var ue,ge=u&p,Se=u&S,qe=u&T;if(m&&(ue=V?m(a,P,V,X):m(a)),ue!==n)return ue;if(!tr(a))return a;var Ke=Xt(a);if(Ke){if(ue=sD(a),!ge)return vr(a,ue)}else{var nt=Ii(a),pt=nt==rt||nt==$t;if(ll(a))return uc(a,ge);if(nt==Kn||nt==Le||pt&&!V){if(ue=Se||pt?{}:cb(a),!ge)return Se?sl(a,za(ue,a)):sf(a,Ji(ue,a))}else{if(!Vt[nt])return V?a:{};ue=uD(a,nt,ge)}}X||(X=new Zi);var Ot=X.get(a);if(Ot)return Ot;X.set(a,ue),Bb(a)?a.forEach(function(Ft){ue.add(zr(Ft,u,m,Ft,a,X))}):Nb(a)&&a.forEach(function(Ft,rn){ue.set(rn,zr(Ft,u,m,rn,a,X))});var Lt=qe?Se?cg:lg:Se?Eo:ui,tn=Ke?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),$n(ue,rn,zr(Ft,u,m,rn,a,X))}),ue}function Yl(a){var u=ui(a);return function(m){return Kc(m,a,u)}}function Kc(a,u,m){var P=m.length;if(a==null)return!P;for(a=ut(a);P--;){var V=m[P],X=u[V],ue=a[V];if(ue===n&&!(V in a)||!X(ue))return!1}return!0}function Gl(a,u,m){if(typeof a!="function")throw new Yt(s);return Kf(function(){a.apply(n,m)},u)}function Ho(a,u,m,P){var V=-1,X=Ee,ue=!0,ge=a.length,Se=[],qe=u.length;if(!ge)return Se;m&&(u=ct(u,xt(m))),P?(X=Ge,ue=!1):u.length>=i&&(X=Dt,ue=!1,u=new Va(u));e:for(;++V<ge;){var Ke=a[V],nt=m==null?Ke:m(Ke);if(Ke=P||Ke!==0?Ke:0,ue&&nt===nt){for(var pt=qe;pt--;)if(u[pt]===nt)continue e;Se.push(Ke)}else X(u,nt,P)||Se.push(Ke)}return Se}var ma=w(xo),ql=w(Zl,!0);function Xu(a,u){var m=!0;return ma(a,function(P,V,X){return m=!!u(P,V,X),m}),m}function Ku(a,u,m){for(var P=-1,V=a.length;++P<V;){var X=a[P],ue=u(X);if(ue!=null&&(ge===n?ue===ue&&!Yo(ue):m(ue,ge)))var ge=ue,Se=X}return Se}function Zc(a,u,m,P){var V=a.length;for(m=en(m),m<0&&(m=-m>V?0:V+m),P=P===n||P>V?V:en(P),P<0&&(P+=V),P=m>P?0:Vb(P);m<P;)a[m++]=u;return a}function Xl(a,u){var m=[];return ma(a,function(P,V,X){u(P,V,X)&&m.push(P)}),m}function gr(a,u,m,P,V){var X=-1,ue=a.length;for(m||(m=cD),V||(V=[]);++X<ue;){var ge=a[X];u>0&&m(ge)?u>1?gr(ge,u-1,m,P,V):Pt(V,ge):P||(V[V.length]=ge)}return V}var Kl=A(),Jc=A(!0);function xo(a,u){return a&&Kl(a,u,ui)}function Zl(a,u){return a&&Jc(a,u,ui)}function Zu(a,u){return je(u,function(m){return bu(a[m])})}function Ya(a,u){u=zo(u,a);for(var m=0,P=u.length;a!=null&&m<P;)a=a[Ds(u[m++])];return m&&m==P?a:n}function eu(a,u,m){var P=u(a);return Xt(a)?P:Pt(P,m(a))}function kr(a){return a==null?a===n?pn:br:Xi&&Xi in ut(a)?iD(a):mD(a)}function tu(a,u){return a>u}function nu(a,u){return a!=null&&Mt.call(a,u)}function Qc(a,u){return a!=null&&u in ut(a)}function ru(a,u,m){return a>=Nn(u,m)&&a<Fn(u,m)}function xs(a,u,m){for(var P=m?Ge:Ee,V=a[0].length,X=a.length,ue=X,ge=fe(X),Se=1/0,qe=[];ue--;){var Ke=a[ue];ue&&u&&(Ke=ct(Ke,xt(u))),Se=Nn(Ke.length,Se),ge[ue]=!m&&(u||V>=120&&Ke.length>=120)?new Va(ue&&Ke):n}Ke=a[0];var nt=-1,pt=ge[0];e:for(;++nt<V&&qe.length<Se;){var Ot=Ke[nt],Lt=u?u(Ot):Ot;if(Ot=m||Ot!==0?Ot:0,!(pt?Dt(pt,Lt):P(qe,Lt,m))){for(ue=X;--ue;){var tn=ge[ue];if(!(tn?Dt(tn,Lt):P(a[ue],Lt,m)))continue e}pt&&pt.push(Lt),qe.push(Ot)}}return qe}function Jl(a,u,m,P){return xo(a,function(V,X,ue){u(P,m(V),X,ue)}),P}function Pi(a,u,m){u=zo(u,a),a=pb(a,u);var P=a==null?a:a[Ds(ba(u))];return P==null?n:H(P,a,m)}function iu(a){return ur(a)&&kr(a)==Le}function Ju(a){return ur(a)&&kr(a)==ci}function Ga(a){return ur(a)&&kr(a)==wt}function Ss(a,u,m,P,V){return a===u?!0:a==null||u==null||!ur(a)&&!ur(u)?a!==a&&u!==u:Ql(a,u,m,P,Ss,V)}function Ql(a,u,m,P,V,X){var ue=Xt(a),ge=Xt(u),Se=ue?Xe:Ii(a),qe=ge?Xe:Ii(u);Se=Se==Le?Kn:Se,qe=qe==Le?Kn:qe;var Ke=Se==Kn,nt=qe==Kn,pt=Se==qe;if(pt&&ll(a)){if(!ll(u))return!1;ue=!0,Ke=!1}if(pt&&!Ke)return X||(X=new Zi),ue||cf(a)?vu(a,u,m,P,V,X):sg(a,u,Se,m,P,V,X);if(!(m&_)){var Ot=Ke&&Mt.call(a,"__wrapped__"),Lt=nt&&Mt.call(u,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Ft=Lt?u.value():u;return X||(X=new Zi),V(tn,Ft,m,P,X)}}return pt?(X||(X=new Zi),ug(a,u,m,P,V,X)):!1}function qa(a){return ur(a)&&Ii(a)==Ht}function ec(a,u,m,P){var V=m.length,X=V,ue=!P;if(a==null)return!X;for(a=ut(a);V--;){var ge=m[V];if(ue&&ge[2]?ge[1]!==a[ge[0]]:!(ge[0]in a))return!1}for(;++V<X;){ge=m[V];var Se=ge[0],qe=a[Se],Ke=ge[1];if(ue&&ge[2]){if(qe===n&&!(Se in a))return!1}else{var nt=new Zi;if(P)var pt=P(qe,Ke,Se,a,u,nt);if(!(pt===n?Ss(Ke,qe,_|R,P,nt):pt))return!1}}return!0}function tc(a){if(!tr(a)||dD(a))return!1;var u=bu(a)?fs:Ei;return u.test(hc(a))}function So(a){return ur(a)&&kr(a)==Pr}function Yf(a){return ur(a)&&Ii(a)==rr}function Gf(a){return ur(a)&&sh(a.length)&&!!Qt[kr(a)]}function Ts(a){return typeof a=="function"?a:a==null?ko:typeof a=="object"?Xt(a)?eo(a[0],a[1]):Uo(a):Jb(a)}function ou(a){if(!Xf(a))return $l(a);var u=[];for(var m in ut(a))Mt.call(a,m)&&m!="constructor"&&u.push(m);return u}function Qu(a){if(!tr(a))return vD(a);var u=Xf(a),m=[];for(var P in a)P=="constructor"&&(u||!Mt.call(a,P))||m.push(P);return m}function Qi(a,u){return a<u}function Cs(a,u){var m=-1,P=Co(a)?fe(a.length):[];return ma(a,function(V,X,ue){P[++m]=u(V,X,ue)}),P}function Uo(a){var u=dg(a);return u.length==1&&u[0][2]?db(u[0][0],u[0][1]):function(m){return m===a||ec(m,a,u)}}function eo(a,u){return pg(a)&&fb(u)?db(Ds(a),u):function(m){var P=Cg(m,a);return P===n&&P===u?Eg(m,a):Ss(u,P,_|R)}}function Es(a,u,m,P,V){a!==u&&Kl(u,function(X,ue){if(V||(V=new Zi),tr(X))_i(a,u,ue,m,Es,P,V);else{var ge=P?P(vg(a,ue),X,ue+"",a,u,V):n;ge===n&&(ge=X),ws(a,ue,ge)}},Eo)}function _i(a,u,m,P,V,X,ue){var ge=vg(a,m),Se=vg(u,m),qe=ue.get(Se);if(qe){ws(a,m,qe);return}var Ke=X?X(ge,Se,m+"",a,u,ue):n,nt=Ke===n;if(nt){var pt=Xt(Se),Ot=!pt&&ll(Se),Lt=!pt&&!Ot&&cf(Se);Ke=Se,pt||Ot||Lt?Xt(ge)?Ke=ge:mr(ge)?Ke=vr(ge):Ot?(nt=!1,Ke=uc(Se,!0)):Lt?(nt=!1,Ke=lc(Se,!0)):Ke=[]:Zf(Se)||pc(Se)?(Ke=ge,pc(ge)?Ke=Hb(ge):(!tr(ge)||bu(ge))&&(Ke=cb(Se))):nt=!1}nt&&(ue.set(Se,Ke),V(Ke,Se,P,X,ue),ue.delete(Se)),ws(a,m,Ke)}function Xa(a,u){var m=a.length;if(m)return u+=u<0?m:0,yu(u,m)?a[u]:n}function el(a,u,m){u.length?u=ct(u,function(X){return Xt(X)?function(ue){return Ya(ue,X.length===1?X[0]:X)}:X}):u=[ko];var P=-1;u=ct(u,xt(Rt()));var V=Cs(a,function(X,ue,ge){var Se=ct(u,function(qe){return qe(X)});return{criteria:Se,index:++P,value:X}});return te(V,function(X,ue){return gu(X,ue,m)})}function Ri(a,u){return Wo(a,u,function(m,P){return Eg(a,P)})}function Wo(a,u,m){for(var P=-1,V=u.length,X={};++P<V;){var ue=u[P],ge=Ya(a,ue);m(ge,ue)&&Za(X,zo(ue,a),ge)}return X}function nc(a){return function(u){return Ya(u,a)}}function Ka(a,u,m,P){var V=P?po:on,X=-1,ue=u.length,ge=a;for(a===u&&(u=vr(u)),m&&(ge=ct(a,xt(m)));++X<ue;)for(var Se=0,qe=u[X],Ke=m?m(qe):qe;(Se=V(ge,Ke,Se,P))>-1;)ge!==a&&ja.call(ge,Se,1),ja.call(a,Se,1);return a}function au(a,u){for(var m=a?u.length:0,P=m-1;m--;){var V=u[m];if(m==P||V!==X){var X=V;yu(V)?ja.call(a,V,1):ac(a,V)}}return a}function tl(a,u){return a+gs(jo()*(u-a+1))}function ef(a,u,m,P){for(var V=-1,X=Fn(Gs((u-a)/(m||1)),0),ue=fe(X);X--;)ue[P?X:++V]=a,a+=m;return ue}function rc(a,u){var m="";if(!a||u<1||u>Je)return m;do u%2&&(m+=a),u=gs(u/2),u&&(a+=a);while(u);return m}function Gt(a,u){return mg(hb(a,u,ko),a+"")}function su(a){return un(ff(a))}function tf(a,u){var m=ff(a);return th(m,va(u,0,m.length))}function Za(a,u,m,P){if(!tr(a))return a;u=zo(u,a);for(var V=-1,X=u.length,ue=X-1,ge=a;ge!=null&&++V<X;){var Se=Ds(u[V]),qe=m;if(Se==="__proto__"||Se==="constructor"||Se==="prototype")return a;if(V!=ue){var Ke=ge[Se];qe=P?P(Ke,Se,ge):n,qe===n&&(qe=tr(Ke)?Ke:yu(u[V+1])?[]:{})}$n(ge,Se,qe),ge=ge[Se]}return a}var ks=da?function(a,u){return da.set(a,u),a}:ko,ic=No?function(a,u){return No(a,"toString",{configurable:!0,enumerable:!1,value:Og(u),writable:!0})}:ko;function oc(a){return th(ff(a))}function oi(a,u,m){var P=-1,V=a.length;u<0&&(u=-u>V?0:V+u),m=m>V?V:m,m<0&&(m+=V),V=u>m?0:m-u>>>0,u>>>=0;for(var X=fe(V);++P<V;)X[P]=a[P+u];return X}function nf(a,u){var m;return ma(a,function(P,V,X){return m=u(P,V,X),!m}),!!m}function uu(a,u,m){var P=0,V=a==null?P:a.length;if(typeof u=="number"&&u===u&&V<=Ue){for(;P<V;){var X=P+V>>>1,ue=a[X];ue!==null&&!Yo(ue)&&(m?ue<=u:ue<u)?P=X+1:V=X}return V}return lu(a,u,ko,m)}function lu(a,u,m,P){var V=0,X=a==null?0:a.length;if(X===0)return 0;u=m(u);for(var ue=u!==u,ge=u===null,Se=Yo(u),qe=u===n;V<X;){var Ke=gs((V+X)/2),nt=m(a[Ke]),pt=nt!==n,Ot=nt===null,Lt=nt===nt,tn=Yo(nt);if(ue)var Ft=P||Lt;else qe?Ft=Lt&&(P||pt):ge?Ft=Lt&&pt&&(P||!Ot):Se?Ft=Lt&&pt&&!Ot&&(P||!tn):Ot||tn?Ft=!1:Ft=P?nt<=u:nt<u;Ft?V=Ke+1:X=Ke}return Nn(X,We)}function rf(a,u){for(var m=-1,P=a.length,V=0,X=[];++m<P;){var ue=a[m],ge=u?u(ue):ue;if(!m||!Ja(ge,Se)){var Se=ge;X[V++]=ue===0?0:ue}}return X}function of(a){return typeof a=="number"?a:Yo(a)?De:+a}function ai(a){if(typeof a=="string")return a;if(Xt(a))return ct(a,ai)+"";if(Yo(a))return Ba?Ba.call(a):"";var u=a+"";return u=="0"&&1/a==-He?"-0":u}function ya(a,u,m){var P=-1,V=Ee,X=a.length,ue=!0,ge=[],Se=ge;if(m)ue=!1,V=Ge;else if(X>=i){var qe=u?null:Cn(a);if(qe)return Gi(qe);ue=!1,V=Dt,Se=new Va}else Se=u?[]:ge;e:for(;++P<X;){var Ke=a[P],nt=u?u(Ke):Ke;if(Ke=m||Ke!==0?Ke:0,ue&&nt===nt){for(var pt=Se.length;pt--;)if(Se[pt]===nt)continue e;u&&Se.push(nt),ge.push(Ke)}else V(Se,nt,m)||(Se!==ge&&Se.push(nt),ge.push(Ke))}return ge}function ac(a,u){return u=zo(u,a),a=pb(a,u),a==null||delete a[Ds(ba(u))]}function nl(a,u,m,P){return Za(a,u,m(Ya(a,u)),P)}function rl(a,u,m,P){for(var V=a.length,X=P?V:-1;(P?X--:++X<V)&&u(a[X],X,a););return m?oi(a,P?0:X,P?X+1:V):oi(a,P?X+1:0,P?V:X)}function si(a,u){var m=a;return m instanceof qt&&(m=m.value()),It(u,function(P,V){return V.func.apply(V.thisArg,Pt([P],V.args))},m)}function cu(a,u,m){var P=a.length;if(P<2)return P?ya(a[0]):[];for(var V=-1,X=fe(P);++V<P;)for(var ue=a[V],ge=-1;++ge<P;)ge!=V&&(X[V]=Ho(X[V]||ue,a[ge],u,m));return ya(gr(X,1),u,m)}function sc(a,u,m){for(var P=-1,V=a.length,X=u.length,ue={};++P<V;){var ge=P<X?u[P]:n;m(ue,a[P],ge)}return ue}function Yr(a){return mr(a)?a:[]}function fu(a){return typeof a=="function"?a:ko}function zo(a,u){return Xt(a)?a:pg(a,u)?[a]:yb(bn(a))}var qf=Gt;function to(a,u,m){var P=a.length;return m=m===n?P:m,!u&&m>=P?a:oi(a,u,m)}var du=zs||function(a){return yn.clearTimeout(a)};function uc(a,u){if(u)return a.slice();var m=a.length,P=Nu?Nu(m):new a.constructor(m);return a.copy(P),P}function il(a){var u=new a.constructor(a.byteLength);return new hs(u).set(new hs(a)),u}function hu(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function pu(a){var u=new a.constructor(a.source,gi.exec(a));return u.lastIndex=a.lastIndex,u}function ol(a){return Js?ut(Js.call(a)):{}}function lc(a,u){var m=u?il(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Os(a,u){if(a!==u){var m=a!==n,P=a===null,V=a===a,X=Yo(a),ue=u!==n,ge=u===null,Se=u===u,qe=Yo(u);if(!ge&&!qe&&!X&&a>u||X&&ue&&Se&&!ge&&!qe||P&&ue&&Se||!m&&Se||!V)return 1;if(!P&&!X&&!qe&&a<u||qe&&m&&V&&!P&&!X||ge&&m&&V||!ue&&V||!Se)return-1}return 0}function gu(a,u,m){for(var P=-1,V=a.criteria,X=u.criteria,ue=V.length,ge=m.length;++P<ue;){var Se=Os(V[P],X[P]);if(Se){if(P>=ge)return Se;var qe=m[P];return Se*(qe=="desc"?-1:1)}}return a.index-u.index}function af(a,u,m,P){for(var V=-1,X=a.length,ue=m.length,ge=-1,Se=u.length,qe=Fn(X-ue,0),Ke=fe(Se+qe),nt=!P;++ge<Se;)Ke[ge]=u[ge];for(;++V<ue;)(nt||V<X)&&(Ke[m[V]]=a[V]);for(;qe--;)Ke[ge++]=a[V++];return Ke}function al(a,u,m,P){for(var V=-1,X=a.length,ue=-1,ge=m.length,Se=-1,qe=u.length,Ke=Fn(X-ge,0),nt=fe(Ke+qe),pt=!P;++V<Ke;)nt[V]=a[V];for(var Ot=V;++Se<qe;)nt[Ot+Se]=u[Se];for(;++ue<ge;)(pt||V<X)&&(nt[Ot+m[ue]]=a[V++]);return nt}function vr(a,u){var m=-1,P=a.length;for(u||(u=fe(P));++m<P;)u[m]=a[m];return u}function To(a,u,m,P){var V=!m;m||(m={});for(var X=-1,ue=u.length;++X<ue;){var ge=u[X],Se=P?P(m[ge],a[ge],ge,m,a):n;Se===n&&(Se=a[ge]),V?pr(m,ge,Se):$n(m,ge,Se)}return m}function sf(a,u){return To(a,hg(a),u)}function sl(a,u){return To(a,ub(a),u)}function ul(a,u){return function(m,P){var V=Xt(m)?le:Wa,X=u?u():{};return V(m,a,Rt(P,2),X)}}function g(a){return Gt(function(u,m){var P=-1,V=m.length,X=V>1?m[V-1]:n,ue=V>2?m[2]:n;for(X=a.length>3&&typeof X=="function"?(V--,X):n,ue&&no(m[0],m[1],ue)&&(X=V<3?n:X,V=1),u=ut(u);++P<V;){var ge=m[P];ge&&a(u,ge,P,X)}return u})}function w(a,u){return function(m,P){if(m==null)return m;if(!Co(m))return a(m,P);for(var V=m.length,X=u?V:-1,ue=ut(m);(u?X--:++X<V)&&P(ue[X],X,ue)!==!1;);return m}}function A(a){return function(u,m,P){for(var V=-1,X=ut(u),ue=P(u),ge=ue.length;ge--;){var Se=ue[a?ge:++V];if(m(X[Se],Se,X)===!1)break}return u}}function $(a,u,m){var P=u&L,V=pe(a);function X(){var ue=this&&this!==yn&&this instanceof X?V:a;return ue.apply(P?m:this,arguments)}return X}function K(a){return function(u){u=bn(u);var m=ii(u)?hr(u):n,P=m?m[0]:u.charAt(0),V=m?to(m,1).join(""):u.slice(1);return P[a]()+V}}function se(a){return function(u){return It(Kb(Xb(u).replace(Aa,"")),a,"")}}function pe(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=pa(a.prototype),P=a.apply(m,u);return tr(P)?P:m}}function Ae(a,u,m){var P=pe(a);function V(){for(var X=arguments.length,ue=fe(X),ge=X,Se=lf(V);ge--;)ue[ge]=arguments[ge];var qe=X<3&&ue[0]!==Se&&ue[X-1]!==Se?[]:xi(ue,Se);if(X-=qe.length,X<m)return St(a,u,D,V.placeholder,n,ue,qe,n,n,m-X);var Ke=this&&this!==yn&&this instanceof V?P:a;return H(Ke,this,ue)}return V}function h(a){return function(u,m,P){var V=ut(u);if(!Co(u)){var X=Rt(m,3);u=ui(u),m=function(ge){return X(V[ge],ge,V)}}var ue=a(u,m,P);return ue>-1?V[X?u[ue]:ue]:n}}function b(a){return mu(function(u){var m=u.length,P=m,V=Wr.prototype.thru;for(a&&u.reverse();P--;){var X=u[P];if(typeof X!="function")throw new Yt(s);if(V&&!ue&&Qd(X)=="wrapper")var ue=new Wr([],!0)}for(P=ue?P:m;++P<m;){X=u[P];var ge=Qd(X),Se=ge=="wrapper"?fg(X):n;Se&&gg(Se[0])&&Se[1]==(x|z|Z|ye)&&!Se[4].length&&Se[9]==1?ue=ue[Qd(Se[0])].apply(ue,Se[3]):ue=X.length==1&&gg(X)?ue[ge]():ue.thru(X)}return function(){var qe=arguments,Ke=qe[0];if(ue&&qe.length==1&&Xt(Ke))return ue.plant(Ke).value();for(var nt=0,pt=m?u[nt].apply(this,qe):Ke;++nt<m;)pt=u[nt].call(this,pt);return pt}})}function D(a,u,m,P,V,X,ue,ge,Se,qe){var Ke=u&x,nt=u&L,pt=u&I,Ot=u&(z|re),Lt=u&ae,tn=pt?n:pe(a);function Ft(){for(var rn=arguments.length,an=fe(rn),Go=rn;Go--;)an[Go]=arguments[Go];if(Ot)var ro=lf(Ft),qo=Tn(an,ro);if(P&&(an=af(an,P,V,Ot)),X&&(an=al(an,X,ue,Ot)),rn-=qo,Ot&&rn<qe){var yr=xi(an,ro);return St(a,u,D,Ft.placeholder,m,an,yr,ge,Se,qe-rn)}var Qa=nt?m:this,xu=pt?Qa[a]:a;return rn=an.length,ge?an=yD(an,ge):Lt&&rn>1&&an.reverse(),Ke&&Se<rn&&(an.length=Se),this&&this!==yn&&this instanceof Ft&&(xu=tn||pe(xu)),xu.apply(Qa,an)}return Ft}function M(a,u){return function(m,P){return Jl(m,a,u(P),{})}}function Y(a,u){return function(m,P){var V;if(m===n&&P===n)return u;if(m!==n&&(V=m),P!==n){if(V===n)return P;typeof m=="string"||typeof P=="string"?(m=ai(m),P=ai(P)):(m=of(m),P=of(P)),V=a(m,P)}return V}}function ie(a){return mu(function(u){return u=ct(u,xt(Rt())),Gt(function(m){var P=this;return a(u,function(V){return H(V,P,m)})})})}function ce(a,u){u=u===n?" ":ai(u);var m=u.length;if(m<2)return m?rc(u,a):u;var P=rc(u,Gs(a/mo(u)));return ii(u)?to(hr(P),0,a).join(""):P.slice(0,a)}function Ie(a,u,m,P){var V=u&L,X=pe(a);function ue(){for(var ge=-1,Se=arguments.length,qe=-1,Ke=P.length,nt=fe(Ke+Se),pt=this&&this!==yn&&this instanceof ue?X:a;++qe<Ke;)nt[qe]=P[qe];for(;Se--;)nt[qe++]=arguments[++ge];return H(pt,V?m:this,nt)}return ue}function Qe(a){return function(u,m,P){return P&&typeof P!="number"&&no(u,m,P)&&(m=P=n),u=wu(u),m===n?(m=u,u=0):m=wu(m),P=P===n?u<m?1:-1:wu(P),ef(u,m,P,a)}}function ht(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=wa(u),m=wa(m)),a(u,m)}}function St(a,u,m,P,V,X,ue,ge,Se,qe){var Ke=u&z,nt=Ke?ue:n,pt=Ke?n:ue,Ot=Ke?X:n,Lt=Ke?n:X;u|=Ke?Z:de,u&=~(Ke?de:Z),u&U||(u&=~(L|I));var tn=[a,u,V,Ot,nt,Lt,pt,ge,Se,qe],Ft=m.apply(n,tn);return gg(a)&&gb(Ft,tn),Ft.placeholder=P,vb(Ft,a,u)}function _t(a){var u=dt[a];return function(m,P){if(m=wa(m),P=P==null?0:Nn(en(P),292),P&&Bl(m)){var V=(bn(m)+"e").split("e"),X=u(V[0]+"e"+(+V[1]+P));return V=(bn(X)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return u(m)}}var Cn=Ur&&1/Gi(new Ur([,-0]))[1]==He?function(a){return new Ur(a)}:_g;function sr(a){return function(u){var m=Ii(u);return m==Ht?us(u):m==rr?Us(u):Be(u,a(u))}}function qn(a,u,m,P,V,X,ue,ge){var Se=u&I;if(!Se&&typeof a!="function")throw new Yt(s);var qe=P?P.length:0;if(qe||(u&=~(Z|de),P=V=n),ue=ue===n?ue:Fn(en(ue),0),ge=ge===n?ge:en(ge),qe-=V?V.length:0,u&de){var Ke=P,nt=V;P=V=n}var pt=Se?n:fg(a),Ot=[a,u,m,P,V,Ke,nt,X,ue,ge];if(pt&&gD(Ot,pt),a=Ot[0],u=Ot[1],m=Ot[2],P=Ot[3],V=Ot[4],ge=Ot[9]=Ot[9]===n?Se?0:a.length:Fn(Ot[9]-qe,0),!ge&&u&(z|re)&&(u&=~(z|re)),!u||u==L)var Lt=$(a,u,m);else u==z||u==re?Lt=Ae(a,u,ge):(u==Z||u==(L|Z))&&!V.length?Lt=Ie(a,u,m,P):Lt=D.apply(n,Ot);var tn=pt?ks:gb;return vb(tn(Lt,Ot),a,u)}function cc(a,u,m,P){return a===n||Ja(a,Gn[m])&&!Mt.call(P,m)?u:a}function fc(a,u,m,P,V,X){return tr(a)&&tr(u)&&(X.set(u,a),Es(a,u,n,fc,X),X.delete(u)),a}function uf(a){return Zf(a)?n:a}function vu(a,u,m,P,V,X){var ue=m&_,ge=a.length,Se=u.length;if(ge!=Se&&!(ue&&Se>ge))return!1;var qe=X.get(a),Ke=X.get(u);if(qe&&Ke)return qe==u&&Ke==a;var nt=-1,pt=!0,Ot=m&R?new Va:n;for(X.set(a,u),X.set(u,a);++nt<ge;){var Lt=a[nt],tn=u[nt];if(P)var Ft=ue?P(tn,Lt,nt,u,a,X):P(Lt,tn,nt,a,u,X);if(Ft!==n){if(Ft)continue;pt=!1;break}if(Ot){if(!dn(u,function(rn,an){if(!Dt(Ot,an)&&(Lt===rn||V(Lt,rn,m,P,X)))return Ot.push(an)})){pt=!1;break}}else if(!(Lt===tn||V(Lt,tn,m,P,X))){pt=!1;break}}return X.delete(a),X.delete(u),pt}function sg(a,u,m,P,V,X,ue){switch(m){case ln:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ci:return!(a.byteLength!=u.byteLength||!X(new hs(a),new hs(u)));case mt:case wt:case Xn:return Ja(+a,+u);case Et:return a.name==u.name&&a.message==u.message;case Pr:case cn:return a==u+"";case Ht:var ge=us;case rr:var Se=P&_;if(ge||(ge=Gi),a.size!=u.size&&!Se)return!1;var qe=ue.get(a);if(qe)return qe==u;P|=R,ue.set(a,u);var Ke=vu(ge(a),ge(u),P,V,X,ue);return ue.delete(a),Ke;case hn:if(Js)return Js.call(a)==Js.call(u)}return!1}function ug(a,u,m,P,V,X){var ue=m&_,ge=lg(a),Se=ge.length,qe=lg(u),Ke=qe.length;if(Se!=Ke&&!ue)return!1;for(var nt=Se;nt--;){var pt=ge[nt];if(!(ue?pt in u:Mt.call(u,pt)))return!1}var Ot=X.get(a),Lt=X.get(u);if(Ot&&Lt)return Ot==u&&Lt==a;var tn=!0;X.set(a,u),X.set(u,a);for(var Ft=ue;++nt<Se;){pt=ge[nt];var rn=a[pt],an=u[pt];if(P)var Go=ue?P(an,rn,pt,u,a,X):P(rn,an,pt,a,u,X);if(!(Go===n?rn===an||V(rn,an,m,P,X):Go)){tn=!1;break}Ft||(Ft=pt=="constructor")}if(tn&&!Ft){var ro=a.constructor,qo=u.constructor;ro!=qo&&"constructor"in a&&"constructor"in u&&!(typeof ro=="function"&&ro instanceof ro&&typeof qo=="function"&&qo instanceof qo)&&(tn=!1)}return X.delete(a),X.delete(u),tn}function mu(a){return mg(hb(a,n,Sb),a+"")}function lg(a){return eu(a,ui,hg)}function cg(a){return eu(a,Eo,ub)}var fg=da?function(a){return da.get(a)}:_g;function Qd(a){for(var u=a.name+"",m=ha[u],P=Mt.call(ha,u)?m.length:0;P--;){var V=m[P],X=V.func;if(X==null||X==a)return V.name}return u}function lf(a){var u=Mt.call(G,"placeholder")?G:a;return u.placeholder}function Rt(){var a=G.iteratee||Dg;return a=a===Dg?Ts:a,arguments.length?a(arguments[0],arguments[1]):a}function eh(a,u){var m=a.__data__;return fD(u)?m[typeof u=="string"?"string":"hash"]:m.map}function dg(a){for(var u=ui(a),m=u.length;m--;){var P=u[m],V=a[P];u[m]=[P,V,fb(V)]}return u}function dc(a,u){var m=aa(a,u);return tc(m)?m:n}function iD(a){var u=Mt.call(a,Xi),m=a[Xi];try{a[Xi]=n;var P=!0}catch{}var V=la.call(a);return P&&(u?a[Xi]=m:delete a[Xi]),V}var hg=qs?function(a){return a==null?[]:(a=ut(a),je(qs(a),function(u){return Nl.call(a,u)}))}:Rg,ub=qs?function(a){for(var u=[];a;)Pt(u,hg(a)),a=ps(a);return u}:Rg,Ii=kr;(Bo&&Ii(new Bo(new ArrayBuffer(1)))!=ln||Ki&&Ii(new Ki)!=Ht||Xs&&Ii(Xs.resolve())!=kn||Ur&&Ii(new Ur)!=rr||ca&&Ii(new ca)!=gt)&&(Ii=function(a){var u=kr(a),m=u==Kn?a.constructor:n,P=m?hc(m):"";if(P)switch(P){case Ks:return ln;case zc:return Ht;case Yc:return kn;case $u:return rr;case Zs:return gt}return u});function oD(a,u,m){for(var P=-1,V=m.length;++P<V;){var X=m[P],ue=X.size;switch(X.type){case"drop":a+=ue;break;case"dropRight":u-=ue;break;case"take":u=Nn(u,a+ue);break;case"takeRight":a=Fn(a,u-ue);break}}return{start:a,end:u}}function aD(a){var u=a.match(Ia);return u?u[1].split(Zr):[]}function lb(a,u,m){u=zo(u,a);for(var P=-1,V=u.length,X=!1;++P<V;){var ue=Ds(u[P]);if(!(X=a!=null&&m(a,ue)))break;a=a[ue]}return X||++P!=V?X:(V=a==null?0:a.length,!!V&&sh(V)&&yu(ue,V)&&(Xt(a)||pc(a)))}function sD(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&Mt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function cb(a){return typeof a.constructor=="function"&&!Xf(a)?pa(ps(a)):{}}function uD(a,u,m){var P=a.constructor;switch(u){case ci:return il(a);case mt:case wt:return new P(+a);case ln:return hu(a,m);case Bi:case $i:case Vi:case _r:case Un:case Rr:case wr:case qr:case Xr:return lc(a,m);case Ht:return new P;case Xn:case cn:return new P(a);case Pr:return pu(a);case rr:return new P;case hn:return ol(a)}}function lD(a,u){var m=u.length;if(!m)return a;var P=m-1;return u[P]=(m>1?"& ":"")+u[P],u=u.join(m>2?", ":" "),a.replace(Ra,`{
149
+ /* [wrapped with `+u+`] */
150
+ `)}function cD(a){return Xt(a)||pc(a)||!!(ju&&a&&a[ju])}function yu(a,u){var m=typeof a;return u=u??Je,!!u&&(m=="number"||m!="symbol"&&Sr.test(a))&&a>-1&&a%1==0&&a<u}function no(a,u,m){if(!tr(m))return!1;var P=typeof u;return(P=="number"?Co(m)&&yu(u,m.length):P=="string"&&u in m)?Ja(m[u],a):!1}function pg(a,u){if(Xt(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||Yo(a)?!0:mn.test(a)||!hi.test(a)||u!=null&&a in ut(u)}function fD(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function gg(a){var u=Qd(a),m=G[u];if(typeof m!="function"||!(u in qt.prototype))return!1;if(a===m)return!0;var P=fg(m);return!!P&&a===P[0]}function dD(a){return!!Dn&&Dn in a}var hD=Hr?bu:Ig;function Xf(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Gn;return a===m}function fb(a){return a===a&&!tr(a)}function db(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==n||a in ut(m))}}function pD(a){var u=oh(a,function(P){return m.size===d&&m.clear(),P}),m=u.cache;return u}function gD(a,u){var m=a[1],P=u[1],V=m|P,X=V<(L|I|x),ue=P==x&&m==z||P==x&&m==ye&&a[7].length<=u[8]||P==(x|ye)&&u[7].length<=u[8]&&m==z;if(!(X||ue))return a;P&L&&(a[2]=u[2],V|=m&L?0:U);var ge=u[3];if(ge){var Se=a[3];a[3]=Se?af(Se,ge,u[4]):ge,a[4]=Se?xi(a[3],y):u[4]}return ge=u[5],ge&&(Se=a[5],a[5]=Se?al(Se,ge,u[6]):ge,a[6]=Se?xi(a[5],y):u[6]),ge=u[7],ge&&(a[7]=ge),P&x&&(a[8]=a[8]==null?u[8]:Nn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function vD(a){var u=[];if(a!=null)for(var m in ut(a))u.push(m);return u}function mD(a){return la.call(a)}function hb(a,u,m){return u=Fn(u===n?a.length-1:u,0),function(){for(var P=arguments,V=-1,X=Fn(P.length-u,0),ue=fe(X);++V<X;)ue[V]=P[u+V];V=-1;for(var ge=fe(u+1);++V<u;)ge[V]=P[V];return ge[u]=m(ue),H(a,this,ge)}}function pb(a,u){return u.length<2?a:Ya(a,oi(u,0,-1))}function yD(a,u){for(var m=a.length,P=Nn(u.length,m),V=vr(a);P--;){var X=u[P];a[P]=yu(X,m)?V[X]:n}return a}function vg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var gb=mb(ks),Kf=Bu||function(a,u){return yn.setTimeout(a,u)},mg=mb(ic);function vb(a,u,m){var P=u+"";return mg(a,lD(P,bD(aD(P),m)))}function mb(a){var u=0,m=0;return function(){var P=Vl(),V=Ye-(P-m);if(m=P,V>0){if(++u>=Ve)return arguments[0]}else u=0;return a.apply(n,arguments)}}function th(a,u){var m=-1,P=a.length,V=P-1;for(u=u===n?P:u;++m<u;){var X=tl(m,V),ue=a[X];a[X]=a[m],a[m]=ue}return a.length=u,a}var yb=pD(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(uo,function(m,P,V,X){u.push(V?X.replace(_o,"$1"):P||m)}),u});function Ds(a){if(typeof a=="string"||Yo(a))return a;var u=a+"";return u=="0"&&1/a==-He?"-0":u}function hc(a){if(a!=null){try{return qi.call(a)}catch{}try{return a+""}catch{}}return""}function bD(a,u){return oe(Re,function(m){var P="_."+m[0];u&m[1]&&!Ee(a,P)&&a.push(P)}),a.sort()}function bb(a){if(a instanceof qt)return a.clone();var u=new Wr(a.__wrapped__,a.__chain__);return u.__actions__=vr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function wD(a,u,m){(m?no(a,u,m):u===n)?u=1:u=Fn(en(u),0);var P=a==null?0:a.length;if(!P||u<1)return[];for(var V=0,X=0,ue=fe(Gs(P/u));V<P;)ue[X++]=oi(a,V,V+=u);return ue}function xD(a){for(var u=-1,m=a==null?0:a.length,P=0,V=[];++u<m;){var X=a[u];X&&(V[P++]=X)}return V}function SD(){var a=arguments.length;if(!a)return[];for(var u=fe(a-1),m=arguments[0],P=a;P--;)u[P-1]=arguments[P];return Pt(Xt(m)?vr(m):[m],gr(u,1))}var TD=Gt(function(a,u){return mr(a)?Ho(a,gr(u,1,mr,!0)):[]}),CD=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),Rt(m,2)):[]}),ED=Gt(function(a,u){var m=ba(u);return mr(m)&&(m=n),mr(a)?Ho(a,gr(u,1,mr,!0),n,m):[]});function kD(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),oi(a,u<0?0:u,P)):[]}function OD(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,0,u<0?0:u)):[]}function DD(a,u){return a&&a.length?rl(a,Rt(u,3),!0,!0):[]}function PD(a,u){return a&&a.length?rl(a,Rt(u,3),!0):[]}function _D(a,u,m,P){var V=a==null?0:a.length;return V?(m&&typeof m!="number"&&no(a,u,m)&&(m=0,P=V),Zc(a,u,m,P)):[]}function wb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),zt(a,Rt(u,3),V)}function xb(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P-1;return m!==n&&(V=en(m),V=m<0?Fn(P+V,0):Nn(V,P-1)),zt(a,Rt(u,3),V,!0)}function Sb(a){var u=a==null?0:a.length;return u?gr(a,1):[]}function RD(a){var u=a==null?0:a.length;return u?gr(a,He):[]}function ID(a,u){var m=a==null?0:a.length;return m?(u=u===n?1:en(u),gr(a,u)):[]}function AD(a){for(var u=-1,m=a==null?0:a.length,P={};++u<m;){var V=a[u];P[V[0]]=V[1]}return P}function Tb(a){return a&&a.length?a[0]:n}function MD(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=m==null?0:en(m);return V<0&&(V=Fn(P+V,0)),on(a,u,V)}function LD(a){var u=a==null?0:a.length;return u?oi(a,0,-1):[]}var FD=Gt(function(a){var u=ct(a,Yr);return u.length&&u[0]===a[0]?xs(u):[]}),ND=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u===ba(m)?u=n:m.pop(),m.length&&m[0]===a[0]?xs(m,Rt(u,2)):[]}),jD=Gt(function(a){var u=ba(a),m=ct(a,Yr);return u=typeof u=="function"?u:n,u&&m.pop(),m.length&&m[0]===a[0]?xs(m,n,u):[]});function BD(a,u){return a==null?"":vs.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function $D(a,u,m){var P=a==null?0:a.length;if(!P)return-1;var V=P;return m!==n&&(V=en(m),V=V<0?Fn(P+V,0):Nn(V,P-1)),u===u?ua(a,u,V):zt(a,go,V,!0)}function VD(a,u){return a&&a.length?Xa(a,en(u)):n}var HD=Gt(Cb);function Cb(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function UD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,Rt(m,2)):a}function WD(a,u,m){return a&&a.length&&u&&u.length?Ka(a,u,n,m):a}var zD=mu(function(a,u){var m=a==null?0:a.length,P=zl(a,u);return au(a,ct(u,function(V){return yu(V,m)?+V:V}).sort(Os)),P});function YD(a,u){var m=[];if(!(a&&a.length))return m;var P=-1,V=[],X=a.length;for(u=Rt(u,3);++P<X;){var ue=a[P];u(ue,P,a)&&(m.push(ue),V.push(P))}return au(a,V),m}function yg(a){return a==null?a:Wc.call(a)}function GD(a,u,m){var P=a==null?0:a.length;return P?(m&&typeof m!="number"&&no(a,u,m)?(u=0,m=P):(u=u==null?0:en(u),m=m===n?P:en(m)),oi(a,u,m)):[]}function qD(a,u){return uu(a,u)}function XD(a,u,m){return lu(a,u,Rt(m,2))}function KD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u);if(P<m&&Ja(a[P],u))return P}return-1}function ZD(a,u){return uu(a,u,!0)}function JD(a,u,m){return lu(a,u,Rt(m,2),!0)}function QD(a,u){var m=a==null?0:a.length;if(m){var P=uu(a,u,!0)-1;if(Ja(a[P],u))return P}return-1}function eP(a){return a&&a.length?rf(a):[]}function tP(a,u){return a&&a.length?rf(a,Rt(u,2)):[]}function nP(a){var u=a==null?0:a.length;return u?oi(a,1,u):[]}function rP(a,u,m){return a&&a.length?(u=m||u===n?1:en(u),oi(a,0,u<0?0:u)):[]}function iP(a,u,m){var P=a==null?0:a.length;return P?(u=m||u===n?1:en(u),u=P-u,oi(a,u<0?0:u,P)):[]}function oP(a,u){return a&&a.length?rl(a,Rt(u,3),!1,!0):[]}function aP(a,u){return a&&a.length?rl(a,Rt(u,3)):[]}var sP=Gt(function(a){return ya(gr(a,1,mr,!0))}),uP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),ya(gr(a,1,mr,!0),Rt(u,2))}),lP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,ya(gr(a,1,mr,!0),n,u)});function cP(a){return a&&a.length?ya(a):[]}function fP(a,u){return a&&a.length?ya(a,Rt(u,2)):[]}function dP(a,u){return u=typeof u=="function"?u:n,a&&a.length?ya(a,n,u):[]}function bg(a){if(!(a&&a.length))return[];var u=0;return a=je(a,function(m){if(mr(m))return u=Fn(m.length,u),!0}),Ce(u,function(m){return ct(a,k(m))})}function Eb(a,u){if(!(a&&a.length))return[];var m=bg(a);return u==null?m:ct(m,function(P){return H(u,n,P)})}var hP=Gt(function(a,u){return mr(a)?Ho(a,u):[]}),pP=Gt(function(a){return cu(je(a,mr))}),gP=Gt(function(a){var u=ba(a);return mr(u)&&(u=n),cu(je(a,mr),Rt(u,2))}),vP=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,cu(je(a,mr),n,u)}),mP=Gt(bg);function yP(a,u){return sc(a||[],u||[],$n)}function bP(a,u){return sc(a||[],u||[],Za)}var wP=Gt(function(a){var u=a.length,m=u>1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,Eb(a,m)});function kb(a){var u=G(a);return u.__chain__=!0,u}function xP(a,u){return u(a),a}function nh(a,u){return u(a)}var SP=mu(function(a){var u=a.length,m=u?a[0]:0,P=this.__wrapped__,V=function(X){return zl(X,a)};return u>1||this.__actions__.length||!(P instanceof qt)||!yu(m)?this.thru(V):(P=P.slice(m,+m+(u?1:0)),P.__actions__.push({func:nh,args:[V],thisArg:n}),new Wr(P,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function TP(){return kb(this)}function CP(){return new Wr(this.value(),this.__chain__)}function EP(){this.__values__===n&&(this.__values__=$b(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function kP(){return this}function OP(a){for(var u,m=this;m instanceof $a;){var P=bb(m);P.__index__=0,P.__values__=n,u?V.__wrapped__=P:u=P;var V=P;m=m.__wrapped__}return V.__wrapped__=a,u}function DP(){var a=this.__wrapped__;if(a instanceof qt){var u=a;return this.__actions__.length&&(u=new qt(this)),u=u.reverse(),u.__actions__.push({func:nh,args:[yg],thisArg:n}),new Wr(u,this.__chain__)}return this.thru(yg)}function PP(){return si(this.__wrapped__,this.__actions__)}var _P=ul(function(a,u,m){Mt.call(a,m)?++a[m]:pr(a,m,1)});function RP(a,u,m){var P=Xt(a)?Ne:Xu;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}function IP(a,u){var m=Xt(a)?je:Xl;return m(a,Rt(u,3))}var AP=h(wb),MP=h(xb);function LP(a,u){return gr(rh(a,u),1)}function FP(a,u){return gr(rh(a,u),He)}function NP(a,u,m){return m=m===n?1:en(m),gr(rh(a,u),m)}function Ob(a,u){var m=Xt(a)?oe:ma;return m(a,Rt(u,3))}function Db(a,u){var m=Xt(a)?we:ql;return m(a,Rt(u,3))}var jP=ul(function(a,u,m){Mt.call(a,m)?a[m].push(u):pr(a,m,[u])});function BP(a,u,m,P){a=Co(a)?a:ff(a),m=m&&!P?en(m):0;var V=a.length;return m<0&&(m=Fn(V+m,0)),uh(a)?m<=V&&a.indexOf(u,m)>-1:!!V&&on(a,u,m)>-1}var $P=Gt(function(a,u,m){var P=-1,V=typeof u=="function",X=Co(a)?fe(a.length):[];return ma(a,function(ue){X[++P]=V?H(u,ue,m):Pi(ue,u,m)}),X}),VP=ul(function(a,u,m){pr(a,m,u)});function rh(a,u){var m=Xt(a)?ct:Cs;return m(a,Rt(u,3))}function HP(a,u,m,P){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),m=P?n:m,Xt(m)||(m=m==null?[]:[m]),el(a,u,m))}var UP=ul(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function WP(a,u,m){var P=Xt(a)?It:W,V=arguments.length<3;return P(a,Rt(u,4),m,V,ma)}function zP(a,u,m){var P=Xt(a)?Mn:W,V=arguments.length<3;return P(a,Rt(u,4),m,V,ql)}function YP(a,u){var m=Xt(a)?je:Xl;return m(a,ah(Rt(u,3)))}function GP(a){var u=Xt(a)?un:su;return u(a)}function qP(a,u,m){(m?no(a,u,m):u===n)?u=1:u=en(u);var P=Xt(a)?Oi:tf;return P(a,u)}function XP(a){var u=Xt(a)?Ua:oc;return u(a)}function KP(a){if(a==null)return 0;if(Co(a))return uh(a)?mo(a):a.length;var u=Ii(a);return u==Ht||u==rr?a.size:ou(a).length}function ZP(a,u,m){var P=Xt(a)?dn:nf;return m&&no(a,u,m)&&(u=n),P(a,Rt(u,3))}var JP=Gt(function(a,u){if(a==null)return[];var m=u.length;return m>1&&no(a,u[0],u[1])?u=[]:m>2&&no(u[0],u[1],u[2])&&(u=[u[0]]),el(a,gr(u,1),[])}),ih=Ys||function(){return yn.Date.now()};function QP(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function Pb(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,qn(a,x,n,n,n,n,u)}function _b(a,u){var m;if(typeof u!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var wg=Gt(function(a,u,m){var P=L;if(m.length){var V=xi(m,lf(wg));P|=Z}return qn(a,P,u,m,V)}),Rb=Gt(function(a,u,m){var P=L|I;if(m.length){var V=xi(m,lf(Rb));P|=Z}return qn(u,P,a,m,V)});function Ib(a,u,m){u=m?n:u;var P=qn(a,z,n,n,n,n,n,u);return P.placeholder=Ib.placeholder,P}function Ab(a,u,m){u=m?n:u;var P=qn(a,re,n,n,n,n,n,u);return P.placeholder=Ab.placeholder,P}function Mb(a,u,m){var P,V,X,ue,ge,Se,qe=0,Ke=!1,nt=!1,pt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(m)&&(Ke=!!m.leading,nt="maxWait"in m,X=nt?Fn(wa(m.maxWait)||0,u):X,pt="trailing"in m?!!m.trailing:pt);function Ot(yr){var Qa=P,xu=V;return P=V=n,qe=yr,ue=a.apply(xu,Qa),ue}function Lt(yr){return qe=yr,ge=Kf(rn,u),Ke?Ot(yr):ue}function tn(yr){var Qa=yr-Se,xu=yr-qe,Qb=u-Qa;return nt?Nn(Qb,X-xu):Qb}function Ft(yr){var Qa=yr-Se,xu=yr-qe;return Se===n||Qa>=u||Qa<0||nt&&xu>=X}function rn(){var yr=ih();if(Ft(yr))return an(yr);ge=Kf(rn,tn(yr))}function an(yr){return ge=n,pt&&P?Ot(yr):(P=V=n,ue)}function Go(){ge!==n&&du(ge),qe=0,P=Se=V=ge=n}function ro(){return ge===n?ue:an(ih())}function qo(){var yr=ih(),Qa=Ft(yr);if(P=arguments,V=this,Se=yr,Qa){if(ge===n)return Lt(Se);if(nt)return du(ge),ge=Kf(rn,u),Ot(Se)}return ge===n&&(ge=Kf(rn,u)),ue}return qo.cancel=Go,qo.flush=ro,qo}var e_=Gt(function(a,u){return Gl(a,1,u)}),t_=Gt(function(a,u,m){return Gl(a,wa(u)||0,m)});function n_(a){return qn(a,ae)}function oh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var m=function(){var P=arguments,V=u?u.apply(this,P):P[0],X=m.cache;if(X.has(V))return X.get(V);var ue=a.apply(this,P);return m.cache=X.set(V,ue)||X,ue};return m.cache=new(oh.Cache||$o),m}oh.Cache=$o;function ah(a){if(typeof a!="function")throw new Yt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function r_(a){return _b(2,a)}var i_=qf(function(a,u){u=u.length==1&&Xt(u[0])?ct(u[0],xt(Rt())):ct(gr(u,1),xt(Rt()));var m=u.length;return Gt(function(P){for(var V=-1,X=Nn(P.length,m);++V<X;)P[V]=u[V].call(this,P[V]);return H(a,this,P)})}),xg=Gt(function(a,u){var m=xi(u,lf(xg));return qn(a,Z,n,u,m)}),Lb=Gt(function(a,u){var m=xi(u,lf(Lb));return qn(a,de,n,u,m)}),o_=mu(function(a,u){return qn(a,ye,n,n,n,u)});function a_(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function s_(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Fn(en(u),0),Gt(function(m){var P=m[u],V=to(m,0,u);return P&&Pt(V,P),H(a,this,V)})}function u_(a,u,m){var P=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(m)&&(P="leading"in m?!!m.leading:P,V="trailing"in m?!!m.trailing:V),Mb(a,u,{leading:P,maxWait:u,trailing:V})}function l_(a){return Pb(a,1)}function c_(a,u){return xg(fu(u),a)}function f_(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function d_(a){return zr(a,T)}function h_(a,u){return u=typeof u=="function"?u:n,zr(a,T,u)}function p_(a){return zr(a,p|T)}function g_(a,u){return u=typeof u=="function"?u:n,zr(a,p|T,u)}function v_(a,u){return u==null||Kc(a,u,ui(u))}function Ja(a,u){return a===u||a!==a&&u!==u}var m_=ht(tu),y_=ht(function(a,u){return a>=u}),pc=iu(function(){return arguments}())?iu:function(a){return ur(a)&&Mt.call(a,"callee")&&!Nl.call(a,"callee")},Xt=fe.isArray,b_=f?xt(f):Ju;function Co(a){return a!=null&&sh(a.length)&&!bu(a)}function mr(a){return ur(a)&&Co(a)}function w_(a){return a===!0||a===!1||ur(a)&&kr(a)==mt}var ll=jl||Ig,x_=v?xt(v):Ga;function S_(a){return ur(a)&&a.nodeType===1&&!Zf(a)}function T_(a){if(a==null)return!0;if(Co(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||ll(a)||cf(a)||pc(a)))return!a.length;var u=Ii(a);if(u==Ht||u==rr)return!a.size;if(Xf(a))return!ou(a).length;for(var m in a)if(Mt.call(a,m))return!1;return!0}function C_(a,u){return Ss(a,u)}function E_(a,u,m){m=typeof m=="function"?m:n;var P=m?m(a,u):n;return P===n?Ss(a,u,n,m):!!P}function Sg(a){if(!ur(a))return!1;var u=kr(a);return u==Et||u==vt||typeof a.message=="string"&&typeof a.name=="string"&&!Zf(a)}function k_(a){return typeof a=="number"&&Bl(a)}function bu(a){if(!tr(a))return!1;var u=kr(a);return u==rt||u==$t||u==lt||u==ji}function Fb(a){return typeof a=="number"&&a==en(a)}function sh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Je}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function ur(a){return a!=null&&typeof a=="object"}var Nb=C?xt(C):qa;function O_(a,u){return a===u||ec(a,u,dg(u))}function D_(a,u,m){return m=typeof m=="function"?m:n,ec(a,u,dg(u),m)}function P_(a){return jb(a)&&a!=+a}function __(a){if(hD(a))throw new ze(o);return tc(a)}function R_(a){return a===null}function I_(a){return a==null}function jb(a){return typeof a=="number"||ur(a)&&kr(a)==Xn}function Zf(a){if(!ur(a)||kr(a)!=Kn)return!1;var u=ps(a);if(u===null)return!0;var m=Mt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&qi.call(m)==Ll}var Tg=O?xt(O):So;function A_(a){return Fb(a)&&a>=-Je&&a<=Je}var Bb=N?xt(N):Yf;function uh(a){return typeof a=="string"||!Xt(a)&&ur(a)&&kr(a)==cn}function Yo(a){return typeof a=="symbol"||ur(a)&&kr(a)==hn}var cf=B?xt(B):Gf;function M_(a){return a===n}function L_(a){return ur(a)&&Ii(a)==gt}function F_(a){return ur(a)&&kr(a)==Rn}var N_=ht(Qi),j_=ht(function(a,u){return a<=u});function $b(a){if(!a)return[];if(Co(a))return uh(a)?hr(a):vr(a);if(Fo&&a[Fo])return vo(a[Fo]());var u=Ii(a),m=u==Ht?us:u==rr?Gi:ff;return m(a)}function wu(a){if(!a)return a===0?a:0;if(a=wa(a),a===He||a===-He){var u=a<0?-1:1;return u*st}return a===a?a:0}function en(a){var u=wu(a),m=u%1;return u===u?m?u-m:u:0}function Vb(a){return a?va(en(a),0,xe):0}function wa(a){if(typeof a=="number")return a;if(Yo(a))return De;if(tr(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=tr(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=et(a);var m=fo.test(a);return m||Jr.test(a)?Na(a.slice(2),m?2:8):Ci.test(a)?De:+a}function Hb(a){return To(a,Eo(a))}function B_(a){return a?va(en(a),-Je,Je):a===0?a:0}function bn(a){return a==null?"":ai(a)}var $_=g(function(a,u){if(Xf(u)||Co(u)){To(u,ui(u),a);return}for(var m in u)Mt.call(u,m)&&$n(a,m,u[m])}),Ub=g(function(a,u){To(u,Eo(u),a)}),lh=g(function(a,u,m,P){To(u,Eo(u),a,P)}),V_=g(function(a,u,m,P){To(u,ui(u),a,P)}),H_=mu(zl);function U_(a,u){var m=pa(a);return u==null?m:Ji(m,u)}var W_=Gt(function(a,u){a=ut(a);var m=-1,P=u.length,V=P>2?u[2]:n;for(V&&no(u[0],u[1],V)&&(P=1);++m<P;)for(var X=u[m],ue=Eo(X),ge=-1,Se=ue.length;++ge<Se;){var qe=ue[ge],Ke=a[qe];(Ke===n||Ja(Ke,Gn[qe])&&!Mt.call(a,qe))&&(a[qe]=X[qe])}return a}),z_=Gt(function(a){return a.push(n,fc),H(Wb,n,a)});function Y_(a,u){return Vr(a,Rt(u,3),xo)}function G_(a,u){return Vr(a,Rt(u,3),Zl)}function q_(a,u){return a==null?a:Kl(a,Rt(u,3),Eo)}function X_(a,u){return a==null?a:Jc(a,Rt(u,3),Eo)}function K_(a,u){return a&&xo(a,Rt(u,3))}function Z_(a,u){return a&&Zl(a,Rt(u,3))}function J_(a){return a==null?[]:Zu(a,ui(a))}function Q_(a){return a==null?[]:Zu(a,Eo(a))}function Cg(a,u,m){var P=a==null?n:Ya(a,u);return P===n?m:P}function eR(a,u){return a!=null&&lb(a,u,nu)}function Eg(a,u){return a!=null&&lb(a,u,Qc)}var tR=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),a[u]=m},Og(ko)),nR=M(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=la.call(u)),Mt.call(a,u)?a[u].push(m):a[u]=[m]},Rt),rR=Gt(Pi);function ui(a){return Co(a)?ga(a):ou(a)}function Eo(a){return Co(a)?ga(a,!0):Qu(a)}function iR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,u(P,V,X),P)}),m}function oR(a,u){var m={};return u=Rt(u,3),xo(a,function(P,V,X){pr(m,V,u(P,V,X))}),m}var aR=g(function(a,u,m){Es(a,u,m)}),Wb=g(function(a,u,m,P){Es(a,u,m,P)}),sR=mu(function(a,u){var m={};if(a==null)return m;var P=!1;u=ct(u,function(X){return X=zo(X,a),P||(P=X.length>1),X}),To(a,cg(a),m),P&&(m=zr(m,p|S|T,uf));for(var V=u.length;V--;)ac(m,u[V]);return m});function uR(a,u){return zb(a,ah(Rt(u)))}var lR=mu(function(a,u){return a==null?{}:Ri(a,u)});function zb(a,u){if(a==null)return{};var m=ct(cg(a),function(P){return[P]});return u=Rt(u),Wo(a,m,function(P,V){return u(P,V[0])})}function cR(a,u,m){u=zo(u,a);var P=-1,V=u.length;for(V||(V=1,a=n);++P<V;){var X=a==null?n:a[Ds(u[P])];X===n&&(P=V,X=m),a=bu(X)?X.call(a):X}return a}function fR(a,u,m){return a==null?a:Za(a,u,m)}function dR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:Za(a,u,m,P)}var Yb=sr(ui),Gb=sr(Eo);function hR(a,u,m){var P=Xt(a),V=P||ll(a)||cf(a);if(u=Rt(u,4),m==null){var X=a&&a.constructor;V?m=P?new X:[]:tr(a)?m=bu(X)?pa(ps(a)):{}:m={}}return(V?oe:xo)(a,function(ue,ge,Se){return u(m,ue,ge,Se)}),m}function pR(a,u){return a==null?!0:ac(a,u)}function gR(a,u,m){return a==null?a:nl(a,u,fu(m))}function vR(a,u,m,P){return P=typeof P=="function"?P:n,a==null?a:nl(a,u,fu(m),P)}function ff(a){return a==null?[]:Nt(a,ui(a))}function mR(a){return a==null?[]:Nt(a,Eo(a))}function yR(a,u,m){return m===n&&(m=u,u=n),m!==n&&(m=wa(m),m=m===m?m:0),u!==n&&(u=wa(u),u=u===u?u:0),va(wa(a),u,m)}function bR(a,u,m){return u=wu(u),m===n?(m=u,u=0):m=wu(m),a=wa(a),ru(a,u,m)}function wR(a,u,m){if(m&&typeof m!="boolean"&&no(a,u,m)&&(u=m=n),m===n&&(typeof u=="boolean"?(m=u,u=n):typeof a=="boolean"&&(m=a,a=n)),a===n&&u===n?(a=0,u=1):(a=wu(a),u===n?(u=a,a=0):u=wu(u)),a>u){var P=a;a=u,u=P}if(m||a%1||u%1){var V=jo();return Nn(a+V*(u-a+dr("1e-"+((V+"").length-1))),u)}return tl(a,u)}var xR=se(function(a,u,m){return u=u.toLowerCase(),a+(m?qb(u):u)});function qb(a){return kg(bn(a).toLowerCase())}function Xb(a){return a=bn(a),a&&a.replace(Ir,Yn).replace(Ma,"")}function SR(a,u,m){a=bn(a),u=ai(u);var P=a.length;m=m===n?P:va(en(m),0,P);var V=m;return m-=u.length,m>=0&&a.slice(m,V)==u}function TR(a){return a=bn(a),a&&Hi.test(a)?a.replace(Zt,oa):a}function CR(a){return a=bn(a),a&&pi.test(a)?a.replace(xr,"\\$&"):a}var ER=se(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),kR=se(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),OR=K("toLowerCase");function DR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;if(!u||P>=u)return a;var V=(u-P)/2;return ce(gs(V),m)+a+ce(Gs(V),m)}function PR(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?a+ce(u-P,m):a}function _R(a,u,m){a=bn(a),u=en(u);var P=u?mo(a):0;return u&&P<u?ce(u-P,m)+a:a}function RR(a,u,m){return m||u==null?u=0:u&&(u=+u),Hl(bn(a).replace(fn,""),u||0)}function IR(a,u,m){return(m?no(a,u,m):u===n)?u=1:u=en(u),rc(bn(a),u)}function AR(){var a=arguments,u=bn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var MR=se(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function LR(a,u,m){return m&&typeof m!="number"&&no(a,u,m)&&(u=m=n),m=m===n?xe:m>>>0,m?(a=bn(a),a&&(typeof u=="string"||u!=null&&!Tg(u))&&(u=ai(u),!u&&ii(a))?to(hr(a),0,m):a.split(u,m)):[]}var FR=se(function(a,u,m){return a+(m?" ":"")+kg(u)});function NR(a,u,m){return a=bn(a),m=m==null?0:va(en(m),0,a.length),u=ai(u),a.slice(m,m+u.length)==u}function jR(a,u,m){var P=G.templateSettings;m&&no(a,u,m)&&(u=n),a=bn(a),u=lh({},u,P,cc);var V=lh({},u.imports,P.imports,cc),X=ui(V),ue=Nt(V,X),ge,Se,qe=0,Ke=u.interpolate||Qr,nt="__p += '",pt=At((u.escape||Qr).source+"|"+Ke.source+"|"+(Ke===di?Ti:Qr).source+"|"+(u.evaluate||Qr).source+"|$","g"),Ot="//# sourceURL="+(Mt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
151
+ `;a.replace(pt,function(Ft,rn,an,Go,ro,qo){return an||(an=Go),nt+=a.slice(qe,qo).replace(Ar,ss),rn&&(ge=!0,nt+=`' +
152
+ __e(`+rn+`) +
153
+ '`),ro&&(Se=!0,nt+=`';
154
+ `+ro+`;
155
+ __p += '`),an&&(nt+=`' +
156
+ ((__t = (`+an+`)) == null ? '' : __t) +
157
+ '`),qe=qo+Ft.length,Ft}),nt+=`';
158
+ `;var Lt=Mt.call(u,"variable")&&u.variable;if(!Lt)nt=`with (obj) {
159
+ `+nt+`
160
+ }
161
+ `;else if(co.test(Lt))throw new ze(l);nt=(Se?nt.replace(Po,""):nt).replace(Zn,"$1").replace(Kr,"$1;"),nt="function("+(Lt||"obj")+`) {
162
+ `+(Lt?"":`obj || (obj = {});
163
+ `)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(Se?`, __j = Array.prototype.join;
164
+ function print() { __p += __j.call(arguments, '') }
165
+ `:`;
166
+ `)+nt+`return __p
167
+ }`;var tn=Zb(function(){return ft(X,Ot+"return "+nt).apply(n,ue)});if(tn.source=nt,Sg(tn))throw tn;return tn}function BR(a){return bn(a).toLowerCase()}function $R(a){return bn(a).toUpperCase()}function VR(a,u,m){if(a=bn(a),a&&(m||u===n))return et(a);if(!a||!(u=ai(u)))return a;var P=hr(a),V=hr(u),X=Ct(P,V),ue=Bn(P,V)+1;return to(P,X,ue).join("")}function HR(a,u,m){if(a=bn(a),a&&(m||u===n))return a.slice(0,Ws(a)+1);if(!a||!(u=ai(u)))return a;var P=hr(a),V=Bn(P,hr(u))+1;return to(P,0,V).join("")}function UR(a,u,m){if(a=bn(a),a&&(m||u===n))return a.replace(fn,"");if(!a||!(u=ai(u)))return a;var P=hr(a),V=Ct(P,hr(u));return to(P,V).join("")}function WR(a,u){var m=Me,P=Ze;if(tr(u)){var V="separator"in u?u.separator:V;m="length"in u?en(u.length):m,P="omission"in u?ai(u.omission):P}a=bn(a);var X=a.length;if(ii(a)){var ue=hr(a);X=ue.length}if(m>=X)return a;var ge=m-mo(P);if(ge<1)return P;var Se=ue?to(ue,0,ge).join(""):a.slice(0,ge);if(V===n)return Se+P;if(ue&&(ge+=Se.length-ge),Tg(V)){if(a.slice(ge).search(V)){var qe,Ke=Se;for(V.global||(V=At(V.source,bn(gi.exec(V))+"g")),V.lastIndex=0;qe=V.exec(Ke);)var nt=qe.index;Se=Se.slice(0,nt===n?ge:nt)}}else if(a.indexOf(ai(V),ge)!=ge){var pt=Se.lastIndexOf(V);pt>-1&&(Se=Se.slice(0,pt))}return Se+P}function zR(a){return a=bn(a),a&&fi.test(a)?a.replace(ir,ls):a}var YR=se(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),kg=K("toUpperCase");function Kb(a,u,m){return a=bn(a),u=m?n:u,u===n?Hs(a)?ve(a):Wt(a):a.match(u)||[]}var Zb=Gt(function(a,u){try{return H(a,n,u)}catch(m){return Sg(m)?m:new ze(m)}}),GR=mu(function(a,u){return oe(u,function(m){m=Ds(m),pr(a,m,wg(a[m],a))}),a});function qR(a){var u=a==null?0:a.length,m=Rt();return a=u?ct(a,function(P){if(typeof P[1]!="function")throw new Yt(s);return[m(P[0]),P[1]]}):[],Gt(function(P){for(var V=-1;++V<u;){var X=a[V];if(H(X[0],this,P))return H(X[1],this,P)}})}function XR(a){return Yl(zr(a,p))}function Og(a){return function(){return a}}function KR(a,u){return a==null||a!==a?u:a}var ZR=b(),JR=b(!0);function ko(a){return a}function Dg(a){return Ts(typeof a=="function"?a:zr(a,p))}function QR(a){return Uo(zr(a,p))}function eI(a,u){return eo(a,zr(u,p))}var tI=Gt(function(a,u){return function(m){return Pi(m,a,u)}}),nI=Gt(function(a,u){return function(m){return Pi(a,m,u)}});function Pg(a,u,m){var P=ui(u),V=Zu(u,P);m==null&&!(tr(u)&&(V.length||!P.length))&&(m=u,u=a,a=this,V=Zu(u,ui(u)));var X=!(tr(m)&&"chain"in m)||!!m.chain,ue=bu(a);return oe(V,function(ge){var Se=u[ge];a[ge]=Se,ue&&(a.prototype[ge]=function(){var qe=this.__chain__;if(X||qe){var Ke=a(this.__wrapped__),nt=Ke.__actions__=vr(this.__actions__);return nt.push({func:Se,args:arguments,thisArg:a}),Ke.__chain__=qe,Ke}return Se.apply(a,Pt([this.value()],arguments))})}),a}function rI(){return yn._===this&&(yn._=Pn),this}function _g(){}function iI(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var oI=ie(ct),aI=ie(Ne),sI=ie(dn);function Jb(a){return pg(a)?k(Ds(a)):nc(a)}function uI(a){return function(u){return a==null?n:Ya(a,u)}}var lI=Qe(),cI=Qe(!0);function Rg(){return[]}function Ig(){return!1}function fI(){return{}}function dI(){return""}function hI(){return!0}function pI(a,u){if(a=en(a),a<1||a>Je)return[];var m=xe,P=Nn(a,xe);u=Rt(u),a-=xe;for(var V=Ce(P,u);++m<a;)u(m);return V}function gI(a){return Xt(a)?ct(a,Ds):Yo(a)?[a]:vr(yb(bn(a)))}function vI(a){var u=++Uc;return bn(a)+u}var mI=Y(function(a,u){return a+u},0),yI=_t("ceil"),bI=Y(function(a,u){return a/u},1),wI=_t("floor");function xI(a){return a&&a.length?Ku(a,ko,tu):n}function SI(a,u){return a&&a.length?Ku(a,Rt(u,2),tu):n}function TI(a){return Er(a,ko)}function CI(a,u){return Er(a,Rt(u,2))}function EI(a){return a&&a.length?Ku(a,ko,Qi):n}function kI(a,u){return a&&a.length?Ku(a,Rt(u,2),Qi):n}var OI=Y(function(a,u){return a*u},1),DI=_t("round"),PI=Y(function(a,u){return a-u},0);function _I(a){return a&&a.length?Te(a,ko):0}function RI(a,u){return a&&a.length?Te(a,Rt(u,2)):0}return G.after=QP,G.ary=Pb,G.assign=$_,G.assignIn=Ub,G.assignInWith=lh,G.assignWith=V_,G.at=H_,G.before=_b,G.bind=wg,G.bindAll=GR,G.bindKey=Rb,G.castArray=f_,G.chain=kb,G.chunk=wD,G.compact=xD,G.concat=SD,G.cond=qR,G.conforms=XR,G.constant=Og,G.countBy=_P,G.create=U_,G.curry=Ib,G.curryRight=Ab,G.debounce=Mb,G.defaults=W_,G.defaultsDeep=z_,G.defer=e_,G.delay=t_,G.difference=TD,G.differenceBy=CD,G.differenceWith=ED,G.drop=kD,G.dropRight=OD,G.dropRightWhile=DD,G.dropWhile=PD,G.fill=_D,G.filter=IP,G.flatMap=LP,G.flatMapDeep=FP,G.flatMapDepth=NP,G.flatten=Sb,G.flattenDeep=RD,G.flattenDepth=ID,G.flip=n_,G.flow=ZR,G.flowRight=JR,G.fromPairs=AD,G.functions=J_,G.functionsIn=Q_,G.groupBy=jP,G.initial=LD,G.intersection=FD,G.intersectionBy=ND,G.intersectionWith=jD,G.invert=tR,G.invertBy=nR,G.invokeMap=$P,G.iteratee=Dg,G.keyBy=VP,G.keys=ui,G.keysIn=Eo,G.map=rh,G.mapKeys=iR,G.mapValues=oR,G.matches=QR,G.matchesProperty=eI,G.memoize=oh,G.merge=aR,G.mergeWith=Wb,G.method=tI,G.methodOf=nI,G.mixin=Pg,G.negate=ah,G.nthArg=iI,G.omit=sR,G.omitBy=uR,G.once=r_,G.orderBy=HP,G.over=oI,G.overArgs=i_,G.overEvery=aI,G.overSome=sI,G.partial=xg,G.partialRight=Lb,G.partition=UP,G.pick=lR,G.pickBy=zb,G.property=Jb,G.propertyOf=uI,G.pull=HD,G.pullAll=Cb,G.pullAllBy=UD,G.pullAllWith=WD,G.pullAt=zD,G.range=lI,G.rangeRight=cI,G.rearg=o_,G.reject=YP,G.remove=YD,G.rest=a_,G.reverse=yg,G.sampleSize=qP,G.set=fR,G.setWith=dR,G.shuffle=XP,G.slice=GD,G.sortBy=JP,G.sortedUniq=eP,G.sortedUniqBy=tP,G.split=LR,G.spread=s_,G.tail=nP,G.take=rP,G.takeRight=iP,G.takeRightWhile=oP,G.takeWhile=aP,G.tap=xP,G.throttle=u_,G.thru=nh,G.toArray=$b,G.toPairs=Yb,G.toPairsIn=Gb,G.toPath=gI,G.toPlainObject=Hb,G.transform=hR,G.unary=l_,G.union=sP,G.unionBy=uP,G.unionWith=lP,G.uniq=cP,G.uniqBy=fP,G.uniqWith=dP,G.unset=pR,G.unzip=bg,G.unzipWith=Eb,G.update=gR,G.updateWith=vR,G.values=ff,G.valuesIn=mR,G.without=hP,G.words=Kb,G.wrap=c_,G.xor=pP,G.xorBy=gP,G.xorWith=vP,G.zip=mP,G.zipObject=yP,G.zipObjectDeep=bP,G.zipWith=wP,G.entries=Yb,G.entriesIn=Gb,G.extend=Ub,G.extendWith=lh,Pg(G,G),G.add=mI,G.attempt=Zb,G.camelCase=xR,G.capitalize=qb,G.ceil=yI,G.clamp=yR,G.clone=d_,G.cloneDeep=p_,G.cloneDeepWith=g_,G.cloneWith=h_,G.conformsTo=v_,G.deburr=Xb,G.defaultTo=KR,G.divide=bI,G.endsWith=SR,G.eq=Ja,G.escape=TR,G.escapeRegExp=CR,G.every=RP,G.find=AP,G.findIndex=wb,G.findKey=Y_,G.findLast=MP,G.findLastIndex=xb,G.findLastKey=G_,G.floor=wI,G.forEach=Ob,G.forEachRight=Db,G.forIn=q_,G.forInRight=X_,G.forOwn=K_,G.forOwnRight=Z_,G.get=Cg,G.gt=m_,G.gte=y_,G.has=eR,G.hasIn=Eg,G.head=Tb,G.identity=ko,G.includes=BP,G.indexOf=MD,G.inRange=bR,G.invoke=rR,G.isArguments=pc,G.isArray=Xt,G.isArrayBuffer=b_,G.isArrayLike=Co,G.isArrayLikeObject=mr,G.isBoolean=w_,G.isBuffer=ll,G.isDate=x_,G.isElement=S_,G.isEmpty=T_,G.isEqual=C_,G.isEqualWith=E_,G.isError=Sg,G.isFinite=k_,G.isFunction=bu,G.isInteger=Fb,G.isLength=sh,G.isMap=Nb,G.isMatch=O_,G.isMatchWith=D_,G.isNaN=P_,G.isNative=__,G.isNil=I_,G.isNull=R_,G.isNumber=jb,G.isObject=tr,G.isObjectLike=ur,G.isPlainObject=Zf,G.isRegExp=Tg,G.isSafeInteger=A_,G.isSet=Bb,G.isString=uh,G.isSymbol=Yo,G.isTypedArray=cf,G.isUndefined=M_,G.isWeakMap=L_,G.isWeakSet=F_,G.join=BD,G.kebabCase=ER,G.last=ba,G.lastIndexOf=$D,G.lowerCase=kR,G.lowerFirst=OR,G.lt=N_,G.lte=j_,G.max=xI,G.maxBy=SI,G.mean=TI,G.meanBy=CI,G.min=EI,G.minBy=kI,G.stubArray=Rg,G.stubFalse=Ig,G.stubObject=fI,G.stubString=dI,G.stubTrue=hI,G.multiply=OI,G.nth=VD,G.noConflict=rI,G.noop=_g,G.now=ih,G.pad=DR,G.padEnd=PR,G.padStart=_R,G.parseInt=RR,G.random=wR,G.reduce=WP,G.reduceRight=zP,G.repeat=IR,G.replace=AR,G.result=cR,G.round=DI,G.runInContext=J,G.sample=GP,G.size=KP,G.snakeCase=MR,G.some=ZP,G.sortedIndex=qD,G.sortedIndexBy=XD,G.sortedIndexOf=KD,G.sortedLastIndex=ZD,G.sortedLastIndexBy=JD,G.sortedLastIndexOf=QD,G.startCase=FR,G.startsWith=NR,G.subtract=PI,G.sum=_I,G.sumBy=RI,G.template=jR,G.times=pI,G.toFinite=wu,G.toInteger=en,G.toLength=Vb,G.toLower=BR,G.toNumber=wa,G.toSafeInteger=B_,G.toString=bn,G.toUpper=$R,G.trim=VR,G.trimEnd=HR,G.trimStart=UR,G.truncate=WR,G.unescape=zR,G.uniqueId=vI,G.upperCase=YR,G.upperFirst=kg,G.each=Ob,G.eachRight=Db,G.first=Tb,Pg(G,function(){var a={};return xo(G,function(u,m){Mt.call(G.prototype,m)||(a[m]=u)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,u){qt.prototype[a]=function(m){m=m===n?1:Fn(en(m),0);var P=this.__filtered__&&!u?new qt(this):this.clone();return P.__filtered__?P.__takeCount__=Nn(m,P.__takeCount__):P.__views__.push({size:Nn(m,xe),type:a+(P.__dir__<0?"Right":"")}),P},qt.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var m=u+1,P=m==ot||m==Oe;qt.prototype[a]=function(V){var X=this.clone();return X.__iteratees__.push({iteratee:Rt(V,3),type:m}),X.__filtered__=X.__filtered__||P,X}}),oe(["head","last"],function(a,u){var m="take"+(u?"Right":"");qt.prototype[a]=function(){return this[m](1).value()[0]}}),oe(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[m](1)}}),qt.prototype.compact=function(){return this.filter(ko)},qt.prototype.find=function(a){return this.filter(a).head()},qt.prototype.findLast=function(a){return this.reverse().find(a)},qt.prototype.invokeMap=Gt(function(a,u){return typeof a=="function"?new qt(this):this.map(function(m){return Pi(m,a,u)})}),qt.prototype.reject=function(a){return this.filter(ah(Rt(a)))},qt.prototype.slice=function(a,u){a=en(a);var m=this;return m.__filtered__&&(a>0||u<0)?new qt(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=en(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(xe)},xo(qt.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),V=G[P?"take"+(u=="last"?"Right":""):u],X=P||/^find/.test(u);V&&(G.prototype[u]=function(){var ue=this.__wrapped__,ge=P?[1]:arguments,Se=ue instanceof qt,qe=ge[0],Ke=Se||Xt(ue),nt=function(rn){var an=V.apply(G,Pt([rn],ge));return P&&pt?an[0]:an};Ke&&m&&typeof qe=="function"&&qe.length!=1&&(Se=Ke=!1);var pt=this.__chain__,Ot=!!this.__actions__.length,Lt=X&&!pt,tn=Se&&!Ot;if(!X&&Ke){ue=tn?ue:new qt(this);var Ft=a.apply(ue,ge);return Ft.__actions__.push({func:nh,args:[nt],thisArg:n}),new Wr(Ft,pt)}return Lt&&tn?a.apply(this,ge):(Ft=this.thru(nt),Lt?P?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Ln[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(P&&!this.__chain__){var X=this.value();return u.apply(Xt(X)?X:[],V)}return this[m](function(ue){return u.apply(Xt(ue)?ue:[],V)})}}),xo(qt.prototype,function(a,u){var m=G[u];if(m){var P=m.name+"";Mt.call(ha,P)||(ha[P]=[]),ha[P].push({name:u,func:m})}}),ha[D(n,I).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Vu,qt.prototype.reverse=ys,qt.prototype.value=Qs,G.prototype.at=SP,G.prototype.chain=TP,G.prototype.commit=CP,G.prototype.next=EP,G.prototype.plant=OP,G.prototype.reverse=DP,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=PP,G.prototype.first=G.prototype.head,Fo&&(G.prototype[Fo]=kP),G},ke=_e();wi?((wi.exports=ke)._=ke,Lo._=ke):yn._=ke}).call(Ko)})(Ep,Ep.exports);var wO=Ep.exports;const m4=Bc(wO);function a1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function y4(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function b4(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],l=null,c=null,d=i;d<=o;d++){var y=t(d);y?c!==null&&(s.push(l,c),l=c=null):(c=d,l===null&&(l=d))}if(c!==null){for(var p=Math.min(Math.max(c,l+r-1),n-1),S=c+1;S<=p&&!t(S);S++)c=S;s.push(l,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var T=s[0]-1;if(!t(T))s[0]=T;else break}return s}var w4=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x4=function(){function e(t,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(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S4=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},s1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},T4=function(e){S4(t,e);function t(){var n,r,i,o;w4(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=s1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var y=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!a1(y)||!a1(p))&&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=p,i._ensureRowsLoaded(y,p)},i._setRef=function(d){i._listRef=d},r),s1(i,o)}return x4(t,[{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,s=o.isItemLoaded,l=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,y=o.threshold,p=y===void 0?15:y,S=b4({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(l-1,i+p)});(this._memoizedUnloadedRanges.length!==S.length||this._memoizedUnloadedRanges.some(function(T,_){return S[_]!==T}))&&(this._memoizedUnloadedRanges=S,this._loadUnloadedRanges(S))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var y=r[d],p=r[d+1],S=o(y,p);S!=null&&S.then(function(){if(y4({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:p})){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())}})},l=0;l<r.length;l+=2)s(l)}}]),t}(Q.PureComponent),Pv={exports:{}};/*!
168
168
  * jQuery JavaScript Library v3.7.1
169
169
  * https://jquery.com/
170
170
  *
@@ -1095,4 +1095,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1095
1095
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1096
1096
  * See the License for the specific language governing permissions and
1097
1097
  * limitations under the License.
1098
- */function w9(e=j6()){return y9().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),Jy(Ky(e),"messaging").getImmediate()}async function x9(e,t){return e=Ky(e),rD(e,t)}function S9(e,t){return e=Ky(e),b9(e,t)}m9();const T9={"subscription-diaglog":"_subscription-diaglog_1bysb_2","subscription-container":"_subscription-container_1bysb_15","subscription-title":"_subscription-title_1bysb_25","subscription-text":"_subscription-text_1bysb_34","subscription-btn__container":"_subscription-btn__container_1bysb_38","btn-success":"_btn-success_1bysb_44","btn-cancel":"_btn-cancel_1bysb_45"},C9={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"};exports.AuthContext=Km;exports.AuthProvider=RM;exports.C=yO;exports.CustomOpenList=B1;exports.CustomOpenListProvider=vA;exports.DateRangePicker=D4;exports.ERROR_MESSAGE=L1;exports.GlobalMenu=p4;exports.IconComponent=v4;exports.IconComponent$1=hO;exports.InfiniteLoader=T4;exports.IoIosStarOutline=oO;exports.IoMdStar=aO;exports.Language=Xm;exports.LogoutConfirmModal=O1;exports.PropTypes=Oa;exports.Q=ML;exports.SaasThemeProvider=PA;exports.StyleWrapper=W1;exports.TranslationProvider=BM;exports._=$M;exports._assertThisInitialized=Ou;exports._extends=Lf;exports._extends$1=d5;exports._inheritsLoose=uO;exports._objectWithoutPropertiesLoose=qm;exports.activeStyles=sO;exports.axiosInstance=Ls;exports.clsx=Eu;exports.color=Fi;exports.commonjsGlobal=Ko;exports.createCustomTheme=H1;exports.getAugmentedNamespace=zA;exports.getMessagingInWindow=w9;exports.getToken=x9;exports.handleErrorAxios=j1;exports.initializeApp=_O;exports.lodashExports=aT;exports.login=F1;exports.logout=N1;exports.motion=iO;exports.notify=$L;exports.objectWithoutPropertiesLoose=WA;exports.onMessage=S9;exports.pushError=Ap;exports.pushSuccess=TT;exports.pushWarning=BL;exports.responseInterceptor=gA;exports.search=AM;exports.styles=m4;exports.styles$1=T9;exports.styles$2=C9;exports.styles1=mT;exports.translate=NM;exports.translationConfig=FM;exports.useAuth=IM;exports.useCustomTranslation=LM;exports.useTheme=DA;exports.useTranslation=K1;exports.useTranslation$1=jM;
1098
+ */function w9(e=j6()){return y9().then(t=>{if(!t)throw Ni.create("unsupported-browser")},t=>{throw Ni.create("indexed-db-unsupported")}),Jy(Ky(e),"messaging").getImmediate()}async function x9(e,t){return e=Ky(e),rD(e,t)}function S9(e,t){return e=Ky(e),b9(e,t)}m9();const T9={"subscription-diaglog":"_subscription-diaglog_1bysb_2","subscription-container":"_subscription-container_1bysb_15","subscription-title":"_subscription-title_1bysb_25","subscription-text":"_subscription-text_1bysb_34","subscription-btn__container":"_subscription-btn__container_1bysb_38","btn-success":"_btn-success_1bysb_44","btn-cancel":"_btn-cancel_1bysb_45"},C9={"notification-massage_container":"_notification-massage_container_ql4az_1","notification-name":"_notification-name_ql4az_18","notification-message_service":"_notification-message_service_ql4az_23","notification-message_button-close":"_notification-message_button-close_ql4az_27"};exports.AuthContext=Km;exports.AuthProvider=RM;exports.C=mO;exports.CustomOpenList=B1;exports.CustomOpenListProvider=vA;exports.DateRangePicker=D4;exports.ERROR_MESSAGE=L1;exports.GlobalMenu=h4;exports.IconComponent=g4;exports.IconComponent$1=dO;exports.InfiniteLoader=T4;exports.IoIosStarOutline=iO;exports.IoMdStar=oO;exports.Language=Xm;exports.LogoutConfirmModal=O1;exports.PropTypes=Oa;exports.Q=AL;exports.SaasThemeProvider=PA;exports.StyleWrapper=W1;exports.TranslationProvider=BM;exports._=m4;exports._assertThisInitialized=Ou;exports._extends=Lf;exports._extends$1=f5;exports._inheritsLoose=sO;exports._objectWithoutPropertiesLoose=qm;exports.activeStyles=aO;exports.axiosInstance=Ls;exports.clsx=Eu;exports.color=Fi;exports.commonjsGlobal=Ko;exports.createCustomTheme=H1;exports.getAugmentedNamespace=zA;exports.getMessagingInWindow=w9;exports.getToken=x9;exports.handleErrorAxios=j1;exports.initializeApp=_O;exports.lodashExports=wO;exports.login=F1;exports.logout=N1;exports.motion=rO;exports.notify=BL;exports.objectWithoutPropertiesLoose=WA;exports.onMessage=S9;exports.pushError=Ap;exports.pushSuccess=ST;exports.pushWarning=jL;exports.responseInterceptor=gA;exports.search=AM;exports.styles=v4;exports.styles$1=T9;exports.styles$2=C9;exports.styles1=vT;exports.translate=NM;exports.translationConfig=FM;exports.useAuth=IM;exports.useCustomTranslation=LM;exports.useTheme=DA;exports.useTranslation=K1;exports.useTranslation$1=jM;