@ukpc-lib/react 0.15.6-sandbox.saas-9173 → 0.15.8-sandbox.saas-9173
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.
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.esm2017-SU-XjHDL.cjs → index.esm2017-BSSJ0AeG.cjs} +72 -72
- package/dist/{index.esm2017-B6RSHWwA.js → index.esm2017-C2gSTh9B.js} +1697 -1693
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +2 -2
- package/web-components-bundle/favorite-menu/index.js +4 -4
- package/web-components-bundle/global-menu/index.js +4 -4
- package/web-components-bundle/global-topbar/index.js +6 -6
- package/web-components-bundle/has-permission/index.js +3 -3
- package/web-components-bundle/{index-CeN2u8rJ.js → index-BOd5uK1U.js} +5 -5
- package/web-components-bundle/{index-DqxmsDJs.js → index-BUE-pz1x.js} +1 -1
- package/web-components-bundle/{index-BU5SX9Tl.js → index-DzW7qqrH.js} +537 -537
- package/web-components-bundle/{index-DOmJ12NF.js → index-SVUqu8Nm.js} +15 -11
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-w5r1Fs9q.js → react-to-web-component-BOygDorD.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-H_Xdunfj.js → react-toastify.esm-DnABvuky.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var oY=require("./index.css");const Pe=require("react/jsx-runtime"),X=require("react"),tI=require("axios"),kd=require("react-query"),aa=require("@mui/material"),xp=require("react-router-dom");require("@r2wc/react-to-web-component");const Dm=require("moment"),Fv=require("react-dom");function nI(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function rI(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=nI(X);function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function Is(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iI(t,e){if(Jo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z1(t){var e=iI(t,"string");return Jo(e)=="symbol"?e:e+""}function l0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z1(r.key),r)}}function Ms(t,e,n){return e&&l0(t.prototype,e),n&&l0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gh(t,e){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gh(t,e)}function Sp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gh(t,e)}function Hd(t,e){if(e&&(Jo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sl(t)}function Ha(t){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ha(t)}function Ua(t,e,n){return(e=z1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y1(t){if(Array.isArray(t))return t}function oI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function G1(t,e){if(t){if(typeof t=="string")return u0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u0(t,e):void 0}}function q1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sI(t){return Y1(t)||oI(t)||G1(t)||q1()}function c0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function f0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?c0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var aI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},lI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Is(this,t),this.init(e,n)}return Ms(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||aI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,f0(f0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Na=new lI,vu=function(){function t(){Is(this,t),this.observers={}}return Ms(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(f){f.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),t}();function ed(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function d0(t){return t==null?"":""+t}function uI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Nv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function h0(t,e,n){var r=Nv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function cI(t,e,n,r){var i=Nv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function qh(t,e){var n=Nv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function fI(t,e,n){var r=qh(t,n);return r!==void 0?r:qh(e,n)}function X1(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):X1(t[r],e[r],n):t[r]=e[r]);return t}function lf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function hI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return dI[e]}):t}var Tp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pI=[" ",",","?","!",";"];function gI(t,e,n){e=e||"",n=n||"";var r=pI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function Xh(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),f=i[c];f===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(e.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+a).join(n);return p?Xh(f,p,n):void 0}i=i[r[o]]}return i}}function p0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function fh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?p0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mI(t){var e=vI();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hd(this,i)}}function vI(){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 yI=function(t){Sp(n,t);var e=mI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Is(this,n),i=e.call(this),Tp&&vu.call(Sl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Ms(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[i,o];a&&typeof a!="string"&&(y=y.concat(a)),a&&typeof a=="string"&&(y=y.concat(f?a.split(f):a)),i.indexOf(".")>-1&&(y=i.split("."));var g=qh(this.data,y);return g||!p||typeof a!="string"?g:Xh(this.data&&this.data[i]&&this.data[i][o],a,f)}},{key:"addResource",value:function(i,o,a,c){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,y=[i,o];a&&(y=y.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(y=i.split("."),c=o,o=y[1]),this.addNamespaces(o),h0(this.data,y,c),f.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var f in a)(typeof a[f]=="string"||Object.prototype.toString.apply(a[f])==="[object Array]")&&this.addResource(i,o,f,a[f],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[i,o];i.indexOf(".")>-1&&(y=i.split("."),c=a,a=o,o=y[1]),this.addNamespaces(o);var g=qh(this.data,y)||{};c?X1(g,a,f):g=fh(fh({},g),a),h0(this.data,y,g),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?fh(fh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(vu),K1={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function g0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Li(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bI(t){var e=wI();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hd(this,i)}}function wI(){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 m0={},v0=function(t){Sp(n,t);var e=bI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Is(this,n),i=e.call(this),Tp&&vu.call(Sl(i)),uI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Sl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Na.create("translator"),i}return Ms(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,y=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!gI(i,a,c);if(p&&!y){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(f=T.shift()),i=T.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{key:"translate",value:function(i,o,a){var c=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Li({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,y=this.extractFromKey(i[i.length-1],o),g=y.key,T=y.namespaces,E=T[T.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var j=o.nsSeparator||this.options.nsSeparator;return f?{res:"".concat(E).concat(j).concat(g),usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:g}var R=this.resolve(i,o),U=R&&R.res,H=R&&R.usedKey||g,ne=R&&R.exactUsedKey||g,q=Object.prototype.toString.apply(U),ie=["[object Number]","[object Function]","[object RegExp]"],x=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,le=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(le&&U&&ae&&ie.indexOf(q)<0&&!(typeof x=="string"&&q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var $e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,U,Li(Li({},o),{},{ns:T})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(R.res=$e,R):$e}if(p){var tt=q==="[object Array]",Qe=tt?[]:{},Ye=tt?ne:H;for(var Oe in U)if(Object.prototype.hasOwnProperty.call(U,Oe)){var ue="".concat(Ye).concat(p).concat(Oe);Qe[Oe]=this.translate(ue,Li(Li({},o),{joinArrays:!1,ns:T})),Qe[Oe]===ue&&(Qe[Oe]=U[Oe])}U=Qe}}else if(le&&typeof x=="string"&&q==="[object Array]")U=U.join(x),U&&(U=this.extendTranslation(U,i,o,a));else{var ve=!1,ke=!1,Le=o.count!==void 0&&typeof o.count!="string",et=n.hasDefaultValue(o),me=Le?this.pluralResolver.getSuffix(A,o.count,o):"",Se=o["defaultValue".concat(me)]||o.defaultValue;!this.isValidLookup(U)&&et&&(ve=!0,U=Se),this.isValidLookup(U)||(ke=!0,U=g);var je=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ue=je&&ke?void 0:U,Ge=et&&Se!==U&&this.options.updateMissing;if(ke||ve||Ge){if(this.logger.log(Ge?"updateKey":"missingKey",A,E,g,Ge?Se:U),p){var Ze=this.resolve(g,Li(Li({},o),{},{keySeparator:!1}));Ze&&Ze.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=[],ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ot&&ot[0])for(var ct=0;ct<ot.length;ct++)Xe.push(ot[ct]);else this.options.saveMissingTo==="all"?Xe=this.languageUtils.toResolveHierarchy(o.lng||this.language):Xe.push(o.lng||this.language);var pt=function(yt,Je,At){var Mt=et&&At!==U?At:Ue;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Je,Mt,Ge,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Je,Mt,Ge,o),c.emit("missingKey",yt,E,Je,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Le?Xe.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],g+yt,o["defaultValue".concat(yt)]||Se)})}):pt(Xe,g,Se))}U=this.extendTranslation(U,i,o,R,a),ke&&U===g&&this.options.appendNamespaceToMissingKey&&(U="".concat(E,":").concat(g)),(ke||ve)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(g):g,ve?U:void 0):U=this.options.parseMissingKeyHandler(U))}return f?(R.res=U,R):U}},{key:"extendTranslation",value:function(i,o,a,c,f){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Li(Li({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Li(Li({},a),{interpolation:Li(Li({},this.options.interpolation),a.interpolation)}));var y=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(y){var T=i.match(this.interpolator.nestingRegexp);g=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Li(Li({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),y){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;g<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,H=new Array(U),ne=0;ne<U;ne++)H[ne]=arguments[ne];return f&&f[0]===H[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(H[0]," in key: ").concat(o[0])),null):p.translate.apply(p,H.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var j=a.postProcess||this.options.postProcess,R=typeof j=="string"?[j]:j;return i!=null&&R&&R.length&&a.applyPostProcessor!==!1&&(i=K1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Li({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,p,y,g;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;f=A;var I=E.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var j=a.count!==void 0&&typeof a.count!="string",R=j&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),U=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",H=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(ne){o.isValidLookup(c)||(g=ne,!m0["".concat(H[0],"-").concat(ne)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(m0["".concat(H[0],"-").concat(ne)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(H.join(", "),`" won't get resolved as namespace "`).concat(g,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(function(q){if(!o.isValidLookup(c)){y=q;var ie=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(ie,A,q,ne,a);else{var x;j&&(x=o.pluralResolver.getSuffix(q,a.count,a));var le="".concat(o.options.pluralSeparator,"zero");if(j&&(ie.push(A+x),R&&ie.push(A+le)),U){var ae="".concat(A).concat(o.options.contextSeparator).concat(a.context);ie.push(ae),j&&(ie.push(ae+x),R&&ie.push(ae+le))}}for(var $e;$e=ie.pop();)o.isValidLookup(c)||(p=$e,c=o.getResource(q,ne,$e,a))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:y,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(vu);function xg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var y0=function(){function t(e){Is(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Na.create("languageUtils")}return Ms(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=xg(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]=xg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=xg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(f){a.indexOf(f)<0&&c(i.formatLanguageCode(f))}),a}}]),t}(),xI=[{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}],SI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},TI=["v1","v2","v3"],b0={zero:0,one:1,two:2,few:3,many:4,other:5};function CI(){var t={};return xI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:SI[e.fc]}})}),t}var EI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Is(this,t),this.languageUtils=e,this.options=n,this.logger=Na.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=CI()}return Ms(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return b0[a]-b0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!TI.includes(this.options.compatibilityJSON)}}]),t}();function w0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function oa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?w0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=fI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Xh(t,n,r),o===void 0&&(o=Xh(e,n,r))),o}var kI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Is(this,t),this.logger=Na.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return Ms(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:hI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?lf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?lf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?lf(r.nestingPrefix):r.nestingPrefixEscaped||lf("$t("),this.nestingSuffix=r.nestingSuffix?lf(r.nestingSuffix):r.nestingSuffixEscaped||lf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,f,p,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(j){return j.replace(/\$/g,"$$$$")}var T=function(R){if(R.indexOf(a.formatSeparator)<0){var U=x0(r,y,R,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(U,void 0,i,oa(oa(oa({},o),r),{},{interpolationkey:R})):U}var H=R.split(a.formatSeparator),ne=H.shift().trim(),q=H.join(a.formatSeparator).trim();return a.format(x0(r,y,ne,a.options.keySeparator,a.options.ignoreJSONStructure),q,i,oa(oa(oa({},o),r),{},{interpolationkey:ne}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,A=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return g(R)}},{regex:this.regexp,safeValue:function(R){return a.escapeValue?g(a.escape(R)):g(R)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var R=c[1].trim();if(f=T(R),f===void 0)if(typeof E=="function"){var U=E(n,c,o);f=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))f="";else if(A){f=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),f="";else typeof f!="string"&&!a.useRawValueToEscape&&(f=d0(f));var H=j.safeValue(f);if(n=n.replace(c[0],H),A?(j.regex.lastIndex+=f.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,f;function p(E,A){var I=this.nestingOptionsSeparator;if(E.indexOf(I)<0)return E;var j=E.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(j[1]);E=j[0],R=this.interpolate(R,f);var U=R.match(/'/g),H=R.match(/"/g);(U&&U.length%2===0&&!H||H.length%2!==0)&&(R=R.replace(/'/g,'"'));try{f=JSON.parse(R),A&&(f=oa(oa({},A),f))}catch(ne){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),ne),"".concat(E).concat(I).concat(R)}return delete f.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var y=[];f=oa({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),y=T,g=!0}if(c=r(p.call(this,a[1].trim(),f),f),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=d0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),g&&(c=y.reduce(function(E,A){return i.format(E,A,o.lng,oa(oa({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function S0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function vl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function DI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),f=sI(c),p=f[0],y=f.slice(1),g=y.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:e,formatOptions:n}}function uf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var PI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Is(this,t),this.logger=Na.create("formatter"),this.options=e,this.formats={number:uf(function(n,r){var i=new Intl.NumberFormat(n,vl({},r));return function(o){return i.format(o)}}),currency:uf(function(n,r){var i=new Intl.NumberFormat(n,vl(vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:uf(function(n,r){var i=new Intl.DateTimeFormat(n,vl({},r));return function(o){return i.format(o)}}),relativetime:uf(function(n,r){var i=new Intl.RelativeTimeFormat(n,vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:uf(function(n,r){var i=new Intl.ListFormat(n,vl({},r));return function(o){return i.format(o)}})},this.init(e)}return Ms(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=uf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),f=c.reduce(function(p,y){var g=DI(y),T=g.formatName,E=g.formatOptions;if(o.formats[T]){var A=p;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},j=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[T](p,j,vl(vl(vl({},E),a),I))}catch(R){o.logger.warn(R)}return A}else o.logger.warn("there was no format function for ".concat(T));return p},n);return f}}]),t}();function T0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function C0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?T0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function OI(t){var e=_I();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hd(this,i)}}function _I(){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 RI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var AI=function(t){Sp(n,t);var e=OI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Is(this,n),a=e.call(this),Tp&&vu.call(Sl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Na.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return Ms(n,[{key:"queueLoad",value:function(i,o,a,c){var f=this,p={},y={},g={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&f.store.hasResourceBundle(E,I)?f.state[j]=2:f.state[j]<0||(f.state[j]===1?y[j]===void 0&&(y[j]=!0):(f.state[j]=1,A=!1,y[j]===void 0&&(y[j]=!0),p[j]===void 0&&(p[j]=!0),T[I]===void 0&&(T[I]=!0)))}),A||(g[E]=!0)}),(Object.keys(p).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(y),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),a&&this.store.addResourceBundle(f,p,a),this.state[i]=o?-1:2;var y={};this.queue.forEach(function(g){cI(g.loaded,[f],p),RI(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(T){y[T]||(y[T]={});var E=g.loaded[T];E.length&&E.forEach(function(A){y[T][A]===void 0&&(y[T][A]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,a){var c=this,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!i.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:f,wait:p,callback:y});return}this.readingCalls++;var g=function(I,j){if(c.readingCalls--,c.waitingReads.length>0){var R=c.waitingReads.shift();c.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&j&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,f+1,p*2,y)},p);return}y(I,j)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(A){return g(null,A)}).catch(g):g(null,E)}catch(A){g(A)}return}return T(i,o,g)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),null;p.toLoad.forEach(function(y){a.loadOne(y)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),f=c[0],p=c[1];this.read(f,p,"read",void 0,void 0,function(y,g){y&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(f," failed"),y),!y&&g&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,y,g)})}},{key:"saveMissing",value:function(i,o,a,c,f){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},y=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var g=C0(C0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,g):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(A){return y(null,A)}).catch(y):y(null,E)}catch(A){y(A)}else T(i,o,a,c,y,g)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(vu);function E0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Jo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Jo(e[2])==="object"||Jo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function k0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function D0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ma(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function II(t){var e=MI();return function(){var r=Ha(t),i;if(e){var o=Ha(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Hd(this,i)}}function MI(){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 dh(){}function LI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Kh=function(t){Sp(n,t);var e=II(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Is(this,n),r=e.call(this),Tp&&vu.call(Sl(r)),r.options=k0(i),r.services={},r.logger=Na,r.modules={external:[]},LI(Sl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Hd(r,Sl(r));setTimeout(function(){r.init(i,o)},0)}return r}return Ms(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=E0();this.options=Ma(Ma(Ma({},c),this.options),k0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ma(Ma({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?Na.init(f(this.modules.logger),this.options):Na.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=PI);var y=new y0(this.options);this.store=new yI(this.options.resources,this.options);var g=this.services;g.logger=Na,g.resourceStore=this.store,g.languageUtils=y,g.pluralResolver=new EI(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new kI(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new AI(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(R){for(var U=arguments.length,H=new Array(U>1?U-1:0),ne=1;ne<U;ne++)H[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(H))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new v0(this.services,this.options),this.translator.on("*",function(R){for(var U=arguments.length,H=new Array(U>1?U-1:0),ne=1;ne<U;ne++)H[ne-1]=arguments[ne];i.emit.apply(i,[R].concat(H))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,a||(a=dh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments),i}});var I=ed(),j=function(){var U=function(ne,q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(q),a(ne,q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh,c=a,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.toLowerCase()==="cimode")return c();var p=[],y=function(E){if(E){var A=o.services.languageUtils.toResolveHierarchy(E);A.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(f)y(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(T){return y(T)})}this.options.preload&&this.options.preload.forEach(function(T){return y(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=ed();return i||(i=this.languages),o||(o=this.options.ns),a||(a=dh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),a(f)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&K1.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=ed();this.emit("languageChanging",i);var f=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(f(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},y=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||f(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(A){p(A,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(y):this.services.languageDetector.detect(y):y(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,f=function p(y,g){var T;if(Jo(g)!=="object"){for(var E=arguments.length,A=new Array(E>2?E-2:0),I=2;I<E;I++)A[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([y,g].concat(A))}else T=Ma({},g);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var j=c.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(y)?R=y.map(function(U){return"".concat(T.keyPrefix).concat(j).concat(U)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(y):y,c.t(R,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=a,f}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var y=function(E,A){var I=o.services.backendConnector.state["".concat(E,"|").concat(A)];return I===-1||I===2};if(a.precheck){var g=a.precheck(this,y);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(c,i)&&(!f||y(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=ed();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){a.options.ns.indexOf(f)<0&&a.options.ns.push(f)}),this.loadResources(function(f){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=ed();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new y0(E0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh,c=Ma(Ma(Ma({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(y){f[y]=i[y]}),f.services=Ma({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new v0(f.services,f.options),f.translator.on("*",function(y){for(var g=arguments.length,T=new Array(g>1?g-1:0),E=1;E<g;E++)T[E-1]=arguments[E];f.emit.apply(f,[y].concat(T))}),f.init(c,a),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(vu);Ua(Kh,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Kh(t,e)});var oi=Kh.createInstance();oi.createInstance=Kh.createInstance;oi.createInstance;oi.dir;oi.init;oi.loadResources;oi.reloadResources;oi.use;oi.changeLanguage;oi.getFixedT;var Z1=oi.t;oi.exists;oi.setDefaultNamespace;oi.hasLoadedNamespace;oi.loadNamespaces;oi.loadLanguages;const J1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Q1=t=>{window.location.href=`${t}/authentication/login`},eT=t=>{window.location.href=`${t}/authentication/logout`},Rs=tI.create({withCredentials:!0});let Sg=!1,Pm=[];const P0=t=>{Pm.forEach(e=>{t?e.reject(t):e.resolve()}),Pm=[]};function tT(t,e){var o,a,c,f,p,y,g,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((f=(c=t.response)==null?void 0:c.data)==null?void 0:f.message),i=r===J1.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return Sg?new Promise((A,I)=>{Pm.push({resolve:A,reject:I})}).then(()=>Rs(n)).catch(A=>Promise.reject(A)):(n._retry=!0,Sg=!0,Rs.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(P0(null),Rs(n))).catch(A=>(P0(A),Promise.reject(A))).finally(()=>{Sg=!1}));if(((y=t.response)==null?void 0:y.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const A=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=A;return}return Q1(window.env.AUTHEN_DOMAIN)}return((g=t.response)==null?void 0:g.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Ud(Z1(`${r||"Something went wrong!"}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const FI=Rs.interceptors.response.use(t=>t,async t=>tT(t)),NI=t=>{const e=kd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||Rs,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=kd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},jI=t=>{const e=kd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||Rs,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=kd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},jv=X.createContext({}),BI=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=NI({axiosInstance:r,baseUrl:n}),a=jI({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Pe.jsx(aa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Pe.jsx(aa.CircularProgress,{})}):Pe.jsx(jv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},$I=()=>X.useContext(jv);function VI(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function HI(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}function Bv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}const UI=Object.freeze(Object.defineProperty({__proto__:null,default:Bv},Symbol.toStringTag,{value:"Module"}));var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function WI(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function zI(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var O0={};function Om(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&O0[e[0]]||(typeof e[0]=="string"&&(O0[e[0]]=new Date),zI.apply(void 0,e))}var nT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function _0(t,e,n){t.loadNamespaces(e,nT(t,n))}function R0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,nT(t,r))}function YI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(f,p){var y=e.services.backendConnector.state["".concat(f,"|").concat(p)];return y===-1||y===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function GI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Om("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):YI(t,e,n)}var qI=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,XI={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},KI=function(e){return XI[e]},ZI=function(e){return e.replace(qI,KI)};function A0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function I0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _m={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ZI};function JI(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_m=I0(I0({},_m),t)}function QI(){return _m}var rT;function eM(t){rT=t}function tM(){return rT}var nM={type:"3rdParty",init:function(e){JI(e.options.react),eM(e)}},iT=X.createContext(),rM=function(){function t(){Is(this,t),this.usedNamespaces={}}return Ms(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function iM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],f=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(y){p=!0,i=y}finally{try{if(!f&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function oM(t,e){return Y1(t)||iM(t,e)||G1(t,e)||q1()}function M0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Tg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M0(Object(n),!0).forEach(function(r){Ua(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var sM=function(e,n){var r=X.useRef();return X.useEffect(function(){r.current=e},[e,n]),r.current};function oT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=X.useContext(iT)||{},i=r.i18n,o=r.defaultNS,a=n||i||tM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new rM),!a){Om("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,$e){return typeof $e=="string"?$e:$e&&Jo($e)==="object"&&typeof $e.defaultValue=="string"?$e.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}a.options.react&&a.options.react.wait!==void 0&&Om("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Tg(Tg(Tg({},QI()),a.options.react),e),y=p.useSuspense,g=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(le){return GI(le,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],g)}var I=X.useState(A),j=oM(I,2),R=j[0],U=j[1],H=T.join();e.lng&&(H="".concat(e.lng).concat(H));var ne=sM(H),q=X.useRef(!0);X.useEffect(function(){var le=p.bindI18n,ae=p.bindI18nStore;q.current=!0,!E&&!y&&(e.lng?R0(a,e.lng,T,function(){q.current&&U(A)}):_0(a,T,function(){q.current&&U(A)})),E&&ne&&ne!==H&&q.current&&U(A);function $e(){q.current&&U(A)}return le&&a&&a.on(le,$e),ae&&a&&a.store.on(ae,$e),function(){q.current=!1,le&&a&&le.split(" ").forEach(function(tt){return a.off(tt,$e)}),ae&&a&&ae.split(" ").forEach(function(tt){return a.store.off(tt,$e)})}},[a,H]);var ie=X.useRef(!0);X.useEffect(function(){q.current&&!ie.current&&U(A),ie.current=!1},[a,g]);var x=[R,a,E];if(x.t=R,x.i18n=a,x.ready=E,E||!E&&!y)return x;throw new Promise(function(le){e.lng?R0(a,e.lng,T,function(){return le()}):_0(a,T,function(){return le()})})}function aM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=X.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return X.createElement(iT.Provider,{value:i},r)}var sT=[],lM=sT.forEach,uM=sT.slice;function cM(t){return lM.call(uM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function fM(t){return t?typeof t=="function"?new t:t:null}function dM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function L0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var aT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Is(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return Ms(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=cM(i,this.options||{},dM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||fM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(y){if(y>=a)return i(new Error("non of the backend loaded data",!0));var g=y===a-1,T=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,E=o.backends[y];E.read?L0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,y),f(y-1,I),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(j&&o.options.refreshExpirationTime&&j+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[y+1];R&&R.read&&L0(R,n,r,function(U,H){U||H&&(Object.keys(H).length<=T||(f(y,H),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,H)))})}}else p(y+1)}):p(y+1)},f=function p(y,g){if(!(y<0)){var T=o.backends[y];T.save&&T.save(n,r,g),p(y-1,g)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(f){if(f.create){var p=f.create.bind(f);if(p.length<6){try{var y;p.length===5?y=p(n,r,i,o,c):y=p(n,r,i,o),y&&typeof y.then=="function"?y.then(function(g){return a(null,g)}).catch(a):a(null,y)}catch(g){a(g)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}]),t}();aT.type="backend";function Rm(t){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rm(t)}function lT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Rm(XMLHttpRequest))==="object"}function hM(t){return!!t&&typeof t.then=="function"}function pM(t){return hM(t)?t:Promise.resolve(t)}function gM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Am={exports:{}},hh={exports:{}},F0;function mM(){return F0||(F0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ki<"u"&&ki,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,f={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(f.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(ue){return ue&&y.indexOf(Object.prototype.toString.call(ue))>-1};function T(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ue)||ue==="")throw new TypeError('Invalid character in header field name: "'+ue+'"');return ue.toLowerCase()}function E(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function A(ue){var ve={next:function(){var ke=ue.shift();return{done:ke===void 0,value:ke}}};return f.iterable&&(ve[Symbol.iterator]=function(){return ve}),ve}function I(ue){this.map={},ue instanceof I?ue.forEach(function(ve,ke){this.append(ke,ve)},this):Array.isArray(ue)?ue.forEach(function(ve){this.append(ve[0],ve[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(ve){this.append(ve,ue[ve])},this)}I.prototype.append=function(ue,ve){ue=T(ue),ve=E(ve);var ke=this.map[ue];this.map[ue]=ke?ke+", "+ve:ve},I.prototype.delete=function(ue){delete this.map[T(ue)]},I.prototype.get=function(ue){return ue=T(ue),this.has(ue)?this.map[ue]:null},I.prototype.has=function(ue){return this.map.hasOwnProperty(T(ue))},I.prototype.set=function(ue,ve){this.map[T(ue)]=E(ve)},I.prototype.forEach=function(ue,ve){for(var ke in this.map)this.map.hasOwnProperty(ke)&&ue.call(ve,this.map[ke],ke,this)},I.prototype.keys=function(){var ue=[];return this.forEach(function(ve,ke){ue.push(ke)}),A(ue)},I.prototype.values=function(){var ue=[];return this.forEach(function(ve){ue.push(ve)}),A(ue)},I.prototype.entries=function(){var ue=[];return this.forEach(function(ve,ke){ue.push([ke,ve])}),A(ue)},f.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function R(ue){return new Promise(function(ve,ke){ue.onload=function(){ve(ue.result)},ue.onerror=function(){ke(ue.error)}})}function U(ue){var ve=new FileReader,ke=R(ve);return ve.readAsArrayBuffer(ue),ke}function H(ue){var ve=new FileReader,ke=R(ve);return ve.readAsText(ue),ke}function ne(ue){for(var ve=new Uint8Array(ue),ke=new Array(ve.length),Le=0;Le<ve.length;Le++)ke[Le]=String.fromCharCode(ve[Le]);return ke.join("")}function q(ue){if(ue.slice)return ue.slice(0);var ve=new Uint8Array(ue.byteLength);return ve.set(new Uint8Array(ue)),ve.buffer}function ie(){return this.bodyUsed=!1,this._initBody=function(ue){this.bodyUsed=this.bodyUsed,this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:f.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:f.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():f.arrayBuffer&&f.blob&&p(ue)?(this._bodyArrayBuffer=q(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||g(ue))?this._bodyArrayBuffer=q(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var ue=j(this);if(ue)return ue;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 ue=j(this);return ue||(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 ue=j(this);if(ue)return ue;if(this._bodyBlob)return H(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ne(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f.formData&&(this.formData=function(){return this.text().then($e)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(ue){var ve=ue.toUpperCase();return x.indexOf(ve)>-1?ve:ue}function ae(ue,ve){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ve=ve||{};var ke=ve.body;if(ue instanceof ae){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,ve.headers||(this.headers=new I(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!ke&&ue._bodyInit!=null&&(ke=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=ve.credentials||this.credentials||"same-origin",(ve.headers||!this.headers)&&(this.headers=new I(ve.headers)),this.method=le(ve.method||this.method||"GET"),this.mode=ve.mode||this.mode||null,this.signal=ve.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ke)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ke),(this.method==="GET"||this.method==="HEAD")&&(ve.cache==="no-store"||ve.cache==="no-cache")){var Le=/([?&])_=[^&]*/;if(Le.test(this.url))this.url=this.url.replace(Le,"$1_="+new Date().getTime());else{var et=/\?/;this.url+=(et.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function $e(ue){var ve=new FormData;return ue.trim().split("&").forEach(function(ke){if(ke){var Le=ke.split("="),et=Le.shift().replace(/\+/g," "),me=Le.join("=").replace(/\+/g," ");ve.append(decodeURIComponent(et),decodeURIComponent(me))}}),ve}function tt(ue){var ve=new I,ke=ue.replace(/\r?\n[\t ]+/g," ");return ke.split("\r").map(function(Le){return Le.indexOf(`
|
|
3
|
-
`)===0?Le.substr(1,Le.length):Le}).forEach(function(Le){var et=Le.split(":"),me=et.shift().trim();if(me){var Se=et.join(":").trim();ve.append(me,Se)}}),ve}ie.call(ae.prototype);function Qe(ue,ve){if(!(this instanceof Qe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ve||(ve={}),this.type="default",this.status=ve.status===void 0?200:ve.status,this.ok=this.status>=200&&this.status<300,this.statusText=ve.statusText===void 0?"":""+ve.statusText,this.headers=new I(ve.headers),this.url=ve.url||"",this._initBody(ue)}ie.call(Qe.prototype),Qe.prototype.clone=function(){return new Qe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Qe.error=function(){var ue=new Qe(null,{status:0,statusText:""});return ue.type="error",ue};var Ye=[301,302,303,307,308];Qe.redirect=function(ue,ve){if(Ye.indexOf(ve)===-1)throw new RangeError("Invalid status code");return new Qe(null,{status:ve,headers:{location:ue}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(ve,ke){this.message=ve,this.name=ke;var Le=Error(ve);this.stack=Le.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Oe(ue,ve){return new Promise(function(ke,Le){var et=new ae(ue,ve);if(et.signal&&et.signal.aborted)return Le(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function Se(){me.abort()}me.onload=function(){var Ue={status:me.status,statusText:me.statusText,headers:tt(me.getAllResponseHeaders()||"")};Ue.url="responseURL"in me?me.responseURL:Ue.headers.get("X-Request-URL");var Ge="response"in me?me.response:me.responseText;setTimeout(function(){ke(new Qe(Ge,Ue))},0)},me.onerror=function(){setTimeout(function(){Le(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Le(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Le(new a.DOMException("Aborted","AbortError"))},0)};function je(Ue){try{return Ue===""&&c.location.href?c.location.href:Ue}catch{return Ue}}me.open(et.method,je(et.url),!0),et.credentials==="include"?me.withCredentials=!0:et.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(f.blob?me.responseType="blob":f.arrayBuffer&&et.headers.get("Content-Type")&&et.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),ve&&typeof ve.headers=="object"&&!(ve.headers instanceof I)?Object.getOwnPropertyNames(ve.headers).forEach(function(Ue){me.setRequestHeader(Ue,E(ve.headers[Ue]))}):et.headers.forEach(function(Ue,Ge){me.setRequestHeader(Ge,Ue)}),et.signal&&(et.signal.addEventListener("abort",Se),me.onreadystatechange=function(){me.readyState===4&&et.signal.removeEventListener("abort",Se)}),me.send(typeof et._bodyInit>"u"?null:et._bodyInit)})}return Oe.polyfill=!0,c.fetch||(c.fetch=Oe,c.Headers=I,c.Request=ae,c.Response=Qe),a.Headers=I,a.Request=ae,a.Response=Qe,a.fetch=Oe,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(hh,hh.exports)),hh.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof ki<"u"&&ki.fetch?n=ki.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof gM<"u"&&typeof window>"u"){var r=n||mM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Am,Am.exports);var uT=Am.exports;const cT=Eu(uT),N0=rI({__proto__:null,default:cT},[uT]);function j0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(r){vM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vM(t,e,n){return(e=yM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yM(t){var e=bM(t,"string");return Ec(e)=="symbol"?e:e+""}function bM(t,e){if(Ec(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ec(t){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(t)}var Tl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Tl=global.fetch:typeof window<"u"&&window.fetch?Tl=window.fetch:Tl=fetch);var Dd;lT()&&(typeof global<"u"&&global.XMLHttpRequest?Dd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Dd=window.XMLHttpRequest));var Zh;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Zh=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Zh=window.ActiveXObject));!Tl&&N0&&!Dd&&!Zh&&(Tl=cT||N0);typeof Tl!="function"&&(Tl=void 0);var Im=function(e,n){if(n&&Ec(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},$0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):Tl(e,n).then(o).catch(r)},V0=!1,wM=function(e,n,r,i){e.queryStringParams&&(n=Im(n,e.queryStringParams));var o=B0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=B0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},V0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{$0(n,c,i,f)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(y){delete c[y]}),$0(n,c,i,f),V0=!0}catch(y){i(y)}}},xM=function(e,n,r,i){r&&Ec(r)==="object"&&(r=Im("",r).slice(1)),e.queryStringParams&&(n=Im(n,e.queryStringParams));try{var o;Dd?o=new Dd:o=new Zh("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},SM=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Tl&&n.indexOf("file:")!==0)return wM(e,n,r,i);if(lT()||typeof ActiveXObject=="function")return xM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kf(t){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(t)}function H0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H0(Object(n),!0).forEach(function(r){fT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function TM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dT(r.key),r)}}function EM(t,e,n){return e&&CM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fT(t,e,n){return(e=dT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dT(t){var e=kM(t,"string");return kf(e)=="symbol"?e:e+""}function kM(t,e){if(kf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var DM=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 fT({},r,i||"")},parseLoadPayload:function(n,r){},request:SM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},hT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};TM(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return EM(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Cg(Cg(Cg({},DM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);kf(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=pM(f),f.then(function(p){if(!p)return a(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(y,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message){var T=y.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var A,I;try{typeof g.data=="string"?A=a.options.parse(g.data,i,o):A=g.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,f,function(I,j){p+=1,y.push(I),g.push(j),p===n.length&&typeof a=="function"&&a(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}])}();hT.type="backend";var $v=(t=>(t.en="en",t.de="de",t))($v||{});oi.use(aT).use(nM).init({initImmediate:!0,supportedLngs:["en","de"],nonExplicitSupportedLngs:!0,fallbackLng:"en",ns:["translation"],fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[hT],backendOptions:[{loadPath:()=>{var e,n,r;if((e=window==null?void 0:window.env)!=null&&e.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const t=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",t),`${t}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function PM(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||$v.en)},[]),{language:t,setLanguage:e}}const pT=X.createContext({}),OM=()=>X.useContext(pT),_M=oi,Ds=Z1,RM=()=>oT(),AM=({children:t})=>{const e=PM();return Pe.jsx(pT.Provider,{value:e,children:Pe.jsx(aM,{i18n:oi,children:t})})},mr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};var gT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},U0=X.createContext&&X.createContext(gT),IM=["attr","size","title"];function MM(t,e){if(t==null)return{};var n=LM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function LM(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jh.apply(this,arguments)}function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){FM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function FM(t,e,n){return e=NM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NM(t){var e=jM(t,"string");return typeof e=="symbol"?e:e+""}function jM(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mT(t){return t&&t.map((e,n)=>X.createElement(e.tag,Qh({key:n},e.attr),mT(e.child)))}function Cp(t){return e=>X.createElement(BM,Jh({attr:Qh({},t.attr)},e),mT(t.child))}function BM(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=MM(t,IM),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),X.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:Qh(Qh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return U0!==void 0?X.createElement(U0.Consumer,null,n=>e(n)):e(gT)}function $M(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function VM(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const vT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Eg(t){return t+" !important"}const yT=t=>{const e={...t.colors};return aa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:vT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Eg(e.primary200),"&:hover":{backgroundColor:Eg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:$M,next:VM}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Eg(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function z0(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||mr[i]})}),n}function bT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function HM(t){var c,f,p;const{data:e,isFetching:n}=kd.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var T;(T=y==null?void 0:y.theme)!=null&&T[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var T,E;bT((T=y==null?void 0:y.theme)==null?void 0:T.favicon);const g=z0(mr,(E=y==null?void 0:y.theme)==null?void 0:E.keyColor);Object.keys(g).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,g[A])}),document.documentElement.style.setProperty("font-family",vT.fontFamily)}}),r=z0(mr,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=yT({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const wT=X.createContext({}),UM=()=>X.useContext(wT),WM=t=>{var o;const{children:e,brandTheme:n}=t,r=HM(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Pe.jsx(wT.Provider,{value:r,children:Pe.jsx(aa.ThemeProvider,{theme:i,children:e})})},zM=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function xT({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("style",{type:"text/css",children:zM}),Pe.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Pe.jsxs("div",{className:"modal-container",children:[Pe.jsx("h3",{className:"modal-title",children:Ds("components.logoutPage.title",{defaultValue:"Log out"})}),Pe.jsxs("p",{className:"text-sm",children:[" ",Ds("components.logoutPage.confirmLogOut",{defaultValue:"Are you sure you want to log out?"})]}),Pe.jsxs("div",{className:"modal-footer",children:[Pe.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:Ds("commonElement.button.cancel",{defaultValue:"Cancel"})}),Pe.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:Ds("commonElement.button.confirm",{defaultValue:"Comfirm"})})]})]})})]})}const YM=X.memo(({notification:t,notiPath:e,markAllAsReadState:n,brandColors:r,onMark:i,showDetail:o,onToggleDetail:a})=>{var R,U;const[c,f]=X.useState({id:t.id,isRead:t.isRead}),p=c.isRead===!1?"unread":"read",y={borderColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500,backgroundColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500},g=()=>{const H=!t.isRead;i&&i(t.id,H,e)};X.useEffect(()=>{f(n?H=>({...H,isRead:!0}):{id:t.id,isRead:t.isRead})},[n,t.id,t.isRead]);const T=()=>{typeof a=="function"&&a()},E=H=>{const ne=Dm(),q=Dm(H),ie=ne.diff(q,"days"),x=ne.diff(q,"minutes"),le=ne.diff(q,"months"),ae=ne.diff(q,"years");if(console.log("diffInMonths",le),x<1)return"Just now";if(ie===0){if(x<=60)return`${x} minute${x>1?"s":""} ago`;const $e=Math.floor(x/60);return console.log("diffIhours",$e),`${$e} hour${$e>1?"s":""} ago`}if(ie===1)return"Yesterday";if(ie>=2&&ie<7)return`${ie} days ago`;if(ie<30){const $e=Math.floor(ie/7);return`${$e} week${$e>1?"s":""} ago`}return le===0||le===1?"1 month ago":le<12?`${le} months ago`:ae===0||ae===1?"1 year ago":"Over 1 year ago"},A=t!=null&&t.data?(R=t==null?void 0:t.data)==null?void 0:R.length:0,I=t!=null&&t.contextUrl?"a":"p",j=(H,ne)=>{var q,ie;if((H==null?void 0:H.actionKey)!=null){if((q=H==null?void 0:H.data)!=null&&q.brandName)return Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`,brandName:H.data.brandName});switch(H==null?void 0:H.notificationType){case"deleteMultiple":return H!=null&&H.data&&((ie=H==null?void 0:H.data)==null?void 0:ie.length)>1?Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_multiple`,{defaultValue:`${H==null?void 0:H.actionKey}`,count:ne}):Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_single`,{defaultValue:`${H==null?void 0:H.actionKey}`});default:return Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`})}}return H.message};return Pe.jsx(Pe.Fragment,{children:Pe.jsxs("div",{className:"notitification-item__container",children:[Pe.jsx("div",{className:"notification-item__image-container",children:Pe.jsx("img",{src:!t.actorAvatarUrl||t.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":t.actorAvatarUrl,onError:({currentTarget:H})=>{console.log("img on error",H),H.onerror=null,H.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:t.actorName})}),Pe.jsxs("div",{style:{width:"calc(100% - 56px)"},children:[Pe.jsxs("div",{className:"notification-item__content-wrapper",children:[Pe.jsxs("div",{className:"notification-item__content",children:[Pe.jsx("p",{className:"notification-item__user-name",children:t.actorName}),Pe.jsxs(I,{href:t.contextUrl,style:{cursor:t!=null&&t.contextUrl?"pointer":"unset",textDecoration:"none",color:"inherit"},children:[j(t,A),Pe.jsx("span",{style:{color:t.contextUrl?"#007BFF":"#292929"},children:` ${t!=null&&t.context?t.context:""}`})]}),(t==null?void 0:t.notificationType)==="deleteMultiple"&&Pe.jsxs("button",{style:{color:mr.primary400,textDecoration:"underline"},onClick:T,children:[o?`${Ds("notificationAdmin.notify.hideText",{defaultValue:"Hide"})} `:`${Ds("notificationAdmin.notify.showText",{defaultValue:"Show"})} `,"`$",Ds("notificationAdmin.notify.detailText",{defaultValue:"details"})," ","`"]})]}),Pe.jsx("div",{className:"notification-item__time",children:Pe.jsx("p",{children:E(t.createdAt)})}),Pe.jsx("button",{className:`${p} notification-item__read-at`,"aria-label":"Mark as read",style:y,onClick:g})]}),o&&Pe.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:Pe.jsx("ul",{children:(U=t==null?void 0:t.data)==null?void 0:U.map((H,ne)=>Pe.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[Pe.jsx("span",{style:{backgroundColor:mr.primary400},className:"list-dot"}),Pe.jsx("span",{style:{width:"calc(100% - 12px)"},children:H.name})]},ne))})})]})]})})}),ST=X.createContext({}),GM=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Pe.jsx(ST.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};function Y0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function qM(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function XM(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var y=e(p);y?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!e(T);T++)f=T;a.push(c,f)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var KM=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ZM=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),JM=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},G0=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},QM=function(t){JM(e,t);function e(){var n,r,i,o;KM(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=G0(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Y0(y)||!Y0(g))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=g,i._ensureRowsLoaded(y,g)},i._setRef=function(p){i._listRef=p},r),G0(i,o)}return ZM(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,T=XM({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var y=r[p],g=r[p+1],T=o(y,g);T!=null&&T.then(function(){if(qM({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent);function Df(){return Df=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Df.apply(null,arguments)}const eL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Df}},Symbol.toStringTag,{value:"Module"}));function TT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Gh(t,e)}const tL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function Vv({children:t,styles:e=[],...n}){return Pe.jsxs("div",{...n,children:[[tL,...e].map((r,i)=>Pe.jsx("style",{type:"text/css",children:r},i)),t]})}function nL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hv=nL,rL=typeof ki=="object"&&ki&&ki.Object===Object&&ki,iL=rL,oL=iL,sL=typeof self=="object"&&self&&self.Object===Object&&self,aL=oL||sL||Function("return this")(),CT=aL,lL=CT,uL=function(){return lL.Date.now()},cL=uL,fL=/\s/;function dL(t){for(var e=t.length;e--&&fL.test(t.charAt(e)););return e}var hL=dL,pL=hL,gL=/^\s+/;function mL(t){return t&&t.slice(0,pL(t)+1).replace(gL,"")}var vL=mL,yL=CT,bL=yL.Symbol,ET=bL,q0=ET,kT=Object.prototype,wL=kT.hasOwnProperty,xL=kT.toString,td=q0?q0.toStringTag:void 0;function SL(t){var e=wL.call(t,td),n=t[td];try{t[td]=void 0;var r=!0}catch{}var i=xL.call(t);return r&&(e?t[td]=n:delete t[td]),i}var TL=SL,CL=Object.prototype,EL=CL.toString;function kL(t){return EL.call(t)}var DL=kL,X0=ET,PL=TL,OL=DL,_L="[object Null]",RL="[object Undefined]",K0=X0?X0.toStringTag:void 0;function AL(t){return t==null?t===void 0?RL:_L:K0&&K0 in Object(t)?PL(t):OL(t)}var IL=AL;function ML(t){return t!=null&&typeof t=="object"}var LL=ML,FL=IL,NL=LL,jL="[object Symbol]";function BL(t){return typeof t=="symbol"||NL(t)&&FL(t)==jL}var $L=BL,VL=vL,Z0=Hv,HL=$L,J0=NaN,UL=/^[-+]0x[0-9a-f]+$/i,WL=/^0b[01]+$/i,zL=/^0o[0-7]+$/i,YL=parseInt;function GL(t){if(typeof t=="number")return t;if(HL(t))return J0;if(Z0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Z0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=VL(t);var n=WL.test(t);return n||zL.test(t)?YL(t.slice(2),n?2:8):UL.test(t)?J0:+t}var qL=GL,XL=Hv,kg=cL,Q0=qL,KL="Expected a function",ZL=Math.max,JL=Math.min;function QL(t,e,n){var r,i,o,a,c,f,p=0,y=!1,g=!1,T=!0;if(typeof t!="function")throw new TypeError(KL);e=Q0(e)||0,XL(n)&&(y=!!n.leading,g="maxWait"in n,o=g?ZL(Q0(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ie){var x=r,le=i;return r=i=void 0,p=ie,a=t.apply(le,x),a}function A(ie){return p=ie,c=setTimeout(R,e),y?E(ie):a}function I(ie){var x=ie-f,le=ie-p,ae=e-x;return g?JL(ae,o-le):ae}function j(ie){var x=ie-f,le=ie-p;return f===void 0||x>=e||x<0||g&&le>=o}function R(){var ie=kg();if(j(ie))return U(ie);c=setTimeout(R,I(ie))}function U(ie){return c=void 0,T&&r?E(ie):(r=i=void 0,a)}function H(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function ne(){return c===void 0?a:U(kg())}function q(){var ie=kg(),x=j(ie);if(r=arguments,i=this,f=ie,x){if(c===void 0)return A(f);if(g)return clearTimeout(c),c=setTimeout(R,e),E(f)}return c===void 0&&(c=setTimeout(R,e)),a}return q.cancel=H,q.flush=ne,q}var DT=QL;const Dg=Eu(DT);var e2=DT,t2=Hv,n2="Expected a function";function r2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(n2);return t2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),e2(t,e,{leading:r,maxWait:e,trailing:i})}var i2=r2;const o2=Eu(i2);var pf=function(){return pf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)};function PT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function OT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var _T=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function RT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function AT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function IT(t){return".".concat(t.split(" ").join("."))}var Uv=!!(typeof window<"u"&&window.document&&window.document.createElement),s2=Object.freeze({__proto__:null,addClasses:RT,canUseDOM:Uv,classNamesToQuery:IT,getElementDocument:OT,getElementWindow:PT,getOptions:_T,removeClasses:AT}),df=null,ew=null;Uv&&window.addEventListener("resize",function(){ew!==window.devicePixelRatio&&(ew=window.devicePixelRatio,df=null)});function tw(){if(df===null){if(typeof document>"u")return df=0,df;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),df=n}return df}var iu=PT,Pg=OT,a2=_T,ou=RT,su=AT,Oo=IT,nd=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=iu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ou(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){su(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){su(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,f,p,y,g,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,R=r.axis[r.draggedAxis].track,U=(a=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,H=r.axis[r.draggedAxis].scrollbar,ne=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,q=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var ie=j-((T=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ie=r.draggedAxis==="x"&&r.isRtl?((A=(E=R.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-H.size-ie:ie;var x=ie/(U-H.size),le=x*(ne-q);r.draggedAxis==="x"&&r.isRtl&&(le=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-le:le),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=le}},this.onEndDrag=function(i){r.isDragging=!1;var o=Pg(r.el),a=iu(r.el);i.preventDefault(),i.stopPropagation(),su(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=pf(pf({},t.defaultOptions),n),this.classNames=pf(pf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=o2(this._onMouseMove,64),this.onWindowResize=Dg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Dg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Dg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:tw()}catch{return tw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Pg(e),i=iu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Uv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(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=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.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||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=iu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=iu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(a-f),g=~~((c-o.size)*y);g=e==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=e==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ou(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(su(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):su(n.scrollbar.el,this.classNames.hover)):(su(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),su(this.axis[e].track.el,this.classNames.hover),su(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Pg(this.el),o=iu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=iu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-g:this.mouseX-g,I=A<0?-1:1,j=I===-1?E-T:E+T,R=40,U=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<j&&(E+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=iu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=a2,t.helpers=s2,t}(),Ko=function(){return Ko=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)};function l2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Wv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=l2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},y={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(nd.defaultOptions,E)?p[E]=o[E]:y[E]=o[E]});var g=Ko(Ko({},nd.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||nd.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||nd.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new nd(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Ko({"data-simplebar":"init",ref:a},y),kn.createElement("div",{className:g.wrapper},kn.createElement("div",{className:g.heightAutoObserverWrapperEl},kn.createElement("div",{className:g.heightAutoObserverEl})),kn.createElement("div",{className:g.mask},kn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:g.contentEl},n)))),kn.createElement("div",{className:g.placeholder})),kn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},kn.createElement("div",{className:g.scrollbar})),kn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},kn.createElement("div",{className:g.scrollbar})))});Wv.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}';function LT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=LT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=LT(t))&&(r&&(r+=" "),r+=e);return r}const Pd=t=>typeof t=="number"&&!isNaN(t),xc=t=>typeof t=="string",Zo=t=>typeof t=="function",Mh=t=>xc(t)||Zo(t)?t:null,Mm=t=>X.isValidElement(t)||xc(t)||Zo(t)||Pd(t);function u2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Ep(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:T,playToast:E}=a;const A=r?`${e}--${f}`:e,I=r?`${n}--${f}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const R=g.current,U=A.split(" "),H=ne=>{ne.target===g.current&&(E(),R.removeEventListener("animationend",H),R.removeEventListener("animationcancel",H),j.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...U))};R.classList.add(...U),R.addEventListener("animationend",H),R.addEventListener("animationcancel",H)},[]),X.useEffect(()=>{const R=g.current,U=()=>{R.removeEventListener("animationend",U),i?u2(R,y,o):y()};T||(p?U():(j.current=1,R.className+=` ${I}`,R.addEventListener("animationend",U)))},[T]),X.createElement(X.Fragment,null,c)}}function nw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const oo=new Map;let Od=[];const Lm=new Set,c2=t=>Lm.forEach(e=>e(t)),FT=()=>oo.size>0;function NT(t,e){var n;if(e)return!((n=oo.get(e))==null||!n.isToastActive(t));let r=!1;return oo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function jT(t,e){Mm(t)&&(FT()||Od.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function rw(t,e){oo.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function f2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(y,g,T){let E=1,A=0,I=[],j=[],R=[],U=g;const H=new Map,ne=new Set,q=()=>{R=Array.from(H.values()),ne.forEach(le=>le())},ie=le=>{j=le==null?[]:j.filter(ae=>ae!==le),q()},x=le=>{const{toastId:ae,onOpen:$e,updateId:tt,children:Qe}=le.props,Ye=tt==null;le.staleId&&H.delete(le.staleId),H.set(ae,le),j=[...j,le.props.toastId].filter(Oe=>Oe!==le.staleId),q(),T(nw(le,Ye?"added":"updated")),Ye&&Zo($e)&&$e(X.isValidElement(Qe)&&Qe.props)};return{id:y,props:U,observe:le=>(ne.add(le),()=>ne.delete(le)),toggle:(le,ae)=>{H.forEach($e=>{ae!=null&&ae!==$e.props.toastId||Zo($e.toggle)&&$e.toggle(le)})},removeToast:ie,toasts:H,clearQueue:()=>{A-=I.length,I=[]},buildToast:(le,ae)=>{if((je=>{let{containerId:Ue,toastId:Ge,updateId:Ze}=je;const Xe=Ue?Ue!==y:y!==1,ot=H.has(Ge)&&Ze==null;return Xe||ot})(ae))return;const{toastId:$e,updateId:tt,data:Qe,staleId:Ye,delay:Oe}=ae,ue=()=>{ie($e)},ve=tt==null;ve&&A++;const ke={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(je=>{let[Ue,Ge]=je;return Ge!=null})),toastId:$e,updateId:tt,data:Qe,closeToast:ue,isIn:!1,className:Mh(ae.className||U.toastClassName),bodyClassName:Mh(ae.bodyClassName||U.bodyClassName),progressClassName:Mh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Le=ae.autoClose,et=U.autoClose,Le===!1||Pd(Le)&&Le>0?Le:et),deleteToast(){const je=H.get($e),{onClose:Ue,children:Ge}=je.props;Zo(Ue)&&Ue(X.isValidElement(Ge)&&Ge.props),T(nw(je,"removed")),H.delete($e),A--,A<0&&(A=0),I.length>0?x(I.shift()):q()}};var Le,et;ke.closeButton=U.closeButton,ae.closeButton===!1||Mm(ae.closeButton)?ke.closeButton=ae.closeButton:ae.closeButton===!0&&(ke.closeButton=!Mm(U.closeButton)||U.closeButton);let me=le;X.isValidElement(le)&&!xc(le.type)?me=X.cloneElement(le,{closeToast:ue,toastProps:ke,data:Qe}):Zo(le)&&(me=le({closeToast:ue,toastProps:ke,data:Qe}));const Se={content:me,props:ke,staleId:Ye};U.limit&&U.limit>0&&A>U.limit&&ve?I.push(Se):Pd(Oe)?setTimeout(()=>{x(Se)},Oe):x(Se)},setProps(le){U=le},setToggle:(le,ae)=>{H.get(le).toggle=ae},isToastActive:le=>j.some(ae=>ae===le),getSnapshot:()=>R}}(a,o,c2);oo.set(a,f);const p=f.observe(c);return Od.forEach(y=>jT(y.content,y.options)),Od=[],()=>{p(),oo.delete(a)}},setProps(c){var f;(f=oo.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:NT,count:i==null?void 0:i.length}}function d2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(H){const ne=o.current;a.canDrag&&ne&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?H.clientX-a.start:H.clientY-a.start,a.start!==H.clientX&&(a.canCloseOnClick=!1),ne.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function R(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",R);const H=o.current;if(a.canDrag&&a.didMove&&H){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();H.style.transition="transform 0.2s, opacity 0.2s",H.style.removeProperty("transform"),H.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(H){if(t.draggable===!0||t.draggable===H.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",R);const ne=o.current;a.canCloseOnClick=!0,a.canDrag=!0,ne.style.transition="none",t.draggableDirection==="x"?(a.start=H.clientX,a.removalDistance=ne.offsetWidth*(t.draggablePercent/100)):(a.start=H.clientY,a.removalDistance=ne.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(H){const{top:ne,bottom:q,left:ie,right:x}=o.current.getBoundingClientRect();H.nativeEvent.type!=="touchend"&&t.pauseOnHover&&H.clientX>=ie&&H.clientX<=x&&H.clientY>=ne&&H.clientY<=q?I():A()}};return c&&f&&(U.onMouseEnter=I,t.stacked||(U.onMouseLeave=A)),g&&(U.onClick=H=>{y&&y(H),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function h2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:T}=t;const E=o||f&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(A.transform=`scaleX(${p})`);const I=wl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),j=Zo(a)?a({rtl:y,type:i,defaultClassName:I}):wl(I,a),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,...R}))}let p2=1;const BT=()=>""+p2++;function g2(t){return t&&(xc(t.toastId)||Pd(t.toastId))?t.toastId:BT()}function pd(t,e){return jT(t,e),e.toastId}function ep(t,e){return{...e,type:e&&e.type||t,toastId:g2(e)}}function ph(t){return(e,n)=>pd(e,ep(t,n))}function xn(t,e){return pd(t,ep("default",e))}xn.loading=(t,e)=>pd(t,ep("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=xc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,T)=>{if(g==null)return void xn.dismiss(r);const E={type:y,...c,...n,data:T},A=xc(g)?{render:g}:g;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Zo(t)?t():t;return p.then(y=>f("success",a,y)).catch(y=>f("error",o,y)),p},xn.success=ph("success"),xn.info=ph("info"),xn.error=ph("error"),xn.warning=ph("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>pd(t,ep("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(FT()){if(e==null||xc(n=e)||Pd(n))oo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=oo.get(e.containerId);r?r.removeToast(e.id):oo.forEach(i=>{i.removeToast(e.id)})}}else Od=Od.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),oo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=NT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=oo.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:BT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,pd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Lm.add(t),()=>{Lm.delete(t)}},xn.play=t=>rw(!0,t),xn.pause=t=>rw(!1,t);const m2=typeof window<"u"?X.useLayoutEffect:X.useEffect,gh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Og={info:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},v2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=d2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:R,bodyStyle:U,progressClassName:H,progressStyle:ne,updateId:q,role:ie,progress:x,rtl:le,toastId:ae,deleteToast:$e,isIn:tt,isLoading:Qe,closeOnClick:Ye,theme:Oe}=t,ue=wl("Toastify__toast",`Toastify__toast-theme--${Oe}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":le},{"Toastify__toast--close-on-click":Ye}),ve=Zo(I)?I({rtl:le,position:A,type:y,defaultClassName:ue}):wl(ue,I),ke=function(Se){let{theme:je,type:Ue,isLoading:Ge,icon:Ze}=Se,Xe=null;const ot={theme:je,type:Ue};return Ze===!1||(Zo(Ze)?Xe=Ze({...ot,isLoading:Ge}):X.isValidElement(Ze)?Xe=X.cloneElement(Ze,ot):Ge?Xe=Og.spinner():(ct=>ct in Og)(Ue)&&(Xe=Og[Ue](ot))),Xe}(t),Le=!!x||!f,et={closeToast:T,type:y,theme:Oe};let me=null;return a===!1||(me=Zo(a)?a(et):X.isValidElement(a)?X.cloneElement(a,et):function(Se){let{closeToast:je,theme:Ue,ariaLabel:Ge="close"}=Se;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:Ze=>{Ze.stopPropagation(),je(Ze)},"aria-label":Ge},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(et)),X.createElement(E,{isIn:tt,done:$e,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":tt,className:ve,...i,style:j,ref:r},X.createElement("div",{...tt&&{role:ie},className:Zo(R)?R({type:y}):wl("Toastify__toast-body",R),style:U},ke!=null&&X.createElement("div",{className:wl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Qe})},ke),X.createElement("div",null,c)),me,X.createElement(h2,{...q&&!Le?{key:`pb-${q}`}:{},rtl:le,theme:Oe,delay:f,isRunning:e,isIn:tt,closeToast:T,hide:g,type:y,style:ne,className:H,controlledProgress:Le,progress:x||0})))},kp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},y2=Ep(kp("bounce",!0));Ep(kp("slide",!0));Ep(kp("zoom"));Ep(kp("flip"));const b2={position:"top-right",transition:y2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function w2(t){let e={...b2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=f2(e),{className:p,style:y,rtl:g,containerId:T}=e;function E(I){const j=wl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Zo(p)?p({position:I,rtl:g,defaultClassName:j}):wl(j,Mh(p))}function A(){n&&(i(!0),xn.play())}return m2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),R=12,U=(I=e.position)==null?void 0:I.includes("top");let H=0,ne=0;Array.from(j).reverse().forEach((q,ie)=>{const x=q;x.classList.add("Toastify__toast--stacked"),ie>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const le=H*(r?.2:1)+(r?0:R*ie);x.style.setProperty("--y",`${U?le:-1*le}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?ne:0))),H+=x.offsetHeight,ne+=.025})}},[r,f,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const R=j.length?{...y}:{...y,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:R,key:`container-${I}`},j.map(U=>{let{content:H,props:ne}=U;return X.createElement(v2,{...ne,stacked:n,collapseAll:A,isIn:c(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},H)}))}))}function x2(){return Pe.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.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"}),Pe.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Pe.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function S2(){return Pe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Pe.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function T2(){return Pe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.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"}),Pe.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const zv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},C2=({closeToast:t})=>Pe.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Pe.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Pe.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"})})}),Yv=(t,e)=>{xn.success(t,{icon:Pe.jsx(S2,{}),bodyStyle:{},position:"bottom-right",style:{...zv,background:mr.successLight,borderColor:mr.success,color:mr.success},...e})},Ud=(t,e)=>{xn.error(t,{icon:Pe.jsx(x2,{}),position:"bottom-right",style:{...zv,background:mr.dangerLight,borderColor:mr.danger,color:mr.danger},...e})},E2=(t,e)=>{xn.error(t,{icon:Pe.jsx(T2,{}),position:"bottom-right",style:{...zv,background:mr.warningLight,borderColor:mr.warning,color:mr.warning},...e})},k2=t=>{xn(t,{closeButton:C2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:mr.textPrimary}})};function $T(t){let e=null;return()=>(e==null&&(e=t()),e)}function D2(t,e){return t.filter(n=>n!==e)}function P2(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class O2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=P2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=D2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class _2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const VT="__NATIVE_FILE__",HT="__NATIVE_URL__",UT="__NATIVE_TEXT__",WT="__NATIVE_HTML__",iw=Object.freeze(Object.defineProperty({__proto__:null,FILE:VT,HTML:WT,TEXT:UT,URL:HT},Symbol.toStringTag,{value:"Module"}));function _g(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Fm={[VT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[WT]:{exposeProperties:{html:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[HT]:{exposeProperties:{urls:(t,e)=>_g(t,e,"").split(`
|
|
4
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[UT]:{exposeProperties:{text:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function R2(t,e){const n=Fm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new _2(n);return r.loadDataTransfer(e),r}function Rg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Fm).filter(n=>{const r=Fm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const A2=$T(()=>/firefox/i.test(navigator.userAgent)),zT=$T(()=>!!window.safari);class ow{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let f=0,p=a.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const E=n[y];if(E<e)f=y+1;else if(E>e)p=y-1;else return r[y]}c=Math.max(0,p);const g=e-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+a[c]*g*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],R=c+j;p.push(3*R/((R+j)/A+(R+c)/I))}}p.push(a[a.length-1]);const y=[],g=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;y.push((T-A-j)*I),g.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const I2=1;function YT(t){const e=t.nodeType===I2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function mh(t){return{x:t.clientX,y:t.clientY}}function M2(t){var e;return t.nodeName==="IMG"&&(A2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function L2(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return zT()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function F2(t,e,n,r,i){const o=M2(e),c=YT(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=t,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=L2(o,e,p,y),I=()=>{let ie=new ow([0,.5,1],[f.y,f.y/y*A,f.y+A-y]).interpolate(T);return zT()&&o&&(ie+=(window.devicePixelRatio-1)*A),ie},j=()=>new ow([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(g),{offsetX:R,offsetY:U}=i,H=R===0||R,ne=U===0||U;return{x:H?R:j(),y:ne?U:I()}}let N2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function j2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){j2(t,i,n[i])})}return t}class B2{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return sw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return sw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iw).some(n=>iw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=R2(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&YT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=mh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Rg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||g;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),H=F2(g,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,H.x,H.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Rg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:mh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=mh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Rg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:mh(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 N2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new O2(this.isNodeInDocument)}}let vh;function $2(){return vh||(vh=new Image,vh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),vh}const GT=function(e,n,r){return new B2(e,n,r)};var Sc=[],V2=function(){return Sc.some(function(t){return t.activeTargets.length>0})},H2=function(){return Sc.some(function(t){return t.skippedTargets.length>0})},aw="ResizeObserver loop completed with undelivered notifications.",U2=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:aw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=aw),window.dispatchEvent(t)},_d;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(_d||(_d={}));var Tc=function(t){return Object.freeze(t)},W2=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Tc(this)}return t}(),qT=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Gv=function(t){return t instanceof SVGElement&&"getBBox"in t},XT=function(t){if(Gv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},lw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},z2=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},gd=typeof window<"u"?window:{},yh=new WeakMap,uw=/auto|scroll/,Y2=/^tb|vertical/,G2=/msie|trident/i.test(gd.navigator&&gd.navigator.userAgent),La=function(t){return parseFloat(t||"0")},Ef=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new W2((n?e:t)||0,(n?t:e)||0)},cw=Tc({devicePixelContentBoxSize:Ef(),borderBoxSize:Ef(),contentBoxSize:Ef(),contentRect:new qT(0,0,0,0)}),KT=function(t,e){if(e===void 0&&(e=!1),yh.has(t)&&!e)return yh.get(t);if(XT(t))return yh.set(t,cw),cw;var n=getComputedStyle(t),r=Gv(t)&&t.ownerSVGElement&&t.getBBox(),i=!G2&&n.boxSizing==="border-box",o=Y2.test(n.writingMode||""),a=!r&&uw.test(n.overflowY||""),c=!r&&uw.test(n.overflowX||""),f=r?0:La(n.paddingTop),p=r?0:La(n.paddingRight),y=r?0:La(n.paddingBottom),g=r?0:La(n.paddingLeft),T=r?0:La(n.borderTopWidth),E=r?0:La(n.borderRightWidth),A=r?0:La(n.borderBottomWidth),I=r?0:La(n.borderLeftWidth),j=g+p,R=f+y,U=I+E,H=T+A,ne=c?t.offsetHeight-H-t.clientHeight:0,q=a?t.offsetWidth-U-t.clientWidth:0,ie=i?j+U:0,x=i?R+H:0,le=r?r.width:La(n.width)-ie-q,ae=r?r.height:La(n.height)-x-ne,$e=le+j+q+U,tt=ae+R+ne+H,Qe=Tc({devicePixelContentBoxSize:Ef(Math.round(le*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Ef($e,tt,o),contentBoxSize:Ef(le,ae,o),contentRect:new qT(g,f,le,ae)});return yh.set(t,Qe),Qe},ZT=function(t,e,n){var r=KT(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case _d.DEVICE_PIXEL_CONTENT_BOX:return a;case _d.BORDER_BOX:return i;default:return o}},q2=function(){function t(e){var n=KT(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Tc([n.borderBoxSize]),this.contentBoxSize=Tc([n.contentBoxSize]),this.devicePixelContentBoxSize=Tc([n.devicePixelContentBoxSize])}return t}(),JT=function(t){if(XT(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},X2=function(){var t=1/0,e=[];Sc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var y=new q2(p.target),g=JT(p.target);c.push(y),p.lastReportedSize=ZT(p.target,p.observedBox),g<t&&(t=g)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},fw=function(t){Sc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(JT(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},K2=function(){var t=0;for(fw(t);V2();)t=X2(),fw(t);return H2()&&U2(),t>0},Ag,QT=[],Z2=function(){return QT.splice(0).forEach(function(t){return t()})},J2=function(t){if(!Ag){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Z2()}).observe(n,r),Ag=function(){n.textContent="".concat(e?e--:e++)}}QT.push(t),Ag()},Q2=function(t){J2(function(){requestAnimationFrame(t)})},Lh=0,eF=function(){return!!Lh},tF=250,nF={attributes:!0,characterData:!0,childList:!0,subtree:!0},dw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hw=function(t){return t===void 0&&(t=0),Date.now()+t},Ig=!1,rF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=tF),!Ig){Ig=!0;var r=hw(e);Q2(function(){var i=!1;try{i=K2()}finally{if(Ig=!1,e=r-hw(),!eF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,nF)};document.body?n():gd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dw.forEach(function(n){return gd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dw.forEach(function(n){return gd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Nm=new rF,pw=function(t){!Lh&&t>0&&Nm.start(),Lh+=t,!Lh&&Nm.stop()},iF=function(t){return!Gv(t)&&!z2(t)&&getComputedStyle(t).display==="inline"},oF=function(){function t(e,n){this.target=e,this.observedBox=n||_d.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ZT(this.target,this.observedBox,!0);return iF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),sF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),bh=new WeakMap,gw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},wh=function(){function t(){}return t.connect=function(e,n){var r=new sF(e,n);bh.set(e,r)},t.observe=function(e,n,r){var i=bh.get(e),o=i.observationTargets.length===0;gw(i.observationTargets,n)<0&&(o&&Sc.push(i),i.observationTargets.push(new oF(n,r&&r.box)),pw(1),Nm.schedule())},t.unobserve=function(e,n){var r=bh.get(e),i=gw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Sc.splice(Sc.indexOf(r),1),r.observationTargets.splice(i,1),pw(-1))},t.disconnect=function(e){var n=this,r=bh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),aF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.unobserve(this,e)},t.prototype.disconnect=function(){wh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const eC=X.createContext({});function lF(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const qv=X.createContext(null),tC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function uF(t=!0){const e=X.useContext(qv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const Xv=typeof window<"u",cF=Xv?X.useLayoutEffect:X.useEffect,_o=t=>t;let Lf=_o,yu=_o;process.env.NODE_ENV!=="production"&&(Lf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},yu=(t,e)=>{if(!t)throw new Error(e)});function Kv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Pf=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ja=t=>t*1e3,Cl=t=>t/1e3,fF={useManualTiming:!1};function dF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,y=!1,g=!1)=>{const E=g&&r?e:n;return y&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const xh=["read","resolveKeyframes","update","preRender","render","postRender"],hF=40;function nC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xh.reduce((R,U)=>(R[U]=dF(o),R),{}),{read:c,resolveKeyframes:f,update:p,preRender:y,render:g,postRender:T}=a,E=()=>{const R=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,hF),1),i.timestamp=R,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),y.process(i),g.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:xh.reduce((R,U)=>{const H=a[U];return R[U]=(ne,q=!1,ie=!1)=>(n||A(),H.schedule(ne,q,ie)),R},{}),cancel:R=>{for(let U=0;U<xh.length;U++)a[xh[U]].cancel(R)},state:i,steps:a}}const{schedule:Fn,cancel:bu,state:Ei,steps:Mg}=nC(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),rC=X.createContext({strict:!1}),mw={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"]},Of={};for(const t in mw)Of[t]={isEnabled:e=>mw[t].some(n=>!!e[n])};function pF(t){for(const e in t)Of[e]={...Of[e],...t[e]}}const gF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||gF.has(t)}let iC=t=>!tp(t);function mF(t){t&&(iC=e=>e.startsWith("on")?!tp(e):t(e))}try{mF(require("@emotion/is-prop-valid").default)}catch{}function vF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(iC(i)||n===!0&&tp(i)||!e&&!tp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const vw=new Set;function Dp(t,e,n){t||vw.has(e)||(console.warn(e),vw.add(e))}function yF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Dp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Pp=X.createContext({});function Rd(t){return typeof t=="string"||Array.isArray(t)}function Op(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Zv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jv=["initial",...Zv];function _p(t){return Op(t.animate)||Jv.some(e=>Rd(t[e]))}function oC(t){return!!(_p(t)||t.variants)}function bF(t,e){if(_p(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Rd(n)?n:void 0,animate:Rd(r)?r:void 0}}return t.inherit!==!1?e:{}}function wF(t){const{initial:e,animate:n}=bF(t,X.useContext(Pp));return X.useMemo(()=>({initial:e,animate:n}),[yw(e),yw(n)])}function yw(t){return Array.isArray(t)?t.join(" "):t}const xF=Symbol.for("motionComponentSymbol");function gf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function SF(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):gf(n)&&(n.current=r))},[e])}const Qv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),TF="framerAppearId",sC="data-"+Qv(TF),{schedule:ey}=nC(queueMicrotask,!1),aC=X.createContext({});function CF(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Pp),f=X.useContext(rC),p=X.useContext(qv),y=X.useContext(tC).reducedMotion,g=X.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const T=g.current,E=X.useContext(aC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&EF(g.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[sC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return cF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),ey.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,I)}),j.current=!1))}),T}function EF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:lC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&gf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function lC(t){if(t)return t.options.allowProjection!==!1?t.projection:lC(t.parent)}function kF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&pF(t);function c(p,y){let g;const T={...X.useContext(tC),...p,layoutId:DF(p)},{isStatic:E}=T,A=wF(p),I=r(p,E);if(!E&&Xv){PF(T,t);const j=OF(T);g=j.MeasureLayout,A.visualElement=CF(i,I,T,e,j.ProjectionNode)}return Pe.jsxs(Pp.Provider,{value:A,children:[g&&A.visualElement?Pe.jsx(g,{visualElement:A.visualElement,...T}):null,n(i,p,SF(I,A.visualElement,y),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const f=X.forwardRef(c);return f[xF]=i,f}function DF({layoutId:t}){const e=X.useContext(eC).id;return e&&t!==void 0?e+"-"+t:t}function PF(t,e){const n=X.useContext(rC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Lf(!1,r):yu(!1,r)}}function OF(t){const{drag:e,layout:n}=Of;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const _F=["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 ty(t){return typeof t!="string"||t.includes("-")?!1:!!(_F.indexOf(t)>-1||/[A-Z]/u.test(t))}function bw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ny(t,e,n,r){if(typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const jm=t=>Array.isArray(t),RF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),AF=t=>jm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Fh(t){const e=ji(t)?t.get():t;return RF(e)?e.toValue():e}function IF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:MF(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const uC=t=>(e,n)=>{const r=X.useContext(Pp),i=X.useContext(qv),o=()=>IF(t,e,r,i);return n?o():lF(o)};function MF(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Fh(o[T]);let{initial:a,animate:c}=t;const f=_p(t),p=oC(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;if(g&&typeof g!="boolean"&&!Op(g)){const T=Array.isArray(g)?g:[g];for(let E=0;E<T.length;E++){const A=ny(t,T[E]);if(A){const{transitionEnd:I,transition:j,...R}=A;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in I)i[U]=I[U]}}}return i}const Ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Ff),cC=t=>e=>typeof e=="string"&&e.startsWith(t),fC=cC("--"),LF=cC("var(--"),ry=t=>LF(t)?FF.test(t.split("/*")[0].trim()):!1,FF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Pl=(t,e,n)=>n>e?e:n<t?t:n,Nf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ad={...Nf,transform:t=>Pl(0,1,t)},Sh={...Nf,default:1},Wd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Wd("deg"),Ba=Wd("%"),Ot=Wd("px"),NF=Wd("vh"),jF=Wd("vw"),ww={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},BF={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},$F={rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:Sh,scaleX:Sh,scaleY:Sh,scaleZ:Sh,skew:au,skewX:au,skewY:au,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Ad,originX:ww,originY:ww,originZ:Ot},xw={...Nf,transform:Math.round},iy={...BF,...$F,zIndex:xw,size:Ot,fillOpacity:Ad,strokeOpacity:Ad,numOctaves:xw},VF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},HF=Ff.length;function UF(t,e,n){let r="",i=!0;for(let o=0;o<HF;o++){const a=Ff[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=dC(c,iy[a]);if(!f){i=!1;const y=VF[a]||a;r+=`${y}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function oy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Rc.has(f)){a=!0;continue}else if(fC(f)){i[f]=p;continue}else{const y=dC(p,iy[f]);f.startsWith("origin")?(c=!0,o[f]=y):r[f]=y}}if(e.transform||(a||n?r.transform=UF(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:y=0}=o;r.transformOrigin=`${f} ${p} ${y}`}}const WF={offset:"stroke-dashoffset",array:"stroke-dasharray"},zF={offset:"strokeDashoffset",array:"strokeDasharray"};function YF(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?WF:zF;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Sw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function GF(t,e,n){const r=Sw(e,t.x,t.width),i=Sw(n,t.y,t.height);return`${r} ${i}`}function sy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g){if(oy(t,p,g),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=GF(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&YF(T,a,c,f,!1)}const ay=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),hC=()=>({...ay(),attrs:{}}),ly=t=>typeof t=="string"&&t.toLowerCase()==="svg";function pC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const gC=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 mC(t,e,n,r){pC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(gC.has(i)?i:Qv(i),e.attrs[i])}const np={};function qF(t){Object.assign(np,t)}function vC(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!np[t]||t==="opacity")}function uy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||vC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function yC(t,e,n){const r=uy(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=Ff.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function XF(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Tw=["x","y","width","height","cx","cy","r"],KF={useVisualState:uC({scrapeMotionValuesFromProps:yC,createRenderState:hC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(Rc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Tw.length;c++){const f=Tw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{XF(n,r),Fn.render(()=>{sy(r,i,ly(n.tagName),t.transformTemplate),mC(n,r)})})}})},ZF={useVisualState:uC({scrapeMotionValuesFromProps:uy,createRenderState:ay})};function bC(t,e,n){for(const r in e)!ji(e[r])&&!vC(r,n)&&(t[r]=e[r])}function JF({transformTemplate:t},e){return X.useMemo(()=>{const n=ay();return oy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function QF(t,e){const n=t.style||{},r={};return bC(r,n,t),Object.assign(r,JF(t,e)),r}function eN(t,e){const n={},r=QF(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function tN(t,e,n,r){const i=X.useMemo(()=>{const o=hC();return sy(o,e,ly(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};bC(o,t.style,t),i.style={...o,...i.style}}return i}function nN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(ty(n)?tN:eN)(r,o,a,n),p=vF(r,typeof n=="string",t),y=n!==X.Fragment?{...p,...f,ref:i}:{},{children:g}=r,T=X.useMemo(()=>ji(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function rN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ty(r)?KF:ZF,preloadedFeatures:t,useRender:nN(i),createVisualElement:e,Component:r};return kF(a)}}function wC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Rp(t,e,n){const r=t.getProps();return ny(r,e,n!==void 0?n:r.custom,t)}const iN=Kv(()=>window.ScrollTimeline!==void 0);class oN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(iN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class sN extends oN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function cy(t,e){return t?t[e]||t.default||t:void 0}const Bm=2e4;function xC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Bm;)e+=n,r=t.next(e);return e>=Bm?1/0:e}function fy(t){return typeof t=="function"}function Cw(t,e){t.timeline=e,t.onfinish=null}const dy=t=>Array.isArray(t)&&typeof t[0]=="number",aN={linearEasing:void 0};function lN(t,e){const n=Kv(t);return()=>{var r;return(r=aN[e])!==null&&r!==void 0?r:n()}}const rp=lN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),SC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Pf(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function TC(t){return!!(typeof t=="function"&&rp()||!t||typeof t=="string"&&(t in $m||rp())||dy(t)||Array.isArray(t)&&t.every(TC))}const ld=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,$m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ld([0,.65,.55,1]),circOut:ld([.55,0,1,.45]),backIn:ld([.31,.01,.66,-.59]),backOut:ld([.33,1.53,.69,.99])};function CC(t,e){if(t)return typeof t=="function"&&rp()?SC(t,e):dy(t)?ld(t):Array.isArray(t)?t.map(n=>CC(n,e)||$m.easeOut):$m[t]}const sa={x:!1,y:!1};function EC(){return sa.x||sa.y}function uN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function kC(t,e){const n=uN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ew(t){return e=>{e.pointerType==="touch"||EC()||t(e)}}function cN(t,e,n={}){const[r,i,o]=kC(t,n),a=Ew(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const y=Ew(g=>{p(g),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const DC=(t,e)=>e?t===e?!0:DC(t,e.parentElement):!1,hy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dN(t){return fN.has(t.tagName)||t.tabIndex!==-1}const ud=new WeakSet;function kw(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const hN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kw(()=>{if(ud.has(n))return;Lg(n,"down");const i=kw(()=>{Lg(n,"up")}),o=()=>Lg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Dw(t){return hy(t)&&!EC()}function pN(t,e,n={}){const[r,i,o]=kC(t,n),a=c=>{const f=c.currentTarget;if(!Dw(c)||ud.has(f))return;ud.add(f);const p=e(c),y=(E,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",T),!(!Dw(E)||!ud.has(f))&&(ud.delete(f),typeof p=="function"&&p(E,{success:A}))},g=E=>{y(E,n.useGlobalTarget||DC(f,E.target))},T=E=>{y(E,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!dN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>hN(p,i),i)}),o}function gN(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const PC=new Set(["width","height","top","left","right","bottom",...Ff]);let Nh;function mN(){Nh=void 0}const $a={now:()=>(Nh===void 0&&$a.set(Ei.isProcessing||fF.useManualTiming?Ei.timestamp:performance.now()),Nh),set:t=>{Nh=t,queueMicrotask(mN)}};function py(t,e){t.indexOf(e)===-1&&t.push(e)}function gy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let my=class{constructor(){this.subscriptions=[]}add(e){return py(this.subscriptions,e),()=>gy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function OC(t,e){return e?t*(1e3/e):0}const Pw=30,vN=t=>!isNaN(parseFloat(t));let yN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=$a.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$a.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=vN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Dp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new my);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$a.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Pw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pw);return OC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Id(t,e){return new yN(t,e)}function bN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Id(n))}function wN(t,e){const n=Rp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=AF(o[a]);bN(t,a,c)}}function xN(t){return!!(ji(t)&&t.add)}function Vm(t,e){const n=t.getValue("willChange");if(xN(n))return n.add(e)}function _C(t){return t.props[sC]}const RC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,SN=1e-7,TN=12;function CN(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=RC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>SN&&++c<TN);return a}function zd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>CN(o,0,1,t,n);return o=>o===0||o===1?o:RC(i(o),e,r)}const AC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,IC=t=>e=>1-t(1-e),MC=zd(.33,1.53,.69,.99),vy=IC(MC),LC=AC(vy),FC=t=>(t*=2)<1?.5*vy(t):.5*(2-Math.pow(2,-10*(t-1))),yy=t=>1-Math.sin(Math.acos(t)),NC=IC(yy),jC=AC(yy),BC=t=>/^0[^.\s]+$/u.test(t);function EN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||BC(t):!0}const md=t=>Math.round(t*1e5)/1e5,by=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kN(t){return t==null}const DN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wy=(t,e)=>n=>!!(typeof n=="string"&&DN.test(n)&&n.startsWith(t)||e&&!kN(n)&&Object.prototype.hasOwnProperty.call(n,e)),$C=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(by);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},PN=t=>Pl(0,255,t),Fg={...Nf,transform:t=>Math.round(PN(t))},yc={test:wy("rgb","red"),parse:$C("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Fg.transform(t)+", "+Fg.transform(e)+", "+Fg.transform(n)+", "+md(Ad.transform(r))+")"};function ON(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hm={test:wy("#"),parse:ON,transform:yc.transform},mf={test:wy("hsl","hue"),parse:$C("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(md(e))+", "+Ba.transform(md(n))+", "+md(Ad.transform(r))+")"},Ni={test:t=>yc.test(t)||Hm.test(t)||mf.test(t),parse:t=>yc.test(t)?yc.parse(t):mf.test(t)?mf.parse(t):Hm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yc.transform(t):mf.transform(t)},_N=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function RN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(by))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(_N))===null||n===void 0?void 0:n.length)||0)>0}const VC="number",HC="color",AN="var",IN="var(",Ow="${}",MN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Md(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(MN,f=>(Ni.test(f)?(r.color.push(o),i.push(HC),n.push(Ni.parse(f))):f.startsWith(IN)?(r.var.push(o),i.push(AN),n.push(f)):(r.number.push(o),i.push(VC),n.push(parseFloat(f))),++o,Ow)).split(Ow);return{values:n,split:c,indexes:r,types:i}}function UC(t){return Md(t).values}function WC(t){const{split:e,types:n}=Md(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===VC?o+=md(i[a]):c===HC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const LN=t=>typeof t=="number"?0:t;function FN(t){const e=UC(t);return WC(t)(e.map(LN))}const wu={test:RN,parse:UC,createTransformer:WC,getAnimatableNone:FN},NN=new Set(["brightness","contrast","saturate","opacity"]);function jN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(by)||[];if(!r)return t;const i=n.replace(r,"");let o=NN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const BN=/\b([a-z-]*)\(.*?\)/gu,Um={...wu,getAnimatableNone:t=>{const e=t.match(BN);return e?e.map(jN).join(" "):t}},$N={...iy,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Um,WebkitFilter:Um},xy=t=>$N[t];function zC(t,e){let n=xy(t);return n!==Um&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const VN=new Set(["auto","none","0"]);function HN(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!VN.has(o)&&Md(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=zC(n,i)}const _w=t=>t===Nf||t===Ot,Rw=(t,e)=>parseFloat(t.split(", ")[e]),Aw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Rw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Rw(o[1],t):0}},UN=new Set(["x","y","z"]),WN=Ff.filter(t=>!UN.has(t));function zN(t){const e=[];return WN.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const _f={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Aw(4,13),y:Aw(5,14)};_f.translateX=_f.x;_f.translateY=_f.y;const Cc=new Set;let Wm=!1,zm=!1;function YC(){if(zm){const t=Array.from(Cc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=zN(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zm=!1,Wm=!1,Cc.forEach(t=>t.complete()),Cc.clear()}function GC(){Cc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(zm=!0)})}function YN(){GC(),YC()}class Sy{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cc.add(this),Wm||(Wm=!0,Fn.read(GC),Fn.resolveKeyframes(YC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const f=r.readValue(n,c);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const qC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),GN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qN(t){const e=GN.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const XN=4;function XC(t,e,n=1){yu(n<=XN,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=qN(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return qC(a)?parseFloat(a):a}return ry(i)?XC(i,e,n+1):i}const KC=t=>e=>e.test(t),KN={test:t=>t==="auto",parse:t=>t},ZC=[Nf,Ot,Ba,au,jF,NF,KN],Iw=t=>ZC.find(KC(t));class JC extends Sy{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),ry(p))){const y=XC(p,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!PC.has(r)||e.length!==2)return;const[i,o]=e,a=Iw(i),c=Iw(o);if(a!==c)if(_w(a)&&_w(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)EN(e[i])&&r.push(i);r.length&&HN(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_f[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=_f[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Mw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wu.test(t)||t==="0")&&!t.startsWith("url("));function ZN(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function JN(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Mw(i,e),c=Mw(o,e);return Lf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:ZN(t)||(n==="spring"||fy(n))&&r}const QN=t=>t!==null;function Ap(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(QN),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ej=40;class QC{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$a.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ej?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&YN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$a.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!JN(e,r,i,o))if(a)this.options.duration=0;else{f&&f(Ap(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function Ng(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function tj({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=Ng(f,c,t+1/3),o=Ng(f,c,t),a=Ng(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function ip(t,e){return n=>n>0?e:t}const jg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},nj=[Hm,yc,mf],rj=t=>nj.find(e=>e.test(t));function Lw(t){const e=rj(t);if(Lf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===mf&&(n=tj(n)),n}const Fw=(t,e)=>{const n=Lw(t),r=Lw(e);if(!n||!r)return ip(t,e);const i={...n};return o=>(i.red=jg(n.red,r.red,o),i.green=jg(n.green,r.green,o),i.blue=jg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),yc.transform(i))},ij=(t,e)=>n=>e(t(n)),Yd=(...t)=>t.reduce(ij),Ym=new Set(["none","hidden"]);function oj(t,e){return Ym.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function sj(t,e){return n=>Kn(t,e,n)}function Ty(t){return typeof t=="number"?sj:typeof t=="string"?ry(t)?ip:Ni.test(t)?Fw:uj:Array.isArray(t)?eE:typeof t=="object"?Ni.test(t)?Fw:aj:ip}function eE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Ty(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function aj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Ty(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function lj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const uj=(t,e)=>{const n=wu.createTransformer(e),r=Md(t),i=Md(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ym.has(t)&&!i.values.length||Ym.has(e)&&!r.values.length?oj(t,e):Yd(eE(lj(r,i),i.values),n):(Lf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ip(t,e))};function tE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Ty(t)(t,e)}const cj=5;function nE(t,e,n){const r=Math.max(e-cj,0);return OC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Nw=.001;function fj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Lf(t<=ja(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Pl(Xn.minDamping,Xn.maxDamping,a),t=Pl(Xn.minDuration,Xn.maxDuration,Cl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=Gm(p,a),A=Math.exp(-g);return Nw-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=Gm(Math.pow(p,2),a);return(-i(p)+Nw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=hj(i,o,c);if(t=ja(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const dj=12;function hj(t,e,n){let r=n;for(let i=1;i<dj;i++)r=r-t(r)/e(r);return r}function Gm(t,e){return t*Math.sqrt(1-e*e)}const pj=["duration","bounce"],gj=["stiffness","damping","mass"];function jw(t,e){return e.some(n=>t[n]!==void 0)}function mj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!jw(t,gj)&&jw(t,pj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=fj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function rE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:p,mass:y,duration:g,velocity:T,isResolvedFromDuration:E}=mj({...n,velocity:-Cl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(f*y)),j=a-o,R=Cl(Math.sqrt(f/y)),U=Math.abs(j)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let H;if(I<1){const q=Gm(R,I);H=ie=>{const x=Math.exp(-I*R*ie);return a-x*((A+I*R*j)/q*Math.sin(q*ie)+j*Math.cos(q*ie))}}else if(I===1)H=q=>a-Math.exp(-R*q)*(j+(A+R*j)*q);else{const q=R*Math.sqrt(I*I-1);H=ie=>{const x=Math.exp(-I*R*ie),le=Math.min(q*ie,300);return a-x*((A+I*R*j)*Math.sinh(le)+q*j*Math.cosh(le))/q}}const ne={calculatedDuration:E&&g||null,next:q=>{const ie=H(q);if(E)c.done=q>=g;else{let x=0;I<1&&(x=q===0?ja(A):nE(H,q,ie));const le=Math.abs(x)<=r,ae=Math.abs(a-ie)<=i;c.done=le&&ae}return c.value=c.done?a:ie,c},toString:()=>{const q=Math.min(xC(ne),Bm),ie=SC(x=>ne.next(q*x).value,q,30);return q+"ms "+ie}};return ne}function Bw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const U=le=>-I*Math.exp(-le/r),H=le=>R+U(le),ne=le=>{const ae=U(le),$e=H(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:$e};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=rE({keyframes:[T.value,A(T.value)],velocity:nE(H,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>=q?ie.next(le-q):(!ae&&ne(le),T)}}}const vj=zd(.42,0,1,1),yj=zd(0,0,.58,1),iE=zd(.42,0,.58,1),bj=t=>Array.isArray(t)&&typeof t[0]!="number",$w={linear:_o,easeIn:vj,easeInOut:iE,easeOut:yj,circIn:yy,circInOut:jC,circOut:NC,backIn:vy,backInOut:LC,backOut:MC,anticipate:FC},Vw=t=>{if(dy(t)){yu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return zd(e,n,r,i)}else if(typeof t=="string")return yu($w[t]!==void 0,`Invalid easing type '${t}'`),$w[t];return t};function wj(t,e,n){const r=[],i=n||tE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||_o:e;c=Yd(f,c)}r.push(c)}return r}function xj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=wj(e,r,i),f=c.length,p=y=>{if(a&&y<t[0])return e[0];let g=0;if(f>1)for(;g<t.length-2&&!(y<t[g+1]);g++);const T=Pf(t[g],t[g+1],y);return c[g](T)};return n?y=>p(Pl(t[0],t[o-1],y)):p}function Sj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Pf(0,e,r);t.push(Kn(n,1,i))}}function Tj(t){const e=[0];return Sj(e,t.length-1),e}function Cj(t,e){return t.map(n=>n*e)}function Ej(t,e){return t.map(()=>e||iE).splice(0,t.length-1)}function op({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=bj(r)?r.map(Vw):Vw(r),o={done:!1,value:e[0]},a=Cj(n&&n.length===e.length?n:Tj(e),t),c=xj(a,e,{ease:Array.isArray(i)?i:Ej(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const kj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>bu(e),now:()=>Ei.isProcessing?Ei.timestamp:$a.now()}},Dj={decay:Bw,inertia:Bw,tween:op,keyframes:op,spring:rE},Pj=t=>t/100;class Cy extends QC{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Sy,c=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=fy(n)?n:Dj[n]||op;let f,p;c!==op&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=Yd(Pj,tE(e[0],e[1])),e=[0,100]);const y=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=xC(y));const{calculatedDuration:g}=y,T=g+i,E=T*(r+1)-i;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:le}=this.options;return{done:!0,value:le[le.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:y,resolvedDuration:g}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?R<0:R>y;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let H=this.currentTime,ne=o;if(E){const le=Math.min(this.currentTime,y)/g;let ae=Math.floor(le),$e=le%1;!$e&&le>=1&&($e=1),$e===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?($e=1-$e,I&&($e-=I/g)):A==="mirror"&&(ne=a)),H=Pl(0,1,$e)*g}const q=U?{done:!1,value:f[0]}:ne.next(H);c&&(q.value=c(q.value));let{done:ie}=q;!U&&p!==null&&(ie=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return x&&i!==void 0&&(q.value=Ap(f,this.options,i)),j&&j(q.value),x&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Cl(e.calculatedDuration):0}get time(){return Cl(this.currentTime)}set time(e){e=ja(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Cl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=kj,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Oj=new Set(["opacity","clipPath","filter","transform"]);function _j(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=CC(c,i);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Rj=Kv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sp=10,Aj=2e4;function Ij(t){return fy(t.type)||t.type==="spring"||!TC(t.ease)}function Mj(t,e){const n=new Cy({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<Aj;)r=n.sample(o),i.push(r.value),o+=sp;return{times:void 0,keyframes:i,duration:o-sp,ease:"linear"}}const oE={anticipate:FC,backInOut:LC,circInOut:jC};function Lj(t){return t in oE}class Hw extends QC{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new JC(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&rp()&&Lj(o)&&(o=oE[o]),Ij(this.options)){const{onComplete:g,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=Mj(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const y=_j(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(Cw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:g}=this.options;c.set(Ap(e,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Cl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Cl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ja(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _o;const{animation:r}=n;Cw(r,e)}return _o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:g,element:T,...E}=this.options,A=new Cy({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=ja(this.time);p.setWithVelocity(A.sample(I-sp).value,A.sample(I).value,sp)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return Rj()&&r&&Oj.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const Fj={type:"spring",stiffness:500,damping:25,restSpeed:10},Nj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),jj={type:"keyframes",duration:.8},Bj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$j=(t,{keyframes:e})=>e.length>2?jj:Rc.has(t)?t.startsWith("scale")?Nj(e[1]):Fj:Bj;function Vj({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}const Ey=(t,e,n,r={},i,o)=>a=>{const c=cy(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ja(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};Vj(c)||(y={...y,...$j(t,y)}),y.duration&&(y.duration=ja(y.duration)),y.repeatDelay&&(y.repeatDelay=ja(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let g=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(g=!0)),g&&!o&&e.get()!==void 0){const T=Ap(y.keyframes,c);if(T!==void 0)return Fn.update(()=>{y.onUpdate(T),y.onComplete()}),new sN([])}return!o&&Hw.supports(y)?new Hw(y):new Cy(y)};function Hj({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function sE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in f){const T=t.getValue(g,(o=t.latestValues[g])!==null&&o!==void 0?o:null),E=f[g];if(E===void 0||y&&Hj(y,g))continue;const A={delay:n,...cy(a||{},g)};let I=!1;if(window.MotionHandoffAnimation){const R=_C(t);if(R){const U=window.MotionHandoffAnimation(R,g,Fn);U!==null&&(A.startTime=U,I=!0)}}Vm(t,g),T.start(Ey(g,T,E,t.shouldReduceMotion&&PC.has(g)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&wN(t,c)})}),p}function qm(t,e,n={}){var r;const i=Rp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(sE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:g,staggerDirection:T}=o;return Uj(t,e,y+p,g,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,y]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>y())}else return Promise.all([a(),c(n.delay)])}function Uj(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(Wj).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(qm(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function Wj(t,e){return t.sortNodePosition(e)}function zj(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=qm(t,e,n);else{const i=typeof e=="function"?Rp(t,e,n.custom):e;r=Promise.all(sE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const Yj=Jv.length;function aE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?aE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Yj;n++){const r=Jv[n],i=t.props[r];(Rd(i)||i===!1)&&(e[r]=i)}return e}const Gj=[...Zv].reverse(),qj=Zv.length;function Xj(t){return e=>Promise.all(e.map(({animation:n,options:r})=>zj(t,n,r)))}function Kj(t){let e=Xj(t),n=Uw(),r=!0;const i=f=>(p,y)=>{var g;const T=Rp(t,y,f==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,y=aE(t.parent)||{},g=[],T=new Set;let E={},A=1/0;for(let j=0;j<qj;j++){const R=Gj[j],U=n[R],H=p[R]!==void 0?p[R]:y[R],ne=Rd(H),q=R===f?U.isActive:null;q===!1&&(A=j);let ie=H===y[R]&&H!==p[R]&≠if(ie&&r&&t.manuallyAnimateOnMount&&(ie=!1),U.protectedKeys={...E},!U.isActive&&q===null||!H&&!U.prevProp||Op(H)||typeof H=="boolean")continue;const x=Zj(U.prevProp,H);let le=x||R===f&&U.isActive&&!ie&&ne||j>A&&ne,ae=!1;const $e=Array.isArray(H)?H:[H];let tt=$e.reduce(i(R),{});q===!1&&(tt={});const{prevResolvedValues:Qe={}}=U,Ye={...Qe,...tt},Oe=ke=>{le=!0,T.has(ke)&&(ae=!0,T.delete(ke)),U.needsAnimating[ke]=!0;const Le=t.getValue(ke);Le&&(Le.liveStyle=!1)};for(const ke in Ye){const Le=tt[ke],et=Qe[ke];if(E.hasOwnProperty(ke))continue;let me=!1;jm(Le)&&jm(et)?me=!wC(Le,et):me=Le!==et,me?Le!=null?Oe(ke):T.add(ke):Le!==void 0&&T.has(ke)?Oe(ke):U.protectedKeys[ke]=!0}U.prevProp=H,U.prevResolvedValues=tt,U.isActive&&(E={...E,...tt}),r&&t.blockInitialAnimation&&(le=!1),le&&(!(ie&&x)||ae)&&g.push(...$e.map(ke=>({animation:ke,options:{type:R}})))}if(T.size){const j={};T.forEach(R=>{const U=t.getBaseTarget(R),H=t.getValue(R);H&&(H.liveStyle=!0),j[R]=U??null}),g.push({animation:j})}let I=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(g):Promise.resolve()}function c(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(f,p)}),n[f].isActive=p;const g=a(f);for(const T in n)n[T].protectedKeys={};return g}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uw(),r=!0}}}function Zj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!wC(e,t):!1}function ac(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uw(){return{animate:ac(!0),whileInView:ac(),whileHover:ac(),whileTap:ac(),whileDrag:ac(),whileFocus:ac(),exit:ac()}}let ku=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Jj=class extends ku{constructor(e){super(e),e.animationState||(e.animationState=Kj(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Op(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},Qj=0,eB=class extends ku{constructor(){super(...arguments),this.id=Qj++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const tB={animation:{Feature:Jj},exit:{Feature:eB}};function Ld(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Gd(t){return{point:{x:t.pageX,y:t.pageY}}}const nB=t=>e=>hy(e)&&t(e,Gd(e));function vd(t,e,n,r){return Ld(t,e,nB(n),r)}const Ww=(t,e)=>Math.abs(t-e);function rB(t,e){const n=Ww(t.x,e.x),r=Ww(t.y,e.y);return Math.sqrt(n**2+r**2)}let lE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=$g(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=rB(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ei;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Bg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=$g(g.type==="pointercancel"?this.lastMoveEventInfo:Bg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!hy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Gd(e),c=Bg(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ei;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,$g(c,this.history)),this.removeListeners=Yd(vd(this.contextWindow,"pointermove",this.handlePointerMove),vd(this.contextWindow,"pointerup",this.handlePointerUp),vd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bu(this.updatePoint)}};function Bg(t,e){return e?{point:e(t.point)}:t}function zw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $g({point:t},e){return{point:t,delta:zw(t,uE(e)),offset:zw(t,iB(e)),velocity:oB(e,.1)}}function iB(t){return t[0]}function uE(t){return t[t.length-1]}function oB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=uE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ja(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const cE=1e-4,sB=1-cE,aB=1+cE,fE=.01,lB=0-fE,uB=0+fE;function Qo(t){return t.max-t.min}function cB(t,e,n){return Math.abs(t-e)<=n}function Yw(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Qo(n)/Qo(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=sB&&t.scale<=aB||isNaN(t.scale))&&(t.scale=1),(t.translate>=lB&&t.translate<=uB||isNaN(t.translate))&&(t.translate=0)}function yd(t,e,n,r){Yw(t.x,e.x,n.x,r?r.originX:void 0),Yw(t.y,e.y,n.y,r?r.originY:void 0)}function Gw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function fB(t,e,n){Gw(t.x,e.x,n.x),Gw(t.y,e.y,n.y)}function qw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function bd(t,e,n){qw(t.x,e.x,n.x),qw(t.y,e.y,n.y)}function dB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function Xw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function hB(t,{top:e,left:n,bottom:r,right:i}){return{x:Xw(t.x,n,i),y:Xw(t.y,e,r)}}function Kw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function pB(t,e){return{x:Kw(t.x,e.x),y:Kw(t.y,e.y)}}function gB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=Pf(e.min,e.max-r,t.min):r>i&&(n=Pf(t.min,t.max-i,e.min)),Pl(0,1,n)}function mB(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Xm=.35;function vB(t=Xm){return t===!1?t=0:t===!0&&(t=Xm),{x:Zw(t,"left","right"),y:Zw(t,"top","bottom")}}function Zw(t,e,n){return{min:Jw(t,e),max:Jw(t,n)}}function Jw(t,e){return typeof t=="number"?t:t[e]||0}const Qw=()=>({translate:0,scale:1,origin:0,originPoint:0}),vf=()=>({x:Qw(),y:Qw()}),ex=()=>({min:0,max:0}),gr=()=>({x:ex(),y:ex()});function Es(t){return[t("x"),t("y")]}function dE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function yB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bB(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vg(t){return t===void 0||t===1}function Km({scale:t,scaleX:e,scaleY:n}){return!Vg(t)||!Vg(e)||!Vg(n)}function fc(t){return Km(t)||hE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hE(t){return tx(t.x)||tx(t.y)}function tx(t){return t&&t!=="0%"}function ap(t,e,n){const r=t-n,i=e*r;return n+i}function nx(t,e,n,r,i){return i!==void 0&&(t=ap(t,i,r)),ap(t,n,r)+e}function Zm(t,e=0,n=1,r,i){t.min=nx(t.min,e,n,r,i),t.max=nx(t.max,e,n,r,i)}function pE(t,{x:e,y:n}){Zm(t.x,e.translate,e.scale,e.originPoint),Zm(t.y,n.translate,n.scale,n.originPoint)}const rx=.999999999999,ix=1.0000000000001;function wB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,pE(t,a)),r&&fc(o.latestValues)&&bf(t,o.latestValues))}e.x<ix&&e.x>rx&&(e.x=1),e.y<ix&&e.y>rx&&(e.y=1)}function yf(t,e){t.min=t.min+e,t.max=t.max+e}function ox(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Zm(t,e,n,o,r)}function bf(t,e){ox(t.x,e.x,e.scaleX,e.scale,e.originX),ox(t.y,e.y,e.scaleY,e.scale,e.originY)}function gE(t,e){return dE(bB(t.getBoundingClientRect(),e))}function xB(t,e,n){const r=gE(t,n),{scroll:i}=e;return i&&(yf(r.x,i.offset.x),yf(r.y,i.offset.y)),r}const mE=({current:t})=>t?t.ownerDocument.defaultView:null,SB=new WeakMap;let TB=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gd(y).point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=gN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Es(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Ba.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[j];H&&(R=Qo(H)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Fn.postRender(()=>A(y,g)),Vm(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=CB(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>Es(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new lE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:mE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Th(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=dB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&gf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=hB(i.layoutBox,n):this.constraints=!1,this.elastic=vB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Es(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=mB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gf(e))return!1;const r=e.current;yu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=xB(r,i.root,this.visualElement.getTransformPagePoint());let a=pB(i.layout.layoutBox,o);if(n){const c=n(yB(a));this.hasMutatedConstraints=!!c,c&&(a=dE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Es(y=>{if(!Th(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Vm(this.visualElement,e),r.start(Ey(e,r,0,n,this.visualElement,!1))}stopAnimation(){Es(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Es(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Es(n=>{const{drag:r}=this.getProps();if(!Th(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Es(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();i[a]=gB({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Es(a=>{if(!Th(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;SB.set(this.visualElement,this);const e=this.visualElement.current,n=vd(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();gf(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Ld(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Es(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Xm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Th(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function CB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let EB=class extends ku{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new TB(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_o}unmount(){this.removeGroupControls(),this.removeListeners()}};const sx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let kB=class extends ku{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new lE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:sx(e),onStart:sx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=vd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const jh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ax(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const rd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=ax(t,e.target.x),r=ax(t,e.target.y);return`${n}% ${r}%`}},DB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=wu.parse(t);if(i.length>5)return r;const o=wu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let PB=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;qF(OB),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()})),jh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ey.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function vE(t){const[e,n]=uF(),r=X.useContext(eC);return Pe.jsx(PB,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(aC),isPresent:e,safeToRemove:n})}const OB={borderRadius:{...rd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:DB};function _B(t,e,n){const r=ji(t)?t:Id(t);return r.start(Ey("",r,e,n)),r.animation}function RB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const AB=(t,e)=>t.depth-e.depth;let IB=class{constructor(){this.children=[],this.isDirty=!1}add(e){py(this.children,e),this.isDirty=!0}remove(e){gy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(AB),this.isDirty=!1,this.children.forEach(e)}};function MB(t,e){const n=$a.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(bu(r),t(o-e))};return Fn.read(r,!0),()=>bu(r)}const yE=["TopLeft","TopRight","BottomLeft","BottomRight"],LB=yE.length,lx=t=>typeof t=="string"?parseFloat(t):t,ux=t=>typeof t=="number"||Ot.test(t);function FB(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,NB(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,jB(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<LB;a++){const c=`border${yE[a]}Radius`;let f=cx(e,c),p=cx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||ux(f)===ux(p)?(t[c]=Math.max(Kn(lx(f),lx(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function cx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const NB=bE(0,.5,NC),jB=bE(.5,.95,_o);function bE(t,e,n){return r=>r<t?0:r>e?1:n(Pf(t,e,r))}function fx(t,e){t.min=e.min,t.max=e.max}function xs(t,e){fx(t.x,e.x),fx(t.y,e.y)}function dx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hx(t,e,n,r,i){return t-=e,t=ap(t,1/n,r),i!==void 0&&(t=ap(t,1/i,r)),t}function BB(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=hx(t.min,e,n,c,i),t.max=hx(t.max,e,n,c,i)}function px(t,e,[n,r,i],o,a){BB(t,e[n],e[r],e[i],e.scale,o,a)}const $B=["x","scaleX","originX"],VB=["y","scaleY","originY"];function gx(t,e,n,r){px(t.x,e,$B,n?n.x:void 0,r?r.x:void 0),px(t.y,e,VB,n?n.y:void 0,r?r.y:void 0)}function mx(t){return t.translate===0&&t.scale===1}function wE(t){return mx(t.x)&&mx(t.y)}function vx(t,e){return t.min===e.min&&t.max===e.max}function HB(t,e){return vx(t.x,e.x)&&vx(t.y,e.y)}function yx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function xE(t,e){return yx(t.x,e.x)&&yx(t.y,e.y)}function bx(t){return Qo(t.x)/Qo(t.y)}function wx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let UB=class{constructor(){this.members=[]}add(e){py(this.members,e),e.scheduleRender()}remove(e){if(gy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function WB(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:g,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const dc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cd=typeof window<"u"&&window.MotionDebug!==void 0,Hg=["","X","Y","Z"],zB={visibility:"hidden"},xx=1e3;let YB=0;function Ug(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function SE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=_C(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&SE(r)}function TE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=YB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cd&&(dc.totalNodes=dc.resolvedTargetDeltas=dc.recalculatedProjection=0),this.nodes.forEach(XB),this.nodes.forEach(e$),this.nodes.forEach(t$),this.nodes.forEach(KB),cd&&window.MotionDebug.record(dc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new IB)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new my),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=RB(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=MB(T,250),jh.hasAnimatedSinceResize&&(jh.hasAnimatedSinceResize=!1,this.nodes.forEach(Tx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||s$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!xE(this.targetLayout,A)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,H);const ne={...cy(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||Tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(n$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&SE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sx);return}this.isUpdating||this.nodes.forEach(JB),this.isUpdating=!1,this.nodes.forEach(QB),this.nodes.forEach(GB),this.nodes.forEach(qB),this.clearAllSnapshots();const c=$a.now();Ei.delta=Pl(0,1e3/60,c-Ei.timestamp),Ei.timestamp=c,Ei.isProcessing=!0,Mg.update.process(Ei),Mg.preRender.process(Ei),Mg.render.process(Ei),Ei.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ey.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZB),this.sharedNodes.forEach(r$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!wE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||fc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),a$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(l$))){const{scroll:y}=this.root;y&&(yf(f.x,y.offset.x),yf(f.y,y.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(xs(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:g,options:T}=y;y!==this.root&&g&&T.layoutScroll&&(g.wasRoot&&xs(f,a),yf(f.x,g.offset.x),yf(f.y,g.offset.y))}return f}applyTransform(a,c=!1){const f=gr();xs(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&bf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fc(y.latestValues)&&bf(f,y.latestValues)}return fc(this.latestValues)&&bf(f,this.latestValues),f}removeTransform(a){const c=gr();xs(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!fc(p.latestValues))continue;Km(p.latestValues)&&p.updateSnapshot();const y=gr(),g=p.measurePageBox();xs(y,g),gx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fc(this.latestValues)&&gx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ei.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ei.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),bd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xs(this.target,this.layout.layoutBox),pE(this.target,this.targetDelta)):xs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),bd(this.relativeTargetOrigin,this.target,E.target),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}cd&&dc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Km(this.parent.latestValues)||hE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ei.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;xs(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;wB(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dx(this.prevProjectionDelta.x,this.projectionDelta.x),dx(this.prevProjectionDelta.y,this.projectionDelta.y)),yd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!wx(this.projectionDelta.x,this.prevProjectionDelta.x)||!wx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),cd&&dc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vf(),this.projectionDelta=vf(),this.projectionDeltaWithTransform=vf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=vf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(o$));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const q=ne/1e3;Cx(g.x,a.x,q),Cx(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),i$(this.relativeTarget,this.relativeTargetOrigin,T,q),H&&HB(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=gr()),xs(H,this.relativeTarget)),I&&(this.animationValues=y,FB(y,p,this.latestValues,q,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{jh.hasAnimatedSinceResize=!0,this.currentAnimation=_B(0,xx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&CE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const g=Qo(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=Qo(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}xs(c,f),bf(c,y),yd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new UB),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Ug("z",a,p,this.animationValues);for(let y=0;y<Hg.length;y++)Ug(`rotate${Hg[y]}`,a,p,this.animationValues),Ug(`skew${Hg[y]}`,a,p,this.animationValues);a.render();for(const y in p)a.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return zB;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Fh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Fh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=WB(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in np){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=np[I],U=p.transform==="none"?T[I]:j(T[I],g);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=g===this?Fh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Sx),this.root.sharedNodes.clear()}}}function GB(t){t.updateLayout()}function qB(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Es(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(T);T.min=r[g].min,T.max=T.min+E}):CE(o,n.layoutBox,r)&&Es(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=vf();yd(c,r,n.layoutBox);const f=vf();a?yd(f,t.applyTransform(i,!0),n.measuredBox):yd(f,r,n.layoutBox);const p=!wE(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=gr();bd(A,n.layoutBox,T.layoutBox);const I=gr();bd(I,r,E.layoutBox),xE(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function XB(t){cd&&dc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function KB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ZB(t){t.clearSnapshot()}function Sx(t){t.clearMeasurements()}function JB(t){t.isLayoutDirty=!1}function QB(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function e$(t){t.resolveTargetDelta()}function t$(t){t.calcProjection()}function n$(t){t.resetSkewAndRotation()}function r$(t){t.removeLeadSnapshot()}function Cx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ex(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function i$(t,e,n,r){Ex(t.x,e.x,n.x,r),Ex(t.y,e.y,n.y,r)}function o$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const s$={duration:.45,ease:[.4,0,.1,1]},kx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Dx=kx("applewebkit/")&&!kx("chrome/")?Math.round:_o;function Px(t){t.min=Dx(t.min),t.max=Dx(t.max)}function a$(t){Px(t.x),Px(t.y)}function CE(t,e,n){return t==="position"||t==="preserve-aspect"&&!cB(bx(e),bx(n),.2)}function l$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const u$=TE({attachResizeListener:(t,e)=>Ld(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wg={current:void 0},EE=TE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Wg.current){const t=new u$({});t.mount(window),t.setOptions({layoutScroll:!0}),Wg.current=t}return Wg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),c$={pan:{Feature:kB},drag:{Feature:EB,ProjectionNode:EE,MeasureLayout:vE}};function Ox(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,Gd(e)))}let f$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=cN(e,n=>(Ox(this.node,n,"Start"),r=>Ox(this.node,r,"End"))))}unmount(){}},d$=class extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yd(Ld(this.node.current,"focus",()=>this.onFocus()),Ld(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _x(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,Gd(e)))}let h$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=pN(e,n=>(_x(this.node,n,"Start"),(r,{success:i})=>_x(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Jm=new WeakMap,zg=new WeakMap,p$=t=>{const e=Jm.get(t.target);e&&e(t)},g$=t=>{t.forEach(p$)};function m$({root:t,...e}){const n=t||document;zg.has(n)||zg.set(n,{});const r=zg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(g$,{root:t,...e})),r[i]}function v$(t,e,n){const r=m$(e);return Jm.set(t,n),r.observe(t),()=>{Jm.delete(t),r.unobserve(t)}}const y$={some:0,all:1};let b$=class extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:y$[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return v$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(w$(e,n))&&this.startObserver()}unmount(){}};function w$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const x$={inView:{Feature:b$},tap:{Feature:h$},focus:{Feature:d$},hover:{Feature:f$}},S$={layout:{ProjectionNode:EE,MeasureLayout:vE}},Qm={current:null},kE={current:!1};function T$(){if(kE.current=!0,!!Xv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qm.current=t.matches;t.addListener(e),e()}else Qm.current=!1}const C$=[...ZC,Ni,wu],E$=t=>C$.find(KC(t)),Rx=new WeakMap;function k$(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ji(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Dp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(ji(o))t.addValue(r,Id(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Id(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ax=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let D$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=$a.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:y}=a;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=_p(n),this.isVariantNode=oC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];f[E]!==void 0&&ji(A)&&A.set(f[E],!1)}}mount(e){this.current=e,Rx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),kE.current||T$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qm.current,process.env.NODE_ENV!=="production"&&Dp(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(){Rx.delete(this.current),this.projection&&this.projection.unmount(),bu(this.notifyUpdate),bu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Rc.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Of){const n=Of[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ax.length;r++){const i=Ax[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=k$(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Id(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(qC(i)||BC(i))?i=parseFloat(i):!E$(i)&&wu.test(n)&&(i=zC(e,n)),this.setBaseTarget(e,ji(i)?i.get():i)),ji(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ny(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!ji(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new my),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},DE=class extends D${constructor(){super(...arguments),this.KeyframeResolver=JC}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ji(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function P$(t){return window.getComputedStyle(t)}let O$=class extends DE{constructor(){super(...arguments),this.type="html",this.renderInstance=pC}readValueFromInstance(e,n){if(Rc.has(n)){const r=xy(n);return r&&r.default||0}else{const r=P$(e),i=(fC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return gE(e,n)}build(e,n,r){oy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return uy(e,n,r)}},_$=class extends DE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=xy(n);return r&&r.default||0}return n=gC.has(n)?n:Qv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return yC(e,n,r)}build(e,n,r){sy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){mC(e,n,r,i)}mount(e){this.isSVGTag=ly(e.tagName),super.mount(e)}};const R$=(t,e)=>ty(t)?new _$(e):new O$(e,{allowProjection:t!==X.Fragment}),A$=rN({...tB,...x$,...c$,...S$},R$),I$=yF(A$);function ev(t,e,n){var r,i,o,a,c;e==null&&(e=100);function f(){var y=Date.now()-a;y<e&&y>=0?r=setTimeout(f,e-y):(r=null,n||(c=t.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,a=Date.now();var y=n&&!r;return r||(r=setTimeout(f,e)),y&&(c=t.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}ev.debounce=ev;var M$=ev;const Ix=Eu(M$);function L$(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,c]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=e?typeof e=="number"?e:e.scroll:null,y=e?typeof e=="number"?e:e.resize:null,g=X.useRef(!1);X.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[T,E,A]=X.useMemo(()=>{const U=()=>{if(!f.current.element)return;const{left:H,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:$e}=f.current.element.getBoundingClientRect(),tt={left:H,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:$e};f.current.element instanceof HTMLElement&&i&&(tt.height=f.current.element.offsetHeight,tt.width=f.current.element.offsetWidth),Object.freeze(tt),g.current&&!B$(f.current.lastBounds,tt)&&c(f.current.lastBounds=tt)};return[U,y?Ix(U,y):U,p?Ix(U,p):U]},[c,i,p,y]);function I(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",A,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function j(){f.current.element&&(f.current.resizeObserver=new o(A),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(U=>U.addEventListener("scroll",A,{capture:!0,passive:!0})))}const R=U=>{!U||U===f.current.element||(I(),f.current.element=U,f.current.scrollContainers=PE(U),j())};return N$(A,!!n),F$(E),X.useEffect(()=>{I(),j()},[n,A,E]),X.useEffect(()=>I,[]),[R,a,T]}function F$(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function N$(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function PE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...PE(t.parentElement)]}const j$=["x","y","top","bottom","left","right","width","height"],B$=(t,e)=>j$.every(n=>t[n]===e[n]),OE=X.createContext({dragDropManager:void 0});function Ss(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Mx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fx={INIT:"@@redux/INIT"+Lx(),REPLACE:"@@redux/REPLACE"+Lx()};function $$(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function V$(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(W$(t))return"date";if(U$(t))return"error";var n=H$(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function H$(t){return typeof t.constructor=="function"?t.constructor.name:null}function U$(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function W$(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function cf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=V$(t)),e}function _E(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ss(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(1):"Expected the enhancer to be a function. Instead, received: '"+cf(n)+"'");return n(_E)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(2):"Expected the root reducer to be a function. Instead, received: '"+cf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(4):"Expected the listener to be a function. Instead, received: '"+cf(I)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var U=c.indexOf(I);c.splice(U,1),a=null}}}function T(I){if(!$$(I))throw new Error(process.env.NODE_ENV==="production"?Ss(7):"Actions must be plain objects. Instead, the actual type was: '"+cf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ss(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var j=a=c,R=0;R<j.length;R++){var U=j[R];U()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(10):"Expected the nextReducer to be a function. Instead, received: '"+cf(I));i=I,T({type:Fx.REPLACE})}function A(){var I,j=g;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Ss(11):"Expected the observer to be an object. Instead, received: '"+cf(U)+"'");function H(){U.next&&U.next(y())}H();var ne=j(H);return{unsubscribe:ne}}},I[Mx]=function(){return this},I}return T({type:Fx.INIT}),r={dispatch:T,subscribe:g,getState:y,replaceReducer:E},r[Mx]=A,r}function Ut(t,e,...n){if(z$()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function z$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function Y$(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function G$(t,e){return t.filter(n=>n!==e)}function RE(t){return typeof t=="object"}function q$(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function X$(t,e){return t.filter(n=>e.indexOf(n)>-1)}const ky="dnd-core/INIT_COORDS",Ip="dnd-core/BEGIN_DRAG",Dy="dnd-core/PUBLISH_DRAG_SOURCE",Mp="dnd-core/HOVER",Lp="dnd-core/DROP",Fp="dnd-core/END_DRAG";function Nx(t,e){return{type:ky,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const K$={type:ky,payload:{clientOffset:null,sourceClientOffset:null}};function Z$(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Nx(o)),J$(n,c,f);const p=tV(n,c);if(p==null){t.dispatch(K$);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Q$(a),y=a(p)}t.dispatch(Nx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;eV(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Ip,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function J$(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function Q$(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function eV(t){Ut(RE(t),"Item must be an object.")}function tV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function nV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){nV(t,i,n[i])})}return t}function iV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();oV(r),lV(r).forEach((a,c)=>{const f=sV(a,c,i,r),p={type:Lp,payload:{dropResult:rV({},n,f)}};t.dispatch(p)})}}function oV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function sV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return aV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function aV(t){Ut(typeof t>"u"||RE(t),"Drop result must either be an object or undefined.")}function lV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function uV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();cV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Fp}}}function cV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function tv(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function fV(t){return function(n,{clientOffset:r}={}){dV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return pV(i,a,c),hV(i,o,a),gV(i,o,a),{type:Mp,payload:{targetIds:i,clientOffset:r||null}}}}function dV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function hV(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function pV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);tv(o,n)||t.splice(r,1)}}function gV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function mV(t){return function(){if(t.getMonitor().isDragging())return{type:Dy}}}function vV(t){return{beginDrag:Z$(t),publishDragSource:mV(t),hover:fV(t),drop:iV(t),endDrag:uV(t)}}class yV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=vV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function bV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function AE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function wV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:AE(bV(e,r),n)}function xV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:AE(e,n)}const wd=[],Py=[];wd.__IS_NONE__=!0;Py.__IS_ALL__=!0;function SV(t,e){return t===wd?!1:t===Py||typeof e>"u"?!0:X$(e,t).length>0}class TV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!SV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return tv(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!tv(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return wV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return xV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const jx=typeof global<"u"?global:self,IE=jx.MutationObserver||jx.WebKitMutationObserver;function ME(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function CV(t){let e=1;const n=new IE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const EV=typeof IE=="function"?CV:ME;class kV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=EV(this.flush),this.requestErrorThrow=ME(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class DV{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class PV{create(e){const n=this.freeTasks,r=n.length?n.pop():new DV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const LE=new kV,OV=new PV(LE.registerPendingError);function _V(t){LE.enqueueTask(OV.create(t))}const Oy="dnd-core/ADD_SOURCE",_y="dnd-core/ADD_TARGET",Ry="dnd-core/REMOVE_SOURCE",Np="dnd-core/REMOVE_TARGET";function RV(t){return{type:Oy,payload:{sourceId:t}}}function AV(t){return{type:_y,payload:{targetId:t}}}function IV(t){return{type:Ry,payload:{sourceId:t}}}function MV(t){return{type:Np,payload:{targetId:t}}}function LV(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function FV(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function nv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>nv(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ps;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ps||(Ps={}));let NV=0;function jV(){return NV++}function BV(t){const e=jV().toString();switch(t){case Ps.SOURCE:return`S${e}`;case Ps.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Bx(t){switch(t[0]){case"S":return Ps.SOURCE;case"T":return Ps.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function $x(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class $V{addSource(e,n){nv(e),LV(n);const r=this.addHandler(Ps.SOURCE,e,n);return this.store.dispatch(RV(r)),r}addTarget(e,n){nv(e,!0),FV(n);const r=this.addHandler(Ps.TARGET,e,n);return this.store.dispatch(AV(r)),r}containsHandler(e){return $x(this.dragSources,e)||$x(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Bx(e)===Ps.SOURCE}isTargetId(e){return Bx(e)===Ps.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(IV(e)),_V(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(MV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=BV(e);return this.types.set(i,n),e===Ps.SOURCE?this.dragSources.set(i,r):e===Ps.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const VV=(t,e)=>t===e;function HV(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function UV(t,e,n=VV){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function WV(t=wd,e){switch(e.type){case Mp:break;case Oy:case _y:case Np:case Ry:return wd;case Ip:case Dy:case Fp:case Lp:default:return Py}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=q$(n,r);if(!(i.length>0||!UV(n,r)))return wd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function zV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){zV(t,i,n[i])})}return t}const Vx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function GV(t=Vx,e){const{payload:n}=e;switch(e.type){case ky:case Ip:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Mp:return HV(t.clientOffset,n.clientOffset)?t:YV({},t,{clientOffset:n.clientOffset});case Fp:case Lp:return Vx;default:return t}}function qV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qV(t,i,n[i])})}return t}const XV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function KV(t=XV,e){const{payload:n}=e;switch(e.type){case Ip:return ff({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Dy:return ff({},t,{isSourcePublic:!0});case Mp:return ff({},t,{targetIds:n.targetIds});case Np:return t.targetIds.indexOf(n.targetId)===-1?t:ff({},t,{targetIds:G$(t.targetIds,n.targetId)});case Lp:return ff({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Fp:return ff({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function ZV(t=0,e){switch(e.type){case Oy:case _y:return t+1;case Ry:case Np:return t-1;default:return t}}function JV(t=0){return t+1}function QV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){QV(t,i,n[i])})}return t}function t3(t={},e){return{dirtyHandlerIds:WV(t.dirtyHandlerIds,{type:e.type,payload:e3({},e.payload,{prevTargetIds:Y$(t,"dragOperation.targetIds",[])})}),dragOffset:GV(t.dragOffset,e),refCount:ZV(t.refCount,e),dragOperation:KV(t.dragOperation,e),stateId:JV(t.stateId)}}function n3(t,e=void 0,n={},r=!1){const i=r3(r),o=new TV(i,new $V(i)),a=new yV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function r3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return _E(t3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function i3(t,e){if(t==null)return{};var n=o3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function o3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Hx=0;const Bh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var FE=X.memo(function(e){var{children:n}=e,r=i3(e,["children"]);const[i,o]=s3(r);return X.useEffect(()=>{if(o){const a=NE();return++Hx,()=>{--Hx===0&&(a[Bh]=null)}}},[]),Pe.jsx(OE.Provider,{value:i,children:n})});function s3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=a3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function a3(t,e=NE(),n,r){const i=e;return i[Bh]||(i[Bh]={dragDropManager:n3(t,e,n,r)}),i[Bh]}function NE(){return typeof global<"u"?global:window}var l3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const u3=Eu(l3),kc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function jE(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);u3(r,a)||(i(a),n&&n())},[r,t,n]);return kc(o),[r,o]}function c3(t,e,n){const[r,i]=jE(t,e,n);return kc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function BE(t,e,n){return c3(e,t||(()=>({})),()=>n.reconnect())}function $E(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function f3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function d3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Yg=!1,Gg=!1;class h3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Yg,"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 Yg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Yg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Gg,"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 Gg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Gg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let qg=!1;class p3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!qg,"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 qg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function g3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function m3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function rv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=t[p],g=e[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function iv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function v3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function y3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return v3(r),b3(r,n?o=>t(o,n):t)}}function VE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=y3(r);e[n]=()=>i}}),e}function Ux(t,e){typeof t=="function"?t(e):t.current=e}function b3(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Ux(n,r),Ux(e,r)}}):X.cloneElement(t,{ref:e})}class w3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!rv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=VE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,iv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,iv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class x3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!rv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=VE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,iv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rl(){const{dragDropManager:t}=X.useContext(OE);return Ut(t!=null,"Expected drag drop context"),t}function S3(t,e){const n=Rl(),r=X.useMemo(()=>new w3(n.getBackend()),[n]);return kc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),kc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function T3(){const t=Rl();return X.useMemo(()=>new h3(t),[t])}class C3{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function E3(t,e,n){const r=X.useMemo(()=>new C3(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function k3(t){return X.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function D3(t,e,n){const r=Rl(),i=E3(t,e,n),o=k3(t);kc(function(){if(o!=null){const[c,f]=m3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function HE(t,e){const n=$E(t,e);Ut(!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=T3(),i=S3(n.options,n.previewOptions);return D3(n,r,i),[BE(n.collect,r,i),f3(i),d3(i)]}function P3(t){const n=Rl().getMonitor(),[r,i]=jE(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function O3(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function _3(t){const e=Rl(),n=X.useMemo(()=>new x3(e.getBackend()),[e]);return kc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function R3(){const t=Rl();return X.useMemo(()=>new p3(t),[t])}function A3(t){const{accept:e}=t;return X.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class I3{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function M3(t,e){const n=X.useMemo(()=>new I3(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function L3(t,e,n){const r=Rl(),i=M3(t,e),o=A3(t);kc(function(){const[c,f]=g3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function lp(t,e){const n=$E(t,e),r=R3(),i=_3(n.options);return L3(n,r,i),[BE(n.collect,r,i),O3(i)]}var UE=t=>{throw TypeError(t)},WE=(t,e,n)=>e.has(t)||UE("Cannot "+n),Nt=(t,e,n)=>(WE(t,e,"read from private field"),n?n.call(t):e.get(t)),Cs=(t,e,n)=>e.has(t)?UE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hc=(t,e,n,r)=>(WE(t,e,"write to private field"),e.set(t,n),n),lu,F3=class{constructor(){Cs(this,lu),this.register=t=>{Nt(this,lu).push(t)},this.unregister=t=>{for(;Nt(this,lu).indexOf(t)!==-1;)Nt(this,lu).splice(Nt(this,lu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,lu))e.backendChanged(t)},hc(this,lu,[])}};lu=new WeakMap;var qo,fd,Xo,yl,pc,ov,sv,av,$h,Vh,dd,zE=class Hh{constructor(e,n,r){if(Cs(this,qo),Cs(this,fd),Cs(this,Xo),Cs(this,yl),Cs(this,pc),Cs(this,ov,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
|
|
3
|
+
`)===0?Le.substr(1,Le.length):Le}).forEach(function(Le){var et=Le.split(":"),me=et.shift().trim();if(me){var Se=et.join(":").trim();ve.append(me,Se)}}),ve}ie.call(ae.prototype);function Qe(ue,ve){if(!(this instanceof Qe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ve||(ve={}),this.type="default",this.status=ve.status===void 0?200:ve.status,this.ok=this.status>=200&&this.status<300,this.statusText=ve.statusText===void 0?"":""+ve.statusText,this.headers=new I(ve.headers),this.url=ve.url||"",this._initBody(ue)}ie.call(Qe.prototype),Qe.prototype.clone=function(){return new Qe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Qe.error=function(){var ue=new Qe(null,{status:0,statusText:""});return ue.type="error",ue};var Ye=[301,302,303,307,308];Qe.redirect=function(ue,ve){if(Ye.indexOf(ve)===-1)throw new RangeError("Invalid status code");return new Qe(null,{status:ve,headers:{location:ue}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(ve,ke){this.message=ve,this.name=ke;var Le=Error(ve);this.stack=Le.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Oe(ue,ve){return new Promise(function(ke,Le){var et=new ae(ue,ve);if(et.signal&&et.signal.aborted)return Le(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function Se(){me.abort()}me.onload=function(){var Ue={status:me.status,statusText:me.statusText,headers:tt(me.getAllResponseHeaders()||"")};Ue.url="responseURL"in me?me.responseURL:Ue.headers.get("X-Request-URL");var Ge="response"in me?me.response:me.responseText;setTimeout(function(){ke(new Qe(Ge,Ue))},0)},me.onerror=function(){setTimeout(function(){Le(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Le(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Le(new a.DOMException("Aborted","AbortError"))},0)};function je(Ue){try{return Ue===""&&c.location.href?c.location.href:Ue}catch{return Ue}}me.open(et.method,je(et.url),!0),et.credentials==="include"?me.withCredentials=!0:et.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(f.blob?me.responseType="blob":f.arrayBuffer&&et.headers.get("Content-Type")&&et.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),ve&&typeof ve.headers=="object"&&!(ve.headers instanceof I)?Object.getOwnPropertyNames(ve.headers).forEach(function(Ue){me.setRequestHeader(Ue,E(ve.headers[Ue]))}):et.headers.forEach(function(Ue,Ge){me.setRequestHeader(Ge,Ue)}),et.signal&&(et.signal.addEventListener("abort",Se),me.onreadystatechange=function(){me.readyState===4&&et.signal.removeEventListener("abort",Se)}),me.send(typeof et._bodyInit>"u"?null:et._bodyInit)})}return Oe.polyfill=!0,c.fetch||(c.fetch=Oe,c.Headers=I,c.Request=ae,c.Response=Qe),a.Headers=I,a.Request=ae,a.Response=Qe,a.fetch=Oe,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(hh,hh.exports)),hh.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof ki<"u"&&ki.fetch?n=ki.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof gM<"u"&&typeof window>"u"){var r=n||mM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Am,Am.exports);var uT=Am.exports;const cT=Eu(uT),N0=rI({__proto__:null,default:cT},[uT]);function j0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(r){vM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vM(t,e,n){return(e=yM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yM(t){var e=bM(t,"string");return Ec(e)=="symbol"?e:e+""}function bM(t,e){if(Ec(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ec(t){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ec(t)}var Tl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Tl=global.fetch:typeof window<"u"&&window.fetch?Tl=window.fetch:Tl=fetch);var Dd;lT()&&(typeof global<"u"&&global.XMLHttpRequest?Dd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Dd=window.XMLHttpRequest));var Zh;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Zh=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Zh=window.ActiveXObject));!Tl&&N0&&!Dd&&!Zh&&(Tl=cT||N0);typeof Tl!="function"&&(Tl=void 0);var Im=function(e,n){if(n&&Ec(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},$0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):Tl(e,n).then(o).catch(r)},V0=!1,wM=function(e,n,r,i){e.queryStringParams&&(n=Im(n,e.queryStringParams));var o=B0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=B0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},V0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{$0(n,c,i,f)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(y){delete c[y]}),$0(n,c,i,f),V0=!0}catch(y){i(y)}}},xM=function(e,n,r,i){r&&Ec(r)==="object"&&(r=Im("",r).slice(1)),e.queryStringParams&&(n=Im(n,e.queryStringParams));try{var o;Dd?o=new Dd:o=new Zh("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},SM=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Tl&&n.indexOf("file:")!==0)return wM(e,n,r,i);if(lT()||typeof ActiveXObject=="function")return xM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function kf(t){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(t)}function H0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?H0(Object(n),!0).forEach(function(r){fT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function TM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dT(r.key),r)}}function EM(t,e,n){return e&&CM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function fT(t,e,n){return(e=dT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dT(t){var e=kM(t,"string");return kf(e)=="symbol"?e:e+""}function kM(t,e){if(kf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var DM=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 fT({},r,i||"")},parseLoadPayload:function(n,r){},request:SM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},hT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};TM(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return EM(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Cg(Cg(Cg({},DM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);kf(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=pM(f),f.then(function(p){if(!p)return a(null,{});var y=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(y,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(y,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&y&&y.message){var T=y.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+y.message,!0)}if(y)return r(y,!1);var A,I;try{typeof g.data=="string"?A=a.options.parse(g.data,i,o):A=g.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),p=0,y=[],g=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,f,function(I,j){p+=1,y.push(I),g.push(j),p===n.length&&typeof a=="function"&&a(y,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(y){return p(y)}),f.forEach(function(y){n.allOptions.ns.forEach(function(g){i.read(y,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(y," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(y),E),i.loaded("".concat(y,"|").concat(g),T,E)})})})}}}])}();hT.type="backend";var $v=(t=>(t.en="en",t.de="de",t))($v||{});const PM={en:"English",de:"German"};oi.use(aT).use(nM).init({initImmediate:!0,supportedLngs:["en","de"],nonExplicitSupportedLngs:!0,fallbackLng:Object.keys(PM),ns:["translation"],fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[hT],backendOptions:[{loadPath:()=>{var e,n,r;if((e=window==null?void 0:window.env)!=null&&e.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const t=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",t),`${t}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function OM(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||$v.en)},[]),{language:t,setLanguage:e}}const pT=X.createContext({}),_M=()=>X.useContext(pT),RM=oi,Ds=Z1,AM=()=>oT(),IM=({children:t})=>{const e=OM();return Pe.jsx(pT.Provider,{value:e,children:Pe.jsx(aM,{i18n:oi,children:t})})},mr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};var gT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},U0=X.createContext&&X.createContext(gT),MM=["attr","size","title"];function LM(t,e){if(t==null)return{};var n=FM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FM(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jh.apply(this,arguments)}function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){NM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function NM(t,e,n){return e=jM(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jM(t){var e=BM(t,"string");return typeof e=="symbol"?e:e+""}function BM(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function mT(t){return t&&t.map((e,n)=>X.createElement(e.tag,Qh({key:n},e.attr),mT(e.child)))}function Cp(t){return e=>X.createElement($M,Jh({attr:Qh({},t.attr)},e),mT(t.child))}function $M(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=LM(t,MM),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),X.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:Qh(Qh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return U0!==void 0?X.createElement(U0.Consumer,null,n=>e(n)):e(gT)}function VM(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function HM(t){return Cp({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const vT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Eg(t){return t+" !important"}const yT=t=>{const e={...t.colors};return aa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:vT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Eg(e.primary200),"&:hover":{backgroundColor:Eg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:VM,next:HM}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Eg(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function z0(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||mr[i]})}),n}function bT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function UM(t){var c,f,p;const{data:e,isFetching:n}=kd.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(y=>y.json()).then(y=>(["image","favicon","icon"].forEach(g=>{var T;(T=y==null?void 0:y.theme)!=null&&T[g]&&(y.theme[g]+=`?v=${Date.now()}`)}),y)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(y){var T,E;bT((T=y==null?void 0:y.theme)==null?void 0:T.favicon);const g=z0(mr,(E=y==null?void 0:y.theme)==null?void 0:E.keyColor);Object.keys(g).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,g[A])}),document.documentElement.style.setProperty("font-family",vT.fontFamily)}}),r=z0(mr,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=yT({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const wT=X.createContext({}),WM=()=>X.useContext(wT),zM=t=>{var o;const{children:e,brandTheme:n}=t,r=UM(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Pe.jsx(wT.Provider,{value:r,children:Pe.jsx(aa.ThemeProvider,{theme:i,children:e})})},YM=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function xT({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("style",{type:"text/css",children:YM}),Pe.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Pe.jsxs("div",{className:"modal-container",children:[Pe.jsx("h3",{className:"modal-title",children:Ds("components.logoutPage.title",{defaultValue:"Log out"})}),Pe.jsxs("p",{className:"text-sm",children:[" ",Ds("components.logoutPage.confirmLogOut",{defaultValue:"Are you sure you want to log out?"})]}),Pe.jsxs("div",{className:"modal-footer",children:[Pe.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:Ds("commonElement.button.cancel",{defaultValue:"Cancel"})}),Pe.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:Ds("commonElement.button.confirm",{defaultValue:"Comfirm"})})]})]})})]})}const GM=X.memo(({notification:t,notiPath:e,markAllAsReadState:n,brandColors:r,onMark:i,showDetail:o,onToggleDetail:a})=>{var R,U;const[c,f]=X.useState({id:t.id,isRead:t.isRead}),p=c.isRead===!1?"unread":"read",y={borderColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500,backgroundColor:c.isRead?"#c5c5c5":(r==null?void 0:r.primary500)||mr.primary500},g=()=>{const H=!t.isRead;i&&i(t.id,H,e)};X.useEffect(()=>{f(n?H=>({...H,isRead:!0}):{id:t.id,isRead:t.isRead})},[n,t.id,t.isRead]);const T=()=>{typeof a=="function"&&a()},E=H=>{const ne=Dm(),q=Dm(H),ie=ne.diff(q,"days"),x=ne.diff(q,"minutes"),le=ne.diff(q,"months"),ae=ne.diff(q,"years");if(console.log("diffInMonths",le),x<1)return"Just now";if(ie===0){if(x<=60)return`${x} minute${x>1?"s":""} ago`;const $e=Math.floor(x/60);return console.log("diffIhours",$e),`${$e} hour${$e>1?"s":""} ago`}if(ie===1)return"Yesterday";if(ie>=2&&ie<7)return`${ie} days ago`;if(ie<30){const $e=Math.floor(ie/7);return`${$e} week${$e>1?"s":""} ago`}return le===0||le===1?"1 month ago":le<12?`${le} months ago`:ae===0||ae===1?"1 year ago":"Over 1 year ago"},A=t!=null&&t.data?(R=t==null?void 0:t.data)==null?void 0:R.length:0,I=t!=null&&t.contextUrl?"a":"p",j=(H,ne)=>{var q,ie;if((H==null?void 0:H.actionKey)!=null){if((q=H==null?void 0:H.data)!=null&&q.brandName)return Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`,brandName:H.data.brandName});switch(H==null?void 0:H.notificationType){case"deleteMultiple":return H!=null&&H.data&&((ie=H==null?void 0:H.data)==null?void 0:ie.length)>1?Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_multiple`,{defaultValue:`${H==null?void 0:H.actionKey}`,count:ne}):Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}_single`,{defaultValue:`${H==null?void 0:H.actionKey}`});default:return Ds(`notificationAdmin.notify.actionKey.${H==null?void 0:H.actionKey}`,{defaultValue:`${H==null?void 0:H.message}`})}}return H.message};return Pe.jsx(Pe.Fragment,{children:Pe.jsxs("div",{className:"notitification-item__container",children:[Pe.jsx("div",{className:"notification-item__image-container",children:Pe.jsx("img",{src:!t.actorAvatarUrl||t.actorName==="System"?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":t.actorAvatarUrl,onError:({currentTarget:H})=>{console.log("img on error",H),H.onerror=null,H.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:t.actorName})}),Pe.jsxs("div",{style:{width:"calc(100% - 56px)"},children:[Pe.jsxs("div",{className:"notification-item__content-wrapper",children:[Pe.jsxs("div",{className:"notification-item__content",children:[Pe.jsx("p",{className:"notification-item__user-name",children:t.actorName}),Pe.jsxs(I,{href:t.contextUrl,style:{cursor:t!=null&&t.contextUrl?"pointer":"unset",textDecoration:"none",color:"inherit"},children:[j(t,A),Pe.jsx("span",{style:{color:t.contextUrl?"#007BFF":"#292929"},children:` ${t!=null&&t.context?t.context:""}`})]}),(t==null?void 0:t.notificationType)==="deleteMultiple"&&Pe.jsxs("button",{style:{color:mr.primary400,textDecoration:"underline"},onClick:T,children:[o?`${Ds("notificationAdmin.notify.hideText",{defaultValue:"Hide"})} `:`${Ds("notificationAdmin.notify.showText",{defaultValue:"Show"})} `,"`$",Ds("notificationAdmin.notify.detailText",{defaultValue:"details"})," ","`"]})]}),Pe.jsx("div",{className:"notification-item__time",children:Pe.jsx("p",{children:E(t.createdAt)})}),Pe.jsx("button",{className:`${p} notification-item__read-at`,"aria-label":"Mark as read",style:y,onClick:g})]}),o&&Pe.jsx("div",{style:{background:"#fff",width:"100%",padding:"8px",fontSize:"12px",marginTop:"8px"},children:Pe.jsx("ul",{children:(U=t==null?void 0:t.data)==null?void 0:U.map((H,ne)=>Pe.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:[Pe.jsx("span",{style:{backgroundColor:mr.primary400},className:"list-dot"}),Pe.jsx("span",{style:{width:"calc(100% - 12px)"},children:H.name})]},ne))})})]})]})})}),ST=X.createContext({}),qM=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Pe.jsx(ST.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};function Y0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function XM(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function KM(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var y=e(p);y?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!e(T);T++)f=T;a.push(c,f)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var ZM=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},JM=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),QM=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},G0=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},eL=function(t){QM(e,t);function e(){var n,r,i,o;ZM(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=G0(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var y=p.visibleStartIndex,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!Y0(y)||!Y0(g))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=y,i._lastRenderedStopIndex=g,i._ensureRowsLoaded(y,g)},i._setRef=function(p){i._listRef=p},r),G0(i,o)}return JM(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,f=o.minimumBatchSize,p=f===void 0?10:f,y=o.threshold,g=y===void 0?15:y,T=KM({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var y=r[p],g=r[p+1],T=o(y,g);T!=null&&T.then(function(){if(XM({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:y,stopIndex:g})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(y,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent);function Df(){return Df=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Df.apply(null,arguments)}const tL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Df}},Symbol.toStringTag,{value:"Module"}));function TT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Gh(t,e)}const nL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function Vv({children:t,styles:e=[],...n}){return Pe.jsxs("div",{...n,children:[[nL,...e].map((r,i)=>Pe.jsx("style",{type:"text/css",children:r},i)),t]})}function rL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Hv=rL,iL=typeof ki=="object"&&ki&&ki.Object===Object&&ki,oL=iL,sL=oL,aL=typeof self=="object"&&self&&self.Object===Object&&self,lL=sL||aL||Function("return this")(),CT=lL,uL=CT,cL=function(){return uL.Date.now()},fL=cL,dL=/\s/;function hL(t){for(var e=t.length;e--&&dL.test(t.charAt(e)););return e}var pL=hL,gL=pL,mL=/^\s+/;function vL(t){return t&&t.slice(0,gL(t)+1).replace(mL,"")}var yL=vL,bL=CT,wL=bL.Symbol,ET=wL,q0=ET,kT=Object.prototype,xL=kT.hasOwnProperty,SL=kT.toString,td=q0?q0.toStringTag:void 0;function TL(t){var e=xL.call(t,td),n=t[td];try{t[td]=void 0;var r=!0}catch{}var i=SL.call(t);return r&&(e?t[td]=n:delete t[td]),i}var CL=TL,EL=Object.prototype,kL=EL.toString;function DL(t){return kL.call(t)}var PL=DL,X0=ET,OL=CL,_L=PL,RL="[object Null]",AL="[object Undefined]",K0=X0?X0.toStringTag:void 0;function IL(t){return t==null?t===void 0?AL:RL:K0&&K0 in Object(t)?OL(t):_L(t)}var ML=IL;function LL(t){return t!=null&&typeof t=="object"}var FL=LL,NL=ML,jL=FL,BL="[object Symbol]";function $L(t){return typeof t=="symbol"||jL(t)&&NL(t)==BL}var VL=$L,HL=yL,Z0=Hv,UL=VL,J0=NaN,WL=/^[-+]0x[0-9a-f]+$/i,zL=/^0b[01]+$/i,YL=/^0o[0-7]+$/i,GL=parseInt;function qL(t){if(typeof t=="number")return t;if(UL(t))return J0;if(Z0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Z0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=HL(t);var n=zL.test(t);return n||YL.test(t)?GL(t.slice(2),n?2:8):WL.test(t)?J0:+t}var XL=qL,KL=Hv,kg=fL,Q0=XL,ZL="Expected a function",JL=Math.max,QL=Math.min;function e2(t,e,n){var r,i,o,a,c,f,p=0,y=!1,g=!1,T=!0;if(typeof t!="function")throw new TypeError(ZL);e=Q0(e)||0,KL(n)&&(y=!!n.leading,g="maxWait"in n,o=g?JL(Q0(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(ie){var x=r,le=i;return r=i=void 0,p=ie,a=t.apply(le,x),a}function A(ie){return p=ie,c=setTimeout(R,e),y?E(ie):a}function I(ie){var x=ie-f,le=ie-p,ae=e-x;return g?QL(ae,o-le):ae}function j(ie){var x=ie-f,le=ie-p;return f===void 0||x>=e||x<0||g&&le>=o}function R(){var ie=kg();if(j(ie))return U(ie);c=setTimeout(R,I(ie))}function U(ie){return c=void 0,T&&r?E(ie):(r=i=void 0,a)}function H(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function ne(){return c===void 0?a:U(kg())}function q(){var ie=kg(),x=j(ie);if(r=arguments,i=this,f=ie,x){if(c===void 0)return A(f);if(g)return clearTimeout(c),c=setTimeout(R,e),E(f)}return c===void 0&&(c=setTimeout(R,e)),a}return q.cancel=H,q.flush=ne,q}var DT=e2;const Dg=Eu(DT);var t2=DT,n2=Hv,r2="Expected a function";function i2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(r2);return n2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),t2(t,e,{leading:r,maxWait:e,trailing:i})}var o2=i2;const s2=Eu(o2);var pf=function(){return pf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)};function PT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function OT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var _T=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,f){return f.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function RT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function AT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function IT(t){return".".concat(t.split(" ").join("."))}var Uv=!!(typeof window<"u"&&window.document&&window.document.createElement),a2=Object.freeze({__proto__:null,addClasses:RT,canUseDOM:Uv,classNamesToQuery:IT,getElementDocument:OT,getElementWindow:PT,getOptions:_T,removeClasses:AT}),df=null,ew=null;Uv&&window.addEventListener("resize",function(){ew!==window.devicePixelRatio&&(ew=window.devicePixelRatio,df=null)});function tw(){if(df===null){if(typeof document>"u")return df=0,df;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),df=n}return df}var iu=PT,Pg=OT,l2=_T,ou=RT,su=AT,Oo=IT,nd=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=iu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ou(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){su(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ou(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){su(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,f,p,y,g,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,R=r.axis[r.draggedAxis].track,U=(a=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,H=r.axis[r.draggedAxis].scrollbar,ne=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,q=parseInt((y=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var ie=j-((T=(g=R.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;ie=r.draggedAxis==="x"&&r.isRtl?((A=(E=R.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-H.size-ie:ie;var x=ie/(U-H.size),le=x*(ne-q);r.draggedAxis==="x"&&r.isRtl&&(le=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-le:le),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=le}},this.onEndDrag=function(i){r.isDragging=!1;var o=Pg(r.el),a=iu(r.el);i.preventDefault(),i.stopPropagation(),su(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=pf(pf({},t.defaultOptions),n),this.classNames=pf(pf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=s2(this._onMouseMove,64),this.onWindowResize=Dg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Dg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Dg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:tw()}catch{return tw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Pg(e),i=iu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Uv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(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=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.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||(ou(this.axis.x.scrollbar.el,this.classNames.visible),ou(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=iu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=iu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var y=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>y,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>y-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var y=p/(a-f),g=~~((c-o.size)*y);g=e==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=e==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ou(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(su(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ou(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ou(n.scrollbar.el,this.classNames.hover):su(n.scrollbar.el,this.classNames.hover)):(su(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),su(this.axis[e].track.el,this.classNames.hover),su(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Pg(this.el),o=iu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ou(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=iu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var y=this.axis[n].scrollbar,g=(o=(i=y.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-g:this.mouseX-g,I=A<0?-1:1,j=I===-1?E-T:E+T,R=40,U=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<j&&(E+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=iu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=l2,t.helpers=a2,t}(),Ko=function(){return Ko=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)};function u2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Wv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=u2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},y={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(nd.defaultOptions,E)?p[E]=o[E]:y[E]=o[E]});var g=Ko(Ko({},nd.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||nd.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||nd.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new nd(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Ko({"data-simplebar":"init",ref:a},y),kn.createElement("div",{className:g.wrapper},kn.createElement("div",{className:g.heightAutoObserverWrapperEl},kn.createElement("div",{className:g.heightAutoObserverEl})),kn.createElement("div",{className:g.mask},kn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:g.contentEl},n)))),kn.createElement("div",{className:g.placeholder})),kn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},kn.createElement("div",{className:g.scrollbar})),kn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},kn.createElement("div",{className:g.scrollbar})))});Wv.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}';function LT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=LT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function wl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=LT(t))&&(r&&(r+=" "),r+=e);return r}const Pd=t=>typeof t=="number"&&!isNaN(t),xc=t=>typeof t=="string",Zo=t=>typeof t=="function",Mh=t=>xc(t)||Zo(t)?t:null,Mm=t=>X.isValidElement(t)||xc(t)||Zo(t)||Pd(t);function c2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Ep(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:y,nodeRef:g,isIn:T,playToast:E}=a;const A=r?`${e}--${f}`:e,I=r?`${n}--${f}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const R=g.current,U=A.split(" "),H=ne=>{ne.target===g.current&&(E(),R.removeEventListener("animationend",H),R.removeEventListener("animationcancel",H),j.current===0&&ne.type!=="animationcancel"&&R.classList.remove(...U))};R.classList.add(...U),R.addEventListener("animationend",H),R.addEventListener("animationcancel",H)},[]),X.useEffect(()=>{const R=g.current,U=()=>{R.removeEventListener("animationend",U),i?c2(R,y,o):y()};T||(p?U():(j.current=1,R.className+=` ${I}`,R.addEventListener("animationend",U)))},[T]),X.createElement(X.Fragment,null,c)}}function nw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const oo=new Map;let Od=[];const Lm=new Set,f2=t=>Lm.forEach(e=>e(t)),FT=()=>oo.size>0;function NT(t,e){var n;if(e)return!((n=oo.get(e))==null||!n.isToastActive(t));let r=!1;return oo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function jT(t,e){Mm(t)&&(FT()||Od.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function rw(t,e){oo.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function d2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(y,g,T){let E=1,A=0,I=[],j=[],R=[],U=g;const H=new Map,ne=new Set,q=()=>{R=Array.from(H.values()),ne.forEach(le=>le())},ie=le=>{j=le==null?[]:j.filter(ae=>ae!==le),q()},x=le=>{const{toastId:ae,onOpen:$e,updateId:tt,children:Qe}=le.props,Ye=tt==null;le.staleId&&H.delete(le.staleId),H.set(ae,le),j=[...j,le.props.toastId].filter(Oe=>Oe!==le.staleId),q(),T(nw(le,Ye?"added":"updated")),Ye&&Zo($e)&&$e(X.isValidElement(Qe)&&Qe.props)};return{id:y,props:U,observe:le=>(ne.add(le),()=>ne.delete(le)),toggle:(le,ae)=>{H.forEach($e=>{ae!=null&&ae!==$e.props.toastId||Zo($e.toggle)&&$e.toggle(le)})},removeToast:ie,toasts:H,clearQueue:()=>{A-=I.length,I=[]},buildToast:(le,ae)=>{if((je=>{let{containerId:Ue,toastId:Ge,updateId:Ze}=je;const Xe=Ue?Ue!==y:y!==1,ot=H.has(Ge)&&Ze==null;return Xe||ot})(ae))return;const{toastId:$e,updateId:tt,data:Qe,staleId:Ye,delay:Oe}=ae,ue=()=>{ie($e)},ve=tt==null;ve&&A++;const ke={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(je=>{let[Ue,Ge]=je;return Ge!=null})),toastId:$e,updateId:tt,data:Qe,closeToast:ue,isIn:!1,className:Mh(ae.className||U.toastClassName),bodyClassName:Mh(ae.bodyClassName||U.bodyClassName),progressClassName:Mh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Le=ae.autoClose,et=U.autoClose,Le===!1||Pd(Le)&&Le>0?Le:et),deleteToast(){const je=H.get($e),{onClose:Ue,children:Ge}=je.props;Zo(Ue)&&Ue(X.isValidElement(Ge)&&Ge.props),T(nw(je,"removed")),H.delete($e),A--,A<0&&(A=0),I.length>0?x(I.shift()):q()}};var Le,et;ke.closeButton=U.closeButton,ae.closeButton===!1||Mm(ae.closeButton)?ke.closeButton=ae.closeButton:ae.closeButton===!0&&(ke.closeButton=!Mm(U.closeButton)||U.closeButton);let me=le;X.isValidElement(le)&&!xc(le.type)?me=X.cloneElement(le,{closeToast:ue,toastProps:ke,data:Qe}):Zo(le)&&(me=le({closeToast:ue,toastProps:ke,data:Qe}));const Se={content:me,props:ke,staleId:Ye};U.limit&&U.limit>0&&A>U.limit&&ve?I.push(Se):Pd(Oe)?setTimeout(()=>{x(Se)},Oe):x(Se)},setProps(le){U=le},setToggle:(le,ae)=>{H.get(le).toggle=ae},isToastActive:le=>j.some(ae=>ae===le),getSnapshot:()=>R}}(a,o,f2);oo.set(a,f);const p=f.observe(c);return Od.forEach(y=>jT(y.content,y.options)),Od=[],()=>{p(),oo.delete(a)}},setProps(c){var f;(f=oo.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:NT,count:i==null?void 0:i.length}}function h2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:y,closeOnClick:g}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(H){const ne=o.current;a.canDrag&&ne&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?H.clientX-a.start:H.clientY-a.start,a.start!==H.clientX&&(a.canCloseOnClick=!1),ne.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,ne.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function R(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",R);const H=o.current;if(a.canDrag&&a.didMove&&H){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();H.style.transition="transform 0.2s, opacity 0.2s",H.style.removeProperty("transform"),H.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(H){if(t.draggable===!0||t.draggable===H.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",R);const ne=o.current;a.canCloseOnClick=!0,a.canDrag=!0,ne.style.transition="none",t.draggableDirection==="x"?(a.start=H.clientX,a.removalDistance=ne.offsetWidth*(t.draggablePercent/100)):(a.start=H.clientY,a.removalDistance=ne.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(H){const{top:ne,bottom:q,left:ie,right:x}=o.current.getBoundingClientRect();H.nativeEvent.type!=="touchend"&&t.pauseOnHover&&H.clientX>=ie&&H.clientX<=x&&H.clientY>=ne&&H.clientY<=q?I():A()}};return c&&f&&(U.onMouseEnter=I,t.stacked||(U.onMouseLeave=A)),g&&(U.onClick=H=>{y&&y(H),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function p2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:y,isIn:g,theme:T}=t;const E=o||f&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(A.transform=`scaleX(${p})`);const I=wl("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":y}),j=Zo(a)?a({rtl:y,type:i,defaultClassName:I}):wl(I,a),R={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,...R}))}let g2=1;const BT=()=>""+g2++;function m2(t){return t&&(xc(t.toastId)||Pd(t.toastId))?t.toastId:BT()}function pd(t,e){return jT(t,e),e.toastId}function ep(t,e){return{...e,type:e&&e.type||t,toastId:m2(e)}}function ph(t){return(e,n)=>pd(e,ep(t,n))}function xn(t,e){return pd(t,ep("default",e))}xn.loading=(t,e)=>pd(t,ep("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=xc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(y,g,T)=>{if(g==null)return void xn.dismiss(r);const E={type:y,...c,...n,data:T},A=xc(g)?{render:g}:g;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Zo(t)?t():t;return p.then(y=>f("success",a,y)).catch(y=>f("error",o,y)),p},xn.success=ph("success"),xn.info=ph("info"),xn.error=ph("error"),xn.warning=ph("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>pd(t,ep("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(FT()){if(e==null||xc(n=e)||Pd(n))oo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=oo.get(e.containerId);r?r.removeToast(e.id):oo.forEach(i=>{i.removeToast(e.id)})}}else Od=Od.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),oo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=NT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=oo.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:BT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,pd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Lm.add(t),()=>{Lm.delete(t)}},xn.play=t=>rw(!0,t),xn.pause=t=>rw(!1,t);const v2=typeof window<"u"?X.useLayoutEffect:X.useEffect,gh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Og={info:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(gh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},y2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=h2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:y,hideProgressBar:g,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:R,bodyStyle:U,progressClassName:H,progressStyle:ne,updateId:q,role:ie,progress:x,rtl:le,toastId:ae,deleteToast:$e,isIn:tt,isLoading:Qe,closeOnClick:Ye,theme:Oe}=t,ue=wl("Toastify__toast",`Toastify__toast-theme--${Oe}`,`Toastify__toast--${y}`,{"Toastify__toast--rtl":le},{"Toastify__toast--close-on-click":Ye}),ve=Zo(I)?I({rtl:le,position:A,type:y,defaultClassName:ue}):wl(ue,I),ke=function(Se){let{theme:je,type:Ue,isLoading:Ge,icon:Ze}=Se,Xe=null;const ot={theme:je,type:Ue};return Ze===!1||(Zo(Ze)?Xe=Ze({...ot,isLoading:Ge}):X.isValidElement(Ze)?Xe=X.cloneElement(Ze,ot):Ge?Xe=Og.spinner():(ct=>ct in Og)(Ue)&&(Xe=Og[Ue](ot))),Xe}(t),Le=!!x||!f,et={closeToast:T,type:y,theme:Oe};let me=null;return a===!1||(me=Zo(a)?a(et):X.isValidElement(a)?X.cloneElement(a,et):function(Se){let{closeToast:je,theme:Ue,ariaLabel:Ge="close"}=Se;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:Ze=>{Ze.stopPropagation(),je(Ze)},"aria-label":Ge},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(et)),X.createElement(E,{isIn:tt,done:$e,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":tt,className:ve,...i,style:j,ref:r},X.createElement("div",{...tt&&{role:ie},className:Zo(R)?R({type:y}):wl("Toastify__toast-body",R),style:U},ke!=null&&X.createElement("div",{className:wl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Qe})},ke),X.createElement("div",null,c)),me,X.createElement(p2,{...q&&!Le?{key:`pb-${q}`}:{},rtl:le,theme:Oe,delay:f,isRunning:e,isIn:tt,closeToast:T,hide:g,type:y,style:ne,className:H,controlledProgress:Le,progress:x||0})))},kp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},b2=Ep(kp("bounce",!0));Ep(kp("slide",!0));Ep(kp("zoom"));Ep(kp("flip"));const w2={position:"top-right",transition:b2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function x2(t){let e={...w2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=d2(e),{className:p,style:y,rtl:g,containerId:T}=e;function E(I){const j=wl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Zo(p)?p({position:I,rtl:g,defaultClassName:j}):wl(j,Mh(p))}function A(){n&&(i(!0),xn.play())}return v2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),R=12,U=(I=e.position)==null?void 0:I.includes("top");let H=0,ne=0;Array.from(j).reverse().forEach((q,ie)=>{const x=q;x.classList.add("Toastify__toast--stacked"),ie>0&&(x.dataset.collapsed=`${r}`),x.dataset.pos||(x.dataset.pos=U?"top":"bot");const le=H*(r?.2:1)+(r?0:R*ie);x.style.setProperty("--y",`${U?le:-1*le}px`),x.style.setProperty("--g",`${R}`),x.style.setProperty("--s",""+(1-(r?ne:0))),H+=x.offsetHeight,ne+=.025})}},[r,f,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const R=j.length?{...y}:{...y,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:R,key:`container-${I}`},j.map(U=>{let{content:H,props:ne}=U;return X.createElement(y2,{...ne,stacked:n,collapseAll:A,isIn:c(ne.toastId,ne.containerId),style:ne.style,key:`toast-${ne.key}`},H)}))}))}function S2(){return Pe.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.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"}),Pe.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Pe.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function T2(){return Pe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Pe.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function C2(){return Pe.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Pe.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"}),Pe.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const zv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},E2=({closeToast:t})=>Pe.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Pe.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Pe.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"})})}),Yv=(t,e)=>{xn.success(t,{icon:Pe.jsx(T2,{}),bodyStyle:{},position:"bottom-right",style:{...zv,background:mr.successLight,borderColor:mr.success,color:mr.success},...e})},Ud=(t,e)=>{xn.error(t,{icon:Pe.jsx(S2,{}),position:"bottom-right",style:{...zv,background:mr.dangerLight,borderColor:mr.danger,color:mr.danger},...e})},k2=(t,e)=>{xn.error(t,{icon:Pe.jsx(C2,{}),position:"bottom-right",style:{...zv,background:mr.warningLight,borderColor:mr.warning,color:mr.warning},...e})},D2=t=>{xn(t,{closeButton:E2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:mr.textPrimary}})};function $T(t){let e=null;return()=>(e==null&&(e=t()),e)}function P2(t,e){return t.filter(n=>n!==e)}function O2(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class _2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=O2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=P2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class R2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const VT="__NATIVE_FILE__",HT="__NATIVE_URL__",UT="__NATIVE_TEXT__",WT="__NATIVE_HTML__",iw=Object.freeze(Object.defineProperty({__proto__:null,FILE:VT,HTML:WT,TEXT:UT,URL:HT},Symbol.toStringTag,{value:"Module"}));function _g(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Fm={[VT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[WT]:{exposeProperties:{html:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[HT]:{exposeProperties:{urls:(t,e)=>_g(t,e,"").split(`
|
|
4
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[UT]:{exposeProperties:{text:(t,e)=>_g(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function A2(t,e){const n=Fm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new R2(n);return r.loadDataTransfer(e),r}function Rg(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Fm).filter(n=>{const r=Fm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const I2=$T(()=>/firefox/i.test(navigator.userAgent)),zT=$T(()=>!!window.safari);class ow{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let f=0,p=a.length-1,y;for(;f<=p;){y=Math.floor(.5*(f+p));const E=n[y];if(E<e)f=y+1;else if(E>e)p=y-1;else return r[y]}c=Math.max(0,p);const g=e-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+a[c]*g*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],R=c+j;p.push(3*R/((R+j)/A+(R+c)/I))}}p.push(a[a.length-1]);const y=[],g=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;y.push((T-A-j)*I),g.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=y,this.c3s=g}}const M2=1;function YT(t){const e=t.nodeType===M2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function mh(t){return{x:t.clientX,y:t.clientY}}function L2(t){var e;return t.nodeName==="IMG"&&(I2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function F2(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return zT()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function N2(t,e,n,r,i){const o=L2(e),c=YT(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:y}=t,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=F2(o,e,p,y),I=()=>{let ie=new ow([0,.5,1],[f.y,f.y/y*A,f.y+A-y]).interpolate(T);return zT()&&o&&(ie+=(window.devicePixelRatio-1)*A),ie},j=()=>new ow([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(g),{offsetX:R,offsetY:U}=i,H=R===0||R,ne=U===0||U;return{x:H?R:j(),y:ne?U:I()}}let j2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function B2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){B2(t,i,n[i])})}return t}class $2{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return sw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return sw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(iw).some(n=>iw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=A2(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&YT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=mh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Rg(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const y=this.monitor.getSourceId(),g=this.sourceNodes.get(y),T=this.sourcePreviewNodes.get(y)||g;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),H=N2(g,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,H.x,H.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(f)this.beginDragNativeItem(f);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,f=Rg(c);f&&this.beginDragNativeItem(f,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:mh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=mh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Rg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:mh(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 j2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new _2(this.isNodeInDocument)}}let vh;function V2(){return vh||(vh=new Image,vh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),vh}const GT=function(e,n,r){return new $2(e,n,r)};var Sc=[],H2=function(){return Sc.some(function(t){return t.activeTargets.length>0})},U2=function(){return Sc.some(function(t){return t.skippedTargets.length>0})},aw="ResizeObserver loop completed with undelivered notifications.",W2=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:aw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=aw),window.dispatchEvent(t)},_d;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(_d||(_d={}));var Tc=function(t){return Object.freeze(t)},z2=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Tc(this)}return t}(),qT=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Gv=function(t){return t instanceof SVGElement&&"getBBox"in t},XT=function(t){if(Gv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},lw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Y2=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},gd=typeof window<"u"?window:{},yh=new WeakMap,uw=/auto|scroll/,G2=/^tb|vertical/,q2=/msie|trident/i.test(gd.navigator&&gd.navigator.userAgent),La=function(t){return parseFloat(t||"0")},Ef=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new z2((n?e:t)||0,(n?t:e)||0)},cw=Tc({devicePixelContentBoxSize:Ef(),borderBoxSize:Ef(),contentBoxSize:Ef(),contentRect:new qT(0,0,0,0)}),KT=function(t,e){if(e===void 0&&(e=!1),yh.has(t)&&!e)return yh.get(t);if(XT(t))return yh.set(t,cw),cw;var n=getComputedStyle(t),r=Gv(t)&&t.ownerSVGElement&&t.getBBox(),i=!q2&&n.boxSizing==="border-box",o=G2.test(n.writingMode||""),a=!r&&uw.test(n.overflowY||""),c=!r&&uw.test(n.overflowX||""),f=r?0:La(n.paddingTop),p=r?0:La(n.paddingRight),y=r?0:La(n.paddingBottom),g=r?0:La(n.paddingLeft),T=r?0:La(n.borderTopWidth),E=r?0:La(n.borderRightWidth),A=r?0:La(n.borderBottomWidth),I=r?0:La(n.borderLeftWidth),j=g+p,R=f+y,U=I+E,H=T+A,ne=c?t.offsetHeight-H-t.clientHeight:0,q=a?t.offsetWidth-U-t.clientWidth:0,ie=i?j+U:0,x=i?R+H:0,le=r?r.width:La(n.width)-ie-q,ae=r?r.height:La(n.height)-x-ne,$e=le+j+q+U,tt=ae+R+ne+H,Qe=Tc({devicePixelContentBoxSize:Ef(Math.round(le*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Ef($e,tt,o),contentBoxSize:Ef(le,ae,o),contentRect:new qT(g,f,le,ae)});return yh.set(t,Qe),Qe},ZT=function(t,e,n){var r=KT(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case _d.DEVICE_PIXEL_CONTENT_BOX:return a;case _d.BORDER_BOX:return i;default:return o}},X2=function(){function t(e){var n=KT(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Tc([n.borderBoxSize]),this.contentBoxSize=Tc([n.contentBoxSize]),this.devicePixelContentBoxSize=Tc([n.devicePixelContentBoxSize])}return t}(),JT=function(t){if(XT(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},K2=function(){var t=1/0,e=[];Sc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var y=new X2(p.target),g=JT(p.target);c.push(y),p.lastReportedSize=ZT(p.target,p.observedBox),g<t&&(t=g)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},fw=function(t){Sc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(JT(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Z2=function(){var t=0;for(fw(t);H2();)t=K2(),fw(t);return U2()&&W2(),t>0},Ag,QT=[],J2=function(){return QT.splice(0).forEach(function(t){return t()})},Q2=function(t){if(!Ag){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return J2()}).observe(n,r),Ag=function(){n.textContent="".concat(e?e--:e++)}}QT.push(t),Ag()},eF=function(t){Q2(function(){requestAnimationFrame(t)})},Lh=0,tF=function(){return!!Lh},nF=250,rF={attributes:!0,characterData:!0,childList:!0,subtree:!0},dw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hw=function(t){return t===void 0&&(t=0),Date.now()+t},Ig=!1,iF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=nF),!Ig){Ig=!0;var r=hw(e);eF(function(){var i=!1;try{i=Z2()}finally{if(Ig=!1,e=r-hw(),!tF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,rF)};document.body?n():gd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),dw.forEach(function(n){return gd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),dw.forEach(function(n){return gd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Nm=new iF,pw=function(t){!Lh&&t>0&&Nm.start(),Lh+=t,!Lh&&Nm.stop()},oF=function(t){return!Gv(t)&&!Y2(t)&&getComputedStyle(t).display==="inline"},sF=function(){function t(e,n){this.target=e,this.observedBox=n||_d.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ZT(this.target,this.observedBox,!0);return oF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),aF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),bh=new WeakMap,gw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},wh=function(){function t(){}return t.connect=function(e,n){var r=new aF(e,n);bh.set(e,r)},t.observe=function(e,n,r){var i=bh.get(e),o=i.observationTargets.length===0;gw(i.observationTargets,n)<0&&(o&&Sc.push(i),i.observationTargets.push(new sF(n,r&&r.box)),pw(1),Nm.schedule())},t.unobserve=function(e,n){var r=bh.get(e),i=gw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Sc.splice(Sc.indexOf(r),1),r.observationTargets.splice(i,1),pw(-1))},t.disconnect=function(e){var n=this,r=bh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),lF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");wh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!lw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wh.unobserve(this,e)},t.prototype.disconnect=function(){wh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const eC=X.createContext({});function uF(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const qv=X.createContext(null),tC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function cF(t=!0){const e=X.useContext(qv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const Xv=typeof window<"u",fF=Xv?X.useLayoutEffect:X.useEffect,_o=t=>t;let Lf=_o,yu=_o;process.env.NODE_ENV!=="production"&&(Lf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},yu=(t,e)=>{if(!t)throw new Error(e)});function Kv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Pf=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},ja=t=>t*1e3,Cl=t=>t/1e3,dF={useManualTiming:!1};function hF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,y=!1,g=!1)=>{const E=g&&r?e:n;return y&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,f.process(p))}};return f}const xh=["read","resolveKeyframes","update","preRender","render","postRender"],pF=40;function nC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=xh.reduce((R,U)=>(R[U]=hF(o),R),{}),{read:c,resolveKeyframes:f,update:p,preRender:y,render:g,postRender:T}=a,E=()=>{const R=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(R-i.timestamp,pF),1),i.timestamp=R,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),y.process(i),g.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:xh.reduce((R,U)=>{const H=a[U];return R[U]=(ne,q=!1,ie=!1)=>(n||A(),H.schedule(ne,q,ie)),R},{}),cancel:R=>{for(let U=0;U<xh.length;U++)a[xh[U]].cancel(R)},state:i,steps:a}}const{schedule:Fn,cancel:bu,state:Ei,steps:Mg}=nC(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),rC=X.createContext({strict:!1}),mw={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"]},Of={};for(const t in mw)Of[t]={isEnabled:e=>mw[t].some(n=>!!e[n])};function gF(t){for(const e in t)Of[e]={...Of[e],...t[e]}}const mF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||mF.has(t)}let iC=t=>!tp(t);function vF(t){t&&(iC=e=>e.startsWith("on")?!tp(e):t(e))}try{vF(require("@emotion/is-prop-valid").default)}catch{}function yF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(iC(i)||n===!0&&tp(i)||!e&&!tp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const vw=new Set;function Dp(t,e,n){t||vw.has(e)||(console.warn(e),vw.add(e))}function bF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Dp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Pp=X.createContext({});function Rd(t){return typeof t=="string"||Array.isArray(t)}function Op(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Zv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jv=["initial",...Zv];function _p(t){return Op(t.animate)||Jv.some(e=>Rd(t[e]))}function oC(t){return!!(_p(t)||t.variants)}function wF(t,e){if(_p(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Rd(n)?n:void 0,animate:Rd(r)?r:void 0}}return t.inherit!==!1?e:{}}function xF(t){const{initial:e,animate:n}=wF(t,X.useContext(Pp));return X.useMemo(()=>({initial:e,animate:n}),[yw(e),yw(n)])}function yw(t){return Array.isArray(t)?t.join(" "):t}const SF=Symbol.for("motionComponentSymbol");function gf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function TF(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):gf(n)&&(n.current=r))},[e])}const Qv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),CF="framerAppearId",sC="data-"+Qv(CF),{schedule:ey}=nC(queueMicrotask,!1),aC=X.createContext({});function EF(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Pp),f=X.useContext(rC),p=X.useContext(qv),y=X.useContext(tC).reducedMotion,g=X.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y}));const T=g.current,E=X.useContext(aC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&kF(g.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[sC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return fF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),ey.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,I)}),j.current=!1))}),T}function kF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:lC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&gf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function lC(t){if(t)return t.options.allowProjection!==!1?t.projection:lC(t.parent)}function DF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&gF(t);function c(p,y){let g;const T={...X.useContext(tC),...p,layoutId:PF(p)},{isStatic:E}=T,A=xF(p),I=r(p,E);if(!E&&Xv){OF(T,t);const j=_F(T);g=j.MeasureLayout,A.visualElement=EF(i,I,T,e,j.ProjectionNode)}return Pe.jsxs(Pp.Provider,{value:A,children:[g&&A.visualElement?Pe.jsx(g,{visualElement:A.visualElement,...T}):null,n(i,p,TF(I,A.visualElement,y),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const f=X.forwardRef(c);return f[SF]=i,f}function PF({layoutId:t}){const e=X.useContext(eC).id;return e&&t!==void 0?e+"-"+t:t}function OF(t,e){const n=X.useContext(rC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Lf(!1,r):yu(!1,r)}}function _F(t){const{drag:e,layout:n}=Of;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const RF=["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 ty(t){return typeof t!="string"||t.includes("-")?!1:!!(RF.indexOf(t)>-1||/[A-Z]/u.test(t))}function bw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ny(t,e,n,r){if(typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=bw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const jm=t=>Array.isArray(t),AF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),IF=t=>jm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Fh(t){const e=ji(t)?t.get():t;return AF(e)?e.toValue():e}function MF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:LF(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const uC=t=>(e,n)=>{const r=X.useContext(Pp),i=X.useContext(qv),o=()=>MF(t,e,r,i);return n?o():uF(o)};function LF(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Fh(o[T]);let{initial:a,animate:c}=t;const f=_p(t),p=oC(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;if(g&&typeof g!="boolean"&&!Op(g)){const T=Array.isArray(g)?g:[g];for(let E=0;E<T.length;E++){const A=ny(t,T[E]);if(A){const{transitionEnd:I,transition:j,...R}=A;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in I)i[U]=I[U]}}}return i}const Ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Ff),cC=t=>e=>typeof e=="string"&&e.startsWith(t),fC=cC("--"),FF=cC("var(--"),ry=t=>FF(t)?NF.test(t.split("/*")[0].trim()):!1,NF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Pl=(t,e,n)=>n>e?e:n<t?t:n,Nf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ad={...Nf,transform:t=>Pl(0,1,t)},Sh={...Nf,default:1},Wd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Wd("deg"),Ba=Wd("%"),Ot=Wd("px"),jF=Wd("vh"),BF=Wd("vw"),ww={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},$F={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},VF={rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:Sh,scaleX:Sh,scaleY:Sh,scaleZ:Sh,skew:au,skewX:au,skewY:au,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Ad,originX:ww,originY:ww,originZ:Ot},xw={...Nf,transform:Math.round},iy={...$F,...VF,zIndex:xw,size:Ot,fillOpacity:Ad,strokeOpacity:Ad,numOctaves:xw},HF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UF=Ff.length;function WF(t,e,n){let r="",i=!0;for(let o=0;o<UF;o++){const a=Ff[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=dC(c,iy[a]);if(!f){i=!1;const y=HF[a]||a;r+=`${y}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function oy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Rc.has(f)){a=!0;continue}else if(fC(f)){i[f]=p;continue}else{const y=dC(p,iy[f]);f.startsWith("origin")?(c=!0,o[f]=y):r[f]=y}}if(e.transform||(a||n?r.transform=WF(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:y=0}=o;r.transformOrigin=`${f} ${p} ${y}`}}const zF={offset:"stroke-dashoffset",array:"stroke-dasharray"},YF={offset:"strokeDashoffset",array:"strokeDasharray"};function GF(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?zF:YF;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Sw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function qF(t,e,n){const r=Sw(e,t.x,t.width),i=Sw(n,t.y,t.height);return`${r} ${i}`}function sy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g){if(oy(t,p,g),y){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=qF(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&GF(T,a,c,f,!1)}const ay=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),hC=()=>({...ay(),attrs:{}}),ly=t=>typeof t=="string"&&t.toLowerCase()==="svg";function pC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const gC=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 mC(t,e,n,r){pC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(gC.has(i)?i:Qv(i),e.attrs[i])}const np={};function XF(t){Object.assign(np,t)}function vC(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!np[t]||t==="opacity")}function uy(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||vC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function yC(t,e,n){const r=uy(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=Ff.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function KF(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Tw=["x","y","width","height","cx","cy","r"],ZF={useVisualState:uC({scrapeMotionValuesFromProps:yC,createRenderState:hC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(Rc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Tw.length;c++){const f=Tw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{KF(n,r),Fn.render(()=>{sy(r,i,ly(n.tagName),t.transformTemplate),mC(n,r)})})}})},JF={useVisualState:uC({scrapeMotionValuesFromProps:uy,createRenderState:ay})};function bC(t,e,n){for(const r in e)!ji(e[r])&&!vC(r,n)&&(t[r]=e[r])}function QF({transformTemplate:t},e){return X.useMemo(()=>{const n=ay();return oy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function eN(t,e){const n=t.style||{},r={};return bC(r,n,t),Object.assign(r,QF(t,e)),r}function tN(t,e){const n={},r=eN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function nN(t,e,n,r){const i=X.useMemo(()=>{const o=hC();return sy(o,e,ly(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};bC(o,t.style,t),i.style={...o,...i.style}}return i}function rN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(ty(n)?nN:tN)(r,o,a,n),p=yF(r,typeof n=="string",t),y=n!==X.Fragment?{...p,...f,ref:i}:{},{children:g}=r,T=X.useMemo(()=>ji(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function iN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ty(r)?ZF:JF,preloadedFeatures:t,useRender:rN(i),createVisualElement:e,Component:r};return DF(a)}}function wC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Rp(t,e,n){const r=t.getProps();return ny(r,e,n!==void 0?n:r.custom,t)}const oN=Kv(()=>window.ScrollTimeline!==void 0);class sN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(oN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class aN extends sN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function cy(t,e){return t?t[e]||t.default||t:void 0}const Bm=2e4;function xC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Bm;)e+=n,r=t.next(e);return e>=Bm?1/0:e}function fy(t){return typeof t=="function"}function Cw(t,e){t.timeline=e,t.onfinish=null}const dy=t=>Array.isArray(t)&&typeof t[0]=="number",lN={linearEasing:void 0};function uN(t,e){const n=Kv(t);return()=>{var r;return(r=lN[e])!==null&&r!==void 0?r:n()}}const rp=uN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),SC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Pf(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function TC(t){return!!(typeof t=="function"&&rp()||!t||typeof t=="string"&&(t in $m||rp())||dy(t)||Array.isArray(t)&&t.every(TC))}const ld=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,$m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ld([0,.65,.55,1]),circOut:ld([.55,0,1,.45]),backIn:ld([.31,.01,.66,-.59]),backOut:ld([.33,1.53,.69,.99])};function CC(t,e){if(t)return typeof t=="function"&&rp()?SC(t,e):dy(t)?ld(t):Array.isArray(t)?t.map(n=>CC(n,e)||$m.easeOut):$m[t]}const sa={x:!1,y:!1};function EC(){return sa.x||sa.y}function cN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function kC(t,e){const n=cN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Ew(t){return e=>{e.pointerType==="touch"||EC()||t(e)}}function fN(t,e,n={}){const[r,i,o]=kC(t,n),a=Ew(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const y=Ew(g=>{p(g),f.removeEventListener("pointerleave",y)});f.addEventListener("pointerleave",y,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const DC=(t,e)=>e?t===e?!0:DC(t,e.parentElement):!1,hy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,dN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hN(t){return dN.has(t.tagName)||t.tabIndex!==-1}const ud=new WeakSet;function kw(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const pN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=kw(()=>{if(ud.has(n))return;Lg(n,"down");const i=kw(()=>{Lg(n,"up")}),o=()=>Lg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Dw(t){return hy(t)&&!EC()}function gN(t,e,n={}){const[r,i,o]=kC(t,n),a=c=>{const f=c.currentTarget;if(!Dw(c)||ud.has(f))return;ud.add(f);const p=e(c),y=(E,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",T),!(!Dw(E)||!ud.has(f))&&(ud.delete(f),typeof p=="function"&&p(E,{success:A}))},g=E=>{y(E,n.useGlobalTarget||DC(f,E.target))},T=E=>{y(E,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!hN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>pN(p,i),i)}),o}function mN(t){return t==="x"||t==="y"?sa[t]?null:(sa[t]=!0,()=>{sa[t]=!1}):sa.x||sa.y?null:(sa.x=sa.y=!0,()=>{sa.x=sa.y=!1})}const PC=new Set(["width","height","top","left","right","bottom",...Ff]);let Nh;function vN(){Nh=void 0}const $a={now:()=>(Nh===void 0&&$a.set(Ei.isProcessing||dF.useManualTiming?Ei.timestamp:performance.now()),Nh),set:t=>{Nh=t,queueMicrotask(vN)}};function py(t,e){t.indexOf(e)===-1&&t.push(e)}function gy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let my=class{constructor(){this.subscriptions=[]}add(e){return py(this.subscriptions,e),()=>gy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function OC(t,e){return e?t*(1e3/e):0}const Pw=30,yN=t=>!isNaN(parseFloat(t));let bN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=$a.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=$a.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=yN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Dp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new my);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=$a.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Pw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pw);return OC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Id(t,e){return new bN(t,e)}function wN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Id(n))}function xN(t,e){const n=Rp(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=IF(o[a]);wN(t,a,c)}}function SN(t){return!!(ji(t)&&t.add)}function Vm(t,e){const n=t.getValue("willChange");if(SN(n))return n.add(e)}function _C(t){return t.props[sC]}const RC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,TN=1e-7,CN=12;function EN(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=RC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>TN&&++c<CN);return a}function zd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>EN(o,0,1,t,n);return o=>o===0||o===1?o:RC(i(o),e,r)}const AC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,IC=t=>e=>1-t(1-e),MC=zd(.33,1.53,.69,.99),vy=IC(MC),LC=AC(vy),FC=t=>(t*=2)<1?.5*vy(t):.5*(2-Math.pow(2,-10*(t-1))),yy=t=>1-Math.sin(Math.acos(t)),NC=IC(yy),jC=AC(yy),BC=t=>/^0[^.\s]+$/u.test(t);function kN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||BC(t):!0}const md=t=>Math.round(t*1e5)/1e5,by=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function DN(t){return t==null}const PN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wy=(t,e)=>n=>!!(typeof n=="string"&&PN.test(n)&&n.startsWith(t)||e&&!DN(n)&&Object.prototype.hasOwnProperty.call(n,e)),$C=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(by);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},ON=t=>Pl(0,255,t),Fg={...Nf,transform:t=>Math.round(ON(t))},yc={test:wy("rgb","red"),parse:$C("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Fg.transform(t)+", "+Fg.transform(e)+", "+Fg.transform(n)+", "+md(Ad.transform(r))+")"};function _N(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hm={test:wy("#"),parse:_N,transform:yc.transform},mf={test:wy("hsl","hue"),parse:$C("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(md(e))+", "+Ba.transform(md(n))+", "+md(Ad.transform(r))+")"},Ni={test:t=>yc.test(t)||Hm.test(t)||mf.test(t),parse:t=>yc.test(t)?yc.parse(t):mf.test(t)?mf.parse(t):Hm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?yc.transform(t):mf.transform(t)},RN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(by))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(RN))===null||n===void 0?void 0:n.length)||0)>0}const VC="number",HC="color",IN="var",MN="var(",Ow="${}",LN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Md(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(LN,f=>(Ni.test(f)?(r.color.push(o),i.push(HC),n.push(Ni.parse(f))):f.startsWith(MN)?(r.var.push(o),i.push(IN),n.push(f)):(r.number.push(o),i.push(VC),n.push(parseFloat(f))),++o,Ow)).split(Ow);return{values:n,split:c,indexes:r,types:i}}function UC(t){return Md(t).values}function WC(t){const{split:e,types:n}=Md(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===VC?o+=md(i[a]):c===HC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const FN=t=>typeof t=="number"?0:t;function NN(t){const e=UC(t);return WC(t)(e.map(FN))}const wu={test:AN,parse:UC,createTransformer:WC,getAnimatableNone:NN},jN=new Set(["brightness","contrast","saturate","opacity"]);function BN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(by)||[];if(!r)return t;const i=n.replace(r,"");let o=jN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const $N=/\b([a-z-]*)\(.*?\)/gu,Um={...wu,getAnimatableNone:t=>{const e=t.match($N);return e?e.map(BN).join(" "):t}},VN={...iy,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Um,WebkitFilter:Um},xy=t=>VN[t];function zC(t,e){let n=xy(t);return n!==Um&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const HN=new Set(["auto","none","0"]);function UN(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!HN.has(o)&&Md(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=zC(n,i)}const _w=t=>t===Nf||t===Ot,Rw=(t,e)=>parseFloat(t.split(", ")[e]),Aw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Rw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Rw(o[1],t):0}},WN=new Set(["x","y","z"]),zN=Ff.filter(t=>!WN.has(t));function YN(t){const e=[];return zN.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const _f={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Aw(4,13),y:Aw(5,14)};_f.translateX=_f.x;_f.translateY=_f.y;const Cc=new Set;let Wm=!1,zm=!1;function YC(){if(zm){const t=Array.from(Cc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=YN(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zm=!1,Wm=!1,Cc.forEach(t=>t.complete()),Cc.clear()}function GC(){Cc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(zm=!0)})}function GN(){GC(),YC()}class Sy{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cc.add(this),Wm||(Wm=!0,Fn.read(GC),Fn.resolveKeyframes(YC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const f=r.readValue(n,c);f!=null&&(e[0]=f)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const qC=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),qN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XN(t){const e=qN.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const KN=4;function XC(t,e,n=1){yu(n<=KN,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=XN(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return qC(a)?parseFloat(a):a}return ry(i)?XC(i,e,n+1):i}const KC=t=>e=>e.test(t),ZN={test:t=>t==="auto",parse:t=>t},ZC=[Nf,Ot,Ba,au,BF,jF,ZN],Iw=t=>ZC.find(KC(t));class JC extends Sy{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),ry(p))){const y=XC(p,n.current);y!==void 0&&(e[f]=y),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!PC.has(r)||e.length!==2)return;const[i,o]=e,a=Iw(i),c=Iw(o);if(a!==c)if(_w(a)&&_w(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)kN(e[i])&&r.push(i);r.length&&UN(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_f[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=_f[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Mw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wu.test(t)||t==="0")&&!t.startsWith("url("));function JN(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function QN(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Mw(i,e),c=Mw(o,e);return Lf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:JN(t)||(n==="spring"||fy(n))&&r}const ej=t=>t!==null;function Ap(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(ej),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const tj=40;class QC{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=$a.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>tj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&GN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=$a.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!QN(e,r,i,o))if(a)this.options.duration=0;else{f&&f(Ap(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const y=this.initPlayback(e,n);y!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...y},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function Ng(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nj({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=Ng(f,c,t+1/3),o=Ng(f,c,t),a=Ng(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function ip(t,e){return n=>n>0?e:t}const jg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},rj=[Hm,yc,mf],ij=t=>rj.find(e=>e.test(t));function Lw(t){const e=ij(t);if(Lf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===mf&&(n=nj(n)),n}const Fw=(t,e)=>{const n=Lw(t),r=Lw(e);if(!n||!r)return ip(t,e);const i={...n};return o=>(i.red=jg(n.red,r.red,o),i.green=jg(n.green,r.green,o),i.blue=jg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),yc.transform(i))},oj=(t,e)=>n=>e(t(n)),Yd=(...t)=>t.reduce(oj),Ym=new Set(["none","hidden"]);function sj(t,e){return Ym.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function aj(t,e){return n=>Kn(t,e,n)}function Ty(t){return typeof t=="number"?aj:typeof t=="string"?ry(t)?ip:Ni.test(t)?Fw:cj:Array.isArray(t)?eE:typeof t=="object"?Ni.test(t)?Fw:lj:ip}function eE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Ty(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function lj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Ty(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function uj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const cj=(t,e)=>{const n=wu.createTransformer(e),r=Md(t),i=Md(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ym.has(t)&&!i.values.length||Ym.has(e)&&!r.values.length?sj(t,e):Yd(eE(uj(r,i),i.values),n):(Lf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ip(t,e))};function tE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Ty(t)(t,e)}const fj=5;function nE(t,e,n){const r=Math.max(e-fj,0);return OC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Nw=.001;function dj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Lf(t<=ja(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=Pl(Xn.minDamping,Xn.maxDamping,a),t=Pl(Xn.minDuration,Xn.maxDuration,Cl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=Gm(p,a),A=Math.exp(-g);return Nw-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=Gm(Math.pow(p,2),a);return(-i(p)+Nw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=pj(i,o,c);if(t=ja(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const hj=12;function pj(t,e,n){let r=n;for(let i=1;i<hj;i++)r=r-t(r)/e(r);return r}function Gm(t,e){return t*Math.sqrt(1-e*e)}const gj=["duration","bounce"],mj=["stiffness","damping","mass"];function jw(t,e){return e.some(n=>t[n]!==void 0)}function vj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!jw(t,mj)&&jw(t,gj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Pl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=dj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function rE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:f,damping:p,mass:y,duration:g,velocity:T,isResolvedFromDuration:E}=vj({...n,velocity:-Cl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(f*y)),j=a-o,R=Cl(Math.sqrt(f/y)),U=Math.abs(j)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let H;if(I<1){const q=Gm(R,I);H=ie=>{const x=Math.exp(-I*R*ie);return a-x*((A+I*R*j)/q*Math.sin(q*ie)+j*Math.cos(q*ie))}}else if(I===1)H=q=>a-Math.exp(-R*q)*(j+(A+R*j)*q);else{const q=R*Math.sqrt(I*I-1);H=ie=>{const x=Math.exp(-I*R*ie),le=Math.min(q*ie,300);return a-x*((A+I*R*j)*Math.sinh(le)+q*j*Math.cosh(le))/q}}const ne={calculatedDuration:E&&g||null,next:q=>{const ie=H(q);if(E)c.done=q>=g;else{let x=0;I<1&&(x=q===0?ja(A):nE(H,q,ie));const le=Math.abs(x)<=r,ae=Math.abs(a-ie)<=i;c.done=le&&ae}return c.value=c.done?a:ie,c},toString:()=>{const q=Math.min(xC(ne),Bm),ie=SC(x=>ne.next(q*x).value,q,30);return q+"ms "+ie}};return ne}function Bw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const U=le=>-I*Math.exp(-le/r),H=le=>R+U(le),ne=le=>{const ae=U(le),$e=H(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:$e};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=rE({keyframes:[T.value,A(T.value)],velocity:nE(H,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>=q?ie.next(le-q):(!ae&&ne(le),T)}}}const yj=zd(.42,0,1,1),bj=zd(0,0,.58,1),iE=zd(.42,0,.58,1),wj=t=>Array.isArray(t)&&typeof t[0]!="number",$w={linear:_o,easeIn:yj,easeInOut:iE,easeOut:bj,circIn:yy,circInOut:jC,circOut:NC,backIn:vy,backInOut:LC,backOut:MC,anticipate:FC},Vw=t=>{if(dy(t)){yu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return zd(e,n,r,i)}else if(typeof t=="string")return yu($w[t]!==void 0,`Invalid easing type '${t}'`),$w[t];return t};function xj(t,e,n){const r=[],i=n||tE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||_o:e;c=Yd(f,c)}r.push(c)}return r}function Sj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(yu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=xj(e,r,i),f=c.length,p=y=>{if(a&&y<t[0])return e[0];let g=0;if(f>1)for(;g<t.length-2&&!(y<t[g+1]);g++);const T=Pf(t[g],t[g+1],y);return c[g](T)};return n?y=>p(Pl(t[0],t[o-1],y)):p}function Tj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Pf(0,e,r);t.push(Kn(n,1,i))}}function Cj(t){const e=[0];return Tj(e,t.length-1),e}function Ej(t,e){return t.map(n=>n*e)}function kj(t,e){return t.map(()=>e||iE).splice(0,t.length-1)}function op({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=wj(r)?r.map(Vw):Vw(r),o={done:!1,value:e[0]},a=Ej(n&&n.length===e.length?n:Cj(e),t),c=Sj(a,e,{ease:Array.isArray(i)?i:kj(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const Dj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>bu(e),now:()=>Ei.isProcessing?Ei.timestamp:$a.now()}},Pj={decay:Bw,inertia:Bw,tween:op,keyframes:op,spring:rE},Oj=t=>t/100;class Cy extends QC{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Sy,c=(f,p)=>this.onKeyframesResolved(f,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=fy(n)?n:Pj[n]||op;let f,p;c!==op&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=Yd(Oj,tE(e[0],e[1])),e=[0,100]);const y=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),y.calculatedDuration===null&&(y.calculatedDuration=xC(y));const{calculatedDuration:g}=y,T=g+i,E=T*(r+1)-i;return{generator:y,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:le}=this.options;return{done:!0,value:le[le.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:y,resolvedDuration:g}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-y/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const R=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?R<0:R>y;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=y);let H=this.currentTime,ne=o;if(E){const le=Math.min(this.currentTime,y)/g;let ae=Math.floor(le),$e=le%1;!$e&&le>=1&&($e=1),$e===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?($e=1-$e,I&&($e-=I/g)):A==="mirror"&&(ne=a)),H=Pl(0,1,$e)*g}const q=U?{done:!1,value:f[0]}:ne.next(H);c&&(q.value=c(q.value));let{done:ie}=q;!U&&p!==null&&(ie=this.speed>=0?this.currentTime>=y:this.currentTime<=0);const x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ie);return x&&i!==void 0&&(q.value=Ap(f,this.options,i)),j&&j(q.value),x&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Cl(e.calculatedDuration):0}get time(){return Cl(this.currentTime)}set time(e){e=ja(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Cl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Dj,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const _j=new Set(["opacity","clipPath","filter","transform"]);function Rj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=CC(c,i);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Aj=Kv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sp=10,Ij=2e4;function Mj(t){return fy(t.type)||t.type==="spring"||!TC(t.ease)}function Lj(t,e){const n=new Cy({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<Ij;)r=n.sample(o),i.push(r.value),o+=sp;return{times:void 0,keyframes:i,duration:o-sp,ease:"linear"}}const oE={anticipate:FC,backInOut:LC,circInOut:jC};function Fj(t){return t in oE}class Hw extends QC{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new JC(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&rp()&&Fj(o)&&(o=oE[o]),Mj(this.options)){const{onComplete:g,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=Lj(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const y=Rj(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return y.startTime=p??this.calcStartTime(),this.pendingTimeline?(Cw(y,this.pendingTimeline),this.pendingTimeline=void 0):y.onfinish=()=>{const{onComplete:g}=this.options;c.set(Ap(e,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:y,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Cl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Cl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ja(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _o;const{animation:r}=n;Cw(r,e)}return _o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:y,onComplete:g,element:T,...E}=this.options,A=new Cy({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=ja(this.time);p.setWithVelocity(A.sample(I-sp).value,A.sample(I).value,sp)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:p}=n.owner.getProps();return Aj()&&r&&_j.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const Nj={type:"spring",stiffness:500,damping:25,restSpeed:10},jj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Bj={type:"keyframes",duration:.8},$j={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vj=(t,{keyframes:e})=>e.length>2?Bj:Rc.has(t)?t.startsWith("scale")?jj(e[1]):Nj:$j;function Hj({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}const Ey=(t,e,n,r={},i,o)=>a=>{const c=cy(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ja(f);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};Hj(c)||(y={...y,...Vj(t,y)}),y.duration&&(y.duration=ja(y.duration)),y.repeatDelay&&(y.repeatDelay=ja(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let g=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(y.duration=0,y.delay===0&&(g=!0)),g&&!o&&e.get()!==void 0){const T=Ap(y.keyframes,c);if(T!==void 0)return Fn.update(()=>{y.onUpdate(T),y.onComplete()}),new aN([])}return!o&&Hw.supports(y)?new Hw(y):new Cy(y)};function Uj({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function sE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in f){const T=t.getValue(g,(o=t.latestValues[g])!==null&&o!==void 0?o:null),E=f[g];if(E===void 0||y&&Uj(y,g))continue;const A={delay:n,...cy(a||{},g)};let I=!1;if(window.MotionHandoffAnimation){const R=_C(t);if(R){const U=window.MotionHandoffAnimation(R,g,Fn);U!==null&&(A.startTime=U,I=!0)}}Vm(t,g),T.start(Ey(g,T,E,t.shouldReduceMotion&&PC.has(g)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&xN(t,c)})}),p}function qm(t,e,n={}){var r;const i=Rp(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(sE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:g,staggerDirection:T}=o;return Wj(t,e,y+p,g,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,y]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>y())}else return Promise.all([a(),c(n.delay)])}function Wj(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(zj).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(qm(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function zj(t,e){return t.sortNodePosition(e)}function Yj(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=qm(t,e,n);else{const i=typeof e=="function"?Rp(t,e,n.custom):e;r=Promise.all(sE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const Gj=Jv.length;function aE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?aE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Gj;n++){const r=Jv[n],i=t.props[r];(Rd(i)||i===!1)&&(e[r]=i)}return e}const qj=[...Zv].reverse(),Xj=Zv.length;function Kj(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Yj(t,n,r)))}function Zj(t){let e=Kj(t),n=Uw(),r=!0;const i=f=>(p,y)=>{var g;const T=Rp(t,y,f==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,y=aE(t.parent)||{},g=[],T=new Set;let E={},A=1/0;for(let j=0;j<Xj;j++){const R=qj[j],U=n[R],H=p[R]!==void 0?p[R]:y[R],ne=Rd(H),q=R===f?U.isActive:null;q===!1&&(A=j);let ie=H===y[R]&&H!==p[R]&≠if(ie&&r&&t.manuallyAnimateOnMount&&(ie=!1),U.protectedKeys={...E},!U.isActive&&q===null||!H&&!U.prevProp||Op(H)||typeof H=="boolean")continue;const x=Jj(U.prevProp,H);let le=x||R===f&&U.isActive&&!ie&&ne||j>A&&ne,ae=!1;const $e=Array.isArray(H)?H:[H];let tt=$e.reduce(i(R),{});q===!1&&(tt={});const{prevResolvedValues:Qe={}}=U,Ye={...Qe,...tt},Oe=ke=>{le=!0,T.has(ke)&&(ae=!0,T.delete(ke)),U.needsAnimating[ke]=!0;const Le=t.getValue(ke);Le&&(Le.liveStyle=!1)};for(const ke in Ye){const Le=tt[ke],et=Qe[ke];if(E.hasOwnProperty(ke))continue;let me=!1;jm(Le)&&jm(et)?me=!wC(Le,et):me=Le!==et,me?Le!=null?Oe(ke):T.add(ke):Le!==void 0&&T.has(ke)?Oe(ke):U.protectedKeys[ke]=!0}U.prevProp=H,U.prevResolvedValues=tt,U.isActive&&(E={...E,...tt}),r&&t.blockInitialAnimation&&(le=!1),le&&(!(ie&&x)||ae)&&g.push(...$e.map(ke=>({animation:ke,options:{type:R}})))}if(T.size){const j={};T.forEach(R=>{const U=t.getBaseTarget(R),H=t.getValue(R);H&&(H.liveStyle=!0),j[R]=U??null}),g.push({animation:j})}let I=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(g):Promise.resolve()}function c(f,p){var y;if(n[f].isActive===p)return Promise.resolve();(y=t.variantChildren)===null||y===void 0||y.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(f,p)}),n[f].isActive=p;const g=a(f);for(const T in n)n[T].protectedKeys={};return g}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uw(),r=!0}}}function Jj(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!wC(e,t):!1}function ac(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uw(){return{animate:ac(!0),whileInView:ac(),whileHover:ac(),whileTap:ac(),whileDrag:ac(),whileFocus:ac(),exit:ac()}}let ku=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Qj=class extends ku{constructor(e){super(e),e.animationState||(e.animationState=Zj(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Op(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},eB=0,tB=class extends ku{constructor(){super(...arguments),this.id=eB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const nB={animation:{Feature:Qj},exit:{Feature:tB}};function Ld(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Gd(t){return{point:{x:t.pageX,y:t.pageY}}}const rB=t=>e=>hy(e)&&t(e,Gd(e));function vd(t,e,n,r){return Ld(t,e,rB(n),r)}const Ww=(t,e)=>Math.abs(t-e);function iB(t,e){const n=Ww(t.x,e.x),r=Ww(t.y,e.y);return Math.sqrt(n**2+r**2)}let lE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=$g(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=iB(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ei;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Bg(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=$g(g.type==="pointercancel"?this.lastMoveEventInfo:Bg(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!hy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Gd(e),c=Bg(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ei;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,$g(c,this.history)),this.removeListeners=Yd(vd(this.contextWindow,"pointermove",this.handlePointerMove),vd(this.contextWindow,"pointerup",this.handlePointerUp),vd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),bu(this.updatePoint)}};function Bg(t,e){return e?{point:e(t.point)}:t}function zw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function $g({point:t},e){return{point:t,delta:zw(t,uE(e)),offset:zw(t,oB(e)),velocity:sB(e,.1)}}function oB(t){return t[0]}function uE(t){return t[t.length-1]}function sB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=uE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>ja(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const cE=1e-4,aB=1-cE,lB=1+cE,fE=.01,uB=0-fE,cB=0+fE;function Qo(t){return t.max-t.min}function fB(t,e,n){return Math.abs(t-e)<=n}function Yw(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Qo(n)/Qo(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=aB&&t.scale<=lB||isNaN(t.scale))&&(t.scale=1),(t.translate>=uB&&t.translate<=cB||isNaN(t.translate))&&(t.translate=0)}function yd(t,e,n,r){Yw(t.x,e.x,n.x,r?r.originX:void 0),Yw(t.y,e.y,n.y,r?r.originY:void 0)}function Gw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function dB(t,e,n){Gw(t.x,e.x,n.x),Gw(t.y,e.y,n.y)}function qw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function bd(t,e,n){qw(t.x,e.x,n.x),qw(t.y,e.y,n.y)}function hB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function Xw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pB(t,{top:e,left:n,bottom:r,right:i}){return{x:Xw(t.x,n,i),y:Xw(t.y,e,r)}}function Kw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function gB(t,e){return{x:Kw(t.x,e.x),y:Kw(t.y,e.y)}}function mB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=Pf(e.min,e.max-r,t.min):r>i&&(n=Pf(t.min,t.max-i,e.min)),Pl(0,1,n)}function vB(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Xm=.35;function yB(t=Xm){return t===!1?t=0:t===!0&&(t=Xm),{x:Zw(t,"left","right"),y:Zw(t,"top","bottom")}}function Zw(t,e,n){return{min:Jw(t,e),max:Jw(t,n)}}function Jw(t,e){return typeof t=="number"?t:t[e]||0}const Qw=()=>({translate:0,scale:1,origin:0,originPoint:0}),vf=()=>({x:Qw(),y:Qw()}),ex=()=>({min:0,max:0}),gr=()=>({x:ex(),y:ex()});function Es(t){return[t("x"),t("y")]}function dE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function bB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wB(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vg(t){return t===void 0||t===1}function Km({scale:t,scaleX:e,scaleY:n}){return!Vg(t)||!Vg(e)||!Vg(n)}function fc(t){return Km(t)||hE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hE(t){return tx(t.x)||tx(t.y)}function tx(t){return t&&t!=="0%"}function ap(t,e,n){const r=t-n,i=e*r;return n+i}function nx(t,e,n,r,i){return i!==void 0&&(t=ap(t,i,r)),ap(t,n,r)+e}function Zm(t,e=0,n=1,r,i){t.min=nx(t.min,e,n,r,i),t.max=nx(t.max,e,n,r,i)}function pE(t,{x:e,y:n}){Zm(t.x,e.translate,e.scale,e.originPoint),Zm(t.y,n.translate,n.scale,n.originPoint)}const rx=.999999999999,ix=1.0000000000001;function xB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,pE(t,a)),r&&fc(o.latestValues)&&bf(t,o.latestValues))}e.x<ix&&e.x>rx&&(e.x=1),e.y<ix&&e.y>rx&&(e.y=1)}function yf(t,e){t.min=t.min+e,t.max=t.max+e}function ox(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Zm(t,e,n,o,r)}function bf(t,e){ox(t.x,e.x,e.scaleX,e.scale,e.originX),ox(t.y,e.y,e.scaleY,e.scale,e.originY)}function gE(t,e){return dE(wB(t.getBoundingClientRect(),e))}function SB(t,e,n){const r=gE(t,n),{scroll:i}=e;return i&&(yf(r.x,i.offset.x),yf(r.y,i.offset.y)),r}const mE=({current:t})=>t?t.ownerDocument.defaultView:null,TB=new WeakMap;let CB=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Gd(y).point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Es(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Ba.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[j];H&&(R=Qo(H)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Fn.postRender(()=>A(y,g)),Vm(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=EB(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>Es(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new lE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:mE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Th(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=hB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&gf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pB(i.layoutBox,n):this.constraints=!1,this.elastic=yB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Es(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=vB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gf(e))return!1;const r=e.current;yu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=SB(r,i.root,this.visualElement.getTransformPagePoint());let a=gB(i.layout.layoutBox,o);if(n){const c=n(bB(a));this.hasMutatedConstraints=!!c,c&&(a=dE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Es(y=>{if(!Th(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Vm(this.visualElement,e),r.start(Ey(e,r,0,n,this.visualElement,!1))}stopAnimation(){Es(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Es(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Es(n=>{const{drag:r}=this.getProps();if(!Th(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!gf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Es(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();i[a]=mB({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Es(a=>{if(!Th(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;TB.set(this.visualElement,this);const e=this.visualElement.current,n=vd(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();gf(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Ld(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Es(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Xm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Th(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function EB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let kB=class extends ku{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new CB(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_o}unmount(){this.removeGroupControls(),this.removeListeners()}};const sx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let DB=class extends ku{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new lE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:sx(e),onStart:sx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=vd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const jh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ax(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const rd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=ax(t,e.target.x),r=ax(t,e.target.y);return`${n}% ${r}%`}},PB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=wu.parse(t);if(i.length>5)return r;const o=wu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let OB=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;XF(_B),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()})),jh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ey.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function vE(t){const[e,n]=cF(),r=X.useContext(eC);return Pe.jsx(OB,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(aC),isPresent:e,safeToRemove:n})}const _B={borderRadius:{...rd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rd,borderTopRightRadius:rd,borderBottomLeftRadius:rd,borderBottomRightRadius:rd,boxShadow:PB};function RB(t,e,n){const r=ji(t)?t:Id(t);return r.start(Ey("",r,e,n)),r.animation}function AB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const IB=(t,e)=>t.depth-e.depth;let MB=class{constructor(){this.children=[],this.isDirty=!1}add(e){py(this.children,e),this.isDirty=!0}remove(e){gy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(IB),this.isDirty=!1,this.children.forEach(e)}};function LB(t,e){const n=$a.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(bu(r),t(o-e))};return Fn.read(r,!0),()=>bu(r)}const yE=["TopLeft","TopRight","BottomLeft","BottomRight"],FB=yE.length,lx=t=>typeof t=="string"?parseFloat(t):t,ux=t=>typeof t=="number"||Ot.test(t);function NB(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,jB(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,BB(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<FB;a++){const c=`border${yE[a]}Radius`;let f=cx(e,c),p=cx(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||ux(f)===ux(p)?(t[c]=Math.max(Kn(lx(f),lx(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function cx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const jB=bE(0,.5,NC),BB=bE(.5,.95,_o);function bE(t,e,n){return r=>r<t?0:r>e?1:n(Pf(t,e,r))}function fx(t,e){t.min=e.min,t.max=e.max}function xs(t,e){fx(t.x,e.x),fx(t.y,e.y)}function dx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function hx(t,e,n,r,i){return t-=e,t=ap(t,1/n,r),i!==void 0&&(t=ap(t,1/i,r)),t}function $B(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=hx(t.min,e,n,c,i),t.max=hx(t.max,e,n,c,i)}function px(t,e,[n,r,i],o,a){$B(t,e[n],e[r],e[i],e.scale,o,a)}const VB=["x","scaleX","originX"],HB=["y","scaleY","originY"];function gx(t,e,n,r){px(t.x,e,VB,n?n.x:void 0,r?r.x:void 0),px(t.y,e,HB,n?n.y:void 0,r?r.y:void 0)}function mx(t){return t.translate===0&&t.scale===1}function wE(t){return mx(t.x)&&mx(t.y)}function vx(t,e){return t.min===e.min&&t.max===e.max}function UB(t,e){return vx(t.x,e.x)&&vx(t.y,e.y)}function yx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function xE(t,e){return yx(t.x,e.x)&&yx(t.y,e.y)}function bx(t){return Qo(t.x)/Qo(t.y)}function wx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let WB=class{constructor(){this.members=[]}add(e){py(this.members,e),e.scheduleRender()}remove(e){if(gy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function zB(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:y,rotateX:g,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const dc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},cd=typeof window<"u"&&window.MotionDebug!==void 0,Hg=["","X","Y","Z"],YB={visibility:"hidden"},xx=1e3;let GB=0;function Ug(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function SE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=_C(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&SE(r)}function TE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=GB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cd&&(dc.totalNodes=dc.resolvedTargetDeltas=dc.recalculatedProjection=0),this.nodes.forEach(KB),this.nodes.forEach(t$),this.nodes.forEach(n$),this.nodes.forEach(ZB),cd&&window.MotionDebug.record(dc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new MB)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new my),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=AB(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=LB(T,250),jh.hasAnimatedSinceResize&&(jh.hasAnimatedSinceResize=!1,this.nodes.forEach(Tx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||a$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!xE(this.targetLayout,A)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,H);const ne={...cy(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||Tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&SE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sx);return}this.isUpdating||this.nodes.forEach(QB),this.isUpdating=!1,this.nodes.forEach(e$),this.nodes.forEach(qB),this.nodes.forEach(XB),this.clearAllSnapshots();const c=$a.now();Ei.delta=Pl(0,1e3/60,c-Ei.timestamp),Ei.timestamp=c,Ei.isProcessing=!0,Mg.update.process(Ei),Mg.preRender.process(Ei),Mg.render.process(Ei),Ei.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ey.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(JB),this.sharedNodes.forEach(i$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!wE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||fc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),l$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(u$))){const{scroll:y}=this.root;y&&(yf(f.x,y.offset.x),yf(f.y,y.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(xs(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:g,options:T}=y;y!==this.root&&g&&T.layoutScroll&&(g.wasRoot&&xs(f,a),yf(f.x,g.offset.x),yf(f.y,g.offset.y))}return f}applyTransform(a,c=!1){const f=gr();xs(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&bf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),fc(y.latestValues)&&bf(f,y.latestValues)}return fc(this.latestValues)&&bf(f,this.latestValues),f}removeTransform(a){const c=gr();xs(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!fc(p.latestValues))continue;Km(p.latestValues)&&p.updateSnapshot();const y=gr(),g=p.measurePageBox();xs(y,g),gx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return fc(this.latestValues)&&gx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ei.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Ei.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),bd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xs(this.target,this.layout.layoutBox),pE(this.target,this.targetDelta)):xs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),bd(this.relativeTargetOrigin,this.target,E.target),xs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}cd&&dc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Km(this.parent.latestValues)||hE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ei.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;xs(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;xB(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(dx(this.prevProjectionDelta.x,this.projectionDelta.x),dx(this.prevProjectionDelta.y,this.projectionDelta.y)),yd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!wx(this.projectionDelta.x,this.prevProjectionDelta.x)||!wx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),cd&&dc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vf(),this.projectionDelta=vf(),this.projectionDeltaWithTransform=vf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=vf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(s$));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const q=ne/1e3;Cx(g.x,a.x,q),Cx(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o$(this.relativeTarget,this.relativeTargetOrigin,T,q),H&&UB(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=gr()),xs(H,this.relativeTarget)),I&&(this.animationValues=y,NB(y,p,this.latestValues,q,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{jh.hasAnimatedSinceResize=!0,this.currentAnimation=RB(0,xx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&CE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const g=Qo(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=Qo(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}xs(c,f),bf(c,y),yd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new WB),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Ug("z",a,p,this.animationValues);for(let y=0;y<Hg.length;y++)Ug(`rotate${Hg[y]}`,a,p,this.animationValues),Ug(`skew${Hg[y]}`,a,p,this.animationValues);a.render();for(const y in p)a.setStaticValue(y,p[y]),this.animationValues&&(this.animationValues[y]=p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return YB;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Fh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Fh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!fc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=zB(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in np){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=np[I],U=p.transform==="none"?T[I]:j(T[I],g);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=g===this?Fh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Sx),this.root.sharedNodes.clear()}}}function qB(t){t.updateLayout()}function XB(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Es(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(T);T.min=r[g].min,T.max=T.min+E}):CE(o,n.layoutBox,r)&&Es(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=vf();yd(c,r,n.layoutBox);const f=vf();a?yd(f,t.applyTransform(i,!0),n.measuredBox):yd(f,r,n.layoutBox);const p=!wE(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=gr();bd(A,n.layoutBox,T.layoutBox);const I=gr();bd(I,r,E.layoutBox),xE(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function KB(t){cd&&dc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ZB(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function JB(t){t.clearSnapshot()}function Sx(t){t.clearMeasurements()}function QB(t){t.isLayoutDirty=!1}function e$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function t$(t){t.resolveTargetDelta()}function n$(t){t.calcProjection()}function r$(t){t.resetSkewAndRotation()}function i$(t){t.removeLeadSnapshot()}function Cx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ex(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function o$(t,e,n,r){Ex(t.x,e.x,n.x,r),Ex(t.y,e.y,n.y,r)}function s$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const a$={duration:.45,ease:[.4,0,.1,1]},kx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Dx=kx("applewebkit/")&&!kx("chrome/")?Math.round:_o;function Px(t){t.min=Dx(t.min),t.max=Dx(t.max)}function l$(t){Px(t.x),Px(t.y)}function CE(t,e,n){return t==="position"||t==="preserve-aspect"&&!fB(bx(e),bx(n),.2)}function u$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const c$=TE({attachResizeListener:(t,e)=>Ld(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Wg={current:void 0},EE=TE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Wg.current){const t=new c$({});t.mount(window),t.setOptions({layoutScroll:!0}),Wg.current=t}return Wg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),f$={pan:{Feature:DB},drag:{Feature:kB,ProjectionNode:EE,MeasureLayout:vE}};function Ox(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,Gd(e)))}let d$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=fN(e,n=>(Ox(this.node,n,"Start"),r=>Ox(this.node,r,"End"))))}unmount(){}},h$=class extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yd(Ld(this.node.current,"focus",()=>this.onFocus()),Ld(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function _x(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,Gd(e)))}let p$=class extends ku{mount(){const{current:e}=this.node;e&&(this.unmount=gN(e,n=>(_x(this.node,n,"Start"),(r,{success:i})=>_x(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Jm=new WeakMap,zg=new WeakMap,g$=t=>{const e=Jm.get(t.target);e&&e(t)},m$=t=>{t.forEach(g$)};function v$({root:t,...e}){const n=t||document;zg.has(n)||zg.set(n,{});const r=zg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(m$,{root:t,...e})),r[i]}function y$(t,e,n){const r=v$(e);return Jm.set(t,n),r.observe(t),()=>{Jm.delete(t),r.unobserve(t)}}const b$={some:0,all:1};let w$=class extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:b$[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return y$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(x$(e,n))&&this.startObserver()}unmount(){}};function x$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const S$={inView:{Feature:w$},tap:{Feature:p$},focus:{Feature:h$},hover:{Feature:d$}},T$={layout:{ProjectionNode:EE,MeasureLayout:vE}},Qm={current:null},kE={current:!1};function C$(){if(kE.current=!0,!!Xv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qm.current=t.matches;t.addListener(e),e()}else Qm.current=!1}const E$=[...ZC,Ni,wu],k$=t=>E$.find(KC(t)),Rx=new WeakMap;function D$(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ji(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Dp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(ji(o))t.addValue(r,Id(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Id(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ax=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let P$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Sy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=$a.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:y}=a;this.onUpdate=y,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=_p(n),this.isVariantNode=oC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];f[E]!==void 0&&ji(A)&&A.set(f[E],!1)}}mount(e){this.current=e,Rx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),kE.current||C$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qm.current,process.env.NODE_ENV!=="production"&&Dp(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(){Rx.delete(this.current),this.projection&&this.projection.unmount(),bu(this.notifyUpdate),bu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Rc.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Of){const n=Of[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ax.length;r++){const i=Ax[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=D$(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Id(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(qC(i)||BC(i))?i=parseFloat(i):!k$(i)&&wu.test(n)&&(i=zC(e,n)),this.setBaseTarget(e,ji(i)?i.get():i)),ji(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ny(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!ji(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new my),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},DE=class extends P${constructor(){super(...arguments),this.KeyframeResolver=JC}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ji(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function O$(t){return window.getComputedStyle(t)}let _$=class extends DE{constructor(){super(...arguments),this.type="html",this.renderInstance=pC}readValueFromInstance(e,n){if(Rc.has(n)){const r=xy(n);return r&&r.default||0}else{const r=O$(e),i=(fC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return gE(e,n)}build(e,n,r){oy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return uy(e,n,r)}},R$=class extends DE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=xy(n);return r&&r.default||0}return n=gC.has(n)?n:Qv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return yC(e,n,r)}build(e,n,r){sy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){mC(e,n,r,i)}mount(e){this.isSVGTag=ly(e.tagName),super.mount(e)}};const A$=(t,e)=>ty(t)?new R$(e):new _$(e,{allowProjection:t!==X.Fragment}),I$=iN({...nB,...S$,...f$,...T$},A$),M$=bF(I$);function ev(t,e,n){var r,i,o,a,c;e==null&&(e=100);function f(){var y=Date.now()-a;y<e&&y>=0?r=setTimeout(f,e-y):(r=null,n||(c=t.apply(o,i),o=i=null))}var p=function(){o=this,i=arguments,a=Date.now();var y=n&&!r;return r||(r=setTimeout(f,e)),y&&(c=t.apply(o,i),o=i=null),c};return p.clear=function(){r&&(clearTimeout(r),r=null)},p.flush=function(){r&&(c=t.apply(o,i),o=i=null,clearTimeout(r),r=null)},p}ev.debounce=ev;var L$=ev;const Ix=Eu(L$);function F$(t){let{debounce:e,scroll:n,polyfill:r,offsetSize:i}=t===void 0?{debounce:0,scroll:!1,offsetSize:!1}:t;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,c]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),f=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),p=e?typeof e=="number"?e:e.scroll:null,y=e?typeof e=="number"?e:e.resize:null,g=X.useRef(!1);X.useEffect(()=>(g.current=!0,()=>void(g.current=!1)));const[T,E,A]=X.useMemo(()=>{const U=()=>{if(!f.current.element)return;const{left:H,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:$e}=f.current.element.getBoundingClientRect(),tt={left:H,top:ne,width:q,height:ie,bottom:x,right:le,x:ae,y:$e};f.current.element instanceof HTMLElement&&i&&(tt.height=f.current.element.offsetHeight,tt.width=f.current.element.offsetWidth),Object.freeze(tt),g.current&&!$$(f.current.lastBounds,tt)&&c(f.current.lastBounds=tt)};return[U,y?Ix(U,y):U,p?Ix(U,p):U]},[c,i,p,y]);function I(){f.current.scrollContainers&&(f.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",A,!0)),f.current.scrollContainers=null),f.current.resizeObserver&&(f.current.resizeObserver.disconnect(),f.current.resizeObserver=null)}function j(){f.current.element&&(f.current.resizeObserver=new o(A),f.current.resizeObserver.observe(f.current.element),n&&f.current.scrollContainers&&f.current.scrollContainers.forEach(U=>U.addEventListener("scroll",A,{capture:!0,passive:!0})))}const R=U=>{!U||U===f.current.element||(I(),f.current.element=U,f.current.scrollContainers=PE(U),j())};return j$(A,!!n),N$(E),X.useEffect(()=>{I(),j()},[n,A,E]),X.useEffect(()=>I,[]),[R,a,T]}function N$(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function j$(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function PE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...PE(t.parentElement)]}const B$=["x","y","top","bottom","left","right","width","height"],$$=(t,e)=>B$.every(n=>t[n]===e[n]),OE=X.createContext({dragDropManager:void 0});function Ss(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Mx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fx={INIT:"@@redux/INIT"+Lx(),REPLACE:"@@redux/REPLACE"+Lx()};function V$(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function H$(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(z$(t))return"date";if(W$(t))return"error";var n=U$(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function U$(t){return typeof t.constructor=="function"?t.constructor.name:null}function W$(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function z$(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function cf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=H$(t)),e}function _E(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Ss(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(1):"Expected the enhancer to be a function. Instead, received: '"+cf(n)+"'");return n(_E)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(2):"Expected the root reducer to be a function. Instead, received: '"+cf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function y(){if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(4):"Expected the listener to be a function. Instead, received: '"+cf(I)+"'");if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var U=c.indexOf(I);c.splice(U,1),a=null}}}function T(I){if(!V$(I))throw new Error(process.env.NODE_ENV==="production"?Ss(7):"Actions must be plain objects. Instead, the actual type was: '"+cf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ss(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(f)throw new Error(process.env.NODE_ENV==="production"?Ss(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var j=a=c,R=0;R<j.length;R++){var U=j[R];U()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Ss(10):"Expected the nextReducer to be a function. Instead, received: '"+cf(I));i=I,T({type:Fx.REPLACE})}function A(){var I,j=g;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Ss(11):"Expected the observer to be an object. Instead, received: '"+cf(U)+"'");function H(){U.next&&U.next(y())}H();var ne=j(H);return{unsubscribe:ne}}},I[Mx]=function(){return this},I}return T({type:Fx.INIT}),r={dispatch:T,subscribe:g,getState:y,replaceReducer:E},r[Mx]=A,r}function Ut(t,e,...n){if(Y$()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function Y$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function G$(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function q$(t,e){return t.filter(n=>n!==e)}function RE(t){return typeof t=="object"}function X$(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function K$(t,e){return t.filter(n=>e.indexOf(n)>-1)}const ky="dnd-core/INIT_COORDS",Ip="dnd-core/BEGIN_DRAG",Dy="dnd-core/PUBLISH_DRAG_SOURCE",Mp="dnd-core/HOVER",Lp="dnd-core/DROP",Fp="dnd-core/END_DRAG";function Nx(t,e){return{type:ky,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const Z$={type:ky,payload:{clientOffset:null,sourceClientOffset:null}};function J$(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Nx(o)),Q$(n,c,f);const p=nV(n,c);if(p==null){t.dispatch(Z$);return}let y=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");eV(a),y=a(p)}t.dispatch(Nx(o,y));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;tV(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Ip,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:y||null,isSourcePublic:!!i}}}}function Q$(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function eV(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function tV(t){Ut(RE(t),"Item must be an object.")}function nV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function rV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rV(t,i,n[i])})}return t}function oV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();sV(r),uV(r).forEach((a,c)=>{const f=aV(a,c,i,r),p={type:Lp,payload:{dropResult:iV({},n,f)}};t.dispatch(p)})}}function sV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function aV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return lV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function lV(t){Ut(typeof t>"u"||RE(t),"Drop result must either be an object or undefined.")}function uV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function cV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();fV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Fp}}}function fV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function tv(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function dV(t){return function(n,{clientOffset:r}={}){hV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return gV(i,a,c),pV(i,o,a),mV(i,o,a),{type:Mp,payload:{targetIds:i,clientOffset:r||null}}}}function hV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function pV(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function gV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);tv(o,n)||t.splice(r,1)}}function mV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function vV(t){return function(){if(t.getMonitor().isDragging())return{type:Dy}}}function yV(t){return{beginDrag:J$(t),publishDragSource:vV(t),hover:dV(t),drop:oV(t),endDrag:cV(t)}}class bV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=yV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function wV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function AE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:AE(wV(e,r),n)}function SV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:AE(e,n)}const wd=[],Py=[];wd.__IS_NONE__=!0;Py.__IS_ALL__=!0;function TV(t,e){return t===wd?!1:t===Py||typeof e>"u"?!0:K$(e,t).length>0}class CV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!TV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return tv(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!tv(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return xV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return SV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const jx=typeof global<"u"?global:self,IE=jx.MutationObserver||jx.WebKitMutationObserver;function ME(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function EV(t){let e=1;const n=new IE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const kV=typeof IE=="function"?EV:ME;class DV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=kV(this.flush),this.requestErrorThrow=ME(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class PV{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class OV{create(e){const n=this.freeTasks,r=n.length?n.pop():new PV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const LE=new DV,_V=new OV(LE.registerPendingError);function RV(t){LE.enqueueTask(_V.create(t))}const Oy="dnd-core/ADD_SOURCE",_y="dnd-core/ADD_TARGET",Ry="dnd-core/REMOVE_SOURCE",Np="dnd-core/REMOVE_TARGET";function AV(t){return{type:Oy,payload:{sourceId:t}}}function IV(t){return{type:_y,payload:{targetId:t}}}function MV(t){return{type:Ry,payload:{sourceId:t}}}function LV(t){return{type:Np,payload:{targetId:t}}}function FV(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function NV(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function nv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>nv(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Ps;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Ps||(Ps={}));let jV=0;function BV(){return jV++}function $V(t){const e=BV().toString();switch(t){case Ps.SOURCE:return`S${e}`;case Ps.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Bx(t){switch(t[0]){case"S":return Ps.SOURCE;case"T":return Ps.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function $x(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class VV{addSource(e,n){nv(e),FV(n);const r=this.addHandler(Ps.SOURCE,e,n);return this.store.dispatch(AV(r)),r}addTarget(e,n){nv(e,!0),NV(n);const r=this.addHandler(Ps.TARGET,e,n);return this.store.dispatch(IV(r)),r}containsHandler(e){return $x(this.dragSources,e)||$x(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Bx(e)===Ps.SOURCE}isTargetId(e){return Bx(e)===Ps.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(MV(e)),RV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(LV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=$V(e);return this.types.set(i,n),e===Ps.SOURCE?this.dragSources.set(i,r):e===Ps.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const HV=(t,e)=>t===e;function UV(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function WV(t,e,n=HV){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function zV(t=wd,e){switch(e.type){case Mp:break;case Oy:case _y:case Np:case Ry:return wd;case Ip:case Dy:case Fp:case Lp:default:return Py}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=X$(n,r);if(!(i.length>0||!WV(n,r)))return wd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function YV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function GV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){YV(t,i,n[i])})}return t}const Vx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function qV(t=Vx,e){const{payload:n}=e;switch(e.type){case ky:case Ip:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Mp:return UV(t.clientOffset,n.clientOffset)?t:GV({},t,{clientOffset:n.clientOffset});case Fp:case Lp:return Vx;default:return t}}function XV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ff(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){XV(t,i,n[i])})}return t}const KV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ZV(t=KV,e){const{payload:n}=e;switch(e.type){case Ip:return ff({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Dy:return ff({},t,{isSourcePublic:!0});case Mp:return ff({},t,{targetIds:n.targetIds});case Np:return t.targetIds.indexOf(n.targetId)===-1?t:ff({},t,{targetIds:q$(t.targetIds,n.targetId)});case Lp:return ff({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Fp:return ff({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function JV(t=0,e){switch(e.type){case Oy:case _y:return t+1;case Ry:case Np:return t-1;default:return t}}function QV(t=0){return t+1}function e3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){e3(t,i,n[i])})}return t}function n3(t={},e){return{dirtyHandlerIds:zV(t.dirtyHandlerIds,{type:e.type,payload:t3({},e.payload,{prevTargetIds:G$(t,"dragOperation.targetIds",[])})}),dragOffset:qV(t.dragOffset,e),refCount:JV(t.refCount,e),dragOperation:ZV(t.dragOperation,e),stateId:QV(t.stateId)}}function r3(t,e=void 0,n={},r=!1){const i=i3(r),o=new CV(i,new VV(i)),a=new bV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function i3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return _E(n3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function o3(t,e){if(t==null)return{};var n=s3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function s3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Hx=0;const Bh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var FE=X.memo(function(e){var{children:n}=e,r=o3(e,["children"]);const[i,o]=a3(r);return X.useEffect(()=>{if(o){const a=NE();return++Hx,()=>{--Hx===0&&(a[Bh]=null)}}},[]),Pe.jsx(OE.Provider,{value:i,children:n})});function a3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=l3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function l3(t,e=NE(),n,r){const i=e;return i[Bh]||(i[Bh]={dragDropManager:r3(t,e,n,r)}),i[Bh]}function NE(){return typeof global<"u"?global:window}var u3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const c3=Eu(u3),kc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function jE(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);c3(r,a)||(i(a),n&&n())},[r,t,n]);return kc(o),[r,o]}function f3(t,e,n){const[r,i]=jE(t,e,n);return kc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function BE(t,e,n){return f3(e,t||(()=>({})),()=>n.reconnect())}function $E(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function d3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function h3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Yg=!1,Gg=!1;class p3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Yg,"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 Yg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Yg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!Gg,"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 Gg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Gg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let qg=!1;class g3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!qg,"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 qg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function m3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function v3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function rv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const y=t[p],g=e[p];if(i=void 0,i===!1||i===void 0&&y!==g)return!1}return!0}function iv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function y3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function b3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return y3(r),w3(r,n?o=>t(o,n):t)}}function VE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=b3(r);e[n]=()=>i}}),e}function Ux(t,e){typeof t=="function"?t(e):t.current=e}function w3(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Ux(n,r),Ux(e,r)}}):X.cloneElement(t,{ref:e})}class x3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!rv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=VE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,iv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,iv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class S3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!rv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=VE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,iv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Rl(){const{dragDropManager:t}=X.useContext(OE);return Ut(t!=null,"Expected drag drop context"),t}function T3(t,e){const n=Rl(),r=X.useMemo(()=>new x3(n.getBackend()),[n]);return kc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),kc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function C3(){const t=Rl();return X.useMemo(()=>new p3(t),[t])}class E3{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function k3(t,e,n){const r=X.useMemo(()=>new E3(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function D3(t){return X.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function P3(t,e,n){const r=Rl(),i=k3(t,e,n),o=D3(t);kc(function(){if(o!=null){const[c,f]=v3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function HE(t,e){const n=$E(t,e);Ut(!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=C3(),i=T3(n.options,n.previewOptions);return P3(n,r,i),[BE(n.collect,r,i),d3(i),h3(i)]}function O3(t){const n=Rl().getMonitor(),[r,i]=jE(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function _3(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function R3(t){const e=Rl(),n=X.useMemo(()=>new S3(e.getBackend()),[e]);return kc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function A3(){const t=Rl();return X.useMemo(()=>new g3(t),[t])}function I3(t){const{accept:e}=t;return X.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class M3{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function L3(t,e){const n=X.useMemo(()=>new M3(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function F3(t,e,n){const r=Rl(),i=L3(t,e),o=I3(t);kc(function(){const[c,f]=m3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function lp(t,e){const n=$E(t,e),r=A3(),i=R3(n.options);return F3(n,r,i),[BE(n.collect,r,i),_3(i)]}var UE=t=>{throw TypeError(t)},WE=(t,e,n)=>e.has(t)||UE("Cannot "+n),Nt=(t,e,n)=>(WE(t,e,"read from private field"),n?n.call(t):e.get(t)),Cs=(t,e,n)=>e.has(t)?UE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),hc=(t,e,n,r)=>(WE(t,e,"write to private field"),e.set(t,n),n),lu,N3=class{constructor(){Cs(this,lu),this.register=t=>{Nt(this,lu).push(t)},this.unregister=t=>{for(;Nt(this,lu).indexOf(t)!==-1;)Nt(this,lu).splice(Nt(this,lu).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,lu))e.backendChanged(t)},hc(this,lu,[])}};lu=new WeakMap;var qo,fd,Xo,yl,pc,ov,sv,av,$h,Vh,dd,zE=class Hh{constructor(e,n,r){if(Cs(this,qo),Cs(this,fd),Cs(this,Xo),Cs(this,yl),Cs(this,pc),Cs(this,ov,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
|
|
5
5
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
6
6
|
This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Xo)[f])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
7
7
|
${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Xo)[f])})`);return{id:f,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Hh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Hh.isSetUp=!0,Nt(this,sv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Hh.isSetUp=!1,Nt(this,av).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,dd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,dd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,dd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Xo)[Nt(this,qo)].instance.profile(),this.previewEnabled=()=>Nt(this,Xo)[Nt(this,qo)].preview,this.previewsList=()=>Nt(this,fd),this.backendsList=()=>Nt(this,yl),Cs(this,sv,i=>{for(let o of Nt(this,yl))o.transition&&i.addEventListener(o.transition.event,Nt(this,$h))}),Cs(this,av,i=>{for(let o of Nt(this,yl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,$h))}),Cs(this,$h,i=>{var a;let o=Nt(this,qo);if(Nt(this,yl).some(c=>c.id!==Nt(this,qo)&&c.transition&&c.transition.check(i)?(hc(this,qo,c.id),!0):!1),Nt(this,qo)!==o){Nt(this,Xo)[o].instance.teardown();for(let[y,g]of Object.entries(Nt(this,pc)))g.unsubscribe(),g.unsubscribe=Nt(this,Vh).call(this,g.func,...g.args);Nt(this,fd).backendChanged(this);let c=Nt(this,Xo)[Nt(this,qo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let f=i.constructor,p=new f(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),Cs(this,Vh,(i,o,a,c)=>Nt(this,Xo)[Nt(this,qo)].instance[i](o,a,c)),Cs(this,dd,(i,o,a,c)=>{let f=`${i}_${o}`,p=Nt(this,Vh).call(this,i,o,a,c);return Nt(this,pc)[f]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,pc)[f].unsubscribe(),delete Nt(this,pc)[f]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
8
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);hc(this,fd,new F3),hc(this,Xo,{}),hc(this,yl,[]);for(let i of r.backends){let o=Nt(this,ov).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,yl).push(o)}hc(this,qo,Nt(this,yl)[0].id),hc(this,pc,{})}};qo=new WeakMap,fd=new WeakMap,Xo=new WeakMap,yl=new WeakMap,pc=new WeakMap,ov=new WeakMap,sv=new WeakMap,av=new WeakMap,$h=new WeakMap,Vh=new WeakMap,dd=new WeakMap,zE.isSetUp=!1;var N3=zE,j3=(t,e,n)=>new N3(t,e,n),YE=(t,e)=>({event:t,check:e}),B3=YE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),$3=YE("pointerdown",t=>t.pointerType==="mouse"),du;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(du||(du={}));class V3{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function H3(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function U3(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const W3={Left:1},z3={Left:0};function Xg(t){return t.button===void 0||t.button===z3.Left}function Y3(t){return t.buttons===void 0||(t.buttons&W3.Left)===0}function GE(t){return!!t.targetTouches}const G3=1;function q3(t){const e=t.nodeType===G3?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function X3(t,e){if(t.targetTouches.length===1)return up(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return up(t.touches[0])}function up(t,e){return GE(t)?X3(t,e):{x:t.clientX,y:t.clientY}}const Wx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),id={[du.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[du.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[du.keyboard]:{keydown:"keydown"}};class xd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!xd.isSetUp,"Cannot have two Touch backends at the same time."),xd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(xd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=id[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=id[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case id.mouse.move:a={x:o.clientX,y:o.clientY};break;case id.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&q3(o)},this.handleTopMoveStartCapture=i=>{Xg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Xg(i))return;const o=up(i);o&&(GE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Xg(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:a}=this,c=this.options.enableHoverOutsideTarget,f=up(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&U3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&H3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const A in g){if(!g.hasOwnProperty(A))continue;let I=g[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>y.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!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 V3(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(du.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(du.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(du.keyboard)}}const K3=function(e,n={},r={}){return new xd(e,n,r)};var As=function(){return As=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},As.apply(this,arguments)};function io(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function Z3(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,f=L$({polyfill:aF}),p=f[0],y=f[1].height,g=X.useState(e),T=g[0],E=g[1],A=X.useState(e),I=A[0],j=A[1],R=X.useState(!1),U=R[0],H=R[1],ne=function(){H(!1),e||E(!1)};X.useEffect(function(){H(!0),e?E(!0):j(!1)},[e]);var q=y===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(I$.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:J3(y,i)}},X.createElement("div",{ref:p},T&&c))}function J3(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var qE=X.createContext({}),Q3={isLock:!1},eH=function(t){var e=X.useState(Q3.isLock),n=e[0],r=e[1];return X.createElement(qE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},qd=X.createContext({}),Ch={dropTargetId:void 0,index:void 0},tH=function(t){var e=X.useState(Ch.dropTargetId),n=e[0],r=e[1],i=X.useState(Ch.index),o=i[0],a=i[1],c=function(p,y){r(p),a(y)},f=function(){r(Ch.dropTargetId),a(Ch.index)};return X.createElement(qd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},nH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},od=function(t,e){return t.find(function(n){return n.id===e})},XE=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:XE(t,e,r.parent)},Ay=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},xu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(y){return y.id===e});return!!(a&&a.droppable)}else{var c=Ay(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(g){return g.id===c}),a=r.find(function(g){return g.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!XE(r,c,e)}},rH=function(t,e,n){return t.map(function(r){return r.id===e?As(As({},r),{parent:n}):r})},KE=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},iH=function(t,e){return t.findIndex(function(n){return n.id===e})},ZE=function(t,e,n,r){var i=iH(t,e),o=KE(t,n,r);return o=o>i?o-1:o,[i,o]},oH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},sH=function(t,e,n,r){var i=ZE(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return oH(c,o,a),c.map(function(f){return f.id===e?As(As({},f),{parent:n}):f})},aH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},lv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=aH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},zx=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?lv(i,n):null},lH=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},uv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:lv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=lH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:lv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(xu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},uH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:GT,options:t.html5,transition:$3},{id:"touch",backend:K3,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:B3}]}},Uh=function(t,e){return t.some(function(n){return n.parent===e})},JE=X.createContext({}),cH=function(t){var e=vH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Rl().getMonitor(),y=t.canDrop,g=t.canDrag,T=As(As({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:od(t.tree,A),monitor:p},R=t.tree;if(od(R,E.id)||(R=io(io([],R,!0),[E],!1)),t.sort===!1){var U=ZE(R,E.id,A,I),H=U[1];j.destinationIndex=H,j.relativeIndex=I,t.onDrop(sH(R,E.id,A,I),j);return}t.onDrop(rH(R,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:od(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=KE(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:y?function(E,A){return y(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:od(t.tree,A),monitor:p})}:void 0,canDrag:g?function(E){return g(od(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(JE.Provider,{value:T},t.children)},fH=function(t){return X.createElement(cH,As({},t),X.createElement(eH,null,X.createElement(tH,null,t.children)))},dH=function(t){var e=X.useContext(qE);X.useEffect(function(){if(t.current){var n=t.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},c=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},jp={TREE_ITEM:Symbol()},QE=null,ek=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(QE=n)}},Yx=function(t){return ek(t)},Gx=function(t){return ek(t)},hH=function(t,e){var n=Du();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Yx),c==null||c.addEventListener("touchstart",Gx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Yx),c==null||c.removeEventListener("touchstart",Gx)}},[e]);var r=HE({type:jp.TREE_ITEM,item:function(c){var f=As({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return QE!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},pH=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},gH=function(t){var e=Du(),n=X.useContext(qd),r=lp({accept:io([jp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var y=e.rootId,g=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&g(Ay(f)?f:null,y,E),n.hidePlaceholder()},canDrop:function(f,p){var y=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=e.rootId,g=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=uv(null,t.current,p,e);if(I===null||!xu(f,y,e)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},mH=function(t,e){var n=Du(),r=X.useContext(qd),i=lp({accept:io([jp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(Ay(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=uv(t,e.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=uv(t,e.current,y,n);if(I===null||!xu(p,I.id,n)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,c=o.dragSource,f=i[1];return[a,c,f]},vH=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(g){return Uh(t,g.id)}).map(function(g){return g.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(g,T){var E=i.includes(g)?i.filter(function(A){return A!==g}):io(io([],i,!0),[g],!1);o(E),T&&T(E)},c=function(g){o([]),g&&g([])},f=function(g){var T=t.filter(function(E){return Uh(t,E.id)}).map(function(E){return E.id});o(T),g&&g(T)},p=function(g,T){var E=[];if(Array.isArray(g)){var A=t.filter(function(I){return g.includes(I.id)&&Uh(t,I.id)});E=io(io([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,R){return R.indexOf(I)===j})}else E=i.includes(g)?i:io(io([],i,!0),[g],!1);o(E),T&&T(E)},y=function(g,T){var E=i.filter(function(A){return Array.isArray(g)?!g.includes(A):A!==g});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},yH=function(){return P3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===jp.TREE_ITEM}})},Du=function(){var t=X.useContext(JE);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},bH=function(t,e){var n=Du(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},wH=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},xH=function(t){var e=Du(),n=X.useContext(qd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(le){return le.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),y=hH(o,r),g=y[0],T=y[1],E=y[2],A=mH(o,r),I=A[0],j=A[1],R=A[2];wH(r,i,T),xu(j,t.id,e)&&R(r),X.useEffect(function(){e.dragPreviewRender?E($2(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),dH(r);var U=function(){return e.onToggle(o.id)},H=e.listItemComponent,ne=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,ie={depth:t.depth,isOpen:p,isDragging:g,isDropTarget:q,draggable:ne,hasChild:Uh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},x="";return c!=null&&c.listItem&&(x=typeof c.listItem=="string"?c.listItem:c.listItem(o,ie)),I&&(c!=null&&c.dropTarget)&&(x="".concat(x," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(x="".concat(x," ").concat(c.draggingSource)),X.createElement(H,{ref:r,className:x,role:"listitem"},e.render(o,ie),f&&ie.hasChild&&X.createElement(Z3,{isVisible:p},X.createElement(cv,{parentId:t.id,depth:t.depth+1})),!f&&ie.hasChild&&p&&X.createElement(cv,{parentId:t.id,depth:t.depth+1}))},qx=function(t){var e=Du(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(qd),a=Rl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=c.getTargetIds();return!p||!y.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},cv=function(t){var e=Du(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:nH;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=io(io([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=io(io([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var f=gH(n),p=f[0],y=f[1],g=f[2];t.parentId===e.rootId&&xu(y,e.rootId,e)&&g(n);var T=bH(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,As({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(xH,{id:I.id,depth:t.depth}))}),X.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},SH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},TH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},CH=function(){var t=Du(),e=yH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:SH},X.createElement("div",{style:TH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function EH(t,e){return X.createElement(fH,As({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(CH,null),X.createElement(cv,{parentId:t.rootId,depth:0}))}var kH=X.forwardRef(EH);const tk=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Bp=X.createContext({}),Iy=X.createContext(null),$p=typeof document<"u",DH=$p?X.useLayoutEffect:X.useEffect,nk=X.createContext({strict:!1}),My=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),PH="framerAppearId",rk="data-"+My(PH);function OH(t,e,n,r){const{visualElement:i}=X.useContext(Bp),o=X.useContext(nk),a=X.useContext(Iy),c=X.useContext(tk).reducedMotion,f=X.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const y=X.useRef(!!(n[rk]&&!window.HandoffComplete));return DH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function wf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function _H(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):wf(n)&&(n.current=r))},[e])}function Fd(t){return typeof t=="string"||Array.isArray(t)}function Vp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ly=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fy=["initial",...Ly];function Hp(t){return Vp(t.animate)||Fy.some(e=>Fd(t[e]))}function ik(t){return!!(Hp(t)||t.variants)}function RH(t,e){if(Hp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return t.inherit!==!1?e:{}}function AH(t){const{initial:e,animate:n}=RH(t,X.useContext(Bp));return X.useMemo(()=>({initial:e,animate:n}),[Xx(e),Xx(n)])}function Xx(t){return Array.isArray(t)?t.join(" "):t}const Kx={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 t in Kx)Nd[t]={isEnabled:e=>Kx[t].some(n=>!!e[n])};function IH(t){for(const e in t)Nd[e]={...Nd[e],...t[e]}}const ok=X.createContext({}),sk=X.createContext({}),MH=Symbol.for("motionComponentSymbol");function LH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&IH(t);function o(c,f){let p;const y={...X.useContext(tk),...c,layoutId:FH(c)},{isStatic:g}=y,T=AH(c),E=r(c,g);if(!g&&$p){T.visualElement=OH(i,E,y,e);const A=X.useContext(sk),I=X.useContext(nk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,I,t,A))}return kn.createElement(Bp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,_H(E,T.visualElement,f),E,g,T.visualElement))}const a=X.forwardRef(o);return a[MH]=i,a}function FH({layoutId:t}){const e=X.useContext(ok).id;return e&&t!==void 0?e+"-"+t:t}function NH(t){function e(r,i={}){return LH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const jH=["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 Ny(t){return typeof t!="string"||t.includes("-")?!1:!!(jH.indexOf(t)>-1||/[A-Z]/.test(t))}const cp={};function BH(t){Object.assign(cp,t)}const Xd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ac=new Set(Xd);function ak(t,{layout:e,layoutId:n}){return Ac.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),$H={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VH=Xd.length;function HH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<VH;a++){const c=Xd[a];if(t[c]!==void 0){const f=$H[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const lk=t=>e=>typeof e=="string"&&e.startsWith(t),uk=lk("--"),fv=lk("var(--"),UH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,WH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Su=(t,e,n)=>Math.min(Math.max(n,t),e),Ic={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Sd={...Ic,transform:t=>Su(0,1,t)},Eh={...Ic,default:1},Td=t=>Math.round(t*1e5)/1e5,Up=/(-)?([\d]*\.?[\d])+/g,ck=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Kd(t){return typeof t=="string"}const Zd=t=>({test:e=>Kd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),uu=Zd("deg"),Va=Zd("%"),Rt=Zd("px"),YH=Zd("vh"),GH=Zd("vw"),Zx={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},Jx={...Ic,transform:Math.round},fk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Eh,scaleX:Eh,scaleY:Eh,scaleZ:Eh,skew:uu,skewX:uu,skewY:uu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Sd,originX:Zx,originY:Zx,originZ:Rt,zIndex:Jx,fillOpacity:Sd,strokeOpacity:Sd,numOctaves:Jx};function jy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,y=!0;for(const g in e){const T=e[g];if(uk(g)){o[g]=T;continue}const E=fk[g],A=WH(T,E);if(Ac.has(g)){if(f=!0,a[g]=A,!y)continue;T!==(E.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=A):i[g]=A}if(e.transform||(f||r?i.transform=HH(t.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${g} ${T} ${E}`}}const By=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dk(t,e,n){for(const r in e)!Ro(e[r])&&!ak(r,n)&&(t[r]=e[r])}function qH({transformTemplate:t},e,n){return X.useMemo(()=>{const r=By();return jy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function XH(t,e,n){const r=t.style||{},i={};return dk(i,r,t),Object.assign(i,qH(t,e,n)),t.transformValues?t.transformValues(i):i}function KH(t,e,n){const r={},i=XH(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const ZH=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 fp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ZH.has(t)}let hk=t=>!fp(t);function JH(t){t&&(hk=e=>e.startsWith("on")?!fp(e):t(e))}try{JH(require("@emotion/is-prop-valid").default)}catch{}function QH(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(hk(i)||n===!0&&fp(i)||!e&&!fp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Qx(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function eU(t,e,n){const r=Qx(e,t.x,t.width),i=Qx(n,t.y,t.height);return`${r} ${i}`}const tU={offset:"stroke-dashoffset",array:"stroke-dasharray"},nU={offset:"strokeDashoffset",array:"strokeDasharray"};function rU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?tU:nU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function $y(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g,T){if(jy(t,p,y,T),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=eU(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&rU(E,a,c,f,!1)}const pk=()=>({...By(),attrs:{}}),Vy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function iU(t,e,n,r){const i=X.useMemo(()=>{const o=pk();return $y(o,e,{enableHardwareAcceleration:!1},Vy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};dk(o,t.style,t),i.style={...o,...i.style}}return i}function oU(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(Ny(n)?iU:KH)(r,o,a,n),y={...QH(r,typeof n=="string",t),...f,ref:i},{children:g}=r,T=X.useMemo(()=>Ro(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function gk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const mk=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 vk(t,e,n,r){gk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(mk.has(i)?i:My(i),e.attrs[i])}function Hy(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||ak(i,t))&&(r[i]=n[i]);return r}function yk(t,e){const n=Hy(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=Xd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Uy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function sU(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const dp=t=>Array.isArray(t),aU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),lU=t=>dp(t)?t[t.length-1]||0:t;function Wh(t){const e=Ro(t)?t.get():t;return aU(e)?e.toValue():e}function uU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:cU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const bk=t=>(e,n)=>{const r=X.useContext(Bp),i=X.useContext(Iy),o=()=>uU(t,e,r,i);return n?o():sU(o)};function cU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Wh(o[T]);let{initial:a,animate:c}=t;const f=Hp(t),p=ik(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;return g&&typeof g!="boolean"&&!Vp(g)&&(Array.isArray(g)?g:[g]).forEach(E=>{const A=Uy(t,E);if(!A)return;const{transitionEnd:I,transition:j,...R}=A;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in I)i[U]=I[U]}),i}const sr=t=>t;class eS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function fU(t){let e=new eS,n=new eS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?e:n;return p&&a.add(f),T.add(f)&&g&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const y=e.order[p];y(f),a.has(y)&&(c.schedule(y),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const kh=["prepare","read","update","preRender","render","postRender"],dU=40;function hU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=kh.reduce((g,T)=>(g[T]=fU(()=>n=!0),g),{}),a=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,dU),1),i.timestamp=g,i.isProcessing=!0,kh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:kh.reduce((g,T)=>{const E=o[T];return g[T]=(A,I=!1,j=!1)=>(n||f(),E.schedule(A,I,j)),g},{}),cancel:g=>kh.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Ln,cancel:Ol,state:Fi,steps:Kg}=hU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),pU={useVisualState:bk({scrapeMotionValuesFromProps:yk,createRenderState:pk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{$y(n,r,{enableHardwareAcceleration:!1},Vy(e.tagName),t.transformTemplate),vk(e,n)})}})},gU={useVisualState:bk({scrapeMotionValuesFromProps:Hy,createRenderState:By})};function mU(t,{forwardMotionProps:e=!1},n,r){return{...Ny(t)?pU:gU,preloadedFeatures:n,useRender:oU(e),createVisualElement:r,Component:t}}function xl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const wk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Wp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const vU=t=>e=>wk(e)&&t(e,Wp(e));function El(t,e,n,r){return xl(t,e,vU(n),r)}const yU=(t,e)=>n=>e(t(n)),hu=(...t)=>t.reduce(yU);function xk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const tS=xk("dragHorizontal"),nS=xk("dragVertical");function Sk(t){let e=!1;if(t==="y")e=nS();else if(t==="x")e=tS();else{const n=tS(),r=nS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Tk(){const t=Sk(!0);return t?(t(),!1):!0}class Pu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function rS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Tk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return El(t.current,n,i,{passive:!t.getProps()[r]})}class bU extends Pu{mount(){this.unmount=hu(rS(this.node,!0),rS(this.node,!1))}unmount(){}}class wU extends Pu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hu(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ck=(t,e)=>e?t===e?!0:Ck(t,e.parentElement):!1;function Zg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Wp(n))}class xU extends Pu{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=El(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Ln.update(()=>{!g&&!Ck(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=El(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Zg("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Ln.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=xl(this.node.current,"keyup",a),Zg("down",(c,f)=>{this.startPress(c,f)})},n=xl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Zg("cancel",(o,a)=>this.cancelPress(o,a))},i=xl(this.node.current,"blur",r);this.removeAccessibleListeners=hu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Tk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=El(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dv=new WeakMap,Jg=new WeakMap,SU=t=>{const e=dv.get(t.target);e&&e(t)},TU=t=>{t.forEach(SU)};function CU({root:t,...e}){const n=t||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(TU,{root:t,...e})),r[i]}function EU(t,e,n){const r=CU(e);return dv.set(t,n),r.observe(t),()=>{dv.delete(t),r.unobserve(t)}}const kU={some:0,all:1};class DU extends Pu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:kU[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return EU(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(PU(e,n))&&this.startObserver()}unmount(){}}function PU({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const OU={inView:{Feature:DU},tap:{Feature:xU},focus:{Feature:wU},hover:{Feature:bU}};function Ek(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function _U(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function RU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function zp(t,e,n){const r=t.getProps();return Uy(r,e,n!==void 0?n:r.custom,_U(t),RU(t))}let Jd=sr,la=sr;process.env.NODE_ENV!=="production"&&(Jd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},la=(t,e)=>{if(!t)throw new Error(e)});const pu=t=>t*1e3,kl=t=>t/1e3,AU={current:!1},kk=t=>Array.isArray(t)&&typeof t[0]=="number";function Dk(t){return!!(!t||typeof t=="string"&&Pk[t]||kk(t)||Array.isArray(t)&&t.every(Dk))}const hd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hd([0,.65,.55,1]),circOut:hd([.55,0,1,.45]),backIn:hd([.31,.01,.66,-.59]),backOut:hd([.33,1.53,.69,.99])};function Ok(t){if(t)return kk(t)?hd(t):Array.isArray(t)?t.map(Ok):Pk[t]}function IU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=Ok(c);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function MU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const _k=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,LU=1e-7,FU=12;function NU(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=_k(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>LU&&++c<FU);return a}function Qd(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>NU(o,0,1,t,n);return o=>o===0||o===1?o:_k(i(o),e,r)}const jU=Qd(.42,0,1,1),BU=Qd(0,0,.58,1),Rk=Qd(.42,0,.58,1),$U=t=>Array.isArray(t)&&typeof t[0]!="number",Ak=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ik=t=>e=>1-t(1-e),Wy=t=>1-Math.sin(Math.acos(t)),Mk=Ik(Wy),VU=Ak(Wy),Lk=Qd(.33,1.53,.69,.99),zy=Ik(Lk),HU=Ak(zy),UU=t=>(t*=2)<1?.5*zy(t):.5*(2-Math.pow(2,-10*(t-1))),iS={linear:sr,easeIn:jU,easeInOut:Rk,easeOut:BU,circIn:Wy,circInOut:VU,circOut:Mk,backIn:zy,backInOut:HU,backOut:Lk,anticipate:UU},oS=t=>{if(Array.isArray(t)){la(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Qd(e,n,r,i)}else if(typeof t=="string")return la(iS[t]!==void 0,`Invalid easing type '${t}'`),iS[t];return t},Yy=(t,e)=>n=>!!(Kd(n)&&zH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Fk=(t,e,n)=>r=>{if(!Kd(r))return r;const[i,o,a,c]=r.match(Up);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},WU=t=>Su(0,255,t),Qg={...Ic,transform:t=>Math.round(WU(t))},bc={test:Yy("rgb","red"),parse:Fk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Qg.transform(t)+", "+Qg.transform(e)+", "+Qg.transform(n)+", "+Td(Sd.transform(r))+")"};function zU(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hv={test:Yy("#"),parse:zU,transform:bc.transform},xf={test:Yy("hsl","hue"),parse:Fk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(Td(e))+", "+Va.transform(Td(n))+", "+Td(Sd.transform(r))+")"},ro={test:t=>bc.test(t)||hv.test(t)||xf.test(t),parse:t=>bc.test(t)?bc.parse(t):xf.test(t)?xf.parse(t):hv.parse(t),transform:t=>Kd(t)?t:t.hasOwnProperty("red")?bc.transform(t):xf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function em(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function YU({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=em(f,c,t+1/3),o=em(f,c,t),a=em(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const tm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},GU=[hv,bc,xf],qU=t=>GU.find(e=>e.test(t));function sS(t){const e=qU(t);la(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===xf&&(n=YU(n)),n}const Nk=(t,e)=>{const n=sS(t),r=sS(e),i={...n};return o=>(i.red=tm(n.red,r.red,o),i.green=tm(n.green,r.green,o),i.blue=tm(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),bc.transform(i))};function XU(t){var e,n;return isNaN(t)&&Kd(t)&&(((e=t.match(Up))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ck))===null||n===void 0?void 0:n.length)||0)>0}const jk={regex:UH,countKey:"Vars",token:"${v}",parse:sr},Bk={regex:ck,countKey:"Colors",token:"${c}",parse:ro.parse},$k={regex:Up,countKey:"Numbers",token:"${n}",parse:Ic.parse};function nm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function hp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&nm(n,jk),nm(n,Bk),nm(n,$k),n}function Vk(t){return hp(t).values}function Hk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=hp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(jk.token,a[f]):f<r+n?c=c.replace(Bk.token,ro.transform(a[f])):c=c.replace($k.token,Td(a[f]));return c}}const KU=t=>typeof t=="number"?0:t;function ZU(t){const e=Vk(t);return Hk(t)(e.map(KU))}const Tu={test:XU,parse:Vk,createTransformer:Hk,getAnimatableNone:ZU},Uk=(t,e)=>n=>`${n>0?e:t}`;function Wk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Nk(t,e):t.startsWith("var(")?Uk(t,e):Yk(t,e)}const zk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Wk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},JU=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Wk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Yk=(t,e)=>{const n=Tu.createTransformer(e),r=hp(t),i=hp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?hu(zk(r.values,i.values),n):(Jd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Uk(t,e))},jd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},aS=(t,e)=>n=>Zn(t,e,n);function QU(t){return typeof t=="number"?aS:typeof t=="string"?ro.test(t)?Nk:Yk:Array.isArray(t)?zk:typeof t=="object"?JU:aS}function eW(t,e,n){const r=[],i=n||QU(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=hu(f,c)}r.push(c)}return r}function Gk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(la(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=eW(e,r,i),c=a.length,f=p=>{let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const g=jd(t[y],t[y+1],p);return a[y](g)};return n?p=>f(Su(t[0],t[o-1],p)):f}function tW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=jd(0,e,r);t.push(Zn(n,1,i))}}function nW(t){const e=[0];return tW(e,t.length-1),e}function rW(t,e){return t.map(n=>n*e)}function iW(t,e){return t.map(()=>e||Rk).splice(0,t.length-1)}function pp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=$U(r)?r.map(oS):oS(r),o={done:!1,value:e[0]},a=rW(n&&n.length===e.length?n:nW(e),t),c=Gk(a,e,{ease:Array.isArray(i)?i:iW(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function qk(t,e){return e?t*(1e3/e):0}const oW=5;function Xk(t,e,n){const r=Math.max(e-oW,0);return qk(n-t(r),e-r)}const lS=.001,sW=.01,uS=10,aW=.05,lW=1;function uW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Jd(t<=pu(uS),"Spring duration must be 10 seconds or less");let a=1-e;a=Su(aW,lW,a),t=Su(sW,uS,kl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=pv(p,a),A=Math.exp(-g);return lS-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=pv(Math.pow(p,2),a);return(-i(p)+lS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=fW(i,o,c);if(t=pu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const cW=12;function fW(t,e,n){let r=n;for(let i=1;i<cW;i++)r=r-t(r)/e(r);return r}function pv(t,e){return t*Math.sqrt(1-e*e)}const dW=["duration","bounce"],hW=["stiffness","damping","mass"];function cS(t,e){return e.some(n=>t[n]!==void 0)}function pW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cS(t,hW)&&cS(t,dW)){const n=uW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Kk({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:T}=pW({...r,velocity:-kl(r.velocity||0)}),E=g||0,A=f/(2*Math.sqrt(c*p)),I=o-i,j=kl(Math.sqrt(c/p)),R=Math.abs(I)<5;n||(n=R?.01:2),e||(e=R?.005:.5);let U;if(A<1){const H=pv(j,A);U=ne=>{const q=Math.exp(-A*j*ne);return o-q*((E+A*j*I)/H*Math.sin(H*ne)+I*Math.cos(H*ne))}}else if(A===1)U=H=>o-Math.exp(-j*H)*(I+(E+j*I)*H);else{const H=j*Math.sqrt(A*A-1);U=ne=>{const q=Math.exp(-A*j*ne),ie=Math.min(H*ne,300);return o-q*((E+A*j*I)*Math.sinh(ie)+H*I*Math.cosh(ie))/H}}return{calculatedDuration:T&&y||null,next:H=>{const ne=U(H);if(T)a.done=H>=y;else{let q=E;H!==0&&(A<1?q=Xk(U,H,ne):q=0);const ie=Math.abs(q)<=n,x=Math.abs(o-ne)<=e;a.done=ie&&x}return a.value=a.done?o:ne,a}}}function fS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const U=le=>-I*Math.exp(-le/r),H=le=>R+U(le),ne=le=>{const ae=U(le),$e=H(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:$e};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=Kk({keyframes:[T.value,A(T.value)],velocity:Xk(H,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>q?ie.next(le-q):(!ae&&ne(le),T)}}}const gW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Ol(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},dS=2e4;function hS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<dS;)e+=n,r=t.next(e);return e>=dS?1/0:e}const mW={decay:fS,inertia:fS,tween:pp,keyframes:pp,spring:Kk};function gp({autoplay:t=!0,delay:e=0,driver:n=gW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...T}){let E=1,A=!1,I,j;const R=()=>{j=new Promise(Se=>{I=Se})};R();let U;const H=mW[i]||pp;let ne;H!==pp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&la(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=Gk([0,100],r,{clamp:!1}),r=[0,100]);const q=H({...T,keyframes:r});let ie;c==="mirror"&&(ie=H({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let x="idle",le=null,ae=null,$e=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=hS(q));const{calculatedDuration:tt}=q;let Qe=1/0,Ye=1/0;tt!==null&&(Qe=tt+a,Ye=Qe*(o+1)-a);let Oe=0;const ue=Se=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Se)),E<0&&(ae=Math.min(Se-Ye/E,ae)),le!==null?Oe=le:Oe=Math.round(Se-ae)*E;const je=Oe-e*(E>=0?1:-1),Ue=E>=0?je<0:je>Ye;Oe=Math.max(je,0),x==="finished"&&le===null&&(Oe=Ye);let Ge=Oe,Ze=q;if(o){const pt=Math.min(Oe,Ye)/Qe;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Qe)):c==="mirror"&&(Ze=ie)),Ge=Su(0,1,yt)*Qe}const Xe=Ue?{done:!1,value:r[0]}:Ze.next(Ge);ne&&(Xe.value=ne(Xe.value));let{done:ot}=Xe;!Ue&&tt!==null&&(ot=E>=0?Oe>=Ye:Oe<=0);const ct=le===null&&(x==="finished"||x==="running"&&ot);return g&&g(Xe.value),ct&&Le(),Xe},ve=()=>{U&&U.stop(),U=void 0},ke=()=>{x="idle",ve(),I(),R(),ae=$e=null},Le=()=>{x="finished",y&&y(),ve(),I()},et=()=>{if(A)return;U||(U=n(ue));const Se=U.now();f&&f(),le!==null?ae=Se-le:(!ae||x==="finished")&&(ae=Se),x==="finished"&&R(),$e=ae,le=null,x="running",U.start()};t&&et();const me={then(Se,je){return j.then(Se,je)},get time(){return kl(Oe)},set time(Se){Se=pu(Se),Oe=Se,le!==null||!U||E===0?le=Se:ae=U.now()-Se/E},get duration(){const Se=q.calculatedDuration===null?hS(q):q.calculatedDuration;return kl(Se)},get speed(){return E},set speed(Se){Se===E||!U||(E=Se,me.time=kl(Oe))},get state(){return x},play:et,pause:()=>{x="paused",le=Oe},stop:()=>{A=!0,x!=="idle"&&(x="idle",p&&p(),ke())},cancel:()=>{$e!==null&&ue($e),ke()},complete:()=>{x="finished"},sample:Se=>(ae=0,ue(Se))};return me}function vW(t){let e;return()=>(e===void 0&&(e=t()),e)}const yW=vW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Dh=10,wW=2e4,xW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Dk(e.ease);function SW(t,e,{onUpdate:n,onComplete:r,...i}){if(!(yW()&&bW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const y=()=>{f=new Promise(H=>{c=H})};y();let{keyframes:g,duration:T=300,ease:E,times:A}=i;if(xW(e,i)){const H=gp({...i,repeat:0,delay:0});let ne={done:!1,value:g[0]};const q=[];let ie=0;for(;!ne.done&&ie<wW;)ne=H.sample(ie),q.push(ne.value),ie+=Dh;A=void 0,g=q,T=ie-Dh,E="linear"}const I=IU(t.owner.current,e,g,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},R=()=>{p=!0,Ln.update(j),c(),y()};return I.onfinish=()=>{p||(t.set(MU(g,i)),r&&r(),R())},{then(H,ne){return f.then(H,ne)},attachTimeline(H){return I.timeline=H,I.onfinish=null,sr},get time(){return kl(I.currentTime||0)},set time(H){I.currentTime=pu(H)},get speed(){return I.playbackRate},set speed(H){I.playbackRate=H},get duration(){return kl(T)},play:()=>{a||(I.play(),Ol(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:H}=I;if(H){const ne=gp({...i,autoplay:!1});t.setWithVelocity(ne.sample(H-Dh).value,ne.sample(H).value,Dh)}R()},complete:()=>{p||I.finish()},cancel:R}}function TW({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?gp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const CW={type:"spring",stiffness:500,damping:25,restSpeed:10},EW=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),kW={type:"keyframes",duration:.8},DW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PW=(t,{keyframes:e})=>e.length>2?kW:Ac.has(t)?t.startsWith("scale")?EW(e[1]):CW:DW,gv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tu.test(e)||e==="0")&&!e.startsWith("url(")),OW=new Set(["brightness","contrast","saturate","opacity"]);function _W(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Up)||[];if(!r)return t;const i=n.replace(r,"");let o=OW.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const RW=/([a-z-]*)\(.*?\)/g,mv={...Tu,getAnimatableNone:t=>{const e=t.match(RW);return e?e.map(_W).join(" "):t}},AW={...fk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:mv,WebkitFilter:mv},Gy=t=>AW[t];function Zk(t,e){let n=Gy(t);return n!==mv&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Jk=t=>/^0[^.\s]+$/.test(t);function IW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Jk(t)}function MW(t,e,n,r){const i=gv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),IW(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=Zk(e,c)}return o}function LW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function qy(t,e){return t[e]||t.default||t}const FW={skipAnimations:!1},Xy=(t,e,n,r={})=>i=>{const o=qy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-pu(a);const f=MW(e,t,n,o),p=f[0],y=f[f.length-1],g=gv(t,p),T=gv(t,y);Jd(g===T,`You are trying to animate ${t} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let E={keyframes:f,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(LW(o)||(E={...E,...PW(t,E)}),E.duration&&(E.duration=pu(E.duration)),E.repeatDelay&&(E.repeatDelay=pu(E.repeatDelay)),!g||!T||AU.current||o.type===!1||FW.skipAnimations)return TW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=SW(e,t,E);if(A)return A}return gp(E)};function mp(t){return!!(Ro(t)&&t.add)}const Qk=t=>/^\-?\d*\.?\d+$/.test(t);function Ky(t,e){t.indexOf(e)===-1&&t.push(e)}function Zy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Jy{constructor(){this.subscriptions=[]}add(e){return Ky(this.subscriptions,e),()=>Zy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pS=new Set;function Qy(t,e,n){t||pS.has(e)||(console.warn(e),pS.add(e))}const NW=t=>!isNaN(parseFloat(t));class jW{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Fi;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=NW(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Qy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Jy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rf(t,e){return new jW(t,e)}const eD=t=>e=>e.test(t),BW={test:t=>t==="auto",parse:t=>t},tD=[Ic,Rt,Va,uu,GH,YH,BW],sd=t=>tD.find(eD(t)),$W=[...tD,ro,Tu],VW=t=>$W.find(eD(t));function HW(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rf(n))}function UW(t,e){const n=zp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=lU(o[a]);HW(t,a,c)}}function WW(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const f=o[c],p=e[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),y!=null&&(typeof y=="string"&&(Qk(y)||Jk(y))?y=parseFloat(y):!VW(y)&&Tu.test(p)&&(y=Zk(f,p)),t.addValue(f,Rf(y,{owner:t})),n[f]===void 0&&(n[f]=y),y!==null&&t.setBaseTarget(f,y))}}function zW(t,e){return e?(e[t]||e.default||e).from:void 0}function YW(t,e,n){const r={};for(const i in t){const o=zW(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function GW({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function qW(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function nD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in c){const T=t.getValue(g),E=c[g];if(!T||E===void 0||y&&GW(y,g))continue;const A={delay:n,elapsed:0,...qy(o||{},g)};if(window.HandoffAppearAnimations){const R=t.getProps()[rk];if(R){const U=window.HandoffAppearAnimations(R,g,T,Ln);U!==null&&(A.elapsed=U,A.isHandoff=!0)}}let I=!A.isHandoff&&!qW(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(Xy(g,T,E,t.shouldReduceMotion&&Ac.has(g)?{type:!1}:A));const j=T.animation;mp(f)&&(f.add(g),j.then(()=>f.remove(g))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&UW(t,a)}),p}function vv(t,e,n={}){const r=zp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(nD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return XW(t,e,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function XW(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(KW).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(vv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function KW(t,e){return t.sortNodePosition(e)}function ZW(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>vv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=vv(t,e,n);else{const i=typeof e=="function"?zp(t,e,n.custom):e;r=Promise.all(nD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const JW=[...Ly].reverse(),QW=Ly.length;function ez(t){return e=>Promise.all(e.map(({animation:n,options:r})=>ZW(t,n,r)))}function tz(t){let e=ez(t);const n=rz();let r=!0;const i=(f,p)=>{const y=zp(t,p);if(y){const{transition:g,transitionEnd:T,...E}=y;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const y=t.getProps(),g=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let R=0;R<QW;R++){const U=JW[R],H=n[U],ne=y[U]!==void 0?y[U]:g[U],q=Fd(ne),ie=U===p?H.isActive:null;ie===!1&&(I=R);let x=ne===g[U]&&ne!==y[U]&&q;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),H.protectedKeys={...A},!H.isActive&&ie===null||!ne&&!H.prevProp||Vp(ne)||typeof ne=="boolean")continue;let ae=nz(H.prevProp,ne)||U===p&&H.isActive&&!x&&q||R>I&&q,$e=!1;const tt=Array.isArray(ne)?ne:[ne];let Qe=tt.reduce(i,{});ie===!1&&(Qe={});const{prevResolvedValues:Ye={}}=H,Oe={...Ye,...Qe},ue=ve=>{ae=!0,E.has(ve)&&($e=!0,E.delete(ve)),H.needsAnimating[ve]=!0};for(const ve in Oe){const ke=Qe[ve],Le=Ye[ve];if(A.hasOwnProperty(ve))continue;let et=!1;dp(ke)&&dp(Le)?et=!Ek(ke,Le):et=ke!==Le,et?ke!==void 0?ue(ve):E.add(ve):ke!==void 0&&E.has(ve)?ue(ve):H.protectedKeys[ve]=!0}H.prevProp=ne,H.prevResolvedValues=Qe,H.isActive&&(A={...A,...Qe}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!x||$e)&&T.push(...tt.map(ve=>({animation:ve,options:{type:U,...f}})))}if(E.size){const R={};E.forEach(U=>{const H=t.getBaseTarget(U);H!==void 0&&(R[U]=H)}),T.push({animation:R})}let j=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(f,p)}),n[f].isActive=p;const T=a(y,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function nz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ek(e,t):!1}function lc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rz(){return{animate:lc(!0),whileInView:lc(),whileHover:lc(),whileTap:lc(),whileDrag:lc(),whileFocus:lc(),exit:lc()}}class iz extends Pu{constructor(e){super(e),e.animationState||(e.animationState=tz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Vp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let oz=0;class sz extends Pu{constructor(){super(...arguments),this.id=oz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const az={animation:{Feature:iz},exit:{Feature:sz}},gS=(t,e)=>Math.abs(t-e);function lz(t,e){const n=gS(t.x,e.x),r=gS(t.y,e.y);return Math.sqrt(n**2+r**2)}class rD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=im(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=lz(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Fi;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=rm(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=im(g.type==="pointercancel"?this.lastMoveEventInfo:rm(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!wk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Wp(e),c=rm(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,im(c,this.history)),this.removeListeners=hu(El(this.contextWindow,"pointermove",this.handlePointerMove),El(this.contextWindow,"pointerup",this.handlePointerUp),El(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ol(this.updatePoint)}}function rm(t,e){return e?{point:e(t.point)}:t}function mS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function im({point:t},e){return{point:t,delta:mS(t,iD(e)),offset:mS(t,uz(e)),velocity:cz(e,.1)}}function uz(t){return t[0]}function iD(t){return t[t.length-1]}function cz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=iD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>pu(e)));)n--;if(!r)return{x:0,y:0};const o=kl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(t){return t.max-t.min}function yv(t,e=0,n=.01){return Math.abs(t-e)<=n}function vS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(yv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(yv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Cd(t,e,n,r){vS(t.x,e.x,n.x,r?r.originX:void 0),vS(t.y,e.y,n.y,r?r.originY:void 0)}function yS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function fz(t,e,n){yS(t.x,e.x,n.x),yS(t.y,e.y,n.y)}function bS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function Ed(t,e,n){bS(t.x,e.x,n.x),bS(t.y,e.y,n.y)}function dz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function wS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function hz(t,{top:e,left:n,bottom:r,right:i}){return{x:wS(t.x,n,i),y:wS(t.y,e,r)}}function xS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function pz(t,e){return{x:xS(t.x,e.x),y:xS(t.y,e.y)}}function gz(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=jd(e.min,e.max-r,t.min):r>i&&(n=jd(t.min,t.max-i,e.min)),Su(0,1,n)}function mz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const bv=.35;function vz(t=bv){return t===!1?t=0:t===!0&&(t=bv),{x:SS(t,"left","right"),y:SS(t,"top","bottom")}}function SS(t,e,n){return{min:TS(t,e),max:TS(t,n)}}function TS(t,e){return typeof t=="number"?t:t[e]||0}const CS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sf=()=>({x:CS(),y:CS()}),ES=()=>({min:0,max:0}),kr=()=>({x:ES(),y:ES()});function ks(t){return[t("x"),t("y")]}function oD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function yz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function om(t){return t===void 0||t===1}function wv({scale:t,scaleX:e,scaleY:n}){return!om(t)||!om(e)||!om(n)}function gc(t){return wv(t)||sD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function sD(t){return kS(t.x)||kS(t.y)}function kS(t){return t&&t!=="0%"}function vp(t,e,n){const r=t-n,i=e*r;return n+i}function DS(t,e,n,r,i){return i!==void 0&&(t=vp(t,i,r)),vp(t,n,r)+e}function xv(t,e=0,n=1,r,i){t.min=DS(t.min,e,n,r,i),t.max=DS(t.max,e,n,r,i)}function aD(t,{x:e,y:n}){xv(t.x,e.translate,e.scale,e.originPoint),xv(t.y,n.translate,n.scale,n.originPoint)}function wz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,aD(t,a)),r&&gc(o.latestValues)&&Tf(t,o.latestValues))}e.x=PS(e.x),e.y=PS(e.y)}function PS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function cu(t,e){t.min=t.min+e,t.max=t.max+e}function OS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);xv(t,e[n],e[r],a,e.scale)}const xz=["x","scaleX","originX"],Sz=["y","scaleY","originY"];function Tf(t,e){OS(t.x,e,xz),OS(t.y,e,Sz)}function lD(t,e){return oD(bz(t.getBoundingClientRect(),e))}function Tz(t,e,n){const r=lD(t,n),{scroll:i}=e;return i&&(cu(r.x,i.offset.x),cu(r.y,i.offset.y)),r}const uD=({current:t})=>t?t.ownerDocument.defaultView:null,Cz=new WeakMap;class Ez{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Wp(y,"page").point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Sk(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ks(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Va.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[j];H&&(R=es(H)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Ln.update(()=>A(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=kz(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>ks(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new rD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:uD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ph(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=dz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&wf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=hz(i.layoutBox,n):this.constraints=!1,this.elastic=vz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ks(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=mz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wf(e))return!1;const r=e.current;la(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Tz(r,i.root,this.visualElement.getTransformPagePoint());let a=pz(i.layout.layoutBox,o);if(n){const c=n(yz(a));this.hasMutatedConstraints=!!c,c&&(a=oD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=ks(y=>{if(!Ph(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Xy(e,r,0,n))}stopAnimation(){ks(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ks(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ks(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ks(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=gz({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ks(a=>{if(!Ph(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;Cz.set(this.visualElement,this);const e=this.visualElement.current,n=El(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();wf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=xl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(ks(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ph(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function kz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Dz extends Pu{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new Ez(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const _S=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class Pz extends Pu{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new rD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_S(e),onStart:_S(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=El(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Oz(){const t=X.useContext(Iy);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ad={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=RS(t,e.target.x),r=RS(t,e.target.y);return`${n}% ${r}%`}},_z={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Tu.parse(t);if(i.length>5)return r;const o=Tu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Rz extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;BH(Az),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()})),zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function cD(t){const[e,n]=Oz(),r=X.useContext(ok);return X.createElement(Rz,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(sk),isPresent:e,safeToRemove:n})}const Az={borderRadius:{...ad,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ad,borderTopRightRadius:ad,borderBottomLeftRadius:ad,borderBottomRightRadius:ad,boxShadow:_z},fD=["TopLeft","TopRight","BottomLeft","BottomRight"],Iz=fD.length,AS=t=>typeof t=="string"?parseFloat(t):t,IS=t=>typeof t=="number"||Rt.test(t);function Mz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,Lz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,Fz(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Iz;a++){const c=`border${fD[a]}Radius`;let f=MS(e,c),p=MS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||IS(f)===IS(p)?(t[c]=Math.max(Zn(AS(f),AS(p),r),0),(Va.test(p)||Va.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function MS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Lz=dD(0,.5,Mk),Fz=dD(.5,.95,sr);function dD(t,e,n){return r=>r<t?0:r>e?1:n(jd(t,e,r))}function LS(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){LS(t.x,e.x),LS(t.y,e.y)}function FS(t,e,n,r,i){return t-=e,t=vp(t,1/n,r),i!==void 0&&(t=vp(t,1/i,r)),t}function Nz(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=FS(t.min,e,n,c,i),t.max=FS(t.max,e,n,c,i)}function NS(t,e,[n,r,i],o,a){Nz(t,e[n],e[r],e[i],e.scale,o,a)}const jz=["x","scaleX","originX"],Bz=["y","scaleY","originY"];function jS(t,e,n,r){NS(t.x,e,jz,n?n.x:void 0,r?r.x:void 0),NS(t.y,e,Bz,n?n.y:void 0,r?r.y:void 0)}function BS(t){return t.translate===0&&t.scale===1}function hD(t){return BS(t.x)&&BS(t.y)}function $z(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function pD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function $S(t){return es(t.x)/es(t.y)}class Vz{constructor(){this.members=[]}add(e){Ky(this.members,e),e.scheduleRender()}remove(e){if(Zy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Hz=(t,e)=>t.depth-e.depth;class Uz{constructor(){this.children=[],this.isDirty=!1}add(e){Ky(this.children,e),this.isDirty=!0}remove(e){Zy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Hz),this.isDirty=!1,this.children.forEach(e)}}function Wz(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Ol(r),t(o-e))};return Ln.read(r,!0),()=>Ol(r)}function zz(t){window.MotionDebug&&window.MotionDebug.record(t)}function Yz(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Gz(t,e,n){const r=Ro(t)?t:Rf(t);return r.start(Xy("",r,e,n)),r.animation}const HS=["","X","Y","Z"],qz={visibility:"hidden"},US=1e3;let Xz=0;const mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function gD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){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,mc.totalNodes=mc.resolvedTargetDeltas=mc.recalculatedProjection=0,this.nodes.forEach(Jz),this.nodes.forEach(r5),this.nodes.forEach(i5),this.nodes.forEach(Qz),zz(mc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uz)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Jy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Yz(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Wz(T,250),zh.hasAnimatedSinceResize&&(zh.hasAnimatedSinceResize=!1,this.nodes.forEach(zS))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||u5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!pD(this.targetLayout,A)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,H);const ne={...qy(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||zS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ol(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(o5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(WS);return}this.isUpdating||this.nodes.forEach(t5),this.isUpdating=!1,this.nodes.forEach(n5),this.nodes.forEach(Kz),this.nodes.forEach(Zz),this.clearAllSnapshots();const c=performance.now();Fi.delta=Su(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,Kg.update.process(Fi),Kg.preRender.process(Fi),Kg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(e5),this.sharedNodes.forEach(s5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!hD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||gc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),c5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kr();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(cu(c.x,f.offset.x),cu(c.y,f.offset.y)),c}removeElementScroll(a){const c=kr();Ts(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Ts(c,a);const{scroll:T}=this.root;T&&(cu(c.x,-T.offset.x),cu(c.y,-T.offset.y))}cu(c.x,y.offset.x),cu(c.y,y.offset.y)}}return c}applyTransform(a,c=!1){const f=kr();Ts(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Tf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),gc(y.latestValues)&&Tf(f,y.latestValues)}return gc(this.latestValues)&&Tf(f,this.latestValues),f}removeTransform(a){const c=kr();Ts(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!gc(p.latestValues))continue;wv(p.latestValues)&&p.updateSnapshot();const y=kr(),g=p.measurePageBox();Ts(y,g),jS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return gc(this.latestValues)&&jS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Ed(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kr(),this.targetWithTransforms=kr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ts(this.target,this.layout.layoutBox),aD(this.target,this.targetDelta)):Ts(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Ed(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||wv(this.parent.latestValues)||sD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;wz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=Sf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sf(),this.projectionDeltaWithTransform=Sf());const I=this.projectionTransform;Cd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=VS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),mc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=Sf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=kr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(l5));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const q=ne/1e3;YS(g.x,a.x,q),YS(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ed(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a5(this.relativeTarget,this.relativeTargetOrigin,T,q),H&&$z(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=kr()),Ts(H,this.relativeTarget)),I&&(this.animationValues=y,Mz(y,p,this.latestValues,q,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ol(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{zh.hasAnimatedSinceResize=!0,this.currentAnimation=Gz(0,US,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(US),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&mD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kr();const g=es(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=es(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Ts(c,f),Tf(c,y),Cd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Vz),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<HS.length;y++){const g="rotate"+HS[y];f[g]&&(p[g]=f[g],a.setStaticValue(g,0))}a.render();for(const y in p)a.setStaticValue(y,p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qz;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Wh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Wh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=VS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in cp){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=cp[I],U=p.transform==="none"?T[I]:j(T[I],g);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=g===this?Wh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(WS),this.root.sharedNodes.clear()}}}function Kz(t){t.updateLayout()}function Zz(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?ks(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(T);T.min=r[g].min,T.max=T.min+E}):mD(o,n.layoutBox,r)&&ks(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=Sf();Cd(c,r,n.layoutBox);const f=Sf();a?Cd(f,t.applyTransform(i,!0),n.measuredBox):Cd(f,r,n.layoutBox);const p=!hD(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=kr();Ed(A,n.layoutBox,T.layoutBox);const I=kr();Ed(I,r,E.layoutBox),pD(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Jz(t){mc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Qz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function e5(t){t.clearSnapshot()}function WS(t){t.clearMeasurements()}function t5(t){t.isLayoutDirty=!1}function n5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r5(t){t.resolveTargetDelta()}function i5(t){t.calcProjection()}function o5(t){t.resetRotation()}function s5(t){t.removeLeadSnapshot()}function YS(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function GS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function a5(t,e,n,r){GS(t.x,e.x,n.x,r),GS(t.y,e.y,n.y,r)}function l5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const u5={duration:.45,ease:[.4,0,.1,1]},qS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),XS=qS("applewebkit/")&&!qS("chrome/")?Math.round:sr;function KS(t){t.min=XS(t.min),t.max=XS(t.max)}function c5(t){KS(t.x),KS(t.y)}function mD(t,e,n){return t==="position"||t==="preserve-aspect"&&!yv($S(e),$S(n),.2)}const f5=gD({attachResizeListener:(t,e)=>xl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},vD=gD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){const t=new f5({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),d5={pan:{Feature:Pz},drag:{Feature:Dz,ProjectionNode:vD,MeasureLayout:cD}},h5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function p5(t){const e=h5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const g5=4;function Sv(t,e,n=1){la(n<=g5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=p5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return Qk(a)?parseFloat(a):a}else return fv(i)?Sv(i,e,n+1):i}function m5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!fv(o))return;const a=Sv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!fv(o))continue;const a=Sv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const v5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),yD=t=>v5.has(t),y5=t=>Object.keys(t).some(yD),Oh=t=>t===Ic||t===Rt,ZS=(t,e)=>parseFloat(t.split(", ")[e]),JS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return ZS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?ZS(o[1],t):0}},b5=new Set(["x","y","z"]),w5=Xd.filter(t=>!b5.has(t));function x5(t){const e=[];return w5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Af={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:JS(4,13),y:JS(5,14)};Af.translateX=Af.x;Af.translateY=Af.y;const S5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=Af[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const y=e.getValue(p);y&&y.jump(c[p]),t[p]=Af[p](f,o)}),t},T5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(yD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let y=n[f],g=sd(y);const T=e[f];let E;if(dp(T)){const A=T.length,I=T[0]===null?1:0;y=T[I],g=sd(y);for(let j=I;j<A&&T[j]!==null;j++)E?la(sd(T[j])===E,"All keyframes must be of the same type"):(E=sd(T[j]),la(E===g||Oh(g)&&Oh(E),"Keyframes must be of the same dimension as the current value"))}else E=sd(T);if(g!==E)if(Oh(g)&&Oh(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else g!=null&&g.transform&&(E!=null&&E.transform)&&(y===0||T===0)?y===0?p.set(E.transform(y)):e[f]=g.transform(T):(a||(o=x5(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=S5(e,t,c);return o.length&&o.forEach(([y,g])=>{t.getValue(y).set(g)}),t.render(),$p&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function C5(t,e,n,r){return y5(e)?T5(t,e,n,r):{target:e,transitionEnd:r}}const E5=(t,e,n,r)=>{const i=m5(t,e,r);return e=i.target,r=i.transitionEnd,C5(t,e,n,r)},Tv={current:null},bD={current:!1};function k5(){if(bD.current=!0,!!$p)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tv.current=t.matches;t.addListener(e),e()}else Tv.current=!1}function D5(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ro(o))t.addValue(i,o),mp(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(Ro(a))t.addValue(i,Rf(o,{owner:t})),mp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Rf(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const QS=new WeakMap,wD=Object.keys(Nd),P5=wD.length,e1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],O5=Fy.length;class _5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Hp(n),this.isVariantNode=ik(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const T=y[g];c[g]!==void 0&&Ro(T)&&(T.set(c[g],!1),mp(p)&&p.add(g))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,QS.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bD.current||k5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tv.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(){QS.delete(this.current),this.projection&&this.projection.unmount(),Ol(this.notifyUpdate),Ol(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Ac.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Jd(!1,f):la(!1,f)}for(let f=0;f<P5;f++){const p=wD[f],{isEnabled:y,Feature:g,ProjectionNode:T,MeasureLayout:E}=Nd[p];T&&(a=T),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&wf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<e1.length;r++){const i=e1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=D5(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<O5;r++){const i=Fy[r],o=this.props[i];(Fd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Rf(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Uy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ro(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Jy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class xD extends _5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=YW(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){WW(this,r,a);const c=E5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function R5(t){return window.getComputedStyle(t)}class A5 extends xD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ac.has(n)){const r=Gy(n);return r&&r.default||0}else{const r=R5(e),i=(uk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return lD(e,n)}build(e,n,r,i){jy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Hy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ro(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){gk(e,n,r,i)}}class I5 extends xD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ac.has(n)){const r=Gy(n);return r&&r.default||0}return n=mk.has(n)?n:My(n),e.getAttribute(n)}measureInstanceViewportBox(){return kr()}scrapeMotionValuesFromProps(e,n){return yk(e,n)}build(e,n,r,i){$y(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){vk(e,n,r,i)}mount(e){this.isSVGTag=Vy(e.tagName),super.mount(e)}}const M5=(t,e)=>Ny(t)?new I5(e,{enableHardwareAcceleration:!1}):new A5(e,{enableHardwareAcceleration:!0}),L5={layout:{ProjectionNode:vD,MeasureLayout:cD}},F5={...az,...OU,...d5,...L5},SD=NH((t,e)=>mU(t,e,F5,M5));function TD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function CD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function eb(t,e){return e?t:void 0}function N5(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Pe.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 j5(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,f]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,E=y.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!E&&(g=p.top-y.height+p.height),o({top:g,left:T})}},[n,a]),r?e({maxHeight:c}):Fv.createPortal(Pe.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function am(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
|
|
8
|
+
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);hc(this,fd,new N3),hc(this,Xo,{}),hc(this,yl,[]);for(let i of r.backends){let o=Nt(this,ov).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,yl).push(o)}hc(this,qo,Nt(this,yl)[0].id),hc(this,pc,{})}};qo=new WeakMap,fd=new WeakMap,Xo=new WeakMap,yl=new WeakMap,pc=new WeakMap,ov=new WeakMap,sv=new WeakMap,av=new WeakMap,$h=new WeakMap,Vh=new WeakMap,dd=new WeakMap,zE.isSetUp=!1;var j3=zE,B3=(t,e,n)=>new j3(t,e,n),YE=(t,e)=>({event:t,check:e}),$3=YE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),V3=YE("pointerdown",t=>t.pointerType==="mouse"),du;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(du||(du={}));class H3{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function U3(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function W3(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const z3={Left:1},Y3={Left:0};function Xg(t){return t.button===void 0||t.button===Y3.Left}function G3(t){return t.buttons===void 0||(t.buttons&z3.Left)===0}function GE(t){return!!t.targetTouches}const q3=1;function X3(t){const e=t.nodeType===q3?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function K3(t,e){if(t.targetTouches.length===1)return up(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return up(t.touches[0])}function up(t,e){return GE(t)?K3(t,e):{x:t.clientX,y:t.clientY}}const Wx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),id={[du.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[du.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[du.keyboard]:{keydown:"keydown"}};class xd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!xd.isSetUp,"Cannot have two Touch backends at the same time."),xd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(xd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=id[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=Wx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=id[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case id.mouse.move:a={x:o.clientX,y:o.clientY};break;case id.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,y=p&&n.contains(p);if(p===n||y)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&X3(o)},this.handleTopMoveStartCapture=i=>{Xg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Xg(i))return;const o=up(i);o&&(GE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Xg(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:a}=this,c=this.options.enableHoverOutsideTarget,f=up(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&W3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&U3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const y=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,y):this.document.elementsFromPoint(f.x,f.y),T=[];for(const A in g){if(!g.hasOwnProperty(A))continue;let I=g[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>y.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:f})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!G3(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=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(du.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(du.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(du.keyboard)}}const Z3=function(e,n={},r={}){return new xd(e,n,r)};var As=function(){return As=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},As.apply(this,arguments)};function io(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function J3(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,f=F$({polyfill:lF}),p=f[0],y=f[1].height,g=X.useState(e),T=g[0],E=g[1],A=X.useState(e),I=A[0],j=A[1],R=X.useState(!1),U=R[0],H=R[1],ne=function(){H(!1),e||E(!1)};X.useEffect(function(){H(!0),e?E(!0):j(!1)},[e]);var q=y===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(M$.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:ne,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:Q3(y,i)}},X.createElement("div",{ref:p},T&&c))}function Q3(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var qE=X.createContext({}),eH={isLock:!1},tH=function(t){var e=X.useState(eH.isLock),n=e[0],r=e[1];return X.createElement(qE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},qd=X.createContext({}),Ch={dropTargetId:void 0,index:void 0},nH=function(t){var e=X.useState(Ch.dropTargetId),n=e[0],r=e[1],i=X.useState(Ch.index),o=i[0],a=i[1],c=function(p,y){r(p),a(y)},f=function(){r(Ch.dropTargetId),a(Ch.index)};return X.createElement(qd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},rH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},od=function(t,e){return t.find(function(n){return n.id===e})},XE=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:XE(t,e,r.parent)},Ay=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},xu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(y){return y.id===e});return!!(a&&a.droppable)}else{var c=Ay(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(g){return g.id===c}),a=r.find(function(g){return g.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!XE(r,c,e)}},iH=function(t,e,n){return t.map(function(r){return r.id===e?As(As({},r),{parent:n}):r})},KE=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},oH=function(t,e){return t.findIndex(function(n){return n.id===e})},ZE=function(t,e,n,r){var i=oH(t,e),o=KE(t,n,r);return o=o>i?o-1:o,[i,o]},sH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},aH=function(t,e,n,r){var i=ZE(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return sH(c,o,a),c.map(function(f){return f.id===e?As(As({},f),{parent:n}):f})},lH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},lv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=lH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},zx=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?lv(i,n):null},uH=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},uv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:lv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=uH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(xu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:lv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(xu(a,t.parent,r)){var p=zx(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},cH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:GT,options:t.html5,transition:V3},{id:"touch",backend:Z3,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:$3}]}},Uh=function(t,e){return t.some(function(n){return n.parent===e})},JE=X.createContext({}),fH=function(t){var e=yH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Rl().getMonitor(),y=t.canDrop,g=t.canDrag,T=As(As({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:od(t.tree,A),monitor:p},R=t.tree;if(od(R,E.id)||(R=io(io([],R,!0),[E],!1)),t.sort===!1){var U=ZE(R,E.id,A,I),H=U[1];j.destinationIndex=H,j.relativeIndex=I,t.onDrop(aH(R,E.id,A,I),j);return}t.onDrop(iH(R,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:od(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=KE(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:y?function(E,A){return y(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:od(t.tree,A),monitor:p})}:void 0,canDrag:g?function(E){return g(od(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(JE.Provider,{value:T},t.children)},dH=function(t){return X.createElement(fH,As({},t),X.createElement(tH,null,X.createElement(nH,null,t.children)))},hH=function(t){var e=X.useContext(qE);X.useEffect(function(){if(t.current){var n=t.current,r=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.lock()},i=function(y){var g=y.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.unlock()},o=function(y){return r(y)},a=function(y){return i(y)},c=function(y){return r(y)},f=function(y){return i(y)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},jp={TREE_ITEM:Symbol()},QE=null,ek=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(QE=n)}},Yx=function(t){return ek(t)},Gx=function(t){return ek(t)},pH=function(t,e){var n=Du();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Yx),c==null||c.addEventListener("touchstart",Gx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Yx),c==null||c.removeEventListener("touchstart",Gx)}},[e]);var r=HE({type:jp.TREE_ITEM,item:function(c){var f=As({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return QE!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},gH=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},mH=function(t){var e=Du(),n=X.useContext(qd),r=lp({accept:io([jp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var y=e.rootId,g=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&g(Ay(f)?f:null,y,E),n.hidePlaceholder()},canDrop:function(f,p){var y=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:xu(f,y,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var y=e.rootId,g=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=uv(null,t.current,p,e);if(I===null||!xu(f,y,e)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},vH=function(t,e){var n=Du(),r=X.useContext(qd),i=lp({accept:io([jp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,y){var g=r.dropTargetId,T=r.index;y.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(Ay(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,y){if(y.isOver({shallow:!0})){var g=uv(t,e.current,y,n);return g===null?!1:xu(p,g.id,n)}return!1},hover:function(p,y){if(y.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=uv(t,e.current,y,n);if(I===null||!xu(p,I.id,n)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var y=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:y}}}),o=i[0],a=o.isOver,c=o.dragSource,f=i[1];return[a,c,f]},yH=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(g){return Uh(t,g.id)}).map(function(g){return g.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(g,T){var E=i.includes(g)?i.filter(function(A){return A!==g}):io(io([],i,!0),[g],!1);o(E),T&&T(E)},c=function(g){o([]),g&&g([])},f=function(g){var T=t.filter(function(E){return Uh(t,E.id)}).map(function(E){return E.id});o(T),g&&g(T)},p=function(g,T){var E=[];if(Array.isArray(g)){var A=t.filter(function(I){return g.includes(I.id)&&Uh(t,I.id)});E=io(io([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,R){return R.indexOf(I)===j})}else E=i.includes(g)?i:io(io([],i,!0),[g],!1);o(E),T&&T(E)},y=function(g,T){var E=i.filter(function(A){return Array.isArray(g)?!g.includes(A):A!==g});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:y}]},bH=function(){return O3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===jp.TREE_ITEM}})},Du=function(){var t=X.useContext(JE);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},wH=function(t,e){var n=Du(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},xH=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},SH=function(t){var e=Du(),n=X.useContext(qd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(le){return le.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),y=pH(o,r),g=y[0],T=y[1],E=y[2],A=vH(o,r),I=A[0],j=A[1],R=A[2];xH(r,i,T),xu(j,t.id,e)&&R(r),X.useEffect(function(){e.dragPreviewRender?E(V2(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),hH(r);var U=function(){return e.onToggle(o.id)},H=e.listItemComponent,ne=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,ie={depth:t.depth,isOpen:p,isDragging:g,isDropTarget:q,draggable:ne,hasChild:Uh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},x="";return c!=null&&c.listItem&&(x=typeof c.listItem=="string"?c.listItem:c.listItem(o,ie)),I&&(c!=null&&c.dropTarget)&&(x="".concat(x," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(x="".concat(x," ").concat(c.draggingSource)),X.createElement(H,{ref:r,className:x,role:"listitem"},e.render(o,ie),f&&ie.hasChild&&X.createElement(J3,{isVisible:p},X.createElement(cv,{parentId:t.id,depth:t.depth+1})),!f&&ie.hasChild&&p&&X.createElement(cv,{parentId:t.id,depth:t.depth+1}))},qx=function(t){var e=Du(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(qd),a=Rl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),y=c.getTargetIds();return!p||!y.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},cv=function(t){var e=Du(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:rH;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=io(io([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=io(io([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var f=mH(n),p=f[0],y=f[1],g=f[2];t.parentId===e.rootId&&xu(y,e.rootId,e)&&g(n);var T=wH(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,As({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(SH,{id:I.id,depth:t.depth}))}),X.createElement(qx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},TH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},CH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},EH=function(){var t=Du(),e=bH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:TH},X.createElement("div",{style:CH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function kH(t,e){return X.createElement(dH,As({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(EH,null),X.createElement(cv,{parentId:t.rootId,depth:0}))}var DH=X.forwardRef(kH);const tk=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Bp=X.createContext({}),Iy=X.createContext(null),$p=typeof document<"u",PH=$p?X.useLayoutEffect:X.useEffect,nk=X.createContext({strict:!1}),My=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),OH="framerAppearId",rk="data-"+My(OH);function _H(t,e,n,r){const{visualElement:i}=X.useContext(Bp),o=X.useContext(nk),a=X.useContext(Iy),c=X.useContext(tk).reducedMotion,f=X.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const y=X.useRef(!!(n[rk]&&!window.HandoffComplete));return PH(()=>{p&&(p.render(),y.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),p}function wf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function RH(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):wf(n)&&(n.current=r))},[e])}function Fd(t){return typeof t=="string"||Array.isArray(t)}function Vp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ly=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fy=["initial",...Ly];function Hp(t){return Vp(t.animate)||Fy.some(e=>Fd(t[e]))}function ik(t){return!!(Hp(t)||t.variants)}function AH(t,e){if(Hp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Fd(n)?n:void 0,animate:Fd(r)?r:void 0}}return t.inherit!==!1?e:{}}function IH(t){const{initial:e,animate:n}=AH(t,X.useContext(Bp));return X.useMemo(()=>({initial:e,animate:n}),[Xx(e),Xx(n)])}function Xx(t){return Array.isArray(t)?t.join(" "):t}const Kx={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 t in Kx)Nd[t]={isEnabled:e=>Kx[t].some(n=>!!e[n])};function MH(t){for(const e in t)Nd[e]={...Nd[e],...t[e]}}const ok=X.createContext({}),sk=X.createContext({}),LH=Symbol.for("motionComponentSymbol");function FH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&MH(t);function o(c,f){let p;const y={...X.useContext(tk),...c,layoutId:NH(c)},{isStatic:g}=y,T=IH(c),E=r(c,g);if(!g&&$p){T.visualElement=_H(i,E,y,e);const A=X.useContext(sk),I=X.useContext(nk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(y,I,t,A))}return kn.createElement(Bp.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...y}):null,n(i,c,RH(E,T.visualElement,f),E,g,T.visualElement))}const a=X.forwardRef(o);return a[LH]=i,a}function NH({layoutId:t}){const e=X.useContext(ok).id;return e&&t!==void 0?e+"-"+t:t}function jH(t){function e(r,i={}){return FH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const BH=["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 Ny(t){return typeof t!="string"||t.includes("-")?!1:!!(BH.indexOf(t)>-1||/[A-Z]/.test(t))}const cp={};function $H(t){Object.assign(cp,t)}const Xd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ac=new Set(Xd);function ak(t,{layout:e,layoutId:n}){return Ac.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!cp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),VH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},HH=Xd.length;function UH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<HH;a++){const c=Xd[a];if(t[c]!==void 0){const f=VH[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const lk=t=>e=>typeof e=="string"&&e.startsWith(t),uk=lk("--"),fv=lk("var(--"),WH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,zH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Su=(t,e,n)=>Math.min(Math.max(n,t),e),Ic={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Sd={...Ic,transform:t=>Su(0,1,t)},Eh={...Ic,default:1},Td=t=>Math.round(t*1e5)/1e5,Up=/(-)?([\d]*\.?[\d])+/g,ck=/(#[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 Kd(t){return typeof t=="string"}const Zd=t=>({test:e=>Kd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),uu=Zd("deg"),Va=Zd("%"),Rt=Zd("px"),GH=Zd("vh"),qH=Zd("vw"),Zx={...Va,parse:t=>Va.parse(t)/100,transform:t=>Va.transform(t*100)},Jx={...Ic,transform:Math.round},fk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:uu,rotateX:uu,rotateY:uu,rotateZ:uu,scale:Eh,scaleX:Eh,scaleY:Eh,scaleZ:Eh,skew:uu,skewX:uu,skewY:uu,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Sd,originX:Zx,originY:Zx,originZ:Rt,zIndex:Jx,fillOpacity:Sd,strokeOpacity:Sd,numOctaves:Jx};function jy(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,y=!0;for(const g in e){const T=e[g];if(uk(g)){o[g]=T;continue}const E=fk[g],A=zH(T,E);if(Ac.has(g)){if(f=!0,a[g]=A,!y)continue;T!==(E.default||0)&&(y=!1)}else g.startsWith("origin")?(p=!0,c[g]=A):i[g]=A}if(e.transform||(f||r?i.transform=UH(t.transform,n,y,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${g} ${T} ${E}`}}const By=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dk(t,e,n){for(const r in e)!Ro(e[r])&&!ak(r,n)&&(t[r]=e[r])}function XH({transformTemplate:t},e,n){return X.useMemo(()=>{const r=By();return jy(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function KH(t,e,n){const r=t.style||{},i={};return dk(i,r,t),Object.assign(i,XH(t,e,n)),t.transformValues?t.transformValues(i):i}function ZH(t,e,n){const r={},i=KH(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const JH=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 fp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||JH.has(t)}let hk=t=>!fp(t);function QH(t){t&&(hk=e=>e.startsWith("on")?!fp(e):t(e))}try{QH(require("@emotion/is-prop-valid").default)}catch{}function eU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(hk(i)||n===!0&&fp(i)||!e&&!fp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function Qx(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function tU(t,e,n){const r=Qx(e,t.x,t.width),i=Qx(n,t.y,t.height);return`${r} ${i}`}const nU={offset:"stroke-dashoffset",array:"stroke-dasharray"},rU={offset:"strokeDashoffset",array:"strokeDasharray"};function iU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?nU:rU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function $y(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},y,g,T){if(jy(t,p,y,T),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=tU(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&iU(E,a,c,f,!1)}const pk=()=>({...By(),attrs:{}}),Vy=t=>typeof t=="string"&&t.toLowerCase()==="svg";function oU(t,e,n,r){const i=X.useMemo(()=>{const o=pk();return $y(o,e,{enableHardwareAcceleration:!1},Vy(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};dk(o,t.style,t),i.style={...o,...i.style}}return i}function sU(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(Ny(n)?oU:ZH)(r,o,a,n),y={...eU(r,typeof n=="string",t),...f,ref:i},{children:g}=r,T=X.useMemo(()=>Ro(g)?g.get():g,[g]);return X.createElement(n,{...y,children:T})}}function gk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const mk=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 vk(t,e,n,r){gk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(mk.has(i)?i:My(i),e.attrs[i])}function Hy(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||ak(i,t))&&(r[i]=n[i]);return r}function yk(t,e){const n=Hy(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=Xd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Uy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function aU(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const dp=t=>Array.isArray(t),lU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),uU=t=>dp(t)?t[t.length-1]||0:t;function Wh(t){const e=Ro(t)?t.get():t;return lU(e)?e.toValue():e}function cU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:fU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const bk=t=>(e,n)=>{const r=X.useContext(Bp),i=X.useContext(Iy),o=()=>cU(t,e,r,i);return n?o():aU(o)};function fU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Wh(o[T]);let{initial:a,animate:c}=t;const f=Hp(t),p=ik(t);e&&p&&!f&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let y=n?n.initial===!1:!1;y=y||a===!1;const g=y?c:a;return g&&typeof g!="boolean"&&!Vp(g)&&(Array.isArray(g)?g:[g]).forEach(E=>{const A=Uy(t,E);if(!A)return;const{transitionEnd:I,transition:j,...R}=A;for(const U in R){let H=R[U];if(Array.isArray(H)){const ne=y?H.length-1:0;H=H[ne]}H!==null&&(i[U]=H)}for(const U in I)i[U]=I[U]}),i}const sr=t=>t;class eS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function dU(t){let e=new eS,n=new eS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,y=!1)=>{const g=y&&i,T=g?e:n;return p&&a.add(f),T.add(f)&&g&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const y=e.order[p];y(f),a.has(y)&&(c.schedule(y),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const kh=["prepare","read","update","preRender","render","postRender"],hU=40;function pU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=kh.reduce((g,T)=>(g[T]=dU(()=>n=!0),g),{}),a=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,hU),1),i.timestamp=g,i.isProcessing=!0,kh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:kh.reduce((g,T)=>{const E=o[T];return g[T]=(A,I=!1,j=!1)=>(n||f(),E.schedule(A,I,j)),g},{}),cancel:g=>kh.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Ln,cancel:Ol,state:Fi,steps:Kg}=pU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),gU={useVisualState:bk({scrapeMotionValuesFromProps:yk,createRenderState:pk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{$y(n,r,{enableHardwareAcceleration:!1},Vy(e.tagName),t.transformTemplate),vk(e,n)})}})},mU={useVisualState:bk({scrapeMotionValuesFromProps:Hy,createRenderState:By})};function vU(t,{forwardMotionProps:e=!1},n,r){return{...Ny(t)?gU:mU,preloadedFeatures:n,useRender:sU(e),createVisualElement:r,Component:t}}function xl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const wk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Wp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const yU=t=>e=>wk(e)&&t(e,Wp(e));function El(t,e,n,r){return xl(t,e,yU(n),r)}const bU=(t,e)=>n=>e(t(n)),hu=(...t)=>t.reduce(bU);function xk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const tS=xk("dragHorizontal"),nS=xk("dragVertical");function Sk(t){let e=!1;if(t==="y")e=nS();else if(t==="x")e=tS();else{const n=tS(),r=nS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Tk(){const t=Sk(!0);return t?(t(),!1):!0}class Pu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function rS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Tk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return El(t.current,n,i,{passive:!t.getProps()[r]})}class wU extends Pu{mount(){this.unmount=hu(rS(this.node,!0),rS(this.node,!1))}unmount(){}}class xU extends Pu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hu(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ck=(t,e)=>e?t===e?!0:Ck(t,e.parentElement):!1;function Zg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Wp(n))}class SU extends Pu{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=El(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:y,globalTapTarget:g}=this.node.getProps();Ln.update(()=>{!g&&!Ck(this.node.current,c.target)?y&&y(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=El(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=hu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Zg("up",(f,p)=>{const{onTap:y}=this.node.getProps();y&&Ln.update(()=>y(f,p))})};this.removeEndListeners(),this.removeEndListeners=xl(this.node.current,"keyup",a),Zg("down",(c,f)=>{this.startPress(c,f)})},n=xl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Zg("cancel",(o,a)=>this.cancelPress(o,a))},i=xl(this.node.current,"blur",r);this.removeAccessibleListeners=hu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Tk()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=El(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=xl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=hu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const dv=new WeakMap,Jg=new WeakMap,TU=t=>{const e=dv.get(t.target);e&&e(t)},CU=t=>{t.forEach(TU)};function EU({root:t,...e}){const n=t||document;Jg.has(n)||Jg.set(n,{});const r=Jg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(CU,{root:t,...e})),r[i]}function kU(t,e,n){const r=EU(e);return dv.set(t,n),r.observe(t),()=>{dv.delete(t),r.unobserve(t)}}const DU={some:0,all:1};class PU extends Pu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:DU[i]},c=f=>{const{isIntersecting:p}=f;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),T=p?y:g;T&&T(f)};return kU(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(OU(e,n))&&this.startObserver()}unmount(){}}function OU({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const _U={inView:{Feature:PU},tap:{Feature:SU},focus:{Feature:xU},hover:{Feature:wU}};function Ek(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function RU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function AU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function zp(t,e,n){const r=t.getProps();return Uy(r,e,n!==void 0?n:r.custom,RU(t),AU(t))}let Jd=sr,la=sr;process.env.NODE_ENV!=="production"&&(Jd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},la=(t,e)=>{if(!t)throw new Error(e)});const pu=t=>t*1e3,kl=t=>t/1e3,IU={current:!1},kk=t=>Array.isArray(t)&&typeof t[0]=="number";function Dk(t){return!!(!t||typeof t=="string"&&Pk[t]||kk(t)||Array.isArray(t)&&t.every(Dk))}const hd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hd([0,.65,.55,1]),circOut:hd([.55,0,1,.45]),backIn:hd([.31,.01,.66,-.59]),backOut:hd([.33,1.53,.69,.99])};function Ok(t){if(t)return kk(t)?hd(t):Array.isArray(t)?t.map(Ok):Pk[t]}function MU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const y=Ok(c);return Array.isArray(y)&&(p.easing=y),t.animate(p,{delay:r,duration:i,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function LU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const _k=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,FU=1e-7,NU=12;function jU(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=_k(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>FU&&++c<NU);return a}function Qd(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>jU(o,0,1,t,n);return o=>o===0||o===1?o:_k(i(o),e,r)}const BU=Qd(.42,0,1,1),$U=Qd(0,0,.58,1),Rk=Qd(.42,0,.58,1),VU=t=>Array.isArray(t)&&typeof t[0]!="number",Ak=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ik=t=>e=>1-t(1-e),Wy=t=>1-Math.sin(Math.acos(t)),Mk=Ik(Wy),HU=Ak(Wy),Lk=Qd(.33,1.53,.69,.99),zy=Ik(Lk),UU=Ak(zy),WU=t=>(t*=2)<1?.5*zy(t):.5*(2-Math.pow(2,-10*(t-1))),iS={linear:sr,easeIn:BU,easeInOut:Rk,easeOut:$U,circIn:Wy,circInOut:HU,circOut:Mk,backIn:zy,backInOut:UU,backOut:Lk,anticipate:WU},oS=t=>{if(Array.isArray(t)){la(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Qd(e,n,r,i)}else if(typeof t=="string")return la(iS[t]!==void 0,`Invalid easing type '${t}'`),iS[t];return t},Yy=(t,e)=>n=>!!(Kd(n)&&YH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Fk=(t,e,n)=>r=>{if(!Kd(r))return r;const[i,o,a,c]=r.match(Up);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},zU=t=>Su(0,255,t),Qg={...Ic,transform:t=>Math.round(zU(t))},bc={test:Yy("rgb","red"),parse:Fk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Qg.transform(t)+", "+Qg.transform(e)+", "+Qg.transform(n)+", "+Td(Sd.transform(r))+")"};function YU(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const hv={test:Yy("#"),parse:YU,transform:bc.transform},xf={test:Yy("hsl","hue"),parse:Fk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Va.transform(Td(e))+", "+Va.transform(Td(n))+", "+Td(Sd.transform(r))+")"},ro={test:t=>bc.test(t)||hv.test(t)||xf.test(t),parse:t=>bc.test(t)?bc.parse(t):xf.test(t)?xf.parse(t):hv.parse(t),transform:t=>Kd(t)?t:t.hasOwnProperty("red")?bc.transform(t):xf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function em(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function GU({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,f=2*n-c;i=em(f,c,t+1/3),o=em(f,c,t),a=em(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const tm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},qU=[hv,bc,xf],XU=t=>qU.find(e=>e.test(t));function sS(t){const e=XU(t);la(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===xf&&(n=GU(n)),n}const Nk=(t,e)=>{const n=sS(t),r=sS(e),i={...n};return o=>(i.red=tm(n.red,r.red,o),i.green=tm(n.green,r.green,o),i.blue=tm(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),bc.transform(i))};function KU(t){var e,n;return isNaN(t)&&Kd(t)&&(((e=t.match(Up))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ck))===null||n===void 0?void 0:n.length)||0)>0}const jk={regex:WH,countKey:"Vars",token:"${v}",parse:sr},Bk={regex:ck,countKey:"Colors",token:"${c}",parse:ro.parse},$k={regex:Up,countKey:"Numbers",token:"${n}",parse:Ic.parse};function nm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function hp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&nm(n,jk),nm(n,Bk),nm(n,$k),n}function Vk(t){return hp(t).values}function Hk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=hp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(jk.token,a[f]):f<r+n?c=c.replace(Bk.token,ro.transform(a[f])):c=c.replace($k.token,Td(a[f]));return c}}const ZU=t=>typeof t=="number"?0:t;function JU(t){const e=Vk(t);return Hk(t)(e.map(ZU))}const Tu={test:KU,parse:Vk,createTransformer:Hk,getAnimatableNone:JU},Uk=(t,e)=>n=>`${n>0?e:t}`;function Wk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Nk(t,e):t.startsWith("var(")?Uk(t,e):Yk(t,e)}const zk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Wk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},QU=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Wk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Yk=(t,e)=>{const n=Tu.createTransformer(e),r=hp(t),i=hp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?hu(zk(r.values,i.values),n):(Jd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Uk(t,e))},jd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},aS=(t,e)=>n=>Zn(t,e,n);function eW(t){return typeof t=="number"?aS:typeof t=="string"?ro.test(t)?Nk:Yk:Array.isArray(t)?zk:typeof t=="object"?QU:aS}function tW(t,e,n){const r=[],i=n||eW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=hu(f,c)}r.push(c)}return r}function Gk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(la(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=tW(e,r,i),c=a.length,f=p=>{let y=0;if(c>1)for(;y<t.length-2&&!(p<t[y+1]);y++);const g=jd(t[y],t[y+1],p);return a[y](g)};return n?p=>f(Su(t[0],t[o-1],p)):f}function nW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=jd(0,e,r);t.push(Zn(n,1,i))}}function rW(t){const e=[0];return nW(e,t.length-1),e}function iW(t,e){return t.map(n=>n*e)}function oW(t,e){return t.map(()=>e||Rk).splice(0,t.length-1)}function pp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=VU(r)?r.map(oS):oS(r),o={done:!1,value:e[0]},a=iW(n&&n.length===e.length?n:rW(e),t),c=Gk(a,e,{ease:Array.isArray(i)?i:oW(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function qk(t,e){return e?t*(1e3/e):0}const sW=5;function Xk(t,e,n){const r=Math.max(e-sW,0);return qk(n-t(r),e-r)}const lS=.001,aW=.01,uS=10,lW=.05,uW=1;function cW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Jd(t<=pu(uS),"Spring duration must be 10 seconds or less");let a=1-e;a=Su(lW,uW,a),t=Su(aW,uS,kl(t)),a<1?(i=p=>{const y=p*a,g=y*t,T=y-n,E=pv(p,a),A=Math.exp(-g);return lS-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=pv(Math.pow(p,2),a);return(-i(p)+lS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const y=Math.exp(-p*t),g=(p-n)*t+1;return-.001+y*g},o=p=>{const y=Math.exp(-p*t),g=(n-p)*(t*t);return y*g});const c=5/t,f=dW(i,o,c);if(t=pu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const fW=12;function dW(t,e,n){let r=n;for(let i=1;i<fW;i++)r=r-t(r)/e(r);return r}function pv(t,e){return t*Math.sqrt(1-e*e)}const hW=["duration","bounce"],pW=["stiffness","damping","mass"];function cS(t,e){return e.some(n=>t[n]!==void 0)}function gW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cS(t,pW)&&cS(t,hW)){const n=cW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Kk({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:y,velocity:g,isResolvedFromDuration:T}=gW({...r,velocity:-kl(r.velocity||0)}),E=g||0,A=f/(2*Math.sqrt(c*p)),I=o-i,j=kl(Math.sqrt(c/p)),R=Math.abs(I)<5;n||(n=R?.01:2),e||(e=R?.005:.5);let U;if(A<1){const H=pv(j,A);U=ne=>{const q=Math.exp(-A*j*ne);return o-q*((E+A*j*I)/H*Math.sin(H*ne)+I*Math.cos(H*ne))}}else if(A===1)U=H=>o-Math.exp(-j*H)*(I+(E+j*I)*H);else{const H=j*Math.sqrt(A*A-1);U=ne=>{const q=Math.exp(-A*j*ne),ie=Math.min(H*ne,300);return o-q*((E+A*j*I)*Math.sinh(ie)+H*I*Math.cosh(ie))/H}}return{calculatedDuration:T&&y||null,next:H=>{const ne=U(H);if(T)a.done=H>=y;else{let q=E;H!==0&&(A<1?q=Xk(U,H,ne):q=0);const ie=Math.abs(q)<=n,x=Math.abs(o-ne)<=e;a.done=ie&&x}return a.value=a.done?o:ne,a}}}function fS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:y}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,R=a===void 0?j:a(j);R!==j&&(I=R-g);const U=le=>-I*Math.exp(-le/r),H=le=>R+U(le),ne=le=>{const ae=U(le),$e=H(le);T.done=Math.abs(ae)<=p,T.value=T.done?R:$e};let q,ie;const x=le=>{E(T.value)&&(q=le,ie=Kk({keyframes:[T.value,A(T.value)],velocity:Xk(H,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:y}))};return x(0),{calculatedDuration:null,next:le=>{let ae=!1;return!ie&&q===void 0&&(ae=!0,ne(le),x(le)),q!==void 0&&le>q?ie.next(le-q):(!ae&&ne(le),T)}}}const mW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Ol(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},dS=2e4;function hS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<dS;)e+=n,r=t.next(e);return e>=dS?1/0:e}const vW={decay:fS,inertia:fS,tween:pp,keyframes:pp,spring:Kk};function gp({autoplay:t=!0,delay:e=0,driver:n=mW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:y,onUpdate:g,...T}){let E=1,A=!1,I,j;const R=()=>{j=new Promise(Se=>{I=Se})};R();let U;const H=vW[i]||pp;let ne;H!==pp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&la(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),ne=Gk([0,100],r,{clamp:!1}),r=[0,100]);const q=H({...T,keyframes:r});let ie;c==="mirror"&&(ie=H({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let x="idle",le=null,ae=null,$e=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=hS(q));const{calculatedDuration:tt}=q;let Qe=1/0,Ye=1/0;tt!==null&&(Qe=tt+a,Ye=Qe*(o+1)-a);let Oe=0;const ue=Se=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Se)),E<0&&(ae=Math.min(Se-Ye/E,ae)),le!==null?Oe=le:Oe=Math.round(Se-ae)*E;const je=Oe-e*(E>=0?1:-1),Ue=E>=0?je<0:je>Ye;Oe=Math.max(je,0),x==="finished"&&le===null&&(Oe=Ye);let Ge=Oe,Ze=q;if(o){const pt=Math.min(Oe,Ye)/Qe;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Qe)):c==="mirror"&&(Ze=ie)),Ge=Su(0,1,yt)*Qe}const Xe=Ue?{done:!1,value:r[0]}:Ze.next(Ge);ne&&(Xe.value=ne(Xe.value));let{done:ot}=Xe;!Ue&&tt!==null&&(ot=E>=0?Oe>=Ye:Oe<=0);const ct=le===null&&(x==="finished"||x==="running"&&ot);return g&&g(Xe.value),ct&&Le(),Xe},ve=()=>{U&&U.stop(),U=void 0},ke=()=>{x="idle",ve(),I(),R(),ae=$e=null},Le=()=>{x="finished",y&&y(),ve(),I()},et=()=>{if(A)return;U||(U=n(ue));const Se=U.now();f&&f(),le!==null?ae=Se-le:(!ae||x==="finished")&&(ae=Se),x==="finished"&&R(),$e=ae,le=null,x="running",U.start()};t&&et();const me={then(Se,je){return j.then(Se,je)},get time(){return kl(Oe)},set time(Se){Se=pu(Se),Oe=Se,le!==null||!U||E===0?le=Se:ae=U.now()-Se/E},get duration(){const Se=q.calculatedDuration===null?hS(q):q.calculatedDuration;return kl(Se)},get speed(){return E},set speed(Se){Se===E||!U||(E=Se,me.time=kl(Oe))},get state(){return x},play:et,pause:()=>{x="paused",le=Oe},stop:()=>{A=!0,x!=="idle"&&(x="idle",p&&p(),ke())},cancel:()=>{$e!==null&&ue($e),ke()},complete:()=>{x="finished"},sample:Se=>(ae=0,ue(Se))};return me}function yW(t){let e;return()=>(e===void 0&&(e=t()),e)}const bW=yW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Dh=10,xW=2e4,SW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Dk(e.ease);function TW(t,e,{onUpdate:n,onComplete:r,...i}){if(!(bW()&&wW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const y=()=>{f=new Promise(H=>{c=H})};y();let{keyframes:g,duration:T=300,ease:E,times:A}=i;if(SW(e,i)){const H=gp({...i,repeat:0,delay:0});let ne={done:!1,value:g[0]};const q=[];let ie=0;for(;!ne.done&&ie<xW;)ne=H.sample(ie),q.push(ne.value),ie+=Dh;A=void 0,g=q,T=ie-Dh,E="linear"}const I=MU(t.owner.current,e,g,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},R=()=>{p=!0,Ln.update(j),c(),y()};return I.onfinish=()=>{p||(t.set(LU(g,i)),r&&r(),R())},{then(H,ne){return f.then(H,ne)},attachTimeline(H){return I.timeline=H,I.onfinish=null,sr},get time(){return kl(I.currentTime||0)},set time(H){I.currentTime=pu(H)},get speed(){return I.playbackRate},set speed(H){I.playbackRate=H},get duration(){return kl(T)},play:()=>{a||(I.play(),Ol(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:H}=I;if(H){const ne=gp({...i,autoplay:!1});t.setWithVelocity(ne.sample(H-Dh).value,ne.sample(H).value,Dh)}R()},complete:()=>{p||I.finish()},cancel:R}}function CW({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?gp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const EW={type:"spring",stiffness:500,damping:25,restSpeed:10},kW=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),DW={type:"keyframes",duration:.8},PW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OW=(t,{keyframes:e})=>e.length>2?DW:Ac.has(t)?t.startsWith("scale")?kW(e[1]):EW:PW,gv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tu.test(e)||e==="0")&&!e.startsWith("url(")),_W=new Set(["brightness","contrast","saturate","opacity"]);function RW(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Up)||[];if(!r)return t;const i=n.replace(r,"");let o=_W.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const AW=/([a-z-]*)\(.*?\)/g,mv={...Tu,getAnimatableNone:t=>{const e=t.match(AW);return e?e.map(RW).join(" "):t}},IW={...fk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:mv,WebkitFilter:mv},Gy=t=>IW[t];function Zk(t,e){let n=Gy(t);return n!==mv&&(n=Tu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Jk=t=>/^0[^.\s]+$/.test(t);function MW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Jk(t)}function LW(t,e,n,r){const i=gv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),MW(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const y=f[p];o[y]=Zk(e,c)}return o}function FW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...y}){return!!Object.keys(y).length}function qy(t,e){return t[e]||t.default||t}const NW={skipAnimations:!1},Xy=(t,e,n,r={})=>i=>{const o=qy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-pu(a);const f=LW(e,t,n,o),p=f[0],y=f[f.length-1],g=gv(t,p),T=gv(t,y);Jd(g===T,`You are trying to animate ${t} from "${p}" to "${y}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${y} via the \`style\` property.`);let E={keyframes:f,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(FW(o)||(E={...E,...OW(t,E)}),E.duration&&(E.duration=pu(E.duration)),E.repeatDelay&&(E.repeatDelay=pu(E.repeatDelay)),!g||!T||IU.current||o.type===!1||NW.skipAnimations)return CW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=TW(e,t,E);if(A)return A}return gp(E)};function mp(t){return!!(Ro(t)&&t.add)}const Qk=t=>/^\-?\d*\.?\d+$/.test(t);function Ky(t,e){t.indexOf(e)===-1&&t.push(e)}function Zy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Jy{constructor(){this.subscriptions=[]}add(e){return Ky(this.subscriptions,e),()=>Zy(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pS=new Set;function Qy(t,e,n){t||pS.has(e)||(console.warn(e),pS.add(e))}const jW=t=>!isNaN(parseFloat(t));class BW{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Fi;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=jW(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Qy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Jy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?qk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rf(t,e){return new BW(t,e)}const eD=t=>e=>e.test(t),$W={test:t=>t==="auto",parse:t=>t},tD=[Ic,Rt,Va,uu,qH,GH,$W],sd=t=>tD.find(eD(t)),VW=[...tD,ro,Tu],HW=t=>VW.find(eD(t));function UW(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rf(n))}function WW(t,e){const n=zp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=uU(o[a]);UW(t,a,c)}}function zW(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const f=o[c],p=e[f];let y=null;Array.isArray(p)&&(y=p[0]),y===null&&(y=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),y!=null&&(typeof y=="string"&&(Qk(y)||Jk(y))?y=parseFloat(y):!HW(y)&&Tu.test(p)&&(y=Zk(f,p)),t.addValue(f,Rf(y,{owner:t})),n[f]===void 0&&(n[f]=y),y!==null&&t.setBaseTarget(f,y))}}function YW(t,e){return e?(e[t]||e.default||e).from:void 0}function GW(t,e,n){const r={};for(const i in t){const o=YW(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function qW({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function XW(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function nD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],y=i&&t.animationState&&t.animationState.getState()[i];for(const g in c){const T=t.getValue(g),E=c[g];if(!T||E===void 0||y&&qW(y,g))continue;const A={delay:n,elapsed:0,...qy(o||{},g)};if(window.HandoffAppearAnimations){const R=t.getProps()[rk];if(R){const U=window.HandoffAppearAnimations(R,g,T,Ln);U!==null&&(A.elapsed=U,A.isHandoff=!0)}}let I=!A.isHandoff&&!XW(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(Xy(g,T,E,t.shouldReduceMotion&&Ac.has(g)?{type:!1}:A));const j=T.animation;mp(f)&&(f.add(g),j.then(()=>f.remove(g))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&WW(t,a)}),p}function vv(t,e,n={}){const r=zp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(nD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:y,staggerDirection:g}=i;return KW(t,e,p+f,y,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function KW(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(ZW).forEach((p,y)=>{p.notify("AnimationStart",e),a.push(vv(p,e,{...o,delay:n+f(y)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function ZW(t,e){return t.sortNodePosition(e)}function JW(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>vv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=vv(t,e,n);else{const i=typeof e=="function"?zp(t,e,n.custom):e;r=Promise.all(nD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const QW=[...Ly].reverse(),ez=Ly.length;function tz(t){return e=>Promise.all(e.map(({animation:n,options:r})=>JW(t,n,r)))}function nz(t){let e=tz(t);const n=iz();let r=!0;const i=(f,p)=>{const y=zp(t,p);if(y){const{transition:g,transitionEnd:T,...E}=y;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const y=t.getProps(),g=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let R=0;R<ez;R++){const U=QW[R],H=n[U],ne=y[U]!==void 0?y[U]:g[U],q=Fd(ne),ie=U===p?H.isActive:null;ie===!1&&(I=R);let x=ne===g[U]&&ne!==y[U]&&q;if(x&&r&&t.manuallyAnimateOnMount&&(x=!1),H.protectedKeys={...A},!H.isActive&&ie===null||!ne&&!H.prevProp||Vp(ne)||typeof ne=="boolean")continue;let ae=rz(H.prevProp,ne)||U===p&&H.isActive&&!x&&q||R>I&&q,$e=!1;const tt=Array.isArray(ne)?ne:[ne];let Qe=tt.reduce(i,{});ie===!1&&(Qe={});const{prevResolvedValues:Ye={}}=H,Oe={...Ye,...Qe},ue=ve=>{ae=!0,E.has(ve)&&($e=!0,E.delete(ve)),H.needsAnimating[ve]=!0};for(const ve in Oe){const ke=Qe[ve],Le=Ye[ve];if(A.hasOwnProperty(ve))continue;let et=!1;dp(ke)&&dp(Le)?et=!Ek(ke,Le):et=ke!==Le,et?ke!==void 0?ue(ve):E.add(ve):ke!==void 0&&E.has(ve)?ue(ve):H.protectedKeys[ve]=!0}H.prevProp=ne,H.prevResolvedValues=Qe,H.isActive&&(A={...A,...Qe}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!x||$e)&&T.push(...tt.map(ve=>({animation:ve,options:{type:U,...f}})))}if(E.size){const R={};E.forEach(U=>{const H=t.getBaseTarget(U);H!==void 0&&(R[U]=H)}),T.push({animation:R})}let j=!!T.length;return r&&(y.initial===!1||y.initial===y.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(f,p,y){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(f,p)}),n[f].isActive=p;const T=a(y,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function rz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ek(e,t):!1}function lc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function iz(){return{animate:lc(!0),whileInView:lc(),whileHover:lc(),whileTap:lc(),whileDrag:lc(),whileFocus:lc(),exit:lc()}}class oz extends Pu{constructor(e){super(e),e.animationState||(e.animationState=nz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Vp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let sz=0;class az extends Pu{constructor(){super(...arguments),this.id=sz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const lz={animation:{Feature:oz},exit:{Feature:az}},gS=(t,e)=>Math.abs(t-e);function uz(t,e){const n=gS(t.x,e.x),r=gS(t.y,e.y);return Math.sqrt(n**2+r**2)}class rD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=im(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=uz(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Fi;this.history.push({...A,timestamp:I});const{onStart:j,onMove:R}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=rm(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=im(g.type==="pointercancel"?this.lastMoveEventInfo:rm(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!wk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Wp(e),c=rm(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:y}=n;y&&y(e,im(c,this.history)),this.removeListeners=hu(El(this.contextWindow,"pointermove",this.handlePointerMove),El(this.contextWindow,"pointerup",this.handlePointerUp),El(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Ol(this.updatePoint)}}function rm(t,e){return e?{point:e(t.point)}:t}function mS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function im({point:t},e){return{point:t,delta:mS(t,iD(e)),offset:mS(t,cz(e)),velocity:fz(e,.1)}}function cz(t){return t[0]}function iD(t){return t[t.length-1]}function fz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=iD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>pu(e)));)n--;if(!r)return{x:0,y:0};const o=kl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(t){return t.max-t.min}function yv(t,e=0,n=.01){return Math.abs(t-e)<=n}function vS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(yv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(yv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Cd(t,e,n,r){vS(t.x,e.x,n.x,r?r.originX:void 0),vS(t.y,e.y,n.y,r?r.originY:void 0)}function yS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function dz(t,e,n){yS(t.x,e.x,n.x),yS(t.y,e.y,n.y)}function bS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function Ed(t,e,n){bS(t.x,e.x,n.x),bS(t.y,e.y,n.y)}function hz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function wS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function pz(t,{top:e,left:n,bottom:r,right:i}){return{x:wS(t.x,n,i),y:wS(t.y,e,r)}}function xS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function gz(t,e){return{x:xS(t.x,e.x),y:xS(t.y,e.y)}}function mz(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=jd(e.min,e.max-r,t.min):r>i&&(n=jd(t.min,t.max-i,e.min)),Su(0,1,n)}function vz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const bv=.35;function yz(t=bv){return t===!1?t=0:t===!0&&(t=bv),{x:SS(t,"left","right"),y:SS(t,"top","bottom")}}function SS(t,e,n){return{min:TS(t,e),max:TS(t,n)}}function TS(t,e){return typeof t=="number"?t:t[e]||0}const CS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sf=()=>({x:CS(),y:CS()}),ES=()=>({min:0,max:0}),kr=()=>({x:ES(),y:ES()});function ks(t){return[t("x"),t("y")]}function oD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function bz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function wz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function om(t){return t===void 0||t===1}function wv({scale:t,scaleX:e,scaleY:n}){return!om(t)||!om(e)||!om(n)}function gc(t){return wv(t)||sD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function sD(t){return kS(t.x)||kS(t.y)}function kS(t){return t&&t!=="0%"}function vp(t,e,n){const r=t-n,i=e*r;return n+i}function DS(t,e,n,r,i){return i!==void 0&&(t=vp(t,i,r)),vp(t,n,r)+e}function xv(t,e=0,n=1,r,i){t.min=DS(t.min,e,n,r,i),t.max=DS(t.max,e,n,r,i)}function aD(t,{x:e,y:n}){xv(t.x,e.translate,e.scale,e.originPoint),xv(t.y,n.translate,n.scale,n.originPoint)}function xz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,aD(t,a)),r&&gc(o.latestValues)&&Tf(t,o.latestValues))}e.x=PS(e.x),e.y=PS(e.y)}function PS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function cu(t,e){t.min=t.min+e,t.max=t.max+e}function OS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);xv(t,e[n],e[r],a,e.scale)}const Sz=["x","scaleX","originX"],Tz=["y","scaleY","originY"];function Tf(t,e){OS(t.x,e,Sz),OS(t.y,e,Tz)}function lD(t,e){return oD(wz(t.getBoundingClientRect(),e))}function Cz(t,e,n){const r=lD(t,n),{scroll:i}=e;return i&&(cu(r.x,i.offset.x),cu(r.y,i.offset.y)),r}const uD=({current:t})=>t?t.ownerDocument.defaultView:null,Ez=new WeakMap;class kz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=y=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Wp(y,"page").point)},o=(y,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Sk(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ks(j=>{let R=this.getAxisMotionValue(j).get()||0;if(Va.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const H=U.layout.layoutBox[j];H&&(R=es(H)*(parseFloat(R)/100))}}this.originPoint[j]=R}),A&&Ln.update(()=>A(y,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(y,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=Dz(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(y,g)},c=(y,g)=>this.stop(y,g),f=()=>ks(y=>{var g;return this.getAnimationState(y)==="paused"&&((g=this.getAxisMotionValue(y).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new rD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:uD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ph(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=hz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&wf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=pz(i.layoutBox,n):this.constraints=!1,this.elastic=yz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ks(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=vz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wf(e))return!1;const r=e.current;la(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Cz(r,i.root,this.visualElement.getTransformPagePoint());let a=gz(i.layout.layoutBox,o);if(n){const c=n(bz(a));this.hasMutatedConstraints=!!c,c&&(a=oD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=ks(y=>{if(!Ph(y,n,this.currentDirection))return;let g=f&&f[y]||{};a&&(g={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[y]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...g};return this.startAxisValueAnimation(y,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Xy(e,r,0,n))}stopAnimation(){ks(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ks(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ks(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ks(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=mz({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ks(a=>{if(!Ph(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;Ez.set(this.visualElement,this);const e=this.visualElement.current,n=El(e,"pointerdown",f=>{const{drag:p,dragListener:y=!0}=this.getProps();p&&y&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();wf(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=xl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(ks(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ph(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Dz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Pz extends Pu{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new kz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const _S=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class Oz extends Pu{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new rD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_S(e),onStart:_S(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=El(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function _z(){const t=X.useContext(Iy);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function RS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ad={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=RS(t,e.target.x),r=RS(t,e.target.y);return`${n}% ${r}%`}},Rz={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Tu.parse(t);if(i.length>5)return r;const o=Tu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Az extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;$H(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()})),zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function cD(t){const[e,n]=_z(),r=X.useContext(ok);return X.createElement(Az,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(sk),isPresent:e,safeToRemove:n})}const Iz={borderRadius:{...ad,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ad,borderTopRightRadius:ad,borderBottomLeftRadius:ad,borderBottomRightRadius:ad,boxShadow:Rz},fD=["TopLeft","TopRight","BottomLeft","BottomRight"],Mz=fD.length,AS=t=>typeof t=="string"?parseFloat(t):t,IS=t=>typeof t=="number"||Rt.test(t);function Lz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,Fz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,Nz(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Mz;a++){const c=`border${fD[a]}Radius`;let f=MS(e,c),p=MS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||IS(f)===IS(p)?(t[c]=Math.max(Zn(AS(f),AS(p),r),0),(Va.test(p)||Va.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function MS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Fz=dD(0,.5,Mk),Nz=dD(.5,.95,sr);function dD(t,e,n){return r=>r<t?0:r>e?1:n(jd(t,e,r))}function LS(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){LS(t.x,e.x),LS(t.y,e.y)}function FS(t,e,n,r,i){return t-=e,t=vp(t,1/n,r),i!==void 0&&(t=vp(t,1/i,r)),t}function jz(t,e=0,n=1,r=.5,i,o=t,a=t){if(Va.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=FS(t.min,e,n,c,i),t.max=FS(t.max,e,n,c,i)}function NS(t,e,[n,r,i],o,a){jz(t,e[n],e[r],e[i],e.scale,o,a)}const Bz=["x","scaleX","originX"],$z=["y","scaleY","originY"];function jS(t,e,n,r){NS(t.x,e,Bz,n?n.x:void 0,r?r.x:void 0),NS(t.y,e,$z,n?n.y:void 0,r?r.y:void 0)}function BS(t){return t.translate===0&&t.scale===1}function hD(t){return BS(t.x)&&BS(t.y)}function Vz(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function pD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function $S(t){return es(t.x)/es(t.y)}class Hz{constructor(){this.members=[]}add(e){Ky(this.members,e),e.scheduleRender()}remove(e){if(Zy(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:f,rotateX:p,rotateY:y}=n;f&&(r+=`rotate(${f}deg) `),p&&(r+=`rotateX(${p}deg) `),y&&(r+=`rotateY(${y}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Uz=(t,e)=>t.depth-e.depth;class Wz{constructor(){this.children=[],this.isDirty=!1}add(e){Ky(this.children,e),this.isDirty=!0}remove(e){Zy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Uz),this.isDirty=!1,this.children.forEach(e)}}function zz(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Ol(r),t(o-e))};return Ln.read(r,!0),()=>Ol(r)}function Yz(t){window.MotionDebug&&window.MotionDebug.record(t)}function Gz(t){return t instanceof SVGElement&&t.tagName!=="svg"}function qz(t,e,n){const r=Ro(t)?t:Rf(t);return r.start(Xy("",r,e,n)),r.animation}const HS=["","X","Y","Z"],Xz={visibility:"hidden"},US=1e3;let Kz=0;const mc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function gD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=Kz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,mc.totalNodes=mc.resolvedTargetDeltas=mc.recalculatedProjection=0,this.nodes.forEach(Qz),this.nodes.forEach(i5),this.nodes.forEach(o5),this.nodes.forEach(e5),Yz(mc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wz)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Jy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Gz(a),this.instance=a;const{layoutId:f,layout:p,visualElement:y}=this.options;if(y&&!y.current&&y.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=zz(T,250),zh.hasAnimatedSinceResize&&(zh.hasAnimatedSinceResize=!1,this.nodes.forEach(zS))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&y&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||y.getDefaultTransition()||c5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:R}=y.getProps(),U=!this.targetLayout||!pD(this.targetLayout,A)||E,H=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,H);const ne={...qy(I,"layout"),onPlay:j,onComplete:R};(y.shouldReduceMotion||this.options.layoutRoot)&&(ne.delay=0,ne.type=!1),this.startAnimation(ne)}else T||zS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ol(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(WS);return}this.isUpdating||this.nodes.forEach(n5),this.isUpdating=!1,this.nodes.forEach(r5),this.nodes.forEach(Zz),this.nodes.forEach(Jz),this.clearAllSnapshots();const c=performance.now();Fi.delta=Su(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,Kg.update.process(Fi),Kg.preRender.process(Fi),Kg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(t5),this.sharedNodes.forEach(a5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!hD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,y=p!==this.prevTransformTemplateValue;a&&(c||gc(this.latestValues)||y)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),f5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return kr();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(cu(c.x,f.offset.x),cu(c.y,f.offset.y)),c}removeElementScroll(a){const c=kr();Ts(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:y,options:g}=p;if(p!==this.root&&y&&g.layoutScroll){if(y.isRoot){Ts(c,a);const{scroll:T}=this.root;T&&(cu(c.x,-T.offset.x),cu(c.y,-T.offset.y))}cu(c.x,y.offset.x),cu(c.y,y.offset.y)}}return c}applyTransform(a,c=!1){const f=kr();Ts(f,a);for(let p=0;p<this.path.length;p++){const y=this.path[p];!c&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Tf(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),gc(y.latestValues)&&Tf(f,y.latestValues)}return gc(this.latestValues)&&Tf(f,this.latestValues),f}removeTransform(a){const c=kr();Ts(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!gc(p.latestValues))continue;wv(p.latestValues)&&p.updateSnapshot();const y=kr(),g=p.measurePageBox();Ts(y,g),jS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,y)}return gc(this.latestValues)&&jS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Ed(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=kr(),this.targetWithTransforms=kr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),dz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ts(this.target,this.layout.layoutBox),aD(this.target,this.targetDelta)):Ts(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kr(),this.relativeTargetOrigin=kr(),Ed(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||wv(this.parent.latestValues)||sD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:y,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(y||g))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;xz(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=Sf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sf(),this.projectionDeltaWithTransform=Sf());const I=this.projectionTransform;Cd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=VS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),mc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},y={...this.latestValues},g=Sf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=kr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),R=!j||j.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(u5));this.animationProgress=0;let H;this.mixTargetDelta=ne=>{const q=ne/1e3;YS(g.x,a.x,q),YS(g.y,a.y,q),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ed(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l5(this.relativeTarget,this.relativeTargetOrigin,T,q),H&&Vz(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=kr()),Ts(H,this.relativeTarget)),I&&(this.animationValues=y,Lz(y,p,this.latestValues,q,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ol(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{zh.hasAnimatedSinceResize=!0,this.currentAnimation=qz(0,US,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(US),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:y}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&mD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||kr();const g=es(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=es(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Ts(c,f),Tf(c,y),Cd(this.projectionDeltaWithTransform,this.layoutCorrected,c,y)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Hz),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const p=this.getStack();p&&p.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let y=0;y<HS.length;y++){const g="rotate"+HS[y];f[g]&&(p[g]=f[g],a.setStaticValue(g,0))}a.render();for(const y in p)a.setStaticValue(y,p[y]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Xz;const p={visibility:""},y=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Wh(a==null?void 0:a.pointerEvents)||"",p.transform=y?y(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Wh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!gc(this.latestValues)&&(I.transform=y?y({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=VS(this.projectionDeltaWithTransform,this.treeScale,T),y&&(p.transform=y(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in cp){if(T[I]===void 0)continue;const{correct:j,applyTo:R}=cp[I],U=p.transform==="none"?T[I]:j(T[I],g);if(R){const H=R.length;for(let ne=0;ne<H;ne++)p[R[ne]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=g===this?Wh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(WS),this.root.sharedNodes.clear()}}}function Zz(t){t.updateLayout()}function Jz(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?ks(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(T);T.min=r[g].min,T.max=T.min+E}):mD(o,n.layoutBox,r)&&ks(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=Sf();Cd(c,r,n.layoutBox);const f=Sf();a?Cd(f,t.applyTransform(i,!0),n.measuredBox):Cd(f,r,n.layoutBox);const p=!hD(c);let y=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=kr();Ed(A,n.layoutBox,T.layoutBox);const I=kr();Ed(I,r,E.layoutBox),pD(A,I)||(y=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:y})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Qz(t){mc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function e5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function t5(t){t.clearSnapshot()}function WS(t){t.clearMeasurements()}function n5(t){t.isLayoutDirty=!1}function r5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function zS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function i5(t){t.resolveTargetDelta()}function o5(t){t.calcProjection()}function s5(t){t.resetRotation()}function a5(t){t.removeLeadSnapshot()}function YS(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function GS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function l5(t,e,n,r){GS(t.x,e.x,n.x,r),GS(t.y,e.y,n.y,r)}function u5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const c5={duration:.45,ease:[.4,0,.1,1]},qS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),XS=qS("applewebkit/")&&!qS("chrome/")?Math.round:sr;function KS(t){t.min=XS(t.min),t.max=XS(t.max)}function f5(t){KS(t.x),KS(t.y)}function mD(t,e,n){return t==="position"||t==="preserve-aspect"&&!yv($S(e),$S(n),.2)}const d5=gD({attachResizeListener:(t,e)=>xl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sm={current:void 0},vD=gD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){const t=new d5({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),h5={pan:{Feature:Oz},drag:{Feature:Pz,ProjectionNode:vD,MeasureLayout:cD}},p5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function g5(t){const e=p5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const m5=4;function Sv(t,e,n=1){la(n<=m5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=g5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return Qk(a)?parseFloat(a):a}else return fv(i)?Sv(i,e,n+1):i}function v5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!fv(o))return;const a=Sv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!fv(o))continue;const a=Sv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const y5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),yD=t=>y5.has(t),b5=t=>Object.keys(t).some(yD),Oh=t=>t===Ic||t===Rt,ZS=(t,e)=>parseFloat(t.split(", ")[e]),JS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return ZS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?ZS(o[1],t):0}},w5=new Set(["x","y","z"]),x5=Xd.filter(t=>!w5.has(t));function S5(t){const e=[];return x5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Af={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:JS(4,13),y:JS(5,14)};Af.translateX=Af.x;Af.translateY=Af.y;const T5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=Af[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const y=e.getValue(p);y&&y.jump(c[p]),t[p]=Af[p](f,o)}),t},C5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(yD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let y=n[f],g=sd(y);const T=e[f];let E;if(dp(T)){const A=T.length,I=T[0]===null?1:0;y=T[I],g=sd(y);for(let j=I;j<A&&T[j]!==null;j++)E?la(sd(T[j])===E,"All keyframes must be of the same type"):(E=sd(T[j]),la(E===g||Oh(g)&&Oh(E),"Keyframes must be of the same dimension as the current value"))}else E=sd(T);if(g!==E)if(Oh(g)&&Oh(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else g!=null&&g.transform&&(E!=null&&E.transform)&&(y===0||T===0)?y===0?p.set(E.transform(y)):e[f]=g.transform(T):(a||(o=S5(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=T5(e,t,c);return o.length&&o.forEach(([y,g])=>{t.getValue(y).set(g)}),t.render(),$p&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function E5(t,e,n,r){return b5(e)?C5(t,e,n,r):{target:e,transitionEnd:r}}const k5=(t,e,n,r)=>{const i=v5(t,e,r);return e=i.target,r=i.transitionEnd,E5(t,e,n,r)},Tv={current:null},bD={current:!1};function D5(){if(bD.current=!0,!!$p)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Tv.current=t.matches;t.addListener(e),e()}else Tv.current=!1}function P5(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ro(o))t.addValue(i,o),mp(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(Ro(a))t.addValue(i,Rf(o,{owner:t})),mp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Rf(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const QS=new WeakMap,wD=Object.keys(Nd),O5=wD.length,e1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_5=Fy.length;class R5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Hp(n),this.isVariantNode=ik(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...y}=this.scrapeMotionValuesFromProps(n,{});for(const g in y){const T=y[g];c[g]!==void 0&&Ro(T)&&(T.set(c[g],!1),mp(p)&&p.add(g))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,QS.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bD.current||D5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tv.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(){QS.delete(this.current),this.projection&&this.projection.unmount(),Ol(this.notifyUpdate),Ol(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Ac.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Jd(!1,f):la(!1,f)}for(let f=0;f<O5;f++){const p=wD[f],{isEnabled:y,Feature:g,ProjectionNode:T,MeasureLayout:E}=Nd[p];T&&(a=T),y(n)&&(!this.features[p]&&g&&(this.features[p]=new g(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:f,layout:p,drag:y,dragConstraints:g,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!y||g&&wf(g),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<e1.length;r++){const i=e1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=P5(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<_5;r++){const i=Fy[r],o=this.props[i];(Fd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Rf(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Uy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ro(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Jy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class xD extends R5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=GW(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){zW(this,r,a);const c=k5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function A5(t){return window.getComputedStyle(t)}class I5 extends xD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Ac.has(n)){const r=Gy(n);return r&&r.default||0}else{const r=A5(e),i=(uk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return lD(e,n)}build(e,n,r,i){jy(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Hy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ro(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){gk(e,n,r,i)}}class M5 extends xD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ac.has(n)){const r=Gy(n);return r&&r.default||0}return n=mk.has(n)?n:My(n),e.getAttribute(n)}measureInstanceViewportBox(){return kr()}scrapeMotionValuesFromProps(e,n){return yk(e,n)}build(e,n,r,i){$y(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){vk(e,n,r,i)}mount(e){this.isSVGTag=Vy(e.tagName),super.mount(e)}}const L5=(t,e)=>Ny(t)?new M5(e,{enableHardwareAcceleration:!1}):new I5(e,{enableHardwareAcceleration:!0}),F5={layout:{ProjectionNode:vD,MeasureLayout:cD}},N5={...lz,..._U,...h5,...F5},SD=jH((t,e)=>vU(t,e,N5,L5));function TD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function CD(t){return Cp({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function eb(t,e){return e?t:void 0}function j5(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Pe.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 B5(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,f]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),y=a.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,E=y.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+y.height>window.innerHeight&&!E&&(g=p.top-y.height+p.height),o({top:g,left:T})}},[n,a]),r?e({maxHeight:c}):Fv.createPortal(Pe.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function am(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
|
|
9
9
|
* content-type
|
|
10
10
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11
11
|
* MIT Licensed
|
|
12
|
-
*/var t1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g
|
|
12
|
+
*/var t1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,$5=/\\([\u000b\u0020-\u00ff])/g,V5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,H5=U5;function U5(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?W5(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!V5.test(r))throw new TypeError("invalid media type");var i=new z5(r.toLowerCase());if(n!==-1){var o,a,c;for(t1.lastIndex=n;a=t1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace($5,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function W5(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function z5(t){this.parameters=Object.create(null),this.type=t}var hf=new Map,ED=function(e){return e.cloneNode(!0)},n1=function(){return window.location.protocol==="file:"},kD=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=H5(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(n1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||n1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},fu={},r1=function(e,n){fu[e]=fu[e]||[],fu[e].push(n)},Y5=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(fu[e])){var f=hf.get(e),p=fu[e][a];f instanceof SVGSVGElement&&p(null,ED(f)),f instanceof Error&&p(f),a===fu[e].length-1&&delete fu[e]}},0)},r=0,i=fu[e].length;r<i;r++)n(r)},G5=function(e,n,r){if(hf.has(e)){var i=hf.get(e);if(i===void 0){r1(e,r);return}if(i instanceof SVGSVGElement){r(null,ED(i));return}}hf.set(e,void 0),r1(e,r),kD(e,n,function(o,a){var c;o?hf.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&hf.set(e,a.responseXML.documentElement),Y5(e)})},q5=function(e,n,r){kD(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},X5=0,K5=function(){return++X5},Fa=[],i1={},Z5="http://www.w3.org/2000/svg",lm="http://www.w3.org/1999/xlink",o1=function(e,n,r,i,o,a,c){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Fa.indexOf(e)!==-1){Fa.splice(Fa.indexOf(e),1),e=null;return}Fa.push(e),e.setAttribute("src","");var p=i?G5:q5;p(f,o,function(y,g){if(!g){Fa.splice(Fa.indexOf(e),1),e=null,c(y);return}var T=e.getAttribute("id");T&&g.setAttribute("id",T);var E=e.getAttribute("title");E&&g.setAttribute("title",E);var A=e.getAttribute("width");A&&g.setAttribute("width",A);var I=e.getAttribute("height");I&&g.setAttribute("height",I);var j=Array.from(new Set(am(am(am([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",j);var R=e.getAttribute("style");R&&g.setAttribute("style",R),g.setAttribute("data-src",f);var U=[].filter.call(e.attributes,function(Le){return/^data-\w[\w-]*$/.test(Le.name)});if(Array.prototype.forEach.call(U,function(Le){Le.name&&Le.value&&g.setAttribute(Le.name,Le.value)}),r){var H={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},ne,q,ie,x,le;Object.keys(H).forEach(function(Le){ne=Le,ie=H[Le],q=g.querySelectorAll(ne+"[id]");for(var et=function(Ue,Ge){x=q[Ue].id,le=x+"-"+K5();var Ze;Array.prototype.forEach.call(ie,function(At){Ze=g.querySelectorAll("["+At+'*="'+x+'"]');for(var Mt=0,Vn=Ze.length;Mt<Vn;Mt++){var vr=Ze[Mt].getAttribute(At);vr&&!vr.match(new RegExp('url\\("?#'+x+'"?\\)'))||Ze[Mt].setAttribute(At,"url(#"+le+")")}});for(var Xe=g.querySelectorAll("[*|href]"),ot=[],ct=0,pt=Xe.length;ct<pt;ct++){var ft=Xe[ct].getAttributeNS(lm,"href");ft&&ft.toString()==="#"+q[Ue].id&&ot.push(Xe[ct])}for(var yt=0,Je=ot.length;yt<Je;yt++)ot[yt].setAttributeNS(lm,"href","#"+le);q[Ue].id=le},me=0,Se=q.length;me<Se;me++)et(me)})}g.removeAttribute("xmlns:a");for(var ae=g.querySelectorAll("script"),$e=[],tt,Qe,Ye=0,Oe=ae.length;Ye<Oe;Ye++)Qe=ae[Ye].getAttribute("type"),(!Qe||Qe==="application/ecmascript"||Qe==="application/javascript"||Qe==="text/javascript")&&(tt=ae[Ye].innerText||ae[Ye].textContent,tt&&$e.push(tt),g.removeChild(ae[Ye]));if($e.length>0&&(n==="always"||n==="once"&&!i1[f])){for(var ue=0,ve=$e.length;ue<ve;ue++)new Function($e[ue])(window);i1[f]=!0}var ke=g.querySelectorAll("style");if(Array.prototype.forEach.call(ke,function(Le){Le.textContent+=""}),g.setAttribute("xmlns",Z5),g.setAttribute("xmlns:xlink",lm),a(g),!e.parentNode){Fa.splice(Fa.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(g,e),Fa.splice(Fa.indexOf(e),1),e=null,c(null,g)})},J5=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,f=r.beforeEach,p=f===void 0?function(){}:f,y=r.cacheRequests,g=y===void 0?!0:y,T=r.evalScripts,E=T===void 0?"never":T,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,j=r.renumerateIRIElements,R=j===void 0?!0:j;if(e&&"length"in e)for(var U=0,H=0,ne=e.length;H<ne;H++)o1(e[H],E,R,g,I,p,function(q,ie){c(q,ie),e&&"length"in e&&e.length===++U&&o(U)});else e?o1(e,E,R,g,I,p,function(q,ie){c(q,ie),o(1),e=null}):o(0)},Cv={exports:{}},_h={exports:{}},mn={};/** @license React v16.13.1
|
|
13
13
|
* react-is.production.min.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var s1;function
|
|
19
|
+
*/var s1;function Q5(){if(s1)return mn;s1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function H(q){if(typeof q=="object"&&q!==null){var ie=q.$$typeof;switch(ie){case e:switch(q=q.type,q){case f:case p:case r:case o:case i:case g:return q;default:switch(q=q&&q.$$typeof,q){case c:case y:case A:case E:case a:return q;default:return ie}}case n:return ie}}}function ne(q){return H(q)===p}return mn.AsyncMode=f,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=a,mn.Element=e,mn.ForwardRef=y,mn.Fragment=r,mn.Lazy=A,mn.Memo=E,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=g,mn.isAsyncMode=function(q){return ne(q)||H(q)===f},mn.isConcurrentMode=ne,mn.isContextConsumer=function(q){return H(q)===c},mn.isContextProvider=function(q){return H(q)===a},mn.isElement=function(q){return typeof q=="object"&&q!==null&&q.$$typeof===e},mn.isForwardRef=function(q){return H(q)===y},mn.isFragment=function(q){return H(q)===r},mn.isLazy=function(q){return H(q)===A},mn.isMemo=function(q){return H(q)===E},mn.isPortal=function(q){return H(q)===n},mn.isProfiler=function(q){return H(q)===o},mn.isStrictMode=function(q){return H(q)===i},mn.isSuspense=function(q){return H(q)===g},mn.isValidElementType=function(q){return typeof q=="string"||typeof q=="function"||q===r||q===p||q===o||q===i||q===g||q===T||typeof q=="object"&&q!==null&&(q.$$typeof===A||q.$$typeof===E||q.$$typeof===a||q.$$typeof===c||q.$$typeof===y||q.$$typeof===j||q.$$typeof===R||q.$$typeof===U||q.$$typeof===I)},mn.typeOf=H,mn}var vn={};/** @license React v16.13.1
|
|
20
20
|
* react-is.development.js
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var a1;function
|
|
26
|
+
*/var a1;function e4(){return a1||(a1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,y=t?Symbol.for("react.forward_ref"):60112,g=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function H(Je){return typeof Je=="string"||typeof Je=="function"||Je===r||Je===p||Je===o||Je===i||Je===g||Je===T||typeof Je=="object"&&Je!==null&&(Je.$$typeof===A||Je.$$typeof===E||Je.$$typeof===a||Je.$$typeof===c||Je.$$typeof===y||Je.$$typeof===j||Je.$$typeof===R||Je.$$typeof===U||Je.$$typeof===I)}function ne(Je){if(typeof Je=="object"&&Je!==null){var At=Je.$$typeof;switch(At){case e:var Mt=Je.type;switch(Mt){case f:case p:case r:case o:case i:case g:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case y:case A:case E:case a:return Vn;default:return At}}case n:return At}}}var q=f,ie=p,x=c,le=a,ae=e,$e=y,tt=r,Qe=A,Ye=E,Oe=n,ue=o,ve=i,ke=g,Le=!1;function et(Je){return Le||(Le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),me(Je)||ne(Je)===f}function me(Je){return ne(Je)===p}function Se(Je){return ne(Je)===c}function je(Je){return ne(Je)===a}function Ue(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===e}function Ge(Je){return ne(Je)===y}function Ze(Je){return ne(Je)===r}function Xe(Je){return ne(Je)===A}function ot(Je){return ne(Je)===E}function ct(Je){return ne(Je)===n}function pt(Je){return ne(Je)===o}function ft(Je){return ne(Je)===i}function yt(Je){return ne(Je)===g}vn.AsyncMode=q,vn.ConcurrentMode=ie,vn.ContextConsumer=x,vn.ContextProvider=le,vn.Element=ae,vn.ForwardRef=$e,vn.Fragment=tt,vn.Lazy=Qe,vn.Memo=Ye,vn.Portal=Oe,vn.Profiler=ue,vn.StrictMode=ve,vn.Suspense=ke,vn.isAsyncMode=et,vn.isConcurrentMode=me,vn.isContextConsumer=Se,vn.isContextProvider=je,vn.isElement=Ue,vn.isForwardRef=Ge,vn.isFragment=Ze,vn.isLazy=Xe,vn.isMemo=ot,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=H,vn.typeOf=ne}()),vn}var l1;function DD(){return l1||(l1=1,process.env.NODE_ENV==="production"?_h.exports=Q5():_h.exports=e4()),_h.exports}/*
|
|
27
27
|
object-assign
|
|
28
28
|
(c) Sindre Sorhus
|
|
29
29
|
@license MIT
|
|
30
|
-
*/var um,u1;function
|
|
31
|
-
Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(ot,ft,Ge,Ze,Xe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Oe(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(Oe);if(me===null||c(me))return!0;var Se=g(me);if(Se){var je=Se.call(me),Ue;if(Se!==me.entries){for(;!(Ue=je.next()).done;)if(!Oe(Ue.value))return!1}else for(;!(Ue=je.next()).done;){var Ge=Ue.value;if(Ge&&!Oe(Ge[1]))return!1}}else return!1;return!0;default:return!1}}function ue(me,Se){return me==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function ve(me){var Se=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":ue(Se,me)?"symbol":Se}function ke(me){if(typeof me>"u"||me===null)return""+me;var Se=ve(me);if(Se==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return Se}function Le(me){var Se=ke(me);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function et(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},hm}var pm,p1;function r4(){if(p1)return pm;p1=1;var t=tb();function e(){}function n(){}return n.resetWarningCache=e,pm=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},pm}if(process.env.NODE_ENV!=="production"){var i4=DD(),o4=!0;Cv.exports=n4()(i4.isElement,o4)}else Cv.exports=r4()();var Er=Cv.exports;const Os=Eu(Er);var s4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},a4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},l4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Rh="http://www.w3.org/2000/svg",g1="http://www.w3.org/1999/xlink",Yp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}TT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof s4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,U;j==="svg"?(R=document.createElementNS(Rh,j),R.setAttribute("xmlns",Rh),R.setAttribute("xmlns:xlink",g1),U=document.createElementNS(Rh,j)):(R=document.createElement(j),U=document.createElement(j)),R.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var H=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){H(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){H(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var $e=x.querySelector(":scope > title");$e&&x.removeChild($e);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(Qe){H(Qe)}};Z5(U,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;a4(Df({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=Bv(i,l4),p=c;return kn.createElement(p,Df({},f,{ref:this.refCallback},c==="svg"?{xmlns:Rh,xmlnsXlink:g1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Yp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Yp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const If=new Map;If.set("text",t=>{var e,n;return Pe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Pe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Pe.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>Pe.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>Pe.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function u4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function OD({item:t}){return(If.get(u4(t))||If.get("text"))(t)}function c4(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Pe.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 f4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):Fv.createPortal(Pe.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Mf=new Map;Mf.set("text",t=>{var e,n;return Pe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Mf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Pe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Pe.jsx(e,{svgString:t.icon})});Mf.set("svgHttp",t=>Pe.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Mf.set("img",t=>Pe.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function d4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function h4({item:t}){return(Mf.get(d4(t))||Mf.get("text"))(t)}function _D({...t}){var $e,tt,Qe;const e=t.item,n=t.level||0,r=!!(($e=t.item.children)!=null&&$e.length),i=`level-${n}`,o=(Ye,Oe=i)=>`${Ye} ${Oe} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((tt=g==null?void 0:g.current)==null?void 0:tt.scrollWidth)>((Qe=g==null?void 0:g.current)==null?void 0:Qe.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":j?"a":xp.Link,U=e.redirectUrl||e.path||"#",H=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((Ye,[Oe,ue])=>(ue&&(Ye[`--${Oe}`]=ue),Ye),{});return Pe.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:ie,onDragStart:Ye=>{n>1&&Ye.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[Pe.jsxs(R,{target:le,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Ye=>{console.log("onDragStart component",Ye.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[Pe.jsx(p4,{cls:o,item:e}),Pe.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),Pe.jsx(g4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Ye=>{const Oe={menuConfigId:e.id,isFavorite:Ye},ue=t.baseUrl+x;Rs.post(ue,Oe).then(ve=>{var ke;p(Ye),Yv("Set favorite menu item successfully"),(ke=t.onSetFavoriteSuccess)==null||ke.call(t,t.item.id,Ye)}).catch(ve=>{var ke,Le;console.log(" MenuItem.tsx ~ error:",ve),Ud(((Le=(ke=ve.response)==null?void 0:ke.data)==null?void 0:Le.errorMessage)||ve.message||"Have error when set favorite menu item")})}}),r&&Pe.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Pe.jsx(c4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&Pe.jsx(f4,{parentRef:y,onlyChild:H<2,dropdownLevel:n,renderChildren:({maxHeight:Ye})=>{var Oe;return Pe.jsx(SD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${H}`),style:eb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!H),children:(Oe=e.children)==null?void 0:Oe.map(ue=>X.createElement(_D,{...t,key:ue.id,item:ue,level:H}))})}})]})}function p4({item:t,cls:e}){return Pe.jsx("div",{className:e("menu-item__icon"),children:Pe.jsx(h4,{item:t})})}function g4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return Pe.jsxs(Pe.Fragment,{children:[t.isHovered&&!t.isFavorite&&Pe.jsx(aa.Tooltip,{title:"Add to favorites",children:Pe.jsx(TD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Pe.jsx(aa.Tooltip,{title:"Remove from favorites",children:Pe.jsx(CD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const m4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:height .3s cubic-bezier(.4,0,.2,1),background .2s,border .2s;width:100%}.favorite-menu.favorite-menu--empty{height:0!important;overflow:hidden;border-right:none;background:transparent}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';var uc={};/**
|
|
30
|
+
*/var um,u1;function t4(){if(u1)return um;u1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(a).map(function(y){return a[y]});if(f.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return um=i()?Object.assign:function(o,a){for(var c,f=r(o),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var g in c)e.call(c,g)&&(f[g]=c[g]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},um}var cm,c1;function tb(){if(c1)return cm;c1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cm=t,cm}var fm,f1;function PD(){return f1||(f1=1,fm=Function.call.bind(Object.prototype.hasOwnProperty)),fm}var dm,d1;function n4(){if(d1)return dm;d1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=tb(),n={},r=PD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,f,p){if(process.env.NODE_ENV!=="production"){for(var y in o)if(r(o,y)){var g;try{if(typeof o[y]!="function"){var T=Error((f||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}g=o[y](a,y,f,c,null,e)}catch(A){g=A}if(g&&!(g instanceof Error)&&t((f||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+g.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},dm=i,dm}var hm,h1;function r4(){if(h1)return hm;h1=1;var t=DD(),e=t4(),n=tb(),r=PD(),i=n4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function a(){return null}return hm=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function g(me){var Se=me&&(p&&me[p]||me[y]);if(typeof Se=="function")return Se}var T="<<anonymous>>",E={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:U(),arrayOf:H,element:ne(),elementType:q(),instanceOf:ie,node:$e(),objectOf:le,oneOf:x,oneOfType:ae,shape:Qe,exact:Ye};function A(me,Se){return me===Se?me!==0||1/me===1/Se:me!==me&&Se!==Se}function I(me,Se){this.message=me,this.data=Se&&typeof Se=="object"?Se:{},this.stack=""}I.prototype=Error.prototype;function j(me){if(process.env.NODE_ENV!=="production")var Se={},je=0;function Ue(Ze,Xe,ot,ct,pt,ft,yt){if(ct=ct||T,ft=ft||ot,yt!==n){if(f){var Je=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Je.name="Invariant Violation",Je}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+ot;!Se[At]&&je<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Se[At]=!0,je++)}}return Xe[ot]==null?Ze?Xe[ot]===null?new I("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:me(Xe,ot,ct,pt,ft)}var Ge=Ue.bind(null,!1);return Ge.isRequired=Ue.bind(null,!0),Ge}function R(me){function Se(je,Ue,Ge,Ze,Xe,ot){var ct=je[Ue],pt=ve(ct);if(pt!==me){var ft=ke(ct);return new I("Invalid "+Ze+" `"+Xe+"` of type "+("`"+ft+"` supplied to `"+Ge+"`, expected ")+("`"+me+"`."),{expectedType:me})}return null}return j(Se)}function U(){return j(a)}function H(me){function Se(je,Ue,Ge,Ze,Xe){if(typeof me!="function")return new I("Property `"+Xe+"` of component `"+Ge+"` has invalid PropType notation inside arrayOf.");var ot=je[Ue];if(!Array.isArray(ot)){var ct=ve(ot);return new I("Invalid "+Ze+" `"+Xe+"` of type "+("`"+ct+"` supplied to `"+Ge+"`, expected an array."))}for(var pt=0;pt<ot.length;pt++){var ft=me(ot,pt,Ge,Ze,Xe+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return j(Se)}function ne(){function me(Se,je,Ue,Ge,Ze){var Xe=Se[je];if(!c(Xe)){var ot=ve(Xe);return new I("Invalid "+Ge+" `"+Ze+"` of type "+("`"+ot+"` supplied to `"+Ue+"`, expected a single ReactElement."))}return null}return j(me)}function q(){function me(Se,je,Ue,Ge,Ze){var Xe=Se[je];if(!t.isValidElementType(Xe)){var ot=ve(Xe);return new I("Invalid "+Ge+" `"+Ze+"` of type "+("`"+ot+"` supplied to `"+Ue+"`, expected a single ReactElement type."))}return null}return j(me)}function ie(me){function Se(je,Ue,Ge,Ze,Xe){if(!(je[Ue]instanceof me)){var ot=me.name||T,ct=et(je[Ue]);return new I("Invalid "+Ze+" `"+Xe+"` of type "+("`"+ct+"` supplied to `"+Ge+"`, expected ")+("instance of `"+ot+"`."))}return null}return j(Se)}function x(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function Se(je,Ue,Ge,Ze,Xe){for(var ot=je[Ue],ct=0;ct<me.length;ct++)if(A(ot,me[ct]))return null;var pt=JSON.stringify(me,function(yt,Je){var At=ke(Je);return At==="symbol"?String(Je):Je});return new I("Invalid "+Ze+" `"+Xe+"` of value `"+String(ot)+"` "+("supplied to `"+Ge+"`, expected one of "+pt+"."))}return j(Se)}function le(me){function Se(je,Ue,Ge,Ze,Xe){if(typeof me!="function")return new I("Property `"+Xe+"` of component `"+Ge+"` has invalid PropType notation inside objectOf.");var ot=je[Ue],ct=ve(ot);if(ct!=="object")return new I("Invalid "+Ze+" `"+Xe+"` of type "+("`"+ct+"` supplied to `"+Ge+"`, expected an object."));for(var pt in ot)if(r(ot,pt)){var ft=me(ot,pt,Ge,Ze,Xe+"."+pt,n);if(ft instanceof Error)return ft}return null}return j(Se)}function ae(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Se=0;Se<me.length;Se++){var je=me[Se];if(typeof je!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Le(je)+" at index "+Se+"."),a}function Ue(Ge,Ze,Xe,ot,ct){for(var pt=[],ft=0;ft<me.length;ft++){var yt=me[ft],Je=yt(Ge,Ze,Xe,ot,ct,n);if(Je==null)return null;Je.data&&r(Je.data,"expectedType")&&pt.push(Je.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new I("Invalid "+ot+" `"+ct+"` supplied to "+("`"+Xe+"`"+At+"."))}return j(Ue)}function $e(){function me(Se,je,Ue,Ge,Ze){return Oe(Se[je])?null:new I("Invalid "+Ge+" `"+Ze+"` supplied to "+("`"+Ue+"`, expected a ReactNode."))}return j(me)}function tt(me,Se,je,Ue,Ge){return new I((me||"React class")+": "+Se+" type `"+je+"."+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ge+"`.")}function Qe(me){function Se(je,Ue,Ge,Ze,Xe){var ot=je[Ue],ct=ve(ot);if(ct!=="object")return new I("Invalid "+Ze+" `"+Xe+"` of type `"+ct+"` "+("supplied to `"+Ge+"`, expected `object`."));for(var pt in me){var ft=me[pt];if(typeof ft!="function")return tt(Ge,Ze,Xe,pt,ke(ft));var yt=ft(ot,pt,Ge,Ze,Xe+"."+pt,n);if(yt)return yt}return null}return j(Se)}function Ye(me){function Se(je,Ue,Ge,Ze,Xe){var ot=je[Ue],ct=ve(ot);if(ct!=="object")return new I("Invalid "+Ze+" `"+Xe+"` of type `"+ct+"` "+("supplied to `"+Ge+"`, expected `object`."));var pt=e({},je[Ue],me);for(var ft in pt){var yt=me[ft];if(r(me,ft)&&typeof yt!="function")return tt(Ge,Ze,Xe,ft,ke(yt));if(!yt)return new I("Invalid "+Ze+" `"+Xe+"` key `"+ft+"` supplied to `"+Ge+"`.\nBad object: "+JSON.stringify(je[Ue],null," ")+`
|
|
31
|
+
Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(ot,ft,Ge,Ze,Xe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Oe(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(Oe);if(me===null||c(me))return!0;var Se=g(me);if(Se){var je=Se.call(me),Ue;if(Se!==me.entries){for(;!(Ue=je.next()).done;)if(!Oe(Ue.value))return!1}else for(;!(Ue=je.next()).done;){var Ge=Ue.value;if(Ge&&!Oe(Ge[1]))return!1}}else return!1;return!0;default:return!1}}function ue(me,Se){return me==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function ve(me){var Se=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":ue(Se,me)?"symbol":Se}function ke(me){if(typeof me>"u"||me===null)return""+me;var Se=ve(me);if(Se==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return Se}function Le(me){var Se=ke(me);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function et(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},hm}var pm,p1;function i4(){if(p1)return pm;p1=1;var t=tb();function e(){}function n(){}return n.resetWarningCache=e,pm=function(){function r(a,c,f,p,y,g){if(g!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},pm}if(process.env.NODE_ENV!=="production"){var o4=DD(),s4=!0;Cv.exports=r4()(o4.isElement,s4)}else Cv.exports=i4()();var Er=Cv.exports;const Os=Eu(Er);var a4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},l4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},u4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Rh="http://www.w3.org/2000/svg",g1="http://www.w3.org/1999/xlink",Yp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}TT(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof a4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,y=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,R,U;j==="svg"?(R=document.createElementNS(Rh,j),R.setAttribute("xmlns",Rh),R.setAttribute("xmlns:xlink",g1),U=document.createElementNS(Rh,j)):(R=document.createElement(j),U=document.createElement(j)),R.appendChild(U),U.dataset.src=y,this.nonReactWrapper=this.reactWrapper.appendChild(R);var H=function(x){if(i.removeSVG(),!i._isMounted){E(x);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(x)})},ne=function(x,le){if(x){H(x);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ae){H(ae)}})},q=function(x){if(x.setAttribute("role","img"),a){var le=x.querySelector(":scope > desc");le&&x.removeChild(le);var ae=document.createElement("desc");ae.innerHTML=a,x.prepend(ae)}if(g){var $e=x.querySelector(":scope > title");$e&&x.removeChild($e);var tt=document.createElement("title");tt.innerHTML=g,x.prepend(tt)}try{A(x)}catch(Qe){H(Qe)}};J5(U,{afterEach:ne,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;l4(Df({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,f=Bv(i,u4),p=c;return kn.createElement(p,Df({},f,{ref:this.refCallback},c==="svg"?{xmlns:Rh,xmlnsXlink:g1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Yp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Yp.propTypes={afterInjection:Er.func,beforeInjection:Er.func,desc:Er.string,evalScripts:Er.oneOf(["always","once","never"]),fallback:Er.oneOfType([Er.func,Er.object,Er.string]),httpRequestWithCredentials:Er.bool,loading:Er.oneOfType([Er.func,Er.object,Er.string]),onError:Er.func,renumerateIRIElements:Er.bool,src:Er.string.isRequired,title:Er.string,useRequestCache:Er.bool,wrapper:Er.oneOf(["div","span","svg"])};const If=new Map;If.set("text",t=>{var e,n;return Pe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Pe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Pe.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>Pe.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>Pe.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function c4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function OD({item:t}){return(If.get(c4(t))||If.get("text"))(t)}function f4(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Pe.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 d4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[f,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const y=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=y.bottom,E=y.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=y.bottom-g.height):T=y.bottom;else if(i>1){T=y.top,E=y.left+y.width;const A=g.height+(window.innerHeight-y.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-y.top-50)),y.top+g.height>window.innerHeight&&!A&&(T=y.top-g.height+y.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):Fv.createPortal(Pe.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Mf=new Map;Mf.set("text",t=>{var e,n;return Pe.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Mf.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Pe.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Pe.jsx(e,{svgString:t.icon})});Mf.set("svgHttp",t=>Pe.jsx(Yp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Mf.set("img",t=>Pe.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function h4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function p4({item:t}){return(Mf.get(h4(t))||Mf.get("text"))(t)}function _D({...t}){var $e,tt,Qe;const e=t.item,n=t.level||0,r=!!(($e=t.item.children)!=null&&$e.length),i=`level-${n}`,o=(Ye,Oe=i)=>`${Ye} ${Oe} `,[a,c]=X.useState(!1),[f,p]=X.useState(e.isFavorite||!1),y=X.useRef(),g=X.useRef();g!=null&&g.current&&((tt=g==null?void 0:g.current)==null?void 0:tt.scrollWidth)>((Qe=g==null?void 0:g.current)==null?void 0:Qe.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,R=r||n===0?"div":j?"a":xp.Link,U=e.redirectUrl||e.path||"#",H=n+1,ne=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},ie=()=>{c(!1)},x="/global-menu-config/api/v1/menu-items/user/set-favorite",le=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((Ye,[Oe,ue])=>(ue&&(Ye[`--${Oe}`]=ue),Ye),{});return Pe.jsxs("div",{ref:y,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:ie,onDragStart:Ye=>{n>1&&Ye.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[Pe.jsxs(R,{target:le,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Ye=>{console.log("onDragStart component",Ye.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[Pe.jsx(g4,{cls:o,item:e}),Pe.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),Pe.jsx(m4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Ye=>{const Oe={menuConfigId:e.id,isFavorite:Ye},ue=t.baseUrl+x;Rs.post(ue,Oe).then(ve=>{var ke;p(Ye),Yv("Set favorite menu item successfully"),(ke=t.onSetFavoriteSuccess)==null||ke.call(t,t.item.id,Ye)}).catch(ve=>{var ke,Le;console.log(" MenuItem.tsx ~ error:",ve),Ud(((Le=(ke=ve.response)==null?void 0:ke.data)==null?void 0:Le.errorMessage)||ve.message||"Have error when set favorite menu item")})}}),r&&Pe.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Pe.jsx(f4,{className:o("menu-item__icon-arrow__icon")})})]}),ne&&Pe.jsx(d4,{parentRef:y,onlyChild:H<2,dropdownLevel:n,renderChildren:({maxHeight:Ye})=>{var Oe;return Pe.jsx(SD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${H}`),style:eb({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!H),children:(Oe=e.children)==null?void 0:Oe.map(ue=>X.createElement(_D,{...t,key:ue.id,item:ue,level:H}))})}})]})}function g4({item:t,cls:e}){return Pe.jsx("div",{className:e("menu-item__icon"),children:Pe.jsx(p4,{item:t})})}function m4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:mr.warning,minWidth:16};if(t.menuLevel!==0)return Pe.jsxs(Pe.Fragment,{children:[t.isHovered&&!t.isFavorite&&Pe.jsx(aa.Tooltip,{title:"Add to favorites",children:Pe.jsx(TD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Pe.jsx(aa.Tooltip,{title:"Remove from favorites",children:Pe.jsx(CD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const v4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:height .3s cubic-bezier(.4,0,.2,1),background .2s,border .2s;width:100%}.favorite-menu.favorite-menu--empty{height:0!important;overflow:hidden;border-right:none;background:transparent}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}.simplebar-placeholder{width:auto!important}';var uc={};/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-dom-server-legacy.browser.production.min.js
|
|
34
34
|
*
|
|
@@ -36,7 +36,7 @@ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(ot,ft,Ge,Ze,X
|
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var m1;function
|
|
39
|
+
*/var m1;function y4(){if(m1)return uc;m1=1;var t=X;function e(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,G=1;G<arguments.length;G++)F+="&args[]="+encodeURIComponent(arguments[G]);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=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 a(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function c(k,F,G,ee,Ee,ge,Re){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ee,this.attributeNamespace=Ee,this.mustUseProperty=G,this.propertyName=k,this.type=F,this.sanitizeURL=ge,this.removeEmptyString=Re}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){f[k]=new c(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];f[F]=new c(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){f[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){f[k]=new c(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){f[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){f[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){f[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){f[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){f[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function y(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(p,y);f[F]=new c(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(p,y);f[F]=new c(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(p,y);f[F]=new c(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var g={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},T=["Webkit","ms","Moz","O"];Object.keys(g).forEach(function(k){T.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),g[F]=g[k]})});var E=/["'&<>]/;function A(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=E.exec(k);if(F){var G="",ee,Ee=0;for(ee=F.index;ee<k.length;ee++){switch(k.charCodeAt(ee)){case 34:F=""";break;case 38:F="&";break;case 39:F="'";break;case 60:F="<";break;case 62:F=">";break;default:continue}Ee!==ee&&(G+=k.substring(Ee,ee)),Ee=ee+1,G+=F}k=Ee!==ee?G+k.substring(Ee,ee):G}return k}var I=/([A-Z])/g,j=/^ms-/,R=Array.isArray;function U(k,F){return{insertionMode:k,selectedValue:F}}function H(k,F,G){switch(F){case"select":return U(1,G.value!=null?G.value:G.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<=k.insertionMode||k.insertionMode===0?U(1,null):k}var ne=new Map;function q(k,F,G){if(typeof G!="object")throw Error(e(62));F=!0;for(var ee in G)if(n.call(G,ee)){var Ee=G[ee];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ee.indexOf("--")===0){var ge=A(ee);Ee=A((""+Ee).trim())}else{ge=ee;var Re=ne.get(ge);Re!==void 0||(Re=A(ge.replace(I,"-$1").toLowerCase().replace(j,"-ms-")),ne.set(ge,Re)),ge=Re,Ee=typeof Ee=="number"?Ee===0||n.call(g,ee)?""+Ee:Ee+"px":A((""+Ee).trim())}F?(F=!1,k.push(' style="',ge,":",Ee)):k.push(";",ge,":",Ee)}}F||k.push('"')}function ie(k,F,G,ee){switch(G){case"style":q(k,F,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){if(F=f.hasOwnProperty(G)?f[G]:null,F!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(G=F.attributeName,F.type){case 3:ee&&k.push(" ",G,'=""');break;case 4:ee===!0?k.push(" ",G,'=""'):ee!==!1&&k.push(" ",G,'="',A(ee),'"');break;case 5:isNaN(ee)||k.push(" ",G,'="',A(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",G,'="',A(ee),'"');break;default:F.sanitizeURL&&(ee=""+ee),k.push(" ",G,'="',A(ee),'"')}}else if(a(G)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(F=G.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(" ",G,'="',A(ee),'"')}}}function x(k,F,G){if(F!=null){if(G!=null)throw Error(e(60));if(typeof F!="object"||!("__html"in F))throw Error(e(61));F=F.__html,F!=null&&k.push(""+F)}}function le(k){var F="";return t.Children.forEach(k,function(G){G!=null&&(F+=G)}),F}function ae(k,F,G,ee){k.push(Qe(G));var Ee=G=null,ge;for(ge in F)if(n.call(F,ge)){var Re=F[ge];if(Re!=null)switch(ge){case"children":G=Re;break;case"dangerouslySetInnerHTML":Ee=Re;break;default:ie(k,ee,ge,Re)}}return k.push(">"),x(k,Ee,G),typeof G=="string"?(k.push(A(G)),null):G}var $e=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,tt=new Map;function Qe(k){var F=tt.get(k);if(F===void 0){if(!$e.test(k))throw Error(e(65,k));F="<"+k,tt.set(k,F)}return F}function Ye(k,F,G,ee,Ee){switch(F){case"select":k.push(Qe("select"));var ge=null,Re=null;for(dt in G)if(n.call(G,dt)){var qe=G[dt];if(qe!=null)switch(dt){case"children":ge=qe;break;case"dangerouslySetInnerHTML":Re=qe;break;case"defaultValue":case"value":break;default:ie(k,ee,dt,qe)}}return k.push(">"),x(k,Re,ge),ge;case"option":Re=Ee.selectedValue,k.push(Qe("option"));var gt=qe=null,mt=null,dt=null;for(ge in G)if(n.call(G,ge)){var Ft=G[ge];if(Ft!=null)switch(ge){case"children":qe=Ft;break;case"selected":mt=Ft;break;case"dangerouslySetInnerHTML":dt=Ft;break;case"value":gt=Ft;default:ie(k,ee,ge,Ft)}}if(Re!=null)if(G=gt!==null?""+gt:le(qe),R(Re)){for(ee=0;ee<Re.length;ee++)if(""+Re[ee]===G){k.push(' selected=""');break}}else""+Re===G&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),x(k,dt,qe),qe;case"textarea":k.push(Qe("textarea")),dt=Re=ge=null;for(qe in G)if(n.call(G,qe)&&(gt=G[qe],gt!=null))switch(qe){case"children":dt=gt;break;case"value":ge=gt;break;case"defaultValue":Re=gt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:ie(k,ee,qe,gt)}if(ge===null&&Re!==null&&(ge=Re),k.push(">"),dt!=null){if(ge!=null)throw Error(e(92));if(R(dt)&&1<dt.length)throw Error(e(93));ge=""+dt}return typeof ge=="string"&&ge[0]===`
|
|
40
40
|
`&&k.push(`
|
|
41
41
|
`),ge!==null&&k.push(A(""+ge)),null;case"input":k.push(Qe("input")),gt=dt=qe=ge=null;for(Re in G)if(n.call(G,Re)&&(mt=G[Re],mt!=null))switch(Re){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":gt=mt;break;case"defaultValue":qe=mt;break;case"checked":dt=mt;break;case"value":ge=mt;break;default:ie(k,ee,Re,mt)}return dt!==null?ie(k,ee,"checked",dt):gt!==null&&ie(k,ee,"checked",gt),ge!==null?ie(k,ee,"value",ge):qe!==null&&ie(k,ee,"value",qe),k.push("/>"),null;case"menuitem":k.push(Qe("menuitem"));for(var Bn in G)if(n.call(G,Bn)&&(ge=G[Bn],ge!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:ie(k,ee,Bn,ge)}return k.push(">"),null;case"title":k.push(Qe("title")),ge=null;for(Ft in G)if(n.call(G,Ft)&&(Re=G[Ft],Re!=null))switch(Ft){case"children":ge=Re;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:ie(k,ee,Ft,Re)}return k.push(">"),ge;case"listing":case"pre":k.push(Qe(F)),Re=ge=null;for(gt in G)if(n.call(G,gt)&&(qe=G[gt],qe!=null))switch(gt){case"children":ge=qe;break;case"dangerouslySetInnerHTML":Re=qe;break;default:ie(k,ee,gt,qe)}if(k.push(">"),Re!=null){if(ge!=null)throw Error(e(60));if(typeof Re!="object"||!("__html"in Re))throw Error(e(61));G=Re.__html,G!=null&&(typeof G=="string"&&0<G.length&&G[0]===`
|
|
42
42
|
`?k.push(`
|
|
@@ -50,7 +50,7 @@ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(ot,ft,Ge,Ze,X
|
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var v1;function
|
|
53
|
+
*/var v1;function b4(){if(v1)return Ah;v1=1;var t=X;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,W=1;W<arguments.length;W++)M+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var W=n.length-r;W<M.length&&(W===0?D.enqueue(n):(n.set(M.subarray(0,W),r),D.enqueue(n),M=M.subarray(W)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function f(D){return c.encode(D)}function p(D){return c.encode(D)}function y(D,M){typeof D.error=="function"?D.error(M):D.close()}var g=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function I(D){return g.call(A,D)?!0:g.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,W,Q,be,we,Me){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=be,this.mustUseProperty=W,this.propertyName=D,this.type=M,this.sanitizeURL=we,this.removeEmptyString=Me}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){R[D]=new j(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];R[M]=new j(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){R[D]=new j(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){R[D]=new j(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){R[D]=new j(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){R[D]=new j(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){R[D]=new j(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){R[D]=new j(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){R[D]=new j(D,5,!1,D.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function H(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(U,H);R[M]=new j(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(U,H);R[M]=new j(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(U,H);R[M]=new j(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!1,!1)}),R.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){R[D]=new j(D,1,!1,D.toLowerCase(),null,!0,!0)});var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(D){q.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),ne[M]=ne[D]})});var ie=/["'&<>]/;function x(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=ie.exec(D);if(M){var W="",Q,be=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}be!==Q&&(W+=D.substring(be,Q)),be=Q+1,W+=M}D=be!==Q?W+D.substring(be,Q):W}return D}var le=/([A-Z])/g,ae=/^ms-/,$e=Array.isArray,tt=p("<script>"),Qe=p("<\/script>"),Ye=p('<script src="'),Oe=p('<script type="module" src="'),ue=p('" async=""><\/script>'),ve=/(<\/|<)(s)(cript)/gi;function ke(D,M,W,Q){return""+M+(W==="s"?"\\u0073":"\\u0053")+Q}function Le(D,M,W,Q,be){D=D===void 0?"":D,M=M===void 0?tt:p('<script nonce="'+x(M)+'">');var we=[];if(W!==void 0&&we.push(M,f((""+W).replace(ve,ke)),Qe),Q!==void 0)for(W=0;W<Q.length;W++)we.push(Ye,f(x(Q[W])),ue);if(be!==void 0)for(Q=0;Q<be.length;Q++)we.push(Oe,f(x(be[Q])),ue);return{bootstrapChunks:we,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function et(D,M){return{insertionMode:D,selectedValue:M}}function me(D){return et(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Se(D,M,W){switch(M){case"select":return et(1,W.value!=null?W.value:W.defaultValue);case"svg":return et(2,null);case"math":return et(3,null);case"foreignObject":return et(1,null);case"table":return et(4,null);case"thead":case"tbody":case"tfoot":return et(5,null);case"colgroup":return et(7,null);case"tr":return et(6,null)}return 4<=D.insertionMode||D.insertionMode===0?et(1,null):D}var je=p("<!-- -->");function Ue(D,M,W,Q){return M===""?Q:(Q&&D.push(je),D.push(f(x(M))),!0)}var Ge=new Map,Ze=p(' style="'),Xe=p(":"),ot=p(";");function ct(D,M,W){if(typeof W!="object")throw Error(e(62));M=!0;for(var Q in W)if(g.call(W,Q)){var be=W[Q];if(be!=null&&typeof be!="boolean"&&be!==""){if(Q.indexOf("--")===0){var we=f(x(Q));be=f(x((""+be).trim()))}else{we=Q;var Me=Ge.get(we);Me!==void 0||(Me=p(x(we.replace(le,"-$1").toLowerCase().replace(ae,"-ms-"))),Ge.set(we,Me)),we=Me,be=typeof be=="number"?be===0||g.call(ne,Q)?f(""+be):f(be+"px"):f(x((""+be).trim()))}M?(M=!1,D.push(Ze,we,Xe,be)):D.push(ot,we,Xe,be)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Je=p('=""');function At(D,M,W,Q){switch(W){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<W.length)||W[0]!=="o"&&W[0]!=="O"||W[1]!=="n"&&W[1]!=="N"){if(M=R.hasOwnProperty(W)?R[W]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(W=f(M.attributeName),M.type){case 3:Q&&D.push(pt,W,Je);break;case 4:Q===!0?D.push(pt,W,Je):Q!==!1&&D.push(pt,W,ft,f(x(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,W,ft,f(x(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,W,ft,f(x(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,W,ft,f(x(Q)),yt)}}else if(I(W)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=W.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,f(W),ft,f(x(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function vr(D,M,W){if(M!=null){if(W!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(f(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(W){W!=null&&(M+=W)}),M}var Sn=p(' selected=""');function $i(D,M,W,Q){D.push(fn(W));var be=W=null,we;for(we in M)if(g.call(M,we)){var Me=M[we];if(Me!=null)switch(we){case"children":W=Me;break;case"dangerouslySetInnerHTML":be=Me;break;default:At(D,Q,we,Me)}}return D.push(Mt),vr(D,be,W),typeof W=="string"?(D.push(f(x(W))),null):W}var Dr=p(`
|
|
54
54
|
`),Jn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function fn(D){var M=sn.get(D);if(M===void 0){if(!Jn.test(D))throw Error(e(65,D));M=p("<"+D),sn.set(D,M)}return M}var dn=p("<!DOCTYPE html>");function ut(D,M,W,Q,be){switch(M){case"select":D.push(fn("select"));var we=null,Me=null;for(St in W)if(g.call(W,St)){var We=W[St];if(We!=null)switch(St){case"children":we=We;break;case"dangerouslySetInnerHTML":Me=We;break;case"defaultValue":case"value":break;default:At(D,Q,St,We)}}return D.push(Mt),vr(D,Me,we),we;case"option":Me=be.selectedValue,D.push(fn("option"));var ht=We=null,_t=null,St=null;for(we in W)if(g.call(W,we)){var vt=W[we];if(vt!=null)switch(we){case"children":We=vt;break;case"selected":_t=vt;break;case"dangerouslySetInnerHTML":St=vt;break;case"value":ht=vt;default:At(D,Q,we,vt)}}if(Me!=null)if(W=ht!==null?""+ht:Hn(We),$e(Me)){for(Q=0;Q<Me.length;Q++)if(""+Me[Q]===W){D.push(Sn);break}}else""+Me===W&&D.push(Sn);else _t&&D.push(Sn);return D.push(Mt),vr(D,St,We),We;case"textarea":D.push(fn("textarea")),St=Me=we=null;for(We in W)if(g.call(W,We)&&(ht=W[We],ht!=null))switch(We){case"children":St=ht;break;case"value":we=ht;break;case"defaultValue":Me=ht;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:At(D,Q,We,ht)}if(we===null&&Me!==null&&(we=Me),D.push(Mt),St!=null){if(we!=null)throw Error(e(92));if($e(St)&&1<St.length)throw Error(e(93));we=""+St}return typeof we=="string"&&we[0]===`
|
|
55
55
|
`&&D.push(Dr),we!==null&&D.push(f(x(""+we))),null;case"input":D.push(fn("input")),ht=St=We=we=null;for(Me in W)if(g.call(W,Me)&&(_t=W[Me],_t!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":ht=_t;break;case"defaultValue":We=_t;break;case"checked":St=_t;break;case"value":we=_t;break;default:At(D,Q,Me,_t)}return St!==null?At(D,Q,"checked",St):ht!==null&&At(D,Q,"checked",ht),we!==null?At(D,Q,"value",we):We!==null&&At(D,Q,"value",We),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var An in W)if(g.call(W,An)&&(we=W[An],we!=null))switch(An){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:At(D,Q,An,we)}return D.push(Mt),null;case"title":D.push(fn("title")),we=null;for(vt in W)if(g.call(W,vt)&&(Me=W[vt],Me!=null))switch(vt){case"children":we=Me;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:At(D,Q,vt,Me)}return D.push(Mt),we;case"listing":case"pre":D.push(fn(M)),Me=we=null;for(ht in W)if(g.call(W,ht)&&(We=W[ht],We!=null))switch(ht){case"children":we=We;break;case"dangerouslySetInnerHTML":Me=We;break;default:At(D,Q,ht,We)}if(D.push(Mt),Me!=null){if(we!=null)throw Error(e(60));if(typeof Me!="object"||!("__html"in Me))throw Error(e(61));W=Me.__html,W!=null&&(typeof W=="string"&&0<W.length&&W[0]===`
|
|
56
56
|
`?D.push(Dr,f(W)):D.push(f(""+W)))}return typeof we=="string"&&we[0]===`
|
|
@@ -62,7 +62,7 @@ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var Je=yt(ot,ft,Ge,Ze,X
|
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/var y1;function b4(){return y1||(y1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];o("warn",l,m)}}function i(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];o("error",l,m)}}function o(l,d,m){{var S=n.ReactDebugCurrentFrame,_=S.getStackAddendum();_!==""&&(d+="%s",m=m.concat([_]));var B=m.map(function(Y){return String(Y)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function y(l){}function g(l){l.push(null)}function T(l){return l}function E(l){return l}function A(l,d){l.destroy(d)}function I(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,m=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return m}}function j(l){try{return R(l),!1}catch{return!0}}function R(l){return""+l}function U(l,d){if(j(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",d,I(l)),R(l)}function H(l,d){if(j(l))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.",d,I(l)),R(l)}function ne(l){if(j(l))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.",I(l)),R(l)}var q=Object.prototype.hasOwnProperty,ie=0,x=1,le=2,ae=3,$e=4,tt=5,Qe=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",Oe=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ue=new RegExp("^["+Ye+"]["+Oe+"]*$"),ve={},ke={};function Le(l){return q.call(ke,l)?!0:q.call(ve,l)?!1:ue.test(l)?(ke[l]=!0,!0):(ve[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function et(l,d,m,S){if(m!==null&&m.type===ie)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(m!==null)return!m.acceptsBooleans;var _=l.toLowerCase().slice(0,5);return _!=="data-"&&_!=="aria-"}default:return!1}}function me(l){return je.hasOwnProperty(l)?je[l]:null}function Se(l,d,m,S,_,B,Y){this.acceptsBooleans=d===le||d===ae||d===$e,this.attributeName=S,this.attributeNamespace=_,this.mustUseProperty=m,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var je={},Ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ue.forEach(function(l){je[l]=new Se(l,ie,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],m=l[1];je[d]=new Se(d,x,!1,m,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){je[l]=new Se(l,le,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){je[l]=new Se(l,le,!1,l,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(l){je[l]=new Se(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){je[l]=new Se(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){je[l]=new Se(l,$e,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){je[l]=new Se(l,Qe,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){je[l]=new Se(l,tt,!1,l.toLowerCase(),null,!1,!1)});var Ge=/[\-\:]([a-z])/g,Ze=function(l){return l[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(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){je[l]=new Se(l,x,!1,l.toLowerCase(),null,!1,!1)});var Xe="xlinkHref";je[Xe]=new Se("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){je[l]=new Se(l,x,!1,l.toLowerCase(),null,!0,!0)});var ot={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 ct(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var pt=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(l){pt.forEach(function(d){ot[ct(d,l)]=ot[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,d){ft[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.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`."),d.onChange||d.readOnly||d.disabled||d.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 Je(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 At={"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},Mt={},Vn=new RegExp("^(aria)-["+Oe+"]*$"),vr=new RegExp("^(aria)[A-Z]["+Oe+"]*$");function Hn(l,d){{if(q.call(Mt,d)&&Mt[d])return!0;if(vr.test(d)){var m="aria-"+d.slice(4).toLowerCase(),S=At.hasOwnProperty(m)?m:null;if(S==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Mt[d]=!0,!0;if(d!==S)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,S),Mt[d]=!0,!0}if(Vn.test(d)){var _=d.toLowerCase(),B=At.hasOwnProperty(_)?_:null;if(B==null)return Mt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Mt[d]=!0,!0}}return!0}function Sn(l,d){{var m=[];for(var S in d){var _=Hn(l,S);_||m.push(S)}var B=m.map(function(Y){return"`"+Y+"`"}).join(", ");m.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):m.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function $i(l,d){Je(l,d)||Sn(l,d)}var Dr=!1;function Jn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!Dr&&(Dr=!0,l==="select"&&d.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.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={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"},fn=function(){};{var dn={},ut=/^on./,Dn=/^on[^A-Z]/,si=new RegExp("^(aria)-["+Oe+"]*$"),on=new RegExp("^(aria)[A-Z]["+Oe+"]*$");fn=function(l,d,m,S){if(q.call(dn,d)&&dn[d])return!0;var _=d.toLowerCase();if(_==="onfocusin"||_==="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."),dn[d]=!0,!0;if(S!=null){var B=S.registrationNameDependencies,Y=S.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var re=Y.hasOwnProperty(_)?Y[_]:null;if(re!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,re),dn[d]=!0,!0;if(ut.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),dn[d]=!0,!0}else if(ut.test(d))return Dn.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),dn[d]=!0,!0;if(si.test(d)||on.test(d))return!0;if(_==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[d]=!0,!0;if(_==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[d]=!0,!0;if(_==="is"&&m!==null&&m!==void 0&&typeof m!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),dn[d]=!0,!0;if(typeof m=="number"&&isNaN(m))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),dn[d]=!0,!0;var xe=me(d),Ne=xe!==null&&xe.type===ie;if(sn.hasOwnProperty(_)){var ze=sn[_];if(ze!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,ze),dn[d]=!0,!0}else if(!Ne&&d!==_)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.",d,_),dn[d]=!0,!0;return typeof m=="boolean"&&et(d,m,xe)?(m?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()}.',m,d,d,m,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()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,d,d,m,d,d,d),dn[d]=!0,!0):Ne?!0:et(d,m,xe)?(dn[d]=!0,!1):((m==="false"||m==="true")&&xe!==null&&xe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,d,m==="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".',d,m),dn[d]=!0),!0)}}var Vi=function(l,d,m){{var S=[];for(var _ in d){var B=fn(l,_,d[_],m);B||S.push(_)}var Y=S.map(function(re){return"`"+re+"`"}).join(", ");S.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 ",Y,l):S.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 ",Y,l)}};function Hi(l,d,m){Je(l,d)||Vi(l,d,m)}var Ui=function(){};{var Pr=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Or=/-(.)/g,yr=/;\s*$/,Yr={},Gr={},Ao=!1,Un=!1,qr=function(l){return l.replace(Or,function(d,m){return m.toUpperCase()})},Qn=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,qr(l.replace(Nn,"ms-"))))},Wt=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},ai=function(l,d){Gr.hasOwnProperty(d)&&Gr[d]||(Gr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(yr,"")))},Wi=function(l,d){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,d){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,d){l.indexOf("-")>-1?Qn(l):Pr.test(l)?Wt(l):yr.test(d)&&ai(l,d),typeof d=="number"&&(isNaN(d)?Wi(l,d):isFinite(d)||Pn(l,d))}}var hn=Ui,li=/["'&<>]/;function ui(l){ne(l);var d=""+l,m=li.exec(d);if(!m)return d;var S,_="",B,Y=0;for(B=m.index;B<d.length;B++){switch(d.charCodeAt(B)){case 34:S=""";break;case 38:S="&";break;case 39:S="'";break;case 60:S="<";break;case 62:S=">";break;default:continue}Y!==B&&(_+=d.substring(Y,B)),Y=B+1,_+=S}return Y!==B?_+d.substring(Y,B):_}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:ui(l)}var so=/([A-Z])/g,br=/^ms-/;function ci(l){return l.replace(so,"-$1").toLowerCase().replace(br,"-ms-")}var an=/^[\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,Di=!1;function Ls(l){!Di&&an.test(l)&&(Di=!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(l)))}var Fs=Array.isArray;function Xr(l){return Fs(l)}var ao="<script>";function lo(l,d,m,S,_){var B=l===void 0?"":l,Y=ao,re=[];return{bootstrapChunks:re,startInlineScript:Y,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,_r=2,Rr=3,fi=4,Kr=5,wr=6,Ar=7;function tr(l,d){return{insertionMode:l,selectedValue:d}}function zi(l,d,m){switch(d){case"select":return tr(er,m.value!=null?m.value:m.defaultValue);case"svg":return tr(_r,null);case"math":return tr(Rr,null);case"foreignObject":return tr(er,null);case"table":return tr(fi,null);case"thead":case"tbody":case"tfoot":return tr(Kr,null);case"colgroup":return tr(Ar,null);case"tr":return tr(wr,null)}return l.insertionMode>=fi||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function yn(l,d,m){var S=l.idPrefix,_=":"+S+"R"+d;return m>0&&(_+="H"+m.toString(32)),_+":"}function Ir(l){return Tn(l)}var Mr="<!-- -->";function di(l,d,m,S){return d===""?S:(S&&l.push(Mr),l.push(Ir(d)),!0)}function hi(l,d,m,S){m&&S&&l.push(Mr)}var xr=new Map;function Zr(l){var d=xr.get(l);if(d!==void 0)return d;var m=Tn(ci(l));return xr.set(l,m),m}var Wn=' style="',pi=":",gi=";";function _i(l,d,m){if(typeof m!="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 S=!0;for(var _ in m)if(q.call(m,_)){var B=m[_];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,re=void 0,xe=_.indexOf("--")===0;xe?(Y=Tn(_),H(B,_),re=Tn((""+B).trim())):(hn(_,B),Y=Zr(_),typeof B=="number"?B!==0&&!q.call(ot,_)?re=B+"px":re=""+B:(H(B,_),re=Tn((""+B).trim()))),S?(S=!1,l.push(Wn,Y,pi,re)):l.push(gi,Y,pi,re)}}S||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,d,m,S){switch(m){case"style":{_i(l,d,S);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(m.length>2&&(m[0]==="o"||m[0]==="O")&&(m[1]==="n"||m[1]==="N"))){var _=me(m);if(_!==null){switch(typeof S){case"function":case"symbol":return;case"boolean":if(!_.acceptsBooleans)return}var B=_.attributeName,Y=B;switch(_.type){case ae:S&&l.push(nn,Y,uo);return;case $e:S===!0?l.push(nn,Y,uo):S===!1||l.push(nn,Y,jn,Tn(S),Cn);return;case tt:isNaN(S)||l.push(nn,Y,jn,Tn(S),Cn);break;case Qe:!isNaN(S)&&S>=1&&l.push(nn,Y,jn,Tn(S),Cn);break;default:_.sanitizeURL&&(U(S,B),S=""+S,Ls(S)),l.push(nn,Y,jn,Tn(S),Cn)}}else if(Le(m)){switch(typeof S){case"function":case"symbol":return;case"boolean":{var re=m.toLowerCase().slice(0,5);if(re!=="data-"&&re!=="aria-")return}}l.push(nn,m,jn,Tn(S),Cn)}}}var _n=">",k="/>";function F(l,d,m){if(d!=null){if(m!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))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 S=d.__html;S!=null&&(ne(S),l.push(""+S))}}var G=!1,ee=!1,Ee=!1,ge=!1,Re=!1,qe=!1,gt=!1;function mt(l,d){{var m=l[d];if(m!=null){var S=Xr(m);l.multiple&&!S?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&S&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function dt(l,d,m){yt("select",d),mt(d,"value"),mt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ee&&(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"),Ee=!0),l.push(Sr("select"));var S=null,_=null;for(var B in d)if(q.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":_=Y;break;case"defaultValue":case"value":break;default:On(l,m,B,Y);break}}return l.push(_n),F(l,_,S),S}function Ft(l){var d="";return t.Children.forEach(l,function(m){m!=null&&(d+=m,!Re&&typeof m!="string"&&typeof m!="number"&&(Re=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}var Bn=' selected=""';function zn(l,d,m,S){var _=S.selectedValue;l.push(Sr("option"));var B=null,Y=null,re=null,xe=null;for(var Ne in d)if(q.call(d,Ne)){var ze=d[Ne];if(ze==null)continue;switch(Ne){case"children":B=ze;break;case"selected":re=ze,gt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0);break;case"dangerouslySetInnerHTML":xe=ze;break;case"value":Y=ze;default:On(l,m,Ne,ze);break}}if(_!=null){var nt;if(Y!==null?(U(Y,"value"),nt=""+Y):(xe!==null&&(qe||(qe=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),nt=Ft(B)),Xr(_))for(var xt=0;xt<_.length;xt++){U(_[xt],"value");var en=""+_[xt];if(en===nt){l.push(Bn);break}}else U(_,"select.value"),""+_===nt&&l.push(Bn)}else re&&l.push(Bn);return l.push(_n),F(l,xe,B),B}function En(l,d,m){yt("input",d),d.checked!==void 0&&d.defaultChecked!==void 0&&!ee&&(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",d.type),ee=!0),d.value!==void 0&&d.defaultValue!==void 0&&!G&&(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",d.type),G=!0),l.push(Sr("input"));var S=null,_=null,B=null,Y=null;for(var re in d)if(q.call(d,re)){var xe=d[re];if(xe==null)continue;switch(re){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":Y=xe;break;case"defaultValue":_=xe;break;case"checked":B=xe;break;case"value":S=xe;break;default:On(l,m,re,xe);break}}return B!==null?On(l,m,"checked",B):Y!==null&&On(l,m,"checked",Y),S!==null?On(l,m,"value",S):_!==null&&On(l,m,"value",_),l.push(k),null}function Jr(l,d,m){yt("textarea",d),d.value!==void 0&&d.defaultValue!==void 0&&!ge&&(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"),ge=!0),l.push(Sr("textarea"));var S=null,_=null,B=null;for(var Y in d)if(q.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":B=re;break;case"value":S=re;break;case"defaultValue":_=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:On(l,m,Y,re);break}}if(S===null&&_!==null&&(S=_),l.push(_n),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");ne(B[0]),S=""+B[0]}ne(B),S=""+B}return typeof S=="string"&&S[0]===`
|
|
65
|
+
*/var y1;function w4(){return y1||(y1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];o("warn",l,m)}}function i(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),S=1;S<d;S++)m[S-1]=arguments[S];o("error",l,m)}}function o(l,d,m){{var S=n.ReactDebugCurrentFrame,_=S.getStackAddendum();_!==""&&(d+="%s",m=m.concat([_]));var B=m.map(function(Y){return String(Y)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function y(l){}function g(l){l.push(null)}function T(l){return l}function E(l){return l}function A(l,d){l.destroy(d)}function I(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,m=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return m}}function j(l){try{return R(l),!1}catch{return!0}}function R(l){return""+l}function U(l,d){if(j(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",d,I(l)),R(l)}function H(l,d){if(j(l))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.",d,I(l)),R(l)}function ne(l){if(j(l))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.",I(l)),R(l)}var q=Object.prototype.hasOwnProperty,ie=0,x=1,le=2,ae=3,$e=4,tt=5,Qe=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",Oe=Ye+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ue=new RegExp("^["+Ye+"]["+Oe+"]*$"),ve={},ke={};function Le(l){return q.call(ke,l)?!0:q.call(ve,l)?!1:ue.test(l)?(ke[l]=!0,!0):(ve[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function et(l,d,m,S){if(m!==null&&m.type===ie)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(m!==null)return!m.acceptsBooleans;var _=l.toLowerCase().slice(0,5);return _!=="data-"&&_!=="aria-"}default:return!1}}function me(l){return je.hasOwnProperty(l)?je[l]:null}function Se(l,d,m,S,_,B,Y){this.acceptsBooleans=d===le||d===ae||d===$e,this.attributeName=S,this.attributeNamespace=_,this.mustUseProperty=m,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var je={},Ue=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ue.forEach(function(l){je[l]=new Se(l,ie,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],m=l[1];je[d]=new Se(d,x,!1,m,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){je[l]=new Se(l,le,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){je[l]=new Se(l,le,!1,l,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(l){je[l]=new Se(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){je[l]=new Se(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){je[l]=new Se(l,$e,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){je[l]=new Se(l,Qe,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){je[l]=new Se(l,tt,!1,l.toLowerCase(),null,!1,!1)});var Ge=/[\-\:]([a-z])/g,Ze=function(l){return l[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(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(Ge,Ze);je[d]=new Se(d,x,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){je[l]=new Se(l,x,!1,l.toLowerCase(),null,!1,!1)});var Xe="xlinkHref";je[Xe]=new Se("xlinkHref",x,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){je[l]=new Se(l,x,!1,l.toLowerCase(),null,!0,!0)});var ot={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 ct(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var pt=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(l){pt.forEach(function(d){ot[ct(d,l)]=ot[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,d){ft[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.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`."),d.onChange||d.readOnly||d.disabled||d.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 Je(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 At={"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},Mt={},Vn=new RegExp("^(aria)-["+Oe+"]*$"),vr=new RegExp("^(aria)[A-Z]["+Oe+"]*$");function Hn(l,d){{if(q.call(Mt,d)&&Mt[d])return!0;if(vr.test(d)){var m="aria-"+d.slice(4).toLowerCase(),S=At.hasOwnProperty(m)?m:null;if(S==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Mt[d]=!0,!0;if(d!==S)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,S),Mt[d]=!0,!0}if(Vn.test(d)){var _=d.toLowerCase(),B=At.hasOwnProperty(_)?_:null;if(B==null)return Mt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Mt[d]=!0,!0}}return!0}function Sn(l,d){{var m=[];for(var S in d){var _=Hn(l,S);_||m.push(S)}var B=m.map(function(Y){return"`"+Y+"`"}).join(", ");m.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):m.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function $i(l,d){Je(l,d)||Sn(l,d)}var Dr=!1;function Jn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!Dr&&(Dr=!0,l==="select"&&d.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.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={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"},fn=function(){};{var dn={},ut=/^on./,Dn=/^on[^A-Z]/,si=new RegExp("^(aria)-["+Oe+"]*$"),on=new RegExp("^(aria)[A-Z]["+Oe+"]*$");fn=function(l,d,m,S){if(q.call(dn,d)&&dn[d])return!0;var _=d.toLowerCase();if(_==="onfocusin"||_==="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."),dn[d]=!0,!0;if(S!=null){var B=S.registrationNameDependencies,Y=S.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var re=Y.hasOwnProperty(_)?Y[_]:null;if(re!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,re),dn[d]=!0,!0;if(ut.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),dn[d]=!0,!0}else if(ut.test(d))return Dn.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),dn[d]=!0,!0;if(si.test(d)||on.test(d))return!0;if(_==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[d]=!0,!0;if(_==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[d]=!0,!0;if(_==="is"&&m!==null&&m!==void 0&&typeof m!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),dn[d]=!0,!0;if(typeof m=="number"&&isNaN(m))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),dn[d]=!0,!0;var xe=me(d),Ne=xe!==null&&xe.type===ie;if(sn.hasOwnProperty(_)){var ze=sn[_];if(ze!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,ze),dn[d]=!0,!0}else if(!Ne&&d!==_)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.",d,_),dn[d]=!0,!0;return typeof m=="boolean"&&et(d,m,xe)?(m?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()}.',m,d,d,m,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()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',m,d,d,m,d,d,d),dn[d]=!0,!0):Ne?!0:et(d,m,xe)?(dn[d]=!0,!1):((m==="false"||m==="true")&&xe!==null&&xe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,d,m==="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".',d,m),dn[d]=!0),!0)}}var Vi=function(l,d,m){{var S=[];for(var _ in d){var B=fn(l,_,d[_],m);B||S.push(_)}var Y=S.map(function(re){return"`"+re+"`"}).join(", ");S.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 ",Y,l):S.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 ",Y,l)}};function Hi(l,d,m){Je(l,d)||Vi(l,d,m)}var Ui=function(){};{var Pr=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Or=/-(.)/g,yr=/;\s*$/,Yr={},Gr={},Ao=!1,Un=!1,qr=function(l){return l.replace(Or,function(d,m){return m.toUpperCase()})},Qn=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,qr(l.replace(Nn,"ms-"))))},Wt=function(l){Yr.hasOwnProperty(l)&&Yr[l]||(Yr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},ai=function(l,d){Gr.hasOwnProperty(d)&&Gr[d]||(Gr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(yr,"")))},Wi=function(l,d){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,d){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,d){l.indexOf("-")>-1?Qn(l):Pr.test(l)?Wt(l):yr.test(d)&&ai(l,d),typeof d=="number"&&(isNaN(d)?Wi(l,d):isFinite(d)||Pn(l,d))}}var hn=Ui,li=/["'&<>]/;function ui(l){ne(l);var d=""+l,m=li.exec(d);if(!m)return d;var S,_="",B,Y=0;for(B=m.index;B<d.length;B++){switch(d.charCodeAt(B)){case 34:S=""";break;case 38:S="&";break;case 39:S="'";break;case 60:S="<";break;case 62:S=">";break;default:continue}Y!==B&&(_+=d.substring(Y,B)),Y=B+1,_+=S}return Y!==B?_+d.substring(Y,B):_}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:ui(l)}var so=/([A-Z])/g,br=/^ms-/;function ci(l){return l.replace(so,"-$1").toLowerCase().replace(br,"-ms-")}var an=/^[\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,Di=!1;function Ls(l){!Di&&an.test(l)&&(Di=!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(l)))}var Fs=Array.isArray;function Xr(l){return Fs(l)}var ao="<script>";function lo(l,d,m,S,_){var B=l===void 0?"":l,Y=ao,re=[];return{bootstrapChunks:re,startInlineScript:Y,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,_r=2,Rr=3,fi=4,Kr=5,wr=6,Ar=7;function tr(l,d){return{insertionMode:l,selectedValue:d}}function zi(l,d,m){switch(d){case"select":return tr(er,m.value!=null?m.value:m.defaultValue);case"svg":return tr(_r,null);case"math":return tr(Rr,null);case"foreignObject":return tr(er,null);case"table":return tr(fi,null);case"thead":case"tbody":case"tfoot":return tr(Kr,null);case"colgroup":return tr(Ar,null);case"tr":return tr(wr,null)}return l.insertionMode>=fi||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function yn(l,d,m){var S=l.idPrefix,_=":"+S+"R"+d;return m>0&&(_+="H"+m.toString(32)),_+":"}function Ir(l){return Tn(l)}var Mr="<!-- -->";function di(l,d,m,S){return d===""?S:(S&&l.push(Mr),l.push(Ir(d)),!0)}function hi(l,d,m,S){m&&S&&l.push(Mr)}var xr=new Map;function Zr(l){var d=xr.get(l);if(d!==void 0)return d;var m=Tn(ci(l));return xr.set(l,m),m}var Wn=' style="',pi=":",gi=";";function _i(l,d,m){if(typeof m!="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 S=!0;for(var _ in m)if(q.call(m,_)){var B=m[_];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,re=void 0,xe=_.indexOf("--")===0;xe?(Y=Tn(_),H(B,_),re=Tn((""+B).trim())):(hn(_,B),Y=Zr(_),typeof B=="number"?B!==0&&!q.call(ot,_)?re=B+"px":re=""+B:(H(B,_),re=Tn((""+B).trim()))),S?(S=!1,l.push(Wn,Y,pi,re)):l.push(gi,Y,pi,re)}}S||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,d,m,S){switch(m){case"style":{_i(l,d,S);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(m.length>2&&(m[0]==="o"||m[0]==="O")&&(m[1]==="n"||m[1]==="N"))){var _=me(m);if(_!==null){switch(typeof S){case"function":case"symbol":return;case"boolean":if(!_.acceptsBooleans)return}var B=_.attributeName,Y=B;switch(_.type){case ae:S&&l.push(nn,Y,uo);return;case $e:S===!0?l.push(nn,Y,uo):S===!1||l.push(nn,Y,jn,Tn(S),Cn);return;case tt:isNaN(S)||l.push(nn,Y,jn,Tn(S),Cn);break;case Qe:!isNaN(S)&&S>=1&&l.push(nn,Y,jn,Tn(S),Cn);break;default:_.sanitizeURL&&(U(S,B),S=""+S,Ls(S)),l.push(nn,Y,jn,Tn(S),Cn)}}else if(Le(m)){switch(typeof S){case"function":case"symbol":return;case"boolean":{var re=m.toLowerCase().slice(0,5);if(re!=="data-"&&re!=="aria-")return}}l.push(nn,m,jn,Tn(S),Cn)}}}var _n=">",k="/>";function F(l,d,m){if(d!=null){if(m!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))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 S=d.__html;S!=null&&(ne(S),l.push(""+S))}}var G=!1,ee=!1,Ee=!1,ge=!1,Re=!1,qe=!1,gt=!1;function mt(l,d){{var m=l[d];if(m!=null){var S=Xr(m);l.multiple&&!S?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&S&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function dt(l,d,m){yt("select",d),mt(d,"value"),mt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Ee&&(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"),Ee=!0),l.push(Sr("select"));var S=null,_=null;for(var B in d)if(q.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":_=Y;break;case"defaultValue":case"value":break;default:On(l,m,B,Y);break}}return l.push(_n),F(l,_,S),S}function Ft(l){var d="";return t.Children.forEach(l,function(m){m!=null&&(d+=m,!Re&&typeof m!="string"&&typeof m!="number"&&(Re=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}var Bn=' selected=""';function zn(l,d,m,S){var _=S.selectedValue;l.push(Sr("option"));var B=null,Y=null,re=null,xe=null;for(var Ne in d)if(q.call(d,Ne)){var ze=d[Ne];if(ze==null)continue;switch(Ne){case"children":B=ze;break;case"selected":re=ze,gt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0);break;case"dangerouslySetInnerHTML":xe=ze;break;case"value":Y=ze;default:On(l,m,Ne,ze);break}}if(_!=null){var nt;if(Y!==null?(U(Y,"value"),nt=""+Y):(xe!==null&&(qe||(qe=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),nt=Ft(B)),Xr(_))for(var xt=0;xt<_.length;xt++){U(_[xt],"value");var en=""+_[xt];if(en===nt){l.push(Bn);break}}else U(_,"select.value"),""+_===nt&&l.push(Bn)}else re&&l.push(Bn);return l.push(_n),F(l,xe,B),B}function En(l,d,m){yt("input",d),d.checked!==void 0&&d.defaultChecked!==void 0&&!ee&&(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",d.type),ee=!0),d.value!==void 0&&d.defaultValue!==void 0&&!G&&(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",d.type),G=!0),l.push(Sr("input"));var S=null,_=null,B=null,Y=null;for(var re in d)if(q.call(d,re)){var xe=d[re];if(xe==null)continue;switch(re){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":Y=xe;break;case"defaultValue":_=xe;break;case"checked":B=xe;break;case"value":S=xe;break;default:On(l,m,re,xe);break}}return B!==null?On(l,m,"checked",B):Y!==null&&On(l,m,"checked",Y),S!==null?On(l,m,"value",S):_!==null&&On(l,m,"value",_),l.push(k),null}function Jr(l,d,m){yt("textarea",d),d.value!==void 0&&d.defaultValue!==void 0&&!ge&&(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"),ge=!0),l.push(Sr("textarea"));var S=null,_=null,B=null;for(var Y in d)if(q.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":B=re;break;case"value":S=re;break;case"defaultValue":_=re;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:On(l,m,Y,re);break}}if(S===null&&_!==null&&(S=_),l.push(_n),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),S!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");ne(B[0]),S=""+B[0]}ne(B),S=""+B}return typeof S=="string"&&S[0]===`
|
|
66
66
|
`&&l.push(qi),S!==null&&(U(S,"value"),l.push(Ir(""+S))),null}function lr(l,d,m,S){l.push(Sr(m));for(var _ in d)if(q.call(d,_)){var B=d[_];if(B==null)continue;switch(_){case"children":case"dangerouslySetInnerHTML":throw new Error(m+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:On(l,S,_,B);break}}return l.push(k),null}function Yi(l,d,m){l.push(Sr("menuitem"));for(var S in d)if(q.call(d,S)){var _=d[S];if(_==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:On(l,m,S,_);break}}return l.push(_n),null}function mi(l,d,m){l.push(Sr("title"));var S=null;for(var _ in d)if(q.call(d,_)){var B=d[_];if(B==null)continue;switch(_){case"children":S=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:On(l,m,_,B);break}}l.push(_n);{var Y=Array.isArray(S)&&S.length<2?S[0]||null:S;Array.isArray(S)&&S.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"):Y!=null&&Y.$$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"):Y!=null&&typeof Y!="string"&&typeof Y!="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 S}function Gi(l,d,m,S){l.push(Sr(m));var _=null,B=null;for(var Y in d)if(q.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":_=re;break;case"dangerouslySetInnerHTML":B=re;break;default:On(l,S,Y,re);break}}return l.push(_n),F(l,B,_),typeof _=="string"?(l.push(Ir(_)),null):_}function Lr(l,d,m,S){l.push(Sr(m));var _=null,B=null;for(var Y in d)if(q.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":_=re;break;case"dangerouslySetInnerHTML":B=re;break;case"style":_i(l,S,re);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Le(Y)&&typeof re!="function"&&typeof re!="symbol"&&l.push(nn,Y,jn,Tn(re),Cn);break}}return l.push(_n),F(l,B,_),_}var qi=`
|
|
67
67
|
`;function Wa(l,d,m,S){l.push(Sr(m));var _=null,B=null;for(var Y in d)if(q.call(d,Y)){var re=d[Y];if(re==null)continue;switch(Y){case"children":_=re;break;case"dangerouslySetInnerHTML":B=re;break;default:On(l,S,Y,re);break}}if(l.push(_n),B!=null){if(_!=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 xe=B.__html;xe!=null&&(typeof xe=="string"&&xe.length>0&&xe[0]===`
|
|
68
68
|
`?l.push(qi,xe):(ne(xe),l.push(""+xe)))}return typeof _=="string"&&_[0]===`
|
|
@@ -101,7 +101,7 @@ Error generating stack: `+S.message+`
|
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the MIT license found in the
|
|
103
103
|
* LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/var b1;function w4(){return b1||(b1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("warn",v,d)}}function i(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("error",v,d)}}function o(v,l,d){{var m=n.ReactDebugCurrentFrame,S=m.getStackAddendum();S!==""&&(l+="%s",d=d.concat([S]));var _=d.map(function(B){return String(B)});_.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,_)}}function a(v){v()}var c=512,f=null,p=0;function y(v){f=new Uint8Array(c),p=0}function g(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),p=0),v.enqueue(l);return}var d=l,m=f.length-p;m<d.length&&(m===0?v.enqueue(f):(f.set(d.subarray(0,m),p),v.enqueue(f),d=d.subarray(m)),f=new Uint8Array(c),p=0),f.set(d,p),p+=d.length}}function T(v,l){return g(v,l),!0}function E(v){f&&p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=null,p=0)}function A(v){v.close()}var I=new TextEncoder;function j(v){return I.encode(v)}function R(v){return I.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function H(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return d}}function ne(v){try{return q(v),!1}catch{return!0}}function q(v){return""+v}function ie(v,l){if(ne(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,H(v)),q(v)}function x(v,l){if(ne(v))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.",l,H(v)),q(v)}function le(v){if(ne(v))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.",H(v)),q(v)}var ae=Object.prototype.hasOwnProperty,$e=0,tt=1,Qe=2,Ye=3,Oe=4,ue=5,ve=6,ke=":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",Le=ke+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",et=new RegExp("^["+ke+"]["+Le+"]*$"),me={},Se={};function je(v){return ae.call(Se,v)?!0:ae.call(me,v)?!1:et.test(v)?(Se[v]=!0,!0):(me[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function Ue(v,l,d,m){if(d!==null&&d.type===$e)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var S=v.toLowerCase().slice(0,5);return S!=="data-"&&S!=="aria-"}default:return!1}}function Ge(v){return Xe.hasOwnProperty(v)?Xe[v]:null}function Ze(v,l,d,m,S,_,B){this.acceptsBooleans=l===Qe||l===Ye||l===Oe,this.attributeName=m,this.attributeNamespace=S,this.mustUseProperty=d,this.propertyName=v,this.type=l,this.sanitizeURL=_,this.removeEmptyString=B}var Xe={},ot=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ot.forEach(function(v){Xe[v]=new Ze(v,$e,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],d=v[1];Xe[l]=new Ze(l,tt,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){Xe[v]=new Ze(v,Qe,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){Xe[v]=new Ze(v,Qe,!1,v,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(v){Xe[v]=new Ze(v,Ye,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){Xe[v]=new Ze(v,Ye,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){Xe[v]=new Ze(v,Oe,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){Xe[v]=new Ze(v,ve,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){Xe[v]=new Ze(v,ue,!1,v.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,pt=function(v){return v[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(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){Xe[v]=new Ze(v,tt,!1,v.toLowerCase(),null,!1,!1)});var ft="xlinkHref";Xe[ft]=new Ze("xlinkHref",tt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){Xe[v]=new Ze(v,tt,!1,v.toLowerCase(),null,!0,!0)});var yt={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 Je(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(v){At.forEach(function(l){yt[Je(l,v)]=yt[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.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`."),l.onChange||l.readOnly||l.disabled||l.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 vr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){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 Hn={"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},Sn={},$i=new RegExp("^(aria)-["+Le+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Le+"]*$");function Jn(v,l){{if(ae.call(Sn,l)&&Sn[l])return!0;if(Dr.test(l)){var d="aria-"+l.slice(4).toLowerCase(),m=Hn.hasOwnProperty(d)?d:null;if(m==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==m)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,m),Sn[l]=!0,!0}if($i.test(l)){var S=l.toLowerCase(),_=Hn.hasOwnProperty(S)?S:null;if(_==null)return Sn[l]=!0,!1;if(l!==_)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,_),Sn[l]=!0,!0}}return!0}function sn(v,l){{var d=[];for(var m in l){var S=Jn(v,m);S||d.push(m)}var _=d.map(function(B){return"`"+B+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,v):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,v)}}function fn(v,l){vr(v,l)||sn(v,l)}var dn=!1;function ut(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.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.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={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"},si=function(){};{var on={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Le+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Le+"]*$");si=function(v,l,d,m){if(ae.call(on,l)&&on[l])return!0;var S=l.toLowerCase();if(S==="onfocusin"||S==="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."),on[l]=!0,!0;if(m!=null){var _=m.registrationNameDependencies,B=m.possibleRegistrationNames;if(_.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(S)?B[S]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),on[l]=!0,!0;if(Vi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Vi.test(l))return Hi.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Ui.test(l)||Pr.test(l))return!0;if(S==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(S==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(S==="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),on[l]=!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.",l),on[l]=!0,!0;var re=Ge(l),xe=re!==null&&re.type===$e;if(Dn.hasOwnProperty(S)){var Ne=Dn[S];if(Ne!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,Ne),on[l]=!0,!0}else if(!xe&&l!==S)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.",l,S),on[l]=!0,!0;return typeof d=="boolean"&&Ue(l,d,re)?(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,l,l,d,l):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,l,l,d,l,l,l),on[l]=!0,!0):xe?!0:Ue(l,d,re)?(on[l]=!0,!1):((d==="false"||d==="true")&&re!==null&&re.type===Ye&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,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".',l,d),on[l]=!0),!0)}}var Nn=function(v,l,d){{var m=[];for(var S in l){var _=si(v,S,l[S],d);_||m.push(S)}var B=m.map(function(Y){return"`"+Y+"`"}).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 ",B,v):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 ",B,v)}};function Or(v,l,d){vr(v,l)||Nn(v,l,d)}var yr=function(){};{var Yr=/^(?:webkit|moz|o)[A-Z]/,Gr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,qr={},Qn={},Wt=!1,ai=!1,Wi=function(v){return v.replace(Ao,function(l,d){return d.toUpperCase()})},Pn=function(v){qr.hasOwnProperty(v)&&qr[v]||(qr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,Wi(v.replace(Gr,"ms-"))))},hn=function(v){qr.hasOwnProperty(v)&&qr[v]||(qr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},li=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},ui=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){ai||(ai=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};yr=function(v,l){v.indexOf("-")>-1?Pn(v):Yr.test(v)?hn(v):Un.test(l)&&li(v,l),typeof l=="number"&&(isNaN(l)?ui(v,l):isFinite(l)||Tn(v,l))}}var so=yr,br=/["'&<>]/;function ci(v){le(v);var l=""+v,d=br.exec(l);if(!d)return l;var m,S="",_,B=0;for(_=d.index;_<l.length;_++){switch(l.charCodeAt(_)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}B!==_&&(S+=l.substring(B,_)),B=_+1,S+=m}return B!==_?S+l.substring(B,_):S}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:ci(v)}var Di=/([A-Z])/g,Ls=/^ms-/;function Fs(v){return v.replace(Di,"-$1").toLowerCase().replace(Ls,"-ms-")}var Xr=/^[\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,ao=!1;function lo(v){!ao&&Xr.test(v)&&(ao=!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(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var _r=R("<script>"),Rr=R("<\/script>"),fi=R('<script src="'),Kr=R('<script type="module" src="'),wr=R('" async=""><\/script>');function Ar(v){return le(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,d,m){return""+l+(d==="s"?"\\u0073":"\\u0053")+m};function Oi(v,l,d,m,S){var _=v===void 0?"":v,B=l===void 0?_r:R('<script nonce="'+an(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,j(Ar(d)),Rr),m!==void 0)for(var re=0;re<m.length;re++)Y.push(fi,j(an(m[re])),wr);if(S!==void 0)for(var xe=0;xe<S.length;xe++)Y.push(Kr,j(an(S[xe])),wr);return{bootstrapChunks:Y,startInlineScript:B,placeholderPrefix:R(_+"P:"),segmentPrefix:R(_+"S:"),boundaryPrefix:_+"B:",idPrefix:_,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Ir=2,Mr=3,di=4,hi=5,xr=6,Zr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function pi(v){var l=v==="http://www.w3.org/2000/svg"?Ir:v==="http://www.w3.org/1998/Math/MathML"?Mr:ar;return Wn(l,null)}function gi(v,l,d){switch(l){case"select":return Wn(yn,d.value!=null?d.value:d.defaultValue);case"svg":return Wn(Ir,null);case"math":return Wn(Mr,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(di,null);case"thead":case"tbody":case"tfoot":return Wn(hi,null);case"colgroup":return Wn(Zr,null);case"tr":return Wn(xr,null)}return v.insertionMode>=di||v.insertionMode===ar?Wn(yn,null):v}var _i=null;function nn(v){var l=v.nextSuspenseID++;return R(v.boundaryPrefix+l.toString(16))}function jn(v,l,d){var m=v.idPrefix,S=":"+m+"R"+l;return d>0&&(S+="H"+d.toString(32)),S+":"}function Cn(v){return an(v)}var uo=R("<!-- -->");function On(v,l,d,m){return l===""?m:(m&&v.push(uo),v.push(j(Cn(l))),!0)}function _n(v,l,d,m){d&&m&&v.push(uo)}var k=new Map;function F(v){var l=k.get(v);if(l!==void 0)return l;var d=R(an(Fs(v)));return k.set(v,d),d}var G=R(' style="'),ee=R(":"),Ee=R(";");function ge(v,l,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 S in d)if(ae.call(d,S)){var _=d[S];if(!(_==null||typeof _=="boolean"||_==="")){var B=void 0,Y=void 0,re=S.indexOf("--")===0;re?(B=j(an(S)),x(_,S),Y=j(an((""+_).trim()))):(so(S,_),B=F(S),typeof _=="number"?_!==0&&!ae.call(yt,S)?Y=j(_+"px"):Y=j(""+_):(x(_,S),Y=j(an((""+_).trim())))),m?(m=!1,v.push(G,B,ee,Y)):v.push(Ee,B,ee,Y)}}m||v.push(gt)}var Re=R(" "),qe=R('="'),gt=R('"'),mt=R('=""');function dt(v,l,d,m){switch(d){case"style":{ge(v,l,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 S=Ge(d);if(S!==null){switch(typeof m){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}var _=S.attributeName,B=j(_);switch(S.type){case Ye:m&&v.push(Re,B,mt);return;case Oe:m===!0?v.push(Re,B,mt):m===!1||v.push(Re,B,qe,j(an(m)),gt);return;case ue:isNaN(m)||v.push(Re,B,qe,j(an(m)),gt);break;case ve:!isNaN(m)&&m>=1&&v.push(Re,B,qe,j(an(m)),gt);break;default:S.sanitizeURL&&(ie(m,_),m=""+m,lo(m)),v.push(Re,B,qe,j(an(m)),gt)}}else if(je(d)){switch(typeof m){case"function":case"symbol":return;case"boolean":{var Y=d.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-")return}}v.push(Re,j(d),qe,j(an(m)),gt)}}}var Ft=R(">"),Bn=R("/>");function zn(v,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))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=l.__html;m!=null&&(le(m),v.push(j(""+m)))}}var En=!1,Jr=!1,lr=!1,Yi=!1,mi=!1,Gi=!1,Lr=!1;function qi(v,l){{var d=v[l];if(d!=null){var m=er(d);v.multiple&&!m?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&m&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Wa(v,l,d){Vn("select",l),qi(l,"value"),qi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(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"),lr=!0),v.push(ur("select"));var m=null,S=null;for(var _ in l)if(ae.call(l,_)){var B=l[_];if(B==null)continue;switch(_){case"children":m=B;break;case"dangerouslySetInnerHTML":S=B;break;case"defaultValue":case"value":break;default:dt(v,d,_,B);break}}return v.push(Ft),zn(v,S,m),m}function Ns(v){var l="";return t.Children.forEach(v,function(d){d!=null&&(l+=d,!mi&&typeof d!="string"&&typeof d!="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>.")))}),l}var ts=R(' selected=""');function Sr(v,l,d,m){var S=m.selectedValue;v.push(ur("option"));var _=null,B=null,Y=null,re=null;for(var xe in l)if(ae.call(l,xe)){var Ne=l[xe];if(Ne==null)continue;switch(xe){case"children":_=Ne;break;case"selected":Y=Ne,Lr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Lr=!0);break;case"dangerouslySetInnerHTML":re=Ne;break;case"value":B=Ne;default:dt(v,d,xe,Ne);break}}if(S!=null){var ze;if(B!==null?(ie(B,"value"),ze=""+B):(re!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ze=Ns(_)),er(S))for(var nt=0;nt<S.length;nt++){ie(S[nt],"value");var xt=""+S[nt];if(xt===ze){v.push(ts);break}}else ie(S,"select.value"),""+S===ze&&v.push(ts)}else Y&&v.push(ts);return v.push(Ft),zn(v,re,_),_}function za(v,l,d){Vn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Jr&&(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",l.type),Jr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!En&&(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",l.type),En=!0),v.push(ur("input"));var m=null,S=null,_=null,B=null;for(var Y in l)if(ae.call(l,Y)){var re=l[Y];if(re==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=re;break;case"defaultValue":S=re;break;case"checked":_=re;break;case"value":m=re;break;default:dt(v,d,Y,re);break}}return _!==null?dt(v,d,"checked",_):B!==null&&dt(v,d,"checked",B),m!==null?dt(v,d,"value",m):S!==null&&dt(v,d,"value",S),v.push(Bn),null}function vi(v,l,d){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Yi&&(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"),Yi=!0),v.push(ur("textarea"));var m=null,S=null,_=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":_=Y;break;case"value":m=Y;break;case"defaultValue":S=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:dt(v,d,B,Y);break}}if(m===null&&S!==null&&(m=S),v.push(Ft),_!=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(er(_)){if(_.length>1)throw new Error("<textarea> can only have at most one child.");le(_[0]),m=""+_[0]}le(_),m=""+_}return typeof m=="string"&&m[0]===`
|
|
104
|
+
*/var b1;function x4(){return b1||(b1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("warn",v,d)}}function i(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("error",v,d)}}function o(v,l,d){{var m=n.ReactDebugCurrentFrame,S=m.getStackAddendum();S!==""&&(l+="%s",d=d.concat([S]));var _=d.map(function(B){return String(B)});_.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,_)}}function a(v){v()}var c=512,f=null,p=0;function y(v){f=new Uint8Array(c),p=0}function g(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),p=0),v.enqueue(l);return}var d=l,m=f.length-p;m<d.length&&(m===0?v.enqueue(f):(f.set(d.subarray(0,m),p),v.enqueue(f),d=d.subarray(m)),f=new Uint8Array(c),p=0),f.set(d,p),p+=d.length}}function T(v,l){return g(v,l),!0}function E(v){f&&p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=null,p=0)}function A(v){v.close()}var I=new TextEncoder;function j(v){return I.encode(v)}function R(v){return I.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function H(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return d}}function ne(v){try{return q(v),!1}catch{return!0}}function q(v){return""+v}function ie(v,l){if(ne(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,H(v)),q(v)}function x(v,l){if(ne(v))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.",l,H(v)),q(v)}function le(v){if(ne(v))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.",H(v)),q(v)}var ae=Object.prototype.hasOwnProperty,$e=0,tt=1,Qe=2,Ye=3,Oe=4,ue=5,ve=6,ke=":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",Le=ke+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",et=new RegExp("^["+ke+"]["+Le+"]*$"),me={},Se={};function je(v){return ae.call(Se,v)?!0:ae.call(me,v)?!1:et.test(v)?(Se[v]=!0,!0):(me[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function Ue(v,l,d,m){if(d!==null&&d.type===$e)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var S=v.toLowerCase().slice(0,5);return S!=="data-"&&S!=="aria-"}default:return!1}}function Ge(v){return Xe.hasOwnProperty(v)?Xe[v]:null}function Ze(v,l,d,m,S,_,B){this.acceptsBooleans=l===Qe||l===Ye||l===Oe,this.attributeName=m,this.attributeNamespace=S,this.mustUseProperty=d,this.propertyName=v,this.type=l,this.sanitizeURL=_,this.removeEmptyString=B}var Xe={},ot=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ot.forEach(function(v){Xe[v]=new Ze(v,$e,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],d=v[1];Xe[l]=new Ze(l,tt,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){Xe[v]=new Ze(v,Qe,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){Xe[v]=new Ze(v,Qe,!1,v,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(v){Xe[v]=new Ze(v,Ye,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){Xe[v]=new Ze(v,Ye,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){Xe[v]=new Ze(v,Oe,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){Xe[v]=new Ze(v,ve,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){Xe[v]=new Ze(v,ue,!1,v.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,pt=function(v){return v[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(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ct,pt);Xe[l]=new Ze(l,tt,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){Xe[v]=new Ze(v,tt,!1,v.toLowerCase(),null,!1,!1)});var ft="xlinkHref";Xe[ft]=new Ze("xlinkHref",tt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){Xe[v]=new Ze(v,tt,!1,v.toLowerCase(),null,!0,!0)});var yt={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 Je(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(v){At.forEach(function(l){yt[Je(l,v)]=yt[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.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`."),l.onChange||l.readOnly||l.disabled||l.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 vr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){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 Hn={"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},Sn={},$i=new RegExp("^(aria)-["+Le+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Le+"]*$");function Jn(v,l){{if(ae.call(Sn,l)&&Sn[l])return!0;if(Dr.test(l)){var d="aria-"+l.slice(4).toLowerCase(),m=Hn.hasOwnProperty(d)?d:null;if(m==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==m)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,m),Sn[l]=!0,!0}if($i.test(l)){var S=l.toLowerCase(),_=Hn.hasOwnProperty(S)?S:null;if(_==null)return Sn[l]=!0,!1;if(l!==_)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,_),Sn[l]=!0,!0}}return!0}function sn(v,l){{var d=[];for(var m in l){var S=Jn(v,m);S||d.push(m)}var _=d.map(function(B){return"`"+B+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,v):d.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,v)}}function fn(v,l){vr(v,l)||sn(v,l)}var dn=!1;function ut(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.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.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={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"},si=function(){};{var on={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Le+"]*$"),Pr=new RegExp("^(aria)[A-Z]["+Le+"]*$");si=function(v,l,d,m){if(ae.call(on,l)&&on[l])return!0;var S=l.toLowerCase();if(S==="onfocusin"||S==="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."),on[l]=!0,!0;if(m!=null){var _=m.registrationNameDependencies,B=m.possibleRegistrationNames;if(_.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(S)?B[S]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),on[l]=!0,!0;if(Vi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Vi.test(l))return Hi.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Ui.test(l)||Pr.test(l))return!0;if(S==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(S==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(S==="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),on[l]=!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.",l),on[l]=!0,!0;var re=Ge(l),xe=re!==null&&re.type===$e;if(Dn.hasOwnProperty(S)){var Ne=Dn[S];if(Ne!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,Ne),on[l]=!0,!0}else if(!xe&&l!==S)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.",l,S),on[l]=!0,!0;return typeof d=="boolean"&&Ue(l,d,re)?(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,l,l,d,l):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,l,l,d,l,l,l),on[l]=!0,!0):xe?!0:Ue(l,d,re)?(on[l]=!0,!1):((d==="false"||d==="true")&&re!==null&&re.type===Ye&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,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".',l,d),on[l]=!0),!0)}}var Nn=function(v,l,d){{var m=[];for(var S in l){var _=si(v,S,l[S],d);_||m.push(S)}var B=m.map(function(Y){return"`"+Y+"`"}).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 ",B,v):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 ",B,v)}};function Or(v,l,d){vr(v,l)||Nn(v,l,d)}var yr=function(){};{var Yr=/^(?:webkit|moz|o)[A-Z]/,Gr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,qr={},Qn={},Wt=!1,ai=!1,Wi=function(v){return v.replace(Ao,function(l,d){return d.toUpperCase()})},Pn=function(v){qr.hasOwnProperty(v)&&qr[v]||(qr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,Wi(v.replace(Gr,"ms-"))))},hn=function(v){qr.hasOwnProperty(v)&&qr[v]||(qr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},li=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},ui=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){ai||(ai=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};yr=function(v,l){v.indexOf("-")>-1?Pn(v):Yr.test(v)?hn(v):Un.test(l)&&li(v,l),typeof l=="number"&&(isNaN(l)?ui(v,l):isFinite(l)||Tn(v,l))}}var so=yr,br=/["'&<>]/;function ci(v){le(v);var l=""+v,d=br.exec(l);if(!d)return l;var m,S="",_,B=0;for(_=d.index;_<l.length;_++){switch(l.charCodeAt(_)){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;default:continue}B!==_&&(S+=l.substring(B,_)),B=_+1,S+=m}return B!==_?S+l.substring(B,_):S}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:ci(v)}var Di=/([A-Z])/g,Ls=/^ms-/;function Fs(v){return v.replace(Di,"-$1").toLowerCase().replace(Ls,"-ms-")}var Xr=/^[\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,ao=!1;function lo(v){!ao&&Xr.test(v)&&(ao=!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(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var _r=R("<script>"),Rr=R("<\/script>"),fi=R('<script src="'),Kr=R('<script type="module" src="'),wr=R('" async=""><\/script>');function Ar(v){return le(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,d,m){return""+l+(d==="s"?"\\u0073":"\\u0053")+m};function Oi(v,l,d,m,S){var _=v===void 0?"":v,B=l===void 0?_r:R('<script nonce="'+an(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,j(Ar(d)),Rr),m!==void 0)for(var re=0;re<m.length;re++)Y.push(fi,j(an(m[re])),wr);if(S!==void 0)for(var xe=0;xe<S.length;xe++)Y.push(Kr,j(an(S[xe])),wr);return{bootstrapChunks:Y,startInlineScript:B,placeholderPrefix:R(_+"P:"),segmentPrefix:R(_+"S:"),boundaryPrefix:_+"B:",idPrefix:_,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Ir=2,Mr=3,di=4,hi=5,xr=6,Zr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function pi(v){var l=v==="http://www.w3.org/2000/svg"?Ir:v==="http://www.w3.org/1998/Math/MathML"?Mr:ar;return Wn(l,null)}function gi(v,l,d){switch(l){case"select":return Wn(yn,d.value!=null?d.value:d.defaultValue);case"svg":return Wn(Ir,null);case"math":return Wn(Mr,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(di,null);case"thead":case"tbody":case"tfoot":return Wn(hi,null);case"colgroup":return Wn(Zr,null);case"tr":return Wn(xr,null)}return v.insertionMode>=di||v.insertionMode===ar?Wn(yn,null):v}var _i=null;function nn(v){var l=v.nextSuspenseID++;return R(v.boundaryPrefix+l.toString(16))}function jn(v,l,d){var m=v.idPrefix,S=":"+m+"R"+l;return d>0&&(S+="H"+d.toString(32)),S+":"}function Cn(v){return an(v)}var uo=R("<!-- -->");function On(v,l,d,m){return l===""?m:(m&&v.push(uo),v.push(j(Cn(l))),!0)}function _n(v,l,d,m){d&&m&&v.push(uo)}var k=new Map;function F(v){var l=k.get(v);if(l!==void 0)return l;var d=R(an(Fs(v)));return k.set(v,d),d}var G=R(' style="'),ee=R(":"),Ee=R(";");function ge(v,l,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 S in d)if(ae.call(d,S)){var _=d[S];if(!(_==null||typeof _=="boolean"||_==="")){var B=void 0,Y=void 0,re=S.indexOf("--")===0;re?(B=j(an(S)),x(_,S),Y=j(an((""+_).trim()))):(so(S,_),B=F(S),typeof _=="number"?_!==0&&!ae.call(yt,S)?Y=j(_+"px"):Y=j(""+_):(x(_,S),Y=j(an((""+_).trim())))),m?(m=!1,v.push(G,B,ee,Y)):v.push(Ee,B,ee,Y)}}m||v.push(gt)}var Re=R(" "),qe=R('="'),gt=R('"'),mt=R('=""');function dt(v,l,d,m){switch(d){case"style":{ge(v,l,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 S=Ge(d);if(S!==null){switch(typeof m){case"function":case"symbol":return;case"boolean":if(!S.acceptsBooleans)return}var _=S.attributeName,B=j(_);switch(S.type){case Ye:m&&v.push(Re,B,mt);return;case Oe:m===!0?v.push(Re,B,mt):m===!1||v.push(Re,B,qe,j(an(m)),gt);return;case ue:isNaN(m)||v.push(Re,B,qe,j(an(m)),gt);break;case ve:!isNaN(m)&&m>=1&&v.push(Re,B,qe,j(an(m)),gt);break;default:S.sanitizeURL&&(ie(m,_),m=""+m,lo(m)),v.push(Re,B,qe,j(an(m)),gt)}}else if(je(d)){switch(typeof m){case"function":case"symbol":return;case"boolean":{var Y=d.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-")return}}v.push(Re,j(d),qe,j(an(m)),gt)}}}var Ft=R(">"),Bn=R("/>");function zn(v,l,d){if(l!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))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=l.__html;m!=null&&(le(m),v.push(j(""+m)))}}var En=!1,Jr=!1,lr=!1,Yi=!1,mi=!1,Gi=!1,Lr=!1;function qi(v,l){{var d=v[l];if(d!=null){var m=er(d);v.multiple&&!m?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&m&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Wa(v,l,d){Vn("select",l),qi(l,"value"),qi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(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"),lr=!0),v.push(ur("select"));var m=null,S=null;for(var _ in l)if(ae.call(l,_)){var B=l[_];if(B==null)continue;switch(_){case"children":m=B;break;case"dangerouslySetInnerHTML":S=B;break;case"defaultValue":case"value":break;default:dt(v,d,_,B);break}}return v.push(Ft),zn(v,S,m),m}function Ns(v){var l="";return t.Children.forEach(v,function(d){d!=null&&(l+=d,!mi&&typeof d!="string"&&typeof d!="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>.")))}),l}var ts=R(' selected=""');function Sr(v,l,d,m){var S=m.selectedValue;v.push(ur("option"));var _=null,B=null,Y=null,re=null;for(var xe in l)if(ae.call(l,xe)){var Ne=l[xe];if(Ne==null)continue;switch(xe){case"children":_=Ne;break;case"selected":Y=Ne,Lr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Lr=!0);break;case"dangerouslySetInnerHTML":re=Ne;break;case"value":B=Ne;default:dt(v,d,xe,Ne);break}}if(S!=null){var ze;if(B!==null?(ie(B,"value"),ze=""+B):(re!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ze=Ns(_)),er(S))for(var nt=0;nt<S.length;nt++){ie(S[nt],"value");var xt=""+S[nt];if(xt===ze){v.push(ts);break}}else ie(S,"select.value"),""+S===ze&&v.push(ts)}else Y&&v.push(ts);return v.push(Ft),zn(v,re,_),_}function za(v,l,d){Vn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Jr&&(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",l.type),Jr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!En&&(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",l.type),En=!0),v.push(ur("input"));var m=null,S=null,_=null,B=null;for(var Y in l)if(ae.call(l,Y)){var re=l[Y];if(re==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=re;break;case"defaultValue":S=re;break;case"checked":_=re;break;case"value":m=re;break;default:dt(v,d,Y,re);break}}return _!==null?dt(v,d,"checked",_):B!==null&&dt(v,d,"checked",B),m!==null?dt(v,d,"value",m):S!==null&&dt(v,d,"value",S),v.push(Bn),null}function vi(v,l,d){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Yi&&(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"),Yi=!0),v.push(ur("textarea"));var m=null,S=null,_=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":_=Y;break;case"value":m=Y;break;case"defaultValue":S=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:dt(v,d,B,Y);break}}if(m===null&&S!==null&&(m=S),v.push(Ft),_!=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(er(_)){if(_.length>1)throw new Error("<textarea> can only have at most one child.");le(_[0]),m=""+_[0]}le(_),m=""+_}return typeof m=="string"&&m[0]===`
|
|
105
105
|
`&&v.push(Ri),m!==null&&(ie(m,"value"),v.push(j(Cn(""+m)))),null}function js(v,l,d,m){v.push(ur(d));for(var S in l)if(ae.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(v,m,S,_);break}}return v.push(Bn),null}function ns(v,l,d){v.push(ur("menuitem"));for(var m in l)if(ae.call(l,m)){var S=l[m];if(S==null)continue;switch(m){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:dt(v,d,m,S);break}}return v.push(Ft),null}function rn(v,l,d){v.push(ur("title"));var m=null;for(var S in l)if(ae.call(l,S)){var _=l[S];if(_==null)continue;switch(S){case"children":m=_;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:dt(v,d,S,_);break}}v.push(Ft);{var B=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"):B!=null&&B.$$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"):B!=null&&typeof B!="string"&&typeof B!="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 Gt(v,l,d,m){v.push(ur(d));var S=null,_=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":_=Y;break;default:dt(v,m,B,Y);break}}return v.push(Ft),zn(v,_,S),typeof S=="string"?(v.push(j(Cn(S))),null):S}function Kt(v,l,d,m){v.push(ur(d));var S=null,_=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":_=Y;break;case"style":ge(v,m,Y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:je(B)&&typeof Y!="function"&&typeof Y!="symbol"&&v.push(Re,j(B),qe,j(an(Y)),gt);break}}return v.push(Ft),zn(v,_,S),S}var Ri=R(`
|
|
106
106
|
`);function Qr(v,l,d,m){v.push(ur(d));var S=null,_=null;for(var B in l)if(ae.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":S=Y;break;case"dangerouslySetInnerHTML":_=Y;break;default:dt(v,m,B,Y);break}}if(v.push(Ft),_!=null){if(S!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof _!="object"||!("__html"in _))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 re=_.__html;re!=null&&(typeof re=="string"&&re.length>0&&re[0]===`
|
|
107
107
|
`?v.push(Ri,j(re)):(le(re),v.push(j(""+re))))}return typeof S=="string"&&S[0]===`
|
|
@@ -132,8 +132,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
132
132
|
Previous: %s
|
|
133
133
|
Incoming: %s`,Ki,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<v.length;d++)if(!qt(v[d],l[d]))return!1;return!0}function Vu(){if(So>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Si(){return Zt===null?zs===null?(fs=!1,zs=Zt=Vu()):(fs=!0,Zt=zs):Zt.next===null?(fs=!1,Zt=Zt.next=Vu()):(fs=!0,Zt=Zt.next),Zt}function Hu(v,l){wi=l,Ta=v,Vr=!1,ni=0}function Gs(v,l,d,m){for(;nl;)nl=!1,ni=0,So+=1,Zt=null,d=v(l,m);return Uu(),d}function Hr(){var v=ni!==0;return v}function Uu(){Vr=!1,wi=null,Ta=null,nl=!1,zs=null,So=0,xi=null,Zt=null}function Wu(v){return Vr&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Sa(v)}function zu(v){return Ki="useContext",Ys(),Sa(v)}function qs(v,l){return typeof l=="function"?l(v):l}function ds(v){return Ki="useState",Yu(qs,v)}function Yu(v,l,d){if(v!==qs&&(Ki="useReducer"),wi=Ys(),Zt=Si(),fs){var m=Zt.queue,S=m.dispatch;if(xi!==null){var _=xi.get(m);if(_!==void 0){xi.delete(m);var B=Zt.memoizedState,Y=_;do{var re=Y.action;Vr=!0,B=v(B,re),Vr=!1,Y=Y.next}while(Y!==null);return Zt.memoizedState=B,[B,S]}}return[Zt.memoizedState,S]}else{Vr=!0;var xe;v===qs?xe=typeof l=="function"?l():l:xe=d!==void 0?d(l):l,Vr=!1,Zt.memoizedState=xe;var Ne=Zt.queue={last:null,dispatch:null},ze=Ne.dispatch=Hc.bind(null,wi,Ne);return[Zt.memoizedState,ze]}}function Vc(v,l){wi=Ys(),Zt=Si();var d=l===void 0?null:l;if(Zt!==null){var m=Zt.memoizedState;if(m!==null&&d!==null){var S=m[1];if($c(d,S))return m[0]}}Vr=!0;var _=v();return Vr=!1,Zt.memoizedState=[_,d],_}function Vl(v){wi=Ys(),Zt=Si();var l=Zt.memoizedState;if(l===null){var d={current:v};return Object.seal(d),Zt.memoizedState=d,d}else return l}function qf(v,l){Ki="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 Hc(v,l,d){if(So>=$u)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===wi){nl=!0;var m={action:d,next:null};xi===null&&(xi=new Map);var S=xi.get(l);if(S===void 0)xi.set(l,m);else{for(var _=S;_.next!==null;)_=_.next;_.next=m}}}function fr(v,l){return Vc(function(){return v},l)}function Gu(v,l,d){return Ys(),l(v._source)}function Uc(v,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Ti(v){return Ys(),v}function Hl(){throw new Error("startTransition cannot be called during server rendering.")}function Ca(){return Ys(),[!1,Hl]}function hs(){var v=Ta,l=Ho(v.treeContext),d=Xs;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var m=ni++;return jn(d,l,m)}function rl(){}var rr={readContext:Wu,useContext:zu,useMemo:Vc,useReducer:Yu,useRef:Vl,useState:ds,useInsertionEffect:rl,useLayoutEffect:qf,useCallback:fr,useImperativeHandle:rl,useEffect:rl,useDebugValue:rl,useDeferredValue:Ti,useTransition:Ca,useId:hs,useMutableSource:Gu,useSyncExternalStore:Uc},Xs=null;function Ul(v){Xs=v}function Ea(v){try{var l="",d=v;do{switch(d.tag){case 0:l+=Xi(d.type,null,null);break;case 1:l+=va(d.type,null,null);break;case 2:l+=Mc(d.type,null,null);break}d=d.parent}while(d);return l}catch(m){return`
|
|
134
134
|
Error generating stack: `+m.message+`
|
|
135
|
-
`+m.stack}}var Wl=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,zl=0,To=1,Yl=2,Ks=3,Wc=4,il=0,Da=1,Pa=2,qu=12800;function zc(v){return console.error(v),null}function Zs(){}function Gl(v,l,d,m,S,_,B,Y,re){var xe=[],Ne=new Set,ze={destination:null,responseState:l,progressiveChunkSize:m===void 0?qu:m,status:il,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ne,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?zc:S,onAllReady:_===void 0?Zs:_,onShellReady:B===void 0?Zs:B,onShellError:Y===void 0?Zs:Y,onFatalError:re===void 0?Zs:re},nt=ol(ze,0,null,d,!1,!1);nt.parentFlushed=!0;var xt=Wo(ze,v,null,nt,Ne,Gn,Fl,Wf);return xe.push(xt),ze}function Uo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return tc(v)})}function ql(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,d,m,S,_,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Uo(v,re)},blockedBoundary:d,blockedSegment:m,abortSet:S,legacyContext:_,context:B,treeContext:Y};return re.componentStack=null,S.add(re),re}function ol(v,l,d,m,S,_){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:S,textEmbedded:_}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ea(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function sl(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ps(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Oa=null;function Xl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Oa||Ji();Oa=null,v.errorMessage=d,v.errorComponentStack=m}}function al(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function _a(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=Pa,U(v.destination,l)):(v.status=Da,v.fatalError=l)}function Yc(v,l,d){Co(l,"Suspense");var m=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,B=d.children,Y=new Set,re=ql(v,Y),xe=S.chunks.length,Ne=ol(v,xe,re,S.formatContext,!1,!1);S.children.push(Ne),S.lastPushedText=!1;var ze=ol(v,0,null,S.formatContext,!1,!1);ze.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=ze;try{if(Ci(v,l,B),_n(ze.chunks,v.responseState,ze.lastPushedText,ze.textEmbedded),ze.status=To,vs(re,ze),re.pendingTasks===0){Qi(l);return}}catch(xt){ze.status=Wc,re.forceClientRender=!0,re.errorDigest=al(v,xt),Xl(re,xt)}finally{l.blockedBoundary=m,l.blockedSegment=S}var nt=Wo(v,_,m,Ne,Y,l.legacyContext,l.context,l.treeContext);nt.componentStack=l.componentStack,v.pingedTasks.push(nt),Qi(l)}function Xu(v,l,d,m){Co(l,d);var S=l.blockedSegment,_=co(S.chunks,d,m,v.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,m),Ci(v,l,_),S.formatContext=B,Mo(S.chunks,d),S.lastPushedText=!1,Qi(l)}function Ku(v){return v.prototype&&v.prototype.isReactComponent}function Js(v,l,d,m,S){var _={};Hu(l,_);var B=d(m,S);return Gs(d,m,B,S)}function Zu(v,l,d,m,S){var _=d.render();d.props!==S&&(Zl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),Zl=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Mu(d,m,Y,B);l.legacyContext=re,dr(v,l,_),l.legacyContext=Y;return}}dr(v,l,_)}function Kl(v,l,d,m){ps(l,d);var S=ss(d,l.legacyContext),_=xo(d,m,S);tl(_,d,m,S),Zu(v,l,_,d,m),Qi(l)}var Bt={},ll={},Ju={},Qs={},Zl=!1,Gc={},qc=!1,ri=!1,Xc=!1;function Jl(v,l,d,m){var S;if(S=ss(d,l.legacyContext),sl(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=pn(d)||"Unknown";Bt[_]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),Bt[_]=!0)}var B=Js(v,l,d,m,S),Y=Hr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=pn(d)||"Unknown";ll[re]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),ll[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var xe=pn(d)||"Unknown";ll[xe]||(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.",xe,xe,xe),ll[xe]=!0)}tl(B,d,m,S),Zu(v,l,B,d,m)}else if(Qu(d),Y){var Ne=l.treeContext,ze=1,nt=0;l.treeContext=ju(Ne,ze,nt);try{dr(v,l,B)}finally{l.treeContext=Ne}}else dr(v,l,B);Qi(l)}function Qu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Gc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Gc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Qs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Qs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Ju[m]||(i("%s: Function components do not support contextType.",m),Ju[m]=!0)}}}function ec(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var S in m)d[S]===void 0&&(d[S]=m[S]);return d}return l}function Kc(v,l,d,m,S){sl(l,d.render);var _=Js(v,l,d.render,m,S),B=Hr();if(B){var Y=l.treeContext,re=1,xe=0;l.treeContext=ju(Y,re,xe);try{dr(v,l,_)}finally{l.treeContext=Y}}else dr(v,l,_);Qi(l)}function Ur(v,l,d,m,S){var _=d.type,B=ec(_,m);ea(v,l,_,B,S)}function gs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(Xc||(Xc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=m.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Sa(d),B=S(_);dr(v,l,B)}function Wr(v,l,d,m){var S=d._context,_=m.value,B=m.children,Y;Y=l.context,l.context=Lu(S,_),dr(v,l,B),l.context=$f(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zc(v,l,d,m,S){Co(l,"Lazy");var _=d._payload,B=d._init,Y=B(_),re=ec(Y,m);ea(v,l,Y,re,S),Qi(l)}function ea(v,l,d,m,S){if(typeof d=="function")if(Ku(d)){Kl(v,l,d,m);return}else{Jl(v,l,d,m);return}if(typeof d=="string"){Xu(v,l,d,m);return}switch(d){case Yn:case Vt:case Z:case fe:case De:{dr(v,l,m.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,m.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Yc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Fe:{Kc(v,l,d,m,S);return}case rt:{Ur(v,l,d,m,S);return}case ce:{Wr(v,l,d,m);return}case Ie:{gs(v,l,d,m);return}case It:{Zc(v,l,d,m);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function Jc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(qc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qc=!0),v.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(v,l,d){try{return Qc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Oa=Oa!==null?Oa:Ji()),m}}function Qc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case de:{var m=d,S=m.type,_=m.props,B=m.ref;ea(v,l,S,_,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Y=d,re=Y._payload,xe=Y._init,Ne;try{Ne=xe(re)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,Ne);return}}if(er(d)){Ql(v,l,d);return}var ze=Br(d);if(ze){Jc(d,ze);var nt=ze.call(d);if(nt){var xt=nt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=nt.next();while(!xt.done);Ql(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,Eo.lastPushedText);return}if(typeof d=="number"){var ys=l.blockedSegment;ys.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,ys.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ql(v,l,d){for(var m=d.length,S=0;S<m;S++){var _=l.treeContext;l.treeContext=ju(_,m,S);try{Ci(v,l,d[S])}finally{l.treeContext=_}}}function eu(v,l,d){var m=l.blockedSegment,S=m.chunks.length,_=ol(v,S,null,m.formatContext,m.lastPushedText,!0);m.children.push(_),m.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(v,l,d){var m=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if(Uu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){eu(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,us(_),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,us(_),l.componentStack=B,Y}}function ef(v,l,d,m){var S=al(v,m);if(l===null?_a(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Xl(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function ms(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=Ks,ta(l,d,m)}function tu(v,l,d){var m=v.blockedBoundary,S=v.blockedSegment;if(S.status=Ks,m===null)l.allPendingTasks--,l.status!==Pa&&(l.status=Pa,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.errorDigest=l.onError(_);{var B="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=B+_.message:_=B+String(_);var Y=Zi;Zi=v;try{Xl(m,_)}finally{Zi=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(xe){return tu(xe,l,d)}),m.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function vs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===To&&vs(v,d)}else{var m=v.completedSegments;m.push(l)}}function ta(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Zs;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===To&&vs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ms,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===To){vs(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function Xf(v,l){var d=l.blockedSegment;if(d.status===zl){us(l.context);var m=null;m=Zi,Zi=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=To,ta(v,l.blockedBoundary,d)}catch(_){if(Uu(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Wc,ef(v,l.blockedBoundary,d,_)}finally{Zi=m}}}function tc(v){if(v.status!==Pa){var l=Fc(),d=Wl.current;Wl.current=rr;var m;m=ka.getCurrentStack,ka.getCurrentStack=Ji;var S=Xs;Ul(v.responseState);try{var _=v.pingedTasks,B;for(B=0;B<_.length;B++){var Y=_[B];Xf(v,Y)}_.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(re){al(v,re),_a(v,re)}finally{Ul(S),Wl.current=d,ka.getCurrentStack=m,d===rr&&us(l)}}}function ul(v,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case To:{d.status=Yl;for(var S=!0,_=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var xe=Y[re];B<xe.index;B++)g(l,_[B]);S=cl(v,l,xe)}for(;B<_.length-1;B++)g(l,_[B]);return B<_.length&&(S=T(l,_[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cl(v,l,d){var m=d.boundary;if(m===null)return ul(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return Be(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),ul(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var S=m.id=nn(v.responseState);return Te(l,v.responseState,S),ul(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),Te(l,v.responseState,m.id),ul(v,l,d),Tt(l,v.responseState);Ae(l,v.responseState);var _=m.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=_[0];return cl(v,l,B),it(l,v.responseState)}}function nc(v,l,d){return Al(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),cl(v,l,d),vt(l,d.formatContext)}function rc(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];zr(v,l,d,_)}return m.length=0,mo(l,v.responseState,d.id,d.rootSegmentID)}function tf(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];if(!zr(v,l,d,_))return S++,m.splice(0,S),!1}return m.splice(0,S),!0}function zr(v,l,d,m){if(m.status===Yl)return!0;var S=m.id;if(S===-1){var _=m.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(v,l,m)}else return nu(v,l,m),Ya(l,v.responseState,S)}function Ii(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(cl(v,l,d),v.completedRootSegment=null,bi(l,v.responseState));var m=v.clientRenderedBoundaries,S;for(S=0;S<m.length;S++){var _=m[S];nc(v,l,_)}m.splice(0,S);var B=v.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];rc(v,l,Y)}B.splice(0,S),E(l),y(l);var re=v.partialBoundaries;for(S=0;S<re.length;S++){var xe=re[S];if(!tf(v,l,xe)){v.destination=null,S++,re.splice(0,S);return}}re.splice(0,S);var Ne=v.completedBoundaries;for(S=0;S<Ne.length;S++){var ze=Ne[S];rc(v,l,ze)}Ne.splice(0,S)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function nf(v){a(function(){return tc(v)})}function Kf(v,l){if(v.status===Da){v.status=Pa,U(l,v.fatalError);return}if(v.status!==Pa&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(d){al(v,d),_a(v,d)}}}function fl(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return tu(m,v,l)}),d.clear(),v.destination!==null&&Ii(v,v.destination)}catch(m){al(v,m),_a(v,m)}}function Ra(v,l){return new Promise(function(d,m){var S,_,B=new Promise(function(nt,xt){_=nt,S=xt});function Y(){var nt=new ReadableStream({type:"bytes",pull:function(xt){Kf(xe,xt)},cancel:function(xt){fl(xe)}},{highWaterMark:0});nt.allReady=B,d(nt)}function re(nt){B.catch(function(){}),m(nt)}var xe=Gl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,_,Y,re,S);if(l&&l.signal){var Ne=l.signal,ze=function(){fl(xe,Ne.reason),Ne.removeEventListener("abort",ze)};Ne.addEventListener("abort",ze)}nf(xe)})}Ih.renderToReadableStream=Ra,Ih.version=e}()),Ih}var Dc,Ev;process.env.NODE_ENV==="production"?(Dc=v4(),Ev=y4()):(Dc=b4(),Ev=w4());Dc.version;var x4=Dc.renderToString;Dc.renderToStaticMarkup;Dc.renderToNodeStream;Dc.renderToStaticNodeStream;Ev.renderToReadableStream;var S4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RD(t,e){return t(e={exports:{}},e.exports),e.exports}var T4=RD(function(t){(function(e){var n=function(j,R,U){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var H,ne=0,q=0;if(p(R))for(H=[],q=R.length;ne<q;ne++)H.push(n(j,R[ne],U));else for(var ie in H={},R)Object.prototype.hasOwnProperty.call(R,ie)&&(H[j(ie,U)]=n(j,R[ie],U));return H},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var R=r(j);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(j,R){return function(U,H){var ne=(H=H||{}).separator||"_",q=H.split||/(?=[A-Z])/;return U.split(q).join(ne)}(j,R).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},y=function(j){return a.call(j)=="[object Date]"},g=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?j:function(H,ne){return U(H,j,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,R){return n(A(r,R),j)},decamelizeKeys:function(j,R){return n(A(o,R),j,R)},pascalizeKeys:function(j,R){return n(A(i,R),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(S4)}).decamelize,C4=function(t){if(Array.isArray(t))return t},E4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},w1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},k4=function(t,e){if(t){if(typeof t=="string")return w1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w1(t,e):void 0}},D4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
136
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},P4=function(t,e){return C4(t)||E4(t,e)||k4(t,e)||D4()},AD=RD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),O4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},ID=function(t,e){if(t==null)return{};var n,r,i=O4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},_4=X.createContext(null);function MD(t){var e=t.children,n=e===void 0?"":e,r=ID(t,["children"]);return typeof n!="string"&&(n=x4(n)),X.createElement("template",AD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function LD(t){var e=t.root,n=t.children;return Fv.createPortal(n===void 0?null:n,e)}function R4(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=ID(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),U=P4(R,2),H=U[0],ne=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var $e=ae.error,tt=ae.styleSheets,Qe=ae.root;switch($e.name){case"NotSupportedError":tt.length>0&&(Qe.adoptedStyleSheets=tt);break;default:throw $e}})({error:le,styleSheets:g,root:H})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,AD({key:q,ref:j},I),(H||E)&&X.createElement(_4.Provider,{value:H},E?X.createElement(MD,{shadowroot:c,shadowrootmode:c},t.render({root:H,ssr:E,children:A})):X.createElement(LD,{root:H},t.render({root:H,ssr:E,children:A})))))});return e.propTypes={mode:Os.oneOf(["open","closed"]),delegatesFocus:Os.bool,styleSheets:Os.arrayOf(Os.instanceOf(globalThis.CSSStyleSheet)),ssr:Os.bool,children:Os.node},e}MD.propTypes={children:Os.oneOfType([Os.string,Os.node])},LD.propTypes={root:Os.object.isRequired,children:Os.node};var gm=new Map;function A4(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=T4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return gm.has(a)||gm.set(a,R4({tag:o,render:n})),gm.get(a)}})}var I4=A4();const M4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",L4=".favorite-bar{position:sticky;top:64px;z-index:var(--menu-z-index);border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var x1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(x1||(x1={}));const F4=Object.freeze({x:0,y:0});var Cf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Cf||(Cf={}));var S1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(S1||(S1={}));var _s;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(_s||(_s={}));_s.Space,_s.Enter,_s.Esc,_s.Space,_s.Enter,_s.Tab;var T1;(function(t){t[t.RightClick=2]="RightClick"})(T1||(T1={}));var C1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(C1||(C1={}));var E1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(E1||(E1={}));Cf.Backward+"",Cf.Forward+"",Cf.Backward+"",Cf.Forward+"";var kv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(kv||(kv={}));var Dv;(function(t){t.Optimized="optimized"})(Dv||(Dv={}));kv.WhileDragging,Dv.Optimized;({...F4});var k1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(k1||(k1={}));function N4(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}_s.Down,_s.Right,_s.Up,_s.Left;function j4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const mm="MENU_ITEM";function B4(t){const e=xp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,j4(x),nb(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=N4(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};Rs.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),H=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=HE({type:mm,item:()=>({id:q.id,index:ie}),collect:Oe=>({isDragging:Oe.isDragging()})}),[{isOver:$e,isOverCurrent:tt},Qe]=lp(()=>({accept:mm,collect:Oe=>({isOver:Oe.isOver(),isOverCurrent:Oe.isOver({shallow:!0})}),drop:Oe=>{Oe.index!==ie&&(Oe.index<ie?(R(Oe.index,ie-1),Oe.index=ie-1):(R(Oe.index,ie),Oe.index=ie))}}),[]);let Ye="hover-off";return(tt||$e)&&(Ye="hover-on"),ae(Qe(x)),Pe.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${Ye}`,children:Pe.jsx(_D,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=lp(()=>({accept:mm,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),Pe.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),Pe.jsx(Pe.Fragment,{children:Pe.jsx("div",{className:g(`favorite-menu${n.length===0?" favorite-menu--empty":""}`),style:{width:"100%",display:"flex"},children:n.length>0&&Pe.jsx(Wv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:Pe.jsx(FE,{backend:GT,children:Pe.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>Pe.jsx(H,{item:q,index:ie},q.id)),Pe.jsx(ne,{})]})})})})})}function $4(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function V4(t){const{isFavoriteBarVisible:e}=$4();return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("style",{children:L4}),Pe.jsx("div",{className:`favorite-bar backdrop-delay-transition ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Pe.jsx(I4.div,{children:Pe.jsx(Vv,{styles:[MT,m4,M4],children:Pe.jsx(B4,{...t})})})})]})}function nb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function FD({...t}){var Se,je,Ue;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(Ge,Ze=a)=>`${Ge} ${Ze} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Ue=U==null?void 0:U.current)==null?void 0:Ue.clientWidth);const H=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!H.includes("local")&&H!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":xp.Link,ae=e.redirectUrl||e.path||"#",$e=n+1,tt=r&&o&&E,Qe=o||n===0?void 0:`${n+.25}rem`,Ye=()=>{A(!0)},Oe=()=>{A(!1)},ue="/global-menu-config/api/v1/menu-items/user/set-favorite",ve=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,pH(e.id,t.params.isOpen,t.params.onToggle);const Le=ve||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,et=Object.entries(t.brandColors||{}).reduce((Ge,[Ze,Xe])=>(Xe&&(Ge[`--${Ze}`]=Xe),Ge),{}),me=H!==ne.origin||t.item.redirectUrl?"_blank":"_self";return Pe.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...et},onMouseOver:Ye,onMouseOut:Oe,onDragStart:Ge=>{o&&n>1&&Ge.preventDefault()},children:[Pe.jsx(aa.Tooltip,{placement:"top",title:Le,disableInteractive:!0,children:Pe.jsxs(le,{target:me,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:Qe},onClick:Ge=>{le==="a"&&me==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ge))},children:[Pe.jsx(H4,{cls:T,item:e}),Pe.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),Pe.jsx(U4,{tooltipPosition:Le?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ge=>{const Ze={menuConfigId:e.id,isFavorite:Ge},Xe=t.baseUrl+ue;Rs.post(Xe,Ze).then(ot=>{var ct;j(Ge),Yv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ge),nb(t.item.id,Ge)}).catch(ot=>{var ct,pt;Ud(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Pe.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:Pe.jsx(N5,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&Pe.jsx(j5,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ge})=>{var Ze;return Pe.jsx(SD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${$e}`),style:eb({maxHeight:Ge,overflowY:"auto",paddingRight:3},Ge!=="auto"&&!!$e),children:(Ze=e.children)==null?void 0:Ze.map(Xe=>X.createElement(FD,{...t,key:Xe.id,item:Xe,level:$e}))})}})]})}function H4({item:t,cls:e}){return Pe.jsx("div",{className:e("menu-item__icon"),children:Pe.jsx(OD,{item:t})})}function U4(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return Pe.jsxs(Pe.Fragment,{children:[t.isHovered&&!t.isFavorite&&Pe.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Pe.jsx("div",{children:Pe.jsx(TD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Pe.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Pe.jsx("div",{children:Pe.jsx(CD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function W4(){return Pe.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:Pe.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 z4(){return Pe.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:Pe.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function Y4(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Pe.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 G4=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",q4=t=>{const e=t.isCollapsed?0:t.depth*16;return Pe.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},X4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",K4=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function ND(t){const e=!t||t==="true"?"64px":"17rem";document.documentElement.style.setProperty("--global-menu-width",e);const n=new CustomEvent("menuWidthChange",{detail:{menuWidth:e}});window.dispatchEvent(n)}const Yh=localStorage.getItem("isCollapsed");ND(Yh);function Z4(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function J4(t){const e=xp.useLocation(),[n,r]=X.useState([]),i=n.map(Oe=>Oe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(Yh===null?!0:Yh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var Oe;(Oe=t.handleCallback)==null||Oe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=e6(i,g),[I,j]=K4({initOpenIds:t.initOpenIds}),R=()=>{var Oe,ue;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),ND(p),p)I&&((Oe=E.current)==null||Oe.open(I));else{const ve=n.filter(ke=>ke.parent===0).map(ke=>ke.id);console.log("closeIds:",ve),(ue=E.current)==null||ue.close(ve)}},[U,H]=X.useState(!1),ne=p?"collapsed":"expanded",q=Oe=>`${Oe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var ue,ve;try{const ke=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Le=t.baseUrl+ke,{data:et}=await Rs.get(Le);let me=et.map(je=>({...je,parentKey:je.parentKey||0}));me=BD(me),t.replacePath&&(me=jD(me,t.replacePath));const Se=me.map(je=>({id:je.id,parent:je.parentKey,text:je.name,data:je}));r(Se)}catch(ke){console.error("Global menu",ke),Ud(((ve=(ue=ke.response)==null?void 0:ue.data)==null?void 0:ve.errorMessage)||ke.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const Oe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Oe.ok)throw new Error("Failed to fetch favorite items");const ue=await Oe.json();f(ue),document.documentElement.style.setProperty("--favorite-menu-height",`${ue.length?57:0}px`)}catch(Oe){document.documentElement.style.setProperty("--favorite-menu-height","0px"),console.error("Error fetching favorite items:",Oe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const Oe=ue=>{f(ue.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",Oe),()=>{window.removeEventListener("favoriteOrderUpdated",Oe)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let Oe=[];c.forEach(ke=>{const Le=i.find(et=>et.id===ke&&et.isFavorite===!0);Le&&(Oe=[...Oe,Le])}),console.log(Oe);function ue(ke){return i.every(Le=>Le.parentKey!==ke.id)?ke:{...ke,children:i.filter(Le=>Le.parentKey===ke.id).map(Le=>ue(Le))}}const ve=Oe.map(ke=>ue(ke));Z4(ve)},[i]);function $e(Oe){const ue=Oe.detail.menuItem;r(ve=>ve.map(ke=>ke.id!==ue.id?ke:{...ke,data:ue})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",$e),()=>{window.removeEventListener("updateFavoriteMenu",$e)}),[]),X.useLayoutEffect(()=>{var ke;const Oe=localStorage.getItem("scrollPos");Oe&&ie.current&&setTimeout(()=>{const Le=ie.current.getScrollElement();Le.scrollTop=parseInt(Oe)},0);const ue=()=>{if(ie.current){const Le=ie.current.getScrollElement();localStorage.setItem("scrollPos",Le.scrollTop.toString())}},ve=(ke=ie.current)==null?void 0:ke.getScrollElement();return ve==null||ve.addEventListener("scroll",ue),()=>{ve==null||ve.removeEventListener("scroll",ue)}},[i]);function tt(Oe){a(!0);const ue=[...n];r(Oe);const ve=Oe.map((ke,Le)=>({menuItemId:ke.id,order:Le}));Rs.post("/global-menu-config/api/v1/menu-items/user",ve,{baseURL:t.baseUrl}).then(()=>{}).catch(ke=>{console.error(ke),r(ue)}).finally(()=>{a(!1)})}const Qe=X.useMemo(()=>Yh==="false"?I:[],[]),Ye=document.getElementById("global-menu-container");return Pe.jsxs("div",{className:q("side-bar"),children:[Pe.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:Pe.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?Pe.jsx(z4,{}):Pe.jsx(W4,{})})}),Pe.jsx(Wv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Pe.jsx(FE,{backend:j3,options:uH(),children:Pe.jsx(kH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:Oe=>{var ue;return((ue=Oe.data)==null?void 0:ue.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:tt,render:(Oe,ue)=>{function ve(me){return n.every(Se=>Se.parent!==me.id)?me:{...me,children:n.filter(Se=>Se.parent===me.id).map(Se=>ve(Se.data))}}const ke=ve(Oe.data),Le=me=>A.some(Se=>Se.id===me);function et(me,Se){r(je=>je.map(Ue=>Ue.id===me?{...Ue,data:{...Ue.data,isFavorite:Se}}:Ue)),ae()}return Pe.jsx(FD,{isInternalApp:t.isInternalApp,isActive:Le,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:Oe,params:ue,nodes:n,item:ke,expanded:()=>!1,toggleExpand:me=>{var Se;if(me.stopPropagation(),ue.isOpen)console.log("open toggleExpand"),ue.onToggle();else{console.log("close toggleExpand");const je=n.filter(Ue=>Ue.parent===Oe.parent&&Ue.id!==Oe.id).map(Ue=>Ue.id);console.log(" closeIds:",je),(Se=E.current)==null||Se.open(Oe.id),setTimeout(()=>{var Ue;(Ue=E.current)==null||Ue.close(je)},0)}},level:ue.depth,onSetFavoriteSuccess:et})},placeholderRender:(Oe,{depth:ue})=>{var ve;return Pe.jsx(q4,{node:Oe,depth:ue,color:(ve=t.brandColors)==null?void 0:ve.primary300,isCollapsed:p})},canDrag:Oe=>{var ue;return!o&&((ue=Oe==null?void 0:Oe.data)==null?void 0:ue.name)!=="Home"},canDrop:(Oe,{dragSource:ue,dropTargetId:ve})=>(ue==null?void 0:ue.parent)===ve,onDragStart:Oe=>{console.log("onDragStart",Oe)},onChangeOpen:Oe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Oe),j(Oe))},initialOpen:Qe})})}),Pe.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[Pe.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>{Ye.style.setProperty("z-index","1304"),Ye.classList.remove("backdrop-delay-transition"),H(!0)},children:[Pe.jsx(Y4,{className:q("side-bar__icon-logout")}),Pe.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),Pe.jsx(xT,{isOpen:U,onClose:()=>{Ye.style.setProperty("z-index","var(--menu-z-index)"),Ye.classList.add("backdrop-delay-transition"),H(!1)},onConfirm:()=>t.logout?t.logout():eT(t.baseUrl)})]})]})}const D1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function Q4(t,e){const r=t.replace(window.origin,"").replace("/app",""),i=new URL(r,window.location.origin),o=new URL(e.replace("/app",""),window.origin),a=(localStorage.getItem("latestClickMenuPath")||"").replace("/app","");return r&&D1[r]&&D1[r].some(c=>e.replace("/app","").includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function e6(t,e){const n=t.map(a=>({item:a,priority:a.path?Q4(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function jD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=jD(n.children,e)):n.path=e(n.path),n})}function BD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+"/app"+n.path}:(n.children&&(n.children=BD(n.children)),n))}function t6(t){return Pe.jsx(Vv,{id:"global-menu-container",styles:[MT,G4,X4],style:{zIndex:"var(--menu-z-index)",position:"relative"},className:"backdrop-delay-transition",children:Pe.jsx(J4,{...t})})}const n6={"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 yp={exports:{}};/**
|
|
135
|
+
`+m.stack}}var Wl=n.ReactCurrentDispatcher,ka=n.ReactDebugCurrentFrame,zl=0,To=1,Yl=2,Ks=3,Wc=4,il=0,Da=1,Pa=2,qu=12800;function zc(v){return console.error(v),null}function Zs(){}function Gl(v,l,d,m,S,_,B,Y,re){var xe=[],Ne=new Set,ze={destination:null,responseState:l,progressiveChunkSize:m===void 0?qu:m,status:il,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ne,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:S===void 0?zc:S,onAllReady:_===void 0?Zs:_,onShellReady:B===void 0?Zs:B,onShellError:Y===void 0?Zs:Y,onFatalError:re===void 0?Zs:re},nt=ol(ze,0,null,d,!1,!1);nt.parentFlushed=!0;var xt=Wo(ze,v,null,nt,Ne,Gn,Fl,Wf);return xe.push(xt),ze}function Uo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return tc(v)})}function ql(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,d,m,S,_,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var re={node:l,ping:function(){return Uo(v,re)},blockedBoundary:d,blockedSegment:m,abortSet:S,legacyContext:_,context:B,treeContext:Y};return re.componentStack=null,S.add(re),re}function ol(v,l,d,m,S,_){return{status:zl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:S,textEmbedded:_}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ea(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function sl(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ps(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Oa=null;function Xl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Oa||Ji();Oa=null,v.errorMessage=d,v.errorComponentStack=m}}function al(v,l){var d=v.onError(l);if(d!=null&&typeof d!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof d+'" instead');return d}function _a(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=Pa,U(v.destination,l)):(v.status=Da,v.fatalError=l)}function Yc(v,l,d){Co(l,"Suspense");var m=l.blockedBoundary,S=l.blockedSegment,_=d.fallback,B=d.children,Y=new Set,re=ql(v,Y),xe=S.chunks.length,Ne=ol(v,xe,re,S.formatContext,!1,!1);S.children.push(Ne),S.lastPushedText=!1;var ze=ol(v,0,null,S.formatContext,!1,!1);ze.parentFlushed=!0,l.blockedBoundary=re,l.blockedSegment=ze;try{if(Ci(v,l,B),_n(ze.chunks,v.responseState,ze.lastPushedText,ze.textEmbedded),ze.status=To,vs(re,ze),re.pendingTasks===0){Qi(l);return}}catch(xt){ze.status=Wc,re.forceClientRender=!0,re.errorDigest=al(v,xt),Xl(re,xt)}finally{l.blockedBoundary=m,l.blockedSegment=S}var nt=Wo(v,_,m,Ne,Y,l.legacyContext,l.context,l.treeContext);nt.componentStack=l.componentStack,v.pingedTasks.push(nt),Qi(l)}function Xu(v,l,d,m){Co(l,d);var S=l.blockedSegment,_=co(S.chunks,d,m,v.responseState,S.formatContext);S.lastPushedText=!1;var B=S.formatContext;S.formatContext=gi(B,d,m),Ci(v,l,_),S.formatContext=B,Mo(S.chunks,d),S.lastPushedText=!1,Qi(l)}function Ku(v){return v.prototype&&v.prototype.isReactComponent}function Js(v,l,d,m,S){var _={};Hu(l,_);var B=d(m,S);return Gs(d,m,B,S)}function Zu(v,l,d,m,S){var _=d.render();d.props!==S&&(Zl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),Zl=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,re=Mu(d,m,Y,B);l.legacyContext=re,dr(v,l,_),l.legacyContext=Y;return}}dr(v,l,_)}function Kl(v,l,d,m){ps(l,d);var S=ss(d,l.legacyContext),_=xo(d,m,S);tl(_,d,m,S),Zu(v,l,_,d,m),Qi(l)}var Bt={},ll={},Ju={},Qs={},Zl=!1,Gc={},qc=!1,ri=!1,Xc=!1;function Jl(v,l,d,m){var S;if(S=ss(d,l.legacyContext),sl(l,d),d.prototype&&typeof d.prototype.render=="function"){var _=pn(d)||"Unknown";Bt[_]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),Bt[_]=!0)}var B=Js(v,l,d,m,S),Y=Hr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var re=pn(d)||"Unknown";ll[re]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),ll[re]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var xe=pn(d)||"Unknown";ll[xe]||(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.",xe,xe,xe),ll[xe]=!0)}tl(B,d,m,S),Zu(v,l,B,d,m)}else if(Qu(d),Y){var Ne=l.treeContext,ze=1,nt=0;l.treeContext=ju(Ne,ze,nt);try{dr(v,l,B)}finally{l.treeContext=Ne}}else dr(v,l,B);Qi(l)}function Qu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Gc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Gc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Qs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Qs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Ju[m]||(i("%s: Function components do not support contextType.",m),Ju[m]=!0)}}}function ec(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var S in m)d[S]===void 0&&(d[S]=m[S]);return d}return l}function Kc(v,l,d,m,S){sl(l,d.render);var _=Js(v,l,d.render,m,S),B=Hr();if(B){var Y=l.treeContext,re=1,xe=0;l.treeContext=ju(Y,re,xe);try{dr(v,l,_)}finally{l.treeContext=Y}}else dr(v,l,_);Qi(l)}function Ur(v,l,d,m,S){var _=d.type,B=ec(_,m);ea(v,l,_,B,S)}function gs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(Xc||(Xc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):d=d._context;var S=m.children;typeof S!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Sa(d),B=S(_);dr(v,l,B)}function Wr(v,l,d,m){var S=d._context,_=m.value,B=m.children,Y;Y=l.context,l.context=Lu(S,_),dr(v,l,B),l.context=$f(S),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Zc(v,l,d,m,S){Co(l,"Lazy");var _=d._payload,B=d._init,Y=B(_),re=ec(Y,m);ea(v,l,Y,re,S),Qi(l)}function ea(v,l,d,m,S){if(typeof d=="function")if(Ku(d)){Kl(v,l,d,m);return}else{Jl(v,l,d,m);return}if(typeof d=="string"){Xu(v,l,d,m);return}switch(d){case Yn:case Vt:case Z:case fe:case De:{dr(v,l,m.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,m.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Yc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Fe:{Kc(v,l,d,m,S);return}case rt:{Ur(v,l,d,m,S);return}case ce:{Wr(v,l,d,m);return}case Ie:{gs(v,l,d,m);return}case It:{Zc(v,l,d,m);return}}var _="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(d==null?d:typeof d)+"."+_))}function Jc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(qc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),qc=!0),v.entries===l&&(ri||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ri=!0)}function dr(v,l,d){try{return Qc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Oa=Oa!==null?Oa:Ji()),m}}function Qc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case de:{var m=d,S=m.type,_=m.props,B=m.ref;ea(v,l,S,_,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var Y=d,re=Y._payload,xe=Y._init,Ne;try{Ne=xe(re)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,Ne);return}}if(er(d)){Ql(v,l,d);return}var ze=Br(d);if(ze){Jc(d,ze);var nt=ze.call(d);if(nt){var xt=nt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=nt.next();while(!xt.done);Ql(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,Eo.lastPushedText);return}if(typeof d=="number"){var ys=l.blockedSegment;ys.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,ys.lastPushedText);return}typeof d=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Ql(v,l,d){for(var m=d.length,S=0;S<m;S++){var _=l.treeContext;l.treeContext=ju(_,m,S);try{Ci(v,l,d[S])}finally{l.treeContext=_}}}function eu(v,l,d){var m=l.blockedSegment,S=m.chunks.length,_=ol(v,S,null,m.formatContext,m.lastPushedText,!0);m.children.push(_),m.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,_,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var Y=B.ping;d.then(Y,Y)}function Ci(v,l,d){var m=l.blockedSegment.formatContext,S=l.legacyContext,_=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if(Uu(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){eu(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,us(_),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=S,l.context=_,us(_),l.componentStack=B,Y}}function ef(v,l,d,m){var S=al(v,m);if(l===null?_a(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=S,Xl(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function ms(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=Ks,ta(l,d,m)}function tu(v,l,d){var m=v.blockedBoundary,S=v.blockedSegment;if(S.status=Ks,m===null)l.allPendingTasks--,l.status!==Pa&&(l.status=Pa,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var _=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.errorDigest=l.onError(_);{var B="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=B+_.message:_=B+String(_);var Y=Zi;Zi=v;try{Xl(m,_)}finally{Zi=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(xe){return tu(xe,l,d)}),m.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var re=l.onAllReady;re()}}}function vs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===To&&vs(v,d)}else{var m=v.completedSegments;m.push(l)}}function ta(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Zs;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===To&&vs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ms,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===To){vs(l,d);var S=l.completedSegments;S.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var _=v.onAllReady;_()}}function Xf(v,l){var d=l.blockedSegment;if(d.status===zl){us(l.context);var m=null;m=Zi,Zi=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=To,ta(v,l.blockedBoundary,d)}catch(_){if(Uu(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var S=l.ping;_.then(S,S)}else l.abortSet.delete(l),d.status=Wc,ef(v,l.blockedBoundary,d,_)}finally{Zi=m}}}function tc(v){if(v.status!==Pa){var l=Fc(),d=Wl.current;Wl.current=rr;var m;m=ka.getCurrentStack,ka.getCurrentStack=Ji;var S=Xs;Ul(v.responseState);try{var _=v.pingedTasks,B;for(B=0;B<_.length;B++){var Y=_[B];Xf(v,Y)}_.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(re){al(v,re),_a(v,re)}finally{Ul(S),Wl.current=d,ka.getCurrentStack=m,d===rr&&us(l)}}}function ul(v,l,d){switch(d.parentFlushed=!0,d.status){case zl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case To:{d.status=Yl;for(var S=!0,_=d.chunks,B=0,Y=d.children,re=0;re<Y.length;re++){for(var xe=Y[re];B<xe.index;B++)g(l,_[B]);S=cl(v,l,xe)}for(;B<_.length-1;B++)g(l,_[B]);return B<_.length&&(S=T(l,_[B])),S}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function cl(v,l,d){var m=d.boundary;if(m===null)return ul(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return Be(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),ul(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var S=m.id=nn(v.responseState);return Te(l,v.responseState,S),ul(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),Te(l,v.responseState,m.id),ul(v,l,d),Tt(l,v.responseState);Ae(l,v.responseState);var _=m.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=_[0];return cl(v,l,B),it(l,v.responseState)}}function nc(v,l,d){return Al(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function nu(v,l,d){return St(l,v.responseState,d.formatContext,d.id),cl(v,l,d),vt(l,d.formatContext)}function rc(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];zr(v,l,d,_)}return m.length=0,mo(l,v.responseState,d.id,d.rootSegmentID)}function tf(v,l,d){for(var m=d.completedSegments,S=0;S<m.length;S++){var _=m[S];if(!zr(v,l,d,_))return S++,m.splice(0,S),!1}return m.splice(0,S),!0}function zr(v,l,d,m){if(m.status===Yl)return!0;var S=m.id;if(S===-1){var _=m.id=d.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return nu(v,l,m)}else return nu(v,l,m),Ya(l,v.responseState,S)}function Ii(v,l){y();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(cl(v,l,d),v.completedRootSegment=null,bi(l,v.responseState));var m=v.clientRenderedBoundaries,S;for(S=0;S<m.length;S++){var _=m[S];nc(v,l,_)}m.splice(0,S);var B=v.completedBoundaries;for(S=0;S<B.length;S++){var Y=B[S];rc(v,l,Y)}B.splice(0,S),E(l),y(l);var re=v.partialBoundaries;for(S=0;S<re.length;S++){var xe=re[S];if(!tf(v,l,xe)){v.destination=null,S++,re.splice(0,S);return}}re.splice(0,S);var Ne=v.completedBoundaries;for(S=0;S<Ne.length;S++){var ze=Ne[S];rc(v,l,ze)}Ne.splice(0,S)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function nf(v){a(function(){return tc(v)})}function Kf(v,l){if(v.status===Da){v.status=Pa,U(l,v.fatalError);return}if(v.status!==Pa&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(d){al(v,d),_a(v,d)}}}function fl(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return tu(m,v,l)}),d.clear(),v.destination!==null&&Ii(v,v.destination)}catch(m){al(v,m),_a(v,m)}}function Ra(v,l){return new Promise(function(d,m){var S,_,B=new Promise(function(nt,xt){_=nt,S=xt});function Y(){var nt=new ReadableStream({type:"bytes",pull:function(xt){Kf(xe,xt)},cancel:function(xt){fl(xe)}},{highWaterMark:0});nt.allReady=B,d(nt)}function re(nt){B.catch(function(){}),m(nt)}var xe=Gl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),pi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,_,Y,re,S);if(l&&l.signal){var Ne=l.signal,ze=function(){fl(xe,Ne.reason),Ne.removeEventListener("abort",ze)};Ne.addEventListener("abort",ze)}nf(xe)})}Ih.renderToReadableStream=Ra,Ih.version=e}()),Ih}var Dc,Ev;process.env.NODE_ENV==="production"?(Dc=y4(),Ev=b4()):(Dc=w4(),Ev=x4());Dc.version;var S4=Dc.renderToString;Dc.renderToStaticMarkup;Dc.renderToNodeStream;Dc.renderToStaticNodeStream;Ev.renderToReadableStream;var T4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RD(t,e){return t(e={exports:{}},e.exports),e.exports}var C4=RD(function(t){(function(e){var n=function(j,R,U){if(!f(R)||y(R)||g(R)||T(R)||c(R))return R;var H,ne=0,q=0;if(p(R))for(H=[],q=R.length;ne<q;ne++)H.push(n(j,R[ne],U));else for(var ie in H={},R)Object.prototype.hasOwnProperty.call(R,ie)&&(H[j(ie,U)]=n(j,R[ie],U));return H},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var R=r(j);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(j,R){return function(U,H){var ne=(H=H||{}).separator||"_",q=H.split||/(?=[A-Z])/;return U.split(q).join(ne)}(j,R).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},y=function(j){return a.call(j)=="[object Date]"},g=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?j:function(H,ne){return U(H,j,ne)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,R){return n(A(r,R),j)},decamelizeKeys:function(j,R){return n(A(o,R),j,R)},pascalizeKeys:function(j,R){return n(A(i,R),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(T4)}).decamelize,E4=function(t){if(Array.isArray(t))return t},k4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},w1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},D4=function(t,e){if(t){if(typeof t=="string")return w1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w1(t,e):void 0}},P4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
136
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},O4=function(t,e){return E4(t)||k4(t,e)||D4(t,e)||P4()},AD=RD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),_4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},ID=function(t,e){if(t==null)return{};var n,r,i=_4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},R4=X.createContext(null);function MD(t){var e=t.children,n=e===void 0?"":e,r=ID(t,["children"]);return typeof n!="string"&&(n=S4(n)),X.createElement("template",AD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function LD(t){var e=t.root,n=t.children;return Fv.createPortal(n===void 0?null:n,e)}function A4(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,y=n.styleSheets,g=y===void 0?[]:y,T=n.ssr,E=T!==void 0&&T,A=n.children,I=ID(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),U=O4(R,2),H=U[0],ne=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var ie=j.current.shadowRoot;return void ne(ie)}var x=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(x.adoptedStyleSheets=g),ne(x)}catch(le){(function(ae){var $e=ae.error,tt=ae.styleSheets,Qe=ae.root;switch($e.name){case"NotSupportedError":tt.length>0&&(Qe.adoptedStyleSheets=tt);break;default:throw $e}})({error:le,styleSheets:g,root:H})}},[r,j,g]),X.createElement(X.Fragment,null,X.createElement(t.tag,AD({key:q,ref:j},I),(H||E)&&X.createElement(R4.Provider,{value:H},E?X.createElement(MD,{shadowroot:c,shadowrootmode:c},t.render({root:H,ssr:E,children:A})):X.createElement(LD,{root:H},t.render({root:H,ssr:E,children:A})))))});return e.propTypes={mode:Os.oneOf(["open","closed"]),delegatesFocus:Os.bool,styleSheets:Os.arrayOf(Os.instanceOf(globalThis.CSSStyleSheet)),ssr:Os.bool,children:Os.node},e}MD.propTypes={children:Os.oneOfType([Os.string,Os.node])},LD.propTypes={root:Os.object.isRequired,children:Os.node};var gm=new Map;function I4(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=C4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return gm.has(a)||gm.set(a,A4({tag:o,render:n})),gm.get(a)}})}var M4=I4();const L4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",F4=".favorite-bar{position:sticky;top:64px;z-index:var(--menu-z-index);border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var x1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(x1||(x1={}));const N4=Object.freeze({x:0,y:0});var Cf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Cf||(Cf={}));var S1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(S1||(S1={}));var _s;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(_s||(_s={}));_s.Space,_s.Enter,_s.Esc,_s.Space,_s.Enter,_s.Tab;var T1;(function(t){t[t.RightClick=2]="RightClick"})(T1||(T1={}));var C1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(C1||(C1={}));var E1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(E1||(E1={}));Cf.Backward+"",Cf.Forward+"",Cf.Backward+"",Cf.Forward+"";var kv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(kv||(kv={}));var Dv;(function(t){t.Optimized="optimized"})(Dv||(Dv={}));kv.WhileDragging,Dv.Optimized;({...N4});var k1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(k1||(k1={}));function j4(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}_s.Down,_s.Right,_s.Up,_s.Left;function B4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const mm="MENU_ITEM";function $4(t){const e=xp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const f=X.useRef(null),[p,y]=X.useState(window.location.href);X.useEffect(()=>{y(window.location.href)},[e]);const g=q=>`${q}`;function T(q,ie){for(const x of q){if(x.id===ie)return x;if(x.children){const le=T(x.children,ie);if(le)return le}}return null}function E(q,ie){const x=T(n,q);x?(x.isFavorite=ie,B4(x),nb(q,ie)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const ie=q.detail.favoriteMenus||[];r(ie)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=ie=>{j(ie.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const R=(q,ie)=>{n[q];const x=j4(n,q,ie);r(x),c(!0);const le={menuItemIds:x.map(ae=>ae.id)};Rs.post("global-menu-config/api/v1/menu-items/user/order-favorites",le,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:x.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[ie,x])=>(x&&(q[`--${ie}`]=x),q),{}),H=({item:q,index:ie})=>{const x=X.useRef(null),[{isDragging:le},ae]=HE({type:mm,item:()=>({id:q.id,index:ie}),collect:Oe=>({isDragging:Oe.isDragging()})}),[{isOver:$e,isOverCurrent:tt},Qe]=lp(()=>({accept:mm,collect:Oe=>({isOver:Oe.isOver(),isOverCurrent:Oe.isOver({shallow:!0})}),drop:Oe=>{Oe.index!==ie&&(Oe.index<ie?(R(Oe.index,ie-1),Oe.index=ie-1):(R(Oe.index,ie),Oe.index=ie))}}),[]);let Ye="hover-off";return(tt||$e)&&(Ye="hover-on"),ae(Qe(x)),Pe.jsx("div",{ref:x,style:{opacity:le?.7:1,boxShadow:le?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${Ye}`,children:Pe.jsx(_D,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},ne=()=>{const q=X.useRef(null),[{isOver:ie,canDrop:x},le]=lp(()=>({accept:mm,drop:ae=>{R(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return le(q),Pe.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:ie&&x?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),Pe.jsx(Pe.Fragment,{children:Pe.jsx("div",{className:g(`favorite-menu${n.length===0?" favorite-menu--empty":""}`),style:{width:"100%",display:"flex"},children:n.length>0&&Pe.jsx(Wv,{ref:f,className:g("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,height:"100%"},children:Pe.jsx(FE,{backend:GT,children:Pe.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,ie)=>Pe.jsx(H,{item:q,index:ie},q.id)),Pe.jsx(ne,{})]})})})})})}function V4(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function H4(t){const{isFavoriteBarVisible:e}=V4();return Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("style",{children:F4}),Pe.jsx("div",{className:`favorite-bar backdrop-delay-transition ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Pe.jsx(M4.div,{children:Pe.jsx(Vv,{styles:[MT,v4,L4],children:Pe.jsx($4,{...t})})})})]})}function nb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function FD({...t}){var Se,je,Ue;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",y=t.params.isOpen?"isOpen":"isClose",g=t.isInternalApp?"isInternalApp":"",T=(Ge,Ze=a)=>`${Ge} ${Ze} ${c} ${f} ${p} ${y} ${g}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const R=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Ue=U==null?void 0:U.current)==null?void 0:Ue.clientWidth);const H=window.location.origin,ne=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],ie=ne.pathname.split("/")[1],x=t.item.redirectUrl||t.ssr||!H.includes("local")&&H!==ne.origin||ie!==q,le=r?"div":!t.isInternalApp&&x?"a":xp.Link,ae=e.redirectUrl||e.path||"#",$e=n+1,tt=r&&o&&E,Qe=o||n===0?void 0:`${n+.25}rem`,Ye=()=>{A(!0)},Oe=()=>{A(!1)},ue="/global-menu-config/api/v1/menu-items/user/set-favorite",ve=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,gH(e.id,t.params.isOpen,t.params.onToggle);const Le=ve||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,et=Object.entries(t.brandColors||{}).reduce((Ge,[Ze,Xe])=>(Xe&&(Ge[`--${Ze}`]=Xe),Ge),{}),me=H!==ne.origin||t.item.redirectUrl?"_blank":"_self";return Pe.jsxs("div",{ref:R,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...et},onMouseOver:Ye,onMouseOut:Oe,onDragStart:Ge=>{o&&n>1&&Ge.preventDefault()},children:[Pe.jsx(aa.Tooltip,{placement:"top",title:Le,disableInteractive:!0,children:Pe.jsxs(le,{target:me,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:Qe},onClick:Ge=>{le==="a"&&me==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ge))},children:[Pe.jsx(U4,{cls:T,item:e}),Pe.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),Pe.jsx(W4,{tooltipPosition:Le?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ge=>{const Ze={menuConfigId:e.id,isFavorite:Ge},Xe=t.baseUrl+ue;Rs.post(Xe,Ze).then(ot=>{var ct;j(Ge),Yv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ge),nb(t.item.id,Ge)}).catch(ot=>{var ct,pt;Ud(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Pe.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:Pe.jsx(j5,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),tt&&Pe.jsx(B5,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:Ge})=>{var Ze;return Pe.jsx(SD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${$e}`),style:eb({maxHeight:Ge,overflowY:"auto",paddingRight:3},Ge!=="auto"&&!!$e),children:(Ze=e.children)==null?void 0:Ze.map(Xe=>X.createElement(FD,{...t,key:Xe.id,item:Xe,level:$e}))})}})]})}function U4({item:t,cls:e}){return Pe.jsx("div",{className:e("menu-item__icon"),children:Pe.jsx(OD,{item:t})})}function W4(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:mr.warning};return Pe.jsxs(Pe.Fragment,{children:[t.isHovered&&!t.isFavorite&&Pe.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Pe.jsx("div",{children:Pe.jsx(TD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Pe.jsx(aa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Pe.jsx("div",{children:Pe.jsx(CD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function z4(){return Pe.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:Pe.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 Y4(){return Pe.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:Pe.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function G4(t){return Pe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Pe.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 q4=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",X4=t=>{const e=t.isCollapsed?0:t.depth*16;return Pe.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},K4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",Z4=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function ND(t){const e=!t||t==="true"?"64px":"17rem";document.documentElement.style.setProperty("--global-menu-width",e);const n=new CustomEvent("menuWidthChange",{detail:{menuWidth:e}});window.dispatchEvent(n)}const Yh=localStorage.getItem("isCollapsed");ND(Yh);function J4(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function Q4(t){const e=xp.useLocation(),[n,r]=X.useState([]),i=n.map(Oe=>Oe.data),[o,a]=X.useState(!1),[c,f]=X.useState([]),[p,y]=X.useState(Yh===null?!0:Yh==="true"),[g,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var Oe;(Oe=t.handleCallback)==null||Oe.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=t6(i,g),[I,j]=Z4({initOpenIds:t.initOpenIds}),R=()=>{var Oe,ue;if(y(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),ND(p),p)I&&((Oe=E.current)==null||Oe.open(I));else{const ve=n.filter(ke=>ke.parent===0).map(ke=>ke.id);console.log("closeIds:",ve),(ue=E.current)==null||ue.close(ve)}},[U,H]=X.useState(!1),ne=p?"collapsed":"expanded",q=Oe=>`${Oe} ${ne}`,ie=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var ue,ve;try{const ke=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Le=t.baseUrl+ke,{data:et}=await Rs.get(Le);let me=et.map(je=>({...je,parentKey:je.parentKey||0}));me=BD(me),t.replacePath&&(me=jD(me,t.replacePath));const Se=me.map(je=>({id:je.id,parent:je.parentKey,text:je.name,data:je}));r(Se)}catch(ke){console.error("Global menu",ke),Ud(((ve=(ue=ke.response)==null?void 0:ue.data)==null?void 0:ve.errorMessage)||ke.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[x,le]=X.useState(!1),ae=async()=>{le(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const Oe=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Oe.ok)throw new Error("Failed to fetch favorite items");const ue=await Oe.json();f(ue),document.documentElement.style.setProperty("--favorite-menu-height",`${ue.length?57:0}px`)}catch(Oe){document.documentElement.style.setProperty("--favorite-menu-height","0px"),console.error("Error fetching favorite items:",Oe)}finally{le(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const Oe=ue=>{f(ue.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",Oe),()=>{window.removeEventListener("favoriteOrderUpdated",Oe)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let Oe=[];c.forEach(ke=>{const Le=i.find(et=>et.id===ke&&et.isFavorite===!0);Le&&(Oe=[...Oe,Le])}),console.log(Oe);function ue(ke){return i.every(Le=>Le.parentKey!==ke.id)?ke:{...ke,children:i.filter(Le=>Le.parentKey===ke.id).map(Le=>ue(Le))}}const ve=Oe.map(ke=>ue(ke));J4(ve)},[i]);function $e(Oe){const ue=Oe.detail.menuItem;r(ve=>ve.map(ke=>ke.id!==ue.id?ke:{...ke,data:ue})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",$e),()=>{window.removeEventListener("updateFavoriteMenu",$e)}),[]),X.useLayoutEffect(()=>{var ke;const Oe=localStorage.getItem("scrollPos");Oe&&ie.current&&setTimeout(()=>{const Le=ie.current.getScrollElement();Le.scrollTop=parseInt(Oe)},0);const ue=()=>{if(ie.current){const Le=ie.current.getScrollElement();localStorage.setItem("scrollPos",Le.scrollTop.toString())}},ve=(ke=ie.current)==null?void 0:ke.getScrollElement();return ve==null||ve.addEventListener("scroll",ue),()=>{ve==null||ve.removeEventListener("scroll",ue)}},[i]);function tt(Oe){a(!0);const ue=[...n];r(Oe);const ve=Oe.map((ke,Le)=>({menuItemId:ke.id,order:Le}));Rs.post("/global-menu-config/api/v1/menu-items/user",ve,{baseURL:t.baseUrl}).then(()=>{}).catch(ke=>{console.error(ke),r(ue)}).finally(()=>{a(!1)})}const Qe=X.useMemo(()=>Yh==="false"?I:[],[]),Ye=document.getElementById("global-menu-container");return Pe.jsxs("div",{className:q("side-bar"),children:[Pe.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:Pe.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:R,children:p?Pe.jsx(Y4,{}):Pe.jsx(z4,{})})}),Pe.jsx(Wv,{ref:ie,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Pe.jsx(FE,{backend:B3,options:cH(),children:Pe.jsx(DH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:Oe=>{var ue;return((ue=Oe.data)==null?void 0:ue.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:tt,render:(Oe,ue)=>{function ve(me){return n.every(Se=>Se.parent!==me.id)?me:{...me,children:n.filter(Se=>Se.parent===me.id).map(Se=>ve(Se.data))}}const ke=ve(Oe.data),Le=me=>A.some(Se=>Se.id===me);function et(me,Se){r(je=>je.map(Ue=>Ue.id===me?{...Ue,data:{...Ue.data,isFavorite:Se}}:Ue)),ae()}return Pe.jsx(FD,{isInternalApp:t.isInternalApp,isActive:Le,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:Oe,params:ue,nodes:n,item:ke,expanded:()=>!1,toggleExpand:me=>{var Se;if(me.stopPropagation(),ue.isOpen)console.log("open toggleExpand"),ue.onToggle();else{console.log("close toggleExpand");const je=n.filter(Ue=>Ue.parent===Oe.parent&&Ue.id!==Oe.id).map(Ue=>Ue.id);console.log(" closeIds:",je),(Se=E.current)==null||Se.open(Oe.id),setTimeout(()=>{var Ue;(Ue=E.current)==null||Ue.close(je)},0)}},level:ue.depth,onSetFavoriteSuccess:et})},placeholderRender:(Oe,{depth:ue})=>{var ve;return Pe.jsx(X4,{node:Oe,depth:ue,color:(ve=t.brandColors)==null?void 0:ve.primary300,isCollapsed:p})},canDrag:Oe=>{var ue;return!o&&((ue=Oe==null?void 0:Oe.data)==null?void 0:ue.name)!=="Home"},canDrop:(Oe,{dragSource:ue,dropTargetId:ve})=>(ue==null?void 0:ue.parent)===ve,onDragStart:Oe=>{console.log("onDragStart",Oe)},onChangeOpen:Oe=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Oe),j(Oe))},initialOpen:Qe})})}),Pe.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[Pe.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>{Ye.style.setProperty("z-index","1304"),Ye.classList.remove("backdrop-delay-transition"),H(!0)},children:[Pe.jsx(G4,{className:q("side-bar__icon-logout")}),Pe.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),Pe.jsx(xT,{isOpen:U,onClose:()=>{Ye.style.setProperty("z-index","var(--menu-z-index)"),Ye.classList.add("backdrop-delay-transition"),H(!1)},onConfirm:()=>t.logout?t.logout():eT(t.baseUrl)})]})]})}const D1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function e6(t,e){const r=t.replace(window.origin,"").replace("/app",""),i=new URL(r,window.location.origin),o=new URL(e.replace("/app",""),window.origin),a=(localStorage.getItem("latestClickMenuPath")||"").replace("/app","");return r&&D1[r]&&D1[r].some(c=>e.replace("/app","").includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function t6(t,e){const n=t.map(a=>({item:a,priority:a.path?e6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function jD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=jD(n.children,e)):n.path=e(n.path),n})}function BD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+"/app"+n.path}:(n.children&&(n.children=BD(n.children)),n))}function n6(t){return Pe.jsx(Vv,{id:"global-menu-container",styles:[MT,q4,K4],style:{zIndex:"var(--menu-z-index)",position:"relative"},className:"backdrop-delay-transition",children:Pe.jsx(Q4,{...t})})}const r6={"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 yp={exports:{}};/**
|
|
137
137
|
* @license
|
|
138
138
|
* Lodash <https://lodash.com/>
|
|
139
139
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -159,7 +159,7 @@ __p += '`),tn&&(Ke+=`' +
|
|
|
159
159
|
function print() { __p += __j.call(arguments, '') }
|
|
160
160
|
`:`;
|
|
161
161
|
`)+Ke+`return __p
|
|
162
|
-
}`;var Xt=o0(function(){return st(K,bt+"return "+Ke).apply(n,oe)});if(Xt.source=Ke,cg(Xt))throw Xt;return Xt}function lA(s){return gn(s).toLowerCase()}function uA(s){return gn(s).toUpperCase()}function cA(s,u,w){if(s=gn(s),s&&(w||u===n))return We(s);if(!s||!(u=Ur(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),oe=An(O,$)+1;return ms(O,K,oe).join("")}function fA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.slice(0,Al(s)+1);if(!s||!(u=Ur(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ms(O,0,$).join("")}function dA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.replace(an,"");if(!s||!(u=Ur(u)))return s;var O=cn(s),$=vt(O,cn(u));return ms(O,$).join("")}function hA(s,u){var w=$e,O=tt;if(qn(u)){var $="separator"in u?u.separator:$;w="length"in u?Yt(u.length):w,O="omission"in u?Ur(u.omission):O}s=gn(s);var K=s.length;if(ei(s)){var oe=cn(s);K=oe.length}if(w>=K)return s;var he=w-vo(O);if(he<1)return O;var ye=oe?ms(oe,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(oe&&(he+=ye.length-he),fg($)){if(s.slice(he).search($)){var Ve,He=ye;for($.global||($=It($.source,gn(_r.exec($))+"g")),$.lastIndex=0;Ve=$.exec(He);)var Ke=Ve.index;ye=ye.slice(0,Ke===n?he:Ke)}}else if(s.indexOf(Ur($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function pA(s){return s=gn(s),s&&ai.test(s)?s.replace(Qn,pa):s}var gA=S(function(s,u,w){return s+(w?" ":"")+u.toUpperCase()}),pg=m("toUpperCase");function i0(s,u,w){return s=gn(s),u=w?n:u,u===n?Ya(s)?de(s):Lt(s):s.match(u)||[]}var o0=Bt(function(s,u){try{return V(s,n,u)}catch(w){return cg(w)?w:new Fe(w)}}),mA=dl(function(s,u){return te(u,function(w){w=Ia(w),Si(s,w,lg(s[w],s))}),s});function vA(s){var u=s==null?0:s.length,w=Ct();return s=u?it(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[w(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function yA(s){return Uu(Hr(s,g))}function gg(s){return function(){return s}}function bA(s,u){return s==null||s!==s?u:s}var wA=re(),xA=re(!0);function Po(s){return s}function mg(s){return ql(typeof s=="function"?s:Hr(s,g))}function SA(s){return Co(Hr(s,g))}function TA(s,u){return sl(s,Hr(u,g))}var CA=Bt(function(s,u){return function(w){return To(w,s,u)}}),EA=Bt(function(s,u){return function(w){return To(s,w,u)}});function vg(s,u,w){var O=ii(u),$=Ca(u,O);w==null&&!(qn(u)&&($.length||!O.length))&&(w=u,u=s,s=this,$=Ca(u,ii(u)));var K=!(qn(w)&&"chain"in w)||!!w.chain,oe=pl(s);return te($,function(he){var ye=u[he];s[he]=ye,oe&&(s.prototype[he]=function(){var Ve=this.__chain__;if(K||Ve){var He=s(this.__wrapped__),Ke=He.__actions__=zr(this.__actions__);return Ke.push({func:ye,args:arguments,thisArg:s}),He.__chain__=Ve,He}return ye.apply(s,Tt([this.value()],arguments))})}),s}function kA(){return ln._===this&&(ln._=Au),this}function yg(){}function DA(s){return s=Yt(s),Bt(function(u){return Oa(u,s)})}var PA=nt(it),OA=nt(_e),_A=nt(un);function s0(s){return ng(s)?D(Ia(s)):Yc(s)}function RA(s){return function(u){return s==null?n:hs(s,u)}}var AA=ir(),IA=ir(!0);function bg(){return[]}function wg(){return!1}function MA(){return{}}function LA(){return""}function FA(){return!0}function NA(s,u){if(s=Yt(s),s<1||s>Le)return[];var w=Se,O=Gn(s,Se);u=Ct(u),s-=Se;for(var $=we(O,u);++w<s;)u(w);return $}function jA(s){return Ht(s)?it(s,Ia):zo(s)?[s]:zr(kb(gn(s)))}function BA(s){var u=++_u;return gn(s)+u}var $A=ze(function(s,u){return s+u},0),VA=eo("ceil"),HA=ze(function(s,u){return s/u},1),UA=eo("floor");function WA(s){return s&&s.length?Vl(s,Po,Xs):n}function zA(s,u){return s&&s.length?Vl(s,Ct(u,2),Xs):n}function YA(s){return Tr(s,Po)}function GA(s,u){return Tr(s,Ct(u,2))}function qA(s){return s&&s.length?Vl(s,Po,Zi):n}function XA(s,u){return s&&s.length?Vl(s,Ct(u,2),Zi):n}var KA=ze(function(s,u){return s*u},1),ZA=eo("round"),JA=ze(function(s,u){return s-u},0);function QA(s){return s&&s.length?be(s,Po):0}function eI(s,u){return s&&s.length?be(s,Ct(u,2)):0}return z.after=S_,z.ary=Nb,z.assign=uR,z.assignIn=Zb,z.assignInWith=ch,z.assignWith=cR,z.at=fR,z.before=jb,z.bind=lg,z.bindAll=mA,z.bindKey=Bb,z.castArray=M_,z.chain=Mb,z.chunk=UP,z.compact=WP,z.concat=zP,z.cond=vA,z.conforms=yA,z.constant=gg,z.countBy=QO,z.create=dR,z.curry=$b,z.curryRight=Vb,z.debounce=Hb,z.defaults=hR,z.defaultsDeep=pR,z.defer=T_,z.delay=C_,z.difference=YP,z.differenceBy=GP,z.differenceWith=qP,z.drop=XP,z.dropRight=KP,z.dropRightWhile=ZP,z.dropWhile=JP,z.fill=QP,z.filter=t_,z.flatMap=i_,z.flatMapDeep=o_,z.flatMapDepth=s_,z.flatten=_b,z.flattenDeep=eO,z.flattenDepth=tO,z.flip=E_,z.flow=wA,z.flowRight=xA,z.fromPairs=nO,z.functions=xR,z.functionsIn=SR,z.groupBy=a_,z.initial=iO,z.intersection=oO,z.intersectionBy=sO,z.intersectionWith=aO,z.invert=CR,z.invertBy=ER,z.invokeMap=u_,z.iteratee=mg,z.keyBy=c_,z.keys=ii,z.keysIn=Do,z.map=ih,z.mapKeys=DR,z.mapValues=PR,z.matches=SA,z.matchesProperty=TA,z.memoize=sh,z.merge=OR,z.mergeWith=Jb,z.method=CA,z.methodOf=EA,z.mixin=vg,z.negate=ah,z.nthArg=DA,z.omit=_R,z.omitBy=RR,z.once=k_,z.orderBy=f_,z.over=PA,z.overArgs=D_,z.overEvery=OA,z.overSome=_A,z.partial=ug,z.partialRight=Ub,z.partition=d_,z.pick=AR,z.pickBy=Qb,z.property=s0,z.propertyOf=RA,z.pull=fO,z.pullAll=Ab,z.pullAllBy=dO,z.pullAllWith=hO,z.pullAt=pO,z.range=AA,z.rangeRight=IA,z.rearg=P_,z.reject=g_,z.remove=gO,z.rest=O_,z.reverse=sg,z.sampleSize=v_,z.set=MR,z.setWith=LR,z.shuffle=y_,z.slice=mO,z.sortBy=x_,z.sortedUniq=TO,z.sortedUniqBy=CO,z.split=iA,z.spread=__,z.tail=EO,z.take=kO,z.takeRight=DO,z.takeRightWhile=PO,z.takeWhile=OO,z.tap=WO,z.throttle=R_,z.thru=rh,z.toArray=qb,z.toPairs=e0,z.toPairsIn=t0,z.toPath=jA,z.toPlainObject=Kb,z.transform=FR,z.unary=A_,z.union=_O,z.unionBy=RO,z.unionWith=AO,z.uniq=IO,z.uniqBy=MO,z.uniqWith=LO,z.unset=NR,z.unzip=ag,z.unzipWith=Ib,z.update=jR,z.updateWith=BR,z.values=af,z.valuesIn=$R,z.without=FO,z.words=i0,z.wrap=I_,z.xor=NO,z.xorBy=jO,z.xorWith=BO,z.zip=$O,z.zipObject=VO,z.zipObjectDeep=HO,z.zipWith=UO,z.entries=e0,z.entriesIn=t0,z.extend=Zb,z.extendWith=ch,vg(z,z),z.add=$A,z.attempt=o0,z.camelCase=WR,z.capitalize=n0,z.ceil=VA,z.clamp=VR,z.clone=L_,z.cloneDeep=N_,z.cloneDeepWith=j_,z.cloneWith=F_,z.conformsTo=B_,z.deburr=r0,z.defaultTo=bA,z.divide=HA,z.endsWith=zR,z.eq=ra,z.escape=YR,z.escapeRegExp=GR,z.every=e_,z.find=n_,z.findIndex=Pb,z.findKey=gR,z.findLast=r_,z.findLastIndex=Ob,z.findLastKey=mR,z.floor=UA,z.forEach=Lb,z.forEachRight=Fb,z.forIn=vR,z.forInRight=yR,z.forOwn=bR,z.forOwnRight=wR,z.get=dg,z.gt=$_,z.gte=V_,z.has=TR,z.hasIn=hg,z.head=Rb,z.identity=Po,z.includes=l_,z.indexOf=rO,z.inRange=HR,z.invoke=kR,z.isArguments=sc,z.isArray=Ht,z.isArrayBuffer=H_,z.isArrayLike=ko,z.isArrayLikeObject=hr,z.isBoolean=U_,z.isBuffer=ru,z.isDate=W_,z.isElement=z_,z.isEmpty=Y_,z.isEqual=G_,z.isEqualWith=q_,z.isError=cg,z.isFinite=X_,z.isFunction=pl,z.isInteger=Wb,z.isLength=lh,z.isMap=zb,z.isMatch=K_,z.isMatchWith=Z_,z.isNaN=J_,z.isNative=Q_,z.isNil=tR,z.isNull=eR,z.isNumber=Yb,z.isObject=qn,z.isObjectLike=or,z.isPlainObject=Qf,z.isRegExp=fg,z.isSafeInteger=nR,z.isSet=Gb,z.isString=uh,z.isSymbol=zo,z.isTypedArray=sf,z.isUndefined=rR,z.isWeakMap=iR,z.isWeakSet=oR,z.join=lO,z.kebabCase=qR,z.last=bs,z.lastIndexOf=uO,z.lowerCase=XR,z.lowerFirst=KR,z.lt=sR,z.lte=aR,z.max=WA,z.maxBy=zA,z.mean=YA,z.meanBy=GA,z.min=qA,z.minBy=XA,z.stubArray=bg,z.stubFalse=wg,z.stubObject=MA,z.stubString=LA,z.stubTrue=FA,z.multiply=KA,z.nth=cO,z.noConflict=kA,z.noop=yg,z.now=oh,z.pad=ZR,z.padEnd=JR,z.padStart=QR,z.parseInt=eA,z.random=UR,z.reduce=h_,z.reduceRight=p_,z.repeat=tA,z.replace=nA,z.result=IR,z.round=ZA,z.runInContext=Z,z.sample=m_,z.size=b_,z.snakeCase=rA,z.some=w_,z.sortedIndex=vO,z.sortedIndexBy=yO,z.sortedIndexOf=bO,z.sortedLastIndex=wO,z.sortedLastIndexBy=xO,z.sortedLastIndexOf=SO,z.startCase=oA,z.startsWith=sA,z.subtract=JA,z.sum=QA,z.sumBy=eI,z.template=aA,z.times=NA,z.toFinite=gl,z.toInteger=Yt,z.toLength=Xb,z.toLower=lA,z.toNumber=ws,z.toSafeInteger=lR,z.toString=gn,z.toUpper=uA,z.trim=cA,z.trimEnd=fA,z.trimStart=dA,z.truncate=hA,z.unescape=pA,z.uniqueId=BA,z.upperCase=gA,z.upperFirst=pg,z.each=Lb,z.eachRight=Fb,z.first=Rb,vg(z,function(){var s={};return Ti(z,function(u,w){kt.call(z.prototype,w)||(s[w]=u)}),s}(),{chain:!1}),z.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),te(["drop","take"],function(s,u){$t.prototype[s]=function(w){w=w===n?1:wn(Yt(w),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(w,O.__takeCount__):O.__views__.push({size:Gn(w,Se),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(w){return this.reverse()[s](w).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var w=u+1,O=w==Oe||w==ve;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:w}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var w="take"+(u?"Right":"");$t.prototype[s]=function(){return this[w](1).value()[0]}}),te(["initial","tail"],function(s,u){var w="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(w){return To(w,s,u)})}),$t.prototype.reject=function(s){return this.filter(ah(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var w=this;return w.__filtered__&&(s>0||u<0)?new $t(w):(s<0?w=w.takeRight(-s):s&&(w=w.drop(s)),u!==n&&(u=Yt(u),w=u<0?w.dropRight(-u):w.take(u-s)),w)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Se)},Ti($t.prototype,function(s,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=z[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(z.prototype[u]=function(){var oe=this.__wrapped__,he=O?[1]:arguments,ye=oe instanceof $t,Ve=he[0],He=ye||Ht(oe),Ke=function(Jt){var tn=$.apply(z,Tt([Jt],he));return O&&at?tn[0]:tn};He&&w&&typeof Ve=="function"&&Ve.length!=1&&(ye=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&He){oe=Xt?oe:new $t(this);var Pt=s.apply(oe,he);return Pt.__actions__.push({func:rh,args:[Ke],thisArg:n}),new Cr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Ke),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],w=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);z.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ht(K)?K:[],$)}return this[w](function(oe){return u.apply(Ht(oe)?oe:[],$)})}}),Ti($t.prototype,function(s,u){var w=z[u];if(w){var O=w.name+"";kt.call(Us,O)||(Us[O]=[]),Us[O].push({name:u,func:w})}}),Us[xe(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=el,$t.prototype.value=jl,z.prototype.at=zO,z.prototype.chain=YO,z.prototype.commit=GO,z.prototype.next=qO,z.prototype.plant=KO,z.prototype.reverse=ZO,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=JO,z.prototype.first=z.prototype.head,Xi&&(z.prototype[Xi]=XO),z},De=Ce();bi?((bi.exports=De)._=De,Mo._=De):ln._=De}).call(ki)})(yp,yp.exports);var $D=yp.exports;const r6=Eu($D);var VD={exports:{}};/*!
|
|
162
|
+
}`;var Xt=o0(function(){return st(K,bt+"return "+Ke).apply(n,oe)});if(Xt.source=Ke,cg(Xt))throw Xt;return Xt}function lA(s){return gn(s).toLowerCase()}function uA(s){return gn(s).toUpperCase()}function cA(s,u,w){if(s=gn(s),s&&(w||u===n))return We(s);if(!s||!(u=Ur(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),oe=An(O,$)+1;return ms(O,K,oe).join("")}function fA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.slice(0,Al(s)+1);if(!s||!(u=Ur(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ms(O,0,$).join("")}function dA(s,u,w){if(s=gn(s),s&&(w||u===n))return s.replace(an,"");if(!s||!(u=Ur(u)))return s;var O=cn(s),$=vt(O,cn(u));return ms(O,$).join("")}function hA(s,u){var w=$e,O=tt;if(qn(u)){var $="separator"in u?u.separator:$;w="length"in u?Yt(u.length):w,O="omission"in u?Ur(u.omission):O}s=gn(s);var K=s.length;if(ei(s)){var oe=cn(s);K=oe.length}if(w>=K)return s;var he=w-vo(O);if(he<1)return O;var ye=oe?ms(oe,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(oe&&(he+=ye.length-he),fg($)){if(s.slice(he).search($)){var Ve,He=ye;for($.global||($=It($.source,gn(_r.exec($))+"g")),$.lastIndex=0;Ve=$.exec(He);)var Ke=Ve.index;ye=ye.slice(0,Ke===n?he:Ke)}}else if(s.indexOf(Ur($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function pA(s){return s=gn(s),s&&ai.test(s)?s.replace(Qn,pa):s}var gA=S(function(s,u,w){return s+(w?" ":"")+u.toUpperCase()}),pg=m("toUpperCase");function i0(s,u,w){return s=gn(s),u=w?n:u,u===n?Ya(s)?de(s):Lt(s):s.match(u)||[]}var o0=Bt(function(s,u){try{return V(s,n,u)}catch(w){return cg(w)?w:new Fe(w)}}),mA=dl(function(s,u){return te(u,function(w){w=Ia(w),Si(s,w,lg(s[w],s))}),s});function vA(s){var u=s==null?0:s.length,w=Ct();return s=u?it(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[w(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function yA(s){return Uu(Hr(s,g))}function gg(s){return function(){return s}}function bA(s,u){return s==null||s!==s?u:s}var wA=re(),xA=re(!0);function Po(s){return s}function mg(s){return ql(typeof s=="function"?s:Hr(s,g))}function SA(s){return Co(Hr(s,g))}function TA(s,u){return sl(s,Hr(u,g))}var CA=Bt(function(s,u){return function(w){return To(w,s,u)}}),EA=Bt(function(s,u){return function(w){return To(s,w,u)}});function vg(s,u,w){var O=ii(u),$=Ca(u,O);w==null&&!(qn(u)&&($.length||!O.length))&&(w=u,u=s,s=this,$=Ca(u,ii(u)));var K=!(qn(w)&&"chain"in w)||!!w.chain,oe=pl(s);return te($,function(he){var ye=u[he];s[he]=ye,oe&&(s.prototype[he]=function(){var Ve=this.__chain__;if(K||Ve){var He=s(this.__wrapped__),Ke=He.__actions__=zr(this.__actions__);return Ke.push({func:ye,args:arguments,thisArg:s}),He.__chain__=Ve,He}return ye.apply(s,Tt([this.value()],arguments))})}),s}function kA(){return ln._===this&&(ln._=Au),this}function yg(){}function DA(s){return s=Yt(s),Bt(function(u){return Oa(u,s)})}var PA=nt(it),OA=nt(_e),_A=nt(un);function s0(s){return ng(s)?D(Ia(s)):Yc(s)}function RA(s){return function(u){return s==null?n:hs(s,u)}}var AA=ir(),IA=ir(!0);function bg(){return[]}function wg(){return!1}function MA(){return{}}function LA(){return""}function FA(){return!0}function NA(s,u){if(s=Yt(s),s<1||s>Le)return[];var w=Se,O=Gn(s,Se);u=Ct(u),s-=Se;for(var $=we(O,u);++w<s;)u(w);return $}function jA(s){return Ht(s)?it(s,Ia):zo(s)?[s]:zr(kb(gn(s)))}function BA(s){var u=++_u;return gn(s)+u}var $A=ze(function(s,u){return s+u},0),VA=eo("ceil"),HA=ze(function(s,u){return s/u},1),UA=eo("floor");function WA(s){return s&&s.length?Vl(s,Po,Xs):n}function zA(s,u){return s&&s.length?Vl(s,Ct(u,2),Xs):n}function YA(s){return Tr(s,Po)}function GA(s,u){return Tr(s,Ct(u,2))}function qA(s){return s&&s.length?Vl(s,Po,Zi):n}function XA(s,u){return s&&s.length?Vl(s,Ct(u,2),Zi):n}var KA=ze(function(s,u){return s*u},1),ZA=eo("round"),JA=ze(function(s,u){return s-u},0);function QA(s){return s&&s.length?be(s,Po):0}function eI(s,u){return s&&s.length?be(s,Ct(u,2)):0}return z.after=S_,z.ary=Nb,z.assign=uR,z.assignIn=Zb,z.assignInWith=ch,z.assignWith=cR,z.at=fR,z.before=jb,z.bind=lg,z.bindAll=mA,z.bindKey=Bb,z.castArray=M_,z.chain=Mb,z.chunk=UP,z.compact=WP,z.concat=zP,z.cond=vA,z.conforms=yA,z.constant=gg,z.countBy=QO,z.create=dR,z.curry=$b,z.curryRight=Vb,z.debounce=Hb,z.defaults=hR,z.defaultsDeep=pR,z.defer=T_,z.delay=C_,z.difference=YP,z.differenceBy=GP,z.differenceWith=qP,z.drop=XP,z.dropRight=KP,z.dropRightWhile=ZP,z.dropWhile=JP,z.fill=QP,z.filter=t_,z.flatMap=i_,z.flatMapDeep=o_,z.flatMapDepth=s_,z.flatten=_b,z.flattenDeep=eO,z.flattenDepth=tO,z.flip=E_,z.flow=wA,z.flowRight=xA,z.fromPairs=nO,z.functions=xR,z.functionsIn=SR,z.groupBy=a_,z.initial=iO,z.intersection=oO,z.intersectionBy=sO,z.intersectionWith=aO,z.invert=CR,z.invertBy=ER,z.invokeMap=u_,z.iteratee=mg,z.keyBy=c_,z.keys=ii,z.keysIn=Do,z.map=ih,z.mapKeys=DR,z.mapValues=PR,z.matches=SA,z.matchesProperty=TA,z.memoize=sh,z.merge=OR,z.mergeWith=Jb,z.method=CA,z.methodOf=EA,z.mixin=vg,z.negate=ah,z.nthArg=DA,z.omit=_R,z.omitBy=RR,z.once=k_,z.orderBy=f_,z.over=PA,z.overArgs=D_,z.overEvery=OA,z.overSome=_A,z.partial=ug,z.partialRight=Ub,z.partition=d_,z.pick=AR,z.pickBy=Qb,z.property=s0,z.propertyOf=RA,z.pull=fO,z.pullAll=Ab,z.pullAllBy=dO,z.pullAllWith=hO,z.pullAt=pO,z.range=AA,z.rangeRight=IA,z.rearg=P_,z.reject=g_,z.remove=gO,z.rest=O_,z.reverse=sg,z.sampleSize=v_,z.set=MR,z.setWith=LR,z.shuffle=y_,z.slice=mO,z.sortBy=x_,z.sortedUniq=TO,z.sortedUniqBy=CO,z.split=iA,z.spread=__,z.tail=EO,z.take=kO,z.takeRight=DO,z.takeRightWhile=PO,z.takeWhile=OO,z.tap=WO,z.throttle=R_,z.thru=rh,z.toArray=qb,z.toPairs=e0,z.toPairsIn=t0,z.toPath=jA,z.toPlainObject=Kb,z.transform=FR,z.unary=A_,z.union=_O,z.unionBy=RO,z.unionWith=AO,z.uniq=IO,z.uniqBy=MO,z.uniqWith=LO,z.unset=NR,z.unzip=ag,z.unzipWith=Ib,z.update=jR,z.updateWith=BR,z.values=af,z.valuesIn=$R,z.without=FO,z.words=i0,z.wrap=I_,z.xor=NO,z.xorBy=jO,z.xorWith=BO,z.zip=$O,z.zipObject=VO,z.zipObjectDeep=HO,z.zipWith=UO,z.entries=e0,z.entriesIn=t0,z.extend=Zb,z.extendWith=ch,vg(z,z),z.add=$A,z.attempt=o0,z.camelCase=WR,z.capitalize=n0,z.ceil=VA,z.clamp=VR,z.clone=L_,z.cloneDeep=N_,z.cloneDeepWith=j_,z.cloneWith=F_,z.conformsTo=B_,z.deburr=r0,z.defaultTo=bA,z.divide=HA,z.endsWith=zR,z.eq=ra,z.escape=YR,z.escapeRegExp=GR,z.every=e_,z.find=n_,z.findIndex=Pb,z.findKey=gR,z.findLast=r_,z.findLastIndex=Ob,z.findLastKey=mR,z.floor=UA,z.forEach=Lb,z.forEachRight=Fb,z.forIn=vR,z.forInRight=yR,z.forOwn=bR,z.forOwnRight=wR,z.get=dg,z.gt=$_,z.gte=V_,z.has=TR,z.hasIn=hg,z.head=Rb,z.identity=Po,z.includes=l_,z.indexOf=rO,z.inRange=HR,z.invoke=kR,z.isArguments=sc,z.isArray=Ht,z.isArrayBuffer=H_,z.isArrayLike=ko,z.isArrayLikeObject=hr,z.isBoolean=U_,z.isBuffer=ru,z.isDate=W_,z.isElement=z_,z.isEmpty=Y_,z.isEqual=G_,z.isEqualWith=q_,z.isError=cg,z.isFinite=X_,z.isFunction=pl,z.isInteger=Wb,z.isLength=lh,z.isMap=zb,z.isMatch=K_,z.isMatchWith=Z_,z.isNaN=J_,z.isNative=Q_,z.isNil=tR,z.isNull=eR,z.isNumber=Yb,z.isObject=qn,z.isObjectLike=or,z.isPlainObject=Qf,z.isRegExp=fg,z.isSafeInteger=nR,z.isSet=Gb,z.isString=uh,z.isSymbol=zo,z.isTypedArray=sf,z.isUndefined=rR,z.isWeakMap=iR,z.isWeakSet=oR,z.join=lO,z.kebabCase=qR,z.last=bs,z.lastIndexOf=uO,z.lowerCase=XR,z.lowerFirst=KR,z.lt=sR,z.lte=aR,z.max=WA,z.maxBy=zA,z.mean=YA,z.meanBy=GA,z.min=qA,z.minBy=XA,z.stubArray=bg,z.stubFalse=wg,z.stubObject=MA,z.stubString=LA,z.stubTrue=FA,z.multiply=KA,z.nth=cO,z.noConflict=kA,z.noop=yg,z.now=oh,z.pad=ZR,z.padEnd=JR,z.padStart=QR,z.parseInt=eA,z.random=UR,z.reduce=h_,z.reduceRight=p_,z.repeat=tA,z.replace=nA,z.result=IR,z.round=ZA,z.runInContext=Z,z.sample=m_,z.size=b_,z.snakeCase=rA,z.some=w_,z.sortedIndex=vO,z.sortedIndexBy=yO,z.sortedIndexOf=bO,z.sortedLastIndex=wO,z.sortedLastIndexBy=xO,z.sortedLastIndexOf=SO,z.startCase=oA,z.startsWith=sA,z.subtract=JA,z.sum=QA,z.sumBy=eI,z.template=aA,z.times=NA,z.toFinite=gl,z.toInteger=Yt,z.toLength=Xb,z.toLower=lA,z.toNumber=ws,z.toSafeInteger=lR,z.toString=gn,z.toUpper=uA,z.trim=cA,z.trimEnd=fA,z.trimStart=dA,z.truncate=hA,z.unescape=pA,z.uniqueId=BA,z.upperCase=gA,z.upperFirst=pg,z.each=Lb,z.eachRight=Fb,z.first=Rb,vg(z,function(){var s={};return Ti(z,function(u,w){kt.call(z.prototype,w)||(s[w]=u)}),s}(),{chain:!1}),z.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),te(["drop","take"],function(s,u){$t.prototype[s]=function(w){w=w===n?1:wn(Yt(w),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(w,O.__takeCount__):O.__views__.push({size:Gn(w,Se),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(w){return this.reverse()[s](w).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var w=u+1,O=w==Oe||w==ve;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:w}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var w="take"+(u?"Right":"");$t.prototype[s]=function(){return this[w](1).value()[0]}}),te(["initial","tail"],function(s,u){var w="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[w](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(w){return To(w,s,u)})}),$t.prototype.reject=function(s){return this.filter(ah(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var w=this;return w.__filtered__&&(s>0||u<0)?new $t(w):(s<0?w=w.takeRight(-s):s&&(w=w.drop(s)),u!==n&&(u=Yt(u),w=u<0?w.dropRight(-u):w.take(u-s)),w)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Se)},Ti($t.prototype,function(s,u){var w=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=z[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(z.prototype[u]=function(){var oe=this.__wrapped__,he=O?[1]:arguments,ye=oe instanceof $t,Ve=he[0],He=ye||Ht(oe),Ke=function(Jt){var tn=$.apply(z,Tt([Jt],he));return O&&at?tn[0]:tn};He&&w&&typeof Ve=="function"&&Ve.length!=1&&(ye=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&He){oe=Xt?oe:new $t(this);var Pt=s.apply(oe,he);return Pt.__actions__.push({func:rh,args:[Ke],thisArg:n}),new Cr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Ke),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],w=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);z.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ht(K)?K:[],$)}return this[w](function(oe){return u.apply(Ht(oe)?oe:[],$)})}}),Ti($t.prototype,function(s,u){var w=z[u];if(w){var O=w.name+"";kt.call(Us,O)||(Us[O]=[]),Us[O].push({name:u,func:w})}}),Us[xe(n,R).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Nl,$t.prototype.reverse=el,$t.prototype.value=jl,z.prototype.at=zO,z.prototype.chain=YO,z.prototype.commit=GO,z.prototype.next=qO,z.prototype.plant=KO,z.prototype.reverse=ZO,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=JO,z.prototype.first=z.prototype.head,Xi&&(z.prototype[Xi]=XO),z},De=Ce();bi?((bi.exports=De)._=De,Mo._=De):ln._=De}).call(ki)})(yp,yp.exports);var $D=yp.exports;const i6=Eu($D);var VD={exports:{}};/*!
|
|
163
163
|
* jQuery JavaScript Library v3.7.1
|
|
164
164
|
* https://jquery.com/
|
|
165
165
|
*
|
|
@@ -171,13 +171,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
171
171
|
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:ki,function(e,n){var r=[],i=Object.getPrototypeOf,o=r.slice,a=r.flat?function(h){return r.flat.call(h)}:function(h){return r.concat.apply([],h)},c=r.push,f=r.indexOf,p={},y=p.toString,g=p.hasOwnProperty,T=g.toString,E=T.call(Object),A={},I=function(b){return typeof b=="function"&&typeof b.nodeType!="number"&&typeof b.item!="function"},j=function(b){return b!=null&&b===b.window},R=e.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function H(h,b,C){C=C||R;var P,L,N=C.createElement("script");if(N.text=h,b)for(P in U)L=b[P]||b.getAttribute&&b.getAttribute(P),L&&N.setAttribute(P,L);C.head.appendChild(N).parentNode.removeChild(N)}function ne(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[y.call(h)]||"object":typeof h}var q="3.7.1",ie=/HTML$/i,x=function(h,b){return new x.fn.init(h,b)};x.fn=x.prototype={jquery:q,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(h){return h==null?o.call(this):h<0?this[h+this.length]:this[h]},pushStack:function(h){var b=x.merge(this.constructor(),h);return b.prevObject=this,b},each:function(h){return x.each(this,h)},map:function(h){return this.pushStack(x.map(this,function(b,C){return h.call(b,C,b)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(h,b){return(b+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(h,b){return b%2}))},eq:function(h){var b=this.length,C=+h+(h<0?b:0);return this.pushStack(C>=0&&C<b?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},x.extend=x.fn.extend=function(){var h,b,C,P,L,N,V=arguments[0]||{},se=1,te=arguments.length,pe=!1;for(typeof V=="boolean"&&(pe=V,V=arguments[se]||{},se++),typeof V!="object"&&!I(V)&&(V={}),se===te&&(V=this,se--);se<te;se++)if((h=arguments[se])!=null)for(b in h)P=h[b],!(b==="__proto__"||V===P)&&(pe&&P&&(x.isPlainObject(P)||(L=Array.isArray(P)))?(C=V[b],L&&!Array.isArray(C)?N=[]:!L&&!x.isPlainObject(C)?N={}:N=C,L=!1,V[b]=x.extend(pe,N,P)):P!==void 0&&(V[b]=P));return V},x.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var b,C;return!h||y.call(h)!=="[object Object]"?!1:(b=i(h),b?(C=g.call(b,"constructor")&&b.constructor,typeof C=="function"&&T.call(C)===E):!0)},isEmptyObject:function(h){var b;for(b in h)return!1;return!0},globalEval:function(h,b,C){H(h,{nonce:b&&b.nonce},C)},each:function(h,b){var C,P=0;if(le(h))for(C=h.length;P<C&&b.call(h[P],P,h[P])!==!1;P++);else for(P in h)if(b.call(h[P],P,h[P])===!1)break;return h},text:function(h){var b,C="",P=0,L=h.nodeType;if(!L)for(;b=h[P++];)C+=x.text(b);return L===1||L===11?h.textContent:L===9?h.documentElement.textContent:L===3||L===4?h.nodeValue:C},makeArray:function(h,b){var C=b||[];return h!=null&&(le(Object(h))?x.merge(C,typeof h=="string"?[h]:h):c.call(C,h)),C},inArray:function(h,b,C){return b==null?-1:f.call(b,h,C)},isXMLDoc:function(h){var b=h&&h.namespaceURI,C=h&&(h.ownerDocument||h).documentElement;return!ie.test(b||C&&C.nodeName||"HTML")},merge:function(h,b){for(var C=+b.length,P=0,L=h.length;P<C;P++)h[L++]=b[P];return h.length=L,h},grep:function(h,b,C){for(var P,L=[],N=0,V=h.length,se=!C;N<V;N++)P=!b(h[N],N),P!==se&&L.push(h[N]);return L},map:function(h,b,C){var P,L,N=0,V=[];if(le(h))for(P=h.length;N<P;N++)L=b(h[N],N,C),L!=null&&V.push(L);else for(N in h)L=b(h[N],N,C),L!=null&&V.push(L);return a(V)},guid:1,support:A}),typeof Symbol=="function"&&(x.fn[Symbol.iterator]=r[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(h,b){p["[object "+b+"]"]=b.toLowerCase()});function le(h){var b=!!h&&"length"in h&&h.length,C=ne(h);return I(h)||j(h)?!1:C==="array"||b===0||typeof b=="number"&&b>0&&b-1 in h}function ae(h,b){return h.nodeName&&h.nodeName.toLowerCase()===b.toLowerCase()}var $e=r.pop,tt=r.sort,Qe=r.splice,Ye="[\\x20\\t\\r\\n\\f]",Oe=new RegExp("^"+Ye+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ye+"+$","g");x.contains=function(h,b){var C=b&&b.parentNode;return h===C||!!(C&&C.nodeType===1&&(h.contains?h.contains(C):h.compareDocumentPosition&&h.compareDocumentPosition(C)&16))};var ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ve(h,b){return b?h==="\0"?"�":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h}x.escapeSelector=function(h){return(h+"").replace(ue,ve)};var ke=R,Le=c;(function(){var h,b,C,P,L,N=Le,V,se,te,pe,_e,Ae=x.expando,Te=0,Be=0,it=An(),Tt=An(),Et=An(),Rn=An(),un=function(J,de){return J===de&&(L=!0),0},Fr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Nr="(?:\\\\[\\da-fA-F]{1,6}"+Ye+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lt="\\["+Ye+"*("+Nr+")(?:"+Ye+"*([*^$|!~]?=)"+Ye+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Nr+"))|)"+Ye+"*\\]",jr=":("+Nr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lt+")*)|.*)\\)|)",jt=new RegExp(Ye+"+","g"),Qt=new RegExp("^"+Ye+"*,"+Ye+"*"),ho=new RegExp("^"+Ye+"*([>+~]|"+Ye+")"+Ye+"*"),po=new RegExp(Ye+"|>"),Tr=new RegExp(jr),D=new RegExp("^"+Nr+"$"),M={ID:new RegExp("^#("+Nr+")"),CLASS:new RegExp("^\\.("+Nr+")"),TAG:new RegExp("^("+Nr+"|[*])"),ATTR:new RegExp("^"+Lt),PSEUDO:new RegExp("^"+jr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ye+"*(even|odd|(([+-]|)(\\d*)n|)"+Ye+"*(?:([+-]|)"+Ye+"*(\\d+)|))"+Ye+"*\\)|)","i"),bool:new RegExp("^(?:"+Fr+")$","i"),needsContext:new RegExp("^"+Ye+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ye+"*((?:-\\d)?\\d*)"+Ye+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,we=/[+~]/,Me=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ye+"?|\\\\([^\\r\\n\\f])","g"),We=function(J,de){var Ce="0x"+J.slice(1)-65536;return de||(Ce<0?String.fromCharCode(Ce+65536):String.fromCharCode(Ce>>10|55296,Ce&1023|56320))},ht=function(){Ai()},_t=mo(function(J){return J.disabled===!0&&ae(J,"fieldset")},{dir:"parentNode",next:"legend"});function St(){try{return V.activeElement}catch{}}try{N.apply(r=o.call(ke.childNodes),ke.childNodes),r[ke.childNodes.length].nodeType}catch{N={apply:function(de,Ce){Le.apply(de,o.call(Ce))},call:function(de){Le.apply(de,o.call(arguments,1))}}}function vt(J,de,Ce,De){var Z,fe,ce,Ie,Fe,st,lt,rt=de&&de.ownerDocument,It=de?de.nodeType:9;if(Ce=Ce||[],typeof J!="string"||!J||It!==1&&It!==9&&It!==11)return Ce;if(!De&&(Ai(de),de=de||V,te)){if(It!==11&&(Fe=be.exec(J)))if(Z=Fe[1]){if(It===9)if(ce=de.getElementById(Z)){if(ce.id===Z)return N.call(Ce,ce),Ce}else return Ce;else if(rt&&(ce=rt.getElementById(Z))&&vt.contains(de,ce)&&ce.id===Z)return N.call(Ce,ce),Ce}else{if(Fe[2])return N.apply(Ce,de.getElementsByTagName(J)),Ce;if((Z=Fe[3])&&de.getElementsByClassName)return N.apply(Ce,de.getElementsByClassName(Z)),Ce}if(!Rn[J+" "]&&(!pe||!pe.test(J))){if(lt=J,rt=de,It===1&&(po.test(J)||ho.test(J))){for(rt=we.test(J)&&Ya(de.parentNode)||de,(rt!=de||!A.scope)&&((Ie=de.getAttribute("id"))?Ie=x.escapeSelector(Ie):de.setAttribute("id",Ie=Ae)),st=is(J),fe=st.length;fe--;)st[fe]=(Ie?"#"+Ie:":scope")+" "+ti(st[fe]);lt=st.join(",")}try{return N.apply(Ce,rt.querySelectorAll(lt)),Ce}catch{Rn(J,!0)}finally{Ie===Ae&&de.removeAttribute("id")}}}return $s(J.replace(Oe,"$1"),de,Ce,De)}function An(){var J=[];function de(Ce,De){return J.push(Ce+" ")>b.cacheLength&&delete de[J.shift()],de[Ce+" "]=De}return de}function bn(J){return J[Ae]=!0,J}function $n(J){var de=V.createElement("fieldset");try{return!!J(de)}catch{return!1}finally{de.parentNode&&de.parentNode.removeChild(de),de=null}}function rs(J){return function(de){return ae(de,"input")&&de.type===J}}function fa(J){return function(de){return(ae(de,"input")||ae(de,"button"))&&de.type===J}}function go(J){return function(de){return"form"in de?de.parentNode&&de.disabled===!1?"label"in de?"label"in de.parentNode?de.parentNode.disabled===J:de.disabled===J:de.isDisabled===J||de.isDisabled!==!J&&_t(de)===J:de.disabled===J:"label"in de?de.disabled===J:!1}}function ei(J){return bn(function(de){return de=+de,bn(function(Ce,De){for(var Z,fe=J([],Ce.length,de),ce=fe.length;ce--;)Ce[Z=fe[ce]]&&(Ce[Z]=!(De[Z]=Ce[Z]))})})}function Ya(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ai(J){var de,Ce=J?J.ownerDocument||J:ke;return Ce==V||Ce.nodeType!==9||!Ce.documentElement||(V=Ce,se=V.documentElement,te=!x.isXMLDoc(V),_e=se.matches||se.webkitMatchesSelector||se.msMatchesSelector,se.msMatchesSelector&&ke!=V&&(de=V.defaultView)&&de.top!==de&&de.addEventListener("unload",ht),A.getById=$n(function(De){return se.appendChild(De).id=x.expando,!V.getElementsByName||!V.getElementsByName(x.expando).length}),A.disconnectedMatch=$n(function(De){return _e.call(De,"*")}),A.scope=$n(function(){return V.querySelectorAll(":scope")}),A.cssHas=$n(function(){try{return V.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(b.filter.ID=function(De){var Z=De.replace(Me,We);return function(fe){return fe.getAttribute("id")===Z}},b.find.ID=function(De,Z){if(typeof Z.getElementById<"u"&&te){var fe=Z.getElementById(De);return fe?[fe]:[]}}):(b.filter.ID=function(De){var Z=De.replace(Me,We);return function(fe){var ce=typeof fe.getAttributeNode<"u"&&fe.getAttributeNode("id");return ce&&ce.value===Z}},b.find.ID=function(De,Z){if(typeof Z.getElementById<"u"&&te){var fe,ce,Ie,Fe=Z.getElementById(De);if(Fe){if(fe=Fe.getAttributeNode("id"),fe&&fe.value===De)return[Fe];for(Ie=Z.getElementsByName(De),ce=0;Fe=Ie[ce++];)if(fe=Fe.getAttributeNode("id"),fe&&fe.value===De)return[Fe]}return[]}}),b.find.TAG=function(De,Z){return typeof Z.getElementsByTagName<"u"?Z.getElementsByTagName(De):Z.querySelectorAll(De)},b.find.CLASS=function(De,Z){if(typeof Z.getElementsByClassName<"u"&&te)return Z.getElementsByClassName(De)},pe=[],$n(function(De){var Z;se.appendChild(De).innerHTML="<a id='"+Ae+"' href='' disabled='disabled'></a><select id='"+Ae+"-\r\\' disabled='disabled'><option selected=''></option></select>",De.querySelectorAll("[selected]").length||pe.push("\\["+Ye+"*(?:value|"+Fr+")"),De.querySelectorAll("[id~="+Ae+"-]").length||pe.push("~="),De.querySelectorAll("a#"+Ae+"+*").length||pe.push(".#.+[+~]"),De.querySelectorAll(":checked").length||pe.push(":checked"),Z=V.createElement("input"),Z.setAttribute("type","hidden"),De.appendChild(Z).setAttribute("name","D"),se.appendChild(De).disabled=!0,De.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),Z=V.createElement("input"),Z.setAttribute("name",""),De.appendChild(Z),De.querySelectorAll("[name='']").length||pe.push("\\["+Ye+"*name"+Ye+"*="+Ye+`*(?:''|"")`)}),A.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),un=function(De,Z){if(De===Z)return L=!0,0;var fe=!De.compareDocumentPosition-!Z.compareDocumentPosition;return fe||(fe=(De.ownerDocument||De)==(Z.ownerDocument||Z)?De.compareDocumentPosition(Z):1,fe&1||!A.sortDetached&&Z.compareDocumentPosition(De)===fe?De===V||De.ownerDocument==ke&&vt.contains(ke,De)?-1:Z===V||Z.ownerDocument==ke&&vt.contains(ke,Z)?1:P?f.call(P,De)-f.call(P,Z):0:fe&4?-1:1)}),V}vt.matches=function(J,de){return vt(J,null,null,de)},vt.matchesSelector=function(J,de){if(Ai(J),te&&!Rn[de+" "]&&(!pe||!pe.test(de)))try{var Ce=_e.call(J,de);if(Ce||A.disconnectedMatch||J.document&&J.document.nodeType!==11)return Ce}catch{Rn(de,!0)}return vt(de,V,null,[J]).length>0},vt.contains=function(J,de){return(J.ownerDocument||J)!=V&&Ai(J),x.contains(J,de)},vt.attr=function(J,de){(J.ownerDocument||J)!=V&&Ai(J);var Ce=b.attrHandle[de.toLowerCase()],De=Ce&&g.call(b.attrHandle,de.toLowerCase())?Ce(J,de,!te):void 0;return De!==void 0?De:J.getAttribute(de)},vt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},x.uniqueSort=function(J){var de,Ce=[],De=0,Z=0;if(L=!A.sortStable,P=!A.sortStable&&o.call(J,0),tt.call(J,un),L){for(;de=J[Z++];)de===J[Z]&&(De=Ce.push(Z));for(;De--;)Qe.call(J,Ce[De],1)}return P=null,J},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},b=x.expr={cacheLength:50,createPseudo:bn,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(J){return J[1]=J[1].replace(Me,We),J[3]=(J[3]||J[4]||J[5]||"").replace(Me,We),J[2]==="~="&&(J[3]=" "+J[3]+" "),J.slice(0,4)},CHILD:function(J){return J[1]=J[1].toLowerCase(),J[1].slice(0,3)==="nth"?(J[3]||vt.error(J[0]),J[4]=+(J[4]?J[5]+(J[6]||1):2*(J[3]==="even"||J[3]==="odd")),J[5]=+(J[7]+J[8]||J[3]==="odd")):J[3]&&vt.error(J[0]),J},PSEUDO:function(J){var de,Ce=!J[6]&&J[2];return M.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Ce&&Tr.test(Ce)&&(de=is(Ce,!0))&&(de=Ce.indexOf(")",Ce.length-de)-Ce.length)&&(J[0]=J[0].slice(0,de),J[2]=Ce.slice(0,de)),J.slice(0,3))}},filter:{TAG:function(J){var de=J.replace(Me,We).toLowerCase();return J==="*"?function(){return!0}:function(Ce){return ae(Ce,de)}},CLASS:function(J){var de=it[J+" "];return de||(de=new RegExp("(^|"+Ye+")"+J+"("+Ye+"|$)"))&&it(J,function(Ce){return de.test(typeof Ce.className=="string"&&Ce.className||typeof Ce.getAttribute<"u"&&Ce.getAttribute("class")||"")})},ATTR:function(J,de,Ce){return function(De){var Z=vt.attr(De,J);return Z==null?de==="!=":de?(Z+="",de==="="?Z===Ce:de==="!="?Z!==Ce:de==="^="?Ce&&Z.indexOf(Ce)===0:de==="*="?Ce&&Z.indexOf(Ce)>-1:de==="$="?Ce&&Z.slice(-Ce.length)===Ce:de==="~="?(" "+Z.replace(jt," ")+" ").indexOf(Ce)>-1:de==="|="?Z===Ce||Z.slice(0,Ce.length+1)===Ce+"-":!1):!0}},CHILD:function(J,de,Ce,De,Z){var fe=J.slice(0,3)!=="nth",ce=J.slice(-4)!=="last",Ie=de==="of-type";return De===1&&Z===0?function(Fe){return!!Fe.parentNode}:function(Fe,st,lt){var rt,It,wt,Vt,Yn,nr=fe!==ce?"nextSibling":"previousSibling",In=Fe.parentNode,zt=Ie&&Fe.nodeName.toLowerCase(),Br=!lt&&!Ie,kt=!1;if(In){if(fe){for(;nr;){for(wt=Fe;wt=wt[nr];)if(Ie?ae(wt,zt):wt.nodeType===1)return!1;Yn=nr=J==="only"&&!Yn&&"nextSibling"}return!0}if(Yn=[ce?In.firstChild:In.lastChild],ce&&Br){for(It=In[Ae]||(In[Ae]={}),rt=It[J]||[],Vt=rt[0]===Te&&rt[1],kt=Vt&&rt[2],wt=Vt&&In.childNodes[Vt];wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop();)if(wt.nodeType===1&&++kt&&wt===Fe){It[J]=[Te,Vt,kt];break}}else if(Br&&(It=Fe[Ae]||(Fe[Ae]={}),rt=It[J]||[],Vt=rt[0]===Te&&rt[1],kt=Vt),kt===!1)for(;(wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop())&&!((Ie?ae(wt,zt):wt.nodeType===1)&&++kt&&(Br&&(It=wt[Ae]||(wt[Ae]={}),It[J]=[Te,kt]),wt===Fe)););return kt-=Z,kt===De||kt%De===0&&kt/De>=0}}},PSEUDO:function(J,de){var Ce,De=b.pseudos[J]||b.setFilters[J.toLowerCase()]||vt.error("unsupported pseudo: "+J);return De[Ae]?De(de):De.length>1?(Ce=[J,J,"",de],b.setFilters.hasOwnProperty(J.toLowerCase())?bn(function(Z,fe){for(var ce,Ie=De(Z,de),Fe=Ie.length;Fe--;)ce=f.call(Z,Ie[Fe]),Z[ce]=!(fe[ce]=Ie[Fe])}):function(Z){return De(Z,0,Ce)}):De}},pseudos:{not:bn(function(J){var de=[],Ce=[],De=pa(J.replace(Oe,"$1"));return De[Ae]?bn(function(Z,fe,ce,Ie){for(var Fe,st=De(Z,null,Ie,[]),lt=Z.length;lt--;)(Fe=st[lt])&&(Z[lt]=!(fe[lt]=Fe))}):function(Z,fe,ce){return de[0]=Z,De(de,null,ce,Ce),de[0]=null,!Ce.pop()}}),has:bn(function(J){return function(de){return vt(J,de).length>0}}),contains:bn(function(J){return J=J.replace(Me,We),function(de){return(de.textContent||x.text(de)).indexOf(J)>-1}}),lang:bn(function(J){return D.test(J||"")||vt.error("unsupported lang: "+J),J=J.replace(Me,We).toLowerCase(),function(de){var Ce;do if(Ce=te?de.lang:de.getAttribute("xml:lang")||de.getAttribute("lang"))return Ce=Ce.toLowerCase(),Ce===J||Ce.indexOf(J+"-")===0;while((de=de.parentNode)&&de.nodeType===1);return!1}}),target:function(J){var de=e.location&&e.location.hash;return de&&de.slice(1)===J.id},root:function(J){return J===se},focus:function(J){return J===St()&&V.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:go(!1),disabled:go(!0),checked:function(J){return ae(J,"input")&&!!J.checked||ae(J,"option")&&!!J.selected},selected:function(J){return J.parentNode&&J.parentNode.selectedIndex,J.selected===!0},empty:function(J){for(J=J.firstChild;J;J=J.nextSibling)if(J.nodeType<6)return!1;return!0},parent:function(J){return!b.pseudos.empty(J)},header:function(J){return Q.test(J.nodeName)},input:function(J){return W.test(J.nodeName)},button:function(J){return ae(J,"input")&&J.type==="button"||ae(J,"button")},text:function(J){var de;return ae(J,"input")&&J.type==="text"&&((de=J.getAttribute("type"))==null||de.toLowerCase()==="text")},first:ei(function(){return[0]}),last:ei(function(J,de){return[de-1]}),eq:ei(function(J,de,Ce){return[Ce<0?Ce+de:Ce]}),even:ei(function(J,de){for(var Ce=0;Ce<de;Ce+=2)J.push(Ce);return J}),odd:ei(function(J,de){for(var Ce=1;Ce<de;Ce+=2)J.push(Ce);return J}),lt:ei(function(J,de,Ce){var De;for(Ce<0?De=Ce+de:Ce>de?De=de:De=Ce;--De>=0;)J.push(De);return J}),gt:ei(function(J,de,Ce){for(var De=Ce<0?Ce+de:Ce;++De<de;)J.push(De);return J})}},b.pseudos.nth=b.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[h]=rs(h);for(h in{submit:!0,reset:!0})b.pseudos[h]=fa(h);function da(){}da.prototype=b.filters=b.pseudos,b.setFilters=new da;function is(J,de){var Ce,De,Z,fe,ce,Ie,Fe,st=Tt[J+" "];if(st)return de?0:st.slice(0);for(ce=J,Ie=[],Fe=b.preFilter;ce;){(!Ce||(De=Qt.exec(ce)))&&(De&&(ce=ce.slice(De[0].length)||ce),Ie.push(Z=[])),Ce=!1,(De=ho.exec(ce))&&(Ce=De.shift(),Z.push({value:Ce,type:De[0].replace(Oe," ")}),ce=ce.slice(Ce.length));for(fe in b.filter)(De=M[fe].exec(ce))&&(!Fe[fe]||(De=Fe[fe](De)))&&(Ce=De.shift(),Z.push({value:Ce,type:fe,matches:De}),ce=ce.slice(Ce.length));if(!Ce)break}return de?ce.length:ce?vt.error(J):Tt(J,Ie).slice(0)}function ti(J){for(var de=0,Ce=J.length,De="";de<Ce;de++)De+=J[de].value;return De}function mo(J,de,Ce){var De=de.dir,Z=de.next,fe=Z||De,ce=Ce&&fe==="parentNode",Ie=Be++;return de.first?function(Fe,st,lt){for(;Fe=Fe[De];)if(Fe.nodeType===1||ce)return J(Fe,st,lt);return!1}:function(Fe,st,lt){var rt,It,wt=[Te,Ie];if(lt){for(;Fe=Fe[De];)if((Fe.nodeType===1||ce)&&J(Fe,st,lt))return!0}else for(;Fe=Fe[De];)if(Fe.nodeType===1||ce)if(It=Fe[Ae]||(Fe[Ae]={}),Z&&ae(Fe,Z))Fe=Fe[De]||Fe;else{if((rt=It[fe])&&rt[0]===Te&&rt[1]===Ie)return wt[2]=rt[2];if(It[fe]=wt,wt[2]=J(Fe,st,lt))return!0}return!1}}function Ga(J){return J.length>1?function(de,Ce,De){for(var Z=J.length;Z--;)if(!J[Z](de,Ce,De))return!1;return!0}:J[0]}function Ou(J,de,Ce){for(var De=0,Z=de.length;De<Z;De++)vt(J,de[De],Ce);return Ce}function ha(J,de,Ce,De,Z){for(var fe,ce=[],Ie=0,Fe=J.length,st=de!=null;Ie<Fe;Ie++)(fe=J[Ie])&&(!Ce||Ce(fe,De,Z))&&(ce.push(fe),st&&de.push(Ie));return ce}function vo(J,de,Ce,De,Z,fe){return De&&!De[Ae]&&(De=vo(De)),Z&&!Z[Ae]&&(Z=vo(Z,fe)),bn(function(ce,Ie,Fe,st){var lt,rt,It,wt,Vt=[],Yn=[],nr=Ie.length,In=ce||Ou(de||"*",Fe.nodeType?[Fe]:Fe,[]),zt=J&&(ce||!de)?ha(In,Vt,J,Fe,st):In;if(Ce?(wt=Z||(ce?J:nr||De)?[]:Ie,Ce(zt,wt,Fe,st)):wt=zt,De)for(lt=ha(wt,Yn),De(lt,[],Fe,st),rt=lt.length;rt--;)(It=lt[rt])&&(wt[Yn[rt]]=!(zt[Yn[rt]]=It));if(ce){if(Z||J){if(Z){for(lt=[],rt=wt.length;rt--;)(It=wt[rt])&<.push(zt[rt]=It);Z(null,wt=[],lt,st)}for(rt=wt.length;rt--;)(It=wt[rt])&&(lt=Z?f.call(ce,It):Vt[rt])>-1&&(ce[lt]=!(Ie[lt]=It))}}else wt=ha(wt===Ie?wt.splice(nr,wt.length):wt),Z?Z(null,Ie,wt,st):N.apply(Ie,wt)})}function cn(J){for(var de,Ce,De,Z=J.length,fe=b.relative[J[0].type],ce=fe||b.relative[" "],Ie=fe?1:0,Fe=mo(function(rt){return rt===de},ce,!0),st=mo(function(rt){return f.call(de,rt)>-1},ce,!0),lt=[function(rt,It,wt){var Vt=!fe&&(wt||It!=C)||((de=It).nodeType?Fe(rt,It,wt):st(rt,It,wt));return de=null,Vt}];Ie<Z;Ie++)if(Ce=b.relative[J[Ie].type])lt=[mo(Ga(lt),Ce)];else{if(Ce=b.filter[J[Ie].type].apply(null,J[Ie].matches),Ce[Ae]){for(De=++Ie;De<Z&&!b.relative[J[De].type];De++);return vo(Ie>1&&Ga(lt),Ie>1&&ti(J.slice(0,Ie-1).concat({value:J[Ie-2].type===" "?"*":""})).replace(Oe,"$1"),Ce,Ie<De&&cn(J.slice(Ie,De)),De<Z&&cn(J=J.slice(De)),De<Z&&ti(J))}lt.push(Ce)}return Ga(lt)}function Al(J,de){var Ce=de.length>0,De=J.length>0,Z=function(fe,ce,Ie,Fe,st){var lt,rt,It,wt=0,Vt="0",Yn=fe&&[],nr=[],In=C,zt=fe||De&&b.find.TAG("*",st),Br=Te+=In==null?1:Math.random()||.1,kt=zt.length;for(st&&(C=ce==V||ce||st);Vt!==kt&&(lt=zt[Vt])!=null;Vt++){if(De&<){for(rt=0,!ce&<.ownerDocument!=V&&(Ai(lt),Ie=!te);It=J[rt++];)if(It(lt,ce||V,Ie)){N.call(Fe,lt);break}st&&(Te=Br)}Ce&&((lt=!It&<)&&wt--,fe&&Yn.push(lt))}if(wt+=Vt,Ce&&Vt!==wt){for(rt=0;It=de[rt++];)It(Yn,nr,ce,Ie);if(fe){if(wt>0)for(;Vt--;)Yn[Vt]||nr[Vt]||(nr[Vt]=$e.call(Fe));nr=ha(nr)}N.apply(Fe,nr),st&&!fe&&nr.length>0&&wt+de.length>1&&x.uniqueSort(Fe)}return st&&(Te=Br,C=In),Yn};return Ce?bn(Z):Z}function pa(J,de){var Ce,De=[],Z=[],fe=Et[J+" "];if(!fe){for(de||(de=is(J)),Ce=de.length;Ce--;)fe=cn(de[Ce]),fe[Ae]?De.push(fe):Z.push(fe);fe=Et(J,Al(Z,De)),fe.selector=J}return fe}function $s(J,de,Ce,De){var Z,fe,ce,Ie,Fe,st=typeof J=="function"&&J,lt=!De&&is(J=st.selector||J);if(Ce=Ce||[],lt.length===1){if(fe=lt[0]=lt[0].slice(0),fe.length>2&&(ce=fe[0]).type==="ID"&&de.nodeType===9&&te&&b.relative[fe[1].type]){if(de=(b.find.ID(ce.matches[0].replace(Me,We),de)||[])[0],de)st&&(de=de.parentNode);else return Ce;J=J.slice(fe.shift().value.length)}for(Z=M.needsContext.test(J)?0:fe.length;Z--&&(ce=fe[Z],!b.relative[Ie=ce.type]);)if((Fe=b.find[Ie])&&(De=Fe(ce.matches[0].replace(Me,We),we.test(fe[0].type)&&Ya(de.parentNode)||de))){if(fe.splice(Z,1),J=De.length&&ti(fe),!J)return N.apply(Ce,De),Ce;break}}return(st||pa(J,lt))(De,de,!te,Ce,!de||we.test(J)&&Ya(de.parentNode)||de),Ce}A.sortStable=Ae.split("").sort(un).join("")===Ae,Ai(),A.sortDetached=$n(function(J){return J.compareDocumentPosition(V.createElement("fieldset"))&1}),x.find=vt,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,vt.compile=pa,vt.select=$s,vt.setDocument=Ai,vt.tokenize=is,vt.escape=x.escapeSelector,vt.getText=x.text,vt.isXML=x.isXMLDoc,vt.selectors=x.expr,vt.support=x.support,vt.uniqueSort=x.uniqueSort})();var et=function(h,b,C){for(var P=[],L=C!==void 0;(h=h[b])&&h.nodeType!==9;)if(h.nodeType===1){if(L&&x(h).is(C))break;P.push(h)}return P},me=function(h,b){for(var C=[];h;h=h.nextSibling)h.nodeType===1&&h!==b&&C.push(h);return C},Se=x.expr.match.needsContext,je=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ue(h,b,C){return I(b)?x.grep(h,function(P,L){return!!b.call(P,L,P)!==C}):b.nodeType?x.grep(h,function(P){return P===b!==C}):typeof b!="string"?x.grep(h,function(P){return f.call(b,P)>-1!==C}):x.filter(b,h,C)}x.filter=function(h,b,C){var P=b[0];return C&&(h=":not("+h+")"),b.length===1&&P.nodeType===1?x.find.matchesSelector(P,h)?[P]:[]:x.find.matches(h,x.grep(b,function(L){return L.nodeType===1}))},x.fn.extend({find:function(h){var b,C,P=this.length,L=this;if(typeof h!="string")return this.pushStack(x(h).filter(function(){for(b=0;b<P;b++)if(x.contains(L[b],this))return!0}));for(C=this.pushStack([]),b=0;b<P;b++)x.find(h,L[b],C);return P>1?x.uniqueSort(C):C},filter:function(h){return this.pushStack(Ue(this,h||[],!1))},not:function(h){return this.pushStack(Ue(this,h||[],!0))},is:function(h){return!!Ue(this,typeof h=="string"&&Se.test(h)?x(h):h||[],!1).length}});var Ge,Ze=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Xe=x.fn.init=function(h,b,C){var P,L;if(!h)return this;if(C=C||Ge,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?P=[null,h,null]:P=Ze.exec(h),P&&(P[1]||!b))if(P[1]){if(b=b instanceof x?b[0]:b,x.merge(this,x.parseHTML(P[1],b&&b.nodeType?b.ownerDocument||b:R,!0)),je.test(P[1])&&x.isPlainObject(b))for(P in b)I(this[P])?this[P](b[P]):this.attr(P,b[P]);return this}else return L=R.getElementById(P[2]),L&&(this[0]=L,this.length=1),this;else return!b||b.jquery?(b||C).find(h):this.constructor(b).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(I(h))return C.ready!==void 0?C.ready(h):h(x)}return x.makeArray(h,this)};Xe.prototype=x.fn,Ge=x(R);var ot=/^(?:parents|prev(?:Until|All))/,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({has:function(h){var b=x(h,this),C=b.length;return this.filter(function(){for(var P=0;P<C;P++)if(x.contains(this,b[P]))return!0})},closest:function(h,b){var C,P=0,L=this.length,N=[],V=typeof h!="string"&&x(h);if(!Se.test(h)){for(;P<L;P++)for(C=this[P];C&&C!==b;C=C.parentNode)if(C.nodeType<11&&(V?V.index(C)>-1:C.nodeType===1&&x.find.matchesSelector(C,h))){N.push(C);break}}return this.pushStack(N.length>1?x.uniqueSort(N):N)},index:function(h){return h?typeof h=="string"?f.call(x(h),this[0]):f.call(this,h.jquery?h[0]:h):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(h,b){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(h,b))))},addBack:function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}});function pt(h,b){for(;(h=h[b])&&h.nodeType!==1;);return h}x.each({parent:function(h){var b=h.parentNode;return b&&b.nodeType!==11?b:null},parents:function(h){return et(h,"parentNode")},parentsUntil:function(h,b,C){return et(h,"parentNode",C)},next:function(h){return pt(h,"nextSibling")},prev:function(h){return pt(h,"previousSibling")},nextAll:function(h){return et(h,"nextSibling")},prevAll:function(h){return et(h,"previousSibling")},nextUntil:function(h,b,C){return et(h,"nextSibling",C)},prevUntil:function(h,b,C){return et(h,"previousSibling",C)},siblings:function(h){return me((h.parentNode||{}).firstChild,h)},children:function(h){return me(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(ae(h,"template")&&(h=h.content||h),x.merge([],h.childNodes))}},function(h,b){x.fn[h]=function(C,P){var L=x.map(this,b,C);return h.slice(-5)!=="Until"&&(P=C),P&&typeof P=="string"&&(L=x.filter(P,L)),this.length>1&&(ct[h]||x.uniqueSort(L),ot.test(h)&&L.reverse()),this.pushStack(L)}});var ft=/[^\x20\t\r\n\f]+/g;function yt(h){var b={};return x.each(h.match(ft)||[],function(C,P){b[P]=!0}),b}x.Callbacks=function(h){h=typeof h=="string"?yt(h):x.extend({},h);var b,C,P,L,N=[],V=[],se=-1,te=function(){for(L=L||h.once,P=b=!0;V.length;se=-1)for(C=V.shift();++se<N.length;)N[se].apply(C[0],C[1])===!1&&h.stopOnFalse&&(se=N.length,C=!1);h.memory||(C=!1),b=!1,L&&(C?N=[]:N="")},pe={add:function(){return N&&(C&&!b&&(se=N.length-1,V.push(C)),function _e(Ae){x.each(Ae,function(Te,Be){I(Be)?(!h.unique||!pe.has(Be))&&N.push(Be):Be&&Be.length&&ne(Be)!=="string"&&_e(Be)})}(arguments),C&&!b&&te()),this},remove:function(){return x.each(arguments,function(_e,Ae){for(var Te;(Te=x.inArray(Ae,N,Te))>-1;)N.splice(Te,1),Te<=se&&se--}),this},has:function(_e){return _e?x.inArray(_e,N)>-1:N.length>0},empty:function(){return N&&(N=[]),this},disable:function(){return L=V=[],N=C="",this},disabled:function(){return!N},lock:function(){return L=V=[],!C&&!b&&(N=C=""),this},locked:function(){return!!L},fireWith:function(_e,Ae){return L||(Ae=Ae||[],Ae=[_e,Ae.slice?Ae.slice():Ae],V.push(Ae),b||te()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!P}};return pe};function Je(h){return h}function At(h){throw h}function Mt(h,b,C,P){var L;try{h&&I(L=h.promise)?L.call(h).done(b).fail(C):h&&I(L=h.then)?L.call(h,b,C):b.apply(void 0,[h].slice(P))}catch(N){C.apply(void 0,[N])}}x.extend({Deferred:function(h){var b=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],C="pending",P={state:function(){return C},always:function(){return L.done(arguments).fail(arguments),this},catch:function(N){return P.then(null,N)},pipe:function(){var N=arguments;return x.Deferred(function(V){x.each(b,function(se,te){var pe=I(N[te[4]])&&N[te[4]];L[te[1]](function(){var _e=pe&&pe.apply(this,arguments);_e&&I(_e.promise)?_e.promise().progress(V.notify).done(V.resolve).fail(V.reject):V[te[0]+"With"](this,pe?[_e]:arguments)})}),N=null}).promise()},then:function(N,V,se){var te=0;function pe(_e,Ae,Te,Be){return function(){var it=this,Tt=arguments,Et=function(){var un,Fr;if(!(_e<te)){if(un=Te.apply(it,Tt),un===Ae.promise())throw new TypeError("Thenable self-resolution");Fr=un&&(typeof un=="object"||typeof un=="function")&&un.then,I(Fr)?Be?Fr.call(un,pe(te,Ae,Je,Be),pe(te,Ae,At,Be)):(te++,Fr.call(un,pe(te,Ae,Je,Be),pe(te,Ae,At,Be),pe(te,Ae,Je,Ae.notifyWith))):(Te!==Je&&(it=void 0,Tt=[un]),(Be||Ae.resolveWith)(it,Tt))}},Rn=Be?Et:function(){try{Et()}catch(un){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(un,Rn.error),_e+1>=te&&(Te!==At&&(it=void 0,Tt=[un]),Ae.rejectWith(it,Tt))}};_e?Rn():(x.Deferred.getErrorHook?Rn.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(Rn.error=x.Deferred.getStackHook()),e.setTimeout(Rn))}}return x.Deferred(function(_e){b[0][3].add(pe(0,_e,I(se)?se:Je,_e.notifyWith)),b[1][3].add(pe(0,_e,I(N)?N:Je)),b[2][3].add(pe(0,_e,I(V)?V:At))}).promise()},promise:function(N){return N!=null?x.extend(N,P):P}},L={};return x.each(b,function(N,V){var se=V[2],te=V[5];P[V[1]]=se.add,te&&se.add(function(){C=te},b[3-N][2].disable,b[3-N][3].disable,b[0][2].lock,b[0][3].lock),se.add(V[3].fire),L[V[0]]=function(){return L[V[0]+"With"](this===L?void 0:this,arguments),this},L[V[0]+"With"]=se.fireWith}),P.promise(L),h&&h.call(L,L),L},when:function(h){var b=arguments.length,C=b,P=Array(C),L=o.call(arguments),N=x.Deferred(),V=function(se){return function(te){P[se]=this,L[se]=arguments.length>1?o.call(arguments):te,--b||N.resolveWith(P,L)}};if(b<=1&&(Mt(h,N.done(V(C)).resolve,N.reject,!b),N.state()==="pending"||I(L[C]&&L[C].then)))return N.then();for(;C--;)Mt(L[C],V(C),N.reject);return N.promise()}});var Vn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(h,b){e.console&&e.console.warn&&h&&Vn.test(h.name)&&e.console.warn("jQuery.Deferred exception: "+h.message,h.stack,b)},x.readyException=function(h){e.setTimeout(function(){throw h})};var vr=x.Deferred();x.fn.ready=function(h){return vr.then(h).catch(function(b){x.readyException(b)}),this},x.extend({isReady:!1,readyWait:1,ready:function(h){(h===!0?--x.readyWait:x.isReady)||(x.isReady=!0,!(h!==!0&&--x.readyWait>0)&&vr.resolveWith(R,[x]))}}),x.ready.then=vr.then;function Hn(){R.removeEventListener("DOMContentLoaded",Hn),e.removeEventListener("load",Hn),x.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?e.setTimeout(x.ready):(R.addEventListener("DOMContentLoaded",Hn),e.addEventListener("load",Hn));var Sn=function(h,b,C,P,L,N,V){var se=0,te=h.length,pe=C==null;if(ne(C)==="object"){L=!0;for(se in C)Sn(h,b,se,C[se],!0,N,V)}else if(P!==void 0&&(L=!0,I(P)||(V=!0),pe&&(V?(b.call(h,P),b=null):(pe=b,b=function(_e,Ae,Te){return pe.call(x(_e),Te)})),b))for(;se<te;se++)b(h[se],C,V?P:P.call(h[se],se,b(h[se],C)));return L?h:pe?b.call(h):te?b(h[0],C):N},$i=/^-ms-/,Dr=/-([a-z])/g;function Jn(h,b){return b.toUpperCase()}function sn(h){return h.replace($i,"ms-").replace(Dr,Jn)}var fn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function dn(){this.expando=x.expando+dn.uid++}dn.uid=1,dn.prototype={cache:function(h){var b=h[this.expando];return b||(b={},fn(h)&&(h.nodeType?h[this.expando]=b:Object.defineProperty(h,this.expando,{value:b,configurable:!0}))),b},set:function(h,b,C){var P,L=this.cache(h);if(typeof b=="string")L[sn(b)]=C;else for(P in b)L[sn(P)]=b[P];return L},get:function(h,b){return b===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(b)]},access:function(h,b,C){return b===void 0||b&&typeof b=="string"&&C===void 0?this.get(h,b):(this.set(h,b,C),C!==void 0?C:b)},remove:function(h,b){var C,P=h[this.expando];if(P!==void 0){if(b!==void 0)for(Array.isArray(b)?b=b.map(sn):(b=sn(b),b=b in P?[b]:b.match(ft)||[]),C=b.length;C--;)delete P[b[C]];(b===void 0||x.isEmptyObject(P))&&(h.nodeType?h[this.expando]=void 0:delete h[this.expando])}},hasData:function(h){var b=h[this.expando];return b!==void 0&&!x.isEmptyObject(b)}};var ut=new dn,Dn=new dn,si=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,on=/[A-Z]/g;function Vi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:si.test(h)?JSON.parse(h):h}function Hi(h,b,C){var P;if(C===void 0&&h.nodeType===1)if(P="data-"+b.replace(on,"-$&").toLowerCase(),C=h.getAttribute(P),typeof C=="string"){try{C=Vi(C)}catch{}Dn.set(h,b,C)}else C=void 0;return C}x.extend({hasData:function(h){return Dn.hasData(h)||ut.hasData(h)},data:function(h,b,C){return Dn.access(h,b,C)},removeData:function(h,b){Dn.remove(h,b)},_data:function(h,b,C){return ut.access(h,b,C)},_removeData:function(h,b){ut.remove(h,b)}}),x.fn.extend({data:function(h,b){var C,P,L,N=this[0],V=N&&N.attributes;if(h===void 0){if(this.length&&(L=Dn.get(N),N.nodeType===1&&!ut.get(N,"hasDataAttrs"))){for(C=V.length;C--;)V[C]&&(P=V[C].name,P.indexOf("data-")===0&&(P=sn(P.slice(5)),Hi(N,P,L[P])));ut.set(N,"hasDataAttrs",!0)}return L}return typeof h=="object"?this.each(function(){Dn.set(this,h)}):Sn(this,function(se){var te;if(N&&se===void 0)return te=Dn.get(N,h),te!==void 0||(te=Hi(N,h),te!==void 0)?te:void 0;this.each(function(){Dn.set(this,h,se)})},null,b,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){Dn.remove(this,h)})}}),x.extend({queue:function(h,b,C){var P;if(h)return b=(b||"fx")+"queue",P=ut.get(h,b),C&&(!P||Array.isArray(C)?P=ut.access(h,b,x.makeArray(C)):P.push(C)),P||[]},dequeue:function(h,b){b=b||"fx";var C=x.queue(h,b),P=C.length,L=C.shift(),N=x._queueHooks(h,b),V=function(){x.dequeue(h,b)};L==="inprogress"&&(L=C.shift(),P--),L&&(b==="fx"&&C.unshift("inprogress"),delete N.stop,L.call(h,V,N)),!P&&N&&N.empty.fire()},_queueHooks:function(h,b){var C=b+"queueHooks";return ut.get(h,C)||ut.access(h,C,{empty:x.Callbacks("once memory").add(function(){ut.remove(h,[b+"queue",C])})})}}),x.fn.extend({queue:function(h,b){var C=2;return typeof h!="string"&&(b=h,h="fx",C--),arguments.length<C?x.queue(this[0],h):b===void 0?this:this.each(function(){var P=x.queue(this,h,b);x._queueHooks(this,h),h==="fx"&&P[0]!=="inprogress"&&x.dequeue(this,h)})},dequeue:function(h){return this.each(function(){x.dequeue(this,h)})},clearQueue:function(h){return this.queue(h||"fx",[])},promise:function(h,b){var C,P=1,L=x.Deferred(),N=this,V=this.length,se=function(){--P||L.resolveWith(N,[N])};for(typeof h!="string"&&(b=h,h=void 0),h=h||"fx";V--;)C=ut.get(N[V],h+"queueHooks"),C&&C.empty&&(P++,C.empty.add(se));return se(),L.promise(b)}});var Ui=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pr=new RegExp("^(?:([+-])=|)("+Ui+")([a-z%]*)$","i"),Nn=["Top","Right","Bottom","Left"],Or=R.documentElement,yr=function(h){return x.contains(h.ownerDocument,h)},Yr={composed:!0};Or.getRootNode&&(yr=function(h){return x.contains(h.ownerDocument,h)||h.getRootNode(Yr)===h.ownerDocument});var Gr=function(h,b){return h=b||h,h.style.display==="none"||h.style.display===""&&yr(h)&&x.css(h,"display")==="none"};function Ao(h,b,C,P){var L,N,V=20,se=P?function(){return P.cur()}:function(){return x.css(h,b,"")},te=se(),pe=C&&C[3]||(x.cssNumber[b]?"":"px"),_e=h.nodeType&&(x.cssNumber[b]||pe!=="px"&&+te)&&Pr.exec(x.css(h,b));if(_e&&_e[3]!==pe){for(te=te/2,pe=pe||_e[3],_e=+te||1;V--;)x.style(h,b,_e+pe),(1-N)*(1-(N=se()/te||.5))<=0&&(V=0),_e=_e/N;_e=_e*2,x.style(h,b,_e+pe),C=C||[]}return C&&(_e=+_e||+te||0,L=C[1]?_e+(C[1]+1)*C[2]:+C[2],P&&(P.unit=pe,P.start=_e,P.end=L)),L}var Un={};function qr(h){var b,C=h.ownerDocument,P=h.nodeName,L=Un[P];return L||(b=C.body.appendChild(C.createElement(P)),L=x.css(b,"display"),b.parentNode.removeChild(b),L==="none"&&(L="block"),Un[P]=L,L)}function Qn(h,b){for(var C,P,L=[],N=0,V=h.length;N<V;N++)P=h[N],P.style&&(C=P.style.display,b?(C==="none"&&(L[N]=ut.get(P,"display")||null,L[N]||(P.style.display="")),P.style.display===""&&Gr(P)&&(L[N]=qr(P))):C!=="none"&&(L[N]="none",ut.set(P,"display",C)));for(N=0;N<V;N++)L[N]!=null&&(h[N].style.display=L[N]);return h}x.fn.extend({show:function(){return Qn(this,!0)},hide:function(){return Qn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Gr(this)?x(this).show():x(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,ai=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Wi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=R.createDocumentFragment(),b=h.appendChild(R.createElement("div")),C=R.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),b.appendChild(C),A.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML="<option></option>",A.option=!!b.lastChild})();var Pn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Pn.tbody=Pn.tfoot=Pn.colgroup=Pn.caption=Pn.thead,Pn.th=Pn.td,A.option||(Pn.optgroup=Pn.option=[1,"<select multiple='multiple'>","</select>"]);function hn(h,b){var C;return typeof h.getElementsByTagName<"u"?C=h.getElementsByTagName(b||"*"):typeof h.querySelectorAll<"u"?C=h.querySelectorAll(b||"*"):C=[],b===void 0||b&&ae(h,b)?x.merge([h],C):C}function li(h,b){for(var C=0,P=h.length;C<P;C++)ut.set(h[C],"globalEval",!b||ut.get(b[C],"globalEval"))}var ui=/<|&#?\w+;/;function Tn(h,b,C,P,L){for(var N,V,se,te,pe,_e,Ae=b.createDocumentFragment(),Te=[],Be=0,it=h.length;Be<it;Be++)if(N=h[Be],N||N===0)if(ne(N)==="object")x.merge(Te,N.nodeType?[N]:N);else if(!ui.test(N))Te.push(b.createTextNode(N));else{for(V=V||Ae.appendChild(b.createElement("div")),se=(ai.exec(N)||["",""])[1].toLowerCase(),te=Pn[se]||Pn._default,V.innerHTML=te[1]+x.htmlPrefilter(N)+te[2],_e=te[0];_e--;)V=V.lastChild;x.merge(Te,V.childNodes),V=Ae.firstChild,V.textContent=""}for(Ae.textContent="",Be=0;N=Te[Be++];){if(P&&x.inArray(N,P)>-1){L&&L.push(N);continue}if(pe=yr(N),V=hn(Ae.appendChild(N),"script"),pe&&li(V),C)for(_e=0;N=V[_e++];)Wi.test(N.type||"")&&C.push(N)}return Ae}var so=/^([^.]*)(?:\.(.+)|)/;function br(){return!0}function ci(){return!1}function an(h,b,C,P,L,N){var V,se;if(typeof b=="object"){typeof C!="string"&&(P=P||C,C=void 0);for(se in b)an(h,se,C,P,b[se],N);return h}if(P==null&&L==null?(L=C,P=C=void 0):L==null&&(typeof C=="string"?(L=P,P=void 0):(L=P,P=C,C=void 0)),L===!1)L=ci;else if(!L)return h;return N===1&&(V=L,L=function(te){return x().off(te),V.apply(this,arguments)},L.guid=V.guid||(V.guid=x.guid++)),h.each(function(){x.event.add(this,b,L,P,C)})}x.event={global:{},add:function(h,b,C,P,L){var N,V,se,te,pe,_e,Ae,Te,Be,it,Tt,Et=ut.get(h);if(fn(h))for(C.handler&&(N=C,C=N.handler,L=N.selector),L&&x.find.matchesSelector(Or,L),C.guid||(C.guid=x.guid++),(te=Et.events)||(te=Et.events=Object.create(null)),(V=Et.handle)||(V=Et.handle=function(Rn){return typeof x<"u"&&x.event.triggered!==Rn.type?x.event.dispatch.apply(h,arguments):void 0}),b=(b||"").match(ft)||[""],pe=b.length;pe--;)se=so.exec(b[pe])||[],Be=Tt=se[1],it=(se[2]||"").split(".").sort(),Be&&(Ae=x.event.special[Be]||{},Be=(L?Ae.delegateType:Ae.bindType)||Be,Ae=x.event.special[Be]||{},_e=x.extend({type:Be,origType:Tt,data:P,handler:C,guid:C.guid,selector:L,needsContext:L&&x.expr.match.needsContext.test(L),namespace:it.join(".")},N),(Te=te[Be])||(Te=te[Be]=[],Te.delegateCount=0,(!Ae.setup||Ae.setup.call(h,P,it,V)===!1)&&h.addEventListener&&h.addEventListener(Be,V)),Ae.add&&(Ae.add.call(h,_e),_e.handler.guid||(_e.handler.guid=C.guid)),L?Te.splice(Te.delegateCount++,0,_e):Te.push(_e),x.event.global[Be]=!0)},remove:function(h,b,C,P,L){var N,V,se,te,pe,_e,Ae,Te,Be,it,Tt,Et=ut.hasData(h)&&ut.get(h);if(!(!Et||!(te=Et.events))){for(b=(b||"").match(ft)||[""],pe=b.length;pe--;){if(se=so.exec(b[pe])||[],Be=Tt=se[1],it=(se[2]||"").split(".").sort(),!Be){for(Be in te)x.event.remove(h,Be+b[pe],C,P,!0);continue}for(Ae=x.event.special[Be]||{},Be=(P?Ae.delegateType:Ae.bindType)||Be,Te=te[Be]||[],se=se[2]&&new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"),V=N=Te.length;N--;)_e=Te[N],(L||Tt===_e.origType)&&(!C||C.guid===_e.guid)&&(!se||se.test(_e.namespace))&&(!P||P===_e.selector||P==="**"&&_e.selector)&&(Te.splice(N,1),_e.selector&&Te.delegateCount--,Ae.remove&&Ae.remove.call(h,_e));V&&!Te.length&&((!Ae.teardown||Ae.teardown.call(h,it,Et.handle)===!1)&&x.removeEvent(h,Be,Et.handle),delete te[Be])}x.isEmptyObject(te)&&ut.remove(h,"handle events")}},dispatch:function(h){var b,C,P,L,N,V,se=new Array(arguments.length),te=x.event.fix(h),pe=(ut.get(this,"events")||Object.create(null))[te.type]||[],_e=x.event.special[te.type]||{};for(se[0]=te,b=1;b<arguments.length;b++)se[b]=arguments[b];if(te.delegateTarget=this,!(_e.preDispatch&&_e.preDispatch.call(this,te)===!1)){for(V=x.event.handlers.call(this,te,pe),b=0;(L=V[b++])&&!te.isPropagationStopped();)for(te.currentTarget=L.elem,C=0;(N=L.handlers[C++])&&!te.isImmediatePropagationStopped();)(!te.rnamespace||N.namespace===!1||te.rnamespace.test(N.namespace))&&(te.handleObj=N,te.data=N.data,P=((x.event.special[N.origType]||{}).handle||N.handler).apply(L.elem,se),P!==void 0&&(te.result=P)===!1&&(te.preventDefault(),te.stopPropagation()));return _e.postDispatch&&_e.postDispatch.call(this,te),te.result}},handlers:function(h,b){var C,P,L,N,V,se=[],te=b.delegateCount,pe=h.target;if(te&&pe.nodeType&&!(h.type==="click"&&h.button>=1)){for(;pe!==this;pe=pe.parentNode||this)if(pe.nodeType===1&&!(h.type==="click"&&pe.disabled===!0)){for(N=[],V={},C=0;C<te;C++)P=b[C],L=P.selector+" ",V[L]===void 0&&(V[L]=P.needsContext?x(L,this).index(pe)>-1:x.find(L,this,null,[pe]).length),V[L]&&N.push(P);N.length&&se.push({elem:pe,handlers:N})}}return pe=this,te<b.length&&se.push({elem:pe,handlers:b.slice(te)}),se},addProp:function(h,b){Object.defineProperty(x.Event.prototype,h,{enumerable:!0,configurable:!0,get:I(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(C){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(h){return h[x.expando]?h:new x.Event(h)},special:{load:{noBubble:!0},click:{setup:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&ae(b,"input")&&Di(b,"click",!0),!1},trigger:function(h){var b=this||h;return Wt.test(b.type)&&b.click&&ae(b,"input")&&Di(b,"click"),!0},_default:function(h){var b=h.target;return Wt.test(b.type)&&b.click&&ae(b,"input")&&ut.get(b,"click")||ae(b,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function Di(h,b,C){if(!C){ut.get(h,b)===void 0&&x.event.add(h,b,br);return}ut.set(h,b,!1),x.event.add(h,b,{namespace:!1,handler:function(P){var L,N=ut.get(this,b);if(P.isTrigger&1&&this[b]){if(N)(x.event.special[b]||{}).delegateType&&P.stopPropagation();else if(N=o.call(arguments),ut.set(this,b,N),this[b](),L=ut.get(this,b),ut.set(this,b,!1),N!==L)return P.stopImmediatePropagation(),P.preventDefault(),L}else N&&(ut.set(this,b,x.event.trigger(N[0],N.slice(1),this)),P.stopPropagation(),P.isImmediatePropagationStopped=br)}})}x.removeEvent=function(h,b,C){h.removeEventListener&&h.removeEventListener(b,C)},x.Event=function(h,b){if(!(this instanceof x.Event))return new x.Event(h,b);h&&h.type?(this.originalEvent=h,this.type=h.type,this.isDefaultPrevented=h.defaultPrevented||h.defaultPrevented===void 0&&h.returnValue===!1?br:ci,this.target=h.target&&h.target.nodeType===3?h.target.parentNode:h.target,this.currentTarget=h.currentTarget,this.relatedTarget=h.relatedTarget):this.type=h,b&&x.extend(this,b),this.timeStamp=h&&h.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:ci,isPropagationStopped:ci,isImmediatePropagationStopped:ci,isSimulated:!1,preventDefault:function(){var h=this.originalEvent;this.isDefaultPrevented=br,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=br,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=br,h&&!this.isSimulated&&h.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(h,b){function C(P){if(R.documentMode){var L=ut.get(this,"handle"),N=x.event.fix(P);N.type=P.type==="focusin"?"focus":"blur",N.isSimulated=!0,L(P),N.target===N.currentTarget&&L(N)}else x.event.simulate(b,P.target,x.event.fix(P))}x.event.special[h]={setup:function(){var P;if(Di(this,h,!0),R.documentMode)P=ut.get(this,b),P||this.addEventListener(b,C),ut.set(this,b,(P||0)+1);else return!1},trigger:function(){return Di(this,h),!0},teardown:function(){var P;if(R.documentMode)P=ut.get(this,b)-1,P?ut.set(this,b,P):(this.removeEventListener(b,C),ut.remove(this,b));else return!1},_default:function(P){return ut.get(P.target,h)},delegateType:b},x.event.special[b]={setup:function(){var P=this.ownerDocument||this.document||this,L=R.documentMode?this:P,N=ut.get(L,b);N||(R.documentMode?this.addEventListener(b,C):P.addEventListener(h,C,!0)),ut.set(L,b,(N||0)+1)},teardown:function(){var P=this.ownerDocument||this.document||this,L=R.documentMode?this:P,N=ut.get(L,b)-1;N?ut.set(L,b,N):(R.documentMode?this.removeEventListener(b,C):P.removeEventListener(h,C,!0),ut.remove(L,b))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,b){x.event.special[h]={delegateType:b,bindType:b,handle:function(C){var P,L=this,N=C.relatedTarget,V=C.handleObj;return(!N||N!==L&&!x.contains(L,N))&&(C.type=V.origType,P=V.handler.apply(this,arguments),C.type=b),P}}}),x.fn.extend({on:function(h,b,C,P){return an(this,h,b,C,P)},one:function(h,b,C,P){return an(this,h,b,C,P,1)},off:function(h,b,C){var P,L;if(h&&h.preventDefault&&h.handleObj)return P=h.handleObj,x(h.delegateTarget).off(P.namespace?P.origType+"."+P.namespace:P.origType,P.selector,P.handler),this;if(typeof h=="object"){for(L in h)this.off(L,b,h[L]);return this}return(b===!1||typeof b=="function")&&(C=b,b=void 0),C===!1&&(C=ci),this.each(function(){x.event.remove(this,h,C,b)})}});var Ls=/<script|<style|<link/i,Fs=/checked\s*(?:[^=]|=\s*.checked.)/i,Xr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,b){return ae(h,"table")&&ae(b.nodeType!==11?b:b.firstChild,"tr")&&x(h).children("tbody")[0]||h}function lo(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Pi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function er(h,b){var C,P,L,N,V,se,te;if(b.nodeType===1){if(ut.hasData(h)&&(N=ut.get(h),te=N.events,te)){ut.remove(b,"handle events");for(L in te)for(C=0,P=te[L].length;C<P;C++)x.event.add(b,L,te[L][C])}Dn.hasData(h)&&(V=Dn.access(h),se=x.extend({},V),Dn.set(b,se))}}function _r(h,b){var C=b.nodeName.toLowerCase();C==="input"&&Wt.test(h.type)?b.checked=h.checked:(C==="input"||C==="textarea")&&(b.defaultValue=h.defaultValue)}function Rr(h,b,C,P){b=a(b);var L,N,V,se,te,pe,_e=0,Ae=h.length,Te=Ae-1,Be=b[0],it=I(Be);if(it||Ae>1&&typeof Be=="string"&&!A.checkClone&&Fs.test(Be))return h.each(function(Tt){var Et=h.eq(Tt);it&&(b[0]=Be.call(this,Tt,Et.html())),Rr(Et,b,C,P)});if(Ae&&(L=Tn(b,h[0].ownerDocument,!1,h,P),N=L.firstChild,L.childNodes.length===1&&(L=N),N||P)){for(V=x.map(hn(L,"script"),lo),se=V.length;_e<Ae;_e++)te=L,_e!==Te&&(te=x.clone(te,!0,!0),se&&x.merge(V,hn(te,"script"))),C.call(h[_e],te,_e);if(se)for(pe=V[V.length-1].ownerDocument,x.map(V,Pi),_e=0;_e<se;_e++)te=V[_e],Wi.test(te.type||"")&&!ut.access(te,"globalEval")&&x.contains(pe,te)&&(te.src&&(te.type||"").toLowerCase()!=="module"?x._evalUrl&&!te.noModule&&x._evalUrl(te.src,{nonce:te.nonce||te.getAttribute("nonce")},pe):H(te.textContent.replace(Xr,""),te,pe))}return h}function fi(h,b,C){for(var P,L=b?x.filter(b,h):h,N=0;(P=L[N])!=null;N++)!C&&P.nodeType===1&&x.cleanData(hn(P)),P.parentNode&&(C&&yr(P)&&li(hn(P,"script")),P.parentNode.removeChild(P));return h}x.extend({htmlPrefilter:function(h){return h},clone:function(h,b,C){var P,L,N,V,se=h.cloneNode(!0),te=yr(h);if(!A.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!x.isXMLDoc(h))for(V=hn(se),N=hn(h),P=0,L=N.length;P<L;P++)_r(N[P],V[P]);if(b)if(C)for(N=N||hn(h),V=V||hn(se),P=0,L=N.length;P<L;P++)er(N[P],V[P]);else er(h,se);return V=hn(se,"script"),V.length>0&&li(V,!te&&hn(h,"script")),se},cleanData:function(h){for(var b,C,P,L=x.event.special,N=0;(C=h[N])!==void 0;N++)if(fn(C)){if(b=C[ut.expando]){if(b.events)for(P in b.events)L[P]?x.event.remove(C,P):x.removeEvent(C,P,b.handle);C[ut.expando]=void 0}C[Dn.expando]&&(C[Dn.expando]=void 0)}}}),x.fn.extend({detach:function(h){return fi(this,h,!0)},remove:function(h){return fi(this,h)},text:function(h){return Sn(this,function(b){return b===void 0?x.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=b)})},null,h,arguments.length)},append:function(){return Rr(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.appendChild(h)}})},prepend:function(){return Rr(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var b=ao(this,h);b.insertBefore(h,b.firstChild)}})},before:function(){return Rr(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return Rr(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling)})},empty:function(){for(var h,b=0;(h=this[b])!=null;b++)h.nodeType===1&&(x.cleanData(hn(h,!1)),h.textContent="");return this},clone:function(h,b){return h=h??!1,b=b??h,this.map(function(){return x.clone(this,h,b)})},html:function(h){return Sn(this,function(b){var C=this[0]||{},P=0,L=this.length;if(b===void 0&&C.nodeType===1)return C.innerHTML;if(typeof b=="string"&&!Ls.test(b)&&!Pn[(ai.exec(b)||["",""])[1].toLowerCase()]){b=x.htmlPrefilter(b);try{for(;P<L;P++)C=this[P]||{},C.nodeType===1&&(x.cleanData(hn(C,!1)),C.innerHTML=b);C=0}catch{}}C&&this.empty().append(b)},null,h,arguments.length)},replaceWith:function(){var h=[];return Rr(this,arguments,function(b){var C=this.parentNode;x.inArray(this,h)<0&&(x.cleanData(hn(this)),C&&C.replaceChild(b,this))},h)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,b){x.fn[h]=function(C){for(var P,L=[],N=x(C),V=N.length-1,se=0;se<=V;se++)P=se===V?this:this.clone(!0),x(N[se])[b](P),c.apply(L,P.get());return this.pushStack(L)}});var Kr=new RegExp("^("+Ui+")(?!px)[a-z%]+$","i"),wr=/^--/,Ar=function(h){var b=h.ownerDocument.defaultView;return(!b||!b.opener)&&(b=e),b.getComputedStyle(h)},tr=function(h,b,C){var P,L,N={};for(L in b)N[L]=h.style[L],h.style[L]=b[L];P=C.call(h);for(L in b)h.style[L]=N[L];return P},zi=new RegExp(Nn.join("|"),"i");(function(){function h(){if(pe){te.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",pe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Or.appendChild(te).appendChild(pe);var _e=e.getComputedStyle(pe);C=_e.top!=="1%",se=b(_e.marginLeft)===12,pe.style.right="60%",N=b(_e.right)===36,P=b(_e.width)===36,pe.style.position="absolute",L=b(pe.offsetWidth/3)===12,Or.removeChild(te),pe=null}}function b(_e){return Math.round(parseFloat(_e))}var C,P,L,N,V,se,te=R.createElement("div"),pe=R.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=pe.style.backgroundClip==="content-box",x.extend(A,{boxSizingReliable:function(){return h(),P},pixelBoxStyles:function(){return h(),N},pixelPosition:function(){return h(),C},reliableMarginLeft:function(){return h(),se},scrollboxSize:function(){return h(),L},reliableTrDimensions:function(){var _e,Ae,Te,Be;return V==null&&(_e=R.createElement("table"),Ae=R.createElement("tr"),Te=R.createElement("div"),_e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Ae.style.cssText="box-sizing:content-box;border:1px solid",Ae.style.height="1px",Te.style.height="9px",Te.style.display="block",Or.appendChild(_e).appendChild(Ae).appendChild(Te),Be=e.getComputedStyle(Ae),V=parseInt(Be.height,10)+parseInt(Be.borderTopWidth,10)+parseInt(Be.borderBottomWidth,10)===Ae.offsetHeight,Or.removeChild(_e)),V}}))})();function Oi(h,b,C){var P,L,N,V,se=wr.test(b),te=h.style;return C=C||Ar(h),C&&(V=C.getPropertyValue(b)||C[b],se&&V&&(V=V.replace(Oe,"$1")||void 0),V===""&&!yr(h)&&(V=x.style(h,b)),!A.pixelBoxStyles()&&Kr.test(V)&&zi.test(b)&&(P=te.width,L=te.minWidth,N=te.maxWidth,te.minWidth=te.maxWidth=te.width=V,V=C.width,te.width=P,te.minWidth=L,te.maxWidth=N)),V!==void 0?V+"":V}function ar(h,b){return{get:function(){if(h()){delete this.get;return}return(this.get=b).apply(this,arguments)}}}var yn=["Webkit","Moz","ms"],Ir=R.createElement("div").style,Mr={};function di(h){for(var b=h[0].toUpperCase()+h.slice(1),C=yn.length;C--;)if(h=yn[C]+b,h in Ir)return h}function hi(h){var b=x.cssProps[h]||Mr[h];return b||(h in Ir?h:Mr[h]=di(h)||h)}var xr=/^(none|table(?!-c[ea]).+)/,Zr={position:"absolute",visibility:"hidden",display:"block"},Wn={letterSpacing:"0",fontWeight:"400"};function pi(h,b,C){var P=Pr.exec(b);return P?Math.max(0,P[2]-(C||0))+(P[3]||"px"):b}function gi(h,b,C,P,L,N){var V=b==="width"?1:0,se=0,te=0,pe=0;if(C===(P?"border":"content"))return 0;for(;V<4;V+=2)C==="margin"&&(pe+=x.css(h,C+Nn[V],!0,L)),P?(C==="content"&&(te-=x.css(h,"padding"+Nn[V],!0,L)),C!=="margin"&&(te-=x.css(h,"border"+Nn[V]+"Width",!0,L))):(te+=x.css(h,"padding"+Nn[V],!0,L),C!=="padding"?te+=x.css(h,"border"+Nn[V]+"Width",!0,L):se+=x.css(h,"border"+Nn[V]+"Width",!0,L));return!P&&N>=0&&(te+=Math.max(0,Math.ceil(h["offset"+b[0].toUpperCase()+b.slice(1)]-N-te-se-.5))||0),te+pe}function _i(h,b,C){var P=Ar(h),L=!A.boxSizingReliable()||C,N=L&&x.css(h,"boxSizing",!1,P)==="border-box",V=N,se=Oi(h,b,P),te="offset"+b[0].toUpperCase()+b.slice(1);if(Kr.test(se)){if(!C)return se;se="auto"}return(!A.boxSizingReliable()&&N||!A.reliableTrDimensions()&&ae(h,"tr")||se==="auto"||!parseFloat(se)&&x.css(h,"display",!1,P)==="inline")&&h.getClientRects().length&&(N=x.css(h,"boxSizing",!1,P)==="border-box",V=te in h,V&&(se=h[te])),se=parseFloat(se)||0,se+gi(h,b,C||(N?"border":"content"),V,P,se)+"px"}x.extend({cssHooks:{opacity:{get:function(h,b){if(b){var C=Oi(h,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(h,b,C,P){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var L,N,V,se=sn(b),te=wr.test(b),pe=h.style;if(te||(b=hi(se)),V=x.cssHooks[b]||x.cssHooks[se],C!==void 0){if(N=typeof C,N==="string"&&(L=Pr.exec(C))&&L[1]&&(C=Ao(h,b,L),N="number"),C==null||C!==C)return;N==="number"&&!te&&(C+=L&&L[3]||(x.cssNumber[se]?"":"px")),!A.clearCloneStyle&&C===""&&b.indexOf("background")===0&&(pe[b]="inherit"),(!V||!("set"in V)||(C=V.set(h,C,P))!==void 0)&&(te?pe.setProperty(b,C):pe[b]=C)}else return V&&"get"in V&&(L=V.get(h,!1,P))!==void 0?L:pe[b]}},css:function(h,b,C,P){var L,N,V,se=sn(b),te=wr.test(b);return te||(b=hi(se)),V=x.cssHooks[b]||x.cssHooks[se],V&&"get"in V&&(L=V.get(h,!0,C)),L===void 0&&(L=Oi(h,b,P)),L==="normal"&&b in Wn&&(L=Wn[b]),C===""||C?(N=parseFloat(L),C===!0||isFinite(N)?N||0:L):L}}),x.each(["height","width"],function(h,b){x.cssHooks[b]={get:function(C,P,L){if(P)return xr.test(x.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?tr(C,Zr,function(){return _i(C,b,L)}):_i(C,b,L)},set:function(C,P,L){var N,V=Ar(C),se=!A.scrollboxSize()&&V.position==="absolute",te=se||L,pe=te&&x.css(C,"boxSizing",!1,V)==="border-box",_e=L?gi(C,b,L,pe,V):0;return pe&&se&&(_e-=Math.ceil(C["offset"+b[0].toUpperCase()+b.slice(1)]-parseFloat(V[b])-gi(C,b,"border",!1,V)-.5)),_e&&(N=Pr.exec(P))&&(N[3]||"px")!=="px"&&(C.style[b]=P,P=x.css(C,b)),pi(C,P,_e)}}}),x.cssHooks.marginLeft=ar(A.reliableMarginLeft,function(h,b){if(b)return(parseFloat(Oi(h,"marginLeft"))||h.getBoundingClientRect().left-tr(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(h,b){x.cssHooks[h+b]={expand:function(C){for(var P=0,L={},N=typeof C=="string"?C.split(" "):[C];P<4;P++)L[h+Nn[P]+b]=N[P]||N[P-2]||N[0];return L}},h!=="margin"&&(x.cssHooks[h+b].set=pi)}),x.fn.extend({css:function(h,b){return Sn(this,function(C,P,L){var N,V,se={},te=0;if(Array.isArray(P)){for(N=Ar(C),V=P.length;te<V;te++)se[P[te]]=x.css(C,P[te],!1,N);return se}return L!==void 0?x.style(C,P,L):x.css(C,P)},h,b,arguments.length>1)}});function nn(h,b,C,P,L){return new nn.prototype.init(h,b,C,P,L)}x.Tween=nn,nn.prototype={constructor:nn,init:function(h,b,C,P,L,N){this.elem=h,this.prop=C,this.easing=L||x.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=P,this.unit=N||(x.cssNumber[C]?"":"px")},cur:function(){var h=nn.propHooks[this.prop];return h&&h.get?h.get(this):nn.propHooks._default.get(this)},run:function(h){var b,C=nn.propHooks[this.prop];return this.options.duration?this.pos=b=x.easing[this.easing](h,this.options.duration*h,0,1,this.options.duration):this.pos=b=h,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):nn.propHooks._default.set(this),this}},nn.prototype.init.prototype=nn.prototype,nn.propHooks={_default:{get:function(h){var b;return h.elem.nodeType!==1||h.elem[h.prop]!=null&&h.elem.style[h.prop]==null?h.elem[h.prop]:(b=x.css(h.elem,h.prop,""),!b||b==="auto"?0:b)},set:function(h){x.fx.step[h.prop]?x.fx.step[h.prop](h):h.elem.nodeType===1&&(x.cssHooks[h.prop]||h.elem.style[hi(h.prop)]!=null)?x.style(h.elem,h.prop,h.now+h.unit):h.elem[h.prop]=h.now}}},nn.propHooks.scrollTop=nn.propHooks.scrollLeft={set:function(h){h.elem.nodeType&&h.elem.parentNode&&(h.elem[h.prop]=h.now)}},x.easing={linear:function(h){return h},swing:function(h){return .5-Math.cos(h*Math.PI)/2},_default:"swing"},x.fx=nn.prototype.init,x.fx.step={};var jn,Cn,uo=/^(?:toggle|show|hide)$/,On=/queueHooks$/;function _n(){Cn&&(R.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(_n):e.setTimeout(_n,x.fx.interval),x.fx.tick())}function k(){return e.setTimeout(function(){jn=void 0}),jn=Date.now()}function F(h,b){var C,P=0,L={height:h};for(b=b?1:0;P<4;P+=2-b)C=Nn[P],L["margin"+C]=L["padding"+C]=h;return b&&(L.opacity=L.width=h),L}function G(h,b,C){for(var P,L=(ge.tweeners[b]||[]).concat(ge.tweeners["*"]),N=0,V=L.length;N<V;N++)if(P=L[N].call(C,b,h))return P}function ee(h,b,C){var P,L,N,V,se,te,pe,_e,Ae="width"in b||"height"in b,Te=this,Be={},it=h.style,Tt=h.nodeType&&Gr(h),Et=ut.get(h,"fxshow");C.queue||(V=x._queueHooks(h,"fx"),V.unqueued==null&&(V.unqueued=0,se=V.empty.fire,V.empty.fire=function(){V.unqueued||se()}),V.unqueued++,Te.always(function(){Te.always(function(){V.unqueued--,x.queue(h,"fx").length||V.empty.fire()})}));for(P in b)if(L=b[P],uo.test(L)){if(delete b[P],N=N||L==="toggle",L===(Tt?"hide":"show"))if(L==="show"&&Et&&Et[P]!==void 0)Tt=!0;else continue;Be[P]=Et&&Et[P]||x.style(h,P)}if(te=!x.isEmptyObject(b),!(!te&&x.isEmptyObject(Be))){Ae&&h.nodeType===1&&(C.overflow=[it.overflow,it.overflowX,it.overflowY],pe=Et&&Et.display,pe==null&&(pe=ut.get(h,"display")),_e=x.css(h,"display"),_e==="none"&&(pe?_e=pe:(Qn([h],!0),pe=h.style.display||pe,_e=x.css(h,"display"),Qn([h]))),(_e==="inline"||_e==="inline-block"&&pe!=null)&&x.css(h,"float")==="none"&&(te||(Te.done(function(){it.display=pe}),pe==null&&(_e=it.display,pe=_e==="none"?"":_e)),it.display="inline-block")),C.overflow&&(it.overflow="hidden",Te.always(function(){it.overflow=C.overflow[0],it.overflowX=C.overflow[1],it.overflowY=C.overflow[2]})),te=!1;for(P in Be)te||(Et?"hidden"in Et&&(Tt=Et.hidden):Et=ut.access(h,"fxshow",{display:pe}),N&&(Et.hidden=!Tt),Tt&&Qn([h],!0),Te.done(function(){Tt||Qn([h]),ut.remove(h,"fxshow");for(P in Be)x.style(h,P,Be[P])})),te=G(Tt?Et[P]:0,P,Te),P in Et||(Et[P]=te.start,Tt&&(te.end=te.start,te.start=0))}}function Ee(h,b){var C,P,L,N,V;for(C in h)if(P=sn(C),L=b[P],N=h[C],Array.isArray(N)&&(L=N[1],N=h[C]=N[0]),C!==P&&(h[P]=N,delete h[C]),V=x.cssHooks[P],V&&"expand"in V){N=V.expand(N),delete h[P];for(C in N)C in h||(h[C]=N[C],b[C]=L)}else b[P]=L}function ge(h,b,C){var P,L,N=0,V=ge.prefilters.length,se=x.Deferred().always(function(){delete te.elem}),te=function(){if(L)return!1;for(var Ae=jn||k(),Te=Math.max(0,pe.startTime+pe.duration-Ae),Be=Te/pe.duration||0,it=1-Be,Tt=0,Et=pe.tweens.length;Tt<Et;Tt++)pe.tweens[Tt].run(it);return se.notifyWith(h,[pe,it,Te]),it<1&&Et?Te:(Et||se.notifyWith(h,[pe,1,0]),se.resolveWith(h,[pe]),!1)},pe=se.promise({elem:h,props:x.extend({},b),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},C),originalProperties:b,originalOptions:C,startTime:jn||k(),duration:C.duration,tweens:[],createTween:function(Ae,Te){var Be=x.Tween(h,pe.opts,Ae,Te,pe.opts.specialEasing[Ae]||pe.opts.easing);return pe.tweens.push(Be),Be},stop:function(Ae){var Te=0,Be=Ae?pe.tweens.length:0;if(L)return this;for(L=!0;Te<Be;Te++)pe.tweens[Te].run(1);return Ae?(se.notifyWith(h,[pe,1,0]),se.resolveWith(h,[pe,Ae])):se.rejectWith(h,[pe,Ae]),this}}),_e=pe.props;for(Ee(_e,pe.opts.specialEasing);N<V;N++)if(P=ge.prefilters[N].call(pe,h,_e,pe.opts),P)return I(P.stop)&&(x._queueHooks(pe.elem,pe.opts.queue).stop=P.stop.bind(P)),P;return x.map(_e,G,pe),I(pe.opts.start)&&pe.opts.start.call(h,pe),pe.progress(pe.opts.progress).done(pe.opts.done,pe.opts.complete).fail(pe.opts.fail).always(pe.opts.always),x.fx.timer(x.extend(te,{elem:h,anim:pe,queue:pe.opts.queue})),pe}x.Animation=x.extend(ge,{tweeners:{"*":[function(h,b){var C=this.createTween(h,b);return Ao(C.elem,h,Pr.exec(b),C),C}]},tweener:function(h,b){I(h)?(b=h,h=["*"]):h=h.match(ft);for(var C,P=0,L=h.length;P<L;P++)C=h[P],ge.tweeners[C]=ge.tweeners[C]||[],ge.tweeners[C].unshift(b)},prefilters:[ee],prefilter:function(h,b){b?ge.prefilters.unshift(h):ge.prefilters.push(h)}}),x.speed=function(h,b,C){var P=h&&typeof h=="object"?x.extend({},h):{complete:C||!C&&b||I(h)&&h,duration:h,easing:C&&b||b&&!I(b)&&b};return x.fx.off?P.duration=0:typeof P.duration!="number"&&(P.duration in x.fx.speeds?P.duration=x.fx.speeds[P.duration]:P.duration=x.fx.speeds._default),(P.queue==null||P.queue===!0)&&(P.queue="fx"),P.old=P.complete,P.complete=function(){I(P.old)&&P.old.call(this),P.queue&&x.dequeue(this,P.queue)},P},x.fn.extend({fadeTo:function(h,b,C,P){return this.filter(Gr).css("opacity",0).show().end().animate({opacity:b},h,C,P)},animate:function(h,b,C,P){var L=x.isEmptyObject(h),N=x.speed(b,C,P),V=function(){var se=ge(this,x.extend({},h),N);(L||ut.get(this,"finish"))&&se.stop(!0)};return V.finish=V,L||N.queue===!1?this.each(V):this.queue(N.queue,V)},stop:function(h,b,C){var P=function(L){var N=L.stop;delete L.stop,N(C)};return typeof h!="string"&&(C=b,b=h,h=void 0),b&&this.queue(h||"fx",[]),this.each(function(){var L=!0,N=h!=null&&h+"queueHooks",V=x.timers,se=ut.get(this);if(N)se[N]&&se[N].stop&&P(se[N]);else for(N in se)se[N]&&se[N].stop&&On.test(N)&&P(se[N]);for(N=V.length;N--;)V[N].elem===this&&(h==null||V[N].queue===h)&&(V[N].anim.stop(C),L=!1,V.splice(N,1));(L||!C)&&x.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var b,C=ut.get(this),P=C[h+"queue"],L=C[h+"queueHooks"],N=x.timers,V=P?P.length:0;for(C.finish=!0,x.queue(this,h,[]),L&&L.stop&&L.stop.call(this,!0),b=N.length;b--;)N[b].elem===this&&N[b].queue===h&&(N[b].anim.stop(!0),N.splice(b,1));for(b=0;b<V;b++)P[b]&&P[b].finish&&P[b].finish.call(this);delete C.finish})}}),x.each(["toggle","show","hide"],function(h,b){var C=x.fn[b];x.fn[b]=function(P,L,N){return P==null||typeof P=="boolean"?C.apply(this,arguments):this.animate(F(b,!0),P,L,N)}}),x.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,b){x.fn[h]=function(C,P,L){return this.animate(b,C,P,L)}}),x.timers=[],x.fx.tick=function(){var h,b=0,C=x.timers;for(jn=Date.now();b<C.length;b++)h=C[b],!h()&&C[b]===h&&C.splice(b--,1);C.length||x.fx.stop(),jn=void 0},x.fx.timer=function(h){x.timers.push(h),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Cn||(Cn=!0,_n())},x.fx.stop=function(){Cn=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(h,b){return h=x.fx&&x.fx.speeds[h]||h,b=b||"fx",this.queue(b,function(C,P){var L=e.setTimeout(C,h);P.stop=function(){e.clearTimeout(L)}})},function(){var h=R.createElement("input"),b=R.createElement("select"),C=b.appendChild(R.createElement("option"));h.type="checkbox",A.checkOn=h.value!=="",A.optSelected=C.selected,h=R.createElement("input"),h.value="t",h.type="radio",A.radioValue=h.value==="t"}();var Re,qe=x.expr.attrHandle;x.fn.extend({attr:function(h,b){return Sn(this,x.attr,h,b,arguments.length>1)},removeAttr:function(h){return this.each(function(){x.removeAttr(this,h)})}}),x.extend({attr:function(h,b,C){var P,L,N=h.nodeType;if(!(N===3||N===8||N===2)){if(typeof h.getAttribute>"u")return x.prop(h,b,C);if((N!==1||!x.isXMLDoc(h))&&(L=x.attrHooks[b.toLowerCase()]||(x.expr.match.bool.test(b)?Re:void 0)),C!==void 0){if(C===null){x.removeAttr(h,b);return}return L&&"set"in L&&(P=L.set(h,C,b))!==void 0?P:(h.setAttribute(b,C+""),C)}return L&&"get"in L&&(P=L.get(h,b))!==null?P:(P=x.find.attr(h,b),P??void 0)}},attrHooks:{type:{set:function(h,b){if(!A.radioValue&&b==="radio"&&ae(h,"input")){var C=h.value;return h.setAttribute("type",b),C&&(h.value=C),b}}}},removeAttr:function(h,b){var C,P=0,L=b&&b.match(ft);if(L&&h.nodeType===1)for(;C=L[P++];)h.removeAttribute(C)}}),Re={set:function(h,b,C){return b===!1?x.removeAttr(h,C):h.setAttribute(C,C),C}},x.each(x.expr.match.bool.source.match(/\w+/g),function(h,b){var C=qe[b]||x.find.attr;qe[b]=function(P,L,N){var V,se,te=L.toLowerCase();return N||(se=qe[te],qe[te]=V,V=C(P,L,N)!=null?te:null,qe[te]=se),V}});var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;x.fn.extend({prop:function(h,b){return Sn(this,x.prop,h,b,arguments.length>1)},removeProp:function(h){return this.each(function(){delete this[x.propFix[h]||h]})}}),x.extend({prop:function(h,b,C){var P,L,N=h.nodeType;if(!(N===3||N===8||N===2))return(N!==1||!x.isXMLDoc(h))&&(b=x.propFix[b]||b,L=x.propHooks[b]),C!==void 0?L&&"set"in L&&(P=L.set(h,C,b))!==void 0?P:h[b]=C:L&&"get"in L&&(P=L.get(h,b))!==null?P:h[b]},propHooks:{tabIndex:{get:function(h){var b=x.find.attr(h,"tabindex");return b?parseInt(b,10):gt.test(h.nodeName)||mt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(x.propHooks.selected={get:function(h){var b=h.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(h){var b=h.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this});function dt(h){var b=h.match(ft)||[];return b.join(" ")}function Ft(h){return h.getAttribute&&h.getAttribute("class")||""}function Bn(h){return Array.isArray(h)?h:typeof h=="string"?h.match(ft)||[]:[]}x.fn.extend({addClass:function(h){var b,C,P,L,N,V;return I(h)?this.each(function(se){x(this).addClass(h.call(this,se,Ft(this)))}):(b=Bn(h),b.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+dt(P)+" ",C){for(N=0;N<b.length;N++)L=b[N],C.indexOf(" "+L+" ")<0&&(C+=L+" ");V=dt(C),P!==V&&this.setAttribute("class",V)}}):this)},removeClass:function(h){var b,C,P,L,N,V;return I(h)?this.each(function(se){x(this).removeClass(h.call(this,se,Ft(this)))}):arguments.length?(b=Bn(h),b.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+dt(P)+" ",C){for(N=0;N<b.length;N++)for(L=b[N];C.indexOf(" "+L+" ")>-1;)C=C.replace(" "+L+" "," ");V=dt(C),P!==V&&this.setAttribute("class",V)}}):this):this.attr("class","")},toggleClass:function(h,b){var C,P,L,N,V=typeof h,se=V==="string"||Array.isArray(h);return I(h)?this.each(function(te){x(this).toggleClass(h.call(this,te,Ft(this),b),b)}):typeof b=="boolean"&&se?b?this.addClass(h):this.removeClass(h):(C=Bn(h),this.each(function(){if(se)for(N=x(this),L=0;L<C.length;L++)P=C[L],N.hasClass(P)?N.removeClass(P):N.addClass(P);else(h===void 0||V==="boolean")&&(P=Ft(this),P&&ut.set(this,"__className__",P),this.setAttribute&&this.setAttribute("class",P||h===!1?"":ut.get(this,"__className__")||""))}))},hasClass:function(h){var b,C,P=0;for(b=" "+h+" ";C=this[P++];)if(C.nodeType===1&&(" "+dt(Ft(C))+" ").indexOf(b)>-1)return!0;return!1}});var zn=/\r/g;x.fn.extend({val:function(h){var b,C,P,L=this[0];return arguments.length?(P=I(h),this.each(function(N){var V;this.nodeType===1&&(P?V=h.call(this,N,x(this).val()):V=h,V==null?V="":typeof V=="number"?V+="":Array.isArray(V)&&(V=x.map(V,function(se){return se==null?"":se+""})),b=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],(!b||!("set"in b)||b.set(this,V,"value")===void 0)&&(this.value=V))})):L?(b=x.valHooks[L.type]||x.valHooks[L.nodeName.toLowerCase()],b&&"get"in b&&(C=b.get(L,"value"))!==void 0?C:(C=L.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),x.extend({valHooks:{option:{get:function(h){var b=x.find.attr(h,"value");return b??dt(x.text(h))}},select:{get:function(h){var b,C,P,L=h.options,N=h.selectedIndex,V=h.type==="select-one",se=V?null:[],te=V?N+1:L.length;for(N<0?P=te:P=V?N:0;P<te;P++)if(C=L[P],(C.selected||P===N)&&!C.disabled&&(!C.parentNode.disabled||!ae(C.parentNode,"optgroup"))){if(b=x(C).val(),V)return b;se.push(b)}return se},set:function(h,b){for(var C,P,L=h.options,N=x.makeArray(b),V=L.length;V--;)P=L[V],(P.selected=x.inArray(x.valHooks.option.get(P),N)>-1)&&(C=!0);return C||(h.selectedIndex=-1),N}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(h,b){if(Array.isArray(b))return h.checked=x.inArray(x(h).val(),b)>-1}},A.checkOn||(x.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var En=e.location,Jr={guid:Date.now()},lr=/\?/;x.parseXML=function(h){var b,C;if(!h||typeof h!="string")return null;try{b=new e.DOMParser().parseFromString(h,"text/xml")}catch{}return C=b&&b.getElementsByTagName("parsererror")[0],(!b||C)&&x.error("Invalid XML: "+(C?x.map(C.childNodes,function(P){return P.textContent}).join(`
|
|
172
172
|
`):h)),b};var Yi=/^(?:focusinfocus|focusoutblur)$/,mi=function(h){h.stopPropagation()};x.extend(x.event,{trigger:function(h,b,C,P){var L,N,V,se,te,pe,_e,Ae,Te=[C||R],Be=g.call(h,"type")?h.type:h,it=g.call(h,"namespace")?h.namespace.split("."):[];if(N=Ae=V=C=C||R,!(C.nodeType===3||C.nodeType===8)&&!Yi.test(Be+x.event.triggered)&&(Be.indexOf(".")>-1&&(it=Be.split("."),Be=it.shift(),it.sort()),te=Be.indexOf(":")<0&&"on"+Be,h=h[x.expando]?h:new x.Event(Be,typeof h=="object"&&h),h.isTrigger=P?2:3,h.namespace=it.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+it.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=C),b=b==null?[h]:x.makeArray(b,[h]),_e=x.event.special[Be]||{},!(!P&&_e.trigger&&_e.trigger.apply(C,b)===!1))){if(!P&&!_e.noBubble&&!j(C)){for(se=_e.delegateType||Be,Yi.test(se+Be)||(N=N.parentNode);N;N=N.parentNode)Te.push(N),V=N;V===(C.ownerDocument||R)&&Te.push(V.defaultView||V.parentWindow||e)}for(L=0;(N=Te[L++])&&!h.isPropagationStopped();)Ae=N,h.type=L>1?se:_e.bindType||Be,pe=(ut.get(N,"events")||Object.create(null))[h.type]&&ut.get(N,"handle"),pe&&pe.apply(N,b),pe=te&&N[te],pe&&pe.apply&&fn(N)&&(h.result=pe.apply(N,b),h.result===!1&&h.preventDefault());return h.type=Be,!P&&!h.isDefaultPrevented()&&(!_e._default||_e._default.apply(Te.pop(),b)===!1)&&fn(C)&&te&&I(C[Be])&&!j(C)&&(V=C[te],V&&(C[te]=null),x.event.triggered=Be,h.isPropagationStopped()&&Ae.addEventListener(Be,mi),C[Be](),h.isPropagationStopped()&&Ae.removeEventListener(Be,mi),x.event.triggered=void 0,V&&(C[te]=V)),h.result}},simulate:function(h,b,C){var P=x.extend(new x.Event,C,{type:h,isSimulated:!0});x.event.trigger(P,null,b)}}),x.fn.extend({trigger:function(h,b){return this.each(function(){x.event.trigger(h,b,this)})},triggerHandler:function(h,b){var C=this[0];if(C)return x.event.trigger(h,b,C,!0)}});var Gi=/\[\]$/,Lr=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Wa=/^(?:input|select|textarea|keygen)/i;function Ns(h,b,C,P){var L;if(Array.isArray(b))x.each(b,function(N,V){C||Gi.test(h)?P(h,V):Ns(h+"["+(typeof V=="object"&&V!=null?N:"")+"]",V,C,P)});else if(!C&&ne(b)==="object")for(L in b)Ns(h+"["+L+"]",b[L],C,P);else P(h,b)}x.param=function(h,b){var C,P=[],L=function(N,V){var se=I(V)?V():V;P[P.length]=encodeURIComponent(N)+"="+encodeURIComponent(se??"")};if(h==null)return"";if(Array.isArray(h)||h.jquery&&!x.isPlainObject(h))x.each(h,function(){L(this.name,this.value)});else for(C in h)Ns(C,h[C],b,L);return P.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var h=x.prop(this,"elements");return h?x.makeArray(h):this}).filter(function(){var h=this.type;return this.name&&!x(this).is(":disabled")&&Wa.test(this.nodeName)&&!qi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,b){var C=x(this).val();return C==null?null:Array.isArray(C)?x.map(C,function(P){return{name:b.name,value:P.replace(Lr,`\r
|
|
173
173
|
`)}}):{name:b.name,value:C.replace(Lr,`\r
|
|
174
|
-
`)}}).get()}});var ts=/%20/g,Sr=/#.*$/,za=/([?&])_=[^&]*/,vi=/^(.*?):[ \t]*([^\r\n]*)$/mg,js=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ns=/^(?:GET|HEAD)$/,rn=/^\/\//,Gt={},Kt={},Ri="*/".concat("*"),Qr=R.createElement("a");Qr.href=En.href;function Io(h){return function(b,C){typeof b!="string"&&(C=b,b="*");var P,L=0,N=b.toLowerCase().match(ft)||[];if(I(C))for(;P=N[L++];)P[0]==="+"?(P=P.slice(1)||"*",(h[P]=h[P]||[]).unshift(C)):(h[P]=h[P]||[]).push(C)}}function yi(h,b,C,P){var L={},N=h===Kt;function V(se){var te;return L[se]=!0,x.each(h[se]||[],function(pe,_e){var Ae=_e(b,C,P);if(typeof Ae=="string"&&!N&&!L[Ae])return b.dataTypes.unshift(Ae),V(Ae),!1;if(N)return!(te=Ae)}),te}return V(b.dataTypes[0])||!L["*"]&&V("*")}function ur(h,b){var C,P,L=x.ajaxSettings.flatOptions||{};for(C in b)b[C]!==void 0&&((L[C]?h:P||(P={}))[C]=b[C]);return P&&x.extend(!0,h,P),h}function Bs(h,b,C){for(var P,L,N,V,se=h.contents,te=h.dataTypes;te[0]==="*";)te.shift(),P===void 0&&(P=h.mimeType||b.getResponseHeader("Content-Type"));if(P){for(L in se)if(se[L]&&se[L].test(P)){te.unshift(L);break}}if(te[0]in C)N=te[0];else{for(L in C){if(!te[0]||h.converters[L+" "+te[0]]){N=L;break}V||(V=L)}N=N||V}if(N)return N!==te[0]&&te.unshift(N),C[N]}function co(h,b,C,P){var L,N,V,se,te,pe={},_e=h.dataTypes.slice();if(_e[1])for(V in h.converters)pe[V.toLowerCase()]=h.converters[V];for(N=_e.shift();N;)if(h.responseFields[N]&&(C[h.responseFields[N]]=b),!te&&P&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),te=N,N=_e.shift(),N){if(N==="*")N=te;else if(te!=="*"&&te!==N){if(V=pe[te+" "+N]||pe["* "+N],!V){for(L in pe)if(se=L.split(" "),se[1]===N&&(V=pe[te+" "+se[0]]||pe["* "+se[0]],V)){V===!0?V=pe[L]:pe[L]!==!0&&(N=se[0],_e.unshift(se[1]));break}}if(V!==!0)if(V&&h.throws)b=V(b);else try{b=V(b)}catch(Ae){return{state:"parsererror",error:V?Ae:"No conversion from "+te+" to "+N}}}}return{state:"success",data:b}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:js.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ri,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(h,b){return b?ur(ur(h,x.ajaxSettings),b):ur(x.ajaxSettings,h)},ajaxPrefilter:Io(Gt),ajaxTransport:Io(Kt),ajax:function(h,b){typeof h=="object"&&(b=h,h=void 0),b=b||{};var C,P,L,N,V,se,te,pe,_e,Ae,Te=x.ajaxSetup({},b),Be=Te.context||Te,it=Te.context&&(Be.nodeType||Be.jquery)?x(Be):x.event,Tt=x.Deferred(),Et=x.Callbacks("once memory"),Rn=Te.statusCode||{},un={},Fr={},Nr="canceled",Lt={readyState:0,getResponseHeader:function(jt){var Qt;if(te){if(!N)for(N={};Qt=vi.exec(L);)N[Qt[1].toLowerCase()+" "]=(N[Qt[1].toLowerCase()+" "]||[]).concat(Qt[2]);Qt=N[jt.toLowerCase()+" "]}return Qt==null?null:Qt.join(", ")},getAllResponseHeaders:function(){return te?L:null},setRequestHeader:function(jt,Qt){return te==null&&(jt=Fr[jt.toLowerCase()]=Fr[jt.toLowerCase()]||jt,un[jt]=Qt),this},overrideMimeType:function(jt){return te==null&&(Te.mimeType=jt),this},statusCode:function(jt){var Qt;if(jt)if(te)Lt.always(jt[Lt.status]);else for(Qt in jt)Rn[Qt]=[Rn[Qt],jt[Qt]];return this},abort:function(jt){var Qt=jt||Nr;return C&&C.abort(Qt),jr(0,Qt),this}};if(Tt.promise(Lt),Te.url=((h||Te.url||En.href)+"").replace(rn,En.protocol+"//"),Te.type=b.method||b.type||Te.method||Te.type,Te.dataTypes=(Te.dataType||"*").toLowerCase().match(ft)||[""],Te.crossDomain==null){se=R.createElement("a");try{se.href=Te.url,se.href=se.href,Te.crossDomain=Qr.protocol+"//"+Qr.host!=se.protocol+"//"+se.host}catch{Te.crossDomain=!0}}if(Te.data&&Te.processData&&typeof Te.data!="string"&&(Te.data=x.param(Te.data,Te.traditional)),yi(Gt,Te,b,Lt),te)return Lt;pe=x.event&&Te.global,pe&&x.active++===0&&x.event.trigger("ajaxStart"),Te.type=Te.type.toUpperCase(),Te.hasContent=!ns.test(Te.type),P=Te.url.replace(Sr,""),Te.hasContent?Te.data&&Te.processData&&(Te.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Te.data=Te.data.replace(ts,"+")):(Ae=Te.url.slice(P.length),Te.data&&(Te.processData||typeof Te.data=="string")&&(P+=(lr.test(P)?"&":"?")+Te.data,delete Te.data),Te.cache===!1&&(P=P.replace(za,"$1"),Ae=(lr.test(P)?"&":"?")+"_="+Jr.guid+++Ae),Te.url=P+Ae),Te.ifModified&&(x.lastModified[P]&&Lt.setRequestHeader("If-Modified-Since",x.lastModified[P]),x.etag[P]&&Lt.setRequestHeader("If-None-Match",x.etag[P])),(Te.data&&Te.hasContent&&Te.contentType!==!1||b.contentType)&&Lt.setRequestHeader("Content-Type",Te.contentType),Lt.setRequestHeader("Accept",Te.dataTypes[0]&&Te.accepts[Te.dataTypes[0]]?Te.accepts[Te.dataTypes[0]]+(Te.dataTypes[0]!=="*"?", "+Ri+"; q=0.01":""):Te.accepts["*"]);for(_e in Te.headers)Lt.setRequestHeader(_e,Te.headers[_e]);if(Te.beforeSend&&(Te.beforeSend.call(Be,Lt,Te)===!1||te))return Lt.abort();if(Nr="abort",Et.add(Te.complete),Lt.done(Te.success),Lt.fail(Te.error),C=yi(Kt,Te,b,Lt),!C)jr(-1,"No Transport");else{if(Lt.readyState=1,pe&&it.trigger("ajaxSend",[Lt,Te]),te)return Lt;Te.async&&Te.timeout>0&&(V=e.setTimeout(function(){Lt.abort("timeout")},Te.timeout));try{te=!1,C.send(un,jr)}catch(jt){if(te)throw jt;jr(-1,jt)}}function jr(jt,Qt,ho,po){var Tr,D,M,W,Q,be=Qt;te||(te=!0,V&&e.clearTimeout(V),C=void 0,L=po||"",Lt.readyState=jt>0?4:0,Tr=jt>=200&&jt<300||jt===304,ho&&(W=Bs(Te,Lt,ho)),!Tr&&x.inArray("script",Te.dataTypes)>-1&&x.inArray("json",Te.dataTypes)<0&&(Te.converters["text script"]=function(){}),W=co(Te,W,Lt,Tr),Tr?(Te.ifModified&&(Q=Lt.getResponseHeader("Last-Modified"),Q&&(x.lastModified[P]=Q),Q=Lt.getResponseHeader("etag"),Q&&(x.etag[P]=Q)),jt===204||Te.type==="HEAD"?be="nocontent":jt===304?be="notmodified":(be=W.state,D=W.data,M=W.error,Tr=!M)):(M=be,(jt||!be)&&(be="error",jt<0&&(jt=0))),Lt.status=jt,Lt.statusText=(Qt||be)+"",Tr?Tt.resolveWith(Be,[D,be,Lt]):Tt.rejectWith(Be,[Lt,be,M]),Lt.statusCode(Rn),Rn=void 0,pe&&it.trigger(Tr?"ajaxSuccess":"ajaxError",[Lt,Te,Tr?D:M]),Et.fireWith(Be,[Lt,be]),pe&&(it.trigger("ajaxComplete",[Lt,Te]),--x.active||x.event.trigger("ajaxStop")))}return Lt},getJSON:function(h,b,C){return x.get(h,b,C,"json")},getScript:function(h,b){return x.get(h,void 0,b,"script")}}),x.each(["get","post"],function(h,b){x[b]=function(C,P,L,N){return I(P)&&(N=N||L,L=P,P=void 0),x.ajax(x.extend({url:C,type:b,dataType:N,data:P,success:L},x.isPlainObject(C)&&C))}}),x.ajaxPrefilter(function(h){var b;for(b in h.headers)b.toLowerCase()==="content-type"&&(h.contentType=h.headers[b]||"")}),x._evalUrl=function(h,b,C){return x.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(P){x.globalEval(P,b,C)}})},x.fn.extend({wrapAll:function(h){var b;return this[0]&&(I(h)&&(h=h.call(this[0])),b=x(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(h){return I(h)?this.each(function(b){x(this).wrapInner(h.call(this,b))}):this.each(function(){var b=x(this),C=b.contents();C.length?C.wrapAll(h):b.append(h)})},wrap:function(h){var b=I(h);return this.each(function(C){x(this).wrapAll(b?h.call(this,C):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(h){return!x.expr.pseudos.visible(h)},x.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var ua={0:200,1223:204},ln=x.ajaxSettings.xhr();A.cors=!!ln&&"withCredentials"in ln,A.ajax=ln=!!ln,x.ajaxTransport(function(h){var b,C;if(A.cors||ln&&!h.crossDomain)return{send:function(P,L){var N,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(N in h.xhrFields)V[N]=h.xhrFields[N];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!P["X-Requested-With"]&&(P["X-Requested-With"]="XMLHttpRequest");for(N in P)V.setRequestHeader(N,P[N]);b=function(se){return function(){b&&(b=C=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,se==="abort"?V.abort():se==="error"?typeof V.status!="number"?L(0,"error"):L(V.status,V.statusText):L(ua[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=b(),C=V.onerror=V.ontimeout=b("error"),V.onabort!==void 0?V.onabort=C:V.onreadystatechange=function(){V.readyState===4&&e.setTimeout(function(){b&&C()})},b=b("abort");try{V.send(h.hasContent&&h.data||null)}catch(se){if(b)throw se}},abort:function(){b&&b()}}}),x.ajaxPrefilter(function(h){h.crossDomain&&(h.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(h){return x.globalEval(h),h}}}),x.ajaxPrefilter("script",function(h){h.cache===void 0&&(h.cache=!1),h.crossDomain&&(h.type="GET")}),x.ajaxTransport("script",function(h){if(h.crossDomain||h.scriptAttrs){var b,C;return{send:function(P,L){b=x("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",C=function(N){b.remove(),C=null,N&&L(N.type==="error"?404:200,N.type)}),R.head.appendChild(b[0])},abort:function(){C&&C()}}}});var Mo=[],bi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Mo.pop()||x.expando+"_"+Jr.guid++;return this[h]=!0,h}}),x.ajaxPrefilter("json jsonp",function(h,b,C){var P,L,N,V=h.jsonp!==!1&&(bi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bi.test(h.data)&&"data");if(V||h.dataTypes[0]==="jsonp")return P=h.jsonpCallback=I(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(bi,"$1"+P):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+P),h.converters["script json"]=function(){return N||x.error(P+" was not called"),N[0]},h.dataTypes[0]="json",L=e[P],e[P]=function(){N=arguments},C.always(function(){L===void 0?x(e).removeProp(P):e[P]=L,h[P]&&(h.jsonpCallback=b.jsonpCallback,Mo.push(P)),N&&I(L)&&L(N[0]),N=L=void 0}),"script"}),A.createHTMLDocument=function(){var h=R.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),x.parseHTML=function(h,b,C){if(typeof h!="string")return[];typeof b=="boolean"&&(C=b,b=!1);var P,L,N;return b||(A.createHTMLDocument?(b=R.implementation.createHTMLDocument(""),P=b.createElement("base"),P.href=R.location.href,b.head.appendChild(P)):b=R),L=je.exec(h),N=!C&&[],L?[b.createElement(L[1])]:(L=Tn([h],b,N),N&&N.length&&x(N).remove(),x.merge([],L.childNodes))},x.fn.load=function(h,b,C){var P,L,N,V=this,se=h.indexOf(" ");return se>-1&&(P=dt(h.slice(se)),h=h.slice(0,se)),I(b)?(C=b,b=void 0):b&&typeof b=="object"&&(L="POST"),V.length>0&&x.ajax({url:h,type:L||"GET",dataType:"html",data:b}).done(function(te){N=arguments,V.html(P?x("<div>").append(x.parseHTML(te)).find(P):te)}).always(C&&function(te,pe){V.each(function(){C.apply(this,N||[te.responseText,pe,te])})}),this},x.expr.pseudos.animated=function(h){return x.grep(x.timers,function(b){return h===b.elem}).length},x.offset={setOffset:function(h,b,C){var P,L,N,V,se,te,pe,_e=x.css(h,"position"),Ae=x(h),Te={};_e==="static"&&(h.style.position="relative"),se=Ae.offset(),N=x.css(h,"top"),te=x.css(h,"left"),pe=(_e==="absolute"||_e==="fixed")&&(N+te).indexOf("auto")>-1,pe?(P=Ae.position(),V=P.top,L=P.left):(V=parseFloat(N)||0,L=parseFloat(te)||0),I(b)&&(b=b.call(h,C,x.extend({},se))),b.top!=null&&(Te.top=b.top-se.top+V),b.left!=null&&(Te.left=b.left-se.left+L),"using"in b?b.using.call(h,Te):Ae.css(Te)}},x.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(L){x.offset.setOffset(this,h,L)});var b,C,P=this[0];if(P)return P.getClientRects().length?(b=P.getBoundingClientRect(),C=P.ownerDocument.defaultView,{top:b.top+C.pageYOffset,left:b.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,b,C,P=this[0],L={top:0,left:0};if(x.css(P,"position")==="fixed")b=P.getBoundingClientRect();else{for(b=this.offset(),C=P.ownerDocument,h=P.offsetParent||C.documentElement;h&&(h===C.body||h===C.documentElement)&&x.css(h,"position")==="static";)h=h.parentNode;h&&h!==P&&h.nodeType===1&&(L=x(h).offset(),L.top+=x.css(h,"borderTopWidth",!0),L.left+=x.css(h,"borderLeftWidth",!0))}return{top:b.top-L.top-x.css(P,"marginTop",!0),left:b.left-L.left-x.css(P,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&x.css(h,"position")==="static";)h=h.offsetParent;return h||Or})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var C=b==="pageYOffset";x.fn[h]=function(P){return Sn(this,function(L,N,V){var se;if(j(L)?se=L:L.nodeType===9&&(se=L.defaultView),V===void 0)return se?se[b]:L[N];se?se.scrollTo(C?se.pageXOffset:V,C?V:se.pageYOffset):L[N]=V},h,P,arguments.length)}}),x.each(["top","left"],function(h,b){x.cssHooks[b]=ar(A.pixelPosition,function(C,P){if(P)return P=Oi(C,b),Kr.test(P)?x(C).position()[b]+"px":P})}),x.each({Height:"height",Width:"width"},function(h,b){x.each({padding:"inner"+h,content:b,"":"outer"+h},function(C,P){x.fn[P]=function(L,N){var V=arguments.length&&(C||typeof L!="boolean"),se=C||(L===!0||N===!0?"margin":"border");return Sn(this,function(te,pe,_e){var Ae;return j(te)?P.indexOf("outer")===0?te["inner"+h]:te.document.documentElement["client"+h]:te.nodeType===9?(Ae=te.documentElement,Math.max(te.body["scroll"+h],Ae["scroll"+h],te.body["offset"+h],Ae["offset"+h],Ae["client"+h])):_e===void 0?x.css(te,pe,se):x.style(te,pe,_e,se)},b,V?L:void 0,V)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,b){x.fn[b]=function(C){return this.on(b,C)}}),x.fn.extend({bind:function(h,b,C){return this.on(h,null,b,C)},unbind:function(h,b){return this.off(h,null,b)},delegate:function(h,b,C,P){return this.on(b,h,C,P)},undelegate:function(h,b,C){return arguments.length===1?this.off(h,"**"):this.off(b,h||"**",C)},hover:function(h,b){return this.on("mouseenter",h).on("mouseleave",b||h)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(h,b){x.fn[b]=function(C,P){return arguments.length>0?this.on(b,null,C,P):this.trigger(b)}});var ca=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(h,b){var C,P,L;if(typeof b=="string"&&(C=h[b],b=h,h=C),!!I(h))return P=o.call(arguments,2),L=function(){return h.apply(b||this,P.concat(o.call(arguments)))},L.guid=h.guid=h.guid||x.guid++,L},x.holdReady=function(h){h?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=ae,x.isFunction=I,x.isWindow=j,x.camelCase=sn,x.type=ne,x.now=Date.now,x.isNumeric=function(h){var b=x.type(h);return(b==="number"||b==="string")&&!isNaN(h-parseFloat(h))},x.trim=function(h){return h==null?"":(h+"").replace(ca,"$1")};var fo=e.jQuery,cr=e.$;return x.noConflict=function(h){return e.$===x&&(e.$=cr),h&&e.jQuery===x&&(e.jQuery=fo),x},typeof n>"u"&&(e.jQuery=e.$=x),x})})(VD);var HD=VD.exports;const i6=Eu(HD);var o6={exports:{}};/**
|
|
174
|
+
`)}}).get()}});var ts=/%20/g,Sr=/#.*$/,za=/([?&])_=[^&]*/,vi=/^(.*?):[ \t]*([^\r\n]*)$/mg,js=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ns=/^(?:GET|HEAD)$/,rn=/^\/\//,Gt={},Kt={},Ri="*/".concat("*"),Qr=R.createElement("a");Qr.href=En.href;function Io(h){return function(b,C){typeof b!="string"&&(C=b,b="*");var P,L=0,N=b.toLowerCase().match(ft)||[];if(I(C))for(;P=N[L++];)P[0]==="+"?(P=P.slice(1)||"*",(h[P]=h[P]||[]).unshift(C)):(h[P]=h[P]||[]).push(C)}}function yi(h,b,C,P){var L={},N=h===Kt;function V(se){var te;return L[se]=!0,x.each(h[se]||[],function(pe,_e){var Ae=_e(b,C,P);if(typeof Ae=="string"&&!N&&!L[Ae])return b.dataTypes.unshift(Ae),V(Ae),!1;if(N)return!(te=Ae)}),te}return V(b.dataTypes[0])||!L["*"]&&V("*")}function ur(h,b){var C,P,L=x.ajaxSettings.flatOptions||{};for(C in b)b[C]!==void 0&&((L[C]?h:P||(P={}))[C]=b[C]);return P&&x.extend(!0,h,P),h}function Bs(h,b,C){for(var P,L,N,V,se=h.contents,te=h.dataTypes;te[0]==="*";)te.shift(),P===void 0&&(P=h.mimeType||b.getResponseHeader("Content-Type"));if(P){for(L in se)if(se[L]&&se[L].test(P)){te.unshift(L);break}}if(te[0]in C)N=te[0];else{for(L in C){if(!te[0]||h.converters[L+" "+te[0]]){N=L;break}V||(V=L)}N=N||V}if(N)return N!==te[0]&&te.unshift(N),C[N]}function co(h,b,C,P){var L,N,V,se,te,pe={},_e=h.dataTypes.slice();if(_e[1])for(V in h.converters)pe[V.toLowerCase()]=h.converters[V];for(N=_e.shift();N;)if(h.responseFields[N]&&(C[h.responseFields[N]]=b),!te&&P&&h.dataFilter&&(b=h.dataFilter(b,h.dataType)),te=N,N=_e.shift(),N){if(N==="*")N=te;else if(te!=="*"&&te!==N){if(V=pe[te+" "+N]||pe["* "+N],!V){for(L in pe)if(se=L.split(" "),se[1]===N&&(V=pe[te+" "+se[0]]||pe["* "+se[0]],V)){V===!0?V=pe[L]:pe[L]!==!0&&(N=se[0],_e.unshift(se[1]));break}}if(V!==!0)if(V&&h.throws)b=V(b);else try{b=V(b)}catch(Ae){return{state:"parsererror",error:V?Ae:"No conversion from "+te+" to "+N}}}}return{state:"success",data:b}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:js.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ri,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(h,b){return b?ur(ur(h,x.ajaxSettings),b):ur(x.ajaxSettings,h)},ajaxPrefilter:Io(Gt),ajaxTransport:Io(Kt),ajax:function(h,b){typeof h=="object"&&(b=h,h=void 0),b=b||{};var C,P,L,N,V,se,te,pe,_e,Ae,Te=x.ajaxSetup({},b),Be=Te.context||Te,it=Te.context&&(Be.nodeType||Be.jquery)?x(Be):x.event,Tt=x.Deferred(),Et=x.Callbacks("once memory"),Rn=Te.statusCode||{},un={},Fr={},Nr="canceled",Lt={readyState:0,getResponseHeader:function(jt){var Qt;if(te){if(!N)for(N={};Qt=vi.exec(L);)N[Qt[1].toLowerCase()+" "]=(N[Qt[1].toLowerCase()+" "]||[]).concat(Qt[2]);Qt=N[jt.toLowerCase()+" "]}return Qt==null?null:Qt.join(", ")},getAllResponseHeaders:function(){return te?L:null},setRequestHeader:function(jt,Qt){return te==null&&(jt=Fr[jt.toLowerCase()]=Fr[jt.toLowerCase()]||jt,un[jt]=Qt),this},overrideMimeType:function(jt){return te==null&&(Te.mimeType=jt),this},statusCode:function(jt){var Qt;if(jt)if(te)Lt.always(jt[Lt.status]);else for(Qt in jt)Rn[Qt]=[Rn[Qt],jt[Qt]];return this},abort:function(jt){var Qt=jt||Nr;return C&&C.abort(Qt),jr(0,Qt),this}};if(Tt.promise(Lt),Te.url=((h||Te.url||En.href)+"").replace(rn,En.protocol+"//"),Te.type=b.method||b.type||Te.method||Te.type,Te.dataTypes=(Te.dataType||"*").toLowerCase().match(ft)||[""],Te.crossDomain==null){se=R.createElement("a");try{se.href=Te.url,se.href=se.href,Te.crossDomain=Qr.protocol+"//"+Qr.host!=se.protocol+"//"+se.host}catch{Te.crossDomain=!0}}if(Te.data&&Te.processData&&typeof Te.data!="string"&&(Te.data=x.param(Te.data,Te.traditional)),yi(Gt,Te,b,Lt),te)return Lt;pe=x.event&&Te.global,pe&&x.active++===0&&x.event.trigger("ajaxStart"),Te.type=Te.type.toUpperCase(),Te.hasContent=!ns.test(Te.type),P=Te.url.replace(Sr,""),Te.hasContent?Te.data&&Te.processData&&(Te.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Te.data=Te.data.replace(ts,"+")):(Ae=Te.url.slice(P.length),Te.data&&(Te.processData||typeof Te.data=="string")&&(P+=(lr.test(P)?"&":"?")+Te.data,delete Te.data),Te.cache===!1&&(P=P.replace(za,"$1"),Ae=(lr.test(P)?"&":"?")+"_="+Jr.guid+++Ae),Te.url=P+Ae),Te.ifModified&&(x.lastModified[P]&&Lt.setRequestHeader("If-Modified-Since",x.lastModified[P]),x.etag[P]&&Lt.setRequestHeader("If-None-Match",x.etag[P])),(Te.data&&Te.hasContent&&Te.contentType!==!1||b.contentType)&&Lt.setRequestHeader("Content-Type",Te.contentType),Lt.setRequestHeader("Accept",Te.dataTypes[0]&&Te.accepts[Te.dataTypes[0]]?Te.accepts[Te.dataTypes[0]]+(Te.dataTypes[0]!=="*"?", "+Ri+"; q=0.01":""):Te.accepts["*"]);for(_e in Te.headers)Lt.setRequestHeader(_e,Te.headers[_e]);if(Te.beforeSend&&(Te.beforeSend.call(Be,Lt,Te)===!1||te))return Lt.abort();if(Nr="abort",Et.add(Te.complete),Lt.done(Te.success),Lt.fail(Te.error),C=yi(Kt,Te,b,Lt),!C)jr(-1,"No Transport");else{if(Lt.readyState=1,pe&&it.trigger("ajaxSend",[Lt,Te]),te)return Lt;Te.async&&Te.timeout>0&&(V=e.setTimeout(function(){Lt.abort("timeout")},Te.timeout));try{te=!1,C.send(un,jr)}catch(jt){if(te)throw jt;jr(-1,jt)}}function jr(jt,Qt,ho,po){var Tr,D,M,W,Q,be=Qt;te||(te=!0,V&&e.clearTimeout(V),C=void 0,L=po||"",Lt.readyState=jt>0?4:0,Tr=jt>=200&&jt<300||jt===304,ho&&(W=Bs(Te,Lt,ho)),!Tr&&x.inArray("script",Te.dataTypes)>-1&&x.inArray("json",Te.dataTypes)<0&&(Te.converters["text script"]=function(){}),W=co(Te,W,Lt,Tr),Tr?(Te.ifModified&&(Q=Lt.getResponseHeader("Last-Modified"),Q&&(x.lastModified[P]=Q),Q=Lt.getResponseHeader("etag"),Q&&(x.etag[P]=Q)),jt===204||Te.type==="HEAD"?be="nocontent":jt===304?be="notmodified":(be=W.state,D=W.data,M=W.error,Tr=!M)):(M=be,(jt||!be)&&(be="error",jt<0&&(jt=0))),Lt.status=jt,Lt.statusText=(Qt||be)+"",Tr?Tt.resolveWith(Be,[D,be,Lt]):Tt.rejectWith(Be,[Lt,be,M]),Lt.statusCode(Rn),Rn=void 0,pe&&it.trigger(Tr?"ajaxSuccess":"ajaxError",[Lt,Te,Tr?D:M]),Et.fireWith(Be,[Lt,be]),pe&&(it.trigger("ajaxComplete",[Lt,Te]),--x.active||x.event.trigger("ajaxStop")))}return Lt},getJSON:function(h,b,C){return x.get(h,b,C,"json")},getScript:function(h,b){return x.get(h,void 0,b,"script")}}),x.each(["get","post"],function(h,b){x[b]=function(C,P,L,N){return I(P)&&(N=N||L,L=P,P=void 0),x.ajax(x.extend({url:C,type:b,dataType:N,data:P,success:L},x.isPlainObject(C)&&C))}}),x.ajaxPrefilter(function(h){var b;for(b in h.headers)b.toLowerCase()==="content-type"&&(h.contentType=h.headers[b]||"")}),x._evalUrl=function(h,b,C){return x.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(P){x.globalEval(P,b,C)}})},x.fn.extend({wrapAll:function(h){var b;return this[0]&&(I(h)&&(h=h.call(this[0])),b=x(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(h){return I(h)?this.each(function(b){x(this).wrapInner(h.call(this,b))}):this.each(function(){var b=x(this),C=b.contents();C.length?C.wrapAll(h):b.append(h)})},wrap:function(h){var b=I(h);return this.each(function(C){x(this).wrapAll(b?h.call(this,C):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(h){return!x.expr.pseudos.visible(h)},x.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var ua={0:200,1223:204},ln=x.ajaxSettings.xhr();A.cors=!!ln&&"withCredentials"in ln,A.ajax=ln=!!ln,x.ajaxTransport(function(h){var b,C;if(A.cors||ln&&!h.crossDomain)return{send:function(P,L){var N,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(N in h.xhrFields)V[N]=h.xhrFields[N];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!P["X-Requested-With"]&&(P["X-Requested-With"]="XMLHttpRequest");for(N in P)V.setRequestHeader(N,P[N]);b=function(se){return function(){b&&(b=C=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,se==="abort"?V.abort():se==="error"?typeof V.status!="number"?L(0,"error"):L(V.status,V.statusText):L(ua[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=b(),C=V.onerror=V.ontimeout=b("error"),V.onabort!==void 0?V.onabort=C:V.onreadystatechange=function(){V.readyState===4&&e.setTimeout(function(){b&&C()})},b=b("abort");try{V.send(h.hasContent&&h.data||null)}catch(se){if(b)throw se}},abort:function(){b&&b()}}}),x.ajaxPrefilter(function(h){h.crossDomain&&(h.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(h){return x.globalEval(h),h}}}),x.ajaxPrefilter("script",function(h){h.cache===void 0&&(h.cache=!1),h.crossDomain&&(h.type="GET")}),x.ajaxTransport("script",function(h){if(h.crossDomain||h.scriptAttrs){var b,C;return{send:function(P,L){b=x("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",C=function(N){b.remove(),C=null,N&&L(N.type==="error"?404:200,N.type)}),R.head.appendChild(b[0])},abort:function(){C&&C()}}}});var Mo=[],bi=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Mo.pop()||x.expando+"_"+Jr.guid++;return this[h]=!0,h}}),x.ajaxPrefilter("json jsonp",function(h,b,C){var P,L,N,V=h.jsonp!==!1&&(bi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bi.test(h.data)&&"data");if(V||h.dataTypes[0]==="jsonp")return P=h.jsonpCallback=I(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(bi,"$1"+P):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+P),h.converters["script json"]=function(){return N||x.error(P+" was not called"),N[0]},h.dataTypes[0]="json",L=e[P],e[P]=function(){N=arguments},C.always(function(){L===void 0?x(e).removeProp(P):e[P]=L,h[P]&&(h.jsonpCallback=b.jsonpCallback,Mo.push(P)),N&&I(L)&&L(N[0]),N=L=void 0}),"script"}),A.createHTMLDocument=function(){var h=R.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),x.parseHTML=function(h,b,C){if(typeof h!="string")return[];typeof b=="boolean"&&(C=b,b=!1);var P,L,N;return b||(A.createHTMLDocument?(b=R.implementation.createHTMLDocument(""),P=b.createElement("base"),P.href=R.location.href,b.head.appendChild(P)):b=R),L=je.exec(h),N=!C&&[],L?[b.createElement(L[1])]:(L=Tn([h],b,N),N&&N.length&&x(N).remove(),x.merge([],L.childNodes))},x.fn.load=function(h,b,C){var P,L,N,V=this,se=h.indexOf(" ");return se>-1&&(P=dt(h.slice(se)),h=h.slice(0,se)),I(b)?(C=b,b=void 0):b&&typeof b=="object"&&(L="POST"),V.length>0&&x.ajax({url:h,type:L||"GET",dataType:"html",data:b}).done(function(te){N=arguments,V.html(P?x("<div>").append(x.parseHTML(te)).find(P):te)}).always(C&&function(te,pe){V.each(function(){C.apply(this,N||[te.responseText,pe,te])})}),this},x.expr.pseudos.animated=function(h){return x.grep(x.timers,function(b){return h===b.elem}).length},x.offset={setOffset:function(h,b,C){var P,L,N,V,se,te,pe,_e=x.css(h,"position"),Ae=x(h),Te={};_e==="static"&&(h.style.position="relative"),se=Ae.offset(),N=x.css(h,"top"),te=x.css(h,"left"),pe=(_e==="absolute"||_e==="fixed")&&(N+te).indexOf("auto")>-1,pe?(P=Ae.position(),V=P.top,L=P.left):(V=parseFloat(N)||0,L=parseFloat(te)||0),I(b)&&(b=b.call(h,C,x.extend({},se))),b.top!=null&&(Te.top=b.top-se.top+V),b.left!=null&&(Te.left=b.left-se.left+L),"using"in b?b.using.call(h,Te):Ae.css(Te)}},x.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(L){x.offset.setOffset(this,h,L)});var b,C,P=this[0];if(P)return P.getClientRects().length?(b=P.getBoundingClientRect(),C=P.ownerDocument.defaultView,{top:b.top+C.pageYOffset,left:b.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,b,C,P=this[0],L={top:0,left:0};if(x.css(P,"position")==="fixed")b=P.getBoundingClientRect();else{for(b=this.offset(),C=P.ownerDocument,h=P.offsetParent||C.documentElement;h&&(h===C.body||h===C.documentElement)&&x.css(h,"position")==="static";)h=h.parentNode;h&&h!==P&&h.nodeType===1&&(L=x(h).offset(),L.top+=x.css(h,"borderTopWidth",!0),L.left+=x.css(h,"borderLeftWidth",!0))}return{top:b.top-L.top-x.css(P,"marginTop",!0),left:b.left-L.left-x.css(P,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&x.css(h,"position")==="static";)h=h.offsetParent;return h||Or})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,b){var C=b==="pageYOffset";x.fn[h]=function(P){return Sn(this,function(L,N,V){var se;if(j(L)?se=L:L.nodeType===9&&(se=L.defaultView),V===void 0)return se?se[b]:L[N];se?se.scrollTo(C?se.pageXOffset:V,C?V:se.pageYOffset):L[N]=V},h,P,arguments.length)}}),x.each(["top","left"],function(h,b){x.cssHooks[b]=ar(A.pixelPosition,function(C,P){if(P)return P=Oi(C,b),Kr.test(P)?x(C).position()[b]+"px":P})}),x.each({Height:"height",Width:"width"},function(h,b){x.each({padding:"inner"+h,content:b,"":"outer"+h},function(C,P){x.fn[P]=function(L,N){var V=arguments.length&&(C||typeof L!="boolean"),se=C||(L===!0||N===!0?"margin":"border");return Sn(this,function(te,pe,_e){var Ae;return j(te)?P.indexOf("outer")===0?te["inner"+h]:te.document.documentElement["client"+h]:te.nodeType===9?(Ae=te.documentElement,Math.max(te.body["scroll"+h],Ae["scroll"+h],te.body["offset"+h],Ae["offset"+h],Ae["client"+h])):_e===void 0?x.css(te,pe,se):x.style(te,pe,_e,se)},b,V?L:void 0,V)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,b){x.fn[b]=function(C){return this.on(b,C)}}),x.fn.extend({bind:function(h,b,C){return this.on(h,null,b,C)},unbind:function(h,b){return this.off(h,null,b)},delegate:function(h,b,C,P){return this.on(b,h,C,P)},undelegate:function(h,b,C){return arguments.length===1?this.off(h,"**"):this.off(b,h||"**",C)},hover:function(h,b){return this.on("mouseenter",h).on("mouseleave",b||h)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(h,b){x.fn[b]=function(C,P){return arguments.length>0?this.on(b,null,C,P):this.trigger(b)}});var ca=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(h,b){var C,P,L;if(typeof b=="string"&&(C=h[b],b=h,h=C),!!I(h))return P=o.call(arguments,2),L=function(){return h.apply(b||this,P.concat(o.call(arguments)))},L.guid=h.guid=h.guid||x.guid++,L},x.holdReady=function(h){h?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=ae,x.isFunction=I,x.isWindow=j,x.camelCase=sn,x.type=ne,x.now=Date.now,x.isNumeric=function(h){var b=x.type(h);return(b==="number"||b==="string")&&!isNaN(h-parseFloat(h))},x.trim=function(h){return h==null?"":(h+"").replace(ca,"$1")};var fo=e.jQuery,cr=e.$;return x.noConflict=function(h){return e.$===x&&(e.$=cr),h&&e.jQuery===x&&(e.jQuery=fo),x},typeof n>"u"&&(e.jQuery=e.$=x),x})})(VD);var HD=VD.exports;const o6=Eu(HD);var s6={exports:{}};/**
|
|
175
175
|
* @version: 3.1
|
|
176
176
|
* @author: Dan Grossman http://www.dangrossman.info/
|
|
177
177
|
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
178
178
|
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
179
179
|
* @website: http://www.daterangepicker.com/
|
|
180
|
-
*/(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=HD,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:Dm;t.exports=n(i,r)}else e.daterangepicker=n(e.moment,e.jQuery)})(ki,function(e,n){var r=function(i,o,a){if(this.parentEl="body",this.element=n(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var f=c.value;this.locale.customRangeLabel=f}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=e(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=e(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=e(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=e(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=e(o.startDate)),typeof o.endDate=="object"&&(this.endDate=e(o.endDate)),typeof o.minDate=="object"&&(this.minDate=e(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=e(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var y,g,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),A=E.split(this.locale.separator);y=g=null,A.length==2?(y=e(A[0],this.locale.format),g=e(A[1],this.locale.format)):this.singleDatePicker&&E!==""&&(y=e(E,this.locale.format),g=e(E,this.locale.format)),y!==null&&g!==null&&(this.setStartDate(y),this.setEndDate(g))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?y=e(o.ranges[T][0],this.locale.format):y=e(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?g=e(o.ranges[T][1],this.locale.format):g=e(o.ranges[T][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&y.clone().add(this.maxSpan).isAfter(I)&&(I=y.clone().add(this.maxSpan)),I&&g.isAfter(I)&&(g=I.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&y.isAfter(I,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var f=c.value;this.ranges[f]=[y,g]}}var j="<ul>";for(T in this.ranges)j+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(j+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),j+="</ul>",this.container.find(".ranges").prepend(j)}typeof a=="function"&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=e(i,this.locale.format)),typeof i=="object"&&(this.startDate=e(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=e(i,this.locale.format)),typeof i=="object"&&(this.endDate=e(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,a;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(a),this.rightCalendar.month.hour(i).minute(o).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var R=i=="left"?this.leftCalendar:this.rightCalendar,o=R.month.month(),a=R.month.year(),c=R.month.hour(),f=R.month.minute(),p=R.month.second(),y=e([a,o]).daysInMonth(),g=e([a,o,1]),T=e([a,o,y]),E=e(g).subtract(1,"month").month(),A=e(g).subtract(1,"month").year(),I=e([A,E]).daysInMonth(),j=g.day(),R=[];R.firstDay=g,R.lastDay=T;for(var U=0;U<6;U++)R[U]=[];var H=I-j+this.locale.firstDay+1;H>I&&(H-=7),j==this.locale.firstDay&&(H=I-6);for(var ne=e([A,E,H,12,f,p]),q,ie,U=0,q=0,ie=0;U<42;U++,q++,ne=e(ne).add(24,"hour"))U>0&&q%7===0&&(q=0,ie++),R[ie][q]=ne.clone().hour(c).minute(f).second(p),ne.hour(12),this.minDate&&R[ie][q].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[ie][q].isBefore(this.minDate)&&i=="left"&&(R[ie][q]=this.minDate.clone()),this.maxDate&&R[ie][q].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[ie][q].isAfter(this.maxDate)&&i=="right"&&(R[ie][q]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var x=i=="left"?this.minDate:this.startDate,le=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ae='<table class="table-condensed">';ae+="<thead>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+="<th></th>"),(!x||x.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ae+='<th class="prev available"><span></span></th>':ae+="<th></th>";var $e=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var tt=R[1][1].month(),Qe=R[1][1].year(),Ye=le&&le.year()||this.maxYear,Oe=x&&x.year()||this.minYear,ue=Qe==Oe,ve=Qe==Ye,ke='<select class="monthselect">',Le=0;Le<12;Le++)(!ue||x&&Le>=x.month())&&(!ve||le&&Le<=le.month())?ke+="<option value='"+Le+"'"+(Le===tt?" selected='selected'":"")+">"+this.locale.monthNames[Le]+"</option>":ke+="<option value='"+Le+"'"+(Le===tt?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Le]+"</option>";ke+="</select>";for(var et='<select class="yearselect">',me=Oe;me<=Ye;me++)et+='<option value="'+me+'"'+(me===Qe?' selected="selected"':"")+">"+me+"</option>";et+="</select>",$e=ke+et}if(ae+='<th colspan="5" class="month">'+$e+"</th>",(!le||le.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ae+='<th class="next available"><span></span></th>':ae+="<th></th>",ae+="</tr>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Xe,ot){ae+="<th>"+ot+"</th>"}),ae+="</tr>",ae+="</thead>",ae+="<tbody>",this.endDate==null&&this.maxSpan){var Se=this.startDate.clone().add(this.maxSpan).endOf("day");(!le||Se.isBefore(le))&&(le=Se)}for(var ie=0;ie<6;ie++){ae+="<tr>",this.showWeekNumbers?ae+='<td class="week">'+R[ie][0].week()+"</td>":this.showISOWeekNumbers&&(ae+='<td class="week">'+R[ie][0].isoWeek()+"</td>");for(var q=0;q<7;q++){var je=[];R[ie][q].isSame(new Date,"day")&&je.push("today"),R[ie][q].isoWeekday()>5&&je.push("weekend"),R[ie][q].month()!=R[1][1].month()&&je.push("off","ends"),this.minDate&&R[ie][q].isBefore(this.minDate,"day")&&je.push("off","disabled"),le&&R[ie][q].isAfter(le,"day")&&je.push("off","disabled"),this.isInvalidDate(R[ie][q])&&je.push("off","disabled"),R[ie][q].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&je.push("active","start-date"),this.endDate!=null&&R[ie][q].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&je.push("active","end-date"),this.endDate!=null&&R[ie][q]>this.startDate&&R[ie][q]<this.endDate&&je.push("in-range");var Ue=this.isCustomDate(R[ie][q]);Ue!==!1&&(typeof Ue=="string"?je.push(Ue):Array.prototype.push.apply(je,Ue));for(var Ge="",Ze=!1,U=0;U<je.length;U++)Ge+=je[U]+" ",je[U]=="disabled"&&(Ze=!0);Ze||(Ge+="available"),ae+='<td class="'+Ge.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+q+'">'+R[ie][q].date()+"</td>"}ae+="</tr>"}ae+="</tbody>",ae+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ae)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,c,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),c=this.minDate;else if(i=="right"){a=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(a.hour(isNaN(a.hour())?p.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?p.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?p.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var y=p.find(".ampmselect option:selected").val();y==="PM"&&a.hour()<12&&a.hour(a.hour()+12),y==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),f&&a.isAfter(f)&&(a=f.clone())}o='<select class="hourselect">';for(var g=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,E=g;E<=T;E++){var A=E;this.timePicker24Hour||(A=a.hour()>=12?E==12?12:E+12:E==12?0:E);var I=a.clone().hour(A),j=!1;c&&I.minute(59).isBefore(c)&&(j=!0),f&&I.minute(0).isAfter(f)&&(j=!0),A==a.hour()&&!j?o+='<option value="'+E+'" selected="selected">'+E+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":o+='<option value="'+E+'">'+E+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var R=E<10?"0"+E:E,I=a.clone().minute(E),j=!1;c&&I.second(59).isBefore(c)&&(j=!0),f&&I.second(0).isAfter(f)&&(j=!0),a.minute()==E&&!j?o+='<option value="'+E+'" selected="selected">'+R+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var E=0;E<60;E++){var R=E<10?"0"+E:E,I=a.clone().second(E),j=!1;c&&I.isBefore(c)&&(j=!0),f&&I.isAfter(f)&&(j=!0),a.second()==E&&!j?o+='<option value="'+E+'" selected="selected">'+R+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",H="";c&&a.clone().hour(12).minute(0).second(0).isBefore(c)&&(U=' disabled="disabled" class="disabled"'),f&&a.clone().hour(0).minute(0).second(0).isAfter(f)&&(H=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+H+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+H+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,a=this.drops,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,a="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var f=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var p=c-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-f/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}else{var y=this.element.offset().left-i.left;y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[o];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c],y=this.leftCalendar,g=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,A){if(!n(A).hasClass("week")){var I=n(A).attr("data-title"),j=I.substr(1,1),R=I.substr(3,1),U=n(A).parents(".drp-calendar"),H=U.hasClass("left")?y.calendar[j][R]:g.calendar[j][R];H.isAfter(T)&&H.isBefore(p)||H.isSame(p,"day")?n(A).addClass("in-range"):n(A).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c];if(this.endDate||p.isBefore(this.startDate,"day")){if(this.timePicker){var y=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".left .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var y=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".right .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var a in this.ranges){if(this.timePicker){var c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[a][0].format(c)&&this.endDate.format(c)==this.ranges[a][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),a=o?"left":"right",c=this.container.find(".drp-calendar."+a),f=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),a=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&c<12&&(c+=12),y==="AM"&&c===12&&(c=0)}if(a){var g=this.startDate.clone();g.hour(c),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(c),T.minute(f),T.second(p),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,a=null;i.length===2&&(o=e(i[0],this.locale.format),a=e(i[1],this.locale.format)),(this.singleDatePicker||o===null||a===null)&&(o=e(this.element.val(),this.locale.format),a=o),!(!o.isValid()||!a.isValid())&&(this.setStartDate(o),this.setEndDate(a),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var a=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,a,o))}),this},r})})(o6);var Pv=function(t,e){return Pv=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])},Pv(t,e)};function s6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var a6=function(t){s6(e,t);function e(n){var r=t.call(this,n)||this;return r.ref=null,r.$picker=null,r}return e.prototype.componentDidMount=function(){var n=this;this.$picker=i6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},e.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},e.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},e.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,a){typeof i=="function"&&i(o,a),typeof r.props[n]=="function"&&r.props[n](o,a)}},e.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},e.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},e.prototype.render=function(){var n=this,r=kn.Children.only(this.props.children);return kn.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(kn.Component);aa.styled(t=>Pe.jsx(aa.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:mr.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
180
|
+
*/(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=HD,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:Dm;t.exports=n(i,r)}else e.daterangepicker=n(e.moment,e.jQuery)})(ki,function(e,n){var r=function(i,o,a){if(this.parentEl="body",this.element=n(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var f=c.value;this.locale.customRangeLabel=f}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=e(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=e(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=e(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=e(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=e(o.startDate)),typeof o.endDate=="object"&&(this.endDate=e(o.endDate)),typeof o.minDate=="object"&&(this.minDate=e(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=e(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var y,g,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),A=E.split(this.locale.separator);y=g=null,A.length==2?(y=e(A[0],this.locale.format),g=e(A[1],this.locale.format)):this.singleDatePicker&&E!==""&&(y=e(E,this.locale.format),g=e(E,this.locale.format)),y!==null&&g!==null&&(this.setStartDate(y),this.setEndDate(g))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?y=e(o.ranges[T][0],this.locale.format):y=e(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?g=e(o.ranges[T][1],this.locale.format):g=e(o.ranges[T][1]),this.minDate&&y.isBefore(this.minDate)&&(y=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&y.clone().add(this.maxSpan).isAfter(I)&&(I=y.clone().add(this.maxSpan)),I&&g.isAfter(I)&&(g=I.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&y.isAfter(I,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var f=c.value;this.ranges[f]=[y,g]}}var j="<ul>";for(T in this.ranges)j+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(j+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),j+="</ul>",this.container.find(".ranges").prepend(j)}typeof a=="function"&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=e(i,this.locale.format)),typeof i=="object"&&(this.startDate=e(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=e(i,this.locale.format)),typeof i=="object"&&(this.endDate=e(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,a;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(a),this.rightCalendar.month.hour(i).minute(o).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var R=i=="left"?this.leftCalendar:this.rightCalendar,o=R.month.month(),a=R.month.year(),c=R.month.hour(),f=R.month.minute(),p=R.month.second(),y=e([a,o]).daysInMonth(),g=e([a,o,1]),T=e([a,o,y]),E=e(g).subtract(1,"month").month(),A=e(g).subtract(1,"month").year(),I=e([A,E]).daysInMonth(),j=g.day(),R=[];R.firstDay=g,R.lastDay=T;for(var U=0;U<6;U++)R[U]=[];var H=I-j+this.locale.firstDay+1;H>I&&(H-=7),j==this.locale.firstDay&&(H=I-6);for(var ne=e([A,E,H,12,f,p]),q,ie,U=0,q=0,ie=0;U<42;U++,q++,ne=e(ne).add(24,"hour"))U>0&&q%7===0&&(q=0,ie++),R[ie][q]=ne.clone().hour(c).minute(f).second(p),ne.hour(12),this.minDate&&R[ie][q].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[ie][q].isBefore(this.minDate)&&i=="left"&&(R[ie][q]=this.minDate.clone()),this.maxDate&&R[ie][q].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[ie][q].isAfter(this.maxDate)&&i=="right"&&(R[ie][q]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var x=i=="left"?this.minDate:this.startDate,le=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ae='<table class="table-condensed">';ae+="<thead>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+="<th></th>"),(!x||x.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ae+='<th class="prev available"><span></span></th>':ae+="<th></th>";var $e=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var tt=R[1][1].month(),Qe=R[1][1].year(),Ye=le&&le.year()||this.maxYear,Oe=x&&x.year()||this.minYear,ue=Qe==Oe,ve=Qe==Ye,ke='<select class="monthselect">',Le=0;Le<12;Le++)(!ue||x&&Le>=x.month())&&(!ve||le&&Le<=le.month())?ke+="<option value='"+Le+"'"+(Le===tt?" selected='selected'":"")+">"+this.locale.monthNames[Le]+"</option>":ke+="<option value='"+Le+"'"+(Le===tt?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Le]+"</option>";ke+="</select>";for(var et='<select class="yearselect">',me=Oe;me<=Ye;me++)et+='<option value="'+me+'"'+(me===Qe?' selected="selected"':"")+">"+me+"</option>";et+="</select>",$e=ke+et}if(ae+='<th colspan="5" class="month">'+$e+"</th>",(!le||le.isAfter(R.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ae+='<th class="next available"><span></span></th>':ae+="<th></th>",ae+="</tr>",ae+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ae+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Xe,ot){ae+="<th>"+ot+"</th>"}),ae+="</tr>",ae+="</thead>",ae+="<tbody>",this.endDate==null&&this.maxSpan){var Se=this.startDate.clone().add(this.maxSpan).endOf("day");(!le||Se.isBefore(le))&&(le=Se)}for(var ie=0;ie<6;ie++){ae+="<tr>",this.showWeekNumbers?ae+='<td class="week">'+R[ie][0].week()+"</td>":this.showISOWeekNumbers&&(ae+='<td class="week">'+R[ie][0].isoWeek()+"</td>");for(var q=0;q<7;q++){var je=[];R[ie][q].isSame(new Date,"day")&&je.push("today"),R[ie][q].isoWeekday()>5&&je.push("weekend"),R[ie][q].month()!=R[1][1].month()&&je.push("off","ends"),this.minDate&&R[ie][q].isBefore(this.minDate,"day")&&je.push("off","disabled"),le&&R[ie][q].isAfter(le,"day")&&je.push("off","disabled"),this.isInvalidDate(R[ie][q])&&je.push("off","disabled"),R[ie][q].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&je.push("active","start-date"),this.endDate!=null&&R[ie][q].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&je.push("active","end-date"),this.endDate!=null&&R[ie][q]>this.startDate&&R[ie][q]<this.endDate&&je.push("in-range");var Ue=this.isCustomDate(R[ie][q]);Ue!==!1&&(typeof Ue=="string"?je.push(Ue):Array.prototype.push.apply(je,Ue));for(var Ge="",Ze=!1,U=0;U<je.length;U++)Ge+=je[U]+" ",je[U]=="disabled"&&(Ze=!0);Ze||(Ge+="available"),ae+='<td class="'+Ge.replace(/^\s+|\s+$/g,"")+'" data-title="r'+ie+"c"+q+'">'+R[ie][q].date()+"</td>"}ae+="</tr>"}ae+="</tbody>",ae+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ae)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,c,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),c=this.minDate;else if(i=="right"){a=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(a.hour(isNaN(a.hour())?p.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?p.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?p.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var y=p.find(".ampmselect option:selected").val();y==="PM"&&a.hour()<12&&a.hour(a.hour()+12),y==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),f&&a.isAfter(f)&&(a=f.clone())}o='<select class="hourselect">';for(var g=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,E=g;E<=T;E++){var A=E;this.timePicker24Hour||(A=a.hour()>=12?E==12?12:E+12:E==12?0:E);var I=a.clone().hour(A),j=!1;c&&I.minute(59).isBefore(c)&&(j=!0),f&&I.minute(0).isAfter(f)&&(j=!0),A==a.hour()&&!j?o+='<option value="'+E+'" selected="selected">'+E+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":o+='<option value="'+E+'">'+E+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var R=E<10?"0"+E:E,I=a.clone().minute(E),j=!1;c&&I.second(59).isBefore(c)&&(j=!0),f&&I.second(0).isAfter(f)&&(j=!0),a.minute()==E&&!j?o+='<option value="'+E+'" selected="selected">'+R+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var E=0;E<60;E++){var R=E<10?"0"+E:E,I=a.clone().second(E),j=!1;c&&I.isBefore(c)&&(j=!0),f&&I.isAfter(f)&&(j=!0),a.second()==E&&!j?o+='<option value="'+E+'" selected="selected">'+R+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+E+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",H="";c&&a.clone().hour(12).minute(0).second(0).isBefore(c)&&(U=' disabled="disabled" class="disabled"'),f&&a.clone().hour(0).minute(0).second(0).isAfter(f)&&(H=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+H+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+H+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,a=this.drops,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,a="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var f=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var p=c-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var y=this.element.offset().left-i.left+this.element.outerWidth()/2-f/2;y<0?this.container.css({top:o,right:"auto",left:9}):y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}else{var y=this.element.offset().left-i.left;y+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:y,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[o];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c],y=this.leftCalendar,g=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,A){if(!n(A).hasClass("week")){var I=n(A).attr("data-title"),j=I.substr(1,1),R=I.substr(3,1),U=n(A).parents(".drp-calendar"),H=U.hasClass("left")?y.calendar[j][R]:g.calendar[j][R];H.isAfter(T)&&H.isBefore(p)||H.isSame(p,"day")?n(A).addClass("in-range"):n(A).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c];if(this.endDate||p.isBefore(this.startDate,"day")){if(this.timePicker){var y=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".left .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var y=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".right .ampmselect").val();g==="PM"&&y<12&&(y+=12),g==="AM"&&y===12&&(y=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(y).minute(T).second(E)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var a in this.ranges){if(this.timePicker){var c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[a][0].format(c)&&this.endDate.format(c)==this.ranges[a][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),a=o?"left":"right",c=this.container.find(".drp-calendar."+a),f=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),a=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var y=o.find(".ampmselect").val();y==="PM"&&c<12&&(c+=12),y==="AM"&&c===12&&(c=0)}if(a){var g=this.startDate.clone();g.hour(c),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(c),T.minute(f),T.second(p),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,a=null;i.length===2&&(o=e(i[0],this.locale.format),a=e(i[1],this.locale.format)),(this.singleDatePicker||o===null||a===null)&&(o=e(this.element.val(),this.locale.format),a=o),!(!o.isValid()||!a.isValid())&&(this.setStartDate(o),this.setEndDate(a),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var a=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,a,o))}),this},r})})(s6);var Pv=function(t,e){return Pv=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])},Pv(t,e)};function a6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var l6=function(t){a6(e,t);function e(n){var r=t.call(this,n)||this;return r.ref=null,r.$picker=null,r}return e.prototype.componentDidMount=function(){var n=this;this.$picker=o6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},e.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},e.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},e.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,a){typeof i=="function"&&i(o,a),typeof r.props[n]=="function"&&r.props[n](o,a)}},e.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},e.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},e.prototype.render=function(){var n=this,r=kn.Children.only(this.props.children);return kn.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(kn.Component);aa.styled(t=>Pe.jsx(aa.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:mr.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
|
|
181
181
|
* @license
|
|
182
182
|
* Copyright 2017 Google LLC
|
|
183
183
|
*
|
|
@@ -207,7 +207,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
207
207
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
208
208
|
* See the License for the specific language governing permissions and
|
|
209
209
|
* limitations under the License.
|
|
210
|
-
*/const UD=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},
|
|
210
|
+
*/const UD=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},u6=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],a=t[n++],c=t[n++],f=((i&7)<<18|(o&63)<<12|(a&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(f>>10)),e[r++]=String.fromCharCode(56320+(f&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},WD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],a=i+1<t.length,c=a?t[i+1]:0,f=i+2<t.length,p=f?t[i+2]:0,y=o>>2,g=(o&3)<<4|c>>4;let T=(c&15)<<2|p>>6,E=p&63;f||(E=64,a||(T=64)),r.push(n[y],n[g],n[T],n[E])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(UD(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):u6(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],c=i<t.length?n[t.charAt(i)]:0;++i;const p=i<t.length?n[t.charAt(i)]:64;++i;const g=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||c==null||p==null||g==null)throw new c6;const T=o<<2|c>>4;if(r.push(T),p!==64){const E=c<<4&240|p>>2;if(r.push(E),g!==64){const A=p<<6&192|g;r.push(A)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class c6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const f6=function(t){const e=UD(t);return WD.encodeByteArray(e,!0)},zD=function(t){return f6(t).replace(/\./g,"")},d6=function(t){try{return WD.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
|
|
211
211
|
* @license
|
|
212
212
|
* Copyright 2022 Google LLC
|
|
213
213
|
*
|
|
@@ -222,7 +222,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
222
222
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
223
223
|
* See the License for the specific language governing permissions and
|
|
224
224
|
* limitations under the License.
|
|
225
|
-
*/function
|
|
225
|
+
*/function h6(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
|
226
226
|
* @license
|
|
227
227
|
* Copyright 2022 Google LLC
|
|
228
228
|
*
|
|
@@ -237,7 +237,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
237
237
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
238
238
|
* See the License for the specific language governing permissions and
|
|
239
239
|
* limitations under the License.
|
|
240
|
-
*/const
|
|
240
|
+
*/const p6=()=>h6().__FIREBASE_DEFAULTS__,g6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},m6=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&d6(t[1]);return e&&JSON.parse(e)},v6=()=>{try{return p6()||g6()||m6()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},YD=()=>{var t;return(t=v6())===null||t===void 0?void 0:t.config};/**
|
|
241
241
|
* @license
|
|
242
242
|
* Copyright 2017 Google LLC
|
|
243
243
|
*
|
|
@@ -252,7 +252,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
252
252
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
253
253
|
* See the License for the specific language governing permissions and
|
|
254
254
|
* limitations under the License.
|
|
255
|
-
*/class
|
|
255
|
+
*/class y6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function GD(){try{return typeof indexedDB=="object"}catch{return!1}}function qD(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function b6(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright 2017 Google LLC
|
|
258
258
|
*
|
|
@@ -267,7 +267,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
267
267
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
268
|
* See the License for the specific language governing permissions and
|
|
269
269
|
* limitations under the License.
|
|
270
|
-
*/const
|
|
270
|
+
*/const w6="FirebaseError";class jf extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=w6,Object.setPrototypeOf(this,jf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Gp.prototype.create)}}class Gp{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],a=o?x6(o,r):"Error",c=`${this.serviceName}: ${a} (${i}).`;return new jf(i,c,r)}}function x6(t,e){return t.replace(S6,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const S6=/\{\$([^}]+)}/g;function Ov(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],a=e[i];if(P1(o)&&P1(a)){if(!Ov(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function P1(t){return t!==null&&typeof t=="object"}/**
|
|
271
271
|
* @license
|
|
272
272
|
* Copyright 2021 Google LLC
|
|
273
273
|
*
|
|
@@ -312,7 +312,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
312
312
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
313
313
|
* See the License for the specific language governing permissions and
|
|
314
314
|
* limitations under the License.
|
|
315
|
-
*/class
|
|
315
|
+
*/class T6{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new y6;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(E6(e))try{this.getOrInitializeService({instanceIdentifier:vc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=vc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=vc){return this.instances.has(e)}getOptions(e=vc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(o);r===c&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const a=this.instances.get(i);return a&&e(a,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:C6(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=vc){return this.component?this.component.multipleInstances?e:vc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function C6(t){return t===vc?void 0:t}function E6(t){return t.instantiationMode==="EAGER"}/**
|
|
316
316
|
* @license
|
|
317
317
|
* Copyright 2019 Google LLC
|
|
318
318
|
*
|
|
@@ -327,7 +327,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
327
327
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
328
328
|
* See the License for the specific language governing permissions and
|
|
329
329
|
* limitations under the License.
|
|
330
|
-
*/class
|
|
330
|
+
*/class k6{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new T6(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
331
331
|
* @license
|
|
332
332
|
* Copyright 2017 Google LLC
|
|
333
333
|
*
|
|
@@ -342,7 +342,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342
342
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
343
343
|
* See the License for the specific language governing permissions and
|
|
344
344
|
* limitations under the License.
|
|
345
|
-
*/var Mn;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Mn||(Mn={}));const
|
|
345
|
+
*/var Mn;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Mn||(Mn={}));const D6={debug:Mn.DEBUG,verbose:Mn.VERBOSE,info:Mn.INFO,warn:Mn.WARN,error:Mn.ERROR,silent:Mn.SILENT},P6=Mn.INFO,O6={[Mn.DEBUG]:"log",[Mn.VERBOSE]:"log",[Mn.INFO]:"info",[Mn.WARN]:"warn",[Mn.ERROR]:"error"},_6=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=O6[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class R6{constructor(e){this.name=e,this._logLevel=P6,this._logHandler=_6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Mn))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?D6[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Mn.DEBUG,...e),this._logHandler(this,Mn.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Mn.VERBOSE,...e),this._logHandler(this,Mn.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Mn.INFO,...e),this._logHandler(this,Mn.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Mn.WARN,...e),this._logHandler(this,Mn.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Mn.ERROR,...e),this._logHandler(this,Mn.ERROR,...e)}}const A6=(t,e)=>e.some(n=>t instanceof n);let O1,_1;function I6(){return O1||(O1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function M6(){return _1||(_1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const XD=new WeakMap,_v=new WeakMap,KD=new WeakMap,vm=new WeakMap,ib=new WeakMap;function L6(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Dl(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&XD.set(n,t)}).catch(()=>{}),ib.set(e,t),e}function F6(t){if(_v.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});_v.set(t,e)}let Rv={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return _v.get(t);if(e==="objectStoreNames")return t.objectStoreNames||KD.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Dl(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function N6(t){Rv=t(Rv)}function j6(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(ym(this),e,...n);return KD.set(r,e.sort?e.sort():[e]),Dl(r)}:M6().includes(t)?function(...e){return t.apply(ym(this),e),Dl(XD.get(this))}:function(...e){return Dl(t.apply(ym(this),e))}}function B6(t){return typeof t=="function"?j6(t):(t instanceof IDBTransaction&&F6(t),A6(t,I6())?new Proxy(t,Rv):t)}function Dl(t){if(t instanceof IDBRequest)return L6(t);if(vm.has(t))return vm.get(t);const e=B6(t);return e!==t&&(vm.set(t,e),ib.set(e,t)),e}const ym=t=>ib.get(t);function qp(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),c=Dl(a);return r&&a.addEventListener("upgradeneeded",f=>{r(Dl(a.result),f.oldVersion,f.newVersion,Dl(a.transaction),f)}),n&&a.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),c.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),c}function bm(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),Dl(n).then(()=>{})}const $6=["get","getKey","getAll","getAllKeys","count"],V6=["put","add","delete","clear"],wm=new Map;function R1(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(wm.get(e))return wm.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=V6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||$6.includes(n)))return;const o=async function(a,...c){const f=this.transaction(a,i?"readwrite":"readonly");let p=f.store;return r&&(p=p.index(c.shift())),(await Promise.all([p[n](...c),i&&f.done]))[0]};return wm.set(e,o),o}N6(t=>({...t,get:(e,n,r)=>R1(e,n)||t.get(e,n,r),has:(e,n)=>!!R1(e,n)||t.has(e,n)}));/**
|
|
346
346
|
* @license
|
|
347
347
|
* Copyright 2019 Google LLC
|
|
348
348
|
*
|
|
@@ -357,7 +357,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
357
357
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
358
358
|
* See the License for the specific language governing permissions and
|
|
359
359
|
* limitations under the License.
|
|
360
|
-
*/class
|
|
360
|
+
*/class H6{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(U6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function U6(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Av="@firebase/app",A1="0.10.13";/**
|
|
361
361
|
* @license
|
|
362
362
|
* Copyright 2019 Google LLC
|
|
363
363
|
*
|
|
@@ -372,7 +372,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
372
372
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
373
373
|
* See the License for the specific language governing permissions and
|
|
374
374
|
* limitations under the License.
|
|
375
|
-
*/const _l=new
|
|
375
|
+
*/const _l=new R6("@firebase/app"),W6="@firebase/app-compat",z6="@firebase/analytics-compat",Y6="@firebase/analytics",G6="@firebase/app-check-compat",q6="@firebase/app-check",X6="@firebase/auth",K6="@firebase/auth-compat",Z6="@firebase/database",J6="@firebase/data-connect",Q6="@firebase/database-compat",e8="@firebase/functions",t8="@firebase/functions-compat",n8="@firebase/installations",r8="@firebase/installations-compat",i8="@firebase/messaging",o8="@firebase/messaging-compat",s8="@firebase/performance",a8="@firebase/performance-compat",l8="@firebase/remote-config",u8="@firebase/remote-config-compat",c8="@firebase/storage",f8="@firebase/storage-compat",d8="@firebase/firestore",h8="@firebase/vertexai-preview",p8="@firebase/firestore-compat",g8="firebase";/**
|
|
376
376
|
* @license
|
|
377
377
|
* Copyright 2019 Google LLC
|
|
378
378
|
*
|
|
@@ -387,7 +387,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
387
387
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
388
388
|
* See the License for the specific language governing permissions and
|
|
389
389
|
* limitations under the License.
|
|
390
|
-
*/const Iv="[DEFAULT]",
|
|
390
|
+
*/const Iv="[DEFAULT]",m8={[Av]:"fire-core",[W6]:"fire-core-compat",[Y6]:"fire-analytics",[z6]:"fire-analytics-compat",[q6]:"fire-app-check",[G6]:"fire-app-check-compat",[X6]:"fire-auth",[K6]:"fire-auth-compat",[Z6]:"fire-rtdb",[J6]:"fire-data-connect",[Q6]:"fire-rtdb-compat",[e8]:"fire-fn",[t8]:"fire-fn-compat",[n8]:"fire-iid",[r8]:"fire-iid-compat",[i8]:"fire-fcm",[o8]:"fire-fcm-compat",[s8]:"fire-perf",[a8]:"fire-perf-compat",[l8]:"fire-rc",[u8]:"fire-rc-compat",[c8]:"fire-gcs",[f8]:"fire-gcs-compat",[d8]:"fire-fst",[p8]:"fire-fst-compat",[h8]:"fire-vertex","fire-js":"fire-js",[g8]:"fire-js-all"};/**
|
|
391
391
|
* @license
|
|
392
392
|
* Copyright 2019 Google LLC
|
|
393
393
|
*
|
|
@@ -402,7 +402,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
402
402
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
403
403
|
* See the License for the specific language governing permissions and
|
|
404
404
|
* limitations under the License.
|
|
405
|
-
*/const bp=new Map,
|
|
405
|
+
*/const bp=new Map,v8=new Map,Mv=new Map;function I1(t,e){try{t.container.addComponent(e)}catch(n){_l.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Pc(t){const e=t.name;if(Mv.has(e))return _l.debug(`There were multiple attempts to register component ${e}.`),!1;Mv.set(e,t);for(const n of bp.values())I1(n,t);for(const n of v8.values())I1(n,t);return!0}function ob(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
|
|
406
406
|
* @license
|
|
407
407
|
* Copyright 2019 Google LLC
|
|
408
408
|
*
|
|
@@ -417,7 +417,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
417
417
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
418
418
|
* See the License for the specific language governing permissions and
|
|
419
419
|
* limitations under the License.
|
|
420
|
-
*/const
|
|
420
|
+
*/const y8={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},gu=new Gp("app","Firebase",y8);/**
|
|
421
421
|
* @license
|
|
422
422
|
* Copyright 2019 Google LLC
|
|
423
423
|
*
|
|
@@ -432,7 +432,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
432
432
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
433
433
|
* See the License for the specific language governing permissions and
|
|
434
434
|
* limitations under the License.
|
|
435
|
-
*/class
|
|
435
|
+
*/class b8{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Cu("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw gu.create("app-deleted",{appName:this._name})}}function ZD(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:Iv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw gu.create("bad-app-name",{appName:String(i)});if(n||(n=YD()),!n)throw gu.create("no-options");const o=bp.get(i);if(o){if(Ov(n,o.options)&&Ov(r,o.config))return o;throw gu.create("duplicate-app",{appName:i})}const a=new k6(i);for(const f of Mv.values())a.addComponent(f);const c=new b8(n,r,a);return bp.set(i,c),c}function w8(t=Iv){const e=bp.get(t);if(!e&&t===Iv&&YD())return ZD();if(!e)throw gu.create("no-app",{appName:t});return e}function mu(t,e,n){var r;let i=(r=m8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),_l.warn(c.join(" "));return}Pc(new Cu(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
|
|
436
436
|
* @license
|
|
437
437
|
* Copyright 2021 Google LLC
|
|
438
438
|
*
|
|
@@ -447,7 +447,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
447
447
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
448
448
|
* See the License for the specific language governing permissions and
|
|
449
449
|
* limitations under the License.
|
|
450
|
-
*/const
|
|
450
|
+
*/const x8="firebase-heartbeat-database",S8=1,Bd="firebase-heartbeat-store";let xm=null;function JD(){return xm||(xm=qp(x8,S8,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Bd)}catch(n){console.warn(n)}}}}).catch(t=>{throw gu.create("idb-open",{originalErrorMessage:t.message})})),xm}async function T8(t){try{const n=(await JD()).transaction(Bd),r=await n.objectStore(Bd).get(QD(t));return await n.done,r}catch(e){if(e instanceof jf)_l.warn(e.message);else{const n=gu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});_l.warn(n.message)}}}async function M1(t,e){try{const r=(await JD()).transaction(Bd,"readwrite");await r.objectStore(Bd).put(e,QD(t)),await r.done}catch(n){if(n instanceof jf)_l.warn(n.message);else{const r=gu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});_l.warn(r.message)}}}function QD(t){return`${t.name}!${t.options.appId}`}/**
|
|
451
451
|
* @license
|
|
452
452
|
* Copyright 2021 Google LLC
|
|
453
453
|
*
|
|
@@ -462,7 +462,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
462
462
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
463
463
|
* See the License for the specific language governing permissions and
|
|
464
464
|
* limitations under the License.
|
|
465
|
-
*/const
|
|
465
|
+
*/const C8=1024,E8=30*24*60*60*1e3;class k8{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new P8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=L1();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(a=>a.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=E8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){_l.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=L1(),{heartbeatsToSend:r,unsentEntries:i}=D8(this._heartbeatsCache.heartbeats),o=zD(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return _l.warn(n),""}}}function L1(){return new Date().toISOString().substring(0,10)}function D8(t,e=C8){const n=[];let r=t.slice();for(const i of t){const o=n.find(a=>a.agent===i.agent);if(o){if(o.dates.push(i.date),F1(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),F1(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class P8{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return GD()?qD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await T8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return M1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return M1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function F1(t){return zD(JSON.stringify({version:2,heartbeats:t})).length}/**
|
|
466
466
|
* @license
|
|
467
467
|
* Copyright 2019 Google LLC
|
|
468
468
|
*
|
|
@@ -477,7 +477,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
477
477
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
478
478
|
* See the License for the specific language governing permissions and
|
|
479
479
|
* limitations under the License.
|
|
480
|
-
*/function
|
|
480
|
+
*/function O8(t){Pc(new Cu("platform-logger",e=>new H6(e),"PRIVATE")),Pc(new Cu("heartbeat",e=>new k8(e),"PRIVATE")),mu(Av,A1,t),mu(Av,A1,"esm2017"),mu("fire-js","")}O8("");var _8="firebase",R8="10.14.1";/**
|
|
481
481
|
* @license
|
|
482
482
|
* Copyright 2020 Google LLC
|
|
483
483
|
*
|
|
@@ -492,7 +492,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
492
492
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
493
493
|
* See the License for the specific language governing permissions and
|
|
494
494
|
* limitations under the License.
|
|
495
|
-
*/mu(
|
|
495
|
+
*/mu(_8,R8,"app");const eP="@firebase/installations",sb="0.6.9";/**
|
|
496
496
|
* @license
|
|
497
497
|
* Copyright 2019 Google LLC
|
|
498
498
|
*
|
|
@@ -507,7 +507,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
507
507
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
508
508
|
* See the License for the specific language governing permissions and
|
|
509
509
|
* limitations under the License.
|
|
510
|
-
*/const tP=1e4,nP=`w:${sb}`,rP="FIS_v2",
|
|
510
|
+
*/const tP=1e4,nP=`w:${sb}`,rP="FIS_v2",A8="https://firebaseinstallations.googleapis.com/v1",I8=60*60*1e3,M8="installations",L8="Installations";/**
|
|
511
511
|
* @license
|
|
512
512
|
* Copyright 2019 Google LLC
|
|
513
513
|
*
|
|
@@ -522,7 +522,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
522
522
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
523
523
|
* See the License for the specific language governing permissions and
|
|
524
524
|
* limitations under the License.
|
|
525
|
-
*/const
|
|
525
|
+
*/const F8={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Oc=new Gp(M8,L8,F8);function iP(t){return t instanceof jf&&t.code.includes("request-failed")}/**
|
|
526
526
|
* @license
|
|
527
527
|
* Copyright 2019 Google LLC
|
|
528
528
|
*
|
|
@@ -537,7 +537,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
537
537
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
538
538
|
* See the License for the specific language governing permissions and
|
|
539
539
|
* limitations under the License.
|
|
540
|
-
*/function oP({projectId:t}){return`${
|
|
540
|
+
*/function oP({projectId:t}){return`${A8}/projects/${t}/installations`}function sP(t){return{token:t.token,requestStatus:2,expiresIn:j8(t.expiresIn),creationTime:Date.now()}}async function aP(t,e){const r=(await e.json()).error;return Oc.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function lP({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function N8(t,{refreshToken:e}){const n=lP(t);return n.append("Authorization",B8(e)),n}async function uP(t){const e=await t();return e.status>=500&&e.status<600?t():e}function j8(t){return Number(t.replace("s","000"))}function B8(t){return`${rP} ${t}`}/**
|
|
541
541
|
* @license
|
|
542
542
|
* Copyright 2019 Google LLC
|
|
543
543
|
*
|
|
@@ -552,7 +552,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
552
552
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
553
553
|
* See the License for the specific language governing permissions and
|
|
554
554
|
* limitations under the License.
|
|
555
|
-
*/async function
|
|
555
|
+
*/async function $8({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=oP(t),i=lP(t),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={fid:n,authVersion:rP,appId:t.appId,sdkVersion:nP},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await uP(()=>fetch(r,c));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:sP(p.authToken)}}else throw await aP("Create Installation",f)}/**
|
|
556
556
|
* @license
|
|
557
557
|
* Copyright 2019 Google LLC
|
|
558
558
|
*
|
|
@@ -582,7 +582,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
582
582
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
583
|
* See the License for the specific language governing permissions and
|
|
584
584
|
* limitations under the License.
|
|
585
|
-
*/function
|
|
585
|
+
*/function V8(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
586
586
|
* @license
|
|
587
587
|
* Copyright 2019 Google LLC
|
|
588
588
|
*
|
|
@@ -597,7 +597,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
597
597
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
598
598
|
* See the License for the specific language governing permissions and
|
|
599
599
|
* limitations under the License.
|
|
600
|
-
*/const
|
|
600
|
+
*/const H8=/^[cdef][\w-]{21}$/,Lv="";function U8(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=W8(t);return H8.test(n)?n:Lv}catch{return Lv}}function W8(t){return V8(t).substr(0,22)}/**
|
|
601
601
|
* @license
|
|
602
602
|
* Copyright 2019 Google LLC
|
|
603
603
|
*
|
|
@@ -627,7 +627,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
627
627
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
628
628
|
* See the License for the specific language governing permissions and
|
|
629
629
|
* limitations under the License.
|
|
630
|
-
*/const fP=new Map;function dP(t,e){const n=Xp(t);hP(n,e),
|
|
630
|
+
*/const fP=new Map;function dP(t,e){const n=Xp(t);hP(n,e),z8(n,e)}function hP(t,e){const n=fP.get(t);if(n)for(const r of n)r(e)}function z8(t,e){const n=Y8();n&&n.postMessage({key:t,fid:e}),G8()}let wc=null;function Y8(){return!wc&&"BroadcastChannel"in self&&(wc=new BroadcastChannel("[Firebase] FID Change"),wc.onmessage=t=>{hP(t.data.key,t.data.fid)}),wc}function G8(){fP.size===0&&wc&&(wc.close(),wc=null)}/**
|
|
631
631
|
* @license
|
|
632
632
|
* Copyright 2019 Google LLC
|
|
633
633
|
*
|
|
@@ -642,7 +642,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
642
642
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
643
643
|
* See the License for the specific language governing permissions and
|
|
644
644
|
* limitations under the License.
|
|
645
|
-
*/const
|
|
645
|
+
*/const q8="firebase-installations-database",X8=1,_c="firebase-installations-store";let Sm=null;function ab(){return Sm||(Sm=qp(q8,X8,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(_c)}}})),Sm}async function wp(t,e){const n=Xp(t),i=(await ab()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&dP(t,e.fid),e}async function pP(t){const e=Xp(t),r=(await ab()).transaction(_c,"readwrite");await r.objectStore(_c).delete(e),await r.done}async function Kp(t,e){const n=Xp(t),i=(await ab()).transaction(_c,"readwrite"),o=i.objectStore(_c),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&dP(t,c.fid),c}/**
|
|
646
646
|
* @license
|
|
647
647
|
* Copyright 2019 Google LLC
|
|
648
648
|
*
|
|
@@ -657,7 +657,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
657
657
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
658
658
|
* See the License for the specific language governing permissions and
|
|
659
659
|
* limitations under the License.
|
|
660
|
-
*/async function lb(t){let e;const n=await Kp(t.appConfig,r=>{const i=
|
|
660
|
+
*/async function lb(t){let e;const n=await Kp(t.appConfig,r=>{const i=K8(r),o=Z8(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===Lv?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function K8(t){const e=t||{fid:U8(),registrationStatus:0};return gP(e)}function Z8(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Oc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=J8(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:Q8(t)}:{installationEntry:e}}async function J8(t,e){try{const n=await $8(t,e);return wp(t.appConfig,n)}catch(n){throw iP(n)&&n.customData.serverCode===409?await pP(t.appConfig):await wp(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function Q8(t){let e=await N1(t.appConfig);for(;e.registrationStatus===1;)await cP(100),e=await N1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await lb(t);return r||n}return e}function N1(t){return Kp(t,e=>{if(!e)throw Oc.create("installation-not-found");return gP(e)})}function gP(t){return e9(t)?{fid:t.fid,registrationStatus:0}:t}function e9(t){return t.registrationStatus===1&&t.registrationTime+tP<Date.now()}/**
|
|
661
661
|
* @license
|
|
662
662
|
* Copyright 2019 Google LLC
|
|
663
663
|
*
|
|
@@ -672,7 +672,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
672
672
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
673
673
|
* See the License for the specific language governing permissions and
|
|
674
674
|
* limitations under the License.
|
|
675
|
-
*/async function
|
|
675
|
+
*/async function t9({appConfig:t,heartbeatServiceProvider:e},n){const r=n9(t,n),i=N8(t,n),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={installation:{sdkVersion:nP,appId:t.appId}},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await uP(()=>fetch(r,c));if(f.ok){const p=await f.json();return sP(p)}else throw await aP("Generate Auth Token",f)}function n9(t,{fid:e}){return`${oP(t)}/${e}/authTokens:generate`}/**
|
|
676
676
|
* @license
|
|
677
677
|
* Copyright 2019 Google LLC
|
|
678
678
|
*
|
|
@@ -687,7 +687,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
687
687
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
688
688
|
* See the License for the specific language governing permissions and
|
|
689
689
|
* limitations under the License.
|
|
690
|
-
*/async function ub(t,e=!1){let n;const r=await Kp(t.appConfig,o=>{if(!mP(o))throw Oc.create("not-registered");const a=o.authToken;if(!e&&
|
|
690
|
+
*/async function ub(t,e=!1){let n;const r=await Kp(t.appConfig,o=>{if(!mP(o))throw Oc.create("not-registered");const a=o.authToken;if(!e&&o9(a))return o;if(a.requestStatus===1)return n=r9(t,e),o;{if(!navigator.onLine)throw Oc.create("app-offline");const c=a9(o);return n=i9(t,c),c}});return n?await n:r.authToken}async function r9(t,e){let n=await j1(t.appConfig);for(;n.authToken.requestStatus===1;)await cP(100),n=await j1(t.appConfig);const r=n.authToken;return r.requestStatus===0?ub(t,e):r}function j1(t){return Kp(t,e=>{if(!mP(e))throw Oc.create("not-registered");const n=e.authToken;return l9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function i9(t,e){try{const n=await t9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await wp(t.appConfig,r),n}catch(n){if(iP(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await pP(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await wp(t.appConfig,r)}throw n}}function mP(t){return t!==void 0&&t.registrationStatus===2}function o9(t){return t.requestStatus===2&&!s9(t)}function s9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+I8}function a9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function l9(t){return t.requestStatus===1&&t.requestTime+tP<Date.now()}/**
|
|
691
691
|
* @license
|
|
692
692
|
* Copyright 2019 Google LLC
|
|
693
693
|
*
|
|
@@ -702,7 +702,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
702
702
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
703
703
|
* See the License for the specific language governing permissions and
|
|
704
704
|
* limitations under the License.
|
|
705
|
-
*/async function
|
|
705
|
+
*/async function u9(t){const e=t,{installationEntry:n,registrationPromise:r}=await lb(e);return r?r.catch(console.error):ub(e).catch(console.error),n.fid}/**
|
|
706
706
|
* @license
|
|
707
707
|
* Copyright 2019 Google LLC
|
|
708
708
|
*
|
|
@@ -717,7 +717,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
717
717
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
718
718
|
* See the License for the specific language governing permissions and
|
|
719
719
|
* limitations under the License.
|
|
720
|
-
*/async function
|
|
720
|
+
*/async function c9(t,e=!1){const n=t;return await f9(n),(await ub(n,e)).token}async function f9(t){const{registrationPromise:e}=await lb(t);e&&await e}/**
|
|
721
721
|
* @license
|
|
722
722
|
* Copyright 2019 Google LLC
|
|
723
723
|
*
|
|
@@ -732,7 +732,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
732
732
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
733
733
|
* See the License for the specific language governing permissions and
|
|
734
734
|
* limitations under the License.
|
|
735
|
-
*/function
|
|
735
|
+
*/function d9(t){if(!t||!t.options)throw Tm("App Configuration");if(!t.name)throw Tm("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw Tm(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function Tm(t){return Oc.create("missing-app-config-values",{valueName:t})}/**
|
|
736
736
|
* @license
|
|
737
737
|
* Copyright 2020 Google LLC
|
|
738
738
|
*
|
|
@@ -747,7 +747,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
747
747
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
748
748
|
* See the License for the specific language governing permissions and
|
|
749
749
|
* limitations under the License.
|
|
750
|
-
*/const vP="installations",
|
|
750
|
+
*/const vP="installations",h9="installations-internal",p9=t=>{const e=t.getProvider("app").getImmediate(),n=d9(e),r=ob(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},g9=t=>{const e=t.getProvider("app").getImmediate(),n=ob(e,vP).getImmediate();return{getId:()=>u9(n),getToken:i=>c9(n,i)}};function m9(){Pc(new Cu(vP,p9,"PUBLIC")),Pc(new Cu(h9,g9,"PRIVATE"))}m9();mu(eP,sb);mu(eP,sb,"esm2017");/**
|
|
751
751
|
* @license
|
|
752
752
|
* Copyright 2019 Google LLC
|
|
753
753
|
*
|
|
@@ -762,7 +762,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
762
762
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
763
763
|
* See the License for the specific language governing permissions and
|
|
764
764
|
* limitations under the License.
|
|
765
|
-
*/const
|
|
765
|
+
*/const v9="/firebase-messaging-sw.js",y9="/firebase-cloud-messaging-push-scope",yP="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",b9="https://fcmregistrations.googleapis.com/v1",bP="google.c.a.c_id",w9="google.c.a.c_l",x9="google.c.a.ts",S9="google.c.a.e";var B1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(B1||(B1={}));/**
|
|
766
766
|
* @license
|
|
767
767
|
* Copyright 2018 Google LLC
|
|
768
768
|
*
|
|
@@ -790,7 +790,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
790
790
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
791
791
|
* See the License for the specific language governing permissions and
|
|
792
792
|
* limitations under the License.
|
|
793
|
-
*/function bl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function
|
|
793
|
+
*/function bl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function T9(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
|
|
794
794
|
* @license
|
|
795
795
|
* Copyright 2019 Google LLC
|
|
796
796
|
*
|
|
@@ -805,7 +805,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
805
805
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
806
806
|
* See the License for the specific language governing permissions and
|
|
807
807
|
* limitations under the License.
|
|
808
|
-
*/const Cm="fcm_token_details_db",
|
|
808
|
+
*/const Cm="fcm_token_details_db",C9=5,$1="fcm_token_object_Store";async function E9(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Cm))return null;let e=null;return(await qp(Cm,C9,{upgrade:async(r,i,o,a)=>{var c;if(i<2||!r.objectStoreNames.contains($1))return;const f=a.objectStore($1),p=await f.index("fcmSenderId").get(t);if(await f.clear(),!!p){if(i===2){const y=p;if(!y.auth||!y.p256dh||!y.endpoint)return;e={token:y.fcmToken,createTime:(c=y.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:y.auth,p256dh:y.p256dh,endpoint:y.endpoint,swScope:y.swScope,vapidKey:typeof y.vapidKey=="string"?y.vapidKey:bl(y.vapidKey)}}}else if(i===3){const y=p;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:bl(y.auth),p256dh:bl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:bl(y.vapidKey)}}}else if(i===4){const y=p;e={token:y.fcmToken,createTime:y.createTime,subscriptionOptions:{auth:bl(y.auth),p256dh:bl(y.p256dh),endpoint:y.endpoint,swScope:y.swScope,vapidKey:bl(y.vapidKey)}}}}}})).close(),await bm(Cm),await bm("fcm_vapid_details_db"),await bm("undefined"),k9(e)?e:null}function k9(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
|
|
809
809
|
* @license
|
|
810
810
|
* Copyright 2019 Google LLC
|
|
811
811
|
*
|
|
@@ -820,7 +820,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
820
820
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
821
821
|
* See the License for the specific language governing permissions and
|
|
822
822
|
* limitations under the License.
|
|
823
|
-
*/const
|
|
823
|
+
*/const D9="firebase-messaging-database",P9=1,Vd="firebase-messaging-store";let Em=null;function wP(){return Em||(Em=qp(D9,P9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Vd)}}})),Em}async function O9(t){const e=xP(t),r=await(await wP()).transaction(Vd).objectStore(Vd).get(e);if(r)return r;{const i=await E9(t.appConfig.senderId);if(i)return await cb(t,i),i}}async function cb(t,e){const n=xP(t),i=(await wP()).transaction(Vd,"readwrite");return await i.objectStore(Vd).put(e,n),await i.done,e}function xP({appConfig:t}){return t.appId}/**
|
|
824
824
|
* @license
|
|
825
825
|
* Copyright 2017 Google LLC
|
|
826
826
|
*
|
|
@@ -835,7 +835,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
835
835
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
836
836
|
* See the License for the specific language governing permissions and
|
|
837
837
|
* limitations under the License.
|
|
838
|
-
*/const
|
|
838
|
+
*/const _9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Bi=new Gp("messaging","Messaging",_9);/**
|
|
839
839
|
* @license
|
|
840
840
|
* Copyright 2019 Google LLC
|
|
841
841
|
*
|
|
@@ -850,7 +850,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
850
850
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
851
851
|
* See the License for the specific language governing permissions and
|
|
852
852
|
* limitations under the License.
|
|
853
|
-
*/async function
|
|
853
|
+
*/async function R9(t,e){const n=await db(t),r=SP(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(fb(t.appConfig),i)).json()}catch(a){throw Bi.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-subscribe-no-token");return o.token}async function A9(t,e){const n=await db(t),r=SP(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${fb(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw Bi.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-update-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-update-no-token");return o.token}async function I9(t,e){const r={method:"DELETE",headers:await db(t)};try{const o=await(await fetch(`${fb(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw Bi.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw Bi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function fb({projectId:t}){return`${b9}/projects/${t}/registrations`}async function db({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function SP({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==yP&&(i.web.applicationPubKey=r),i}/**
|
|
854
854
|
* @license
|
|
855
855
|
* Copyright 2019 Google LLC
|
|
856
856
|
*
|
|
@@ -865,7 +865,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
865
865
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
866
866
|
* See the License for the specific language governing permissions and
|
|
867
867
|
* limitations under the License.
|
|
868
|
-
*/const
|
|
868
|
+
*/const M9=7*24*60*60*1e3;async function L9(t){const e=await N9(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:bl(e.getKey("auth")),p256dh:bl(e.getKey("p256dh"))},r=await O9(t.firebaseDependencies);if(r){if(j9(r.subscriptionOptions,n))return Date.now()>=r.createTime+M9?F9(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await I9(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return V1(t.firebaseDependencies,n)}else return V1(t.firebaseDependencies,n)}async function F9(t,e){try{const n=await A9(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await cb(t.firebaseDependencies,r),n}catch(n){throw n}}async function V1(t,e){const r={token:await R9(t,e),createTime:Date.now(),subscriptionOptions:e};return await cb(t,r),r.token}async function N9(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:T9(e)})}function j9(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
|
|
869
869
|
* @license
|
|
870
870
|
* Copyright 2020 Google LLC
|
|
871
871
|
*
|
|
@@ -880,7 +880,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
880
880
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
881
881
|
* See the License for the specific language governing permissions and
|
|
882
882
|
* limitations under the License.
|
|
883
|
-
*/function H1(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return
|
|
883
|
+
*/function H1(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return B9(e,t),$9(e,t),V9(e,t),e}function B9(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function $9(t,e){e.data&&(t.data=e.data)}function V9(t,e){var n,r,i,o,a;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const c=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;c&&(t.fcmOptions.link=c);const f=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;f&&(t.fcmOptions.analyticsLabel=f)}/**
|
|
884
884
|
* @license
|
|
885
885
|
* Copyright 2019 Google LLC
|
|
886
886
|
*
|
|
@@ -895,7 +895,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
895
895
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
896
896
|
* See the License for the specific language governing permissions and
|
|
897
897
|
* limitations under the License.
|
|
898
|
-
*/function
|
|
898
|
+
*/function H9(t){return typeof t=="object"&&!!t&&bP in t}/**
|
|
899
899
|
* @license
|
|
900
900
|
* Copyright 2019 Google LLC
|
|
901
901
|
*
|
|
@@ -910,7 +910,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
910
910
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
911
911
|
* See the License for the specific language governing permissions and
|
|
912
912
|
* limitations under the License.
|
|
913
|
-
*/function
|
|
913
|
+
*/function U9(t){if(!t||!t.options)throw km("App Configuration Object");if(!t.name)throw km("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw km(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function km(t){return Bi.create("missing-app-config-values",{valueName:t})}/**
|
|
914
914
|
* @license
|
|
915
915
|
* Copyright 2020 Google LLC
|
|
916
916
|
*
|
|
@@ -925,7 +925,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
925
925
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
926
926
|
* See the License for the specific language governing permissions and
|
|
927
927
|
* limitations under the License.
|
|
928
|
-
*/class
|
|
928
|
+
*/class W9{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=U9(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
929
929
|
* @license
|
|
930
930
|
* Copyright 2020 Google LLC
|
|
931
931
|
*
|
|
@@ -940,7 +940,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
940
940
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
941
941
|
* See the License for the specific language governing permissions and
|
|
942
942
|
* limitations under the License.
|
|
943
|
-
*/async function
|
|
943
|
+
*/async function z9(t){try{t.swRegistration=await navigator.serviceWorker.register(v9,{scope:y9}),t.swRegistration.update().catch(()=>{})}catch(e){throw Bi.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
|
|
944
944
|
* @license
|
|
945
945
|
* Copyright 2020 Google LLC
|
|
946
946
|
*
|
|
@@ -955,7 +955,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
955
955
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
956
956
|
* See the License for the specific language governing permissions and
|
|
957
957
|
* limitations under the License.
|
|
958
|
-
*/async function
|
|
958
|
+
*/async function Y9(t,e){if(!e&&!t.swRegistration&&await z9(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw Bi.create("invalid-sw-registration");t.swRegistration=e}}/**
|
|
959
959
|
* @license
|
|
960
960
|
* Copyright 2020 Google LLC
|
|
961
961
|
*
|
|
@@ -970,7 +970,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
970
970
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
971
971
|
* See the License for the specific language governing permissions and
|
|
972
972
|
* limitations under the License.
|
|
973
|
-
*/async function
|
|
973
|
+
*/async function G9(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=yP)}/**
|
|
974
974
|
* @license
|
|
975
975
|
* Copyright 2020 Google LLC
|
|
976
976
|
*
|
|
@@ -985,7 +985,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
985
985
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
986
986
|
* See the License for the specific language governing permissions and
|
|
987
987
|
* limitations under the License.
|
|
988
|
-
*/async function TP(t,e){if(!navigator)throw Bi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Bi.create("permission-blocked");return await
|
|
988
|
+
*/async function TP(t,e){if(!navigator)throw Bi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Bi.create("permission-blocked");return await G9(t,e==null?void 0:e.vapidKey),await Y9(t,e==null?void 0:e.serviceWorkerRegistration),L9(t)}/**
|
|
989
989
|
* @license
|
|
990
990
|
* Copyright 2019 Google LLC
|
|
991
991
|
*
|
|
@@ -1000,7 +1000,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1000
1000
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1001
1001
|
* See the License for the specific language governing permissions and
|
|
1002
1002
|
* limitations under the License.
|
|
1003
|
-
*/async function
|
|
1003
|
+
*/async function q9(t,e,n){const r=X9(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[bP],message_name:n[w9],message_time:n[x9],message_device_time:Math.floor(Date.now()/1e3)})}function X9(t){switch(t){case $d.NOTIFICATION_CLICKED:return"notification_open";case $d.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1004
1004
|
* @license
|
|
1005
1005
|
* Copyright 2017 Google LLC
|
|
1006
1006
|
*
|
|
@@ -1015,7 +1015,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1015
1015
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1016
1016
|
* See the License for the specific language governing permissions and
|
|
1017
1017
|
* limitations under the License.
|
|
1018
|
-
*/async function
|
|
1018
|
+
*/async function K9(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===$d.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(H1(n)):t.onMessageHandler.next(H1(n)));const r=n.data;H9(r)&&r[S9]==="1"&&await q9(t,n.messageType,r)}const U1="@firebase/messaging",W1="0.12.12";/**
|
|
1019
1019
|
* @license
|
|
1020
1020
|
* Copyright 2020 Google LLC
|
|
1021
1021
|
*
|
|
@@ -1030,7 +1030,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1030
1030
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1031
1031
|
* See the License for the specific language governing permissions and
|
|
1032
1032
|
* limitations under the License.
|
|
1033
|
-
*/const
|
|
1033
|
+
*/const Z9=t=>{const e=new W9(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>K9(e,n)),e},J9=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>TP(e,r)}};function Q9(){Pc(new Cu("messaging",Z9,"PUBLIC")),Pc(new Cu("messaging-internal",J9,"PRIVATE")),mu(U1,W1),mu(U1,W1,"esm2017")}/**
|
|
1034
1034
|
* @license
|
|
1035
1035
|
* Copyright 2020 Google LLC
|
|
1036
1036
|
*
|
|
@@ -1045,7 +1045,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1045
1045
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1046
1046
|
* See the License for the specific language governing permissions and
|
|
1047
1047
|
* limitations under the License.
|
|
1048
|
-
*/async function
|
|
1048
|
+
*/async function eY(){try{await qD()}catch{return!1}return typeof window<"u"&&GD()&&b6()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1049
1049
|
* @license
|
|
1050
1050
|
* Copyright 2020 Google LLC
|
|
1051
1051
|
*
|
|
@@ -1060,7 +1060,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1060
1060
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1061
1061
|
* See the License for the specific language governing permissions and
|
|
1062
1062
|
* limitations under the License.
|
|
1063
|
-
*/function
|
|
1063
|
+
*/function tY(t,e){if(!navigator)throw Bi.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
|
|
1064
1064
|
* @license
|
|
1065
1065
|
* Copyright 2017 Google LLC
|
|
1066
1066
|
*
|
|
@@ -1075,4 +1075,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1075
1075
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1076
1076
|
* See the License for the specific language governing permissions and
|
|
1077
1077
|
* limitations under the License.
|
|
1078
|
-
*/function
|
|
1078
|
+
*/function nY(t=w8()){return eY().then(e=>{if(!e)throw Bi.create("unsupported-browser")},e=>{throw Bi.create("indexed-db-unsupported")}),ob(rb(t),"messaging").getImmediate()}async function rY(t,e){return t=rb(t),TP(t,e)}function iY(t,e){return t=rb(t),tY(t,e)}Q9();exports.AuthContext=jv;exports.AuthProvider=BI;exports.CustomOpenList=ST;exports.CustomOpenListProvider=qM;exports.DateRangePicker=l6;exports.ERROR_MESSAGE=J1;exports.FavoriteMenu=H4;exports.GlobalMenu=n6;exports.IconComponent=OD;exports.InfiniteLoader=eL;exports.Language=$v;exports.LogoutConfirmModal=xT;exports.NotitficationItem=GM;exports.PropTypes=Os;exports.Q=x2;exports.SaasThemeProvider=zM;exports.StyleWrapper=Vv;exports.TranslationProvider=IM;exports._=i6;exports._assertThisInitialized=Sl;exports._extends=Df;exports._extends$1=tL;exports._inheritsLoose=TT;exports._objectWithoutPropertiesLoose=Bv;exports.activeStyles=eb;exports.axiosInstance=Rs;exports.clsx=wl;exports.color=mr;exports.commonjsGlobal=ki;exports.createCustomTheme=yT;exports.getAugmentedNamespace=WI;exports.getMessagingInWindow=nY;exports.getToken=rY;exports.handleErrorAxios=tT;exports.initializeApp=ZD;exports.lodashExports=$D;exports.login=Q1;exports.logout=eT;exports.notify=D2;exports.objectWithoutPropertiesLoose=UI;exports.onMessage=iY;exports.pushError=Ud;exports.pushSuccess=Yv;exports.pushWarning=k2;exports.responseInterceptor=FI;exports.search=VI;exports.setFavicon=bT;exports.setShellBackdrop=HI;exports.styles=r6;exports.translate=Ds;exports.translationConfig=RM;exports.updateFavoriteItems=nb;exports.useAuth=$I;exports.useCustomTranslation=_M;exports.useTheme=WM;exports.useTranslation=oT;exports.useTranslation$1=AM;
|