@ukpc-lib/react 0.12.5-dev.0 → 0.12.6
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/BaseBreadcrumb/index.d.ts +17 -0
- package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
- package/dist/components/index.cjs +17 -22
- package/dist/components/index.js +2084 -1836
- package/dist/components/main.d.ts +1 -0
- package/dist/index.esm2017-CgX2g4fr.cjs +1078 -0
- package/dist/{index.esm2017-9e03f5b5.js → index.esm2017-D8jHeHt_.js} +18638 -18529
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +7 -5
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +5 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +6 -9
- package/web-components-bundle/global-menu/index.js +5 -8
- package/web-components-bundle/global-topbar/index.js +8 -7
- package/web-components-bundle/has-permission/index.js +5 -9
- package/web-components-bundle/{index-c91ec106.js → index-B4uOLjGK.js} +361 -376
- package/web-components-bundle/{index-f530ed06.js → index-BSRZKjgR.js} +34340 -39104
- package/web-components-bundle/{index-51ba1ee1.js → index-BSe1av43.js} +3 -5
- package/web-components-bundle/index-BTy-Dpix.js +5413 -0
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/react-to-web-component-CXwKHjZr.js +6388 -0
- package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +320 -0
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +3 -4
- package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
- package/dist/index.esm2017-3734a51e.cjs +0 -1101
- package/web-components-bundle/react-to-web-component-d5889290.js +0 -6388
- package/web-components-bundle/react-toastify.esm-d8df41b8.js +0 -339
|
@@ -1,1101 +0,0 @@
|
|
|
1
|
-
var hY=require("./index.css");const Ue=require("react/jsx-runtime"),X=require("react"),$I=require("axios"),VI=require("moment"),ss=require("@mui/material"),kd=require("react-query");require("@r2wc/react-to-web-component");const _p=require("react-router-dom"),Wm=require("react-dom");function HI(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function UI(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Tn=HI(X),WI=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--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:#ffffff;-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}
|
|
2
|
-
`;function D1({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return Ue.jsxs(Ue.Fragment,{children:[Ue.jsx("style",{type:"text/css",children:WI}),Ue.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Ue.jsxs("div",{className:"modal-container",children:[Ue.jsx("h3",{className:"modal-title",children:"Log out"}),Ue.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Ue.jsxs("div",{className:"modal-footer",children:[Ue.jsx("button",{className:"modal-button cancel-btn",onClick:t,children:"Cancel"}),Ue.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const Gr={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zI(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P1(e){var t=zI(e,"string");return Jo(t)=="symbol"?t:t+""}function nb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P1(r.key),r)}}function na(e,t,n){return t&&nb(e.prototype,t),n&&nb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qh(e,t)}function Dp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qh(e,t)}function Ud(e,t){if(t&&(Jo(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dl(e)}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ws(e)}function zs(e,t,n){return(t=P1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R1(e){if(Array.isArray(e))return e}function YI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I1(e,t){if(e){if(typeof e=="string")return rb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rb(e,t):void 0}}function A1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GI(e){return R1(e)||YI(e)||I1(e)||A1()}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ob(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qI={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},XI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||qI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,ob(ob({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),$s=new XI,Du=function(){function e(){ta(this,e),this.observers={}}return na(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(c){c.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),e}();function Qf(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function ab(e){return e==null?"":""+e}function KI(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function zm(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function sb(e,t,n){var r=zm(e,t,Object),i=r.obj,o=r.k;i[o]=n}function ZI(e,t,n,r){var i=zm(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function ep(e,t){var n=zm(e,t),r=n.obj,i=n.k;if(r)return r[i]}function JI(e,t,n){var r=ep(e,n);return r!==void 0?r:ep(t,n)}function M1(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):M1(e[r],t[r],n):e[r]=t[r]);return e}function df(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var QI={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function eA(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return QI[t]}):e}var Pp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,tA=[" ",",","?","!",";"];function nA(e,t,n){t=t||"",n=n||"";var r=tA.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function tp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var s=2,l=r.slice(o,o+s).join(n),c=i[l];c===void 0&&r.length>o+s;)s++,l=r.slice(o,o+s).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var d=r.slice(o+s).join(n);return d?tp(c,d,n):void 0}i=i[r[o]]}return i}}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rA(e){var t=iA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function iA(){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 oA=function(e){Dp(n,e);var t=rA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ta(this,n),i=t.call(this),Pp&&Du.call(Dl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return na(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,v=[i,o];s&&typeof s!="string"&&(v=v.concat(s)),s&&typeof s=="string"&&(v=v.concat(c?s.split(c):s)),i.indexOf(".")>-1&&(v=i.split("."));var p=ep(this.data,v);return p||!d||typeof s!="string"?p:tp(this.data&&this.data[i]&&this.data[i][o],s,c)}},{key:"addResource",value:function(i,o,s,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,v=[i,o];s&&(v=v.concat(d?s.split(d):s)),i.indexOf(".")>-1&&(v=i.split("."),l=o,o=v[1]),this.addNamespaces(o),sb(this.data,v,l),c.silent||this.emit("added",i,o,s,l)}},{key:"addResources",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in s)(typeof s[c]=="string"||Object.prototype.toString.apply(s[c])==="[object Array]")&&this.addResource(i,o,c,s[c],{silent:!0});l.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},v=[i,o];i.indexOf(".")>-1&&(v=i.split("."),l=s,s=o,o=v[1]),this.addNamespaces(o);var p=ep(this.data,v)||{};l?M1(p,s,c):p=hh(hh({},p),s),sb(this.data,v,p),d.silent||this.emit("added",i,o,s)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?hh(hh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Du),L1={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,r,i,o))}),n}};function ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ub(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aA(e){var t=sA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function sA(){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 cb={},fb=function(e){Dp(n,e);var t=aA(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ta(this,n),i=t.call(this),Pp&&Du.call(Dl(i)),KI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Dl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=$s.create("translator"),i}return na(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ns||this.options.defaultNS||[],d=s&&i.indexOf(s)>-1,v=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!nA(i,s,l);if(d&&!v){var p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:c};var x=i.split(s);(s!==l||s===l&&this.options.ns.indexOf(x[0])>-1)&&(c=x.shift()),i=x.join(l)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,o,s){var l=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Fi({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,v=this.extractFromKey(i[i.length-1],o),p=v.key,x=v.namespaces,T=x[x.length-1],_=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(_&&_.toLowerCase()==="cimode"){if(I){var L=o.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(T).concat(L).concat(p),usedKey:p,exactUsedKey:p,usedLng:_,usedNS:T}:"".concat(T).concat(L).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:_,usedNS:T}:p}var R=this.resolve(i,o),U=R&&R.res,W=R&&R.usedKey||p,te=R&&R.exactUsedKey||p,J=Object.prototype.toString.apply(U),pe=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ce=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ce&&U&&ae&&pe.indexOf(J)<0&&!(typeof S=="string"&&J==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ne=this.options.returnedObjectHandler?this.options.returnedObjectHandler(W,U,Fi(Fi({},o),{},{ns:x})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(R.res=Ne,R):Ne}if(d){var Ge=J==="[object Array]",qe=Ge?[]:{},it=Ge?te:W;for(var nt in U)if(Object.prototype.hasOwnProperty.call(U,nt)){var me="".concat(it).concat(d).concat(nt);qe[nt]=this.translate(me,Fi(Fi({},o),{joinArrays:!1,ns:x})),qe[nt]===me&&(qe[nt]=U[nt])}U=qe}}else if(ce&&typeof S=="string"&&J==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,s));else{var Se=!1,Ve=!1,Qe=o.count!==void 0&&typeof o.count!="string",at=n.hasDefaultValue(o),Ee=Qe?this.pluralResolver.getSuffix(_,o.count,o):"",_e=o["defaultValue".concat(Ee)]||o.defaultValue;!this.isValidLookup(U)&&at&&(Se=!0,U=_e),this.isValidLookup(U)||(Ve=!0,U=p);var Ye=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,We=Ye&&Ve?void 0:U,Re=at&&_e!==U&&this.options.updateMissing;if(Ve||Se||Re){if(this.logger.log(Re?"updateKey":"missingKey",_,T,p,Re?_e:U),d){var Fe=this.resolve(p,Fi(Fi({},o),{},{keySeparator:!1}));Fe&&Fe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var He=[],lt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&<&<[0])for(var ct=0;ct<lt.length;ct++)He.push(lt[ct]);else this.options.saveMissingTo==="all"?He=this.languageUtils.toResolveHierarchy(o.lng||this.language):He.push(o.lng||this.language);var yt=function(Tt,ot,$t){var Ht=at&&$t!==U?$t:We;l.options.missingKeyHandler?l.options.missingKeyHandler(Tt,T,ot,Ht,Re,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(Tt,T,ot,Ht,Re,o),l.emit("missingKey",Tt,T,ot,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Qe?He.forEach(function(dt){l.pluralResolver.getSuffixes(dt,o).forEach(function(Tt){yt([dt],p+Tt,o["defaultValue".concat(Tt)]||_e)})}):yt(He,p,_e))}U=this.extendTranslation(U,i,o,R,s),Ve&&U===p&&this.options.appendNamespaceToMissingKey&&(U="".concat(T,":").concat(p)),(Ve||Se)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(T,":").concat(p):p,Se?U:void 0):U=this.options.parseMissingKeyHandler(U))}return c?(R.res=U,R):U}},{key:"extendTranslation",value:function(i,o,s,l,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Fi(Fi({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Fi(Fi({},s),{interpolation:Fi(Fi({},this.options.interpolation),s.interpolation)}));var v=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(v){var x=i.match(this.interpolator.nestingRegexp);p=x&&x.length}var T=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(T=Fi(Fi({},this.options.interpolation.defaultVariables),T)),i=this.interpolator.interpolate(i,T,s.lng||this.language,s),v){var _=i.match(this.interpolator.nestingRegexp),I=_&&_.length;p<I&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,W=new Array(U),te=0;te<U;te++)W[te]=arguments[te];return c&&c[0]===W[0]&&!s.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(W[0]," in key: ").concat(o[0])),null):d.translate.apply(d,W.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var L=s.postProcess||this.options.postProcess,R=typeof L=="string"?[L]:L;return i!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(i=L1.handle(R,i,o,this.options&&this.options.postProcessPassResolved?Fi({i18nResolved:l},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,d,v,p;return typeof i=="string"&&(i=[i]),i.forEach(function(x){if(!o.isValidLookup(l)){var T=o.extractFromKey(x,s),_=T.key;c=_;var I=T.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var L=s.count!==void 0&&typeof s.count!="string",R=L&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),U=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",W=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);I.forEach(function(te){o.isValidLookup(l)||(p=te,!cb["".concat(W[0],"-").concat(te)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(p)&&(cb["".concat(W[0],"-").concat(te)]=!0,o.logger.warn('key "'.concat(c,'" for languages "').concat(W.join(", "),`" won't get resolved as namespace "`).concat(p,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),W.forEach(function(J){if(!o.isValidLookup(l)){v=J;var pe=[_];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(pe,_,J,te,s);else{var S;L&&(S=o.pluralResolver.getSuffix(J,s.count,s));var ce="".concat(o.options.pluralSeparator,"zero");if(L&&(pe.push(_+S),R&&pe.push(_+ce)),U){var ae="".concat(_).concat(o.options.contextSeparator).concat(s.context);pe.push(ae),L&&(pe.push(ae+S),R&&pe.push(ae+ce))}}for(var Ne;Ne=pe.pop();)o.isValidLookup(l)||(d=Ne,l=o.getResource(J,te,Ne,s))}}))})}}),{res:l,usedKey:c,exactUsedKey:d,usedLng:v,usedNS:p}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,l):this.resourceStore.getResource(i,o,s,l)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(Du);function Ig(e){return e.charAt(0).toUpperCase()+e.slice(1)}var db=function(){function e(t){ta(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$s.create("languageUtils")}return na(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ig(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]=Ig(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ig(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],l=function(d){d&&(i.isSupportedCode(d)?s.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(c){s.indexOf(c)<0&&l(i.formatLanguageCode(c))}),s}}]),e}(),lA=[{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}],uA={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},cA=["v1","v2","v3"],hb={zero:0,one:1,two:2,few:3,many:4,other:5};function fA(){var e={};return lA.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:uA[t.fc]}})}),e}var dA=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.languageUtils=t,this.options=n,this.logger=$s.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=fA()}return na(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,l){return hb[s]-hb[l]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!cA.includes(this.options.compatibilityJSON)}}]),e}();function pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=JI(e,t,n);return!o&&i&&typeof n=="string"&&(o=tp(e,n,r),o===void 0&&(o=tp(t,n,r))),o}var hA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=$s.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return na(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:eA,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?df(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?df(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?df(r.nestingPrefix):r.nestingPrefixEscaped||df("$t("),this.nestingSuffix=r.nestingSuffix?df(r.nestingSuffix):r.nestingSuffixEscaped||df(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var s=this,l,c,d,v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(L){return L.replace(/\$/g,"$$$$")}var x=function(R){if(R.indexOf(s.formatSeparator)<0){var U=gb(r,v,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(U,void 0,i,ns(ns(ns({},o),r),{},{interpolationkey:R})):U}var W=R.split(s.formatSeparator),te=W.shift().trim(),J=W.join(s.formatSeparator).trim();return s.format(gb(r,v,te,s.options.keySeparator,s.options.ignoreJSONStructure),J,i,ns(ns(ns({},o),r),{},{interpolationkey:te}))};this.resetRegExp();var T=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,_=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(R){return p(R)}},{regex:this.regexp,safeValue:function(R){return s.escapeValue?p(s.escape(R)):p(R)}}];return I.forEach(function(L){for(d=0;l=L.regex.exec(n);){var R=l[1].trim();if(c=x(R),c===void 0)if(typeof T=="function"){var U=T(n,l,o);c=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,R))c="";else if(_){c=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),c="";else typeof c!="string"&&!s.useRawValueToEscape&&(c=ab(c));var W=L.safeValue(c);if(n=n.replace(l[0],W),_?(L.regex.lastIndex+=c.length,L.regex.lastIndex-=l[0].length):L.regex.lastIndex=0,d++,d>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,c;function d(T,_){var I=this.nestingOptionsSeparator;if(T.indexOf(I)<0)return T;var L=T.split(new RegExp("".concat(I,"[ ]*{"))),R="{".concat(L[1]);T=L[0],R=this.interpolate(R,c);var U=R.match(/'/g),W=R.match(/"/g);(U&&U.length%2===0&&!W||W.length%2!==0)&&(R=R.replace(/'/g,'"'));try{c=JSON.parse(R),_&&(c=ns(ns({},_),c))}catch(te){return this.logger.warn("failed parsing options string in nesting for key ".concat(T),te),"".concat(T).concat(I).concat(R)}return delete c.defaultValue,T}for(;s=this.nestingRegexp.exec(n);){var v=[];c=ns({},o),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var x=s[1].split(this.formatSeparator).map(function(T){return T.trim()});s[1]=x.shift(),v=x,p=!0}if(l=r(d.call(this,s[1].trim(),c),c),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=ab(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),p&&(l=v.reduce(function(T,_){return i.format(T,_,o.lng,ns(ns({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n}}]),e}();function vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pA(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(s){if(s){var l=s.split(":"),c=GI(l),d=c[0],v=c.slice(1),p=v.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=p),p==="false"&&(n[d.trim()]=!1),p==="true"&&(n[d.trim()]=!0),isNaN(p)||(n[d.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}function hf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),l=t[s];return l||(l=e(i,o),t[s]=l),l(r)}}var gA=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ta(this,e),this.logger=$s.create("formatter"),this.options=t,this.formats={number:hf(function(n,r){var i=new Intl.NumberFormat(n,Cl({},r));return function(o){return i.format(o)}}),currency:hf(function(n,r){var i=new Intl.NumberFormat(n,Cl(Cl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:hf(function(n,r){var i=new Intl.DateTimeFormat(n,Cl({},r));return function(o){return i.format(o)}}),relativetime:hf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Cl({},r));return function(o){return i.format(o,r.range||"day")}}),list:hf(function(n,r){var i=new Intl.ListFormat(n,Cl({},r));return function(o){return i.format(o)}})},this.init(t)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=hf(r)}},{key:"format",value:function(n,r,i){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r.split(this.formatSeparator),c=l.reduce(function(d,v){var p=pA(v),x=p.formatName,T=p.formatOptions;if(o.formats[x]){var _=d;try{var I=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=I.locale||I.lng||s.locale||s.lng||i;_=o.formats[x](d,L,Cl(Cl(Cl({},T),s),I))}catch(R){o.logger.warn(R)}return _}else o.logger.warn("there was no format function for ".concat(x));return d},n);return c}}]),e}();function mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vA(e){var t=mA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function mA(){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 yA(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var bA=function(e){Dp(n,e);var t=vA(n);function n(r,i,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ta(this,n),s=t.call(this),Pp&&Du.call(Dl(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=$s.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return na(n,[{key:"queueLoad",value:function(i,o,s,l){var c=this,d={},v={},p={},x={};return i.forEach(function(T){var _=!0;o.forEach(function(I){var L="".concat(T,"|").concat(I);!s.reload&&c.store.hasResourceBundle(T,I)?c.state[L]=2:c.state[L]<0||(c.state[L]===1?v[L]===void 0&&(v[L]=!0):(c.state[L]=1,_=!1,v[L]===void 0&&(v[L]=!0),d[L]===void 0&&(d[L]=!0),x[I]===void 0&&(x[I]=!0)))}),_||(p[T]=!0)}),(Object.keys(d).length||Object.keys(v).length)&&this.queue.push({pending:v,pendingCount:Object.keys(v).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(v),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(x)}}},{key:"loaded",value:function(i,o,s){var l=i.split("|"),c=l[0],d=l[1];o&&this.emit("failedLoading",c,d,o),s&&this.store.addResourceBundle(c,d,s),this.state[i]=o?-1:2;var v={};this.queue.forEach(function(p){ZI(p.loaded,[c],d),yA(p,i),o&&p.errors.push(o),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(x){v[x]||(v[x]={});var T=p.loaded[x];T.length&&T.forEach(function(_){v[x][_]===void 0&&(v[x][_]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",v),this.queue=this.queue.filter(function(p){return!p.done})}},{key:"read",value:function(i,o,s){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,v=arguments.length>5?arguments[5]:void 0;if(!i.length)return v(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:c,wait:d,callback:v});return}this.readingCalls++;var p=function(I,L){if(l.readingCalls--,l.waitingReads.length>0){var R=l.waitingReads.shift();l.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(I&&L&&c<l.maxRetries){setTimeout(function(){l.read.call(l,i,o,s,c+1,d*2,v)},d);return}v(I,L)},x=this.backend[s].bind(this.backend);if(x.length===2){try{var T=x(i,o);T&&typeof T.then=="function"?T.then(function(_){return p(null,_)}).catch(p):p(null,T)}catch(_){p(_)}return}return x(i,o,p)}},{key:"prepareLoading",value:function(i,o){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var d=this.queueLoad(i,o,l,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(v){s.loadOne(v)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),c=l[0],d=l[1];this.read(c,d,"read",void 0,void 0,function(v,p){v&&o.logger.warn("".concat(s,"loading namespace ").concat(d," for language ").concat(c," failed"),v),!v&&p&&o.logger.log("".concat(s,"loaded namespace ").concat(d," for language ").concat(c),p),o.loaded(i,v,p)})}},{key:"saveMissing",value:function(i,o,s,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){var p=yb(yb({},d),{},{isUpdate:c}),x=this.backend.create.bind(this.backend);if(x.length<6)try{var T;x.length===5?T=x(i,o,s,l,p):T=x(i,o,s,l),T&&typeof T.then=="function"?T.then(function(_){return v(null,_)}).catch(v):v(null,T)}catch(_){v(_)}else x(i,o,s,l,v,p)}!i||!i[0]||this.store.addResource(i[0],o,s,l)}}}]),n}(Du);function bb(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Jo(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Jo(t[2])==="object"||Jo(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function wb(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function xb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wA(e){var t=xA();return function(){var r=Ws(e),i;if(t){var o=Ws(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function xA(){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 ph(){}function SA(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var np=function(e){Dp(n,e);var t=wA(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ta(this,n),r=t.call(this),Pp&&Du.call(Dl(r)),r.options=wb(i),r.services={},r.logger=$s,r.modules={external:[]},SA(Dl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Ud(r,Dl(r));setTimeout(function(){r.init(i,o)},0)}return r}return na(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=bb();this.options=Ls(Ls(Ls({},l),this.options),wb(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ls(Ls({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function c(R){return R?typeof R=="function"?new R:R:null}if(!this.options.isClone){this.modules.logger?$s.init(c(this.modules.logger),this.options):$s.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=gA);var v=new db(this.options);this.store=new oA(this.options.resources,this.options);var p=this.services;p.logger=$s,p.resourceStore=this.store,p.languageUtils=v,p.pluralResolver=new dA(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(p.formatter=c(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new hA(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new bA(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(R){for(var U=arguments.length,W=new Array(U>1?U-1:0),te=1;te<U;te++)W[te-1]=arguments[te];i.emit.apply(i,[R].concat(W))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new fb(this.services,this.options),this.translator.on("*",function(R){for(var U=arguments.length,W=new Array(U>1?U-1:0),te=1;te<U;te++)W[te-1]=arguments[te];i.emit.apply(i,[R].concat(W))}),this.modules.external.forEach(function(R){R.init&&R.init(i)})}if(this.format=this.options.interpolation.format,s||(s=ph),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var T=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];T.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments)}});var _=["addResource","addResources","addResourceBundle","removeResourceBundle"];_.forEach(function(R){i[R]=function(){var U;return(U=i.store)[R].apply(U,arguments),i}});var I=Qf(),L=function(){var U=function(te,J){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(J),s(te,J)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?L():setTimeout(L,0),I}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph,l=s,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var d=[],v=function(T){if(T){var _=o.services.languageUtils.toResolveHierarchy(T);_.forEach(function(I){d.indexOf(I)<0&&d.push(I)})}};if(c)v(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(x){return v(x)})}this.options.preload&&this.options.preload.forEach(function(x){return v(x)}),this.services.backendConnector.load(d,this.options.ns,function(x){!x&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(x)})}else l(null)}},{key:"reloadResources",value:function(i,o,s){var l=Qf();return i||(i=this.languages),o||(o=this.options.ns),s||(s=ph),this.services.backendConnector.reload(i,o,function(c){l.resolve(),s(c)}),l}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&L1.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var l=Qf();this.emit("languageChanging",i);var c=function(x){s.language=x,s.languages=s.services.languageUtils.toResolveHierarchy(x),s.resolvedLanguage=void 0,s.setResolvedLanguage(x)},d=function(x,T){T?(c(T),s.translator.changeLanguage(T),s.isLanguageChangingTo=void 0,s.emit("languageChanged",T),s.logger.log("languageChanged",T)):s.isLanguageChangingTo=void 0,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(x,function(){return s.t.apply(s,arguments)})},v=function(x){!i&&!x&&s.services.languageDetector&&(x=[]);var T=typeof x=="string"?x:s.services.languageUtils.getBestMatchFromCodes(x);T&&(s.language||c(T),s.translator.language||s.translator.changeLanguage(T),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(T)),s.loadResources(T,function(_){d(_,T)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?v(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(v):this.services.languageDetector.detect(v):v(i),l}},{key:"getFixedT",value:function(i,o,s){var l=this,c=function d(v,p){var x;if(Jo(p)!=="object"){for(var T=arguments.length,_=new Array(T>2?T-2:0),I=2;I<T;I++)_[I-2]=arguments[I];x=l.options.overloadTranslationOptionHandler([v,p].concat(_))}else x=Ls({},p);x.lng=x.lng||d.lng,x.lngs=x.lngs||d.lngs,x.ns=x.ns||d.ns,x.keyPrefix=x.keyPrefix||s||d.keyPrefix;var L=l.options.keySeparator||".",R;return x.keyPrefix&&Array.isArray(v)?R=v.map(function(U){return"".concat(x.keyPrefix).concat(L).concat(U)}):R=x.keyPrefix?"".concat(x.keyPrefix).concat(L).concat(v):v,l.t(R,x)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=o,c.keyPrefix=s,c}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var v=function(T,_){var I=o.services.backendConnector.state["".concat(T,"|").concat(_)];return I===-1||I===2};if(s.precheck){var p=s.precheck(this,v);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||v(l,i)&&(!c||v(d,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,l=Qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){s.options.ns.indexOf(c)<0&&s.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),o&&o(c)}),l):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Qf();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],c=i.filter(function(d){return l.indexOf(d)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(d){s.resolve(),o&&o(d)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new db(bb());return o.indexOf(s.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ph,l=Ls(Ls(Ls({},this.options),o),{isClone:!0}),c=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(c.logger=c.logger.clone(o));var d=["store","services","language"];return d.forEach(function(v){c[v]=i[v]}),c.services=Ls({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new fb(c.services,c.options),c.translator.on("*",function(v){for(var p=arguments.length,x=new Array(p>1?p-1:0),T=1;T<p;T++)x[T-1]=arguments[T];c.emit.apply(c,[v].concat(x))}),c.init(l,s),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Du);zs(np,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new np(e,t)});var li=np.createInstance();li.createInstance=np.createInstance;li.createInstance;li.dir;li.init;li.loadResources;li.reloadResources;li.use;li.changeLanguage;li.getFixedT;var F1=li.t;li.exists;li.setDefaultNamespace;li.hasLoadedNamespace;li.loadNamespaces;li.loadLanguages;const N1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},j1=e=>{window.location.href=`${e}/authentication/login`},B1=e=>{window.location.href=`${e}/authentication/logout`},as=$I.create({withCredentials:!0});let Ag=!1,Bv=[];const Sb=e=>{Bv.forEach(t=>{e?t.reject(e):t.resolve()}),Bv=[]};function $1(e,t){var o,s,l,c,d,v,p,x,T;const n=e.config,r=((s=(o=e.response)==null?void 0:o.data)==null?void 0:s.errorMessage)||((c=(l=e.response)==null?void 0:l.data)==null?void 0:c.message),i=r===N1.TOKEN_EXPIRED;return((d=e.response)==null?void 0:d.status)===401&&i&&!n._retry?Ag?new Promise((_,I)=>{Bv.push({resolve:_,reject:I})}).then(()=>as(n)).catch(_=>Promise.reject(_)):(n._retry=!0,Ag=!0,as.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(Sb(null),as(n))).catch(_=>(Sb(_),Promise.reject(_))).finally(()=>{Ag=!1})):((v=e.response)==null?void 0:v.status)===401&&!i?j1(window.env.AUTHEN_DOMAIN):(((p=e.response)==null?void 0:p.status)===403?(x=t==null?void 0:t.handle403)==null||x.call(t,e):(!(t!=null&&t.disabledPushNotify)&&Wd(F1(`${r||"Something went wrong!"}`)),(T=t==null?void 0:t.handleOtherError)==null||T.call(t,e)),r&&e.response&&e.response.data&&(e.response.data.message=r),Promise.reject(e))}const TA=as.interceptors.response.use(e=>e,async e=>$1(e)),V1=X.createContext({}),CA=({children:e})=>{const[t,n]=X.useState(!1),[r,i]=X.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!t)},s=()=>{n(!1)};return Ue.jsx(V1.Provider,{value:{isOpen:t,toggleOpen:o,setShowModalFalse:s,notidata:r,setNotiData:i},children:e})};var H1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Tb=X.createContext&&X.createContext(H1),EA=["attr","size","title"];function kA(e,t){if(e==null)return{};var n=OA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp.apply(this,arguments)}function Cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(n),!0).forEach(function(r){_A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _A(e,t,n){return t=DA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DA(e){var t=PA(e,"string");return typeof t=="symbol"?t:t+""}function PA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U1(e){return e&&e.map((t,n)=>X.createElement(t.tag,ip({key:n},t.attr),U1(t.child)))}function Rp(e){return t=>X.createElement(RA,rp({attr:ip({},e.attr)},t),U1(e.child))}function RA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=kA(e,EA),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),X.createElement("svg",rp({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:c,style:ip(ip({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),e.children)};return Tb!==void 0?X.createElement(Tb.Consumer,null,n=>t(n)):t(H1)}function IA(e){return Rp({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(e)}function AA(e){return Rp({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(e)}const W1={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 Mg(e){return e+" !important"}const z1=e=>{const t={...e.colors};return ss.createTheme({palette:{primary:{main:t.primary300,contrastText:t.textPrimary},secondary:{main:t.secondary,contrastText:t.textPrimary},warning:{main:t.warning,contrastText:t.textPrimary},error:{main:t.danger,contrastText:t.textPrimary}},typography:W1,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:t.primary300,color:t.buttonText,"&:hover":{backgroundColor:t.buttonHover||t.primary300},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"contained",color:"error"},style:{color:t.white}},{props:{variant:"confirm"},style:{backgroundColor:t.danger,color:t.white,"&:hover":{backgroundColor:t.dangerDark},"&.Mui-disabled":{backgroundColor:t.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:t.grey300,color:t.textPrimary,"&:hover":{backgroundColor:t.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:t.primary500,border:"1px solid",borderColor:t.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:t.danger,border:"1px solid",borderColor:t.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:t.appBarBgColor,color:t.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:t.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:t.grey100},"&.Mui-selected":{backgroundColor:t.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Mg(t.primary200),"&:hover":{backgroundColor:Mg(t.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:IA,next:AA}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Mg(t.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:t.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:t.success,backgroundColor:t.successLight},colorWarning:{color:t.warning,backgroundColor:t.warningLight},colorError:{color:t.danger,backgroundColor:t.dangerLight},colorSecondary:{color:t.linkPrimary,backgroundColor:t.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:t.grey600},"& .detail-icon":{stroke:t.grey600},color:t.grey400,"&.Mui-selected":{color:t.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:t.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:t.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:t.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:t.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:t.grey600}},"& .MuiFormLabel-asterisk":{color:t.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${t.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:t.grey600,"&.Mui-checked":{color:t.success},"&.Mui-disabled":{color:t.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:t.grey600,color:t.white,"& .MuiTooltip-arrow":{color:t.grey600}}}}}})};function Eb(e,t){const n={...e};return t==null||t.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||Gr[i]})}),n}function Y1(e){if(!e)return;let t=document.querySelector("link[rel*='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e}function MA(e){var l,c,d;const{data:t,isFetching:n}=kd.useQuery(["customTheme"],()=>e!=null&&e.url?fetch(e.url).then(v=>v.json()).then(v=>(["image","favicon","icon"].forEach(p=>{var x;(x=v==null?void 0:v.theme)!=null&&x[p]&&(v.theme[p]+=`?v=${Date.now()}`)}),v)):void 0,{enabled:!!(e!=null&&e.url)&&(e==null?void 0:e.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(v){var x,T;Y1((x=v==null?void 0:v.theme)==null?void 0:x.favicon);const p=Eb(Gr,(T=v==null?void 0:v.theme)==null?void 0:T.keyColor);Object.keys(p).forEach(_=>{document.documentElement.style.setProperty(`--${_}`,p[_])}),document.documentElement.style.setProperty("font-family",W1.fontFamily)}}),r=Eb(Gr,(l=t==null?void 0:t.theme)==null?void 0:l.keyColor),i=z1({colors:r}),o=(c=t==null?void 0:t.theme)==null?void 0:c.image,s=(d=t==null?void 0:t.theme)==null?void 0:d.icon;return{colors:r,theme:i,logo:o,icon:s,isFetching:n,themeDto:t==null?void 0:t.theme}}const G1=X.createContext({}),LA=()=>X.useContext(G1),FA=e=>{var o;const{children:t,brandTheme:n}=e,r=MA(n),i=((o=e.customTheme)==null?void 0:o.call(e,r.colors))||r.theme;return Ue.jsx(G1.Provider,{value:r,children:Ue.jsx(ss.ThemeProvider,{theme:i,children:t})})},NA=e=>{const t=kd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||as,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=kd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.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&&t.invalidateQueries(["user"])}},[t]),r},jA=e=>{const t=kd.useQueryClient(),n=X.useMemo(()=>e.axiosInstance||as,[e.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(e.baseUrl).origin;const r=kd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(e.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&t.invalidateQueries(["user-permissions"])}},[t]),r},Ym=X.createContext({}),BA=e=>{const{children:t,baseUrl:n,axiosInstance:r}=e,i=new URL(n).origin,o=NA({axiosInstance:r,baseUrl:n}),s=jA({axiosInstance:r,baseUrl:n});function l(){window.location.href=`${i}/authentication/login`}function c(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Ue.jsx(ss.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Ue.jsx(ss.CircularProgress,{})}):Ue.jsx(Ym.Provider,{value:{user:o==null?void 0:o.data,login:l,logout:c,isFetching:o.isFetching,permissions:s==null?void 0:s.data},children:t})},$A=()=>X.useContext(Ym);function VA(e,t,n){return n.some(r=>{const i=e[r];return String(i).toLowerCase().includes(t.toLowerCase())})}var q1=[],HA=q1.forEach,UA=q1.slice;function WA(e){return HA.call(UA.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var kb=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,zA=function(t,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),s="".concat(t,"=").concat(o);if(i.maxAge>0){var l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!kb.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(i.domain)}if(i.path){if(!kb.test(i.path))throw new TypeError("option path is invalid");s+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.sameSite){var c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},Ob={create:function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=zA(t,encodeURIComponent(n),o)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},YA={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=Ob.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&Ob.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},GA={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),s=0;s<o.length;s++){var l=o[s].indexOf("=");if(l>0){var c=o[s].substring(0,l);c===t.lookupQuerystring&&(n=o[s].substring(l+1))}}}return n}},ed=null,_b=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{ed=!1}return ed},qA={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&_b()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&_b()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},td=null,Db=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{td=!1}return td},XA={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&Db()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&Db()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},KA={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},ZA={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},JA={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},QA={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},X1=!1;try{document.cookie,X1=!0}catch{}var K1=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];X1||K1.splice(1,1);function eM(){return{order:K1,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var Z1=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ta(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=WA(r,this.options||{},eM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(YA),this.addDetector(GA),this.addDetector(qA),this.addDetector(XA),this.addDetector(KA),this.addDetector(ZA),this.addDetector(JA),this.addDetector(QA)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var s=r.detectors[o].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(i=i.concat(s))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();Z1.type="languageDetector";function Gm(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const tM=Object.freeze(Object.defineProperty({__proto__:null,default:Gm},Symbol.toStringTag,{value:"Module"}));var Ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nM(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}function rM(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Pb={};function $v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Pb[t[0]]||(typeof t[0]=="string"&&(Pb[t[0]]=new Date),rM.apply(void 0,t))}var J1=function(t,n){return function(){if(t.isInitialized)n();else{var r=function i(){setTimeout(function(){t.off("initialized",i)},0),n()};t.on("initialized",r)}}};function Rb(e,t,n){e.loadNamespaces(t,J1(e,n))}function Ib(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,J1(e,r))}function iM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(c,d){var v=t.services.backendConnector.state["".concat(c,"|").concat(d)];return v===-1||v===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!i||s(o,e)))}function oM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return $v("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(o,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,e))return!1}}):iM(e,t,n)}var aM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,sM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},lM=function(t){return sM[t]},uM=function(t){return t.replace(aM,lM)};function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Vv={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:uM};function cM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vv=Mb(Mb({},Vv),e)}function fM(){return Vv}var Q1;function dM(e){Q1=e}function hM(){return Q1}var pM={type:"3rdParty",init:function(t){cM(t.options.react),dM(t)}},eT=X.createContext(),gM=function(){function e(){ta(this,e),this.usedNamespaces={}}return na(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function vM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(v){d=!0,i=v}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function mM(e,t){return R1(e)||vM(e,t)||I1(e,t)||A1()}function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(n),!0).forEach(function(r){zs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yM=function(t,n){var r=X.useRef();return X.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function tT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=X.useContext(eT)||{},i=r.i18n,o=r.defaultNS,s=n||i||hM();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new gM),!s){$v("You will need to pass in an i18next instance by using initReactI18next");var l=function(ae,Ne){return typeof Ne=="string"?Ne:Ne&&Jo(Ne)==="object"&&typeof Ne.defaultValue=="string"?Ne.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&s.options.react.wait!==void 0&&$v("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Lg(Lg(Lg({},fM()),s.options.react),t),v=d.useSuspense,p=d.keyPrefix,x=e||o||s.options&&s.options.defaultNS;x=typeof x=="string"?[x]:x||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(x);var T=(s.isInitialized||s.initializedStoreOnce)&&x.every(function(ce){return oM(ce,s,d)});function _(){return s.getFixedT(t.lng||null,d.nsMode==="fallback"?x:x[0],p)}var I=X.useState(_),L=mM(I,2),R=L[0],U=L[1],W=x.join();t.lng&&(W="".concat(t.lng).concat(W));var te=yM(W),J=X.useRef(!0);X.useEffect(function(){var ce=d.bindI18n,ae=d.bindI18nStore;J.current=!0,!T&&!v&&(t.lng?Ib(s,t.lng,x,function(){J.current&&U(_)}):Rb(s,x,function(){J.current&&U(_)})),T&&te&&te!==W&&J.current&&U(_);function Ne(){J.current&&U(_)}return ce&&s&&s.on(ce,Ne),ae&&s&&s.store.on(ae,Ne),function(){J.current=!1,ce&&s&&ce.split(" ").forEach(function(Ge){return s.off(Ge,Ne)}),ae&&s&&ae.split(" ").forEach(function(Ge){return s.store.off(Ge,Ne)})}},[s,W]);var pe=X.useRef(!0);X.useEffect(function(){J.current&&!pe.current&&U(_),pe.current=!1},[s,p]);var S=[R,s,T];if(S.t=R,S.i18n=s,S.ready=T,T||!T&&!v)return S;throw new Promise(function(ce){t.lng?Ib(s,t.lng,x,function(){return ce()}):Rb(s,x,function(){return ce()})})}function bM(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=X.useMemo(function(){return{i18n:t,defaultNS:n}},[t,n]);return X.createElement(eT.Provider,{value:i},r)}var nT=[],wM=nT.forEach,xM=nT.slice;function SM(e){return wM.call(xM.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function TM(e){return e?typeof e=="function"?new e:e:null}function CM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function Fb(e,t,n,r){var i=e.read.bind(e);if(i.length===2){try{var o=i(t,n);o&&typeof o.then=="function"?o.then(function(s){return r(null,s)}).catch(r):r(null,o)}catch(s){r(s)}return}i(t,n,r)}var rT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ta(this,e),this.backends=[],this.type="backend",this.allOptions=r,this.init(t,n)}return na(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=SM(i,this.options||{},CM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(s,l){r.backends[l]=r.backends[l]||TM(s),r.backends[l].init(n,r.options.backendOptions&&r.options.backendOptions[l]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,s=this.backends.length,l=function d(v){if(v>=s)return i(new Error("non of the backend loaded data",!0));var p=v===s-1,x=o.options.handleEmptyResourcesAsFailed&&!p?0:-1,T=o.backends[v];T.read?Fb(T,n,r,function(_,I,L){if(!_&&I&&Object.keys(I).length>x){if(i(null,I,v),c(v-1,I),T.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(L&&o.options.refreshExpirationTime&&L+o.options.refreshExpirationTime>Date.now())return;var R=o.backends[v+1];R&&R.read&&Fb(R,n,r,function(U,W){U||W&&(Object.keys(W).length<=x||(c(v,W),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,W)))})}}else d(v+1)}):d(v+1)},c=function d(v,p){if(!(v<0)){var x=o.backends[v];x.save&&x.save(n,r,p),d(v-1,p)}};l(0)}},{key:"create",value:function(n,r,i,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(c){if(c.create){var d=c.create.bind(c);if(d.length<6){try{var v;d.length===5?v=d(n,r,i,o,l):v=d(n,r,i,o),v&&typeof v.then=="function"?v.then(function(p){return s(null,p)}).catch(s):s(null,v)}catch(p){s(p)}return}d(n,r,i,o,s,l)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var x=o.toResolveHierarchy(p);x.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(x,T){x&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),x),!x&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),x,T)})})})}}}]),e}();rT.type="backend";function Hv(e){"@babel/helpers - typeof";return Hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hv(e)}function iT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Hv(XMLHttpRequest))==="object"}function EM(e){return!!e&&typeof e.then=="function"}function kM(e){return EM(e)?e:Promise.resolve(e)}function OM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uv={exports:{}},gh={exports:{}},Nb;function _M(){return Nb||(Nb=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ci<"u"&&Ci,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(s){var l=typeof o<"u"&&o||typeof self<"u"&&self||typeof l<"u"&&l,c={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function d(me){return me&&DataView.prototype.isPrototypeOf(me)}if(c.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(me){return me&&v.indexOf(Object.prototype.toString.call(me))>-1};function x(me){if(typeof me!="string"&&(me=String(me)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(me)||me==="")throw new TypeError('Invalid character in header field name: "'+me+'"');return me.toLowerCase()}function T(me){return typeof me!="string"&&(me=String(me)),me}function _(me){var Se={next:function(){var Ve=me.shift();return{done:Ve===void 0,value:Ve}}};return c.iterable&&(Se[Symbol.iterator]=function(){return Se}),Se}function I(me){this.map={},me instanceof I?me.forEach(function(Se,Ve){this.append(Ve,Se)},this):Array.isArray(me)?me.forEach(function(Se){this.append(Se[0],Se[1])},this):me&&Object.getOwnPropertyNames(me).forEach(function(Se){this.append(Se,me[Se])},this)}I.prototype.append=function(me,Se){me=x(me),Se=T(Se);var Ve=this.map[me];this.map[me]=Ve?Ve+", "+Se:Se},I.prototype.delete=function(me){delete this.map[x(me)]},I.prototype.get=function(me){return me=x(me),this.has(me)?this.map[me]:null},I.prototype.has=function(me){return this.map.hasOwnProperty(x(me))},I.prototype.set=function(me,Se){this.map[x(me)]=T(Se)},I.prototype.forEach=function(me,Se){for(var Ve in this.map)this.map.hasOwnProperty(Ve)&&me.call(Se,this.map[Ve],Ve,this)},I.prototype.keys=function(){var me=[];return this.forEach(function(Se,Ve){me.push(Ve)}),_(me)},I.prototype.values=function(){var me=[];return this.forEach(function(Se){me.push(Se)}),_(me)},I.prototype.entries=function(){var me=[];return this.forEach(function(Se,Ve){me.push([Ve,Se])}),_(me)},c.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function L(me){if(me.bodyUsed)return Promise.reject(new TypeError("Already read"));me.bodyUsed=!0}function R(me){return new Promise(function(Se,Ve){me.onload=function(){Se(me.result)},me.onerror=function(){Ve(me.error)}})}function U(me){var Se=new FileReader,Ve=R(Se);return Se.readAsArrayBuffer(me),Ve}function W(me){var Se=new FileReader,Ve=R(Se);return Se.readAsText(me),Ve}function te(me){for(var Se=new Uint8Array(me),Ve=new Array(Se.length),Qe=0;Qe<Se.length;Qe++)Ve[Qe]=String.fromCharCode(Se[Qe]);return Ve.join("")}function J(me){if(me.slice)return me.slice(0);var Se=new Uint8Array(me.byteLength);return Se.set(new Uint8Array(me)),Se.buffer}function pe(){return this.bodyUsed=!1,this._initBody=function(me){this.bodyUsed=this.bodyUsed,this._bodyInit=me,me?typeof me=="string"?this._bodyText=me:c.blob&&Blob.prototype.isPrototypeOf(me)?this._bodyBlob=me:c.formData&&FormData.prototype.isPrototypeOf(me)?this._bodyFormData=me:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)?this._bodyText=me.toString():c.arrayBuffer&&c.blob&&d(me)?(this._bodyArrayBuffer=J(me.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(me)||p(me))?this._bodyArrayBuffer=J(me):this._bodyText=me=Object.prototype.toString.call(me):this._bodyText="",this.headers.get("content-type")||(typeof me=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(me)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var me=L(this);if(me)return me;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var me=L(this);return me||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var me=L(this);if(me)return me;if(this._bodyBlob)return W(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(te(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Ne)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(me){var Se=me.toUpperCase();return S.indexOf(Se)>-1?Se:me}function ae(me,Se){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Se=Se||{};var Ve=Se.body;if(me instanceof ae){if(me.bodyUsed)throw new TypeError("Already read");this.url=me.url,this.credentials=me.credentials,Se.headers||(this.headers=new I(me.headers)),this.method=me.method,this.mode=me.mode,this.signal=me.signal,!Ve&&me._bodyInit!=null&&(Ve=me._bodyInit,me.bodyUsed=!0)}else this.url=String(me);if(this.credentials=Se.credentials||this.credentials||"same-origin",(Se.headers||!this.headers)&&(this.headers=new I(Se.headers)),this.method=ce(Se.method||this.method||"GET"),this.mode=Se.mode||this.mode||null,this.signal=Se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ve)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ve),(this.method==="GET"||this.method==="HEAD")&&(Se.cache==="no-store"||Se.cache==="no-cache")){var Qe=/([?&])_=[^&]*/;if(Qe.test(this.url))this.url=this.url.replace(Qe,"$1_="+new Date().getTime());else{var at=/\?/;this.url+=(at.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Ne(me){var Se=new FormData;return me.trim().split("&").forEach(function(Ve){if(Ve){var Qe=Ve.split("="),at=Qe.shift().replace(/\+/g," "),Ee=Qe.join("=").replace(/\+/g," ");Se.append(decodeURIComponent(at),decodeURIComponent(Ee))}}),Se}function Ge(me){var Se=new I,Ve=me.replace(/\r?\n[\t ]+/g," ");return Ve.split("\r").map(function(Qe){return Qe.indexOf(`
|
|
4
|
-
`)===0?Qe.substr(1,Qe.length):Qe}).forEach(function(Qe){var at=Qe.split(":"),Ee=at.shift().trim();if(Ee){var _e=at.join(":").trim();Se.append(Ee,_e)}}),Se}pe.call(ae.prototype);function qe(me,Se){if(!(this instanceof qe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Se||(Se={}),this.type="default",this.status=Se.status===void 0?200:Se.status,this.ok=this.status>=200&&this.status<300,this.statusText=Se.statusText===void 0?"":""+Se.statusText,this.headers=new I(Se.headers),this.url=Se.url||"",this._initBody(me)}pe.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 me=new qe(null,{status:0,statusText:""});return me.type="error",me};var it=[301,302,303,307,308];qe.redirect=function(me,Se){if(it.indexOf(Se)===-1)throw new RangeError("Invalid status code");return new qe(null,{status:Se,headers:{location:me}})},s.DOMException=l.DOMException;try{new s.DOMException}catch{s.DOMException=function(Se,Ve){this.message=Se,this.name=Ve;var Qe=Error(Se);this.stack=Qe.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function nt(me,Se){return new Promise(function(Ve,Qe){var at=new ae(me,Se);if(at.signal&&at.signal.aborted)return Qe(new s.DOMException("Aborted","AbortError"));var Ee=new XMLHttpRequest;function _e(){Ee.abort()}Ee.onload=function(){var We={status:Ee.status,statusText:Ee.statusText,headers:Ge(Ee.getAllResponseHeaders()||"")};We.url="responseURL"in Ee?Ee.responseURL:We.headers.get("X-Request-URL");var Re="response"in Ee?Ee.response:Ee.responseText;setTimeout(function(){Ve(new qe(Re,We))},0)},Ee.onerror=function(){setTimeout(function(){Qe(new TypeError("Network request failed"))},0)},Ee.ontimeout=function(){setTimeout(function(){Qe(new TypeError("Network request failed"))},0)},Ee.onabort=function(){setTimeout(function(){Qe(new s.DOMException("Aborted","AbortError"))},0)};function Ye(We){try{return We===""&&l.location.href?l.location.href:We}catch{return We}}Ee.open(at.method,Ye(at.url),!0),at.credentials==="include"?Ee.withCredentials=!0:at.credentials==="omit"&&(Ee.withCredentials=!1),"responseType"in Ee&&(c.blob?Ee.responseType="blob":c.arrayBuffer&&at.headers.get("Content-Type")&&at.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Ee.responseType="arraybuffer")),Se&&typeof Se.headers=="object"&&!(Se.headers instanceof I)?Object.getOwnPropertyNames(Se.headers).forEach(function(We){Ee.setRequestHeader(We,T(Se.headers[We]))}):at.headers.forEach(function(We,Re){Ee.setRequestHeader(Re,We)}),at.signal&&(at.signal.addEventListener("abort",_e),Ee.onreadystatechange=function(){Ee.readyState===4&&at.signal.removeEventListener("abort",_e)}),Ee.send(typeof at._bodyInit>"u"?null:at._bodyInit)})}return nt.polyfill=!0,l.fetch||(l.fetch=nt,l.Headers=I,l.Request=ae,l.Response=qe),s.Headers=I,s.Request=ae,s.Response=qe,s.fetch=nt,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(gh,gh.exports)),gh.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Ci<"u"&&Ci.fetch?n=Ci.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof OM<"u"&&typeof window>"u"){var r=n||_M();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Uv,Uv.exports);var oT=Uv.exports;const aT=Mu(oT),jb=UI({__proto__:null,default:aT},[oT]);function Bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $b(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(n),!0).forEach(function(r){DM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DM(e,t,n){return(t=PM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PM(e){var t=RM(e,"string");return Ic(t)=="symbol"?t:t+""}function RM(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}var Pl;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Pl=global.fetch:typeof window<"u"&&window.fetch?Pl=window.fetch:Pl=fetch);var Od;iT()&&(typeof global<"u"&&global.XMLHttpRequest?Od=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Od=window.XMLHttpRequest));var op;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?op=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(op=window.ActiveXObject));!Pl&&jb&&!Od&&!op&&(Pl=aT||jb);typeof Pl!="function"&&(Pl=void 0);var Wv=function(t,n){if(n&&Ic(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Vb=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var s=i(t,n);if(s instanceof Promise){s.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):Pl(t,n).then(o).catch(r)},Hb=!1,IM=function(t,n,r,i){t.queryStringParams&&(n=Wv(n,t.queryStringParams));var o=$b({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=$b({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Hb?{}:s),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Vb(n,l,i,c)}catch(d){if(!s||Object.keys(s).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(s).forEach(function(v){delete l[v]}),Vb(n,l,i,c),Hb=!0}catch(v){i(v)}}},AM=function(t,n,r,i){r&&Ic(r)==="object"&&(r=Wv("",r).slice(1)),t.queryStringParams&&(n=Wv(n,t.queryStringParams));try{var o;Od?o=new Od:o=new op("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var l in s)o.setRequestHeader(l,s[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},MM=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Pl&&n.indexOf("file:")!==0)return IM(t,n,r,i);if(iT()||typeof ActiveXObject=="function")return AM(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function Ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ub(Object(n),!0).forEach(function(r){sT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ub(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LM(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lT(r.key),r)}}function FM(e,t,n){return t&&Wb(e.prototype,t),n&&Wb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sT(e,t,n){return(t=lT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e){var t=NM(e,"string");return Rf(t)=="symbol"?t:t+""}function NM(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jM=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 sT({},r,i||"")},parseLoadPayload:function(n,r){},request:MM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},uT=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};LM(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return FM(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Fg(Fg(Fg({},jM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);Rf(s)==="object"&&typeof s.unref=="function"&&s.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,s){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=kM(c),c.then(function(d){if(!d)return s(null,{});var v=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(v,s,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var s=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(v,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&v&&v.message){var x=v.message.toLowerCase(),T=["failed","fetch","network","load"].find(function(L){return x.indexOf(L)>-1});if(T)return r("failed loading "+n+": "+v.message,!0)}if(v)return r(v,!1);var _,I;try{typeof p.data=="string"?_=s.options.parse(p.data,i,o):_=p.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,_)})}},{key:"create",value:function(n,r,i,o,s){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,v=[],p=[];n.forEach(function(x){var T=l.options.addPath;typeof l.options.addPath=="function"&&(T=l.options.addPath(x,r));var _=l.services.interpolator.interpolate(T,{lng:x,ns:r});l.options.request(l.options,_,c,function(I,L){d+=1,v.push(I),p.push(L),d===n.length&&typeof s=="function"&&s(v,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,s=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(p){var x=o.toResolveHierarchy(p);x.forEach(function(T){c.indexOf(T)<0&&c.push(T)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return d(v)}),c.forEach(function(v){n.allOptions.ns.forEach(function(p){i.read(v,p,"read",null,null,function(x,T){x&&s.warn("loading namespace ".concat(p," for language ").concat(v," failed"),x),!x&&T&&s.log("loaded namespace ".concat(p," for language ").concat(v),T),i.loaded("".concat(v,"|").concat(p),x,T)})})})}}}])}();uT.type="backend";var qm=(e=>(e.en="en",e.de="de",e))(qm||{});const BM={en:"English",de:"German"};li.use(rT).use(pM).use(Z1).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(BM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[uT],backendOptions:[{loadPath:()=>{var t,n,r;if((t=window==null?void 0:window.env)!=null&&t.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const e=((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",e),`${e}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function $M(){const[e,t]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");t(n||qm.en)},[]),{language:e,setLanguage:t}}const cT=X.createContext({}),VM=()=>X.useContext(cT),HM=li,UM=F1,WM=()=>tT(),zM=({children:e})=>{const t=$M();return Ue.jsx(cT.Provider,{value:t,children:Ue.jsx(bM,{i18n:li,children:e})})},YM=`*,: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}
|
|
5
|
-
`;function Xm({children:e,styles:t=[],...n}){return Ue.jsxs("div",{...n,children:[[YM,...t].map((r,i)=>Ue.jsx("style",{type:"text/css",children:r},i)),e]})}function GM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Km=GM,qM=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,XM=qM,KM=XM,ZM=typeof self=="object"&&self&&self.Object===Object&&self,JM=KM||ZM||Function("return this")(),fT=JM,QM=fT,eL=function(){return QM.Date.now()},tL=eL,nL=/\s/;function rL(e){for(var t=e.length;t--&&nL.test(e.charAt(t)););return t}var iL=rL,oL=iL,aL=/^\s+/;function sL(e){return e&&e.slice(0,oL(e)+1).replace(aL,"")}var lL=sL,uL=fT,cL=uL.Symbol,dT=cL,zb=dT,hT=Object.prototype,fL=hT.hasOwnProperty,dL=hT.toString,nd=zb?zb.toStringTag:void 0;function hL(e){var t=fL.call(e,nd),n=e[nd];try{e[nd]=void 0;var r=!0}catch{}var i=dL.call(e);return r&&(t?e[nd]=n:delete e[nd]),i}var pL=hL,gL=Object.prototype,vL=gL.toString;function mL(e){return vL.call(e)}var yL=mL,Yb=dT,bL=pL,wL=yL,xL="[object Null]",SL="[object Undefined]",Gb=Yb?Yb.toStringTag:void 0;function TL(e){return e==null?e===void 0?SL:xL:Gb&&Gb in Object(e)?bL(e):wL(e)}var CL=TL;function EL(e){return e!=null&&typeof e=="object"}var kL=EL,OL=CL,_L=kL,DL="[object Symbol]";function PL(e){return typeof e=="symbol"||_L(e)&&OL(e)==DL}var RL=PL,IL=lL,qb=Km,AL=RL,Xb=0/0,ML=/^[-+]0x[0-9a-f]+$/i,LL=/^0b[01]+$/i,FL=/^0o[0-7]+$/i,NL=parseInt;function jL(e){if(typeof e=="number")return e;if(AL(e))return Xb;if(qb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IL(e);var n=LL.test(e);return n||FL.test(e)?NL(e.slice(2),n?2:8):ML.test(e)?Xb:+e}var BL=jL,$L=Km,Ng=tL,Kb=BL,VL="Expected a function",HL=Math.max,UL=Math.min;function WL(e,t,n){var r,i,o,s,l,c,d=0,v=!1,p=!1,x=!0;if(typeof e!="function")throw new TypeError(VL);t=Kb(t)||0,$L(n)&&(v=!!n.leading,p="maxWait"in n,o=p?HL(Kb(n.maxWait)||0,t):o,x="trailing"in n?!!n.trailing:x);function T(pe){var S=r,ce=i;return r=i=void 0,d=pe,s=e.apply(ce,S),s}function _(pe){return d=pe,l=setTimeout(R,t),v?T(pe):s}function I(pe){var S=pe-c,ce=pe-d,ae=t-S;return p?UL(ae,o-ce):ae}function L(pe){var S=pe-c,ce=pe-d;return c===void 0||S>=t||S<0||p&&ce>=o}function R(){var pe=Ng();if(L(pe))return U(pe);l=setTimeout(R,I(pe))}function U(pe){return l=void 0,x&&r?T(pe):(r=i=void 0,s)}function W(){l!==void 0&&clearTimeout(l),d=0,r=c=i=l=void 0}function te(){return l===void 0?s:U(Ng())}function J(){var pe=Ng(),S=L(pe);if(r=arguments,i=this,c=pe,S){if(l===void 0)return _(c);if(p)return clearTimeout(l),l=setTimeout(R,t),T(c)}return l===void 0&&(l=setTimeout(R,t)),s}return J.cancel=W,J.flush=te,J}var pT=WL;const jg=Mu(pT);var zL=pT,YL=Km,GL="Expected a function";function qL(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(GL);return YL(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),zL(e,t,{leading:r,maxWait:t,trailing:i})}var XL=qL;const KL=Mu(XL);var wf=function(){return wf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},wf.apply(this,arguments)};function gT(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function vT(e){return!e||!e.ownerDocument?document:e.ownerDocument}var mT=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(l,c){return c.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function yT(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function bT(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function wT(e){return".".concat(e.split(" ").join("."))}var Zm=!!(typeof window<"u"&&window.document&&window.document.createElement),ZL=Object.freeze({__proto__:null,addClasses:yT,canUseDOM:Zm,classNamesToQuery:wT,getElementDocument:vT,getElementWindow:gT,getOptions:mT,removeClasses:bT}),yf=null,Zb=null;Zm&&window.addEventListener("resize",function(){Zb!==window.devicePixelRatio&&(Zb=window.devicePixelRatio,yf=null)});function Jb(){if(yf===null){if(typeof document>"u")return yf=0,yf;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),yf=n}return yf}var du=gT,Bg=vT,JL=mT,hu=yT,pu=bT,_o=wT,rd=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.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=du(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,hu(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(){pu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(hu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){pu(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,l,c,d,v,p,x,T,_,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var L,R=r.axis[r.draggedAxis].track,U=(s=(o=R.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,W=r.axis[r.draggedAxis].scrollbar,te=(c=(l=r.contentWrapperEl)===null||l===void 0?void 0:l[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&c!==void 0?c:0,J=parseInt((v=(d=r.elStyles)===null||d===void 0?void 0:d[r.axis[r.draggedAxis].sizeAttr])!==null&&v!==void 0?v:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?L=i.pageY:L=i.pageX;var pe=L-((x=(p=R.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].offsetAttr])!==null&&x!==void 0?x:0)-r.axis[r.draggedAxis].dragOffset;pe=r.draggedAxis==="x"&&r.isRtl?((_=(T=R.rect)===null||T===void 0?void 0:T[r.axis[r.draggedAxis].sizeAttr])!==null&&_!==void 0?_:0)-W.size-pe:pe;var S=pe/(U-W.size),ce=S*(te-J);r.draggedAxis==="x"&&r.isRtl&&(ce=!((I=e.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ce:ce),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ce}},this.onEndDrag=function(i){r.isDragging=!1;var o=Bg(r.el),s=du(r.el);i.preventDefault(),i.stopPropagation(),pu(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=wf(wf({},e.defaultOptions),n),this.classNames=wf(wf({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=KL(this._onMouseMove,64),this.onWindowResize=jg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=jg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=jg(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Jb()}catch{return Jb()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=Bg(t),i=du(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Zm&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(_o(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(_o(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(_o(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(_o(this.classNames.offset)),this.maskEl=this.el.querySelector(_o(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,_o(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(_o(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(_o(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(_o(this.classNames.track)).concat(_o(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(_o(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(_o(this.classNames.scrollbar)))||null,this.options.autoHide||(hu(this.axis.x.scrollbar.el,this.classNames.visible),hu(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=du(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=du(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var c=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||d,"px"):"auto",this.placeholderEl.style.height="".concat(c,"px");var v=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&d>n,this.axis.y.isOverflowing=c>v,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,x=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>o-x,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&c>v-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,l;return l=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],l=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,c=parseInt(this.elStyles[this.axis[t].sizeAttr],10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];d=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-d:d,t==="x"&&this.isRtl&&(d=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?d:-d);var v=d/(s-c),p=~~((l-o.size)*v);p=t==="x"&&this.isRtl?-p+(l-o.size):p,o.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(hu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(pu(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),hu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?hu(n.scrollbar.el,this.classNames.hover):pu(n.scrollbar.el,this.classNames.hover)):(pu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),pu(this.axis[t].track.el,this.classNames.hover),pu(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Bg(this.el),o=du(this.el),s=this.axis[n].scrollbar,l=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=l-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,hu(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,l;n===void 0&&(n="y");var c=this.axis[n];if(!(!this.options.clickOnTrack||!c.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var d=du(this.el);this.axis[n].scrollbar.rect=c.scrollbar.el.getBoundingClientRect();var v=this.axis[n].scrollbar,p=(o=(i=v.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,x=parseInt((l=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&l!==void 0?l:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],_=n==="y"?this.mouseY-p:this.mouseX-p,I=_<0?-1:1,L=I===-1?T-x:T+x,R=40,U=function(){r.contentWrapperEl&&(I===-1?T>L&&(T-=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)):T<L&&(T+=R,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=T,d.requestAnimationFrame(U)))};U()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=du(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",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},e.getOptions=JL,e.helpers=ZL,e}(),Ko=function(){return Ko=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ko.apply(this,arguments)};function QL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var xT=Tn.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=QL(e,["children","scrollableNodeProps"]),s=Tn.useRef(),l=Tn.useRef(),c=Tn.useRef(),d={},v={};Object.keys(o).forEach(function(T){Object.prototype.hasOwnProperty.call(rd.defaultOptions,T)?d[T]=o[T]:v[T]=o[T]});var p=Ko(Ko({},rd.defaultOptions.classNames),d.classNames),x=Ko(Ko({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:d.tabIndex||rd.defaultOptions.tabIndex,role:"region","aria-label":d.ariaLabel||rd.defaultOptions.ariaLabel});return Tn.useEffect(function(){var T;return l.current=x.ref?x.ref.current:l.current,s.current&&(T=new rd(s.current,Ko(Ko(Ko({},d),l.current&&{scrollableNode:l.current}),c.current&&{contentNode:c.current})),typeof t=="function"?t(T):t&&(t.current=T)),function(){T==null||T.unMount(),T=null,typeof t=="function"&&t(null)}},[]),Tn.createElement("div",Ko({"data-simplebar":"init",ref:s},v),Tn.createElement("div",{className:p.wrapper},Tn.createElement("div",{className:p.heightAutoObserverWrapperEl},Tn.createElement("div",{className:p.heightAutoObserverEl})),Tn.createElement("div",{className:p.mask},Tn.createElement("div",{className:p.offset},typeof n=="function"?n({scrollableNodeRef:l,scrollableNodeProps:Ko(Ko({},x),{ref:l}),contentNodeRef:c,contentNodeProps:{className:p.contentEl,ref:c}}):Tn.createElement("div",Ko({},x),Tn.createElement("div",{className:p.contentEl},n)))),Tn.createElement("div",{className:p.placeholder})),Tn.createElement("div",{className:"".concat(p.track," simplebar-horizontal")},Tn.createElement("div",{className:p.scrollbar})),Tn.createElement("div",{className:"".concat(p.track," simplebar-vertical")},Tn.createElement("div",{className:p.scrollbar})))});xT.displayName="SimpleBar";const ST=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
6
|
-
`;function TT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ol(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TT(e))&&(r&&(r+=" "),r+=t);return r}const _d=e=>typeof e=="number"&&!isNaN(e),Dc=e=>typeof e=="string",Zo=e=>typeof e=="function",Uh=e=>Dc(e)||Zo(e)?e:null,zv=e=>X.isValidElement(e)||Dc(e)||Zo(e)||_d(e);function e2(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Ip(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:l,position:c,preventExitTransition:d,done:v,nodeRef:p,isIn:x,playToast:T}=s;const _=r?`${t}--${c}`:t,I=r?`${n}--${c}`:n,L=X.useRef(0);return X.useLayoutEffect(()=>{const R=p.current,U=_.split(" "),W=te=>{te.target===p.current&&(T(),R.removeEventListener("animationend",W),R.removeEventListener("animationcancel",W),L.current===0&&te.type!=="animationcancel"&&R.classList.remove(...U))};R.classList.add(...U),R.addEventListener("animationend",W),R.addEventListener("animationcancel",W)},[]),X.useEffect(()=>{const R=p.current,U=()=>{R.removeEventListener("animationend",U),i?e2(R,v,o):v()};x||(d?U():(L.current=1,R.className+=` ${I}`,R.addEventListener("animationend",U)))},[x]),X.createElement(X.Fragment,null,l)}}function Qb(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const lo=new Map;let Dd=[];const Yv=new Set,t2=e=>Yv.forEach(t=>t(e)),CT=()=>lo.size>0;function ET(e,t){var n;if(t)return!((n=lo.get(t))==null||!n.isToastActive(e));let r=!1;return lo.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function kT(e,t){zv(e)&&(CT()||Dd.push({content:e,options:t}),lo.forEach(n=>{n.buildToast(e,t)}))}function ew(e,t){lo.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function n2(e){const{subscribe:t,getSnapshot:n,setProps:r}=X.useRef(function(o){const s=o.containerId||1;return{subscribe(l){const c=function(v,p,x){let T=1,_=0,I=[],L=[],R=[],U=p;const W=new Map,te=new Set,J=()=>{R=Array.from(W.values()),te.forEach(ce=>ce())},pe=ce=>{L=ce==null?[]:L.filter(ae=>ae!==ce),J()},S=ce=>{const{toastId:ae,onOpen:Ne,updateId:Ge,children:qe}=ce.props,it=Ge==null;ce.staleId&&W.delete(ce.staleId),W.set(ae,ce),L=[...L,ce.props.toastId].filter(nt=>nt!==ce.staleId),J(),x(Qb(ce,it?"added":"updated")),it&&Zo(Ne)&&Ne(X.isValidElement(qe)&&qe.props)};return{id:v,props:U,observe:ce=>(te.add(ce),()=>te.delete(ce)),toggle:(ce,ae)=>{W.forEach(Ne=>{ae!=null&&ae!==Ne.props.toastId||Zo(Ne.toggle)&&Ne.toggle(ce)})},removeToast:pe,toasts:W,clearQueue:()=>{_-=I.length,I=[]},buildToast:(ce,ae)=>{if((Ye=>{let{containerId:We,toastId:Re,updateId:Fe}=Ye;const He=We?We!==v:v!==1,lt=W.has(Re)&&Fe==null;return He||lt})(ae))return;const{toastId:Ne,updateId:Ge,data:qe,staleId:it,delay:nt}=ae,me=()=>{pe(Ne)},Se=Ge==null;Se&&_++;const Ve={...U,style:U.toastStyle,key:T++,...Object.fromEntries(Object.entries(ae).filter(Ye=>{let[We,Re]=Ye;return Re!=null})),toastId:Ne,updateId:Ge,data:qe,closeToast:me,isIn:!1,className:Uh(ae.className||U.toastClassName),bodyClassName:Uh(ae.bodyClassName||U.bodyClassName),progressClassName:Uh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Qe=ae.autoClose,at=U.autoClose,Qe===!1||_d(Qe)&&Qe>0?Qe:at),deleteToast(){const Ye=W.get(Ne),{onClose:We,children:Re}=Ye.props;Zo(We)&&We(X.isValidElement(Re)&&Re.props),x(Qb(Ye,"removed")),W.delete(Ne),_--,_<0&&(_=0),I.length>0?S(I.shift()):J()}};var Qe,at;Ve.closeButton=U.closeButton,ae.closeButton===!1||zv(ae.closeButton)?Ve.closeButton=ae.closeButton:ae.closeButton===!0&&(Ve.closeButton=!zv(U.closeButton)||U.closeButton);let Ee=ce;X.isValidElement(ce)&&!Dc(ce.type)?Ee=X.cloneElement(ce,{closeToast:me,toastProps:Ve,data:qe}):Zo(ce)&&(Ee=ce({closeToast:me,toastProps:Ve,data:qe}));const _e={content:Ee,props:Ve,staleId:it};U.limit&&U.limit>0&&_>U.limit&&Se?I.push(_e):_d(nt)?setTimeout(()=>{S(_e)},nt):S(_e)},setProps(ce){U=ce},setToggle:(ce,ae)=>{W.get(ce).toggle=ae},isToastActive:ce=>L.some(ae=>ae===ce),getSnapshot:()=>R}}(s,o,t2);lo.set(s,c);const d=c.observe(l);return Dd.forEach(v=>kT(v.content,v.options)),Dd=[],()=>{d(),lo.delete(s)}},setProps(l){var c;(c=lo.get(s))==null||c.setProps(l)},getSnapshot(){var l;return(l=lo.get(s))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const i=X.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return e.newestOnTop&&i.reverse(),i.forEach(l=>{const{position:c}=l.props;s.has(c)||s.set(c,[]),s.get(c).push(l)}),Array.from(s,l=>o(l[0],l[1]))},isToastActive:ET,count:i==null?void 0:i.length}}function r2(e){const[t,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),s=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:d,onClick:v,closeOnClick:p}=e;var x,T;function _(){n(!0)}function I(){n(!1)}function L(W){const te=o.current;s.canDrag&&te&&(s.didMove=!0,t&&I(),s.delta=e.draggableDirection==="x"?W.clientX-s.start:W.clientY-s.start,s.start!==W.clientX&&(s.canCloseOnClick=!1),te.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,te.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function R(){document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",R);const W=o.current;if(s.canDrag&&s.didMove&&W){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();W.style.transition="transform 0.2s, opacity 0.2s",W.style.removeProperty("transform"),W.style.removeProperty("opacity")}}(T=lo.get((x={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||T.setToggle(x.id,x.fn),X.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",_),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",_),window.removeEventListener("blur",I)}},[e.pauseOnFocusLoss]);const U={onPointerDown:function(W){if(e.draggable===!0||e.draggable===W.pointerType){s.didMove=!1,document.addEventListener("pointermove",L),document.addEventListener("pointerup",R);const te=o.current;s.canCloseOnClick=!0,s.canDrag=!0,te.style.transition="none",e.draggableDirection==="x"?(s.start=W.clientX,s.removalDistance=te.offsetWidth*(e.draggablePercent/100)):(s.start=W.clientY,s.removalDistance=te.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(W){const{top:te,bottom:J,left:pe,right:S}=o.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&e.pauseOnHover&&W.clientX>=pe&&W.clientX<=S&&W.clientY>=te&&W.clientY<=J?I():_()}};return l&&c&&(U.onMouseEnter=I,e.stacked||(U.onMouseLeave=_)),p&&(U.onClick=W=>{v&&v(W),s.canCloseOnClick&&d()}),{playToast:_,pauseToast:I,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:U}}function i2(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:l,controlledProgress:c,progress:d,rtl:v,isIn:p,theme:x}=e;const T=o||c&&d===0,_={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(_.transform=`scaleX(${d})`);const I=Ol("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":v}),L=Zo(s)?s({rtl:v,type:i,defaultClassName:I}):Ol(I,s),R={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{p&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":T},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${x} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":T?"true":"false","aria-label":"notification timer",className:L,style:_,...R}))}let o2=1;const OT=()=>""+o2++;function a2(e){return e&&(Dc(e.toastId)||_d(e.toastId))?e.toastId:OT()}function fd(e,t){return kT(e,t),t.toastId}function ap(e,t){return{...t,type:t&&t.type||e,toastId:a2(t)}}function vh(e){return(t,n)=>fd(t,ap(e,n))}function _n(e,t){return fd(e,ap("default",t))}_n.loading=(e,t)=>fd(e,ap("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),_n.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Dc(i)?_n.loading(i,n):_n.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(v,p,x)=>{if(p==null)return void _n.dismiss(r);const T={type:v,...l,...n,data:x},_=Dc(p)?{render:p}:p;return r?_n.update(r,{...T,..._}):_n(_.render,{...T,..._}),x},d=Zo(e)?e():e;return d.then(v=>c("success",s,v)).catch(v=>c("error",o,v)),d},_n.success=vh("success"),_n.info=vh("info"),_n.error=vh("error"),_n.warning=vh("warning"),_n.warn=_n.warning,_n.dark=(e,t)=>fd(e,ap("default",{theme:"dark",...t})),_n.dismiss=function(e){(function(t){var n;if(CT()){if(t==null||Dc(n=t)||_d(n))lo.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=lo.get(t.containerId);r?r.removeToast(t.id):lo.forEach(i=>{i.removeToast(t.id)})}}else Dd=Dd.filter(r=>t!=null&&r.options.toastId!==t)})(e)},_n.clearWaitingQueue=function(e){e===void 0&&(e={}),lo.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},_n.isActive=ET,_n.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=lo.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:OT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,fd(s,o)}},_n.done=e=>{_n.update(e,{progress:1})},_n.onChange=function(e){return Yv.add(e),()=>{Yv.delete(e)}},_n.play=e=>ew(!0,e),_n.pause=e=>ew(!1,e);const s2=typeof window<"u"?X.useLayoutEffect:X.useEffect,mh=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},$g={info:function(e){return X.createElement(mh,{...e},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(e){return X.createElement(mh,{...e},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(e){return X.createElement(mh,{...e},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(e){return X.createElement(mh,{...e},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"})}},l2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=r2(e),{closeButton:s,children:l,autoClose:c,onClick:d,type:v,hideProgressBar:p,closeToast:x,transition:T,position:_,className:I,style:L,bodyClassName:R,bodyStyle:U,progressClassName:W,progressStyle:te,updateId:J,role:pe,progress:S,rtl:ce,toastId:ae,deleteToast:Ne,isIn:Ge,isLoading:qe,closeOnClick:it,theme:nt}=e,me=Ol("Toastify__toast",`Toastify__toast-theme--${nt}`,`Toastify__toast--${v}`,{"Toastify__toast--rtl":ce},{"Toastify__toast--close-on-click":it}),Se=Zo(I)?I({rtl:ce,position:_,type:v,defaultClassName:me}):Ol(me,I),Ve=function(_e){let{theme:Ye,type:We,isLoading:Re,icon:Fe}=_e,He=null;const lt={theme:Ye,type:We};return Fe===!1||(Zo(Fe)?He=Fe({...lt,isLoading:Re}):X.isValidElement(Fe)?He=X.cloneElement(Fe,lt):Re?He=$g.spinner():(ct=>ct in $g)(We)&&(He=$g[We](lt))),He}(e),Qe=!!S||!c,at={closeToast:x,type:v,theme:nt};let Ee=null;return s===!1||(Ee=Zo(s)?s(at):X.isValidElement(s)?X.cloneElement(s,at):function(_e){let{closeToast:Ye,theme:We,ariaLabel:Re="close"}=_e;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${We}`,type:"button",onClick:Fe=>{Fe.stopPropagation(),Ye(Fe)},"aria-label":Re},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"})))}(at)),X.createElement(T,{isIn:Ge,done:Ne,position:_,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:d,"data-in":Ge,className:Se,...i,style:L,ref:r},X.createElement("div",{...Ge&&{role:pe},className:Zo(R)?R({type:v}):Ol("Toastify__toast-body",R),style:U},Ve!=null&&X.createElement("div",{className:Ol("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!qe})},Ve),X.createElement("div",null,l)),Ee,X.createElement(i2,{...J&&!Qe?{key:`pb-${J}`}:{},rtl:ce,theme:nt,delay:c,isRunning:t,isIn:Ge,closeToast:x,hide:p,type:v,style:te,className:W,controlledProgress:Qe,progress:S||0})))},Ap=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},u2=Ip(Ap("bounce",!0));Ip(Ap("slide",!0));Ip(Ap("zoom"));Ip(Ap("flip"));const c2={position:"top-right",transition:u2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function f2(e){let t={...c2,...e};const n=e.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:s,isToastActive:l,count:c}=n2(t),{className:d,style:v,rtl:p,containerId:x}=t;function T(I){const L=Ol("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":p});return Zo(d)?d({position:I,rtl:p,defaultClassName:L}):Ol(L,Uh(d))}function _(){n&&(i(!0),_n.play())}return s2(()=>{if(n){var I;const L=o.current.querySelectorAll('[data-in="true"]'),R=12,U=(I=t.position)==null?void 0:I.includes("top");let W=0,te=0;Array.from(L).reverse().forEach((J,pe)=>{const S=J;S.classList.add("Toastify__toast--stacked"),pe>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const ce=W*(r?.2:1)+(r?0:R*pe);S.style.setProperty("--y",`${U?ce:-1*ce}px`),S.style.setProperty("--g",`${R}`),S.style.setProperty("--s",""+(1-(r?te:0))),W+=S.offsetHeight,te+=.025})}},[r,c,n]),X.createElement("div",{ref:o,className:"Toastify",id:x,onMouseEnter:()=>{n&&(i(!1),_n.pause())},onMouseLeave:_},s((I,L)=>{const R=L.length?{...v}:{...v,pointerEvents:"none"};return X.createElement("div",{className:T(I),style:R,key:`container-${I}`},L.map(U=>{let{content:W,props:te}=U;return X.createElement(l2,{...te,stacked:n,collapseAll:_,isIn:l(te.toastId,te.containerId),style:te.style,key:`toast-${te.key}`},W)}))}))}function d2(){return Ue.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ue.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"}),Ue.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ue.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function h2(){return Ue.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ue.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Ue.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function p2(){return Ue.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ue.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"}),Ue.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 Jm={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},g2=({closeToast:e})=>Ue.jsx("i",{className:"material-icons",onClick:e,style:{cursor:"pointer"},children:Ue.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ue.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"})})}),Qm=(e,t)=>{_n.success(e,{icon:Ue.jsx(h2,{}),bodyStyle:{},position:"bottom-right",style:{...Jm,background:Gr.successLight,borderColor:Gr.success,color:Gr.success},...t})},Wd=(e,t)=>{_n.error(e,{icon:Ue.jsx(d2,{}),position:"bottom-right",style:{...Jm,background:Gr.dangerLight,borderColor:Gr.danger,color:Gr.danger},...t})},v2=(e,t)=>{_n.error(e,{icon:Ue.jsx(p2,{}),position:"bottom-right",style:{...Jm,background:Gr.warningLight,borderColor:Gr.warning,color:Gr.warning},...t})},m2=e=>{_n(e,{closeButton:g2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:Gr.textPrimary}})};function _T(e){let t=null;return()=>(t==null&&(t=e()),t)}function y2(e,t){return e.filter(n=>n!==t)}function b2(e,t){const n=new Set,r=o=>n.add(o);e.forEach(r),t.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class w2{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=b2(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=y2(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class x2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const DT="__NATIVE_FILE__",PT="__NATIVE_URL__",RT="__NATIVE_TEXT__",IT="__NATIVE_HTML__",tw=Object.freeze(Object.defineProperty({__proto__:null,FILE:DT,HTML:IT,TEXT:RT,URL:PT},Symbol.toStringTag,{value:"Module"}));function Vg(e,t,n){const r=t.reduce((i,o)=>i||e.getData(o),"");return r??n}const Gv={[DT]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[IT]:{exposeProperties:{html:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[PT]:{exposeProperties:{urls:(e,t)=>Vg(e,t,"").split(`
|
|
7
|
-
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[RT]:{exposeProperties:{text:(e,t)=>Vg(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function S2(e,t){const n=Gv[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new x2(n);return r.loadDataTransfer(t),r}function Hg(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Gv).filter(n=>{const r=Gv[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const T2=_T(()=>/firefox/i.test(navigator.userAgent)),AT=_T(()=>!!window.safari);class nw{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:o,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,d=s.length-1,v;for(;c<=d;){v=Math.floor(.5*(c+d));const T=n[v];if(T<t)c=v+1;else if(T>t)d=v-1;else return r[v]}l=Math.max(0,d);const p=t-n[l],x=p*p;return r[l]+i[l]*p+o[l]*x+s[l]*p*x}constructor(t,n){const{length:r}=t,i=[];for(let T=0;T<r;T++)i.push(T);i.sort((T,_)=>t[T]<t[_]?-1:1);const o=[],s=[];let l,c;for(let T=0;T<r-1;T++)l=t[T+1]-t[T],c=n[T+1]-n[T],o.push(l),s.push(c/l);const d=[s[0]];for(let T=0;T<o.length-1;T++){const _=s[T],I=s[T+1];if(_*I<=0)d.push(0);else{l=o[T];const L=o[T+1],R=l+L;d.push(3*R/((R+L)/_+(R+l)/I))}}d.push(s[s.length-1]);const v=[],p=[];let x;for(let T=0;T<d.length-1;T++){x=s[T];const _=d[T],I=1/o[T],L=_+d[T+1]-x-x;v.push((x-_-L)*I),p.push(L*I*I)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=p}}const C2=1;function MT(e){const t=e.nodeType===C2?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function yh(e){return{x:e.clientX,y:e.clientY}}function E2(e){var t;return e.nodeName==="IMG"&&(T2()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function k2(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return AT()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function O2(e,t,n,r,i){const o=E2(t),l=MT(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:d,offsetHeight:v}=e,{anchorX:p,anchorY:x}=r,{dragPreviewWidth:T,dragPreviewHeight:_}=k2(o,t,d,v),I=()=>{let pe=new nw([0,.5,1],[c.y,c.y/v*_,c.y+_-v]).interpolate(x);return AT()&&o&&(pe+=(window.devicePixelRatio-1)*_),pe},L=()=>new nw([0,.5,1],[c.x,c.x/d*T,c.x+T-d]).interpolate(p),{offsetX:R,offsetY:U}=i,W=R===0||R,te=U===0||U;return{x:W?R:L(),y:te?U:I()}}let _2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function D2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){D2(e,i,n[i])})}return e}class P2{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),o=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),o=s=>this.handleDrop(s,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return rw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return rw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(tw).some(n=>tw[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=S2(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&MT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const s=yh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Hg(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const v=this.monitor.getSourceId(),p=this.sourceNodes.get(v),x=this.sourcePreviewNodes.get(v)||p;if(x){const{anchorX:T,anchorY:_,offsetX:I,offsetY:L}=this.getCurrentSourcePreviewNodeOptions(),W=O2(p,x,s,{anchorX:T,anchorY:_},{offsetX:I,offsetY:L});l.setDragImage(x,W.x,W.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:d}=this.getCurrentSourcePreviewNodeOptions();d?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=Hg(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:yh(i)}),o.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=yh(i),this.scheduleHover(o),(o||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Hg(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:yh(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 _2(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new w2(this.isNodeInDocument)}}let bh;function R2(){return bh||(bh=new Image,bh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),bh}const I2=function(t,n,r){return new P2(t,n,r)};var Pc=[],A2=function(){return Pc.some(function(e){return e.activeTargets.length>0})},M2=function(){return Pc.some(function(e){return e.skippedTargets.length>0})},iw="ResizeObserver loop completed with undelivered notifications.",L2=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:iw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=iw),window.dispatchEvent(e)},Pd;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pd||(Pd={}));var Rc=function(e){return Object.freeze(e)},F2=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Rc(this)}return e}(),LT=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Rc(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,o=t.right,s=t.bottom,l=t.left,c=t.width,d=t.height;return{x:n,y:r,top:i,right:o,bottom:s,left:l,width:c,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ey=function(e){return e instanceof SVGElement&&"getBBox"in e},FT=function(e){if(ey(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},ow=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},N2=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},dd=typeof window<"u"?window:{},wh=new WeakMap,aw=/auto|scroll/,j2=/^tb|vertical/,B2=/msie|trident/i.test(dd.navigator&&dd.navigator.userAgent),Fs=function(e){return parseFloat(e||"0")},Of=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new F2((n?t:e)||0,(n?e:t)||0)},sw=Rc({devicePixelContentBoxSize:Of(),borderBoxSize:Of(),contentBoxSize:Of(),contentRect:new LT(0,0,0,0)}),NT=function(e,t){if(t===void 0&&(t=!1),wh.has(e)&&!t)return wh.get(e);if(FT(e))return wh.set(e,sw),sw;var n=getComputedStyle(e),r=ey(e)&&e.ownerSVGElement&&e.getBBox(),i=!B2&&n.boxSizing==="border-box",o=j2.test(n.writingMode||""),s=!r&&aw.test(n.overflowY||""),l=!r&&aw.test(n.overflowX||""),c=r?0:Fs(n.paddingTop),d=r?0:Fs(n.paddingRight),v=r?0:Fs(n.paddingBottom),p=r?0:Fs(n.paddingLeft),x=r?0:Fs(n.borderTopWidth),T=r?0:Fs(n.borderRightWidth),_=r?0:Fs(n.borderBottomWidth),I=r?0:Fs(n.borderLeftWidth),L=p+d,R=c+v,U=I+T,W=x+_,te=l?e.offsetHeight-W-e.clientHeight:0,J=s?e.offsetWidth-U-e.clientWidth:0,pe=i?L+U:0,S=i?R+W:0,ce=r?r.width:Fs(n.width)-pe-J,ae=r?r.height:Fs(n.height)-S-te,Ne=ce+L+J+U,Ge=ae+R+te+W,qe=Rc({devicePixelContentBoxSize:Of(Math.round(ce*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Of(Ne,Ge,o),contentBoxSize:Of(ce,ae,o),contentRect:new LT(p,c,ce,ae)});return wh.set(e,qe),qe},jT=function(e,t,n){var r=NT(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Pd.DEVICE_PIXEL_CONTENT_BOX:return s;case Pd.BORDER_BOX:return i;default:return o}},$2=function(){function e(t){var n=NT(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Rc([n.borderBoxSize]),this.contentBoxSize=Rc([n.contentBoxSize]),this.devicePixelContentBoxSize=Rc([n.devicePixelContentBoxSize])}return e}(),BT=function(e){if(FT(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},V2=function(){var e=1/0,t=[];Pc.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(d){var v=new $2(d.target),p=BT(d.target);l.push(v),d.lastReportedSize=jT(d.target,d.observedBox),p<e&&(e=p)}),t.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},lw=function(e){Pc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(BT(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},H2=function(){var e=0;for(lw(e);A2();)e=V2(),lw(e);return M2()&&L2(),e>0},Ug,$T=[],U2=function(){return $T.splice(0).forEach(function(e){return e()})},W2=function(e){if(!Ug){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return U2()}).observe(n,r),Ug=function(){n.textContent="".concat(t?t--:t++)}}$T.push(e),Ug()},z2=function(e){W2(function(){requestAnimationFrame(e)})},Wh=0,Y2=function(){return!!Wh},G2=250,q2={attributes:!0,characterData:!0,childList:!0,subtree:!0},uw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],cw=function(e){return e===void 0&&(e=0),Date.now()+e},Wg=!1,X2=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=G2),!Wg){Wg=!0;var r=cw(t);z2(function(){var i=!1;try{i=H2()}finally{if(Wg=!1,t=r-cw(),!Y2())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,q2)};document.body?n():dd.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),uw.forEach(function(n){return dd.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),uw.forEach(function(n){return dd.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),qv=new X2,fw=function(e){!Wh&&e>0&&qv.start(),Wh+=e,!Wh&&qv.stop()},K2=function(e){return!ey(e)&&!N2(e)&&getComputedStyle(e).display==="inline"},Z2=function(){function e(t,n){this.target=t,this.observedBox=n||Pd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=jT(this.target,this.observedBox,!0);return K2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),J2=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),xh=new WeakMap,dw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Sh=function(){function e(){}return e.connect=function(t,n){var r=new J2(t,n);xh.set(t,r)},e.observe=function(t,n,r){var i=xh.get(t),o=i.observationTargets.length===0;dw(i.observationTargets,n)<0&&(o&&Pc.push(i),i.observationTargets.push(new Z2(n,r&&r.box)),fw(1),qv.schedule())},e.unobserve=function(t,n){var r=xh.get(t),i=dw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Pc.splice(Pc.indexOf(r),1),r.observationTargets.splice(i,1),fw(-1))},e.disconnect=function(t){var n=this,r=xh.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Q2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Sh.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ow(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Sh.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ow(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Sh.unobserve(this,t)},e.prototype.disconnect=function(){Sh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Xv=function(e,t){return Xv=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])},Xv(e,t)};function VT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Xv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var st=function(){return st=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},st.apply(this,arguments)};function Pa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Qo(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var hw="production",HT=typeof process>"u"||process.env===void 0?hw:process.env.NODE_ENV||hw,El=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Rd={measureLayout:El(["layout","layoutId","drag"]),animation:El(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:El(["exit"]),drag:El(["drag","dragControls"]),focus:El(["whileFocus"]),hover:El(["whileHover","onHoverStart","onHoverEnd"]),tap:El(["whileTap","onTap","onTapStart","onTapCancel"]),pan:El(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:El(["whileInView","onViewportEnter","onViewportLeave"])};function eF(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Rd.projectionNodeConstructor=e[t]:Rd[t].Component=e[t])}var zd=function(){},_a=function(){};process.env.NODE_ENV!=="production"&&(zd=function(e,t){!e&&typeof console<"u"&&console.warn(t)},_a=function(e,t){if(!e)throw new Error(t)});var UT=X.createContext({strict:!1}),WT=Object.keys(Rd),tF=WT.length;function nF(e,t,n){var r=[],i=X.useContext(UT);if(!t)return null;HT!=="production"&&n&&i.strict&&_a(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<tF;o++){var s=WT[o],l=Rd[s],c=l.isEnabled,d=l.Component;c(e)&&d&&r.push(Tn.createElement(d,st({key:s},e,{visualElement:t})))}return r}var ty=X.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Mp=X.createContext({});function rF(){return X.useContext(Mp).visualElement}var Lp=X.createContext(null),Bf=typeof document<"u",pw=Bf?X.useLayoutEffect:X.useEffect,Kv={current:null},zT=!1;function iF(){if(zT=!0,!!Bf)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Kv.current=e.matches};e.addListener(t),t()}else Kv.current=!1}function oF(){!zT&&iF();var e=qr(X.useState(Kv.current),1),t=e[0];return t}function aF(){var e=oF(),t=X.useContext(ty).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function sF(e,t,n,r){var i=X.useContext(UT),o=rF(),s=X.useContext(Lp),l=aF(),c=X.useRef(void 0);r||(r=i.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:l}));var d=c.current;return pw(function(){d==null||d.syncRender()}),X.useEffect(function(){var v;(v=d==null?void 0:d.animationState)===null||v===void 0||v.animateChanges()}),pw(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function xf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lF(e,t,n){return X.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xf(n)&&(n.current=r))},[t])}function YT(e){return Array.isArray(e)}function os(e){return typeof e=="string"||YT(e)}function uF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function cF(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function GT(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function Fp(e,t,n){var r=e.getProps();return GT(r,t,n??r.custom,uF(e),cF(e))}function Np(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||os(e.initial)||os(e.animate)||os(e.whileHover)||os(e.whileDrag)||os(e.whileTap)||os(e.whileFocus)||os(e.exit)}function qT(e){return!!(Np(e)||e.variants)}function fF(e,t){if(Np(e)){var n=e.initial,r=e.animate;return{initial:n===!1||os(n)?n:void 0,animate:os(r)?r:void 0}}return e.inherit!==!1?t:{}}function dF(e){var t=fF(e,X.useContext(Mp)),n=t.initial,r=t.animate;return X.useMemo(function(){return{initial:n,animate:r}},[gw(n),gw(r)])}function gw(e){return Array.isArray(e)?e.join(" "):e}function jp(e){var t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}var hd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},hF=1;function pF(){return jp(function(){if(hd.hasEverUpdated)return hF++})}var XT=X.createContext({}),KT=X.createContext({});function gF(e,t,n,r){var i,o=t.layoutId,s=t.layout,l=t.drag,c=t.dragConstraints,d=t.layoutScroll,v=X.useContext(KT);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!l||c&&xf(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:v,layoutScroll:d}))}var vF=function(e){VT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(X.Component);function mF(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&eF(t);function l(c,d){var v=yF(c);c=st(st({},c),{layoutId:v});var p=X.useContext(ty),x=null,T=dF(c),_=p.isStatic?void 0:pF(),I=o(c,p.isStatic);return!p.isStatic&&Bf&&(T.visualElement=sF(s,I,st(st({},p),c),n),gF(_,c,T.visualElement,r||Rd.projectionNodeConstructor),x=nF(c,T.visualElement,t)),Tn.createElement(vF,{visualElement:T.visualElement,props:st(st({},p),c)},x,Tn.createElement(Mp.Provider,{value:T},i(s,c,_,lF(I,T.visualElement,d),I,p.isStatic,T.visualElement)))}return X.forwardRef(l)}function yF(e){var t,n=e.layoutId,r=(t=X.useContext(XT))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function bF(e){function t(r,i){return i===void 0&&(i={}),mF(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var wF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function ny(e){return typeof e!="string"||e.includes("-")?!1:!!(wF.indexOf(e)>-1||/[A-Z]/.test(e))}var sp={};function xF(e){Object.assign(sp,e)}var Zv=["","X","Y","Z"],SF=["translate","scale","rotate","skew"],Id=["transformPerspective","x","y","z"];SF.forEach(function(e){return Zv.forEach(function(t){return Id.push(e+t)})});function TF(e,t){return Id.indexOf(e)-Id.indexOf(t)}var CF=new Set(Id);function Yd(e){return CF.has(e)}var EF=new Set(["originX","originY","originZ"]);function ZT(e){return EF.has(e)}function JT(e,t){var n=t.layout,r=t.layoutId;return Yd(e)||ZT(e)||(n||r!==void 0)&&(!!sp[e]||e==="opacity")}var Ml=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},kF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function OF(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,l=s===void 0?!0:s,c=t.allowTransformNone,d=c===void 0?!0:c,v="";o.sort(TF);for(var p=!1,x=o.length,T=0;T<x;T++){var _=o[T];v+="".concat(kF[_]||_,"(").concat(i[_],") "),_==="z"&&(p=!0)}return!p&&l?v+="translateZ(0)":v=v.trim(),r?v=r(i,n?"":v):d&&n&&(v="none"),v}function _F(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function QT(e){return e.startsWith("--")}var DF=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const eC=(e,t)=>n=>Math.max(Math.min(n,t),e),pd=e=>e%1?Number(e.toFixed(5)):e,Ad=/(-)?([\d]*\.?[\d])+/g,Jv=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,PF=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Gd(e){return typeof e=="string"}const jc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gd=Object.assign(Object.assign({},jc),{transform:eC(0,1)}),Th=Object.assign(Object.assign({},jc),{default:1}),qd=e=>({test:t=>Gd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vu=qd("deg"),Vs=qd("%"),jt=qd("px"),RF=qd("vh"),IF=qd("vw"),vw=Object.assign(Object.assign({},Vs),{parse:e=>Vs.parse(e)/100,transform:e=>Vs.transform(e*100)}),ry=(e,t)=>n=>!!(Gd(n)&&PF.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tC=(e,t,n)=>r=>{if(!Gd(r))return r;const[i,o,s,l]=r.match(Ad);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},kc={test:ry("hsl","hue"),parse:tC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vs.transform(pd(t))+", "+Vs.transform(pd(n))+", "+pd(gd.transform(r))+")"},AF=eC(0,255),zg=Object.assign(Object.assign({},jc),{transform:e=>Math.round(AF(e))}),Su={test:ry("rgb","red"),parse:tC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zg.transform(e)+", "+zg.transform(t)+", "+zg.transform(n)+", "+pd(gd.transform(r))+")"};function MF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qv={test:ry("#"),parse:MF,transform:Su.transform},oo={test:e=>Su.test(e)||Qv.test(e)||kc.test(e),parse:e=>Su.test(e)?Su.parse(e):kc.test(e)?kc.parse(e):Qv.parse(e),transform:e=>Gd(e)?e:e.hasOwnProperty("red")?Su.transform(e):kc.transform(e)},nC="${c}",rC="${n}";function LF(e){var t,n,r,i;return isNaN(e)&&Gd(e)&&((n=(t=e.match(Ad))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Jv))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function iC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Jv);r&&(n=r.length,e=e.replace(Jv,nC),t.push(...r.map(oo.parse)));const i=e.match(Ad);return i&&(e=e.replace(Ad,rC),t.push(...i.map(jc.parse))),{values:t,numColors:n,tokenised:e}}function oC(e){return iC(e).values}function aC(e){const{values:t,numColors:n,tokenised:r}=iC(e),i=t.length;return o=>{let s=r;for(let l=0;l<i;l++)s=s.replace(l<n?nC:rC,l<n?oo.transform(o[l]):pd(o[l]));return s}}const FF=e=>typeof e=="number"?0:e;function NF(e){const t=oC(e);return aC(e)(t.map(FF))}const Ll={test:LF,parse:oC,createTransformer:aC,getAnimatableNone:NF},jF=new Set(["brightness","contrast","saturate","opacity"]);function BF(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ad)||[];if(!r)return e;const i=n.replace(r,"");let o=jF.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $F=/([a-z-]*)\(.*?\)/g,em=Object.assign(Object.assign({},Ll),{getAnimatableNone:e=>{const t=e.match($F);return t?t.map(BF).join(" "):e}});var mw=st(st({},jc),{transform:Math.round}),sC={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:vu,rotateX:vu,rotateY:vu,rotateZ:vu,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:vu,skewX:vu,skewY:vu,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:gd,originX:vw,originY:vw,originZ:jt,zIndex:mw,fillOpacity:gd,strokeOpacity:gd,numOctaves:mw};function iy(e,t,n,r){var i,o=e.style,s=e.vars,l=e.transform,c=e.transformKeys,d=e.transformOrigin;c.length=0;var v=!1,p=!1,x=!0;for(var T in t){var _=t[T];if(QT(T)){s[T]=_;continue}var I=sC[T],L=DF(_,I);if(Yd(T)){if(v=!0,l[T]=L,c.push(T),!x)continue;_!==((i=I.default)!==null&&i!==void 0?i:0)&&(x=!1)}else ZT(T)?(d[T]=L,p=!0):o[T]=L}v?o.transform=OF(e,n,x,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=_F(d))}var oy=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function lC(e,t,n){for(var r in t)!Ml(t[r])&&!JT(r,n)&&(e[r]=t[r])}function VF(e,t,n){var r=e.transformTemplate;return X.useMemo(function(){var i=oy();iy(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return st(st({},o),s)},[t])}function HF(e,t,n){var r=e.style||{},i={};return lC(i,r,e),Object.assign(i,VF(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function UF(e,t,n){var r={},i=HF(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var WF=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function lp(e){return WF.has(e)}var uC=function(e){return!lp(e)};function zF(e){e&&(uC=function(t){return t.startsWith("on")?!lp(t):e(t)})}try{zF(require("@emotion/is-prop-valid").default)}catch{}function YF(e,t,n){var r={};for(var i in e)(uC(i)||n===!0&&lp(i)||!t&&!lp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yw(e,t,n){return typeof e=="string"?e:jt.transform(t+n*e)}function GF(e,t,n){var r=yw(t,e.x,e.width),i=yw(n,e.y,e.height);return"".concat(r," ").concat(i)}var qF={offset:"stroke-dashoffset",array:"stroke-dasharray"},XF={offset:"strokeDashoffset",array:"strokeDasharray"};function KF(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?qF:XF;e[o.offset]=jt.transform(-r);var s=jt.transform(t),l=jt.transform(n);e[o.array]="".concat(s," ").concat(l)}function ay(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,v=d===void 0?1:d,p=t.pathOffset,x=p===void 0?0:p,T=Pa(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);iy(e,T,n,r),e.attrs=e.style,e.style={};var _=e.attrs,I=e.style,L=e.dimensions;_.transform&&(L&&(I.transform=_.transform),delete _.transform),L&&(s!==void 0||l!==void 0||I.transform)&&(I.transformOrigin=GF(L,s!==void 0?s:.5,l!==void 0?l:.5)),i!==void 0&&(_.x=i),o!==void 0&&(_.y=o),c!==void 0&&KF(_,c,v,x,!1)}var cC=function(){return st(st({},oy()),{attrs:{}})};function ZF(e,t){var n=X.useMemo(function(){var i=cC();return ay(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),st(st({},i.attrs),{style:st({},i.style)})},[t]);if(e.style){var r={};lC(r,e.style,e),n.style=st(st({},r),n.style)}return n}function JF(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,l){var c=s.latestValues,d=ny(n)?ZF:UF,v=d(r,c,l),p=YF(r,typeof n=="string",e),x=st(st(st({},p),v),{ref:o});return i&&(x["data-projection-id"]=i),X.createElement(n,x)};return t}var QF=/([a-z])([A-Z])/g,eN="$1-$2",fC=function(e){return e.replace(QF,eN).toLowerCase()};function dC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var hC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pC(e,t,n,r){dC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(hC.has(i)?i:fC(i),t.attrs[i])}function sy(e){var t=e.style,n={};for(var r in t)(Ml(t[r])||JT(r,e))&&(n[r]=t[r]);return n}function gC(e){var t=sy(e);for(var n in e)if(Ml(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function ly(e){return typeof e=="object"&&typeof e.start=="function"}var Md=function(e){return Array.isArray(e)},tN=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},vC=function(e){return Md(e)?e[e.length-1]||0:e};function zh(e){var t=Ml(e)?e.get():e;return tN(t)?t.toValue():t}function bw(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,l={latestValues:nN(t,n,r,i),renderState:o()};return s&&(l.mount=function(c){return s(t,c,l)}),l}var mC=function(e){return function(t,n){var r=X.useContext(Mp),i=X.useContext(Lp);return n?bw(e,t,r,i):jp(function(){return bw(e,t,r,i)})}};function nN(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var l in s)i[l]=zh(s[l]);var c=e.initial,d=e.animate,v=Np(e),p=qT(e);t&&p&&!v&&e.inherit!==!1&&(c??(c=t.initial),d??(d=t.animate));var x=o||c===!1,T=x?d:c;if(T&&typeof T!="boolean"&&!ly(T)){var _=Array.isArray(T)?T:[T];_.forEach(function(I){var L=GT(e,I);if(L){var R=L.transitionEnd;L.transition;var U=Pa(L,["transitionEnd","transition"]);for(var W in U){var te=U[W];if(Array.isArray(te)){var J=x?te.length-1:0;te=te[J]}te!==null&&(i[W]=te)}for(var W in R)i[W]=R[W]}})}return i}var rN={useVisualState:mC({scrapeMotionValuesFromProps:gC,createRenderState:cC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}ay(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),pC(t,r)}})},iN={useVisualState:mC({scrapeMotionValuesFromProps:sy,createRenderState:oy})};function oN(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,l=ny(e)?rN:iN;return st(st({},l),{preloadedFeatures:n,useRender:JF(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var Bn;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Bn||(Bn={}));function Bp(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function tm(e,t,n,r){X.useEffect(function(){var i=e.current;if(n&&i)return Bp(i,t,n,r)},[e,t,n,r])}function aN(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Bn.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Bn.Focus,!1)};tm(n,"focus",t?r:void 0),tm(n,"blur",t?i:void 0)}function yC(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function bC(e){var t=!!e.touches;return t}function sN(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var lN={pageX:0,pageY:0};function uN(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||lN;return{x:r[t+"X"],y:r[t+"Y"]}}function cN(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function uy(e,t){return t===void 0&&(t="page"),{point:bC(e)?uN(e,t):cN(e,t)}}var wC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,uy(r))};return t?sN(n):n},fN=function(){return Bf&&window.onpointerdown===null},dN=function(){return Bf&&window.ontouchstart===null},hN=function(){return Bf&&window.onmousedown===null},pN={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},gN={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function xC(e){return fN()?e:dN()?gN[e]:hN()?pN[e]:e}function _f(e,t,n,r){return Bp(e,xC(t),wC(n,t==="pointerdown"),r)}function up(e,t,n,r){return tm(e,xC(t),n&&wC(n,t==="pointerdown"),r)}function SC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var ww=SC("dragHorizontal"),xw=SC("dragVertical");function TC(e){var t=!1;if(e==="y")t=xw();else if(e==="x")t=ww();else{var n=ww(),r=xw();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function CC(){var e=TC(!0);return e?(e(),!1):!0}function Sw(e,t,n){return function(r,i){var o;!yC(r)||CC()||((o=e.animationState)===null||o===void 0||o.setActive(Bn.Hover,t),n==null||n(r,i))}}function vN(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;up(i,"pointerenter",t||r?Sw(i,!0,t):void 0,{passive:!t}),up(i,"pointerleave",n||r?Sw(i,!1,n):void 0,{passive:!n})}var EC=function(e,t){return t?e===t?!0:EC(e,t.parentElement):!1};function kC(e){return X.useEffect(function(){return function(){return e()}},[])}const cp=(e,t,n)=>Math.min(Math.max(n,e),t),Yg=.001,mN=.01,Tw=10,yN=.05,bN=1;function wN({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;zd(e<=Tw*1e3,"Spring duration must be 10 seconds or less");let s=1-t;s=cp(yN,bN,s),e=cp(mN,Tw,e/1e3),s<1?(i=d=>{const v=d*s,p=v*e,x=v-n,T=nm(d,s),_=Math.exp(-p);return Yg-x/T*_},o=d=>{const p=d*s*e,x=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),I=nm(Math.pow(d,2),s);return(-i(d)+Yg>0?-1:1)*((x-T)*_)/I}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-Yg+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=SN(i,o,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const xN=12;function SN(e,t,n){let r=n;for(let i=1;i<xN;i++)r=r-e(r)/t(r);return r}function nm(e,t){return e*Math.sqrt(1-t*t)}const TN=["duration","bounce"],CN=["stiffness","damping","mass"];function Cw(e,t){return t.some(n=>e[n]!==void 0)}function EN(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Cw(e,CN)&&Cw(e,TN)){const n=wN(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function cy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Pa(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:l,damping:c,mass:d,velocity:v,duration:p,isResolvedFromDuration:x}=EN(o),T=Ew,_=Ew;function I(){const L=v?-(v/1e3):0,R=n-t,U=c/(2*Math.sqrt(l*d)),W=Math.sqrt(l/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),U<1){const te=nm(W,U);T=J=>{const pe=Math.exp(-U*W*J);return n-pe*((L+U*W*R)/te*Math.sin(te*J)+R*Math.cos(te*J))},_=J=>{const pe=Math.exp(-U*W*J);return U*W*pe*(Math.sin(te*J)*(L+U*W*R)/te+R*Math.cos(te*J))-pe*(Math.cos(te*J)*(L+U*W*R)-te*R*Math.sin(te*J))}}else if(U===1)T=te=>n-Math.exp(-W*te)*(R+(L+W*R)*te);else{const te=W*Math.sqrt(U*U-1);T=J=>{const pe=Math.exp(-U*W*J),S=Math.min(te*J,300);return n-pe*((L+U*W*R)*Math.sinh(S)+te*R*Math.cosh(S))/te}}}return I(),{next:L=>{const R=T(L);if(x)s.done=L>=p;else{const U=_(L)*1e3,W=Math.abs(U)<=r,te=Math.abs(n-R)<=i;s.done=W&&te}return s.value=s.done?n:R,s},flipTarget:()=>{v=-v,[t,n]=[n,t],I()}}}cy.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Ew=e=>0,Ld=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lr=(e,t,n)=>-n*e+n*t+e;function Gg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Gg(c,l,e+1/3),o=Gg(c,l,e),s=Gg(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const kN=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},ON=[Qv,Su,kc],Ow=e=>ON.find(t=>t.test(e)),_w=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,OC=(e,t)=>{let n=Ow(e),r=Ow(t);_a(!!n,_w(e)),_a(!!r,_w(t));let i=n.parse(e),o=r.parse(t);n===kc&&(i=kw(i),n=Su),r===kc&&(o=kw(o),r=Su);const s=Object.assign({},i);return l=>{for(const c in s)c!=="alpha"&&(s[c]=kN(i[c],o[c],l));return s.alpha=lr(i.alpha,o.alpha,l),n.transform(s)}},rm=e=>typeof e=="number",_N=(e,t)=>n=>t(e(n)),$p=(...e)=>e.reduce(_N);function _C(e,t){return rm(e)?n=>lr(e,t,n):oo.test(e)?OC(e,t):PC(e,t)}const DC=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>_C(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},DN=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=_C(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function Dw(e){const t=Ll.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const PC=(e,t)=>{const n=Ll.createTransformer(t),r=Dw(e),i=Dw(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?$p(DC(r.parsed,i.parsed),n):(zd(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),s=>`${s>0?t:e}`)},PN=(e,t)=>n=>lr(e,t,n);function RN(e){if(typeof e=="number")return PN;if(typeof e=="string")return oo.test(e)?OC:PC;if(Array.isArray(e))return DC;if(typeof e=="object")return DN}function IN(e,t,n){const r=[],i=n||RN(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]:t;l=$p(c,l)}r.push(l)}return r}function AN([e,t],[n]){return r=>n(Ld(e,t,r))}function MN(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let c=1;for(;c<n&&!(e[c]>i||c===r);c++);o=c-1}const l=Ld(e[o],e[o+1],i);return t[o](l)}}function RC(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;_a(o===t.length,"Both input and output ranges must be the same length"),_a(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=IN(t,r,i),l=o===2?AN(e,s):MN(e,s);return n?c=>l(cp(e[0],e[o-1],c)):l}const Vp=e=>t=>1-e(1-t),fy=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LN=e=>t=>Math.pow(t,e),IC=e=>t=>t*t*((e+1)*t-e),FN=e=>{const t=IC(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},AC=1.525,NN=4/11,jN=8/11,BN=9/10,dy=e=>e,hy=LN(2),$N=Vp(hy),MC=fy(hy),LC=e=>1-Math.sin(Math.acos(e)),py=Vp(LC),VN=fy(py),gy=IC(AC),HN=Vp(gy),UN=fy(gy),WN=FN(AC),zN=4356/361,YN=35442/1805,GN=16061/1805,fp=e=>{if(e===1||e===0)return e;const t=e*e;return e<NN?7.5625*t:e<jN?9.075*t-9.9*e+3.4:e<BN?zN*t-YN*e+GN:10.8*e*e-20.52*e+10.72},qN=Vp(fp),XN=e=>e<.5?.5*(1-fp(1-e*2)):.5*fp(e*2-1)+.5;function KN(e,t){return e.map(()=>t||MC).splice(0,e.length-1)}function ZN(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function JN(e,t){return e.map(n=>n*t)}function Yh({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],l=JN(r&&r.length===s.length?r:ZN(s),i);function c(){return RC(l,s,{ease:Array.isArray(n)?n:KN(s,n)})}let d=c();return{next:v=>(o.value=d(v),o.done=v>=i,o),flipTarget:()=>{s.reverse(),d=c()}}}function QN({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let l=n*e;const c=t+l,d=o===void 0?c:o(c);return d!==c&&(l=d-t),{next:v=>{const p=-l*Math.exp(-v/r);return s.done=!(p>i||p<-i),s.value=s.done?d:d+p,s},flipTarget:()=>{}}}const Pw={keyframes:Yh,spring:cy,decay:QN};function ej(e){if(Array.isArray(e.to))return Yh;if(Pw[e.type])return Pw[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Yh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?cy:Yh}const FC=1/60*1e3,tj=typeof performance<"u"?()=>performance.now():()=>Date.now(),NC=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tj()),FC);function nj(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,v=!1)=>{const p=v&&i,x=p?t:n;return d&&s.add(c),x.indexOf(c)===-1&&(x.push(c),p&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const v=t[d];v(c),s.has(v)&&(l.schedule(v),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const rj=40;let im=!0,Fd=!1,om=!1;const Df={delta:0,timestamp:0},Xd=["read","update","preRender","render","postRender"],Hp=Xd.reduce((e,t)=>(e[t]=nj(()=>Fd=!0),e),{}),Hs=Xd.reduce((e,t)=>{const n=Hp[t];return e[t]=(r,i=!1,o=!1)=>(Fd||oj(),n.schedule(r,i,o)),e},{}),If=Xd.reduce((e,t)=>(e[t]=Hp[t].cancel,e),{}),qg=Xd.reduce((e,t)=>(e[t]=()=>Hp[t].process(Df),e),{}),ij=e=>Hp[e].process(Df),jC=e=>{Fd=!1,Df.delta=im?FC:Math.max(Math.min(e-Df.timestamp,rj),1),Df.timestamp=e,om=!0,Xd.forEach(ij),om=!1,Fd&&(im=!1,NC(jC))},oj=()=>{Fd=!0,im=!0,om||NC(jC)},dp=()=>Df;function BC(e,t,n=0){return e-t-n}function aj(e,t,n=0,r=!0){return r?BC(t+-e,t,n):t-(e-t)+n}function sj(e,t,n,r){return r?e>=t+n:e<=-n}const lj=e=>{const t=({delta:n})=>e(n);return{start:()=>Hs.update(t,!0),stop:()=>If.update(t)}};function $C(e){var t,n,{from:r,autoplay:i=!0,driver:o=lj,elapsed:s=0,repeat:l=0,repeatType:c="loop",repeatDelay:d=0,onPlay:v,onStop:p,onComplete:x,onRepeat:T,onUpdate:_}=e,I=Pa(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:L}=I,R,U=0,W=I.duration,te,J=!1,pe=!0,S;const ce=ej(I);!((n=(t=ce).needsInterpolation)===null||n===void 0)&&n.call(t,r,L)&&(S=RC([0,100],[r,L],{clamp:!1}),r=0,L=100);const ae=ce(Object.assign(Object.assign({},I),{from:r,to:L}));function Ne(){U++,c==="reverse"?(pe=U%2===0,s=aj(s,W,d,pe)):(s=BC(s,W,d),c==="mirror"&&ae.flipTarget()),J=!1,T&&T()}function Ge(){R.stop(),x&&x()}function qe(nt){if(pe||(nt=-nt),s+=nt,!J){const me=ae.next(Math.max(0,s));te=me.value,S&&(te=S(te)),J=pe?me.done:s<=0}_==null||_(te),J&&(U===0&&(W??(W=s)),U<l?sj(s,W,d,pe)&&Ne():Ge())}function it(){v==null||v(),R=o(qe),R.start()}return i&&it(),{stop:()=>{p==null||p(),R.stop()}}}function VC(e,t){return t?e*(1e3/t):0}function uj({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:v,onUpdate:p,onComplete:x,onStop:T}){let _;function I(W){return n!==void 0&&W<n||r!==void 0&&W>r}function L(W){return n===void 0?r:r===void 0||Math.abs(n-W)<Math.abs(r-W)?n:r}function R(W){_==null||_.stop(),_=$C(Object.assign(Object.assign({},W),{driver:v,onUpdate:te=>{var J;p==null||p(te),(J=W.onUpdate)===null||J===void 0||J.call(W,te)},onComplete:x,onStop:T}))}function U(W){R(Object.assign({type:"spring",stiffness:s,damping:l,restDelta:c},W))}if(I(e))U({from:e,velocity:t,to:L(e)});else{let W=i*t+e;typeof d<"u"&&(W=d(W));const te=L(W),J=te===n?-1:1;let pe,S;const ce=ae=>{pe=S,S=ae,t=VC(ae-pe,dp().delta),(J===1&&ae>te||J===-1&&ae<te)&&U({from:ae,to:te,velocity:t})};R({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:c,modifyTarget:d,onUpdate:I(W)?ce:void 0})}return{stop:()=>_==null?void 0:_.stop()}}const am=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Rw=e=>am(e)&&e.hasOwnProperty("z"),Ch=(e,t)=>Math.abs(e-t);function HC(e,t){if(rm(e)&&rm(t))return Ch(e,t);if(am(e)&&am(t)){const n=Ch(e.x,t.x),r=Ch(e.y,t.y),i=Rw(e)&&Rw(t)?Ch(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const UC=(e,t)=>1-3*t+3*e,WC=(e,t)=>3*t-6*e,zC=e=>3*e,hp=(e,t,n)=>((UC(t,n)*e+WC(t,n))*e+zC(t))*e,YC=(e,t,n)=>3*UC(t,n)*e*e+2*WC(t,n)*e+zC(t),cj=1e-7,fj=10;function dj(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=hp(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>cj&&++l<fj);return s}const hj=8,pj=.001;function gj(e,t,n,r){for(let i=0;i<hj;++i){const o=YC(t,n,r);if(o===0)return t;const s=hp(t,n,r)-e;t-=s/o}return t}const Gh=11,Eh=1/(Gh-1);function vj(e,t,n,r){if(e===t&&n===r)return dy;const i=new Float32Array(Gh);for(let s=0;s<Gh;++s)i[s]=hp(s*Eh,e,n);function o(s){let l=0,c=1;const d=Gh-1;for(;c!==d&&i[c]<=s;++c)l+=Eh;--c;const v=(s-i[c])/(i[c+1]-i[c]),p=l+v*Eh,x=YC(p,e,n);return x>=pj?gj(s,p,e,n):x===0?p:dj(s,l,l+Eh,e,n)}return s=>s===0||s===1?s:hp(o(s),t,r)}function mj(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,l=X.useRef(!1),c=X.useRef(null),d={passive:!(n||t||r||_)};function v(){var I;(I=c.current)===null||I===void 0||I.call(c),c.current=null}function p(){var I;return v(),l.current=!1,(I=o.animationState)===null||I===void 0||I.setActive(Bn.Tap,!1),!CC()}function x(I,L){p()&&(EC(o.getInstance(),I.target)?t==null||t(I,L):r==null||r(I,L))}function T(I,L){p()&&(r==null||r(I,L))}function _(I,L){var R;v(),!l.current&&(l.current=!0,c.current=$p(_f(window,"pointerup",x,d),_f(window,"pointercancel",T,d)),(R=o.animationState)===null||R===void 0||R.setActive(Bn.Tap,!0),n==null||n(I,L))}up(o,"pointerdown",s?_:void 0,d),kC(v)}var Iw=new Set;function GC(e,t,n){e||Iw.has(t)||(console.warn(t),n&&console.warn(n),Iw.add(t))}var sm=new WeakMap,Xg=new WeakMap,yj=function(e){var t;(t=sm.get(e.target))===null||t===void 0||t(e)},bj=function(e){e.forEach(yj)};function wj(e){var t=e.root,n=Pa(e,["root"]),r=t||document;Xg.has(r)||Xg.set(r,{});var i=Xg.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(bj,st({root:t},n))),i[o]}function xj(e,t,n){var r=wj(t);return sm.set(e,n),r.observe(e),function(){sm.delete(e),r.unobserve(e)}}function Sj(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,l=X.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||i);s.once&&l.current.hasEnteredView&&(c=!1);var d=typeof IntersectionObserver>"u"?Ej:Cj;d(c,l.current,t,s)}var Tj={some:0,all:1};function Cj(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,l=s===void 0?"some":s,c=r.once;X.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof l=="number"?l:Tj[l]},v=function(p){var x,T=p.isIntersecting;if(t.isInView!==T&&(t.isInView=T,!(c&&!T&&t.hasEnteredView))){T&&(t.hasEnteredView=!0),(x=n.animationState)===null||x===void 0||x.setActive(Bn.InView,T);var _=n.getProps(),I=T?_.onViewportEnter:_.onViewportLeave;I==null||I(p)}};return xj(n.getInstance(),d,v)}},[e,i,o,l])}function Ej(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;X.useEffect(function(){!e||!o||(HT!=="production"&&GC(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var l=n.getProps().onViewportEnter;l==null||l(null),(s=n.animationState)===null||s===void 0||s.setActive(Bn.InView,!0)}))},[e])}var Tu=function(e){return function(t){return e(t),null}},kj={inView:Tu(Sj),tap:Tu(mj),focus:Tu(aN),hover:Tu(vN)},Oj=0,_j=function(){return Oj++},Dj=function(){return jp(_j)};function qC(){var e=X.useContext(Lp);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=Dj();X.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function XC(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var pp=function(e){return e*1e3},Aw={linear:dy,easeIn:hy,easeInOut:MC,easeOut:$N,circIn:LC,circInOut:VN,circOut:py,backIn:gy,backInOut:UN,backOut:HN,anticipate:WN,bounceIn:qN,bounceInOut:XN,bounceOut:fp},Mw=function(e){if(Array.isArray(e)){_a(e.length===4,"Cubic bezier arrays must contain four numerical values.");var t=qr(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return vj(n,r,i,o)}else if(typeof e=="string")return _a(Aw[e]!==void 0,"Invalid easing type '".concat(e,"'")),Aw[e];return e},Pj=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Lw=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Ll.test(t)&&!t.startsWith("url("))},mc=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},kh=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Kg=function(){return{type:"keyframes",ease:"linear",duration:.3}},Rj=function(e){return{type:"keyframes",duration:.8,values:e}},Fw={x:mc,y:mc,z:mc,rotate:mc,rotateX:mc,rotateY:mc,rotateZ:mc,scaleX:kh,scaleY:kh,scale:kh,opacity:Kg,backgroundColor:Kg,color:Kg,default:kh},Ij=function(e,t){var n;return Md(t)?n=Rj:n=Fw[e]||Fw.default,st({to:t},n(t))},Aj=st(st({},sC),{color:oo,backgroundColor:oo,outlineColor:oo,fill:oo,stroke:oo,borderColor:oo,borderTopColor:oo,borderRightColor:oo,borderBottomColor:oo,borderLeftColor:oo,filter:em,WebkitFilter:em}),vy=function(e){return Aj[e]};function my(e,t){var n,r=vy(e);return r!==em&&(r=Ll),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function Mj(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Pa(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}var Nw=!1;function Lj(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=Pa(e,["ease","times","yoyo","flip","loop"]),l=st({},s);return n&&(l.offset=n),s.duration&&(l.duration=pp(s.duration)),s.repeatDelay&&(l.repeatDelay=pp(s.repeatDelay)),t&&(l.ease=Pj(t)?t.map(Mw):Mw(t)),s.type==="tween"&&(l.type="keyframes"),(r||o||i)&&(zd(!Nw,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),Nw=!0,r?l.repeatType="reverse":o?l.repeatType="loop":i&&(l.repeatType="mirror"),l.repeat=o||r||i||s.repeat),s.type!=="spring"&&(l.type="keyframes"),l}function Fj(e,t){var n,r,i=yy(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function Nj(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Qo([],qr(e.to),!1),e.to[0]=e.from),e}function jj(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),Nj(t),Mj(e)||(e=st(st({},e),Ij(n,t.to))),st(st({},t),Lj(e))}function Bj(e,t,n,r,i){var o,s=yy(r,e),l=(o=s.from)!==null&&o!==void 0?o:t.get(),c=Lw(e,n);l==="none"&&c&&typeof n=="string"?l=my(e,n):jw(l)&&typeof n=="string"?l=Bw(n):!Array.isArray(n)&&jw(n)&&typeof l=="string"&&(n=Bw(l));var d=Lw(e,l);zd(d===c,"You are trying to animate ".concat(e,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property."));function v(){var x={from:l,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(T){return t.set(T)}};return s.type==="inertia"||s.type==="decay"?uj(st(st({},x),s)):$C(st(st({},jj(s,x,e)),{onUpdate:function(T){var _;x.onUpdate(T),(_=s.onUpdate)===null||_===void 0||_.call(s,T)},onComplete:function(){var T;x.onComplete(),(T=s.onComplete)===null||T===void 0||T.call(s)}}))}function p(){var x,T,_=vC(n);return t.set(_),i(),(x=s==null?void 0:s.onUpdate)===null||x===void 0||x.call(s,_),(T=s==null?void 0:s.onComplete)===null||T===void 0||T.call(s),{stop:function(){}}}return!d||!c||s.type===!1?p:v}function jw(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Bw(e){return typeof e=="number"?0:my("",e)}function yy(e,t){return e[t]||e.default||e}function by(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,s,l=Bj(e,t,n,r,i),c=Fj(r,e),d=function(){return s=l()};return c?o=window.setTimeout(d,pp(c)):d(),function(){clearTimeout(o),s==null||s.stop()}})}var $j=function(e){return/^\-?\d*\.?\d+$/.test(e)},Vj=function(e){return/^0[^.\s]+$/.test(e)};function wy(e,t){e.indexOf(t)===-1&&e.push(t)}function xy(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var vd=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return wy(this.subscriptions,t),function(){return xy(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Hj=function(e){return!isNaN(parseFloat(e))},Uj=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new vd,this.velocityUpdateSubscribers=new vd,this.renderSubscribers=new vd,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=dp(),s=o.delta,l=o.timestamp;n.lastUpdated!==l&&(n.timeDelta=s,n.lastUpdated=l,Hs.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Hs.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Hj(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?VC(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Af(e){return new Uj(e)}var KC=function(e){return function(t){return t.test(e)}},Wj={test:function(e){return e==="auto"},parse:function(e){return e}},ZC=[jc,jt,Vs,vu,IF,RF,Wj],id=function(e){return ZC.find(KC(e))},zj=Qo(Qo([],qr(ZC),!1),[oo,Ll],!1),Yj=function(e){return zj.find(KC(e))};function Gj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Af(n))}function qj(e,t){var n=Fp(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=Pa(r,["transitionEnd","transition"]);s=st(st({},s),o);for(var l in s){var c=vC(s[l]);Gj(e,l,c)}}function Xj(e,t,n){var r,i,o,s,l=Object.keys(t).filter(function(T){return!e.hasValue(T)}),c=l.length;if(c)for(var d=0;d<c;d++){var v=l[d],p=t[v],x=null;Array.isArray(p)&&(x=p[0]),x===null&&(x=(i=(r=n[v])!==null&&r!==void 0?r:e.readValue(v))!==null&&i!==void 0?i:t[v]),x!=null&&(typeof x=="string"&&($j(x)||Vj(x))?x=parseFloat(x):!Yj(x)&&Ll.test(p)&&(x=my(v,p)),e.addValue(v,Af(x)),(o=(s=n)[v])!==null&&o!==void 0||(s[v]=x),e.setBaseTarget(v,x))}}function Kj(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function Zj(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=Kj(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function Jj(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return lm(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=lm(e,t,n);else{var o=typeof t=="function"?Fp(e,t,n.custom):t;r=JC(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function lm(e,t,n){var r;n===void 0&&(n={});var i=Fp(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var l=i?function(){return JC(e,i,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(T){T===void 0&&(T=0);var _=s.delayChildren,I=_===void 0?0:_,L=s.staggerChildren,R=s.staggerDirection;return Qj(e,t,I+T,L,R,n)}:function(){return Promise.resolve()},d=s.when;if(d){var v=qr(d==="beforeChildren"?[l,c]:[c,l],2),p=v[0],x=v[1];return p().then(x)}else return Promise.all([l(),c(n.delay)])}function JC(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,l=i.transitionOverride,c=i.type,d=e.makeTargetAnimatable(t),v=d.transition,p=v===void 0?e.getDefaultTransition():v,x=d.transitionEnd,T=Pa(d,["transition","transitionEnd"]);l&&(p=l);var _=[],I=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var L in T){var R=e.getValue(L),U=T[L];if(!(!R||U===void 0||I&&tB(I,L))){var W=st({delay:s},p);e.shouldReduceMotion&&Yd(L)&&(W=st(st({},W),{type:!1,delay:0}));var te=by(L,R,U,W);_.push(te)}}return Promise.all(_).then(function(){x&&qj(e,x)})}function Qj(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],l=(e.variantChildren.size-1)*r,c=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),l-d*r};return Array.from(e.variantChildren).sort(eB).forEach(function(d,v){s.push(lm(d,t,st(st({},o),{delay:n+c(v)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(s)}function eB(e,t){return e.sortNodePosition(t)}function tB(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Sy=[Bn.Animate,Bn.InView,Bn.Focus,Bn.Hover,Bn.Tap,Bn.Drag,Bn.Exit],nB=Qo([],qr(Sy),!1).reverse(),rB=Sy.length;function iB(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return Jj(e,r,i)}))}}function oB(e){var t=iB(e),n=sB(),r={},i=!0,o=function(v,p){var x=Fp(e,p);if(x){x.transition;var T=x.transitionEnd,_=Pa(x,["transition","transitionEnd"]);v=st(st(st({},v),_),T)}return v};function s(v){return r[v]!==void 0}function l(v){t=v(e)}function c(v,p){for(var x,T=e.getProps(),_=e.getVariantContext(!0)||{},I=[],L=new Set,R={},U=1/0,W=function(S){var ce=nB[S],ae=n[ce],Ne=(x=T[ce])!==null&&x!==void 0?x:_[ce],Ge=os(Ne),qe=ce===p?ae.isActive:null;qe===!1&&(U=S);var it=Ne===_[ce]&&Ne!==T[ce]&&Ge;if(it&&i&&e.manuallyAnimateOnMount&&(it=!1),ae.protectedKeys=st({},R),!ae.isActive&&qe===null||!Ne&&!ae.prevProp||ly(Ne)||typeof Ne=="boolean")return"continue";var nt=aB(ae.prevProp,Ne),me=nt||ce===p&&ae.isActive&&!it&&Ge||S>U&&Ge,Se=Array.isArray(Ne)?Ne:[Ne],Ve=Se.reduce(o,{});qe===!1&&(Ve={});var Qe=ae.prevResolvedValues,at=Qe===void 0?{}:Qe,Ee=st(st({},at),Ve),_e=function(Fe){me=!0,L.delete(Fe),ae.needsAnimating[Fe]=!0};for(var Ye in Ee){var We=Ve[Ye],Re=at[Ye];R.hasOwnProperty(Ye)||(We!==Re?Md(We)&&Md(Re)?!XC(We,Re)||nt?_e(Ye):ae.protectedKeys[Ye]=!0:We!==void 0?_e(Ye):L.add(Ye):We!==void 0&&L.has(Ye)?_e(Ye):ae.protectedKeys[Ye]=!0)}ae.prevProp=Ne,ae.prevResolvedValues=Ve,ae.isActive&&(R=st(st({},R),Ve)),i&&e.blockInitialAnimation&&(me=!1),me&&!it&&I.push.apply(I,Qo([],qr(Se.map(function(Fe){return{animation:Fe,options:st({type:ce},v)}})),!1))},te=0;te<rB;te++)W(te);if(r=st({},R),L.size){var J={};L.forEach(function(S){var ce=e.getBaseTarget(S);ce!==void 0&&(J[S]=ce)}),I.push({animation:J})}var pe=!!I.length;return i&&T.initial===!1&&!e.manuallyAnimateOnMount&&(pe=!1),i=!1,pe?t(I):Promise.resolve()}function d(v,p,x){var T;if(n[v].isActive===p)return Promise.resolve();(T=e.variantChildren)===null||T===void 0||T.forEach(function(L){var R;return(R=L.animationState)===null||R===void 0?void 0:R.setActive(v,p)}),n[v].isActive=p;var _=c(x,v);for(var I in n)n[I].protectedKeys={};return _}return{isAnimated:s,animateChanges:c,setActive:d,setAnimateFunction:l,getState:function(){return n}}}function aB(e,t){return typeof t=="string"?t!==e:YT(t)?!XC(t,e):!1}function yc(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sB(){var e;return e={},e[Bn.Animate]=yc(!0),e[Bn.InView]=yc(),e[Bn.Hover]=yc(),e[Bn.Tap]=yc(),e[Bn.Drag]=yc(),e[Bn.Focus]=yc(),e[Bn.Exit]=yc(),e}var lB={animation:Tu(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=oB(t)),ly(n)&&X.useEffect(function(){return n.subscribe(t)},[n])}),exit:Tu(function(e){var t=e.custom,n=e.visualElement,r=qr(qC(),2),i=r[0],o=r[1],s=X.useContext(Lp);X.useEffect(function(){var l,c;n.isPresent=i;var d=(l=n.animationState)===null||l===void 0?void 0:l.setActive(Bn.Exit,!i,{custom:(c=s==null?void 0:s.custom)!==null&&c!==void 0?c:t});!i&&(d==null||d.then(o))},[i])})},QC=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var x=Jg(i.lastMoveEventInfo,i.history),T=i.startEvent!==null,_=HC(x.offset,{x:0,y:0})>=3;if(!(!T&&!_)){var I=x.point,L=dp().timestamp;i.history.push(st(st({},I),{timestamp:L}));var R=i.handlers,U=R.onStart,W=R.onMove;T||(U&&U(i.lastMoveEvent,x),i.startEvent=i.lastMoveEvent),W&&W(i.lastMoveEvent,x)}}},this.handlePointerMove=function(x,T){if(i.lastMoveEvent=x,i.lastMoveEventInfo=Zg(T,i.transformPagePoint),yC(x)&&x.buttons===0){i.handlePointerUp(x,T);return}Hs.update(i.updatePoint,!0)},this.handlePointerUp=function(x,T){i.end();var _=i.handlers,I=_.onEnd,L=_.onSessionEnd,R=Jg(Zg(T,i.transformPagePoint),i.history);i.startEvent&&I&&I(x,R),L&&L(x,R)},!(bC(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var l=uy(t),c=Zg(l,this.transformPagePoint),d=c.point,v=dp().timestamp;this.history=[st(st({},d),{timestamp:v})];var p=n.onSessionStart;p&&p(t,Jg(c,this.history)),this.removeListeners=$p(_f(window,"pointermove",this.handlePointerMove),_f(window,"pointerup",this.handlePointerUp),_f(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),If.update(this.updatePoint)},e}();function Zg(e,t){return t?{point:t(e.point)}:e}function $w(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jg(e,t){var n=e.point;return{point:n,delta:$w(n,eE(t)),offset:$w(n,uB(t)),velocity:cB(t,.1)}}function uB(e){return e[0]}function eE(e){return e[e.length-1]}function cB(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=eE(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>pp(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Fl(e){return e.max-e.min}function Vw(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),HC(e,t)<n}function Hw(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=lr(t.min,t.max,e.origin),e.scale=Fl(n)/Fl(t),(Vw(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=lr(n.min,n.max,e.origin)-e.originPoint,(Vw(e.translate)||isNaN(e.translate))&&(e.translate=0)}function md(e,t,n,r){Hw(e.x,t.x,n.x,r==null?void 0:r.originX),Hw(e.y,t.y,n.y,r==null?void 0:r.originY)}function Uw(e,t,n){e.min=n.min+t.min,e.max=e.min+Fl(t)}function fB(e,t,n){Uw(e.x,t.x,n.x),Uw(e.y,t.y,n.y)}function Ww(e,t,n){e.min=t.min-n.min,e.max=e.min+Fl(t)}function yd(e,t,n){Ww(e.x,t.x,n.x),Ww(e.y,t.y,n.y)}function dB(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?lr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?lr(i,e,n.max):Math.min(e,i)),e}function zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function hB(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:zw(e.x,r,o),y:zw(e.y,n,i)}}function Yw(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=qr([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function pB(e,t){return{x:Yw(e.x,t.x),y:Yw(e.y,t.y)}}function gB(e,t){var n=.5,r=Fl(e),i=Fl(t);return i>r?n=Ld(t.min,t.max-r,e.min):r>i&&(n=Ld(e.min,e.max-i,t.min)),cp(0,1,n)}function vB(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var um=.35;function mB(e){return e===void 0&&(e=um),e===!1?e=0:e===!0&&(e=um),{x:Gw(e,"left","right"),y:Gw(e,"top","bottom")}}function Gw(e,t,n){return{min:qw(e,t),max:qw(e,n)}}function qw(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Xw=function(){return{translate:0,scale:1,origin:0,originPoint:0}},bd=function(){return{x:Xw(),y:Xw()}},Kw=function(){return{min:0,max:0}},Ni=function(){return{x:Kw(),y:Kw()}};function Bs(e){return[e("x"),e("y")]}function tE(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function yB(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function bB(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Qg(e){return e===void 0||e===1}function nE(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Qg(t)||!Qg(n)||!Qg(r)}function mu(e){return nE(e)||Zw(e.x)||Zw(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Zw(e){return e&&e!=="0%"}function gp(e,t,n){var r=e-n,i=t*r;return n+i}function Jw(e,t,n,r,i){return i!==void 0&&(e=gp(e,i,r)),gp(e,n,r)+t}function cm(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Jw(e.min,t,n,r,i),e.max=Jw(e.max,t,n,r,i)}function rE(e,t){var n=t.x,r=t.y;cm(e.x,n.translate,n.scale,n.originPoint),cm(e.y,r.translate,r.scale,r.originPoint)}function wB(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(s){t.x=t.y=1;for(var l,c,d=0;d<s;d++)l=n[d],c=l.projectionDelta,((o=(i=l.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&Sf(e,{x:-l.scroll.x,y:-l.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,rE(e,c)),r&&mu(l.latestValues)&&Sf(e,l.latestValues))}}function bu(e,t){e.min=e.min+t,e.max=e.max+t}function Qw(e,t,n){var r=qr(n,3),i=r[0],o=r[1],s=r[2],l=t[s]!==void 0?t[s]:.5,c=lr(e.min,e.max,l);cm(e,t[i],t[o],c,t.scale)}var xB=["x","scaleX","originX"],SB=["y","scaleY","originY"];function Sf(e,t){Qw(e.x,t,xB),Qw(e.y,t,SB)}function iE(e,t){return tE(bB(e.getBoundingClientRect(),t))}function TB(e,t,n){var r=iE(e,n),i=t.scroll;return i&&(bu(r.x,i.x),bu(r.y,i.y)),r}var CB=new WeakMap,EB=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ni(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var l=function(p){r.stopAnimation(),s&&r.snapToCursor(uy(p,"page").point)},c=function(p,x){var T,_=r.getProps(),I=_.drag,L=_.dragPropagation,R=_.onDragStart;I&&!L&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=TC(I),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Bs(function(U){var W,te,J=r.getAxisMotionValue(U).get()||0;if(Vs.test(J)){var pe=(te=(W=r.visualElement.projection)===null||W===void 0?void 0:W.layout)===null||te===void 0?void 0:te.actual[U];if(pe){var S=Fl(pe);J=S*(parseFloat(J)/100)}}r.originPoint[U]=J}),R==null||R(p,x),(T=r.visualElement.animationState)===null||T===void 0||T.setActive(Bn.Drag,!0))},d=function(p,x){var T=r.getProps(),_=T.dragPropagation,I=T.dragDirectionLock,L=T.onDirectionLock,R=T.onDrag;if(!(!_&&!r.openGlobalLock)){var U=x.offset;if(I&&r.currentDirection===null){r.currentDirection=kB(U),r.currentDirection!==null&&(L==null||L(r.currentDirection));return}r.updateAxis("x",x.point,U),r.updateAxis("y",x.point,U),r.visualElement.syncRender(),R==null||R(p,x)}},v=function(p,x){return r.stop(p,x)};this.panSession=new QC(t,{onSessionStart:l,onStart:c,onMove:d,onSessionEnd:v},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(Bn.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Oh(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=dB(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&xf(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=hB(o.actual,r):this.constraints=!1,this.elastic=mB(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Bs(function(l){t.getAxisMotionValue(l)&&(t.constraints[l]=vB(o.actual[l],t.constraints[l]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!xf(n))return!1;var i=n.current;_a(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=TB(i,o.root,this.visualElement.getTransformPagePoint()),l=pB(o.layout.actual,s);if(r){var c=r(yB(l));this.hasMutatedConstraints=!!c,c&&(l=tE(c))}return l},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,l=r.dragTransition,c=r.dragSnapToOrigin,d=r.onDragTransitionEnd,v=this.constraints||{},p=Bs(function(x){var T;if(Oh(x,i,n.currentDirection)){var _=(T=v==null?void 0:v[x])!==null&&T!==void 0?T:{};c&&(_={min:0,max:0});var I=s?200:1e6,L=s?40:1e7,R=st(st({type:"inertia",velocity:o?t[x]:0,bounceStiffness:I,bounceDamping:L,timeConstant:750,restDelta:1,restSpeed:10},l),_);return n.startAxisValueAnimation(x,R)}});return Promise.all(p).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return by(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Bs(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Bs(function(r){var i=n.getProps().drag;if(Oh(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var l=o.layout.actual[r],c=l.min,d=l.max;s.set(t[r]-lr(c,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!xf(o)||!s||!this.constraints)){this.stopAnimation();var l={x:0,y:0};Bs(function(d){var v=t.getAxisMotionValue(d);if(v){var p=v.get();l[d]=gB({min:p,max:p},t.constraints[d])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Bs(function(d){if(Oh(d,i,null)){var v=t.getAxisMotionValue(d),p=t.constraints[d],x=p.min,T=p.max;v.set(lr(x,T,l[d]))}})}},e.prototype.addListeners=function(){var t=this,n;CB.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=_f(r,"pointerdown",function(d){var v=t.getProps(),p=v.drag,x=v.dragListener,T=x===void 0?!0:x;p&&T&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;xf(d)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,l=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var c=Bp(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(d){var v=d.delta,p=d.hasLayoutChanged;t.isDragging&&p&&(Bs(function(x){var T=t.getAxisMotionValue(x);T&&(t.originPoint[x]+=v[x].translate,T.set(T.get()+v[x].translate))}),t.visualElement.syncRender())}),function(){c(),i(),l()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,l=s===void 0?!1:s,c=t.dragConstraints,d=c===void 0?!1:c,v=t.dragElastic,p=v===void 0?um:v,x=t.dragMomentum,T=x===void 0?!0:x;return st(st({},t),{drag:r,dragDirectionLock:o,dragPropagation:l,dragConstraints:d,dragElastic:p,dragMomentum:T})},e}();function Oh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kB(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function OB(e){var t=e.dragControls,n=e.visualElement,r=jp(function(){return new EB(n)});X.useEffect(function(){return t&&t.subscribe(r)},[r,t]),X.useEffect(function(){return r.addListeners()},[r])}function _B(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,l=X.useRef(null),c=X.useContext(ty).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(p,x){l.current=null,r&&r(p,x)}};X.useEffect(function(){l.current!==null&&l.current.updateHandlers(d)});function v(p){l.current=new QC(p,d,{transformPagePoint:c})}up(o,"pointerdown",s&&v),kC(function(){return l.current&&l.current.end()})}var DB={pan:Tu(_B),drag:Tu(OB)},_h=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function PB(){var e=_h.map(function(){return new vd}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){_h.forEach(function(i){var o,s="on"+i,l=r[s];(o=t[i])===null||o===void 0||o.call(t),l&&(t[i]=n[s](l))})}};return e.forEach(function(r,i){n["on"+_h[i]]=function(o){return r.add(o)},n["notify"+_h[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,Qo([],qr(o),!1))}}),n}function RB(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(Ml(o))e.addValue(i,o),process.env.NODE_ENV==="development"&&GC(o.version==="6.5.1","Attempting to mix Framer Motion versions ".concat(o.version," with 6.5.1 may not work as expected."));else if(Ml(s))e.addValue(i,Af(o));else if(s!==o)if(e.hasValue(i)){var l=e.getValue(i);!l.hasAnimated&&l.set(o)}else e.addValue(i,Af((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var oE=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,l=e.render,c=e.readValueFromInstance,d=e.removeValueFromRenderState,v=e.sortNodePosition,p=e.scrapeMotionValuesFromProps;return function(x,T){var _=x.parent,I=x.props,L=x.presenceId,R=x.blockInitialAnimation,U=x.visualState,W=x.shouldReduceMotion;T===void 0&&(T={});var te=!1,J=U.latestValues,pe=U.renderState,S,ce=PB(),ae=new Map,Ne=new Map,Ge={},qe=st({},J),it;function nt(){!S||!te||(me(),l(S,pe,I.style,We.projection))}function me(){r(We,pe,J,T,I)}function Se(){ce.notifyUpdate(J)}function Ve(Re,Fe){var He=Fe.onChange(function(ct){J[Re]=ct,I.onUpdate&&Hs.update(Se,!1,!0)}),lt=Fe.onRenderRequest(We.scheduleRender);Ne.set(Re,function(){He(),lt()})}var Qe=p(I);for(var at in Qe){var Ee=Qe[at];J[at]!==void 0&&Ml(Ee)&&Ee.set(J[at],!1)}var _e=Np(I),Ye=qT(I),We=st(st({treeType:n,current:null,depth:_?_.depth+1:0,parent:_,children:new Set,presenceId:L,shouldReduceMotion:W,variantChildren:Ye?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(_!=null&&_.isMounted()),blockInitialAnimation:R,isMounted:function(){return!!S},mount:function(Re){te=!0,S=We.current=Re,We.projection&&We.projection.mount(Re),Ye&&_&&!_e&&(it=_==null?void 0:_.addVariantChild(We)),ae.forEach(function(Fe,He){return Ve(He,Fe)}),_==null||_.children.add(We),We.setProps(I)},unmount:function(){var Re;(Re=We.projection)===null||Re===void 0||Re.unmount(),If.update(Se),If.render(nt),Ne.forEach(function(Fe){return Fe()}),it==null||it(),_==null||_.children.delete(We),ce.clearAllListeners(),S=void 0,te=!1},addVariantChild:function(Re){var Fe,He=We.getClosestVariantNode();if(He)return(Fe=He.variantChildren)===null||Fe===void 0||Fe.add(Re),function(){return He.variantChildren.delete(Re)}},sortNodePosition:function(Re){return!v||n!==Re.treeType?0:v(We.getInstance(),Re.getInstance())},getClosestVariantNode:function(){return Ye?We:_==null?void 0:_.getClosestVariantNode()},getLayoutId:function(){return I.layoutId},getInstance:function(){return S},getStaticValue:function(Re){return J[Re]},setStaticValue:function(Re,Fe){return J[Re]=Fe},getLatestValues:function(){return J},setVisibility:function(Re){We.isVisible!==Re&&(We.isVisible=Re,We.scheduleRender())},makeTargetAnimatable:function(Re,Fe){return Fe===void 0&&(Fe=!0),o(We,Re,I,Fe)},measureViewportBox:function(){return s(S,I)},addValue:function(Re,Fe){We.hasValue(Re)&&We.removeValue(Re),ae.set(Re,Fe),J[Re]=Fe.get(),Ve(Re,Fe)},removeValue:function(Re){var Fe;ae.delete(Re),(Fe=Ne.get(Re))===null||Fe===void 0||Fe(),Ne.delete(Re),delete J[Re],d(Re,pe)},hasValue:function(Re){return ae.has(Re)},getValue:function(Re,Fe){var He=ae.get(Re);return He===void 0&&Fe!==void 0&&(He=Af(Fe),We.addValue(Re,He)),He},forEachValue:function(Re){return ae.forEach(Re)},readValue:function(Re){var Fe;return(Fe=J[Re])!==null&&Fe!==void 0?Fe:c(S,Re,T)},setBaseTarget:function(Re,Fe){qe[Re]=Fe},getBaseTarget:function(Re){if(i){var Fe=i(I,Re);if(Fe!==void 0&&!Ml(Fe))return Fe}return qe[Re]}},ce),{build:function(){return me(),pe},scheduleRender:function(){Hs.render(nt,!1,!0)},syncRender:nt,setProps:function(Re){(Re.transformTemplate||I.transformTemplate)&&We.scheduleRender(),I=Re,ce.updatePropListeners(Re),Ge=RB(We,p(I),Ge)},getProps:function(){return I},getVariant:function(Re){var Fe;return(Fe=I.variants)===null||Fe===void 0?void 0:Fe[Re]},getDefaultTransition:function(){return I.transition},getTransformPagePoint:function(){return I.transformPagePoint},getVariantContext:function(Re){if(Re===void 0&&(Re=!1),Re)return _==null?void 0:_.getVariantContext();if(!_e){var Fe=(_==null?void 0:_.getVariantContext())||{};return I.initial!==void 0&&(Fe.initial=I.initial),Fe}for(var He={},lt=0;lt<IB;lt++){var ct=aE[lt],yt=I[ct];(os(yt)||yt===!1)&&(He[ct]=yt)}return He}});return We}},aE=Qo(["initial"],qr(Sy),!1),IB=aE.length;function fm(e){return typeof e=="string"&&e.startsWith("var(--")}var sE=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function AB(e){var t=sE.exec(e);if(!t)return[,];var n=qr(t,3),r=n[1],i=n[2];return[r,i]}var MB=4;function dm(e,t,n){n===void 0&&(n=1),_a(n<=MB,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=qr(AB(e),2),i=r[0],o=r[1];if(i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():fm(o)?dm(o,t,n+1):o}}function LB(e,t,n){var r,i=Pa(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=st({},n)),e.forEachValue(function(d){var v=d.get();if(fm(v)){var p=dm(v,o);p&&d.set(p)}});for(var s in i){var l=i[s];if(fm(l)){var c=dm(l,o);c&&(i[s]=c,n&&((r=n[s])!==null&&r!==void 0||(n[s]=l)))}}return{target:i,transitionEnd:n}}var FB=new Set(["width","height","top","left","right","bottom","x","y"]),lE=function(e){return FB.has(e)},NB=function(e){return Object.keys(e).some(lE)},uE=function(e,t){e.set(t,!1),e.set(t)},Dh=function(e){return e===jc||e===jt},ex;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ex||(ex={}));var tx=function(e,t){return parseFloat(e.split(", ")[t])},nx=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return tx(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?tx(s[1],e):0}},jB=new Set(["x","y","z"]),BB=Id.filter(function(e){return!jB.has(e)});function $B(e){var t=[];return BB.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var rx={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:nx(4,13),y:nx(5,14)},VB=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){l[d]=rx[d](r,o)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(d){var v=t.getValue(d);uE(v,l[d]),e[d]=rx[d](c,o)}),e},HB=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=st({},t),r=st({},r);var i=Object.keys(t).filter(lE),o=[],s=!1,l=[];if(i.forEach(function(v){var p=e.getValue(v);if(e.hasValue(v)){var x=n[v],T=id(x),_=t[v],I;if(Md(_)){var L=_.length,R=_[0]===null?1:0;x=_[R],T=id(x);for(var U=R;U<L;U++)I?_a(id(_[U])===I,"All keyframes must be of the same type"):(I=id(_[U]),_a(I===T||Dh(T)&&Dh(I),"Keyframes must be of the same dimension as the current value"))}else I=id(_);if(T!==I)if(Dh(T)&&Dh(I)){var W=p.get();typeof W=="string"&&p.set(parseFloat(W)),typeof _=="string"?t[v]=parseFloat(_):Array.isArray(_)&&I===jt&&(t[v]=_.map(parseFloat))}else T!=null&&T.transform&&(I!=null&&I.transform)&&(x===0||_===0)?x===0?p.set(I.transform(x)):t[v]=T.transform(_):(s||(o=$B(e),s=!0),l.push(v),r[v]=r[v]!==void 0?r[v]:t[v],uE(p,_))}}),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,d=VB(t,e,l);return o.length&&o.forEach(function(v){var p=qr(v,2),x=p[0],T=p[1];e.getValue(x).set(T)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function UB(e,t,n,r){return NB(t)?HB(e,t,n,r):{target:t,transitionEnd:r}}var WB=function(e,t,n,r){var i=LB(e,t,r);return t=i.target,r=i.transitionEnd,UB(e,t,n,r)};function zB(e){return window.getComputedStyle(e)}var cE={treeType:"dom",readValueFromInstance:function(e,t){if(Yd(t)){var n=vy(t);return n&&n.default||0}else{var r=zB(e);return(QT(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return iE(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,l=Pa(t,["transition","transitionEnd"]),c=Zj(l,o||{},e);if(i&&(s&&(s=i(s)),l&&(l=i(l)),c&&(c=i(c))),r){Xj(e,l,c);var d=WB(e,l,c,s);s=d.transitionEnd,l=d.target}return st({transition:o,transitionEnd:s},l)},scrapeMotionValuesFromProps:sy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),iy(t,n,r,i.transformTemplate)},render:dC},YB=oE(cE),GB=oE(st(st({},cE),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yd(t)?((n=vy(t))===null||n===void 0?void 0:n.default)||0:(t=hC.has(t)?t:fC(t),e.getAttribute(t))},scrapeMotionValuesFromProps:gC,build:function(e,t,n,r,i){ay(t,n,r,i.transformTemplate)},render:pC})),qB=function(e,t){return ny(e)?GB(t,{enableHardwareAcceleration:!1}):YB(t,{enableHardwareAcceleration:!0})};function ix(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var od={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(jt.test(e))e=parseFloat(e);else return e;var n=ix(e,t.target.x),r=ix(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},ox="_$css",XB={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(sE,function(I){return s.push(I),ox}));var l=Ll.parse(e);if(l.length>5)return i;var c=Ll.createTransformer(e),d=typeof l[0]!="number"?1:0,v=r.x.scale*n.x,p=r.y.scale*n.y;l[0+d]/=v,l[1+d]/=p;var x=lr(v,p,.5);typeof l[2+d]=="number"&&(l[2+d]/=x),typeof l[3+d]=="number"&&(l[3+d]/=x);var T=c(l);if(o){var _=0;T=T.replace(ox,function(){var I=s[_];return _++,I})}return T}},KB=function(e){VT(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,l=r.layoutId,c=i.projection;xF(JB),c&&(o!=null&&o.group&&o.group.add(c),s!=null&&s.register&&l&&s.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(st(st({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),hd.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,l=i.drag,c=i.isPresent,d=s.projection;return d&&(d.isPresent=c,l||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?d.promote():d.relegate()||Hs.postRender(function(){var v;!((v=d.getStack())===null||v===void 0)&&v.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(X.Component);function ZB(e){var t=qr(qC(),2),n=t[0],r=t[1],i=X.useContext(XT);return X.createElement(KB,st({},e,{layoutGroup:i,switchLayoutGroup:X.useContext(KT),isPresent:n,safeToRemove:r}))}var JB={borderRadius:st(st({},od),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:XB},QB={measureLayout:ZB};function e$(e,t,n){n===void 0&&(n={});var r=Ml(e)?e:Af(e);return by("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var fE=["TopLeft","TopRight","BottomLeft","BottomRight"],t$=fE.length,ax=function(e){return typeof e=="string"?parseFloat(e):e},sx=function(e){return typeof e=="number"||jt.test(e)};function n$(e,t,n,r,i,o){var s,l,c,d;i?(e.opacity=lr(0,(s=n.opacity)!==null&&s!==void 0?s:1,r$(r)),e.opacityExit=lr((l=t.opacity)!==null&&l!==void 0?l:1,0,i$(r))):o&&(e.opacity=lr((c=t.opacity)!==null&&c!==void 0?c:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var v=0;v<t$;v++){var p="border".concat(fE[v],"Radius"),x=lx(t,p),T=lx(n,p);if(!(x===void 0&&T===void 0)){x||(x=0),T||(T=0);var _=x===0||T===0||sx(x)===sx(T);_?(e[p]=Math.max(lr(ax(x),ax(T),r),0),(Vs.test(T)||Vs.test(x))&&(e[p]+="%")):e[p]=T}}(t.rotate||n.rotate)&&(e.rotate=lr(t.rotate||0,n.rotate||0,r))}function lx(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var r$=dE(0,.5,py),i$=dE(.5,.95,dy);function dE(e,t,n){return function(r){return r<e?0:r>t?1:n(Ld(e,t,r))}}function ux(e,t){e.min=t.min,e.max=t.max}function rs(e,t){ux(e.x,t.x),ux(e.y,t.y)}function cx(e,t,n,r,i){return e-=t,e=gp(e,1/n,r),i!==void 0&&(e=gp(e,1/i,r)),e}function o$(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),Vs.test(t)){t=parseFloat(t);var l=lr(s.min,s.max,t/100);t=l-s.min}if(typeof t=="number"){var c=lr(o.min,o.max,r);e===o&&(c-=t),e.min=cx(e.min,t,n,c,i),e.max=cx(e.max,t,n,c,i)}}function fx(e,t,n,r,i){var o=qr(n,3),s=o[0],l=o[1],c=o[2];o$(e,t[s],t[l],t[c],t.scale,r,i)}var a$=["x","scaleX","originX"],s$=["y","scaleY","originY"];function dx(e,t,n,r){fx(e.x,t,a$,n==null?void 0:n.x,r==null?void 0:r.x),fx(e.y,t,s$,n==null?void 0:n.y,r==null?void 0:r.y)}function hx(e){return e.translate===0&&e.scale===1}function hE(e){return hx(e.x)&&hx(e.y)}function pE(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var l$=function(){function e(){this.members=[]}return e.prototype.add=function(t){wy(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(xy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),u$="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function px(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,l=n.rotateX,c=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),l&&(o+="rotateX(".concat(l,"deg) ")),c&&(o+="rotateY(".concat(c,"deg) "))}var d=e.x.scale*t.x,v=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(v,")"),o===u$?"none":o}var c$=function(e,t){return e.depth-t.depth},f$=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){wy(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){xy(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(c$),this.isDirty=!1,this.children.forEach(t)},e}(),gx=1e3;function gE(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(l,c,d){var v=this;c===void 0&&(c={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){v.isUpdating&&(v.isUpdating=!1,v.clearAllSnapshots())},this.updateProjection=function(){v.nodes.forEach(m$),v.nodes.forEach(y$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=l,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?Qo(Qo([],qr(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,l&&this.root.registerPotentialNode(l,this);for(var p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new f$)}return s.prototype.addEventListener=function(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new vd),this.eventHandlers.get(l).add(c)},s.prototype.notifyListeners=function(l){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var v=this.eventHandlers.get(l);v==null||v.notify.apply(v,Qo([],qr(c),!1))},s.prototype.hasListeners=function(l){return this.eventHandlers.has(l)},s.prototype.registerPotentialNode=function(l,c){this.potentialNodes.set(l,c)},s.prototype.mount=function(l,c){var d=this,v;if(c===void 0&&(c=!1),!this.instance){this.isSVG=l instanceof SVGElement&&l.tagName!=="svg",this.instance=l;var p=this.options,x=p.layoutId,T=p.layout,_=p.visualElement;if(_&&!_.getInstance()&&_.mount(l),this.root.nodes.add(this),(v=this.parent)===null||v===void 0||v.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(T||x)&&(this.isLayoutDirty=!0),t){var I,L=function(){return d.root.updateBlockedByResize=!1};t(l,function(){d.root.updateBlockedByResize=!0,clearTimeout(I),I=window.setTimeout(L,250),hd.hasAnimatedSinceResize&&(hd.hasAnimatedSinceResize=!1,d.nodes.forEach(v$))})}x&&this.root.registerSharedNode(x,this),this.options.animate!==!1&&_&&(x||T)&&this.addEventListener("didUpdate",function(R){var U,W,te,J,pe,S=R.delta,ce=R.hasLayoutChanged,ae=R.hasRelativeTargetChanged,Ne=R.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var Ge=(W=(U=d.options.transition)!==null&&U!==void 0?U:_.getDefaultTransition())!==null&&W!==void 0?W:T$,qe=_.getProps(),it=qe.onLayoutAnimationStart,nt=qe.onLayoutAnimationComplete,me=!d.targetLayout||!pE(d.targetLayout,Ne)||ae,Se=!ce&&ae;if(!((te=d.resumeFrom)===null||te===void 0)&&te.instance||Se||ce&&(me||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(S,Se);var Ve=st(st({},yy(Ge,"layout")),{onPlay:it,onComplete:nt});_.shouldReduceMotion&&(Ve.delay=0,Ve.type=!1),d.startAnimation(Ve)}else!ce&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((pe=(J=d.options).onExitComplete)===null||pe===void 0||pe.call(J));d.targetLayout=Ne})}},s.prototype.unmount=function(){var l,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(l=this.getStack())===null||l===void 0||l.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,If.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var l;return this.isAnimationBlocked||((l=this.parent)===null||l===void 0?void 0:l.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var l;this.isUpdateBlocked()||(this.isUpdating=!0,(l=this.nodes)===null||l===void 0||l.forEach(b$))},s.prototype.willUpdate=function(l){var c,d,v;if(l===void 0&&(l=!0),this.root.isUpdateBlocked()){(d=(c=this.options).onExitComplete)===null||d===void 0||d.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var p=0;p<this.path.length;p++){var x=this.path[p];x.shouldResetTransform=!0,x.updateScroll()}var T=this.options,_=T.layoutId,I=T.layout;if(!(_===void 0&&!I)){var L=(v=this.options.visualElement)===null||v===void 0?void 0:v.getProps().transformTemplate;this.prevTransformTemplateValue=L==null?void 0:L(this.latestValues,""),this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var l=this.isUpdateBlocked();if(l){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vx);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(C$),this.potentialNodes.clear()),this.nodes.forEach(g$),this.nodes.forEach(d$),this.nodes.forEach(h$),this.clearAllSnapshots(),qg.update(),qg.preRender(),qg.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(p$),this.sharedNodes.forEach(w$)},s.prototype.scheduleUpdateProjection=function(){Hs.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var l=this;Hs.postRender(function(){l.isLayoutDirty?l.root.didUpdate():l.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var l=this.measure(),c=this.removeTransform(this.removeElementScroll(l));wx(c),this.snapshot={measured:l,layout:c,latestValues:{}}}},s.prototype.updateLayout=function(){var l;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var d=this.path[c];d.updateScroll()}var v=this.measure();wx(v);var p=this.layout;this.layout={measured:v,actual:this.removeElementScroll(v)},this.layoutCorrected=Ni(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(l=this.options.visualElement)===null||l===void 0||l.notifyLayoutMeasure(this.layout.actual,p==null?void 0:p.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var l;if(o){var c=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!hE(this.projectionDelta),v=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate,p=v==null?void 0:v(this.latestValues,""),x=p!==this.prevTransformTemplateValue;c&&(d||mu(this.latestValues)||x)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var l=this.options.visualElement;if(!l)return Ni();var c=l.measureViewportBox(),d=this.root.scroll;return d&&(bu(c.x,d.x),bu(c.y,d.y)),c},s.prototype.removeElementScroll=function(l){var c=Ni();rs(c,l);for(var d=0;d<this.path.length;d++){var v=this.path[d],p=v.scroll,x=v.options,T=v.isScrollRoot;if(v!==this.root&&p&&x.layoutScroll){if(T){rs(c,l);var _=this.root.scroll;_&&(bu(c.x,-_.x),bu(c.y,-_.y))}bu(c.x,p.x),bu(c.y,p.y)}}return c},s.prototype.applyTransform=function(l,c){c===void 0&&(c=!1);var d=Ni();rs(d,l);for(var v=0;v<this.path.length;v++){var p=this.path[v];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Sf(d,{x:-p.scroll.x,y:-p.scroll.y}),mu(p.latestValues)&&Sf(d,p.latestValues)}return mu(this.latestValues)&&Sf(d,this.latestValues),d},s.prototype.removeTransform=function(l){var c,d=Ni();rs(d,l);for(var v=0;v<this.path.length;v++){var p=this.path[v];if(p.instance&&mu(p.latestValues)){nE(p.latestValues)&&p.updateSnapshot();var x=Ni(),T=p.measure();rs(x,T),dx(d,p.latestValues,(c=p.snapshot)===null||c===void 0?void 0:c.layout,x)}}return mu(this.latestValues)&&dx(d,this.latestValues),d},s.prototype.setTargetDelta=function(l){this.targetDelta=l,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(l){var c;this.options=st(st(st({},this.options),l),{crossfade:(c=l.crossfade)!==null&&c!==void 0?c:!0})},s.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},s.prototype.resolveTargetDelta=function(){var l,c=this.options,d=c.layout,v=c.layoutId;!this.layout||!(d||v)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Ni(),this.relativeTargetOrigin=Ni(),yd(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),rs(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ni(),this.targetWithTransforms=Ni()),this.relativeTarget&&this.relativeTargetOrigin&&(!((l=this.relativeParent)===null||l===void 0)&&l.target)?fB(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):rs(this.target,this.layout.actual),rE(this.target,this.targetDelta)):rs(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Ni(),this.relativeTargetOrigin=Ni(),yd(this.relativeTargetOrigin,this.target,this.relativeParent.target),rs(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||mu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var l,c=this.options,d=c.layout,v=c.layoutId;if(this.isTreeAnimating=!!(!((l=this.parent)===null||l===void 0)&&l.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||v))){var p=this.getLead();rs(this.layoutCorrected,this.layout.actual),wB(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==p);var x=p.target;if(x){this.projectionDelta||(this.projectionDelta=bd(),this.projectionDeltaWithTransform=bd());var T=this.treeScale.x,_=this.treeScale.y,I=this.projectionTransform;md(this.projectionDelta,this.layoutCorrected,x,this.latestValues),this.projectionTransform=px(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==_)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(l){var c,d,v;l===void 0&&(l=!0),(d=(c=this.options).scheduleRender)===null||d===void 0||d.call(c),l&&((v=this.getStack())===null||v===void 0||v.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(l,c){var d=this,v;c===void 0&&(c=!1);var p=this.snapshot,x=(p==null?void 0:p.latestValues)||{},T=st({},this.latestValues),_=bd();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var I=Ni(),L=p==null?void 0:p.isShared,R=(((v=this.getStack())===null||v===void 0?void 0:v.members.length)||0)<=1,U=!!(L&&!R&&this.options.crossfade===!0&&!this.path.some(S$));this.animationProgress=0,this.mixTargetDelta=function(W){var te,J=W/1e3;mx(_.x,l.x,J),mx(_.y,l.y,J),d.setTargetDelta(_),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((te=d.relativeParent)===null||te===void 0)&&te.layout)&&(yd(I,d.layout.actual,d.relativeParent.layout.actual),x$(d.relativeTarget,d.relativeTargetOrigin,I,J)),L&&(d.animationValues=T,n$(T,x,d.latestValues,J,U,R)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=J},this.mixTargetDelta(0)},s.prototype.startAnimation=function(l){var c=this,d,v;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((v=this.resumingFrom.currentAnimation)===null||v===void 0||v.stop()),this.pendingAnimation&&(If.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hs.update(function(){hd.hasAnimatedSinceResize=!0,c.currentAnimation=e$(0,gx,st(st({},l),{onUpdate:function(p){var x;c.mixTargetDelta(p),(x=l.onUpdate)===null||x===void 0||x.call(l,p)},onComplete:function(){var p;(p=l.onComplete)===null||p===void 0||p.call(l),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var l;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(l=this.getStack())===null||l===void 0||l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var l;this.currentAnimation&&((l=this.mixTargetDelta)===null||l===void 0||l.call(this,gx),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var l=this.getLead(),c=l.targetWithTransforms,d=l.target,v=l.layout,p=l.latestValues;!c||!d||!v||(rs(c,d),Sf(c,p),md(this.projectionDeltaWithTransform,this.layoutCorrected,c,p))},s.prototype.registerSharedNode=function(l,c){var d,v,p;this.sharedNodes.has(l)||this.sharedNodes.set(l,new l$);var x=this.sharedNodes.get(l);x.add(c),c.promote({transition:(d=c.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(p=(v=c.options.initialPromotionConfig)===null||v===void 0?void 0:v.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(v,c)})},s.prototype.isLead=function(){var l=this.getStack();return l?l.lead===this:!0},s.prototype.getLead=function(){var l,c=this.options.layoutId;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this},s.prototype.getPrevLead=function(){var l,c=this.options.layoutId;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0},s.prototype.getStack=function(){var l=this.options.layoutId;if(l)return this.root.sharedNodes.get(l)},s.prototype.promote=function(l){var c=l===void 0?{}:l,d=c.needsReset,v=c.transition,p=c.preserveFollowOpacity,x=this.getStack();x&&x.promote(this,p),d&&(this.projectionDelta=void 0,this.needsReset=!0),v&&this.setOptions({transition:v})},s.prototype.relegate=function(){var l=this.getStack();return l?l.relegate(this):!1},s.prototype.resetRotation=function(){var l=this.options.visualElement;if(l){for(var c=!1,d={},v=0;v<Zv.length;v++){var p=Zv[v],x="rotate"+p;l.getStaticValue(x)&&(c=!0,d[x]=l.getStaticValue(x),l.setStaticValue(x,0))}if(c){l==null||l.syncRender();for(var x in d)l.setStaticValue(x,d[x]);l.scheduleRender()}}},s.prototype.getProjectionStyles=function(l){var c,d,v,p,x,T;l===void 0&&(l={});var _={};if(!this.instance||this.isSVG)return _;if(this.isVisible)_.visibility="";else return{visibility:"hidden"};var I=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,_.opacity="",_.pointerEvents=zh(l.pointerEvents)||"",_.transform=I?I(this.latestValues,""):"none",_;var L=this.getLead();if(!this.projectionDelta||!this.layout||!L.target){var R={};return this.options.layoutId&&(R.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,R.pointerEvents=zh(l.pointerEvents)||""),this.hasProjected&&!mu(this.latestValues)&&(R.transform=I?I({},""):"none",this.hasProjected=!1),R}var U=L.animationValues||L.latestValues;this.applyTransformsToTarget(),_.transform=px(this.projectionDeltaWithTransform,this.treeScale,U),I&&(_.transform=I(U,_.transform));var W=this.projectionDelta,te=W.x,J=W.y;_.transformOrigin="".concat(te.origin*100,"% ").concat(J.origin*100,"% 0"),L.animationValues?_.opacity=L===this?(p=(v=U.opacity)!==null&&v!==void 0?v:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:U.opacityExit:_.opacity=L===this?(x=U.opacity)!==null&&x!==void 0?x:"":(T=U.opacityExit)!==null&&T!==void 0?T:0;for(var pe in sp)if(U[pe]!==void 0){var S=sp[pe],ce=S.correct,ae=S.applyTo,Ne=ce(U[pe],L);if(ae)for(var Ge=ae.length,qe=0;qe<Ge;qe++)_[ae[qe]]=Ne;else _[pe]=Ne}return this.options.layoutId&&(_.pointerEvents=L===this?zh(l.pointerEvents)||"":"none"),_},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(l){var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(vx),this.root.sharedNodes.clear()},s}()}function d$(e){e.updateLayout()}function h$(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,l=s.actual,c=s.measured;e.options.animationType==="size"?Bs(function(U){var W=o.isShared?o.measured[U]:o.layout[U],te=Fl(W);W.min=l[U].min,W.max=W.min+te}):e.options.animationType==="position"&&Bs(function(U){var W=o.isShared?o.measured[U]:o.layout[U],te=Fl(l[U]);W.max=W.min+te});var d=bd();md(d,l,o.layout);var v=bd();o.isShared?md(v,e.applyTransform(c,!0),o.measured):md(v,l,o.layout);var p=!hE(d),x=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var T=e.relativeParent,_=T.snapshot,I=T.layout;if(_&&I){var L=Ni();yd(L,o.layout,_.layout);var R=Ni();yd(R,l,I.actual),pE(L,R)||(x=!0)}}e.notifyListeners("didUpdate",{layout:l,snapshot:o,delta:v,layoutDelta:d,hasLayoutChanged:p,hasRelativeTargetChanged:x})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function p$(e){e.clearSnapshot()}function vx(e){e.clearMeasurements()}function g$(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function v$(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function m$(e){e.resolveTargetDelta()}function y$(e){e.calcProjection()}function b$(e){e.resetRotation()}function w$(e){e.removeLeadSnapshot()}function mx(e,t,n){e.translate=lr(t.translate,0,n),e.scale=lr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function yx(e,t,n,r){e.min=lr(t.min,n.min,r),e.max=lr(t.max,n.max,r)}function x$(e,t,n,r){yx(e.x,t.x,n.x,r),yx(e.y,t.y,n.y,r)}function S$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var T$={duration:.45,ease:[.4,0,.1,1]};function C$(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function bx(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wx(e){bx(e.x),bx(e.y)}var E$=gE({attachResizeListener:function(e,t){return Bp(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),ev={current:void 0},k$=gE({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!ev.current){var e=new E$(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),ev.current=e}return ev.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),O$=st(st(st(st({},lB),kj),DB),QB),_$=bF(function(e,t){return oN(e,t,O$,qB,k$)});function hm(e,t,n){var r,i,o,s,l;t==null&&(t=100);function c(){var v=Date.now()-s;v<t&&v>=0?r=setTimeout(c,t-v):(r=null,n||(l=e.apply(o,i),o=i=null))}var d=function(){o=this,i=arguments,s=Date.now();var v=n&&!r;return r||(r=setTimeout(c,t)),v&&(l=e.apply(o,i),o=i=null),l};return d.clear=function(){r&&(clearTimeout(r),r=null)},d.flush=function(){r&&(l=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},d}hm.debounce=hm;var D$=hm;const xx=Mu(D$);function P$(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[s,l]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:s}),d=t?typeof t=="number"?t:t.scroll:null,v=t?typeof t=="number"?t:t.resize:null,p=X.useRef(!1);X.useEffect(()=>(p.current=!0,()=>void(p.current=!1)));const[x,T,_]=X.useMemo(()=>{const U=()=>{if(!c.current.element)return;const{left:W,top:te,width:J,height:pe,bottom:S,right:ce,x:ae,y:Ne}=c.current.element.getBoundingClientRect(),Ge={left:W,top:te,width:J,height:pe,bottom:S,right:ce,x:ae,y:Ne};c.current.element instanceof HTMLElement&&i&&(Ge.height=c.current.element.offsetHeight,Ge.width=c.current.element.offsetWidth),Object.freeze(Ge),p.current&&!M$(c.current.lastBounds,Ge)&&l(c.current.lastBounds=Ge)};return[U,v?xx(U,v):U,d?xx(U,d):U]},[l,i,d,v]);function I(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(U=>U.removeEventListener("scroll",_,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function L(){c.current.element&&(c.current.resizeObserver=new o(_),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(U=>U.addEventListener("scroll",_,{capture:!0,passive:!0})))}const R=U=>{!U||U===c.current.element||(I(),c.current.element=U,c.current.scrollContainers=vE(U),L())};return I$(_,!!n),R$(T),X.useEffect(()=>{I(),L()},[n,_,T]),X.useEffect(()=>I,[]),[R,s,x]}function R$(e){X.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function I$(e,t){X.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function vE(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...vE(e.parentElement)]}const A$=["x","y","top","bottom","left","right","width","height"],M$=(e,t)=>A$.every(n=>e[n]===t[n]),mE=X.createContext({dragDropManager:void 0});function xa(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Sx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),tv=function(){return Math.random().toString(36).substring(7).split("").join(".")},Tx={INIT:"@@redux/INIT"+tv(),REPLACE:"@@redux/REPLACE"+tv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tv()}};function L$(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function F$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(B$(e))return"date";if(j$(e))return"error";var n=N$(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function N$(e){return typeof e.constructor=="function"?e.constructor.name:null}function j$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function B$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pf(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=F$(e)),t}function yE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?xa(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?xa(1):"Expected the enhancer to be a function. Instead, received: '"+pf(n)+"'");return n(yE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?xa(2):"Expected the root reducer to be a function. Instead, received: '"+pf(e)+"'");var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function v(){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function p(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?xa(4):"Expected the listener to be a function. Instead, received: '"+pf(I)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?xa(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var L=!0;return d(),l.push(I),function(){if(L){if(c)throw new Error(process.env.NODE_ENV==="production"?xa(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");L=!1,d();var U=l.indexOf(I);l.splice(U,1),s=null}}}function x(I){if(!L$(I))throw new Error(process.env.NODE_ENV==="production"?xa(7):"Actions must be plain objects. Instead, the actual type was: '"+pf(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"?xa(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?xa(9):"Reducers may not dispatch actions.");try{c=!0,o=i(o,I)}finally{c=!1}for(var L=s=l,R=0;R<L.length;R++){var U=L[R];U()}return I}function T(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?xa(10):"Expected the nextReducer to be a function. Instead, received: '"+pf(I));i=I,x({type:Tx.REPLACE})}function _(){var I,L=p;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?xa(11):"Expected the observer to be an object. Instead, received: '"+pf(U)+"'");function W(){U.next&&U.next(v())}W();var te=L(W);return{unsubscribe:te}}},I[Sx]=function(){return this},I}return x({type:Tx.INIT}),r={dispatch:x,subscribe:p,getState:v,replaceReducer:T},r[Sx]=_,r}function Kt(e,t,...n){if($$()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function $$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function V$(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function H$(e,t){return e.filter(n=>n!==t)}function bE(e){return typeof e=="object"}function U$(e,t){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((o,s)=>{o===1&&i.push(s)}),i}function W$(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Ty="dnd-core/INIT_COORDS",Up="dnd-core/BEGIN_DRAG",Cy="dnd-core/PUBLISH_DRAG_SOURCE",Wp="dnd-core/HOVER",zp="dnd-core/DROP",Yp="dnd-core/END_DRAG";function Cx(e,t){return{type:Ty,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const z$={type:Ty,payload:{clientOffset:null,sourceClientOffset:null}};function Y$(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(Cx(o)),G$(n,l,c);const d=K$(n,l);if(d==null){e.dispatch(z$);return}let v=null;if(o){if(!s)throw new Error("getSourceClientOffset must be defined");q$(s),v=s(d)}e.dispatch(Cx(o,v));const x=c.getSource(d).beginDrag(l,d);if(x==null)return;X$(x),c.pinSource(d);const T=c.getSourceType(d);return{type:Up,payload:{itemType:T,item:x,sourceId:d,clientOffset:o||null,sourceClientOffset:v||null,isSourcePublic:!!i}}}}function G$(e,t,n){Kt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){Kt(n.getSource(r),"Expected sourceIds to be registered.")})}function q$(e){Kt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X$(e){Kt(bE(e),"Item must be an object.")}function K$(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Z$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Z$(e,i,n[i])})}return e}function Q$(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();eV(r),rV(r).forEach((s,l)=>{const c=tV(s,l,i,r),d={type:zp,payload:{dropResult:J$({},n,c)}};e.dispatch(d)})}}function eV(e){Kt(e.isDragging(),"Cannot call drop while not dragging."),Kt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function tV(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return nV(o),typeof o>"u"&&(o=t===0?{}:r.getDropResult()),o}function nV(e){Kt(typeof e>"u"||bE(e),"Drop result must either be an object or undefined.")}function rV(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function iV(e){return function(){const n=e.getMonitor(),r=e.getRegistry();oV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Yp}}}function oV(e){Kt(e.isDragging(),"Cannot call endDrag while not dragging.")}function pm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function aV(e){return function(n,{clientOffset:r}={}){sV(n);const i=n.slice(0),o=e.getMonitor(),s=e.getRegistry(),l=o.getItemType();return uV(i,s,l),lV(i,o,s),cV(i,o,s),{type:Wp,payload:{targetIds:i,clientOffset:r||null}}}}function sV(e){Kt(Array.isArray(e),"Expected targetIds to be an array.")}function lV(e,t,n){Kt(t.isDragging(),"Cannot call hover while not dragging."),Kt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];Kt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Kt(o,"Expected targetIds to be registered.")}}function uV(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],o=t.getTargetType(i);pm(o,n)||e.splice(r,1)}}function cV(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function fV(e){return function(){if(e.getMonitor().isDragging())return{type:Cy}}}function dV(e){return{beginDrag:Y$(e),publishDragSource:fV(e),hover:aV(e),drop:Q$(e),endDrag:iV(e)}}class hV{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(o){return(...s)=>{const l=o.apply(t,s);typeof l<"u"&&n(l)}}const i=dV(this);return Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=r(l),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function pV(e,t){return{x:e.x+t.x,y:e.y+t.y}}function wE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function gV(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:wE(pV(t,r),n)}function vV(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:wE(t,n)}const wd=[],Ey=[];wd.__IS_NONE__=!0;Ey.__IS_ALL__=!0;function mV(e,t){return e===wd?!1:e===Ey||typeof t>"u"?!0:W$(t,e).length>0}class yV{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;Kt(typeof t=="function","listener must be a function."),Kt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!mV(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Kt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return Kt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(Kt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return pm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(Kt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!pm(i,o))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return gV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return vV(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const Ex=typeof global<"u"?global:self,xE=Ex.MutationObserver||Ex.WebKitMutationObserver;function SE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function bV(e){let t=1;const n=new xE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const wV=typeof xE=="function"?bV:SE;class xV{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=wV(this.flush),this.requestErrorThrow=SE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class SV{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class TV{create(t){const n=this.freeTasks,r=n.length?n.pop():new SV(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const TE=new xV,CV=new TV(TE.registerPendingError);function EV(e){TE.enqueueTask(CV.create(e))}const ky="dnd-core/ADD_SOURCE",Oy="dnd-core/ADD_TARGET",_y="dnd-core/REMOVE_SOURCE",Gp="dnd-core/REMOVE_TARGET";function kV(e){return{type:ky,payload:{sourceId:e}}}function OV(e){return{type:Oy,payload:{targetId:e}}}function _V(e){return{type:_y,payload:{sourceId:e}}}function DV(e){return{type:Gp,payload:{targetId:e}}}function PV(e){Kt(typeof e.canDrag=="function","Expected canDrag to be a function."),Kt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Kt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function RV(e){Kt(typeof e.canDrop=="function","Expected canDrop to be a function."),Kt(typeof e.hover=="function","Expected hover to be a function."),Kt(typeof e.drop=="function","Expected beginDrag to be a function.")}function gm(e,t){if(t&&Array.isArray(e)){e.forEach(n=>gm(n,!1));return}Kt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ka;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ka||(ka={}));let IV=0;function AV(){return IV++}function MV(e){const t=AV().toString();switch(e){case ka.SOURCE:return`S${t}`;case ka.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function kx(e){switch(e[0]){case"S":return ka.SOURCE;case"T":return ka.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Ox(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===t)return!0;r=!!i}while(!r);return!1}class LV{addSource(t,n){gm(t),PV(n);const r=this.addHandler(ka.SOURCE,t,n);return this.store.dispatch(kV(r)),r}addTarget(t,n){gm(t,!0),RV(n);const r=this.addHandler(ka.TARGET,t,n);return this.store.dispatch(OV(r)),r}containsHandler(t){return Ox(this.dragSources,t)||Ox(this.dropTargets,t)}getSource(t,n=!1){return Kt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Kt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Kt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return kx(t)===ka.SOURCE}isTargetId(t){return kx(t)===ka.TARGET}removeSource(t){Kt(this.getSource(t),"Expected an existing source."),this.store.dispatch(_V(t)),EV(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Kt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(DV(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);Kt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){Kt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=MV(t);return this.types.set(i,n),t===ka.SOURCE?this.dragSources.set(i,r):t===ka.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const FV=(e,t)=>e===t;function NV(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function jV(e,t,n=FV){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function BV(e=wd,t){switch(t.type){case Wp:break;case ky:case Oy:case Gp:case _y:return wd;case Up:case Cy:case Yp:case zp:default:return Ey}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=U$(n,r);if(!(i.length>0||!jV(n,r)))return wd;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function $V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){$V(e,i,n[i])})}return e}const _x={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function HV(e=_x,t){const{payload:n}=t;switch(t.type){case Ty:case Up:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Wp:return NV(e.clientOffset,n.clientOffset)?e:VV({},e,{clientOffset:n.clientOffset});case Yp:case zp:return _x;default:return e}}function UV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UV(e,i,n[i])})}return e}const WV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function zV(e=WV,t){const{payload:n}=t;switch(t.type){case Up:return gf({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Cy:return gf({},e,{isSourcePublic:!0});case Wp:return gf({},e,{targetIds:n.targetIds});case Gp:return e.targetIds.indexOf(n.targetId)===-1?e:gf({},e,{targetIds:H$(e.targetIds,n.targetId)});case zp:return gf({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Yp:return gf({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function YV(e=0,t){switch(t.type){case ky:case Oy:return e+1;case _y:case Gp:return e-1;default:return e}}function GV(e=0){return e+1}function qV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){qV(e,i,n[i])})}return e}function KV(e={},t){return{dirtyHandlerIds:BV(e.dirtyHandlerIds,{type:t.type,payload:XV({},t.payload,{prevTargetIds:V$(e,"dragOperation.targetIds",[])})}),dragOffset:HV(e.dragOffset,t),refCount:YV(e.refCount,t),dragOperation:zV(e.dragOperation,t),stateId:GV(e.stateId)}}function ZV(e,t=void 0,n={},r=!1){const i=JV(r),o=new yV(i,new LV(i)),s=new hV(i,o),l=e(s,t,n);return s.receiveBackend(l),s}function JV(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return yE(KV,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function QV(e,t){if(e==null)return{};var n=e3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let Dx=0;const qh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var t3=X.memo(function(t){var{children:n}=t,r=QV(t,["children"]);const[i,o]=n3(r);return X.useEffect(()=>{if(o){const s=CE();return++Dx,()=>{--Dx===0&&(s[qh]=null)}}},[]),Ue.jsx(mE.Provider,{value:i,children:n})});function n3(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=r3(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function r3(e,t=CE(),n,r){const i=t;return i[qh]||(i[qh]={dragDropManager:ZV(e,t,n,r)}),i[qh]}function CE(){return typeof global<"u"?global:window}var i3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const o3=Mu(i3),Ac=typeof window<"u"?X.useLayoutEffect:X.useEffect;function EE(e,t,n){const[r,i]=X.useState(()=>t(e)),o=X.useCallback(()=>{const s=t(e);o3(r,s)||(i(s),n&&n())},[r,e,n]);return Ac(o),[r,o]}function a3(e,t,n){const[r,i]=EE(e,t,n);return Ac(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function kE(e,t,n){return a3(t,e||(()=>({})),()=>n.reconnect())}function OE(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),X.useMemo(()=>typeof e=="function"?e():e,n)}function s3(e){return X.useMemo(()=>e.hooks.dragSource(),[e])}function l3(e){return X.useMemo(()=>e.hooks.dragPreview(),[e])}let nv=!1,rv=!1;class u3{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Kt(!nv,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return nv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{nv=!1}}isDragging(){if(!this.sourceId)return!1;Kt(!rv,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{rv=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let iv=!1;class c3{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;Kt(!iv,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return iv=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{iv=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function f3(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function d3(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function vm(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const d=o[c];if(!l(d))return!1;const v=e[d],p=t[d];if(i=n?n.call(r,v,p,d):void 0,i===!1||i===void 0&&v!==p)return!1}return!0}function mm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function h3(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function p3(e){return(t=null,n=null)=>{if(!X.isValidElement(t)){const o=t;return e(o,n),o}const r=t;return h3(r),g3(r,n?o=>e(o,n):e)}}function _E(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=p3(r);t[n]=()=>i}}),t}function Px(e,t){typeof e=="function"?e(t):e.current=t}function g3(e,t){const n=e.ref;return Kt(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(e,{ref:r=>{Px(n,r),Px(t,r)}}):X.cloneElement(e,{ref:t})}class v3{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!vm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!vm(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=_E({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,mm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,mm(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class m3{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!vm(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=_E({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,mm(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Bl(){const{dragDropManager:e}=X.useContext(mE);return Kt(e!=null,"Expected drag drop context"),e}function y3(e,t){const n=Bl(),r=X.useMemo(()=>new v3(n.getBackend()),[n]);return Ac(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ac(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function b3(){const e=Bl();return X.useMemo(()=>new u3(e),[e])}class w3{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function x3(e,t,n){const r=X.useMemo(()=>new w3(e,t,n),[t,n]);return X.useEffect(()=>{r.spec=e},[e]),r}function S3(e){return X.useMemo(()=>{const t=e.type;return Kt(t!=null,"spec.type must be defined"),t},[e])}function T3(e,t,n){const r=Bl(),i=x3(e,t,n),o=S3(e);Ac(function(){if(o!=null){const[l,c]=d3(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,o])}function C3(e,t){const n=OE(e,t);Kt(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=b3(),i=y3(n.options,n.previewOptions);return T3(n,r,i),[kE(n.collect,r,i),s3(i),l3(i)]}function E3(e){const n=Bl().getMonitor(),[r,i]=EE(n,e);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function k3(e){return X.useMemo(()=>e.hooks.dropTarget(),[e])}function O3(e){const t=Bl(),n=X.useMemo(()=>new m3(t.getBackend()),[t]);return Ac(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function _3(){const e=Bl();return X.useMemo(()=>new c3(e),[e])}function D3(e){const{accept:t}=e;return X.useMemo(()=>(Kt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class P3{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function R3(e,t){const n=X.useMemo(()=>new P3(e,t),[t]);return X.useEffect(()=>{n.spec=e},[e]),n}function I3(e,t,n){const r=Bl(),i=R3(e,t),o=D3(e);Ac(function(){const[l,c]=f3(o,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,o.map(s=>s.toString()).join("|")])}function DE(e,t){const n=OE(e,t),r=_3(),i=O3(n.options);return I3(n,r,i),[kE(n.collect,r,i),k3(i)]}function ov(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A3(e,t,n){M3(e,t),t.set(e,n)}function M3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ph(e,t){var n=PE(e,t,"get");return L3(e,n)}function L3(e,t){return t.get?t.get.call(e):t.value}function F3(e,t,n){var r=PE(e,t,"set");return N3(e,r,n),n}function PE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function N3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var vf=new WeakMap;class j3{constructor(){A3(this,vf,{writable:!0,value:void 0}),ov(this,"register",t=>{Ph(this,vf).push(t)}),ov(this,"unregister",t=>{let n;for(;(n=Ph(this,vf).indexOf(t))!==-1;)Ph(this,vf).splice(n,1)}),ov(this,"backendChanged",t=>{for(const n of Ph(this,vf))n.backendChanged(t)}),F3(this,vf,[])}}function is(e,t,n){B3(e,t),t.set(e,n)}function B3(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function js(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){var n=RE(e,t,"get");return $3(e,n)}function $3(e,t){return t.get?t.get.call(e):t.value}function mf(e,t,n){var r=RE(e,t,"set");return V3(e,r,n),n}function RE(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function V3(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var Sa=new WeakMap,Rh=new WeakMap,Ta=new WeakMap,gu=new WeakMap,bc=new WeakMap,Rx=new WeakMap,Ix=new WeakMap,Ax=new WeakMap,av=new WeakMap,sv=new WeakMap,Ih=new WeakMap;class Pf{constructor(t,n,r){if(is(this,Sa,{writable:!0,value:void 0}),is(this,Rh,{writable:!0,value:void 0}),is(this,Ta,{writable:!0,value:void 0}),is(this,gu,{writable:!0,value:void 0}),is(this,bc,{writable:!0,value:void 0}),is(this,Rx,{writable:!0,value:(i,o,s)=>{var l,c;if(!s.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(s)));const d=s.backend(i,o,s.options);let v=s.id;const p=!s.id&&d&&d.constructor;if(p&&(v=d.constructor.name),v)p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
|
|
8
|
-
This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(s),`
|
|
9
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Jt(this,Ta)[v])throw new Error(`You must specify a unique 'id' property in your Backend entry:
|
|
10
|
-
`.concat(JSON.stringify(s)," (conflicts with: ").concat(JSON.stringify(Jt(this,Ta)[v]),")"));return{id:v,instance:d,preview:(l=s.preview)!==null&&l!==void 0?l:!1,transition:s.transition,skipDispatchOnTransition:(c=s.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),js(this,"setup",()=>{if(!(typeof window>"u")){if(Pf.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Pf.isSetUp=!0,Jt(this,Ix).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.setup()}}),js(this,"teardown",()=>{typeof window>"u"||(Pf.isSetUp=!1,Jt(this,Ax).call(this,window),Jt(this,Ta)[Jt(this,Sa)].instance.teardown())}),js(this,"connectDragSource",(i,o,s)=>Jt(this,Ih).call(this,"connectDragSource",i,o,s)),js(this,"connectDragPreview",(i,o,s)=>Jt(this,Ih).call(this,"connectDragPreview",i,o,s)),js(this,"connectDropTarget",(i,o,s)=>Jt(this,Ih).call(this,"connectDropTarget",i,o,s)),js(this,"profile",()=>Jt(this,Ta)[Jt(this,Sa)].instance.profile()),js(this,"previewEnabled",()=>Jt(this,Ta)[Jt(this,Sa)].preview),js(this,"previewsList",()=>Jt(this,Rh)),js(this,"backendsList",()=>Jt(this,gu)),is(this,Ix,{writable:!0,value:i=>{Jt(this,gu).forEach(o=>{o.transition&&i.addEventListener(o.transition.event,Jt(this,av))})}}),is(this,Ax,{writable:!0,value:i=>{Jt(this,gu).forEach(o=>{o.transition&&i.removeEventListener(o.transition.event,Jt(this,av))})}}),is(this,av,{writable:!0,value:i=>{const o=Jt(this,Sa);if(Jt(this,gu).some(l=>l.id!==Jt(this,Sa)&&l.transition&&l.transition.check(i)?(mf(this,Sa,l.id),!0):!1),Jt(this,Sa)!==o){var s;Jt(this,Ta)[o].instance.teardown(),Object.keys(Jt(this,bc)).forEach(v=>{const p=Jt(this,bc)[v];p.unsubscribe(),p.unsubscribe=Jt(this,sv).call(this,p.func,...p.args)}),Jt(this,Rh).backendChanged(this);const l=Jt(this,Ta)[Jt(this,Sa)];if(l.instance.setup(),l.skipDispatchOnTransition)return;const c=i.constructor,d=new c(i.type,i);(s=i.target)===null||s===void 0||s.dispatchEvent(d)}}}),is(this,sv,{writable:!0,value:(i,o,s,l)=>Jt(this,Ta)[Jt(this,Sa)].instance[i](o,s,l)}),is(this,Ih,{writable:!0,value:(i,o,s,l)=>{const c="".concat(i,"_").concat(o),d=Jt(this,sv).call(this,i,o,s,l);return Jt(this,bc)[c]={func:i,args:[o,s,l],unsubscribe:d},()=>{Jt(this,bc)[c].unsubscribe(),delete Jt(this,bc)[c]}}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
11
|
-
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);mf(this,Rh,new j3),mf(this,Ta,{}),mf(this,gu,[]),r.backends.forEach(i=>{const o=Jt(this,Rx).call(this,t,n,i);Jt(this,Ta)[o.id]=o,Jt(this,gu).push(o)}),mf(this,Sa,Jt(this,gu)[0].id),mf(this,bc,{})}}js(Pf,"isSetUp",!1);const H3=(e,t,n)=>new Pf(e,t,n),IE=(e,t)=>({event:e,check:t}),U3=IE("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),W3=IE("pointerdown",e=>e.pointerType=="mouse");var Cu;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(Cu||(Cu={}));class z3{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var t,n,r,i;return(i=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function Y3(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function G3(e,t,n,r,i){if(!i)return!1;const o=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let s=0;s<i.length;++s){const l=i[s];if(l&&(l.start==null||o>=l.start)&&(l.end==null||o<=l.end))return!0}return!1}const q3={Left:1,Right:2,Center:4},X3={Left:0,Center:1,Right:2};function lv(e){return e.button===void 0||e.button===X3.Left}function K3(e){return e.buttons===void 0||(e.buttons&q3.Left)===0}function AE(e){return!!e.targetTouches}const Z3=1;function J3(e){const t=e.nodeType===Z3?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Q3(e,t){if(e.targetTouches.length===1)return vp(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return vp(e.touches[0])}function vp(e,t){return AE(e)?Q3(e,t):{x:e.clientX,y:e.clientY}}const Mx=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return e=!0,!0}}))}catch{}return e})(),ad={[Cu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[Cu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[Cu.keyboard]:{keydown:"keydown"}};class xd{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(Kt(!xd.isSetUp,"Cannot have two Touch backends at the same time."),xd.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(xd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,i=!1){const o=Mx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=ad[s][n];l&&t.addEventListener(l,r,o)})}removeEventListener(t,n,r,i=!1){const o=Mx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(s){const l=ad[s][n];l&&t.removeEventListener(l,r,o)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let s;switch(o.type){case ad.mouse.move:s={x:o.clientX,y:o.clientY};break;case ad.touch.move:var l,c;s={x:((l=o.touches[0])===null||l===void 0?void 0:l.clientX)||0,y:((c=o.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const d=s!=null?this.document.elementFromPoint(s.x,s.y):void 0,v=d&&n.contains(d);if(d===n||v)return this.handleMove(o,t)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&J3(o)},this.handleTopMoveStartCapture=i=>{lv(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!lv(i))return;const o=vp(i);o&&(AE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!lv(i))return;const o=i.type===ad.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:s}=this,l=this.options.enableHoverOutsideTarget,c=vp(i,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&G3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&Y3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const d=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(d),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const v=(s||[]).map(_=>this.targetNodes.get(_)).filter(_=>!!_),p=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,v):this.document.elementsFromPoint(c.x,c.y),x=[];for(const _ in p){if(!p.hasOwnProperty(_))continue;let I=p[_];for(I!=null&&x.push(I);I;)I=I.parentElement,I&&x.indexOf(I)===-1&&x.push(I)}const T=x.filter(_=>v.indexOf(_)>-1).map(_=>this._getDropTargetId(_)).filter(_=>!!_).filter((_,I,L)=>L.indexOf(_)===I);if(l)for(const _ in this.targetNodes){const I=this.targetNodes.get(_);if(d&&I&&I.contains(d)&&T.indexOf(_)===-1){T.unshift(_);break}}T.reverse(),this.actions.hover(T,{clientOffset:c})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let s=o.next();for(;s.done===!1;){const l=s.value;if(i===this.targetNodes.get(l))return l;s=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!K3(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 z3(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(Cu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(Cu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(Cu.keyboard)}}const eH=function(t,n={},r={}){return new xd(t,n,r)};var Da=function(){return Da=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Da.apply(this,arguments)};function so(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function tH(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,i=e.duration,o=e.variants,s=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,l=e.children,c=P$({polyfill:Q2}),d=c[0],v=c[1].height,p=X.useState(t),x=p[0],T=p[1],_=X.useState(t),I=_[0],L=_[1],R=X.useState(!1),U=R[0],W=R[1],te=function(){W(!1),t||T(!1)};return X.useEffect(function(){W(!0),t?T(!0):L(!1)},[t]),X.useEffect(function(){x&&L(!0)},[v]),X.createElement(_$.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:te,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:s,transition:{ease:r,duration:nH(v,i)}},X.createElement("div",{ref:d},x&&l))}function nH(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var rH=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},sd=function(e,t){return e.find(function(n){return n.id===t})},ME=function(e,t,n){if(n===0)return!1;var r=e.find(function(i){return i.id===n});return r===void 0?!1:r.parent===t?!0:ME(e,t,r.parent)},Dy=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Pu=function(e,t,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(e===null){if(t===i)return!0;var s=r.find(function(v){return v.id===t});return!!(s&&s.droppable)}else{var l=Dy(e)?e.id:null;if(o){var c=o(l,t);if(c!==void 0)return c}if(l===t)return!1;var d=r.find(function(p){return p.id===l}),s=r.find(function(p){return p.id===t});return d===void 0||l===null?t===i||!!(s!=null&&s.droppable):s===void 0?d.parent!==0:d.parent===t||!s.droppable?!1:!ME(r,l,t)}},iH=function(e,t,n){return e.map(function(r){return r.id===t?Da(Da({},r),{parent:n}):r})},LE=function(e,t,n){if(n===0)return 0;var r=e.filter(function(i){return i.parent===t});return r[n]?e.findIndex(function(i){return i.id===r[n].id}):e.findIndex(function(i){return i.id===r[n-1].id})+1},oH=function(e,t){return e.findIndex(function(n){return n.id===t})},FE=function(e,t,n,r){var i=oH(e,t),o=LE(e,n,r);return o=o>i?o-1:o,[i,o]},aH=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var i=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(i,0,o)}},sH=function(e,t,n,r){var i=FE(e,t,n,r),o=i[0],s=i[1],l=so([],e,!0);return aH(l,o,s),l.map(function(c){return c.id===t?Da(Da({},c),{parent:n}):c})},lH=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},ym=function(e,t){var n="",r=0;return e.forEach(function(i,o){var s,l=lH(i,((s=t.getClientOffset())===null||s===void 0?void 0:s.y)||0);n===""?n=l:n!==l&&(n=l,r=o),o===e.length-1&&l==="down"&&(r=o+1)}),r},Lx=function(e,t,n){var r=t.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?ym(i,n):null},uH=function(e,t,n){var r=e.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,s=r.bottom-i;return t>s?"lower":t<o?"upper":"middle"},bm=function(e,t,n,r){var i;if(!t)return null;if(e===null){var o=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:ym(o,n)}}var s=n.getItem(),l=t.querySelector('[role="list"]'),c=uH(t,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(l){if(c==="upper")if(Pu(s,e.parent,r)){var d=Lx(e,t,n);return d===null?null:{id:e.parent,index:d}}else return{id:e.id,index:0};var o=l.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:ym(o,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Pu(s,e.parent,r)){var d=Lx(e,t,n);return d===null?null:{id:e.parent,index:d}}return null}},cH=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:I2,options:e.html5,transition:W3},{id:"touch",backend:eH,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:U3}]}},Xh=function(e,t){return e.some(function(n){return n.parent===t})},NE=X.createContext({}),fH=function(e){var t=xH(e.tree,e.initialOpen),n=t[0],r=t[1],i=r.handleToggle,o=r.handleCloseAll,s=r.handleOpenAll,l=r.handleOpen,c=r.handleClose;X.useImperativeHandle(e.treeRef,function(){return{open:function(T){return l(T,e.onChangeOpen)},close:function(T){return c(T,e.onChangeOpen)},openAll:function(){return s(e.onChangeOpen)},closeAll:function(){return o(e.onChangeOpen)}}});var d=Bl().getMonitor(),v=e.canDrop,p=e.canDrag,x=Da(Da({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(T,_,I){if(T){var L={dragSourceId:T.id,dropTargetId:_,dragSource:T,dropTarget:sd(e.tree,_),monitor:d},R=e.tree;if(sd(R,T.id)||(R=so(so([],R,!0),[T],!1)),e.sort===!1){var U=FE(R,T.id,_,I),W=U[1];L.destinationIndex=W,L.relativeIndex=I,e.onDrop(sH(R,T.id,_,I),L);return}e.onDrop(iH(R,T.id,_),L)}else{var L={dropTargetId:_,dropTarget:sd(e.tree,_),monitor:d};e.sort===!1&&(L.destinationIndex=LE(e.tree,_,I),L.relativeIndex=I),e.onDrop(e.tree,L)}},canDrop:v?function(T,_){return v(e.tree,{dragSourceId:T??void 0,dropTargetId:_,dragSource:d.getItem(),dropTarget:sd(e.tree,_),monitor:d})}:void 0,canDrag:p?function(T){return p(sd(e.tree,T))}:void 0,onToggle:function(T){return i(T,e.onChangeOpen)}});return X.createElement(NE.Provider,{value:x},e.children)},jE=X.createContext({}),dH={isLock:!1},hH=function(e){var t=X.useState(dH.isLock),n=t[0],r=t[1];return X.createElement(jE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Kd=X.createContext({}),Ah={dropTargetId:void 0,index:void 0},pH=function(e){var t=X.useState(Ah.dropTargetId),n=t[0],r=t[1],i=X.useState(Ah.index),o=i[0],s=i[1],l=function(d,v){r(d),s(v)},c=function(){r(Ah.dropTargetId),s(Ah.index)};return X.createElement(Kd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:l,hidePlaceholder:c}},e.children)},gH=function(e){return X.createElement(fH,Da({},e),X.createElement(hH,null,X.createElement(pH,null,e.children)))},vH=function(e){var t=X.useContext(jE);X.useEffect(function(){if(e.current){var n=e.current,r=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.lock()},i=function(v){var p=v.target;(p instanceof HTMLInputElement||p instanceof HTMLTextAreaElement)&&t.unlock()},o=function(v){return r(v)},s=function(v){return i(v)},l=function(v){return r(v)},c=function(v){return i(v)},d=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return d.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",s),n.addEventListener("focusin",l),n.addEventListener("focusout",c),function(){d.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",s),n.removeEventListener("focusin",l),n.removeEventListener("focusout",c)}}},[e,t]),X.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},qp={TREE_ITEM:Symbol()},BE=null,$E=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(BE=n)}},Fx=function(e){return $E(e)},Nx=function(e){return $E(e)},mH=function(e,t){var n=Lu();X.useEffect(function(){var l=t.current;return l==null||l.addEventListener("dragstart",Fx),l==null||l.addEventListener("touchstart",Nx,{passive:!0}),function(){l==null||l.removeEventListener("dragstart",Fx),l==null||l.removeEventListener("touchstart",Nx)}},[t]);var r=C3({type:qp.TREE_ITEM,item:function(l){var c=Da({ref:t},e);return n.onDragStart&&n.onDragStart(c,l),c},end:function(l,c){var d=l;n.onDragEnd&&n.onDragEnd(d,c)},canDrag:function(){var l=n.canDrag;return BE!==t.current?!1:l?l(e.id):!0},collect:function(l){return{isDragging:l.isDragging()}}}),i=r[0].isDragging,o=r[1],s=r[2];return[i,o,s]},yH=function(e,t,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!t&&(i.current=window.setTimeout(function(){return n(e)},500))},s=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},l=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:s,onDrop:l}},bH=function(e){var t=Lu(),n=X.useContext(Kd),r=DE({accept:so([qp.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,d){var v=t.rootId,p=t.onDrop,x=n.dropTargetId,T=n.index;d.isOver({shallow:!0})&&x!==void 0&&T!==void 0&&p(Dy(c)?c:null,v,T),n.hidePlaceholder()},canDrop:function(c,d){var v=t.rootId;return d.isOver({shallow:!0})?c===void 0?!1:Pu(c,v,t):!1},hover:function(c,d){if(d.isOver({shallow:!0})){var v=t.rootId,p=n.dropTargetId,x=n.index,T=n.showPlaceholder,_=n.hidePlaceholder,I=bm(null,e.current,d,t);if(I===null||!Pu(c,v,t)){_();return}(I.id!==p||I.index!==x)&&T(I.id,I.index)}},collect:function(c){var d=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:d}}}),i=r[0],o=i.isOver,s=i.dragSource,l=r[1];return[o,s,l]},wH=function(e,t){var n=Lu(),r=X.useContext(Kd),i=DE({accept:so([qp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(d,v){var p=r.dropTargetId,x=r.index;v.isOver({shallow:!0})&&p!==void 0&&x!==void 0&&n.onDrop(Dy(d)?d:null,p,x),r.hidePlaceholder()},canDrop:function(d,v){if(v.isOver({shallow:!0})){var p=bm(e,t.current,v,n);return p===null?!1:Pu(d,p.id,n)}return!1},hover:function(d,v){if(v.isOver({shallow:!0})){var p=r.dropTargetId,x=r.index,T=r.showPlaceholder,_=r.hidePlaceholder,I=bm(e,t.current,v,n);if(I===null||!Pu(d,I.id,n)){_();return}(I.id!==p||I.index!==x)&&T(I.id,I.index)}},collect:function(d){var v=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:v}}}),o=i[0],s=o.isOver,l=o.dragSource,c=i[1];return[s,l,c]},xH=function(e,t){var n=X.useMemo(function(){return t===!0?e.filter(function(p){return Xh(e,p.id)}).map(function(p){return p.id}):Array.isArray(t)?t:[]},[t]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[t]);var s=function(p,x){var T=i.includes(p)?i.filter(function(_){return _!==p}):so(so([],i,!0),[p],!1);o(T),x&&x(T)},l=function(p){o([]),p&&p([])},c=function(p){var x=e.filter(function(T){return Xh(e,T.id)}).map(function(T){return T.id});o(x),p&&p(x)},d=function(p,x){var T=[];if(Array.isArray(p)){var _=e.filter(function(I){return p.includes(I.id)&&Xh(e,I.id)});T=so(so([],i,!0),_.map(function(I){return I.id}),!0).filter(function(I,L,R){return R.indexOf(I)===L})}else T=i.includes(p)?i:so(so([],i,!0),[p],!1);o(T),x&&x(T)},v=function(p,x){var T=i.filter(function(_){return Array.isArray(p)?!p.includes(_):_!==p});o(T),x&&x(T)};return[i,{handleToggle:s,handleCloseAll:l,handleOpenAll:c,handleOpen:d,handleClose:v}]},SH=function(){return E3(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===qp.TREE_ITEM}})},Lu=function(){var e=X.useContext(NE);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},TH=function(e,t){var n=Lu(),r=n.rootId,i=n.rootProps,o=n.classes,s=(o==null?void 0:o.container)||"";return t&&(o!=null&&o.dropTarget)&&(s="".concat(s," ").concat(o.dropTarget)),e===r&&(o!=null&&o.root)&&(s="".concat(s," ").concat(o.root)),e===r&&(i!=null&&i.className)&&(s="".concat(s," ").concat(i.className)),s=s.trim(),s},CH=function(e,t,n){t.current?n(t):n(e),X.useEffect(function(){t.current?n(t):n(e)},[t.current])},EH=function(e){var t=Lu(),n=X.useContext(Kd),r=X.useRef(null),i=X.useRef(null),o=t.tree.find(function(ce){return ce.id===e.id}),s=t.openIds,l=t.classes,c=t.enableAnimateExpand,d=s.includes(e.id),v=mH(o,r),p=v[0],x=v[1],T=v[2],_=wH(o,r),I=_[0],L=_[1],R=_[2];CH(r,i,x),Pu(L,e.id,t)&&R(r),X.useEffect(function(){t.dragPreviewRender?T(R2(),{captureDraggingState:!0}):i.current&&T(r)},[T,t.dragPreviewRender]),vH(r);var U=function(){return t.onToggle(o.id)},W=t.listItemComponent,te=(l==null?void 0:l.listItem)||"";I&&(l!=null&&l.dropTarget)&&(te="".concat(te," ").concat(l.dropTarget)),p&&(l!=null&&l.draggingSource)&&(te="".concat(te," ").concat(l.draggingSource));var J=t.canDrag?t.canDrag(e.id):!0,pe=n.dropTargetId===e.id,S={depth:e.depth,isOpen:d,isDragging:p,isDropTarget:pe,draggable:J,hasChild:Xh(t.tree,e.id),containerRef:r,handleRef:i,onToggle:U};return X.createElement(W,{ref:r,className:te,role:"listitem"},t.render(o,S),c&&S.hasChild&&X.createElement(tH,{isVisible:d},X.createElement(wm,{parentId:e.id,depth:e.depth+1})),!c&&S.hasChild&&d&&X.createElement(wm,{parentId:e.id,depth:e.depth+1}))},jx=function(e){var t=Lu(),n=t.placeholderRender,r=t.placeholderComponent,i=t.classes,o=X.useContext(Kd),s=Bl(),l=s.getMonitor(),c=l.getItem();if(!n||!c)return null;var d=e.dropTargetId===o.dropTargetId&&(e.index===o.index||e.index===void 0&&e.listCount===o.index);return d?X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(c,{depth:e.depth})):null},wm=function(e){var t=Lu(),n=X.useRef(null),r=t.tree.filter(function(I){return I.parent===e.parentId}),i=r,o=typeof t.sort=="function"?t.sort:rH;if(t.insertDroppableFirst){var s=r.filter(function(I){return I.droppable}),l=r.filter(function(I){return!I.droppable});t.sort===!1?i=so(so([],s,!0),l,!0):(s=s.sort(o),l=l.sort(o),i=so(so([],s,!0),l,!0))}else t.sort!==!1&&(i=r.sort(o));var c=bH(n),d=c[0],v=c[1],p=c[2];e.parentId===t.rootId&&Pu(v,t.rootId,t)&&p(n);var x=TH(e.parentId,d),T=t.rootProps||{},_=t.listComponent;return X.createElement(_,Da({ref:n,role:"list"},T,{className:x}),i.map(function(I,L){return X.createElement(X.Fragment,{key:I.id},X.createElement(jx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId,index:L}),X.createElement(EH,{id:I.id,depth:e.depth}))}),X.createElement(jx,{depth:e.depth,listCount:i.length,dropTargetId:e.parentId}))},kH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},OH=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},_H=function(){var e=Lu(),t=SH(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:X.createElement("div",{style:kH},X.createElement("div",{style:OH(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function DH(e,t){return X.createElement(gH,Da({},e,{treeRef:t}),e.dragPreviewRender&&X.createElement(_H,null),X.createElement(wm,{parentId:e.rootId,depth:0}))}var PH=X.forwardRef(DH);const VE=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xp=X.createContext({}),Py=X.createContext(null),Kp=typeof document<"u",RH=Kp?X.useLayoutEffect:X.useEffect,HE=X.createContext({strict:!1}),Ry=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),IH="framerAppearId",UE="data-"+Ry(IH);function AH(e,t,n,r){const{visualElement:i}=X.useContext(Xp),o=X.useContext(HE),s=X.useContext(Py),l=X.useContext(VE).reducedMotion,c=X.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=c.current;X.useInsertionEffect(()=>{d&&d.update(n,s)});const v=X.useRef(!!(n[UE]&&!window.HandoffComplete));return RH(()=>{d&&(d.render(),v.current&&d.animationState&&d.animationState.animateChanges())}),X.useEffect(()=>{d&&(d.updateFeatures(),!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(v.current=!1,window.HandoffComplete=!0))}),d}function Tf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MH(e,t,n){return X.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tf(n)&&(n.current=r))},[t])}function Nd(e){return typeof e=="string"||Array.isArray(e)}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Iy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ay=["initial",...Iy];function Jp(e){return Zp(e.animate)||Ay.some(t=>Nd(e[t]))}function WE(e){return!!(Jp(e)||e.variants)}function LH(e,t){if(Jp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nd(n)?n:void 0,animate:Nd(r)?r:void 0}}return e.inherit!==!1?t:{}}function FH(e){const{initial:t,animate:n}=LH(e,X.useContext(Xp));return X.useMemo(()=>({initial:t,animate:n}),[Bx(t),Bx(n)])}function Bx(e){return Array.isArray(e)?e.join(" "):e}const $x={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"]},jd={};for(const e in $x)jd[e]={isEnabled:t=>$x[e].some(n=>!!t[n])};function NH(e){for(const t in e)jd[t]={...jd[t],...e[t]}}const zE=X.createContext({}),YE=X.createContext({}),jH=Symbol.for("motionComponentSymbol");function BH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&NH(e);function o(l,c){let d;const v={...X.useContext(VE),...l,layoutId:$H(l)},{isStatic:p}=v,x=FH(l),T=r(l,p);if(!p&&Kp){x.visualElement=AH(i,T,v,t);const _=X.useContext(YE),I=X.useContext(HE).strict;x.visualElement&&(d=x.visualElement.loadFeatures(v,I,e,_))}return Tn.createElement(Xp.Provider,{value:x},d&&x.visualElement?Tn.createElement(d,{visualElement:x.visualElement,...v}):null,n(i,l,MH(T,x.visualElement,c),T,p,x.visualElement))}const s=X.forwardRef(o);return s[jH]=i,s}function $H({layoutId:e}){const t=X.useContext(zE).id;return t&&e!==void 0?t+"-"+e:e}function VH(e){function t(r,i={}){return BH(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const HH=["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 My(e){return typeof e!="string"||e.includes("-")?!1:!!(HH.indexOf(e)>-1||/[A-Z]/.test(e))}const mp={};function UH(e){Object.assign(mp,e)}const Zd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bc=new Set(Zd);function GE(e,{layout:t,layoutId:n}){return Bc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mp[e]||e==="opacity")}const Do=e=>!!(e&&e.getVelocity),WH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zH=Zd.length;function YH(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<zH;s++){const l=Zd[s];if(e[l]!==void 0){const c=WH[l]||l;o+=`${c}(${e[l]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const qE=e=>t=>typeof t=="string"&&t.startsWith(e),XE=qE("--"),xm=qE("var(--"),GH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,qH=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ru=(e,t,n)=>Math.min(Math.max(n,e),t),$c={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sd={...$c,transform:e=>Ru(0,1,e)},Mh={...$c,default:1},Td=e=>Math.round(e*1e5)/1e5,Qp=/(-)?([\d]*\.?[\d])+/g,KE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,XH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Jd(e){return typeof e=="string"}const Qd=e=>({test:t=>Jd(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yu=Qd("deg"),Us=Qd("%"),Bt=Qd("px"),KH=Qd("vh"),ZH=Qd("vw"),Vx={...Us,parse:e=>Us.parse(e)/100,transform:e=>Us.transform(e*100)},Hx={...$c,transform:Math.round},ZE={borderWidth:Bt,borderTopWidth:Bt,borderRightWidth:Bt,borderBottomWidth:Bt,borderLeftWidth:Bt,borderRadius:Bt,radius:Bt,borderTopLeftRadius:Bt,borderTopRightRadius:Bt,borderBottomRightRadius:Bt,borderBottomLeftRadius:Bt,width:Bt,maxWidth:Bt,height:Bt,maxHeight:Bt,size:Bt,top:Bt,right:Bt,bottom:Bt,left:Bt,padding:Bt,paddingTop:Bt,paddingRight:Bt,paddingBottom:Bt,paddingLeft:Bt,margin:Bt,marginTop:Bt,marginRight:Bt,marginBottom:Bt,marginLeft:Bt,rotate:yu,rotateX:yu,rotateY:yu,rotateZ:yu,scale:Mh,scaleX:Mh,scaleY:Mh,scaleZ:Mh,skew:yu,skewX:yu,skewY:yu,distance:Bt,translateX:Bt,translateY:Bt,translateZ:Bt,x:Bt,y:Bt,z:Bt,perspective:Bt,transformPerspective:Bt,opacity:Sd,originX:Vx,originY:Vx,originZ:Bt,zIndex:Hx,fillOpacity:Sd,strokeOpacity:Sd,numOctaves:Hx};function Ly(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let c=!1,d=!1,v=!0;for(const p in t){const x=t[p];if(XE(p)){o[p]=x;continue}const T=ZE[p],_=qH(x,T);if(Bc.has(p)){if(c=!0,s[p]=_,!v)continue;x!==(T.default||0)&&(v=!1)}else p.startsWith("origin")?(d=!0,l[p]=_):i[p]=_}if(t.transform||(c||r?i.transform=YH(e.transform,n,v,r):i.transform&&(i.transform="none")),d){const{originX:p="50%",originY:x="50%",originZ:T=0}=l;i.transformOrigin=`${p} ${x} ${T}`}}const Fy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function JE(e,t,n){for(const r in t)!Do(t[r])&&!GE(r,n)&&(e[r]=t[r])}function JH({transformTemplate:e},t,n){return X.useMemo(()=>{const r=Fy();return Ly(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function QH(e,t,n){const r=e.style||{},i={};return JE(i,r,e),Object.assign(i,JH(e,t,n)),e.transformValues?e.transformValues(i):i}function eU(e,t,n){const r={},i=QH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const tU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tU.has(e)}let QE=e=>!yp(e);function nU(e){e&&(QE=t=>t.startsWith("on")?!yp(t):e(t))}try{nU(require("@emotion/is-prop-valid").default)}catch{}function rU(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(QE(i)||n===!0&&yp(i)||!t&&!yp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ux(e,t,n){return typeof e=="string"?e:Bt.transform(t+n*e)}function iU(e,t,n){const r=Ux(t,e.x,e.width),i=Ux(n,e.y,e.height);return`${r} ${i}`}const oU={offset:"stroke-dashoffset",array:"stroke-dasharray"},aU={offset:"strokeDashoffset",array:"strokeDasharray"};function sU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?oU:aU;e[o.offset]=Bt.transform(-r);const s=Bt.transform(t),l=Bt.transform(n);e[o.array]=`${s} ${l}`}function Ny(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:c=0,...d},v,p,x){if(Ly(e,d,v,x),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:T,style:_,dimensions:I}=e;T.transform&&(I&&(_.transform=T.transform),delete T.transform),I&&(i!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=iU(I,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(T.x=t),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),s!==void 0&&sU(T,s,l,c,!1)}const ek=()=>({...Fy(),attrs:{}}),jy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lU(e,t,n,r){const i=X.useMemo(()=>{const o=ek();return Ny(o,t,{enableHardwareAcceleration:!1},jy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};JE(o,e.style,e),i.style={...o,...i.style}}return i}function uU(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(My(n)?lU:eU)(r,o,s,n),v={...rU(r,typeof n=="string",e),...c,ref:i},{children:p}=r,x=X.useMemo(()=>Do(p)?p.get():p,[p]);return X.createElement(n,{...v,children:x})}}function tk(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const nk=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 rk(e,t,n,r){tk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(nk.has(i)?i:Ry(i),t.attrs[i])}function By(e,t){const{style:n}=e,r={};for(const i in n)(Do(n[i])||t.style&&Do(t.style[i])||GE(i,e))&&(r[i]=n[i]);return r}function ik(e,t){const n=By(e,t);for(const r in e)if(Do(e[r])||Do(t[r])){const i=Zd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function $y(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function cU(e){const t=X.useRef(null);return t.current===null&&(t.current=e()),t.current}const bp=e=>Array.isArray(e),fU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dU=e=>bp(e)?e[e.length-1]||0:e;function Kh(e){const t=Do(e)?e.get():e;return fU(t)?t.toValue():t}function hU({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:pU(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const ok=e=>(t,n)=>{const r=X.useContext(Xp),i=X.useContext(Py),o=()=>hU(e,t,r,i);return n?o():cU(o)};function pU(e,t,n,r){const i={},o=r(e,{});for(const x in o)i[x]=Kh(o[x]);let{initial:s,animate:l}=e;const c=Jp(e),d=WE(e);t&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let v=n?n.initial===!1:!1;v=v||s===!1;const p=v?l:s;return p&&typeof p!="boolean"&&!Zp(p)&&(Array.isArray(p)?p:[p]).forEach(T=>{const _=$y(e,T);if(!_)return;const{transitionEnd:I,transition:L,...R}=_;for(const U in R){let W=R[U];if(Array.isArray(W)){const te=v?W.length-1:0;W=W[te]}W!==null&&(i[U]=W)}for(const U in I)i[U]=I[U]}),i}const ur=e=>e;class Wx{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function gU(e){let t=new Wx,n=new Wx,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(c,d=!1,v=!1)=>{const p=v&&i,x=p?t:n;return d&&s.add(c),x.add(c)&&p&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let d=0;d<r;d++){const v=t.order[d];v(c),s.has(v)&&(l.schedule(v),e())}i=!1,o&&(o=!1,l.process(c))}};return l}const Lh=["prepare","read","update","preRender","render","postRender"],vU=40;function mU(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Lh.reduce((p,x)=>(p[x]=gU(()=>n=!0),p),{}),s=p=>o[p].process(i),l=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,vU),1),i.timestamp=p,i.isProcessing=!0,Lh.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},c=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:Lh.reduce((p,x)=>{const T=o[x];return p[x]=(_,I=!1,L=!1)=>(n||c(),T.schedule(_,I,L)),p},{}),cancel:p=>Lh.forEach(x=>o[x].cancel(p)),state:i,steps:o}}const{schedule:Un,cancel:Nl,state:ji,steps:uv}=mU(typeof requestAnimationFrame<"u"?requestAnimationFrame:ur,!0),yU={useVisualState:ok({scrapeMotionValuesFromProps:ik,createRenderState:ek,onMount:(e,t,{renderState:n,latestValues:r})=>{Un.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Un.render(()=>{Ny(n,r,{enableHardwareAcceleration:!1},jy(t.tagName),e.transformTemplate),rk(t,n)})}})},bU={useVisualState:ok({scrapeMotionValuesFromProps:By,createRenderState:Fy})};function wU(e,{forwardMotionProps:t=!1},n,r){return{...My(e)?yU:bU,preloadedFeatures:n,useRender:uU(t),createVisualElement:r,Component:e}}function _l(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ak=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function eg(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xU=e=>t=>ak(t)&&e(t,eg(t));function Rl(e,t,n,r){return _l(e,t,xU(n),r)}const SU=(e,t)=>n=>t(e(n)),Eu=(...e)=>e.reduce(SU);function sk(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const zx=sk("dragHorizontal"),Yx=sk("dragVertical");function lk(e){let t=!1;if(e==="y")t=Yx();else if(e==="x")t=zx();else{const n=zx(),r=Yx();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function uk(){const e=lk(!0);return e?(e(),!1):!0}class Fu{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gx(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||uk())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&Un.update(()=>l[r](o,s))};return Rl(e.current,n,i,{passive:!e.getProps()[r]})}class TU extends Fu{mount(){this.unmount=Eu(Gx(this.node,!0),Gx(this.node,!1))}unmount(){}}class CU extends Fu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Eu(_l(this.node.current,"focus",()=>this.onFocus()),_l(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ck=(e,t)=>t?e===t?!0:ck(e,t.parentElement):!1;function cv(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eg(n))}class EU extends Fu{constructor(){super(...arguments),this.removeStartListeners=ur,this.removeEndListeners=ur,this.removeAccessibleListeners=ur,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Rl(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:v,globalTapTarget:p}=this.node.getProps();Un.update(()=>{!p&&!ck(this.node.current,l.target)?v&&v(l,c):d&&d(l,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=Rl(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Eu(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||cv("up",(c,d)=>{const{onTap:v}=this.node.getProps();v&&Un.update(()=>v(c,d))})};this.removeEndListeners(),this.removeEndListeners=_l(this.node.current,"keyup",s),cv("down",(l,c)=>{this.startPress(l,c)})},n=_l(this.node.current,"keydown",t),r=()=>{this.isPressing&&cv("cancel",(o,s)=>this.cancelPress(o,s))},i=_l(this.node.current,"blur",r);this.removeAccessibleListeners=Eu(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Un.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!uk()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Un.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Rl(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=_l(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Eu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Sm=new WeakMap,fv=new WeakMap,kU=e=>{const t=Sm.get(e.target);t&&t(e)},OU=e=>{e.forEach(kU)};function _U({root:e,...t}){const n=e||document;fv.has(n)||fv.set(n,{});const r=fv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(OU,{root:e,...t})),r[i]}function DU(e,t,n){const r=_U(t);return Sm.set(e,n),r.observe(e),()=>{Sm.delete(e),r.unobserve(e)}}const PU={some:0,all:1};class RU extends Fu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:PU[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:v,onViewportLeave:p}=this.node.getProps(),x=d?v:p;x&&x(c)};return DU(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(IU(t,n))&&this.startObserver()}unmount(){}}function IU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const AU={inView:{Feature:RU},tap:{Feature:EU},focus:{Feature:CU},hover:{Feature:TU}};function fk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function MU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function LU(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tg(e,t,n){const r=e.getProps();return $y(r,t,n!==void 0?n:r.custom,MU(e),LU(e))}let eh=ur,ls=ur;process.env.NODE_ENV!=="production"&&(eh=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ls=(e,t)=>{if(!e)throw new Error(t)});const ku=e=>e*1e3,Il=e=>e/1e3,FU={current:!1},dk=e=>Array.isArray(e)&&typeof e[0]=="number";function hk(e){return!!(!e||typeof e=="string"&&pk[e]||dk(e)||Array.isArray(e)&&e.every(hk))}const cd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cd([0,.65,.55,1]),circOut:cd([.55,0,1,.45]),backIn:cd([.31,.01,.66,-.59]),backOut:cd([.33,1.53,.69,.99])};function gk(e){if(e)return dk(e)?cd(e):Array.isArray(e)?e.map(gk):pk[e]}function NU(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:c}={}){const d={[t]:n};c&&(d.offset=c);const v=gk(l);return Array.isArray(v)&&(d.easing=v),e.animate(d,{delay:r,duration:i,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function jU(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const vk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,BU=1e-7,$U=12;function VU(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=vk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>BU&&++l<$U);return s}function th(e,t,n,r){if(e===t&&n===r)return ur;const i=o=>VU(o,0,1,e,n);return o=>o===0||o===1?o:vk(i(o),t,r)}const HU=th(.42,0,1,1),UU=th(0,0,.58,1),mk=th(.42,0,.58,1),WU=e=>Array.isArray(e)&&typeof e[0]!="number",yk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bk=e=>t=>1-e(1-t),Vy=e=>1-Math.sin(Math.acos(e)),wk=bk(Vy),zU=yk(Vy),xk=th(.33,1.53,.69,.99),Hy=bk(xk),YU=yk(Hy),GU=e=>(e*=2)<1?.5*Hy(e):.5*(2-Math.pow(2,-10*(e-1))),qx={linear:ur,easeIn:HU,easeInOut:mk,easeOut:UU,circIn:Vy,circInOut:zU,circOut:wk,backIn:Hy,backInOut:YU,backOut:xk,anticipate:GU},Xx=e=>{if(Array.isArray(e)){ls(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return th(t,n,r,i)}else if(typeof e=="string")return ls(qx[e]!==void 0,`Invalid easing type '${e}'`),qx[e];return e},Uy=(e,t)=>n=>!!(Jd(n)&&XH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Sk=(e,t,n)=>r=>{if(!Jd(r))return r;const[i,o,s,l]=r.match(Qp);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},qU=e=>Ru(0,255,e),dv={...$c,transform:e=>Math.round(qU(e))},Oc={test:Uy("rgb","red"),parse:Sk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+dv.transform(e)+", "+dv.transform(t)+", "+dv.transform(n)+", "+Td(Sd.transform(r))+")"};function XU(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Tm={test:Uy("#"),parse:XU,transform:Oc.transform},Cf={test:Uy("hsl","hue"),parse:Sk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Us.transform(Td(t))+", "+Us.transform(Td(n))+", "+Td(Sd.transform(r))+")"},ao={test:e=>Oc.test(e)||Tm.test(e)||Cf.test(e),parse:e=>Oc.test(e)?Oc.parse(e):Cf.test(e)?Cf.parse(e):Tm.parse(e),transform:e=>Jd(e)?e:e.hasOwnProperty("red")?Oc.transform(e):Cf.transform(e)},nr=(e,t,n)=>-n*e+n*t+e;function hv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function KU({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=hv(c,l,e+1/3),o=hv(c,l,e),s=hv(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const pv=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ZU=[Tm,Oc,Cf],JU=e=>ZU.find(t=>t.test(e));function Kx(e){const t=JU(e);ls(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Cf&&(n=KU(n)),n}const Tk=(e,t)=>{const n=Kx(e),r=Kx(t),i={...n};return o=>(i.red=pv(n.red,r.red,o),i.green=pv(n.green,r.green,o),i.blue=pv(n.blue,r.blue,o),i.alpha=nr(n.alpha,r.alpha,o),Oc.transform(i))};function QU(e){var t,n;return isNaN(e)&&Jd(e)&&(((t=e.match(Qp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KE))===null||n===void 0?void 0:n.length)||0)>0}const Ck={regex:GH,countKey:"Vars",token:"${v}",parse:ur},Ek={regex:KE,countKey:"Colors",token:"${c}",parse:ao.parse},kk={regex:Qp,countKey:"Numbers",token:"${n}",parse:$c.parse};function gv(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function wp(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&gv(n,Ck),gv(n,Ek),gv(n,kk),n}function Ok(e){return wp(e).values}function _k(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wp(e),o=t.length;return s=>{let l=i;for(let c=0;c<o;c++)c<r?l=l.replace(Ck.token,s[c]):c<r+n?l=l.replace(Ek.token,ao.transform(s[c])):l=l.replace(kk.token,Td(s[c]));return l}}const eW=e=>typeof e=="number"?0:e;function tW(e){const t=Ok(e);return _k(e)(t.map(eW))}const Iu={test:QU,parse:Ok,createTransformer:_k,getAnimatableNone:tW},Dk=(e,t)=>n=>`${n>0?t:e}`;function Pk(e,t){return typeof e=="number"?n=>nr(e,t,n):ao.test(e)?Tk(e,t):e.startsWith("var(")?Dk(e,t):Ik(e,t)}const Rk=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Pk(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},nW=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pk(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Ik=(e,t)=>{const n=Iu.createTransformer(t),r=wp(e),i=wp(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Eu(Rk(r.values,i.values),n):(eh(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Dk(e,t))},Bd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Zx=(e,t)=>n=>nr(e,t,n);function rW(e){return typeof e=="number"?Zx:typeof e=="string"?ao.test(e)?Tk:Ik:Array.isArray(e)?Rk:typeof e=="object"?nW:Zx}function iW(e,t,n){const r=[],i=n||rW(e[0]),o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||ur:t;l=Eu(c,l)}r.push(l)}return r}function Ak(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ls(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=iW(t,r,i),l=s.length,c=d=>{let v=0;if(l>1)for(;v<e.length-2&&!(d<e[v+1]);v++);const p=Bd(e[v],e[v+1],d);return s[v](p)};return n?d=>c(Ru(e[0],e[o-1],d)):c}function oW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bd(0,t,r);e.push(nr(n,1,i))}}function aW(e){const t=[0];return oW(t,e.length-1),t}function sW(e,t){return e.map(n=>n*t)}function lW(e,t){return e.map(()=>t||mk).splice(0,e.length-1)}function xp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=WU(r)?r.map(Xx):Xx(r),o={done:!1,value:t[0]},s=sW(n&&n.length===t.length?n:aW(t),e),l=Ak(s,t,{ease:Array.isArray(i)?i:lW(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}function Mk(e,t){return t?e*(1e3/t):0}const uW=5;function Lk(e,t,n){const r=Math.max(t-uW,0);return Mk(n-e(r),t-r)}const vv=.001,cW=.01,Jx=10,fW=.05,dW=1;function hW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;eh(e<=ku(Jx),"Spring duration must be 10 seconds or less");let s=1-t;s=Ru(fW,dW,s),e=Ru(cW,Jx,Il(e)),s<1?(i=d=>{const v=d*s,p=v*e,x=v-n,T=Cm(d,s),_=Math.exp(-p);return vv-x/T*_},o=d=>{const p=d*s*e,x=p*n+n,T=Math.pow(s,2)*Math.pow(d,2)*e,_=Math.exp(-p),I=Cm(Math.pow(d,2),s);return(-i(d)+vv>0?-1:1)*((x-T)*_)/I}):(i=d=>{const v=Math.exp(-d*e),p=(d-n)*e+1;return-vv+v*p},o=d=>{const v=Math.exp(-d*e),p=(n-d)*(e*e);return v*p});const l=5/e,c=gW(i,o,l);if(e=ku(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const pW=12;function gW(e,t,n){let r=n;for(let i=1;i<pW;i++)r=r-e(r)/t(r);return r}function Cm(e,t){return e*Math.sqrt(1-t*t)}const vW=["duration","bounce"],mW=["stiffness","damping","mass"];function Qx(e,t){return t.some(n=>e[n]!==void 0)}function yW(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qx(e,mW)&&Qx(e,vW)){const n=hW(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Fk({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:v,velocity:p,isResolvedFromDuration:x}=yW({...r,velocity:-Il(r.velocity||0)}),T=p||0,_=c/(2*Math.sqrt(l*d)),I=o-i,L=Il(Math.sqrt(l/d)),R=Math.abs(I)<5;n||(n=R?.01:2),t||(t=R?.005:.5);let U;if(_<1){const W=Cm(L,_);U=te=>{const J=Math.exp(-_*L*te);return o-J*((T+_*L*I)/W*Math.sin(W*te)+I*Math.cos(W*te))}}else if(_===1)U=W=>o-Math.exp(-L*W)*(I+(T+L*I)*W);else{const W=L*Math.sqrt(_*_-1);U=te=>{const J=Math.exp(-_*L*te),pe=Math.min(W*te,300);return o-J*((T+_*L*I)*Math.sinh(pe)+W*I*Math.cosh(pe))/W}}return{calculatedDuration:x&&v||null,next:W=>{const te=U(W);if(x)s.done=W>=v;else{let J=T;W!==0&&(_<1?J=Lk(U,W,te):J=0);const pe=Math.abs(J)<=n,S=Math.abs(o-te)<=t;s.done=pe&&S}return s.value=s.done?o:te,s}}}function eS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:v}){const p=e[0],x={done:!1,value:p},T=ce=>l!==void 0&&ce<l||c!==void 0&&ce>c,_=ce=>l===void 0?c:c===void 0||Math.abs(l-ce)<Math.abs(c-ce)?l:c;let I=n*t;const L=p+I,R=s===void 0?L:s(L);R!==L&&(I=R-p);const U=ce=>-I*Math.exp(-ce/r),W=ce=>R+U(ce),te=ce=>{const ae=U(ce),Ne=W(ce);x.done=Math.abs(ae)<=d,x.value=x.done?R:Ne};let J,pe;const S=ce=>{T(x.value)&&(J=ce,pe=Fk({keyframes:[x.value,_(x.value)],velocity:Lk(W,ce,x.value),damping:i,stiffness:o,restDelta:d,restSpeed:v}))};return S(0),{calculatedDuration:null,next:ce=>{let ae=!1;return!pe&&J===void 0&&(ae=!0,te(ce),S(ce)),J!==void 0&&ce>J?pe.next(ce-J):(!ae&&te(ce),x)}}}const bW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Un.update(t,!0),stop:()=>Nl(t),now:()=>ji.isProcessing?ji.timestamp:performance.now()}},tS=2e4;function nS(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<tS;)t+=n,r=e.next(t);return t>=tS?1/0:t}const wW={decay:eS,inertia:eS,tween:xp,keyframes:xp,spring:Fk};function Sp({autoplay:e=!0,delay:t=0,driver:n=bW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:c,onStop:d,onComplete:v,onUpdate:p,...x}){let T=1,_=!1,I,L;const R=()=>{L=new Promise(_e=>{I=_e})};R();let U;const W=wW[i]||xp;let te;W!==xp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ls(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),te=Ak([0,100],r,{clamp:!1}),r=[0,100]);const J=W({...x,keyframes:r});let pe;l==="mirror"&&(pe=W({...x,keyframes:[...r].reverse(),velocity:-(x.velocity||0)}));let S="idle",ce=null,ae=null,Ne=null;J.calculatedDuration===null&&o&&(J.calculatedDuration=nS(J));const{calculatedDuration:Ge}=J;let qe=1/0,it=1/0;Ge!==null&&(qe=Ge+s,it=qe*(o+1)-s);let nt=0;const me=_e=>{if(ae===null)return;T>0&&(ae=Math.min(ae,_e)),T<0&&(ae=Math.min(_e-it/T,ae)),ce!==null?nt=ce:nt=Math.round(_e-ae)*T;const Ye=nt-t*(T>=0?1:-1),We=T>=0?Ye<0:Ye>it;nt=Math.max(Ye,0),S==="finished"&&ce===null&&(nt=it);let Re=nt,Fe=J;if(o){const yt=Math.min(nt,it)/qe;let dt=Math.floor(yt),Tt=yt%1;!Tt&&yt>=1&&(Tt=1),Tt===1&&dt--,dt=Math.min(dt,o+1),!!(dt%2)&&(l==="reverse"?(Tt=1-Tt,s&&(Tt-=s/qe)):l==="mirror"&&(Fe=pe)),Re=Ru(0,1,Tt)*qe}const He=We?{done:!1,value:r[0]}:Fe.next(Re);te&&(He.value=te(He.value));let{done:lt}=He;!We&&Ge!==null&&(lt=T>=0?nt>=it:nt<=0);const ct=ce===null&&(S==="finished"||S==="running"&<);return p&&p(He.value),ct&&Qe(),He},Se=()=>{U&&U.stop(),U=void 0},Ve=()=>{S="idle",Se(),I(),R(),ae=Ne=null},Qe=()=>{S="finished",v&&v(),Se(),I()},at=()=>{if(_)return;U||(U=n(me));const _e=U.now();c&&c(),ce!==null?ae=_e-ce:(!ae||S==="finished")&&(ae=_e),S==="finished"&&R(),Ne=ae,ce=null,S="running",U.start()};e&&at();const Ee={then(_e,Ye){return L.then(_e,Ye)},get time(){return Il(nt)},set time(_e){_e=ku(_e),nt=_e,ce!==null||!U||T===0?ce=_e:ae=U.now()-_e/T},get duration(){const _e=J.calculatedDuration===null?nS(J):J.calculatedDuration;return Il(_e)},get speed(){return T},set speed(_e){_e===T||!U||(T=_e,Ee.time=Il(nt))},get state(){return S},play:at,pause:()=>{S="paused",ce=nt},stop:()=>{_=!0,S!=="idle"&&(S="idle",d&&d(),Ve())},cancel:()=>{Ne!==null&&me(Ne),Ve()},complete:()=>{S="finished"},sample:_e=>(ae=0,me(_e))};return Ee}function xW(e){let t;return()=>(t===void 0&&(t=e()),t)}const SW=xW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),TW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Fh=10,CW=2e4,EW=(e,t)=>t.type==="spring"||e==="backgroundColor"||!hk(t.ease);function kW(e,t,{onUpdate:n,onComplete:r,...i}){if(!(SW()&&TW.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,c,d=!1;const v=()=>{c=new Promise(W=>{l=W})};v();let{keyframes:p,duration:x=300,ease:T,times:_}=i;if(EW(t,i)){const W=Sp({...i,repeat:0,delay:0});let te={done:!1,value:p[0]};const J=[];let pe=0;for(;!te.done&&pe<CW;)te=W.sample(pe),J.push(te.value),pe+=Fh;_=void 0,p=J,x=pe-Fh,T="linear"}const I=NU(e.owner.current,t,p,{...i,duration:x,ease:T,times:_}),L=()=>{d=!1,I.cancel()},R=()=>{d=!0,Un.update(L),l(),v()};return I.onfinish=()=>{d||(e.set(jU(p,i)),r&&r(),R())},{then(W,te){return c.then(W,te)},attachTimeline(W){return I.timeline=W,I.onfinish=null,ur},get time(){return Il(I.currentTime||0)},set time(W){I.currentTime=ku(W)},get speed(){return I.playbackRate},set speed(W){I.playbackRate=W},get duration(){return Il(x)},play:()=>{s||(I.play(),Nl(L))},pause:()=>I.pause(),stop:()=>{if(s=!0,I.playState==="idle")return;const{currentTime:W}=I;if(W){const te=Sp({...i,autoplay:!1});e.setWithVelocity(te.sample(W-Fh).value,te.sample(W).value,Fh)}R()},complete:()=>{d||I.finish()},cancel:R}}function OW({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ur,pause:ur,stop:ur,then:o=>(o(),Promise.resolve()),cancel:ur,complete:ur});return t?Sp({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const _W={type:"spring",stiffness:500,damping:25,restSpeed:10},DW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PW={type:"keyframes",duration:.8},RW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IW=(e,{keyframes:t})=>t.length>2?PW:Bc.has(e)?e.startsWith("scale")?DW(t[1]):_W:RW,Em=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Iu.test(t)||t==="0")&&!t.startsWith("url(")),AW=new Set(["brightness","contrast","saturate","opacity"]);function MW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qp)||[];if(!r)return e;const i=n.replace(r,"");let o=AW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const LW=/([a-z-]*)\(.*?\)/g,km={...Iu,getAnimatableNone:e=>{const t=e.match(LW);return t?t.map(MW).join(" "):e}},FW={...ZE,color:ao,backgroundColor:ao,outlineColor:ao,fill:ao,stroke:ao,borderColor:ao,borderTopColor:ao,borderRightColor:ao,borderBottomColor:ao,borderLeftColor:ao,filter:km,WebkitFilter:km},Wy=e=>FW[e];function Nk(e,t){let n=Wy(e);return n!==km&&(n=Iu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const jk=e=>/^0[^.\s]+$/.test(e);function NW(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||jk(e)}function jW(e,t,n,r){const i=Em(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const c=[];for(let d=0;d<o.length;d++)o[d]===null&&(o[d]=d===0?s:o[d-1]),NW(o[d])&&c.push(d),typeof o[d]=="string"&&o[d]!=="none"&&o[d]!=="0"&&(l=o[d]);if(i&&c.length&&l)for(let d=0;d<c.length;d++){const v=c[d];o[v]=Nk(t,l)}return o}function BW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:c,elapsed:d,...v}){return!!Object.keys(v).length}function zy(e,t){return e[t]||e.default||e}const $W={skipAnimations:!1},Yy=(e,t,n,r={})=>i=>{const o=zy(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-ku(s);const c=jW(t,e,n,o),d=c[0],v=c[c.length-1],p=Em(e,d),x=Em(e,v);eh(p===x,`You are trying to animate ${e} from "${d}" to "${v}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${v} via the \`style\` property.`);let T={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:_=>{t.set(_),o.onUpdate&&o.onUpdate(_)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(BW(o)||(T={...T,...IW(e,T)}),T.duration&&(T.duration=ku(T.duration)),T.repeatDelay&&(T.repeatDelay=ku(T.repeatDelay)),!p||!x||FU.current||o.type===!1||$W.skipAnimations)return OW(T);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const _=kW(t,e,T);if(_)return _}return Sp(T)};function Tp(e){return!!(Do(e)&&e.add)}const Bk=e=>/^\-?\d*\.?\d+$/.test(e);function Gy(e,t){e.indexOf(t)===-1&&e.push(t)}function qy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xy{constructor(){this.subscriptions=[]}add(t){return Gy(this.subscriptions,t),()=>qy(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const rS=new Set;function Ky(e,t,n){e||rS.has(t)||(console.warn(t),n&&console.warn(n),rS.add(t))}const VW=e=>!isNaN(parseFloat(e));class HW{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ji;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Un.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=()=>Un.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=VW(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Ky(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Un.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Mk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mf(e,t){return new HW(e,t)}const $k=e=>t=>t.test(e),UW={test:e=>e==="auto",parse:e=>e},Vk=[$c,Bt,Us,yu,ZH,KH,UW],ld=e=>Vk.find($k(e)),WW=[...Vk,ao,Iu],zW=e=>WW.find($k(e));function YW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mf(n))}function GW(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=dU(o[s]);YW(e,s,l)}}function qW(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;l<s;l++){const c=o[l],d=t[c];let v=null;Array.isArray(d)&&(v=d[0]),v===null&&(v=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),v!=null&&(typeof v=="string"&&(Bk(v)||jk(v))?v=parseFloat(v):!zW(v)&&Iu.test(d)&&(v=Nk(c,d)),e.addValue(c,Mf(v,{owner:e})),n[c]===void 0&&(n[c]=v),v!==null&&e.setBaseTarget(c,v))}}function XW(e,t){return t?(t[e]||t.default||t).from:void 0}function KW(e,t,n){const r={};for(const i in e){const o=XW(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function ZW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function JW(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Hk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(o=r);const d=[],v=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const x=e.getValue(p),T=l[p];if(!x||T===void 0||v&&ZW(v,p))continue;const _={delay:n,elapsed:0,...zy(o||{},p)};if(window.HandoffAppearAnimations){const R=e.getProps()[UE];if(R){const U=window.HandoffAppearAnimations(R,p,x,Un);U!==null&&(_.elapsed=U,_.isHandoff=!0)}}let I=!_.isHandoff&&!JW(x,T);if(_.type==="spring"&&(x.getVelocity()||_.velocity)&&(I=!1),x.animation&&(I=!1),I)continue;x.start(Yy(p,x,T,e.shouldReduceMotion&&Bc.has(p)?{type:!1}:_));const L=x.animation;Tp(c)&&(c.add(p),L.then(()=>c.remove(p))),d.push(L)}return s&&Promise.all(d).then(()=>{s&&GW(e,s)}),d}function Om(e,t,n={}){const r=tg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Hk(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:v,staggerDirection:p}=i;return QW(e,t,d+c,v,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[o,s]:[s,o];return c().then(()=>d())}else return Promise.all([o(),s(n.delay)])}function QW(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(ez).forEach((d,v)=>{d.notify("AnimationStart",t),s.push(Om(d,t,{...o,delay:n+c(v)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function ez(e,t){return e.sortNodePosition(t)}function tz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Om(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Om(e,t,n);else{const i=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(Hk(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const nz=[...Iy].reverse(),rz=Iy.length;function iz(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tz(e,n,r)))}function oz(e){let t=iz(e);const n=sz();let r=!0;const i=(c,d)=>{const v=tg(e,d);if(v){const{transition:p,transitionEnd:x,...T}=v;c={...c,...T,...x}}return c};function o(c){t=c(e)}function s(c,d){const v=e.getProps(),p=e.getVariantContext(!0)||{},x=[],T=new Set;let _={},I=1/0;for(let R=0;R<rz;R++){const U=nz[R],W=n[U],te=v[U]!==void 0?v[U]:p[U],J=Nd(te),pe=U===d?W.isActive:null;pe===!1&&(I=R);let S=te===p[U]&&te!==v[U]&&J;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),W.protectedKeys={..._},!W.isActive&&pe===null||!te&&!W.prevProp||Zp(te)||typeof te=="boolean")continue;let ae=az(W.prevProp,te)||U===d&&W.isActive&&!S&&J||R>I&&J,Ne=!1;const Ge=Array.isArray(te)?te:[te];let qe=Ge.reduce(i,{});pe===!1&&(qe={});const{prevResolvedValues:it={}}=W,nt={...it,...qe},me=Se=>{ae=!0,T.has(Se)&&(Ne=!0,T.delete(Se)),W.needsAnimating[Se]=!0};for(const Se in nt){const Ve=qe[Se],Qe=it[Se];if(_.hasOwnProperty(Se))continue;let at=!1;bp(Ve)&&bp(Qe)?at=!fk(Ve,Qe):at=Ve!==Qe,at?Ve!==void 0?me(Se):T.add(Se):Ve!==void 0&&T.has(Se)?me(Se):W.protectedKeys[Se]=!0}W.prevProp=te,W.prevResolvedValues=qe,W.isActive&&(_={..._,...qe}),r&&e.blockInitialAnimation&&(ae=!1),ae&&(!S||Ne)&&x.push(...Ge.map(Se=>({animation:Se,options:{type:U,...c}})))}if(T.size){const R={};T.forEach(U=>{const W=e.getBaseTarget(U);W!==void 0&&(R[U]=W)}),x.push({animation:R})}let L=!!x.length;return r&&(v.initial===!1||v.initial===v.animate)&&!e.manuallyAnimateOnMount&&(L=!1),r=!1,L?t(x):Promise.resolve()}function l(c,d,v){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(T=>{var _;return(_=T.animationState)===null||_===void 0?void 0:_.setActive(c,d)}),n[c].isActive=d;const x=s(v,c);for(const T in n)n[T].protectedKeys={};return x}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function az(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!fk(t,e):!1}function wc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sz(){return{animate:wc(!0),whileInView:wc(),whileHover:wc(),whileTap:wc(),whileDrag:wc(),whileFocus:wc(),exit:wc()}}class lz extends Fu{constructor(t){super(t),t.animationState||(t.animationState=oz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zp(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let uz=0;class cz extends Fu{constructor(){super(...arguments),this.id=uz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const fz={animation:{Feature:lz},exit:{Feature:cz}},iS=(e,t)=>Math.abs(e-t);function dz(e,t){const n=iS(e.x,t.x),r=iS(e.y,t.y);return Math.sqrt(n**2+r**2)}class Uk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=yv(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,T=dz(p.offset,{x:0,y:0})>=3;if(!x&&!T)return;const{point:_}=p,{timestamp:I}=ji;this.history.push({..._,timestamp:I});const{onStart:L,onMove:R}=this.handlers;x||(L&&L(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,p)},this.handlePointerMove=(p,x)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=mv(x,this.transformPagePoint),Un.update(this.updatePoint,!0)},this.handlePointerUp=(p,x)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=yv(p.type==="pointercancel"?this.lastMoveEventInfo:mv(x,this.transformPagePoint),this.history);this.startEvent&&T&&T(p,L),_&&_(p,L)},!ak(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=eg(t),l=mv(s,this.transformPagePoint),{point:c}=l,{timestamp:d}=ji;this.history=[{...c,timestamp:d}];const{onSessionStart:v}=n;v&&v(t,yv(l,this.history)),this.removeListeners=Eu(Rl(this.contextWindow,"pointermove",this.handlePointerMove),Rl(this.contextWindow,"pointerup",this.handlePointerUp),Rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Nl(this.updatePoint)}}function mv(e,t){return t?{point:t(e.point)}:e}function oS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:oS(e,Wk(t)),offset:oS(e,hz(t)),velocity:pz(t,.1)}}function hz(e){return e[0]}function Wk(e){return e[e.length-1]}function pz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Wk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ku(t)));)n--;if(!r)return{x:0,y:0};const o=Il(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ea(e){return e.max-e.min}function _m(e,t=0,n=.01){return Math.abs(e-t)<=n}function aS(e,t,n,r=.5){e.origin=r,e.originPoint=nr(t.min,t.max,e.origin),e.scale=ea(n)/ea(t),(_m(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nr(n.min,n.max,e.origin)-e.originPoint,(_m(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Cd(e,t,n,r){aS(e.x,t.x,n.x,r?r.originX:void 0),aS(e.y,t.y,n.y,r?r.originY:void 0)}function sS(e,t,n){e.min=n.min+t.min,e.max=e.min+ea(t)}function gz(e,t,n){sS(e.x,t.x,n.x),sS(e.y,t.y,n.y)}function lS(e,t,n){e.min=t.min-n.min,e.max=e.min+ea(t)}function Ed(e,t,n){lS(e.x,t.x,n.x),lS(e.y,t.y,n.y)}function vz(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nr(n,e,r.max):Math.min(e,n)),e}function uS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mz(e,{top:t,left:n,bottom:r,right:i}){return{x:uS(e.x,n,i),y:uS(e.y,t,r)}}function cS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yz(e,t){return{x:cS(e.x,t.x),y:cS(e.y,t.y)}}function bz(e,t){let n=.5;const r=ea(e),i=ea(t);return i>r?n=Bd(t.min,t.max-r,e.min):r>i&&(n=Bd(e.min,e.max-i,t.min)),Ru(0,1,n)}function wz(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Dm=.35;function xz(e=Dm){return e===!1?e=0:e===!0&&(e=Dm),{x:fS(e,"left","right"),y:fS(e,"top","bottom")}}function fS(e,t,n){return{min:dS(e,t),max:dS(e,n)}}function dS(e,t){return typeof e=="number"?e:e[t]||0}const hS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ef=()=>({x:hS(),y:hS()}),pS=()=>({min:0,max:0}),Or=()=>({x:pS(),y:pS()});function Ea(e){return[e("x"),e("y")]}function zk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sz({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tz(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function bv(e){return e===void 0||e===1}function Pm({scale:e,scaleX:t,scaleY:n}){return!bv(e)||!bv(t)||!bv(n)}function Tc(e){return Pm(e)||Yk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Yk(e){return gS(e.x)||gS(e.y)}function gS(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function vS(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function Rm(e,t=0,n=1,r,i){e.min=vS(e.min,t,n,r,i),e.max=vS(e.max,t,n,r,i)}function Gk(e,{x:t,y:n}){Rm(e.x,t.translate,t.scale,t.originPoint),Rm(e.y,n.translate,n.scale,n.originPoint)}function Cz(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l<i;l++){o=n[l],s=o.projectionDelta;const c=o.instance;c&&c.style&&c.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kf(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Gk(e,s)),r&&Tc(o.latestValues)&&kf(e,o.latestValues))}t.x=mS(t.x),t.y=mS(t.y)}function mS(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function wu(e,t){e.min=e.min+t,e.max=e.max+t}function yS(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=nr(e.min,e.max,o);Rm(e,t[n],t[r],s,t.scale)}const Ez=["x","scaleX","originX"],kz=["y","scaleY","originY"];function kf(e,t){yS(e.x,t,Ez),yS(e.y,t,kz)}function qk(e,t){return zk(Tz(e.getBoundingClientRect(),t))}function Oz(e,t,n){const r=qk(e,n),{scroll:i}=t;return i&&(wu(r.x,i.offset.x),wu(r.y,i.offset.y)),r}const Xk=({current:e})=>e?e.ownerDocument.defaultView:null,_z=new WeakMap;class Dz{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Or(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=v=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(eg(v,"page").point)},o=(v,p)=>{const{drag:x,dragPropagation:T,onDragStart:_}=this.getProps();if(x&&!T&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lk(x),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ea(L=>{let R=this.getAxisMotionValue(L).get()||0;if(Us.test(R)){const{projection:U}=this.visualElement;if(U&&U.layout){const W=U.layout.layoutBox[L];W&&(R=ea(W)*(parseFloat(R)/100))}}this.originPoint[L]=R}),_&&Un.update(()=>_(v,p),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},s=(v,p)=>{const{dragPropagation:x,dragDirectionLock:T,onDirectionLock:_,onDrag:I}=this.getProps();if(!x&&!this.openGlobalLock)return;const{offset:L}=p;if(T&&this.currentDirection===null){this.currentDirection=Pz(L),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",p.point,L),this.updateAxis("y",p.point,L),this.visualElement.render(),I&&I(v,p)},l=(v,p)=>this.stop(v,p),c=()=>Ea(v=>{var p;return this.getAnimationState(v)==="paused"&&((p=this.getAxisMotionValue(v).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Uk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Xk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Un.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Nh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vz(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Tf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=mz(i.layoutBox,n):this.constraints=!1,this.elastic=xz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ea(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=wz(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tf(t))return!1;const r=t.current;ls(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=Oz(r,i.root,this.visualElement.getTransformPagePoint());let s=yz(i.layout.layoutBox,o);if(n){const l=n(Sz(s));this.hasMutatedConstraints=!!l,l&&(s=zk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Ea(v=>{if(!Nh(v,n,this.currentDirection))return;let p=c&&c[v]||{};s&&(p={min:0,max:0});const x=i?200:1e6,T=i?40:1e7,_={type:"inertia",velocity:r?t[v]:0,bounceStiffness:x,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(v,_)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Yy(t,r,0,n))}stopAnimation(){Ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ea(n=>{const{drag:r}=this.getProps();if(!Nh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-nr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ea(s=>{const l=this.getAxisMotionValue(s);if(l){const c=l.get();i[s]=bz({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ea(s=>{if(!Nh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(nr(c,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;_z.set(this.visualElement,this);const t=this.visualElement.current,n=Rl(t,"pointerdown",c=>{const{drag:d,dragListener:v=!0}=this.getProps();d&&v&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Tf(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=_l(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ea(v=>{const p=this.getAxisMotionValue(v);p&&(this.originPoint[v]+=c[v].translate,p.set(p.get()+c[v].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Dm,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Nh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Rz extends Fu{constructor(t){super(t),this.removeGroupControls=ur,this.removeListeners=ur,this.controls=new Dz(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ur}unmount(){this.removeGroupControls(),this.removeListeners()}}const bS=e=>(t,n)=>{e&&Un.update(()=>e(t,n))};class Iz extends Fu{constructor(){super(...arguments),this.removePointerDownListener=ur}onPointerDown(t){this.session=new Uk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:bS(t),onStart:bS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Un.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Rl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Az(){const e=X.useContext(Py);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=X.useId();return X.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ud={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Bt.test(e))e=parseFloat(e);else return e;const n=wS(e,t.target.x),r=wS(e,t.target.y);return`${n}% ${r}%`}},Mz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Iu.parse(e);if(i.length>5)return r;const o=Iu.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=c;const d=nr(l,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class Lz extends X.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;UH(Fz),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(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Un.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Kk(e){const[t,n]=Az(),r=X.useContext(zE);return X.createElement(Lz,{...e,layoutGroup:r,switchLayoutGroup:X.useContext(YE),isPresent:t,safeToRemove:n})}const Fz={borderRadius:{...ud,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ud,borderTopRightRadius:ud,borderBottomLeftRadius:ud,borderBottomRightRadius:ud,boxShadow:Mz},Zk=["TopLeft","TopRight","BottomLeft","BottomRight"],Nz=Zk.length,xS=e=>typeof e=="string"?parseFloat(e):e,SS=e=>typeof e=="number"||Bt.test(e);function jz(e,t,n,r,i,o){i?(e.opacity=nr(0,n.opacity!==void 0?n.opacity:1,Bz(r)),e.opacityExit=nr(t.opacity!==void 0?t.opacity:1,0,$z(r))):o&&(e.opacity=nr(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Nz;s++){const l=`border${Zk[s]}Radius`;let c=TS(t,l),d=TS(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||SS(c)===SS(d)?(e[l]=Math.max(nr(xS(c),xS(d),r),0),(Us.test(d)||Us.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=nr(t.rotate||0,n.rotate||0,r))}function TS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Bz=Jk(0,.5,wk),$z=Jk(.5,.95,ur);function Jk(e,t,n){return r=>r<e?0:r>t?1:n(Bd(e,t,r))}function CS(e,t){e.min=t.min,e.max=t.max}function Ca(e,t){CS(e.x,t.x),CS(e.y,t.y)}function ES(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function Vz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Us.test(t)&&(t=parseFloat(t),t=nr(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=nr(o.min,o.max,r);e===o&&(l-=t),e.min=ES(e.min,t,n,l,i),e.max=ES(e.max,t,n,l,i)}function kS(e,t,[n,r,i],o,s){Vz(e,t[n],t[r],t[i],t.scale,o,s)}const Hz=["x","scaleX","originX"],Uz=["y","scaleY","originY"];function OS(e,t,n,r){kS(e.x,t,Hz,n?n.x:void 0,r?r.x:void 0),kS(e.y,t,Uz,n?n.y:void 0,r?r.y:void 0)}function _S(e){return e.translate===0&&e.scale===1}function Qk(e){return _S(e.x)&&_S(e.y)}function Wz(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function eO(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function DS(e){return ea(e.x)/ea(e.y)}class zz{constructor(){this.members=[]}add(t){Gy(this.members,t),t.scheduleRender()}remove(t){if(qy(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function PS(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:v}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),v&&(r+=`rotateY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const Yz=(e,t)=>e.depth-t.depth;class Gz{constructor(){this.children=[],this.isDirty=!1}add(t){Gy(this.children,t),this.isDirty=!0}remove(t){qy(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yz),this.isDirty=!1,this.children.forEach(t)}}function qz(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Nl(r),e(o-t))};return Un.read(r,!0),()=>Nl(r)}function Xz(e){window.MotionDebug&&window.MotionDebug.record(e)}function Kz(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Zz(e,t,n){const r=Do(e)?e:Mf(e);return r.start(Yy("",r,t,n)),r.animation}const RS=["","X","Y","Z"],Jz={visibility:"hidden"},IS=1e3;let Qz=0;const Cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=Qz++,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,Cc.totalNodes=Cc.resolvedTargetDeltas=Cc.recalculatedProjection=0,this.nodes.forEach(n5),this.nodes.forEach(s5),this.nodes.forEach(l5),this.nodes.forEach(r5),Xz(Cc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gz)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Xy),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const c=this.eventHandlers.get(s);c&&c.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Kz(s),this.instance=s;const{layoutId:c,layout:d,visualElement:v}=this.options;if(v&&!v.current&&v.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),e){let p;const x=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=qz(x,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(MS))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&v&&(c||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:x,hasRelativeTargetChanged:T,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||v.getDefaultTransition()||h5,{onLayoutAnimationStart:L,onLayoutAnimationComplete:R}=v.getProps(),U=!this.targetLayout||!eO(this.targetLayout,_)||T,W=!x&&T;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||x&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,W);const te={...zy(I,"layout"),onPlay:L,onComplete:R};(v.shouldReduceMotion||this.options.layoutRoot)&&(te.delay=0,te.type=!1),this.startAnimation(te)}else x||MS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Nl(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(u5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const p=this.path[v];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AS);return}this.isUpdating||this.nodes.forEach(o5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(e5),this.nodes.forEach(t5),this.clearAllSnapshots();const l=performance.now();ji.delta=Ru(0,1e3/60,l-ji.timestamp),ji.timestamp=l,ji.isProcessing=!0,uv.update.process(ji),uv.preRender.process(ji),uv.render.process(ji),ji.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(i5),this.sharedNodes.forEach(c5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Un.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Un.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Or(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let l=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Qk(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,v=d!==this.prevTransformTemplateValue;s&&(l||Tc(this.latestValues)||v)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return s&&(c=this.removeTransform(c)),p5(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Or();const l=s.measureViewportBox(),{scroll:c}=this.root;return c&&(wu(l.x,c.offset.x),wu(l.y,c.offset.y)),l}removeElementScroll(s){const l=Or();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:v,options:p}=d;if(d!==this.root&&v&&p.layoutScroll){if(v.isRoot){Ca(l,s);const{scroll:x}=this.root;x&&(wu(l.x,-x.offset.x),wu(l.y,-x.offset.y))}wu(l.x,v.offset.x),wu(l.y,v.offset.y)}}return l}applyTransform(s,l=!1){const c=Or();Ca(c,s);for(let d=0;d<this.path.length;d++){const v=this.path[d];!l&&v.options.layoutScroll&&v.scroll&&v!==v.root&&kf(c,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Tc(v.latestValues)&&kf(c,v.latestValues)}return Tc(this.latestValues)&&kf(c,this.latestValues),c}removeTransform(s){const l=Or();Ca(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Tc(d.latestValues))continue;Pm(d.latestValues)&&d.updateSnapshot();const v=Or(),p=d.measurePageBox();Ca(v,p),OS(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,v)}return Tc(this.latestValues)&&OS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ji.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:x}=this.options;if(!(!this.layout||!(p||x))){if(this.resolvedRelativeTargetAt=ji.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Ed(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Or(),this.targetWithTransforms=Or()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),gz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ca(this.target,this.layout.layoutBox),Gk(this.target,this.targetDelta)):Ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Or(),this.relativeTargetOrigin=Or(),Ed(this.relativeTargetOrigin,this.target,T.target),Ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Pm(this.parent.latestValues)||Yk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===ji.timestamp&&(d=!1),d)return;const{layout:v,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(v||p))return;Ca(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,T=this.treeScale.y;Cz(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox);const{target:_}=l;if(!_){this.projectionTransform&&(this.projectionDelta=Ef(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ef(),this.projectionDeltaWithTransform=Ef());const I=this.projectionTransform;Cd(this.projectionDelta,this.layoutCorrected,_,this.latestValues),this.projectionTransform=PS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==x||this.treeScale.y!==T)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_)),Cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,l=!1){const c=this.snapshot,d=c?c.latestValues:{},v={...this.latestValues},p=Ef();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const x=Or(),T=c?c.source:void 0,_=this.layout?this.layout.source:void 0,I=T!==_,L=this.getStack(),R=!L||L.members.length<=1,U=!!(I&&!R&&this.options.crossfade===!0&&!this.path.some(d5));this.animationProgress=0;let W;this.mixTargetDelta=te=>{const J=te/1e3;LS(p.x,s.x,J),LS(p.y,s.y,J),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ed(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f5(this.relativeTarget,this.relativeTargetOrigin,x,J),W&&Wz(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=Or()),Ca(W,this.relativeTarget)),I&&(this.animationValues=v,jz(v,d,this.latestValues,J,U,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=J},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Nl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Un.update(()=>{Zh.hasAnimatedSinceResize=!0,this.currentAnimation=Zz(0,IS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(IS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:v}=s;if(!(!l||!c||!d)){if(this!==s&&this.layout&&d&&nO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Or();const p=ea(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+p;const x=ea(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+x}Ca(l,c),kf(l,v),Cd(this.projectionDeltaWithTransform,this.layoutCorrected,l,v)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zz),this.sharedNodes.get(s).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let v=0;v<RS.length;v++){const p="rotate"+RS[v];c[p]&&(d[p]=c[p],s.setStaticValue(p,0))}s.render();for(const v in d)s.setStaticValue(v,d[v]);s.scheduleRender()}getProjectionStyles(s){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jz;const d={visibility:""},v=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Kh(s==null?void 0:s.pointerEvents)||"",d.transform=v?v(this.latestValues,""):"none",d;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Kh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Tc(this.latestValues)&&(I.transform=v?v({},""):"none",this.hasProjected=!1),I}const x=p.animationValues||p.latestValues;this.applyTransformsToTarget(),d.transform=PS(this.projectionDeltaWithTransform,this.treeScale,x),v&&(d.transform=v(x,d.transform));const{x:T,y:_}=this.projectionDelta;d.transformOrigin=`${T.origin*100}% ${_.origin*100}% 0`,p.animationValues?d.opacity=p===this?(c=(l=x.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:d.opacity=p===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const I in mp){if(x[I]===void 0)continue;const{correct:L,applyTo:R}=mp[I],U=d.transform==="none"?x[I]:L(x[I],p);if(R){const W=R.length;for(let te=0;te<W;te++)d[R[te]]=U}else d[I]=U}return this.options.layoutId&&(d.pointerEvents=p===this?Kh(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(AS),this.root.sharedNodes.clear()}}}function e5(e){e.updateLayout()}function t5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Ea(p=>{const x=s?n.measuredBox[p]:n.layoutBox[p],T=ea(x);x.min=r[p].min,x.max=x.min+T}):nO(o,n.layoutBox,r)&&Ea(p=>{const x=s?n.measuredBox[p]:n.layoutBox[p],T=ea(r[p]);x.max=x.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+T)});const l=Ef();Cd(l,r,n.layoutBox);const c=Ef();s?Cd(c,e.applyTransform(i,!0),n.measuredBox):Cd(c,r,n.layoutBox);const d=!Qk(l);let v=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:x,layout:T}=p;if(x&&T){const _=Or();Ed(_,n.layoutBox,x.layoutBox);const I=Or();Ed(I,r,T.layoutBox),eO(_,I)||(v=!0),p.options.layoutRoot&&(e.relativeTarget=I,e.relativeTargetOrigin=_,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:v})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function n5(e){Cc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i5(e){e.clearSnapshot()}function AS(e){e.clearMeasurements()}function o5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function MS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function s5(e){e.resolveTargetDelta()}function l5(e){e.calcProjection()}function u5(e){e.resetRotation()}function c5(e){e.removeLeadSnapshot()}function LS(e,t,n){e.translate=nr(t.translate,0,n),e.scale=nr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function FS(e,t,n,r){e.min=nr(t.min,n.min,r),e.max=nr(t.max,n.max,r)}function f5(e,t,n,r){FS(e.x,t.x,n.x,r),FS(e.y,t.y,n.y,r)}function d5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const h5={duration:.45,ease:[.4,0,.1,1]},NS=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),jS=NS("applewebkit/")&&!NS("chrome/")?Math.round:ur;function BS(e){e.min=jS(e.min),e.max=jS(e.max)}function p5(e){BS(e.x),BS(e.y)}function nO(e,t,n){return e==="position"||e==="preserve-aspect"&&!_m(DS(t),DS(n),.2)}const g5=tO({attachResizeListener:(e,t)=>_l(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wv={current:void 0},rO=tO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wv.current){const e=new g5({});e.mount(window),e.setOptions({layoutScroll:!0}),wv.current=e}return wv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v5={pan:{Feature:Iz},drag:{Feature:Rz,ProjectionNode:rO,MeasureLayout:Kk}},m5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function y5(e){const t=m5.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const b5=4;function Im(e,t,n=1){ls(n<=b5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=y5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Bk(s)?parseFloat(s):s}else return xm(i)?Im(i,t,n+1):i}function w5(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!xm(o))return;const s=Im(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!xm(o))continue;const s=Im(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const x5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iO=e=>x5.has(e),S5=e=>Object.keys(e).some(iO),jh=e=>e===$c||e===Bt,$S=(e,t)=>parseFloat(e.split(", ")[t]),VS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return $S(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?$S(o[1],e):0}},T5=new Set(["x","y","z"]),C5=Zd.filter(e=>!T5.has(e));function E5(e){const t=[];return C5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Lf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:VS(4,13),y:VS(5,14)};Lf.translateX=Lf.x;Lf.translateY=Lf.y;const k5=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Lf[d](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const v=t.getValue(d);v&&v.jump(l[d]),e[d]=Lf[d](c,o)}),e},O5=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(iO);let o=[],s=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let v=n[c],p=ld(v);const x=t[c];let T;if(bp(x)){const _=x.length,I=x[0]===null?1:0;v=x[I],p=ld(v);for(let L=I;L<_&&x[L]!==null;L++)T?ls(ld(x[L])===T,"All keyframes must be of the same type"):(T=ld(x[L]),ls(T===p||jh(p)&&jh(T),"Keyframes must be of the same dimension as the current value"))}else T=ld(x);if(p!==T)if(jh(p)&&jh(T)){const _=d.get();typeof _=="string"&&d.set(parseFloat(_)),typeof x=="string"?t[c]=parseFloat(x):Array.isArray(x)&&T===Bt&&(t[c]=x.map(parseFloat))}else p!=null&&p.transform&&(T!=null&&T.transform)&&(v===0||x===0)?v===0?d.set(T.transform(v)):t[c]=p.transform(x):(s||(o=E5(e),s=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(x))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=k5(t,e,l);return o.length&&o.forEach(([v,p])=>{e.getValue(v).set(p)}),e.render(),Kp&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function _5(e,t,n,r){return S5(t)?O5(e,t,n,r):{target:t,transitionEnd:r}}const D5=(e,t,n,r)=>{const i=w5(e,t,r);return t=i.target,r=i.transitionEnd,_5(e,t,n,r)},Am={current:null},oO={current:!1};function P5(){if(oO.current=!0,!!Kp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Am.current=e.matches;e.addListener(t),t()}else Am.current=!1}function R5(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Do(o))e.addValue(i,o),Tp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Ky(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Do(s))e.addValue(i,Mf(o,{owner:e})),Tp(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,Mf(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const HS=new WeakMap,aO=Object.keys(jd),I5=aO.length,US=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],A5=Ay.length;class M5{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Un.render(this.render,!1,!0);const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jp(n),this.isVariantNode=WE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...v}=this.scrapeMotionValuesFromProps(n,{});for(const p in v){const x=v[p];l[p]!==void 0&&Do(x)&&(x.set(l[p],!1),Tp(d)&&d.add(p))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,HS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),oO.current||P5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Am.current,process.env.NODE_ENV!=="production"&&Ky(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(){HS.delete(this.current),this.projection&&this.projection.unmount(),Nl(this.notifyUpdate),Nl(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Bc.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Un.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;if(process.env.NODE_ENV!=="production"&&i&&r){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?eh(!1,c):ls(!1,c)}for(let c=0;c<I5;c++){const d=aO[c],{isEnabled:v,Feature:p,ProjectionNode:x,MeasureLayout:T}=jd[d];x&&(s=x),v(n)&&(!this.features[d]&&p&&(this.features[d]=new p(this)),T&&(l=T))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:c,layout:d,drag:v,dragConstraints:p,layoutScroll:x,layoutRoot:T}=n;this.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!v||p&&Tf(p),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof d=="string"?d:"both",initialPromotionConfig:o,layoutScroll:x,layoutRoot:T})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Or()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<US.length;r++){const i=US[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=R5(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<A5;r++){const i=Ay[r],o=this.props[i];(Nd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mf(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=$y(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Do(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sO extends M5{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=KW(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){qW(this,r,s);const l=D5(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function L5(e){return window.getComputedStyle(e)}class F5 extends sO{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Bc.has(n)){const r=Wy(n);return r&&r.default||0}else{const r=L5(t),i=(XE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qk(t,n)}build(t,n,r,i){Ly(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return By(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Do(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){tk(t,n,r,i)}}class N5 extends sO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bc.has(n)){const r=Wy(n);return r&&r.default||0}return n=nk.has(n)?n:Ry(n),t.getAttribute(n)}measureInstanceViewportBox(){return Or()}scrapeMotionValuesFromProps(t,n){return ik(t,n)}build(t,n,r,i){Ny(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){rk(t,n,r,i)}mount(t){this.isSVGTag=jy(t.tagName),super.mount(t)}}const j5=(e,t)=>My(e)?new N5(t,{enableHardwareAcceleration:!1}):new F5(t,{enableHardwareAcceleration:!0}),B5={layout:{ProjectionNode:rO,MeasureLayout:Kk}},$5={...fz,...AU,...v5,...B5},lO=VH((e,t)=>wU(e,t,$5,j5));function uO(e){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(e)}function cO(e){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(e)}function Zy(e,t){return t?e:void 0}function V5(e){return Ue.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Ue.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 H5(e){const{renderChildren:t,parentRef:n,onlyChild:r}=e,[i,o]=X.useState({top:0,left:0}),s=X.useRef(null),[l,c]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&s.current){const d=n.current.getBoundingClientRect(),v=s.current.getBoundingClientRect();let p=d.top;const x=d.left+d.width,T=v.height+(window.innerHeight-d.top)>window.innerHeight;T&&(console.log("overtop"),c(window.innerHeight-d.top-50)),d.top+v.height>window.innerHeight&&!T&&(p=d.top-v.height+d.height),o({top:p,left:x})}},[n,s]),r?t({maxHeight:l}):Wm.createPortal(Ue.jsx("div",{ref:s,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:d=>{console.log("onDragStart Dropdown",d.target)},children:t({maxHeight:l})}),n.current)}function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(null,arguments)}const U5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ff}},Symbol.toStringTag,{value:"Module"}));function fO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qh(e,t)}/*!
|
|
12
|
-
* content-type
|
|
13
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
14
|
-
* MIT Licensed
|
|
15
|
-
*/var WS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,W5=/\\([\u000b\u0020-\u00ff])/g,z5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Y5=G5;function G5(e){if(!e)throw new TypeError("argument string is required");var t=typeof e=="object"?q5(e):e;if(typeof t!="string")throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=n!==-1?t.slice(0,n).trim():t.trim();if(!z5.test(r))throw new TypeError("invalid media type");var i=new X5(r.toLowerCase());if(n!==-1){var o,s,l;for(WS.lastIndex=n;s=WS.exec(t);){if(s.index!==n)throw new TypeError("invalid parameter format");n+=s[0].length,o=s[1].toLowerCase(),l=s[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(W5,"$1"))),i.parameters[o]=l}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}function q5(e){var t;if(typeof e.getHeader=="function"?t=e.getHeader("content-type"):typeof e.headers=="object"&&(t=e.headers&&e.headers["content-type"]),typeof t!="string")throw new TypeError("content-type header is missing from object");return t}function X5(e){this.parameters=Object.create(null),this.type=e}var bf=new Map,dO=function(t){return t.cloneNode(!0)},zS=function(){return window.location.protocol==="file:"},hO=function(t,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var s=Y5(o).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(zS()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(i.status===200||zS()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(l){if(i.abort(),l instanceof Error)r(l,i);else throw l}},i.open("GET",t),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},xu={},YS=function(t,n){xu[t]=xu[t]||[],xu[t].push(n)},K5=function(t){for(var n=function(s,l){setTimeout(function(){if(Array.isArray(xu[t])){var c=bf.get(t),d=xu[t][s];c instanceof SVGSVGElement&&d(null,dO(c)),c instanceof Error&&d(c),s===xu[t].length-1&&delete xu[t]}},0)},r=0,i=xu[t].length;r<i;r++)n(r)},Z5=function(t,n,r){if(bf.has(t)){var i=bf.get(t);if(i===void 0){YS(t,r);return}if(i instanceof SVGSVGElement){r(null,dO(i));return}}bf.set(t,void 0),YS(t,r),hO(t,n,function(o,s){var l;o?bf.set(t,o):((l=s.responseXML)===null||l===void 0?void 0:l.documentElement)instanceof SVGSVGElement&&bf.set(t,s.responseXML.documentElement),K5(t)})},J5=function(t,n,r){hO(t,n,function(i,o){var s;i?r(i):((s=o.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},Q5=0,e4=function(){return++Q5},Ns=[],GS={},t4="http://www.w3.org/2000/svg",xv="http://www.w3.org/1999/xlink",qS=function(t,n,r,i,o,s,l){var c=t.getAttribute("data-src")||t.getAttribute("src");if(!c){l(new Error("Invalid data-src or src attribute"));return}if(Ns.indexOf(t)!==-1){Ns.splice(Ns.indexOf(t),1),t=null;return}Ns.push(t),t.setAttribute("src","");var d=i?Z5:J5;d(c,o,function(v,p){if(!p){Ns.splice(Ns.indexOf(t),1),t=null,l(v);return}var x=t.getAttribute("id");x&&p.setAttribute("id",x);var T=t.getAttribute("title");T&&p.setAttribute("title",T);var _=t.getAttribute("width");_&&p.setAttribute("width",_);var I=t.getAttribute("height");I&&p.setAttribute("height",I);var L=Array.from(new Set(Qo(Qo(Qo([],(p.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();p.setAttribute("class",L);var R=t.getAttribute("style");R&&p.setAttribute("style",R),p.setAttribute("data-src",c);var U=[].filter.call(t.attributes,function(Qe){return/^data-\w[\w-]*$/.test(Qe.name)});if(Array.prototype.forEach.call(U,function(Qe){Qe.name&&Qe.value&&p.setAttribute(Qe.name,Qe.value)}),r){var W={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"]},te,J,pe,S,ce;Object.keys(W).forEach(function(Qe){te=Qe,pe=W[Qe],J=p.querySelectorAll(te+"[id]");for(var at=function(We,Re){S=J[We].id,ce=S+"-"+e4();var Fe;Array.prototype.forEach.call(pe,function($t){Fe=p.querySelectorAll("["+$t+'*="'+S+'"]');for(var Ht=0,Xn=Fe.length;Ht<Xn;Ht++){var mr=Fe[Ht].getAttribute($t);mr&&!mr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Fe[Ht].setAttribute($t,"url(#"+ce+")")}});for(var He=p.querySelectorAll("[*|href]"),lt=[],ct=0,yt=He.length;ct<yt;ct++){var dt=He[ct].getAttributeNS(xv,"href");dt&&dt.toString()==="#"+J[We].id&<.push(He[ct])}for(var Tt=0,ot=lt.length;Tt<ot;Tt++)lt[Tt].setAttributeNS(xv,"href","#"+ce);J[We].id=ce},Ee=0,_e=J.length;Ee<_e;Ee++)at(Ee)})}p.removeAttribute("xmlns:a");for(var ae=p.querySelectorAll("script"),Ne=[],Ge,qe,it=0,nt=ae.length;it<nt;it++)qe=ae[it].getAttribute("type"),(!qe||qe==="application/ecmascript"||qe==="application/javascript"||qe==="text/javascript")&&(Ge=ae[it].innerText||ae[it].textContent,Ge&&Ne.push(Ge),p.removeChild(ae[it]));if(Ne.length>0&&(n==="always"||n==="once"&&!GS[c])){for(var me=0,Se=Ne.length;me<Se;me++)new Function(Ne[me])(window);GS[c]=!0}var Ve=p.querySelectorAll("style");if(Array.prototype.forEach.call(Ve,function(Qe){Qe.textContent+=""}),p.setAttribute("xmlns",t4),p.setAttribute("xmlns:xlink",xv),s(p),!t.parentNode){Ns.splice(Ns.indexOf(t),1),t=null,l(new Error("Parent node is null"));return}t.parentNode.replaceChild(p,t),Ns.splice(Ns.indexOf(t),1),t=null,l(null,p)})},n4=function(t,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,s=r.afterEach,l=s===void 0?function(){}:s,c=r.beforeEach,d=c===void 0?function(){}:c,v=r.cacheRequests,p=v===void 0?!0:v,x=r.evalScripts,T=x===void 0?"never":x,_=r.httpRequestWithCredentials,I=_===void 0?!1:_,L=r.renumerateIRIElements,R=L===void 0?!0:L;if(t&&"length"in t)for(var U=0,W=0,te=t.length;W<te;W++)qS(t[W],T,R,p,I,d,function(J,pe){l(J,pe),t&&"length"in t&&t.length===++U&&o(U)});else t?qS(t,T,R,p,I,d,function(J,pe){l(J,pe),o(1),t=null}):o(0)},Mm={exports:{}},Bh={exports:{}},xn={};/** @license React v16.13.1
|
|
16
|
-
* react-is.production.min.js
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*/var XS;function r4(){if(XS)return xn;XS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function W(J){if(typeof J=="object"&&J!==null){var pe=J.$$typeof;switch(pe){case t:switch(J=J.type,J){case c:case d:case r:case o:case i:case p:return J;default:switch(J=J&&J.$$typeof,J){case l:case v:case _:case T:case s:return J;default:return pe}}case n:return pe}}}function te(J){return W(J)===d}return xn.AsyncMode=c,xn.ConcurrentMode=d,xn.ContextConsumer=l,xn.ContextProvider=s,xn.Element=t,xn.ForwardRef=v,xn.Fragment=r,xn.Lazy=_,xn.Memo=T,xn.Portal=n,xn.Profiler=o,xn.StrictMode=i,xn.Suspense=p,xn.isAsyncMode=function(J){return te(J)||W(J)===c},xn.isConcurrentMode=te,xn.isContextConsumer=function(J){return W(J)===l},xn.isContextProvider=function(J){return W(J)===s},xn.isElement=function(J){return typeof J=="object"&&J!==null&&J.$$typeof===t},xn.isForwardRef=function(J){return W(J)===v},xn.isFragment=function(J){return W(J)===r},xn.isLazy=function(J){return W(J)===_},xn.isMemo=function(J){return W(J)===T},xn.isPortal=function(J){return W(J)===n},xn.isProfiler=function(J){return W(J)===o},xn.isStrictMode=function(J){return W(J)===i},xn.isSuspense=function(J){return W(J)===p},xn.isValidElementType=function(J){return typeof J=="string"||typeof J=="function"||J===r||J===d||J===o||J===i||J===p||J===x||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===T||J.$$typeof===s||J.$$typeof===l||J.$$typeof===v||J.$$typeof===L||J.$$typeof===R||J.$$typeof===U||J.$$typeof===I)},xn.typeOf=W,xn}var Sn={};/** @license React v16.13.1
|
|
23
|
-
* react-is.development.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var KS;function i4(){return KS||(KS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,I=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function W(ot){return typeof ot=="string"||typeof ot=="function"||ot===r||ot===d||ot===o||ot===i||ot===p||ot===x||typeof ot=="object"&&ot!==null&&(ot.$$typeof===_||ot.$$typeof===T||ot.$$typeof===s||ot.$$typeof===l||ot.$$typeof===v||ot.$$typeof===L||ot.$$typeof===R||ot.$$typeof===U||ot.$$typeof===I)}function te(ot){if(typeof ot=="object"&&ot!==null){var $t=ot.$$typeof;switch($t){case t:var Ht=ot.type;switch(Ht){case c:case d:case r:case o:case i:case p:return Ht;default:var Xn=Ht&&Ht.$$typeof;switch(Xn){case l:case v:case _:case T:case s:return Xn;default:return $t}}case n:return $t}}}var J=c,pe=d,S=l,ce=s,ae=t,Ne=v,Ge=r,qe=_,it=T,nt=n,me=o,Se=i,Ve=p,Qe=!1;function at(ot){return Qe||(Qe=!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.")),Ee(ot)||te(ot)===c}function Ee(ot){return te(ot)===d}function _e(ot){return te(ot)===l}function Ye(ot){return te(ot)===s}function We(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===t}function Re(ot){return te(ot)===v}function Fe(ot){return te(ot)===r}function He(ot){return te(ot)===_}function lt(ot){return te(ot)===T}function ct(ot){return te(ot)===n}function yt(ot){return te(ot)===o}function dt(ot){return te(ot)===i}function Tt(ot){return te(ot)===p}Sn.AsyncMode=J,Sn.ConcurrentMode=pe,Sn.ContextConsumer=S,Sn.ContextProvider=ce,Sn.Element=ae,Sn.ForwardRef=Ne,Sn.Fragment=Ge,Sn.Lazy=qe,Sn.Memo=it,Sn.Portal=nt,Sn.Profiler=me,Sn.StrictMode=Se,Sn.Suspense=Ve,Sn.isAsyncMode=at,Sn.isConcurrentMode=Ee,Sn.isContextConsumer=_e,Sn.isContextProvider=Ye,Sn.isElement=We,Sn.isForwardRef=Re,Sn.isFragment=Fe,Sn.isLazy=He,Sn.isMemo=lt,Sn.isPortal=ct,Sn.isProfiler=yt,Sn.isStrictMode=dt,Sn.isSuspense=Tt,Sn.isValidElementType=W,Sn.typeOf=te}()),Sn}var ZS;function pO(){return ZS||(ZS=1,process.env.NODE_ENV==="production"?Bh.exports=r4():Bh.exports=i4()),Bh.exports}/*
|
|
30
|
-
object-assign
|
|
31
|
-
(c) Sindre Sorhus
|
|
32
|
-
@license MIT
|
|
33
|
-
*/var Sv,JS;function o4(){if(JS)return Sv;JS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(v){return s[v]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(v){d[v]=v}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sv=i()?Object.assign:function(o,s){for(var l,c=r(o),d,v=1;v<arguments.length;v++){l=Object(arguments[v]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){d=e(l);for(var x=0;x<d.length;x++)n.call(l,d[x])&&(c[d[x]]=l[d[x]])}}return c},Sv}var Tv,QS;function Jy(){if(QS)return Tv;QS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Tv=e,Tv}var Cv,e1;function gO(){return e1||(e1=1,Cv=Function.call.bind(Object.prototype.hasOwnProperty)),Cv}var Ev,t1;function a4(){if(t1)return Ev;t1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jy(),n={},r=gO();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var v in o)if(r(o,v)){var p;try{if(typeof o[v]!="function"){var x=Error((c||"React class")+": "+l+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}p=o[v](s,v,c,l,null,t)}catch(_){p=_}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var T=d?d():"";e("Failed "+l+" type: "+p.message+(T??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ev=i,Ev}var kv,n1;function s4(){if(n1)return kv;n1=1;var e=pO(),t=o4(),n=Jy(),r=gO(),i=a4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return kv=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function p(Ee){var _e=Ee&&(d&&Ee[d]||Ee[v]);if(typeof _e=="function")return _e}var x="<<anonymous>>",T={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:W,element:te(),elementType:J(),instanceOf:pe,node:Ne(),objectOf:ce,oneOf:S,oneOfType:ae,shape:qe,exact:it};function _(Ee,_e){return Ee===_e?Ee!==0||1/Ee===1/_e:Ee!==Ee&&_e!==_e}function I(Ee,_e){this.message=Ee,this.data=_e&&typeof _e=="object"?_e:{},this.stack=""}I.prototype=Error.prototype;function L(Ee){if(process.env.NODE_ENV!=="production")var _e={},Ye=0;function We(Fe,He,lt,ct,yt,dt,Tt){if(ct=ct||x,dt=dt||lt,Tt!==n){if(c){var ot=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 ot.name="Invariant Violation",ot}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var $t=ct+":"+lt;!_e[$t]&&Ye<3&&(o("You are manually calling a React.PropTypes validation function for the `"+dt+"` 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."),_e[$t]=!0,Ye++)}}return He[lt]==null?Fe?He[lt]===null?new I("The "+yt+" `"+dt+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+yt+" `"+dt+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:Ee(He,lt,ct,yt,dt)}var Re=We.bind(null,!1);return Re.isRequired=We.bind(null,!0),Re}function R(Ee){function _e(Ye,We,Re,Fe,He,lt){var ct=Ye[We],yt=Se(ct);if(yt!==Ee){var dt=Ve(ct);return new I("Invalid "+Fe+" `"+He+"` of type "+("`"+dt+"` supplied to `"+Re+"`, expected ")+("`"+Ee+"`."),{expectedType:Ee})}return null}return L(_e)}function U(){return L(s)}function W(Ee){function _e(Ye,We,Re,Fe,He){if(typeof Ee!="function")return new I("Property `"+He+"` of component `"+Re+"` has invalid PropType notation inside arrayOf.");var lt=Ye[We];if(!Array.isArray(lt)){var ct=Se(lt);return new I("Invalid "+Fe+" `"+He+"` of type "+("`"+ct+"` supplied to `"+Re+"`, expected an array."))}for(var yt=0;yt<lt.length;yt++){var dt=Ee(lt,yt,Re,Fe,He+"["+yt+"]",n);if(dt instanceof Error)return dt}return null}return L(_e)}function te(){function Ee(_e,Ye,We,Re,Fe){var He=_e[Ye];if(!l(He)){var lt=Se(He);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+We+"`, expected a single ReactElement."))}return null}return L(Ee)}function J(){function Ee(_e,Ye,We,Re,Fe){var He=_e[Ye];if(!e.isValidElementType(He)){var lt=Se(He);return new I("Invalid "+Re+" `"+Fe+"` of type "+("`"+lt+"` supplied to `"+We+"`, expected a single ReactElement type."))}return null}return L(Ee)}function pe(Ee){function _e(Ye,We,Re,Fe,He){if(!(Ye[We]instanceof Ee)){var lt=Ee.name||x,ct=at(Ye[We]);return new I("Invalid "+Fe+" `"+He+"` of type "+("`"+ct+"` supplied to `"+Re+"`, expected ")+("instance of `"+lt+"`."))}return null}return L(_e)}function S(Ee){if(!Array.isArray(Ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function _e(Ye,We,Re,Fe,He){for(var lt=Ye[We],ct=0;ct<Ee.length;ct++)if(_(lt,Ee[ct]))return null;var yt=JSON.stringify(Ee,function(Tt,ot){var $t=Ve(ot);return $t==="symbol"?String(ot):ot});return new I("Invalid "+Fe+" `"+He+"` of value `"+String(lt)+"` "+("supplied to `"+Re+"`, expected one of "+yt+"."))}return L(_e)}function ce(Ee){function _e(Ye,We,Re,Fe,He){if(typeof Ee!="function")return new I("Property `"+He+"` of component `"+Re+"` has invalid PropType notation inside objectOf.");var lt=Ye[We],ct=Se(lt);if(ct!=="object")return new I("Invalid "+Fe+" `"+He+"` of type "+("`"+ct+"` supplied to `"+Re+"`, expected an object."));for(var yt in lt)if(r(lt,yt)){var dt=Ee(lt,yt,Re,Fe,He+"."+yt,n);if(dt instanceof Error)return dt}return null}return L(_e)}function ae(Ee){if(!Array.isArray(Ee))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var _e=0;_e<Ee.length;_e++){var Ye=Ee[_e];if(typeof Ye!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Qe(Ye)+" at index "+_e+"."),s}function We(Re,Fe,He,lt,ct){for(var yt=[],dt=0;dt<Ee.length;dt++){var Tt=Ee[dt],ot=Tt(Re,Fe,He,lt,ct,n);if(ot==null)return null;ot.data&&r(ot.data,"expectedType")&&yt.push(ot.data.expectedType)}var $t=yt.length>0?", expected one of type ["+yt.join(", ")+"]":"";return new I("Invalid "+lt+" `"+ct+"` supplied to "+("`"+He+"`"+$t+"."))}return L(We)}function Ne(){function Ee(_e,Ye,We,Re,Fe){return nt(_e[Ye])?null:new I("Invalid "+Re+" `"+Fe+"` supplied to "+("`"+We+"`, expected a ReactNode."))}return L(Ee)}function Ge(Ee,_e,Ye,We,Re){return new I((Ee||"React class")+": "+_e+" type `"+Ye+"."+We+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Re+"`.")}function qe(Ee){function _e(Ye,We,Re,Fe,He){var lt=Ye[We],ct=Se(lt);if(ct!=="object")return new I("Invalid "+Fe+" `"+He+"` of type `"+ct+"` "+("supplied to `"+Re+"`, expected `object`."));for(var yt in Ee){var dt=Ee[yt];if(typeof dt!="function")return Ge(Re,Fe,He,yt,Ve(dt));var Tt=dt(lt,yt,Re,Fe,He+"."+yt,n);if(Tt)return Tt}return null}return L(_e)}function it(Ee){function _e(Ye,We,Re,Fe,He){var lt=Ye[We],ct=Se(lt);if(ct!=="object")return new I("Invalid "+Fe+" `"+He+"` of type `"+ct+"` "+("supplied to `"+Re+"`, expected `object`."));var yt=t({},Ye[We],Ee);for(var dt in yt){var Tt=Ee[dt];if(r(Ee,dt)&&typeof Tt!="function")return Ge(Re,Fe,He,dt,Ve(Tt));if(!Tt)return new I("Invalid "+Fe+" `"+He+"` key `"+dt+"` supplied to `"+Re+"`.\nBad object: "+JSON.stringify(Ye[We],null," ")+`
|
|
34
|
-
Valid keys: `+JSON.stringify(Object.keys(Ee),null," "));var ot=Tt(lt,dt,Re,Fe,He+"."+dt,n);if(ot)return ot}return null}return L(_e)}function nt(Ee){switch(typeof Ee){case"number":case"string":case"undefined":return!0;case"boolean":return!Ee;case"object":if(Array.isArray(Ee))return Ee.every(nt);if(Ee===null||l(Ee))return!0;var _e=p(Ee);if(_e){var Ye=_e.call(Ee),We;if(_e!==Ee.entries){for(;!(We=Ye.next()).done;)if(!nt(We.value))return!1}else for(;!(We=Ye.next()).done;){var Re=We.value;if(Re&&!nt(Re[1]))return!1}}else return!1;return!0;default:return!1}}function me(Ee,_e){return Ee==="symbol"?!0:_e?_e["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_e instanceof Symbol:!1}function Se(Ee){var _e=typeof Ee;return Array.isArray(Ee)?"array":Ee instanceof RegExp?"object":me(_e,Ee)?"symbol":_e}function Ve(Ee){if(typeof Ee>"u"||Ee===null)return""+Ee;var _e=Se(Ee);if(_e==="object"){if(Ee instanceof Date)return"date";if(Ee instanceof RegExp)return"regexp"}return _e}function Qe(Ee){var _e=Ve(Ee);switch(_e){case"array":case"object":return"an "+_e;case"boolean":case"date":case"regexp":return"a "+_e;default:return _e}}function at(Ee){return!Ee.constructor||!Ee.constructor.name?x:Ee.constructor.name}return T.checkPropTypes=i,T.resetWarningCache=i.resetWarningCache,T.PropTypes=T,T},kv}var Ov,r1;function l4(){if(r1)return Ov;r1=1;var e=Jy();function t(){}function n(){}return n.resetWarningCache=t,Ov=function(){function r(s,l,c,d,v,p){if(p!==e){var x=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 x.name="Invariant Violation",x}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ov}if(process.env.NODE_ENV!=="production"){var u4=pO(),c4=!0;Mm.exports=s4()(u4.isElement,c4)}else Mm.exports=l4()();var kr=Mm.exports;const Oa=Mu(kr);var f4=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},d4=function(t,n){for(var r in t)if(!(r in n))return!0;for(var i in n)if(t[i]!==n[i])return!0;return!1},h4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],$h="http://www.w3.org/2000/svg",i1="http://www.w3.org/1999/xlink",ng=function(e){function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(l){r.reactWrapper=l},r}fO(t,e);var n=t.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof f4(this.reactWrapper).Node){var o=this.props,s=o.desc,l=o.evalScripts,c=o.httpRequestWithCredentials,d=o.renumerateIRIElements,v=o.src,p=o.title,x=o.useRequestCache,T=this.props.onError,_=this.props.beforeInjection,I=this.props.afterInjection,L=this.props.wrapper,R,U;L==="svg"?(R=document.createElementNS($h,L),R.setAttribute("xmlns",$h),R.setAttribute("xmlns:xlink",i1),U=document.createElementNS($h,L)):(R=document.createElement(L),U=document.createElement(L)),R.appendChild(U),U.dataset.src=v,this.nonReactWrapper=this.reactWrapper.appendChild(R);var W=function(S){if(i.removeSVG(),!i._isMounted){T(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){T(S)})},te=function(S,ce){if(S){W(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ce)}catch(ae){W(ae)}})},J=function(S){if(S.setAttribute("role","img"),s){var ce=S.querySelector(":scope > desc");ce&&S.removeChild(ce);var ae=document.createElement("desc");ae.innerHTML=s,S.prepend(ae)}if(p){var Ne=S.querySelector(":scope > title");Ne&&S.removeChild(Ne);var Ge=document.createElement("title");Ge.innerHTML=p,S.prepend(Ge)}try{_(S)}catch(qe){W(qe)}};n4(U,{afterEach:te,beforeEach:J,cacheRequests:x,evalScripts:l,httpRequestWithCredentials:c,renumerateIRIElements:d})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;d4(Ff({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var s=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var l=i.wrapper,c=Gm(i,h4),d=l;return Tn.createElement(d,Ff({},c,{ref:this.refCallback},l==="svg"?{xmlns:$h,xmlnsXlink:i1}:{}),this.state.isLoading&&s&&Tn.createElement(s,null),this.state.hasError&&o&&Tn.createElement(o,null))},t}(Tn.Component);ng.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};ng.propTypes={afterInjection:kr.func,beforeInjection:kr.func,desc:kr.string,evalScripts:kr.oneOf(["always","once","never"]),fallback:kr.oneOfType([kr.func,kr.object,kr.string]),httpRequestWithCredentials:kr.bool,loading:kr.oneOfType([kr.func,kr.object,kr.string]),onError:kr.func,renumerateIRIElements:kr.bool,src:kr.string.isRequired,title:kr.string,useRequestCache:kr.bool,wrapper:kr.oneOf(["div","span","svg"])};const Nf=new Map;Nf.set("text",e=>{var t;return Ue.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});Nf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return Ue.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ue.jsx(t,{svgString:e.icon})});Nf.set("svgHttp",e=>Ue.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Nf.set("img",e=>Ue.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function p4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function vO({item:e}){return(Nf.get(p4(e))||Nf.get("text"))(e)}function g4(e){return Ue.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:Ue.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 v4(e){const{renderChildren:t,parentRef:n,onlyChild:r,dropdownLevel:i}=e,[o,s]=X.useState({top:0,left:0}),l=X.useRef(null),[c,d]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&l.current){const v=n.current.getBoundingClientRect(),p=l.current.getBoundingClientRect();let x,T;if(i===1)x=v.bottom,T=v.left,p.height+x>window.innerHeight?(d(window.innerHeight-x-50),x=v.bottom-p.height):x=v.bottom;else if(i>1){x=v.top,T=v.left+v.width;const _=p.height+(window.innerHeight-v.top)>window.innerHeight;_&&(console.log("DropDown-fav overtop"),d(window.innerHeight-v.top-50)),v.top+p.height>window.innerHeight&&!_&&(x=v.top-p.height+v.height)}s({top:x-64,left:T})}},[n,l,i]),r?t({maxHeight:c}):Wm.createPortal(Ue.jsx("div",{ref:l,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:t({maxHeight:c})}),n.current)}const jf=new Map;jf.set("text",e=>{var t;return Ue.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(t=e.name.trim().at(0))==null?void 0:t.toUpperCase()})});jf.set("svgHtml",e=>{function t(n){function r(o){const l=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return l?(l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")}),l.outerHTML):""}const i=r(n.svgString);return Ue.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ue.jsx(t,{svgString:e.icon})});jf.set("svgHttp",e=>Ue.jsx(ng,{src:e.icon,beforeInjection:t=>{t.setAttribute("style","margin: 0 auto;"),t.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));jf.set("img",e=>Ue.jsx("img",{src:e.icon||"/",alt:e.name,style:{height:24,maxHeight:24,maxWidth:24}}));function m4(e){return e.icon=(e.icon||"").trim(),e.icon?e.icon.startsWith("<svg")?"svgHtml":e.icon.endsWith(".svg")?"svgHttp":"img":"text"}function y4({item:e}){return(jf.get(m4(e))||jf.get("text"))(e)}function mO({...e}){var Ge,qe,it,nt,me;const t=e.item,n=e.level||0,r=!!((Ge=e.item.children)!=null&&Ge.length),{isActive:i}=e,o=`level-${n}`,s=i(t.id)?"active":"",l=(Se,Ve=o)=>`${Se} ${Ve} ${s}`,[c,d]=X.useState(!1),[v,p]=X.useState(t.isFavorite||!1),x=X.useRef(),T=X.useRef();T!=null&&T.current&&((qe=T==null?void 0:T.current)==null?void 0:qe.scrollWidth)>((it=T==null?void 0:T.current)==null?void 0:it.clientWidth);const _=window.location.origin,I=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},L=window.location.pathname.split("/")[1],R=I.pathname.split("/")[1],U=e.item.redirectUrl||e.ssr||!_.includes("local")&&_!==I.origin||R!==L,W=r||n===0?"div":U?"a":_p.Link,te=t.redirectUrl||t.path||"#",J=n+1,pe=r&&c&&n>0,S=()=>{d(!0)},ce=()=>{d(!1)},ae="/global-menu-config/api/v1/menu-items/user/set-favorite",Ne=_!==I.origin||e.item.redirectUrl?"_blank":"_self";return Ue.jsxs("div",{ref:x,className:l("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:S,onMouseOut:ce,onDragStart:Se=>{n>1&&Se.preventDefault()},children:[Ue.jsxs(W,{target:Ne,to:te,href:te,draggable:"true",className:l("menu-item__link"),style:{width:"100%",transition:"all 0.3s",color:i(t.id)?((nt=e.brandColors)==null?void 0:nt.primary400)||Gr.primary400:void 0,backgroundColor:i(t.id)&&n===1?(me=e.brandColors)==null?void 0:me.primary200:void 0},onDragStart:Se=>{console.log("onDragStart component",Se.target)},children:[Ue.jsx(b4,{cls:l,item:t}),Ue.jsx("span",{className:l("menu-item__label"),ref:T,children:t.name}),Ue.jsx(w4,{menuLevel:n,hasChildren:r,isHovered:c,isFavorite:v,onClick:Se=>{const Ve={menuConfigId:t.id,isFavorite:Se},Qe=e.baseUrl+ae;as.post(Qe,Ve).then(at=>{var Ee;p(Se),Qm("Set favorite menu item successfully"),(Ee=e.onSetFavoriteSuccess)==null||Ee.call(e,e.item.id,Se)}).catch(at=>{var Ee,_e;Wd(((_e=(Ee=at.response)==null?void 0:Ee.data)==null?void 0:_e.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ue.jsx("div",{className:l("menu-item__icon-arrow__wrapper"),children:Ue.jsx(g4,{className:l("menu-item__icon-arrow__icon")})})]}),pe&&Ue.jsx(v4,{parentRef:x,onlyChild:J<2,dropdownLevel:n,renderChildren:({maxHeight:Se})=>{var Ve;return Ue.jsx(lO.div,{className:l("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${J}`),style:Zy({maxHeight:Se,overflowY:"auto",paddingRight:3},Se!=="auto"&&!!J),children:(Ve=t.children)==null?void 0:Ve.map(Qe=>X.createElement(mO,{...e,key:Qe.id,item:Qe,level:J}))})}})]})}function b4({item:e,cls:t}){return Ue.jsx("div",{className:t("menu-item__icon"),children:Ue.jsx(y4,{item:e})})}function w4(e){const t={marginRight:e.hasChildren?10:0,fontSize:22,fill:Gr.warning,minWidth:16};if(e.menuLevel!==0)return Ue.jsxs(Ue.Fragment,{children:[e.isHovered&&!e.isFavorite&&Ue.jsx(ss.Tooltip,{title:"Add to favorites",children:Ue.jsx(uO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})}),e.isFavorite&&Ue.jsx(ss.Tooltip,{title:"Remove from favorites",children:Ue.jsx(cO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})]})}const x4=`.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:all .3s;width:100%}.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}}
|
|
35
|
-
`;var xc={};/**
|
|
36
|
-
* @license React
|
|
37
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the MIT license found in the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/var o1;function S4(){if(o1)return xc;o1=1;var e=X;function t(E){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+E,q=1;q<arguments.length;q++)j+="&args[]="+encodeURIComponent(arguments[q]);return"Minified React error #"+E+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function s(E){return n.call(o,E)?!0:n.call(i,E)?!1:r.test(E)?o[E]=!0:(i[E]=!0,!1)}function l(E,j,q,re,De,be,Me){this.acceptsBooleans=j===2||j===3||j===4,this.attributeName=re,this.attributeNamespace=De,this.mustUseProperty=q,this.propertyName=E,this.type=j,this.sanitizeURL=be,this.removeEmptyString=Me}var c={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(E){c[E]=new l(E,0,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(E){var j=E[0];c[j]=new l(j,1,!1,E[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(E){c[E]=new l(E,2,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(E){c[E]=new l(E,2,!1,E,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(E){c[E]=new l(E,3,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(E){c[E]=new l(E,3,!0,E,null,!1,!1)}),["capture","download"].forEach(function(E){c[E]=new l(E,4,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(function(E){c[E]=new l(E,6,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(function(E){c[E]=new l(E,5,!1,E.toLowerCase(),null,!1,!1)});var d=/[\-:]([a-z])/g;function v(E){return E[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(E){var j=E.replace(d,v);c[j]=new l(j,1,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!1,!1)}),c.xlinkHref=new l("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(E){c[E]=new l(E,1,!1,E.toLowerCase(),null,!0,!0)});var p={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x=["Webkit","ms","Moz","O"];Object.keys(p).forEach(function(E){x.forEach(function(j){j=j+E.charAt(0).toUpperCase()+E.substring(1),p[j]=p[E]})});var T=/["'&<>]/;function _(E){if(typeof E=="boolean"||typeof E=="number")return""+E;E=""+E;var j=T.exec(E);if(j){var q="",re,De=0;for(re=j.index;re<E.length;re++){switch(E.charCodeAt(re)){case 34:j=""";break;case 38:j="&";break;case 39:j="'";break;case 60:j="<";break;case 62:j=">";break;default:continue}De!==re&&(q+=E.substring(De,re)),De=re+1,q+=j}E=De!==re?q+E.substring(De,re):q}return E}var I=/([A-Z])/g,L=/^ms-/,R=Array.isArray;function U(E,j){return{insertionMode:E,selectedValue:j}}function W(E,j,q){switch(j){case"select":return U(1,q.value!=null?q.value:q.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=E.insertionMode||E.insertionMode===0?U(1,null):E}var te=new Map;function J(E,j,q){if(typeof q!="object")throw Error(t(62));j=!0;for(var re in q)if(n.call(q,re)){var De=q[re];if(De!=null&&typeof De!="boolean"&&De!==""){if(re.indexOf("--")===0){var be=_(re);De=_((""+De).trim())}else{be=re;var Me=te.get(be);Me!==void 0||(Me=_(be.replace(I,"-$1").toLowerCase().replace(L,"-ms-")),te.set(be,Me)),be=Me,De=typeof De=="number"?De===0||n.call(p,re)?""+De:De+"px":_((""+De).trim())}j?(j=!1,E.push(' style="',be,":",De)):E.push(";",be,":",De)}}j||E.push('"')}function pe(E,j,q,re){switch(q){case"style":J(E,j,re);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<q.length)||q[0]!=="o"&&q[0]!=="O"||q[1]!=="n"&&q[1]!=="N"){if(j=c.hasOwnProperty(q)?c[q]:null,j!==null){switch(typeof re){case"function":case"symbol":return;case"boolean":if(!j.acceptsBooleans)return}switch(q=j.attributeName,j.type){case 3:re&&E.push(" ",q,'=""');break;case 4:re===!0?E.push(" ",q,'=""'):re!==!1&&E.push(" ",q,'="',_(re),'"');break;case 5:isNaN(re)||E.push(" ",q,'="',_(re),'"');break;case 6:!isNaN(re)&&1<=re&&E.push(" ",q,'="',_(re),'"');break;default:j.sanitizeURL&&(re=""+re),E.push(" ",q,'="',_(re),'"')}}else if(s(q)){switch(typeof re){case"function":case"symbol":return;case"boolean":if(j=q.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")return}E.push(" ",q,'="',_(re),'"')}}}function S(E,j,q){if(j!=null){if(q!=null)throw Error(t(60));if(typeof j!="object"||!("__html"in j))throw Error(t(61));j=j.__html,j!=null&&E.push(""+j)}}function ce(E){var j="";return e.Children.forEach(E,function(q){q!=null&&(j+=q)}),j}function ae(E,j,q,re){E.push(qe(q));var De=q=null,be;for(be in j)if(n.call(j,be)){var Me=j[be];if(Me!=null)switch(be){case"children":q=Me;break;case"dangerouslySetInnerHTML":De=Me;break;default:pe(E,re,be,Me)}}return E.push(">"),S(E,De,q),typeof q=="string"?(E.push(_(q)),null):q}var Ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ge=new Map;function qe(E){var j=Ge.get(E);if(j===void 0){if(!Ne.test(E))throw Error(t(65,E));j="<"+E,Ge.set(E,j)}return j}function it(E,j,q,re,De){switch(j){case"select":E.push(qe("select"));var be=null,Me=null;for(wt in q)if(n.call(q,wt)){var tt=q[wt];if(tt!=null)switch(wt){case"children":be=tt;break;case"dangerouslySetInnerHTML":Me=tt;break;case"defaultValue":case"value":break;default:pe(E,re,wt,tt)}}return E.push(">"),S(E,Me,be),be;case"option":Me=De.selectedValue,E.push(qe("option"));var bt=tt=null,Ct=null,wt=null;for(be in q)if(n.call(q,be)){var Ut=q[be];if(Ut!=null)switch(be){case"children":tt=Ut;break;case"selected":Ct=Ut;break;case"dangerouslySetInnerHTML":wt=Ut;break;case"value":bt=Ut;default:pe(E,re,be,Ut)}}if(Me!=null)if(q=bt!==null?""+bt:ce(tt),R(Me)){for(re=0;re<Me.length;re++)if(""+Me[re]===q){E.push(' selected=""');break}}else""+Me===q&&E.push(' selected=""');else Ct&&E.push(' selected=""');return E.push(">"),S(E,wt,tt),tt;case"textarea":E.push(qe("textarea")),wt=Me=be=null;for(tt in q)if(n.call(q,tt)&&(bt=q[tt],bt!=null))switch(tt){case"children":wt=bt;break;case"value":be=bt;break;case"defaultValue":Me=bt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:pe(E,re,tt,bt)}if(be===null&&Me!==null&&(be=Me),E.push(">"),wt!=null){if(be!=null)throw Error(t(92));if(R(wt)&&1<wt.length)throw Error(t(93));be=""+wt}return typeof be=="string"&&be[0]===`
|
|
44
|
-
`&&E.push(`
|
|
45
|
-
`),be!==null&&E.push(_(""+be)),null;case"input":E.push(qe("input")),bt=wt=tt=be=null;for(Me in q)if(n.call(q,Me)&&(Ct=q[Me],Ct!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":bt=Ct;break;case"defaultValue":tt=Ct;break;case"checked":wt=Ct;break;case"value":be=Ct;break;default:pe(E,re,Me,Ct)}return wt!==null?pe(E,re,"checked",wt):bt!==null&&pe(E,re,"checked",bt),be!==null?pe(E,re,"value",be):tt!==null&&pe(E,re,"value",tt),E.push("/>"),null;case"menuitem":E.push(qe("menuitem"));for(var Qn in q)if(n.call(q,Qn)&&(be=q[Qn],be!=null))switch(Qn){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:pe(E,re,Qn,be)}return E.push(">"),null;case"title":E.push(qe("title")),be=null;for(Ut in q)if(n.call(q,Ut)&&(Me=q[Ut],Me!=null))switch(Ut){case"children":be=Me;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:pe(E,re,Ut,Me)}return E.push(">"),be;case"listing":case"pre":E.push(qe(j)),Me=be=null;for(bt in q)if(n.call(q,bt)&&(tt=q[bt],tt!=null))switch(bt){case"children":be=tt;break;case"dangerouslySetInnerHTML":Me=tt;break;default:pe(E,re,bt,tt)}if(E.push(">"),Me!=null){if(be!=null)throw Error(t(60));if(typeof Me!="object"||!("__html"in Me))throw Error(t(61));q=Me.__html,q!=null&&(typeof q=="string"&&0<q.length&&q[0]===`
|
|
46
|
-
`?E.push(`
|
|
47
|
-
`,q):E.push(""+q))}return typeof be=="string"&&be[0]===`
|
|
48
|
-
`&&E.push(`
|
|
49
|
-
`),be;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":E.push(qe(j));for(var Yn in q)if(n.call(q,Yn)&&(be=q[Yn],be!=null))switch(Yn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,j));default:pe(E,re,Yn,be)}return E.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ae(E,q,j,re);case"html":return De.insertionMode===0&&E.push("<!DOCTYPE html>"),ae(E,q,j,re);default:if(j.indexOf("-")===-1&&typeof q.is!="string")return ae(E,q,j,re);E.push(qe(j)),Me=be=null;for(Ct in q)if(n.call(q,Ct)&&(tt=q[Ct],tt!=null))switch(Ct){case"children":be=tt;break;case"dangerouslySetInnerHTML":Me=tt;break;case"style":J(E,re,tt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:s(Ct)&&typeof tt!="function"&&typeof tt!="symbol"&&E.push(" ",Ct,'="',_(tt),'"')}return E.push(">"),S(E,Me,be),be}}function nt(E,j,q){if(E.push('<!--$?--><template id="'),q===null)throw Error(t(395));return E.push(q),E.push('"></template>')}function me(E,j,q,re){switch(q.insertionMode){case 0:case 1:return E.push('<div hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 2:return E.push('<svg aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 3:return E.push('<math aria-hidden="true" style="display:none" id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 4:return E.push('<table hidden id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 5:return E.push('<table hidden><tbody id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 6:return E.push('<table hidden><tr id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');case 7:return E.push('<table hidden><colgroup id="'),E.push(j.segmentPrefix),j=re.toString(16),E.push(j),E.push('">');default:throw Error(t(397))}}function Se(E,j){switch(j.insertionMode){case 0:case 1:return E.push("</div>");case 2:return E.push("</svg>");case 3:return E.push("</math>");case 4:return E.push("</table>");case 5:return E.push("</tbody></table>");case 6:return E.push("</tr></table>");case 7:return E.push("</colgroup></table>");default:throw Error(t(397))}}var Ve=/[<\u2028\u2029]/g;function Qe(E){return JSON.stringify(E).replace(Ve,function(j){switch(j){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function at(E,j){return j=j===void 0?"":j,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:j+"P:",segmentPrefix:j+"S:",boundaryPrefix:j+"B:",idPrefix:j,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:E}}function Ee(E,j,q,re){return q.generateStaticMarkup?(E.push(_(j)),!1):(j===""?E=re:(re&&E.push("<!-- -->"),E.push(_(j)),E=!0),E)}var _e=Object.assign,Ye=Symbol.for("react.element"),We=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),Fe=Symbol.for("react.strict_mode"),He=Symbol.for("react.profiler"),lt=Symbol.for("react.provider"),ct=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),ot=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),Ht=Symbol.for("react.scope"),Xn=Symbol.for("react.debug_trace_mode"),mr=Symbol.for("react.legacy_hidden"),Kn=Symbol.for("react.default_value"),Dn=Symbol.iterator;function $i(E){if(E==null)return null;if(typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case Re:return"Fragment";case We:return"Portal";case He:return"Profiler";case Fe:return"StrictMode";case dt:return"Suspense";case Tt:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case ct:return(E.displayName||"Context")+".Consumer";case lt:return(E._context.displayName||"Context")+".Provider";case yt:var j=E.render;return E=E.displayName,E||(E=j.displayName||j.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case ot:return j=E.displayName||null,j!==null?j:$i(E.type)||"Memo";case $t:j=E._payload,E=E._init;try{return $i(E(j))}catch{}}return null}var _r={};function rr(E,j){if(E=E.contextTypes,!E)return _r;var q={},re;for(re in E)q[re]=j[re];return q}var cn=null;function hn(E,j){if(E!==j){E.context._currentValue2=E.parentValue,E=E.parent;var q=j.parent;if(E===null){if(q!==null)throw Error(t(401))}else{if(q===null)throw Error(t(401));hn(E,q)}j.context._currentValue2=j.value}}function pn(E){E.context._currentValue2=E.parentValue,E=E.parent,E!==null&&pn(E)}function mt(E){var j=E.parent;j!==null&&mt(j),E.context._currentValue2=E.value}function In(E,j){if(E.context._currentValue2=E.parentValue,E=E.parent,E===null)throw Error(t(402));E.depth===j.depth?hn(E,j):In(E,j)}function ui(E,j){var q=j.parent;if(q===null)throw Error(t(402));E.depth===q.depth?hn(E,q):ui(E,q),j.context._currentValue2=j.value}function un(E){var j=cn;j!==E&&(j===null?mt(E):E===null?pn(j):j.depth===E.depth?hn(j,E):j.depth>E.depth?In(j,E):ui(j,E),cn=E)}var Vi={isMounted:function(){return!1},enqueueSetState:function(E,j){E=E._reactInternals,E.queue!==null&&E.queue.push(j)},enqueueReplaceState:function(E,j){E=E._reactInternals,E.replace=!0,E.queue=[j]},enqueueForceUpdate:function(){}};function Hi(E,j,q,re){var De=E.state!==void 0?E.state:null;E.updater=Vi,E.props=q,E.state=De;var be={queue:[],replace:!1};E._reactInternals=be;var Me=j.contextType;if(E.context=typeof Me=="object"&&Me!==null?Me._currentValue2:re,Me=j.getDerivedStateFromProps,typeof Me=="function"&&(Me=Me(q,De),De=Me==null?De:_e({},De,Me),E.state=De),typeof j.getDerivedStateFromProps!="function"&&typeof E.getSnapshotBeforeUpdate!="function"&&(typeof E.UNSAFE_componentWillMount=="function"||typeof E.componentWillMount=="function"))if(j=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),j!==E.state&&Vi.enqueueReplaceState(E,E.state,null),be.queue!==null&&0<be.queue.length)if(j=be.queue,Me=be.replace,be.queue=null,be.replace=!1,Me&&j.length===1)E.state=j[0];else{for(be=Me?j[0]:E.state,De=!0,Me=Me?1:0;Me<j.length;Me++){var tt=j[Me];tt=typeof tt=="function"?tt.call(E,be,q,re):tt,tt!=null&&(De?(De=!1,be=_e({},be,tt)):_e(be,tt))}E.state=be}else be.queue=null}var Ui={id:1,overflow:""};function Dr(E,j,q){var re=E.id;E=E.overflow;var De=32-Wn(re)-1;re&=~(1<<De),q+=1;var be=32-Wn(j)+De;if(30<be){var Me=De-De%5;return be=(re&(1<<Me)-1).toString(32),re>>=Me,De-=Me,{id:1<<32-Wn(j)+De|q<<De|re,overflow:be+E}}return{id:1<<be|q<<De|re,overflow:E}}var Wn=Math.clz32?Math.clz32:Xr,Pr=Math.log,yr=Math.LN2;function Xr(E){return E>>>=0,E===0?32:31-(Pr(E)/yr|0)|0}function Kr(E,j){return E===j&&(E!==0||1/E===1/j)||E!==E&&j!==j}var Po=typeof Object.is=="function"?Object.is:Kr,Zn=null,Zr=null,ir=null,Zt=null,ci=!1,Wi=!1,An=0,gn=null,fi=0;function di(){if(Zn===null)throw Error(t(321));return Zn}function mn(){if(0<fi)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function uo(){return Zt===null?ir===null?(ci=!1,ir=Zt=mn()):(ci=!0,Zt=ir):Zt.next===null?(ci=!1,Zt=Zt.next=mn()):(ci=!0,Zt=Zt.next),Zt}function br(){Zr=Zn=null,Wi=!1,ir=null,fi=0,Zt=gn=null}function hi(E,j){return typeof j=="function"?j(E):j}function fn(E,j,q){if(Zn=di(),Zt=uo(),ci){var re=Zt.queue;if(j=re.dispatch,gn!==null&&(q=gn.get(re),q!==void 0)){gn.delete(re),re=Zt.memoizedState;do re=E(re,q.action),q=q.next;while(q!==null);return Zt.memoizedState=re,[re,j]}return[Zt.memoizedState,j]}return E=E===hi?typeof j=="function"?j():j:q!==void 0?q(j):j,Zt.memoizedState=E,E=Zt.queue={last:null,dispatch:null},E=E.dispatch=Ra.bind(null,Zn,E),[Zt.memoizedState,E]}function Ei(E,j){if(Zn=di(),Zt=uo(),j=j===void 0?null:j,Zt!==null){var q=Zt.memoizedState;if(q!==null&&j!==null){var re=q[1];e:if(re===null)re=!1;else{for(var De=0;De<re.length&&De<j.length;De++)if(!Po(j[De],re[De])){re=!1;break e}re=!0}if(re)return q[0]}}return E=E(),Zt.memoizedState=[E,j],E}function Ra(E,j,q){if(25<=fi)throw Error(t(301));if(E===Zn)if(Wi=!0,E={action:q,next:null},gn===null&&(gn=new Map),q=gn.get(j),q===void 0)gn.set(j,E);else{for(j=q;j.next!==null;)j=j.next;j.next=E}}function Ia(){throw Error(t(394))}function Jr(){}var co={readContext:function(E){return E._currentValue2},useContext:function(E){return di(),E._currentValue2},useMemo:Ei,useReducer:fn,useRef:function(E){Zn=di(),Zt=uo();var j=Zt.memoizedState;return j===null?(E={current:E},Zt.memoizedState=E):j},useState:function(E){return fn(hi,E)},useInsertionEffect:Jr,useLayoutEffect:function(){},useCallback:function(E,j){return Ei(function(){return E},j)},useImperativeHandle:Jr,useEffect:Jr,useDebugValue:Jr,useDeferredValue:function(E){return di(),E},useTransition:function(){return di(),[!1,Ia]},useId:function(){var E=Zr.treeContext,j=E.overflow;E=E.id,E=(E&~(1<<32-Wn(E)-1)).toString(32)+j;var q=fo;if(q===null)throw Error(t(404));return j=An++,E=":"+q.idPrefix+"R"+E,0<j&&(E+="H"+j.toString(32)),E+":"},useMutableSource:function(E,j){return di(),j(E._source)},useSyncExternalStore:function(E,j,q){if(q===void 0)throw Error(t(407));return q()}},fo=null,Ro=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ki(E){return console.error(E),null}function pi(){}function Oi(E,j,q,re,De,be,Me,tt,bt){var Ct=[],wt=new Set;return j={destination:null,responseState:j,progressiveChunkSize:re===void 0?12800:re,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wt,pingedTasks:Ct,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:De===void 0?ki:De,onAllReady:be===void 0?pi:be,onShellReady:Me===void 0?pi:Me,onShellError:tt===void 0?pi:tt,onFatalError:bt===void 0?pi:bt},q=_i(j,0,null,q,!1,!1),q.parentFlushed=!0,E=ho(j,E,null,q,wt,_r,null,Ui),Ct.push(E),j}function ho(E,j,q,re,De,be,Me,tt){E.allPendingTasks++,q===null?E.pendingRootTasks++:q.pendingTasks++;var bt={node:j,ping:function(){var Ct=E.pingedTasks;Ct.push(bt),Ct.length===1&&Jn(E)},blockedBoundary:q,blockedSegment:re,abortSet:De,legacyContext:be,context:Me,treeContext:tt};return De.add(bt),bt}function _i(E,j,q,re,De,be){return{status:0,id:-1,index:j,parentFlushed:!1,chunks:[],children:[],formatContext:re,boundary:q,lastPushedText:De,textEmbedded:be}}function Qr(E,j){if(E=E.onError(j),E!=null&&typeof E!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof E+'" instead');return E}function wr(E,j){var q=E.onShellError;q(j),q=E.onFatalError,q(j),E.destination!==null?(E.status=2,E.destination.destroy(j)):(E.status=1,E.fatalError=j)}function Rr(E,j,q,re,De){for(Zn={},Zr=j,An=0,E=q(re,De);Wi;)Wi=!1,An=0,fi+=1,Zt=null,E=q(re,De);return br(),E}function ei(E,j,q,re){var De=q.render(),be=re.childContextTypes;if(be!=null){var Me=j.legacyContext;if(typeof q.getChildContext!="function")re=Me;else{q=q.getChildContext();for(var tt in q)if(!(tt in be))throw Error(t(108,$i(re)||"Unknown",tt));re=_e({},Me,q)}j.legacyContext=re,vn(E,j,De),j.legacyContext=Me}else vn(E,j,De)}function Ir(E,j){if(E&&E.defaultProps){j=_e({},j),E=E.defaultProps;for(var q in E)j[q]===void 0&&(j[q]=E[q]);return j}return j}function zn(E,j,q,re,De){if(typeof q=="function")if(q.prototype&&q.prototype.isReactComponent){De=rr(q,j.legacyContext);var be=q.contextType;be=new q(re,typeof be=="object"&&be!==null?be._currentValue2:De),Hi(be,q,re,De),ei(E,j,be,q)}else{be=rr(q,j.legacyContext),De=Rr(E,j,q,re,be);var Me=An!==0;if(typeof De=="object"&&De!==null&&typeof De.render=="function"&&De.$$typeof===void 0)Hi(De,q,re,be),ei(E,j,De,q);else if(Me){re=j.treeContext,j.treeContext=Dr(re,1,0);try{vn(E,j,De)}finally{j.treeContext=re}}else vn(E,j,De)}else if(typeof q=="string"){switch(De=j.blockedSegment,be=it(De.chunks,q,re,E.responseState,De.formatContext),De.lastPushedText=!1,Me=De.formatContext,De.formatContext=W(Me,q,re),xr(E,j,be),De.formatContext=Me,q){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:De.chunks.push("</",q,">")}De.lastPushedText=!1}else{switch(q){case mr:case Xn:case Fe:case He:case Re:vn(E,j,re.children);return;case Tt:vn(E,j,re.children);return;case Ht:throw Error(t(343));case dt:e:{q=j.blockedBoundary,De=j.blockedSegment,be=re.fallback,re=re.children,Me=new Set;var tt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Me,errorDigest:null},bt=_i(E,De.chunks.length,tt,De.formatContext,!1,!1);De.children.push(bt),De.lastPushedText=!1;var Ct=_i(E,0,null,De.formatContext,!1,!1);Ct.parentFlushed=!0,j.blockedBoundary=tt,j.blockedSegment=Ct;try{if(xr(E,j,re),E.responseState.generateStaticMarkup||Ct.lastPushedText&&Ct.textEmbedded&&Ct.chunks.push("<!-- -->"),Ct.status=1,Mr(tt,Ct),tt.pendingTasks===0)break e}catch(wt){Ct.status=4,tt.forceClientRender=!0,tt.errorDigest=Qr(E,wt)}finally{j.blockedBoundary=q,j.blockedSegment=De}j=ho(E,be,q,bt,Me,j.legacyContext,j.context,j.treeContext),E.pingedTasks.push(j)}return}if(typeof q=="object"&&q!==null)switch(q.$$typeof){case yt:if(re=Rr(E,j,q.render,re,De),An!==0){q=j.treeContext,j.treeContext=Dr(q,1,0);try{vn(E,j,re)}finally{j.treeContext=q}}else vn(E,j,re);return;case ot:q=q.type,re=Ir(q,re),zn(E,j,q,re,De);return;case lt:if(De=re.children,q=q._context,re=re.value,be=q._currentValue2,q._currentValue2=re,Me=cn,cn=re={parent:Me,depth:Me===null?0:Me.depth+1,context:q,parentValue:be,value:re},j.context=re,vn(E,j,De),E=cn,E===null)throw Error(t(403));re=E.parentValue,E.context._currentValue2=re===Kn?E.context._defaultValue:re,E=cn=E.parent,j.context=E;return;case ct:re=re.children,re=re(q._currentValue2),vn(E,j,re);return;case $t:De=q._init,q=De(q._payload),re=Ir(q,re),zn(E,j,q,re,void 0);return}throw Error(t(130,q==null?q:typeof q,""))}}function vn(E,j,q){if(j.node=q,typeof q=="object"&&q!==null){switch(q.$$typeof){case Ye:zn(E,j,q.type,q.props,q.ref);return;case We:throw Error(t(257));case $t:var re=q._init;q=re(q._payload),vn(E,j,q);return}if(R(q)){Ar(E,j,q);return}if(q===null||typeof q!="object"?re=null:(re=Dn&&q[Dn]||q["@@iterator"],re=typeof re=="function"?re:null),re&&(re=re.call(q))){if(q=re.next(),!q.done){var De=[];do De.push(q.value),q=re.next();while(!q.done);Ar(E,j,De)}return}throw E=Object.prototype.toString.call(q),Error(t(31,E==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":E))}typeof q=="string"?(re=j.blockedSegment,re.lastPushedText=Ee(j.blockedSegment.chunks,q,E.responseState,re.lastPushedText)):typeof q=="number"&&(re=j.blockedSegment,re.lastPushedText=Ee(j.blockedSegment.chunks,""+q,E.responseState,re.lastPushedText))}function Ar(E,j,q){for(var re=q.length,De=0;De<re;De++){var be=j.treeContext;j.treeContext=Dr(be,re,De);try{xr(E,j,q[De])}finally{j.treeContext=be}}}function xr(E,j,q){var re=j.blockedSegment.formatContext,De=j.legacyContext,be=j.context;try{return vn(E,j,q)}catch(bt){if(br(),typeof bt=="object"&&bt!==null&&typeof bt.then=="function"){q=bt;var Me=j.blockedSegment,tt=_i(E,Me.chunks.length,null,Me.formatContext,Me.lastPushedText,!0);Me.children.push(tt),Me.lastPushedText=!1,E=ho(E,j.node,j.blockedBoundary,tt,j.abortSet,j.legacyContext,j.context,j.treeContext).ping,q.then(E,E),j.blockedSegment.formatContext=re,j.legacyContext=De,j.context=be,un(be)}else throw j.blockedSegment.formatContext=re,j.legacyContext=De,j.context=be,un(be),bt}}function Mn(E){var j=E.blockedBoundary;E=E.blockedSegment,E.status=3,ti(this,j,E)}function gi(E,j,q){var re=E.blockedBoundary;E.blockedSegment.status=3,re===null?(j.allPendingTasks--,j.status!==2&&(j.status=2,j.destination!==null&&j.destination.push(null))):(re.pendingTasks--,re.forceClientRender||(re.forceClientRender=!0,E=q===void 0?Error(t(432)):q,re.errorDigest=j.onError(E),re.parentFlushed&&j.clientRenderedBoundaries.push(re)),re.fallbackAbortableTasks.forEach(function(De){return gi(De,j,q)}),re.fallbackAbortableTasks.clear(),j.allPendingTasks--,j.allPendingTasks===0&&(re=j.onAllReady,re()))}function Mr(E,j){if(j.chunks.length===0&&j.children.length===1&&j.children[0].boundary===null){var q=j.children[0];q.id=j.id,q.parentFlushed=!0,q.status===1&&Mr(E,q)}else E.completedSegments.push(j)}function ti(E,j,q){if(j===null){if(q.parentFlushed){if(E.completedRootSegment!==null)throw Error(t(389));E.completedRootSegment=q}E.pendingRootTasks--,E.pendingRootTasks===0&&(E.onShellError=pi,j=E.onShellReady,j())}else j.pendingTasks--,j.forceClientRender||(j.pendingTasks===0?(q.parentFlushed&&q.status===1&&Mr(j,q),j.parentFlushed&&E.completedBoundaries.push(j),j.fallbackAbortableTasks.forEach(Mn,E),j.fallbackAbortableTasks.clear()):q.parentFlushed&&q.status===1&&(Mr(j,q),j.completedSegments.length===1&&j.parentFlushed&&E.partialBoundaries.push(j)));E.allPendingTasks--,E.allPendingTasks===0&&(E=E.onAllReady,E())}function Jn(E){if(E.status!==2){var j=cn,q=Ro.current;Ro.current=co;var re=fo;fo=E.responseState;try{var De=E.pingedTasks,be;for(be=0;be<De.length;be++){var Me=De[be],tt=E,bt=Me.blockedSegment;if(bt.status===0){un(Me.context);try{vn(tt,Me,Me.node),tt.responseState.generateStaticMarkup||bt.lastPushedText&&bt.textEmbedded&&bt.chunks.push("<!-- -->"),Me.abortSet.delete(Me),bt.status=1,ti(tt,Me.blockedBoundary,bt)}catch(Pn){if(br(),typeof Pn=="object"&&Pn!==null&&typeof Pn.then=="function"){var Ct=Me.ping;Pn.then(Ct,Ct)}else{Me.abortSet.delete(Me),bt.status=4;var wt=Me.blockedBoundary,Ut=Pn,Qn=Qr(tt,Ut);if(wt===null?wr(tt,Ut):(wt.pendingTasks--,wt.forceClientRender||(wt.forceClientRender=!0,wt.errorDigest=Qn,wt.parentFlushed&&tt.clientRenderedBoundaries.push(wt))),tt.allPendingTasks--,tt.allPendingTasks===0){var Yn=tt.onAllReady;Yn()}}}finally{}}}De.splice(0,be),E.destination!==null&&cr(E,E.destination)}catch(Pn){Qr(E,Pn),wr(E,Pn)}finally{fo=re,Ro.current=q,q===co&&un(j)}}}function ni(E,j,q){switch(q.parentFlushed=!0,q.status){case 0:var re=q.id=E.nextSegmentId++;return q.lastPushedText=!1,q.textEmbedded=!1,E=E.responseState,j.push('<template id="'),j.push(E.placeholderPrefix),E=re.toString(16),j.push(E),j.push('"></template>');case 1:q.status=2;var De=!0;re=q.chunks;var be=0;q=q.children;for(var Me=0;Me<q.length;Me++){for(De=q[Me];be<De.index;be++)j.push(re[be]);De=ri(E,j,De)}for(;be<re.length-1;be++)j.push(re[be]);return be<re.length&&(De=j.push(re[be])),De;default:throw Error(t(390))}}function ri(E,j,q){var re=q.boundary;if(re===null)return ni(E,j,q);if(re.parentFlushed=!0,re.forceClientRender)return E.responseState.generateStaticMarkup||(re=re.errorDigest,j.push("<!--$!-->"),j.push("<template"),re&&(j.push(' data-dgst="'),re=_(re),j.push(re),j.push('"')),j.push("></template>")),ni(E,j,q),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E;if(0<re.pendingTasks){re.rootSegmentID=E.nextSegmentId++,0<re.completedSegments.length&&E.partialBoundaries.push(re);var De=E.responseState,be=De.nextSuspenseID++;return De=De.boundaryPrefix+be.toString(16),re=re.id=De,nt(j,E.responseState,re),ni(E,j,q),j.push("<!--/$-->")}if(re.byteSize>E.progressiveChunkSize)return re.rootSegmentID=E.nextSegmentId++,E.completedBoundaries.push(re),nt(j,E.responseState,re.id),ni(E,j,q),j.push("<!--/$-->");if(E.responseState.generateStaticMarkup||j.push("<!--$-->"),q=re.completedSegments,q.length!==1)throw Error(t(391));return ri(E,j,q[0]),E=E.responseState.generateStaticMarkup?!0:j.push("<!--/$-->"),E}function zi(E,j,q){return me(j,E.responseState,q.formatContext,q.id),ri(E,j,q),Se(j,q.formatContext)}function Rn(E,j,q){for(var re=q.completedSegments,De=0;De<re.length;De++)Sr(E,j,q,re[De]);if(re.length=0,E=E.responseState,re=q.id,q=q.rootSegmentID,j.push(E.startInlineScript),E.sentCompleteBoundaryFunction?j.push('$RC("'):(E.sentCompleteBoundaryFunction=!0,j.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),re===null)throw Error(t(395));return q=q.toString(16),j.push(re),j.push('","'),j.push(E.segmentPrefix),j.push(q),j.push('")<\/script>')}function Sr(E,j,q,re){if(re.status===2)return!0;var De=re.id;if(De===-1){if((re.id=q.rootSegmentID)===-1)throw Error(t(392));return zi(E,j,re)}return zi(E,j,re),E=E.responseState,j.push(E.startInlineScript),E.sentCompleteSegmentFunction?j.push('$RS("'):(E.sentCompleteSegmentFunction=!0,j.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),j.push(E.segmentPrefix),De=De.toString(16),j.push(De),j.push('","'),j.push(E.placeholderPrefix),j.push(De),j.push('")<\/script>')}function cr(E,j){try{var q=E.completedRootSegment;if(q!==null&&E.pendingRootTasks===0){ri(E,j,q),E.completedRootSegment=null;var re=E.responseState.bootstrapChunks;for(q=0;q<re.length-1;q++)j.push(re[q]);q<re.length&&j.push(re[q])}var De=E.clientRenderedBoundaries,be;for(be=0;be<De.length;be++){var Me=De[be];re=j;var tt=E.responseState,bt=Me.id,Ct=Me.errorDigest,wt=Me.errorMessage,Ut=Me.errorComponentStack;if(re.push(tt.startInlineScript),tt.sentClientRenderFunction?re.push('$RX("'):(tt.sentClientRenderFunction=!0,re.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),bt===null)throw Error(t(395));if(re.push(bt),re.push('"'),Ct||wt||Ut){re.push(",");var Qn=Qe(Ct||"");re.push(Qn)}if(wt||Ut){re.push(",");var Yn=Qe(wt||"");re.push(Yn)}if(Ut){re.push(",");var Pn=Qe(Ut);re.push(Pn)}if(!re.push(")<\/script>")){E.destination=null,be++,De.splice(0,be);return}}De.splice(0,be);var Fr=E.completedBoundaries;for(be=0;be<Fr.length;be++)if(!Rn(E,j,Fr[be])){E.destination=null,be++,Fr.splice(0,be);return}Fr.splice(0,be);var or=E.partialBoundaries;for(be=0;be<or.length;be++){var Gi=or[be];e:{De=E,Me=j;var vi=Gi.completedSegments;for(tt=0;tt<vi.length;tt++)if(!Sr(De,Me,Gi,vi[tt])){tt++,vi.splice(0,tt);var qi=!1;break e}vi.splice(0,tt),qi=!0}if(!qi){E.destination=null,be++,or.splice(0,be);return}}or.splice(0,be);var Nr=E.completedBoundaries;for(be=0;be<Nr.length;be++)if(!Rn(E,j,Nr[be])){E.destination=null,be++,Nr.splice(0,be);return}Nr.splice(0,be)}finally{E.allPendingTasks===0&&E.pingedTasks.length===0&&E.clientRenderedBoundaries.length===0&&E.completedBoundaries.length===0&&j.push(null)}}function Io(E,j){try{var q=E.abortableTasks;q.forEach(function(re){return gi(re,E,j)}),q.clear(),E.destination!==null&&cr(E,E.destination)}catch(re){Qr(E,re),wr(E,re)}}function Yi(){}function Lr(E,j,q,re){var De=!1,be=null,Me="",tt={push:function(Ct){return Ct!==null&&(Me+=Ct),!0},destroy:function(Ct){De=!0,be=Ct}},bt=!1;if(E=Oi(E,at(q,j?j.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Yi,void 0,function(){bt=!0},void 0,void 0),Jn(E),Io(E,re),E.status===1)E.status=2,tt.destroy(E.fatalError);else if(E.status!==2&&E.destination===null){E.destination=tt;try{cr(E,tt)}catch(Ct){Qr(E,Ct),wr(E,Ct)}}if(De)throw be;if(!bt)throw Error(t(426));return Me}return xc.renderToNodeStream=function(){throw Error(t(207))},xc.renderToStaticMarkup=function(E,j){return Lr(E,j,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},xc.renderToStaticNodeStream=function(){throw Error(t(208))},xc.renderToString=function(E,j){return Lr(E,j,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},xc.version="18.3.1",xc}var Vh={};/**
|
|
50
|
-
* @license React
|
|
51
|
-
* react-dom-server.browser.production.min.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var a1;function T4(){if(a1)return Vh;a1=1;var e=X;function t(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,z=1;z<arguments.length;z++)F+="&args[]="+encodeURIComponent(arguments[z]);return"Minified React error #"+k+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(k,F){if(F.length!==0)if(512<F.length)0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),k.enqueue(F);else{var z=n.length-r;z<F.length&&(z===0?k.enqueue(n):(n.set(F.subarray(0,z),r),k.enqueue(n),F=F.subarray(z)),n=new Uint8Array(512),r=0),n.set(F,r),r+=F.length}}function o(k,F){return i(k,F),!0}function s(k){n&&0<r&&(k.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var l=new TextEncoder;function c(k){return l.encode(k)}function d(k){return l.encode(k)}function v(k,F){typeof k.error=="function"?k.error(F):k.close()}var p=Object.prototype.hasOwnProperty,x=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,T={},_={};function I(k){return p.call(_,k)?!0:p.call(T,k)?!1:x.test(k)?_[k]=!0:(T[k]=!0,!1)}function L(k,F,z,ne,Te,Ce,Be){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ne,this.attributeNamespace=Te,this.mustUseProperty=z,this.propertyName=k,this.type=F,this.sanitizeURL=Ce,this.removeEmptyString=Be}var R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){R[k]=new L(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];R[F]=new L(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){R[k]=new L(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){R[k]=new L(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){R[k]=new L(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){R[k]=new L(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){R[k]=new L(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){R[k]=new L(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){R[k]=new L(k,5,!1,k.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function W(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var F=k.replace(U,W);R[F]=new L(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(U,W);R[F]=new L(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(U,W);R[F]=new L(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){R[k]=new L(k,1,!1,k.toLowerCase(),null,!1,!1)}),R.xlinkHref=new L("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){R[k]=new L(k,1,!1,k.toLowerCase(),null,!0,!0)});var te={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},J=["Webkit","ms","Moz","O"];Object.keys(te).forEach(function(k){J.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),te[F]=te[k]})});var pe=/["'&<>]/;function S(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=pe.exec(k);if(F){var z="",ne,Te=0;for(ne=F.index;ne<k.length;ne++){switch(k.charCodeAt(ne)){case 34:F=""";break;case 38:F="&";break;case 39:F="'";break;case 60:F="<";break;case 62:F=">";break;default:continue}Te!==ne&&(z+=k.substring(Te,ne)),Te=ne+1,z+=F}k=Te!==ne?z+k.substring(Te,ne):z}return k}var ce=/([A-Z])/g,ae=/^ms-/,Ne=Array.isArray,Ge=d("<script>"),qe=d("<\/script>"),it=d('<script src="'),nt=d('<script type="module" src="'),me=d('" async=""><\/script>'),Se=/(<\/|<)(s)(cript)/gi;function Ve(k,F,z,ne){return""+F+(z==="s"?"\\u0073":"\\u0053")+ne}function Qe(k,F,z,ne,Te){k=k===void 0?"":k,F=F===void 0?Ge:d('<script nonce="'+S(F)+'">');var Ce=[];if(z!==void 0&&Ce.push(F,c((""+z).replace(Se,Ve)),qe),ne!==void 0)for(z=0;z<ne.length;z++)Ce.push(it,c(S(ne[z])),me);if(Te!==void 0)for(ne=0;ne<Te.length;ne++)Ce.push(nt,c(S(Te[ne])),me);return{bootstrapChunks:Ce,startInlineScript:F,placeholderPrefix:d(k+"P:"),segmentPrefix:d(k+"S:"),boundaryPrefix:k+"B:",idPrefix:k,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function at(k,F){return{insertionMode:k,selectedValue:F}}function Ee(k){return at(k==="http://www.w3.org/2000/svg"?2:k==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function _e(k,F,z){switch(F){case"select":return at(1,z.value!=null?z.value:z.defaultValue);case"svg":return at(2,null);case"math":return at(3,null);case"foreignObject":return at(1,null);case"table":return at(4,null);case"thead":case"tbody":case"tfoot":return at(5,null);case"colgroup":return at(7,null);case"tr":return at(6,null)}return 4<=k.insertionMode||k.insertionMode===0?at(1,null):k}var Ye=d("<!-- -->");function We(k,F,z,ne){return F===""?ne:(ne&&k.push(Ye),k.push(c(S(F))),!0)}var Re=new Map,Fe=d(' style="'),He=d(":"),lt=d(";");function ct(k,F,z){if(typeof z!="object")throw Error(t(62));F=!0;for(var ne in z)if(p.call(z,ne)){var Te=z[ne];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(ne.indexOf("--")===0){var Ce=c(S(ne));Te=c(S((""+Te).trim()))}else{Ce=ne;var Be=Re.get(Ce);Be!==void 0||(Be=d(S(Ce.replace(ce,"-$1").toLowerCase().replace(ae,"-ms-"))),Re.set(Ce,Be)),Ce=Be,Te=typeof Te=="number"?Te===0||p.call(te,ne)?c(""+Te):c(Te+"px"):c(S((""+Te).trim()))}F?(F=!1,k.push(Fe,Ce,He,Te)):k.push(lt,Ce,He,Te)}}F||k.push(Tt)}var yt=d(" "),dt=d('="'),Tt=d('"'),ot=d('=""');function $t(k,F,z,ne){switch(z){case"style":ct(k,F,ne);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"){if(F=R.hasOwnProperty(z)?R[z]:null,F!==null){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(z=c(F.attributeName),F.type){case 3:ne&&k.push(yt,z,ot);break;case 4:ne===!0?k.push(yt,z,ot):ne!==!1&&k.push(yt,z,dt,c(S(ne)),Tt);break;case 5:isNaN(ne)||k.push(yt,z,dt,c(S(ne)),Tt);break;case 6:!isNaN(ne)&&1<=ne&&k.push(yt,z,dt,c(S(ne)),Tt);break;default:F.sanitizeURL&&(ne=""+ne),k.push(yt,z,dt,c(S(ne)),Tt)}}else if(I(z)){switch(typeof ne){case"function":case"symbol":return;case"boolean":if(F=z.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(yt,c(z),dt,c(S(ne)),Tt)}}}var Ht=d(">"),Xn=d("/>");function mr(k,F,z){if(F!=null){if(z!=null)throw Error(t(60));if(typeof F!="object"||!("__html"in F))throw Error(t(61));F=F.__html,F!=null&&k.push(c(""+F))}}function Kn(k){var F="";return e.Children.forEach(k,function(z){z!=null&&(F+=z)}),F}var Dn=d(' selected=""');function $i(k,F,z,ne){k.push(hn(z));var Te=z=null,Ce;for(Ce in F)if(p.call(F,Ce)){var Be=F[Ce];if(Be!=null)switch(Ce){case"children":z=Be;break;case"dangerouslySetInnerHTML":Te=Be;break;default:$t(k,ne,Ce,Be)}}return k.push(Ht),mr(k,Te,z),typeof z=="string"?(k.push(c(S(z))),null):z}var _r=d(`
|
|
58
|
-
`),rr=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cn=new Map;function hn(k){var F=cn.get(k);if(F===void 0){if(!rr.test(k))throw Error(t(65,k));F=d("<"+k),cn.set(k,F)}return F}var pn=d("<!DOCTYPE html>");function mt(k,F,z,ne,Te){switch(F){case"select":k.push(hn("select"));var Ce=null,Be=null;for(_t in z)if(p.call(z,_t)){var et=z[_t];if(et!=null)switch(_t){case"children":Ce=et;break;case"dangerouslySetInnerHTML":Be=et;break;case"defaultValue":case"value":break;default:$t(k,ne,_t,et)}}return k.push(Ht),mr(k,Be,Ce),Ce;case"option":Be=Te.selectedValue,k.push(hn("option"));var xt=et=null,Nt=null,_t=null;for(Ce in z)if(p.call(z,Ce)){var Et=z[Ce];if(Et!=null)switch(Ce){case"children":et=Et;break;case"selected":Nt=Et;break;case"dangerouslySetInnerHTML":_t=Et;break;case"value":xt=Et;default:$t(k,ne,Ce,Et)}}if(Be!=null)if(z=xt!==null?""+xt:Kn(et),Ne(Be)){for(ne=0;ne<Be.length;ne++)if(""+Be[ne]===z){k.push(Dn);break}}else""+Be===z&&k.push(Dn);else Nt&&k.push(Dn);return k.push(Ht),mr(k,_t,et),et;case"textarea":k.push(hn("textarea")),_t=Be=Ce=null;for(et in z)if(p.call(z,et)&&(xt=z[et],xt!=null))switch(et){case"children":_t=xt;break;case"value":Ce=xt;break;case"defaultValue":Be=xt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:$t(k,ne,et,xt)}if(Ce===null&&Be!==null&&(Ce=Be),k.push(Ht),_t!=null){if(Ce!=null)throw Error(t(92));if(Ne(_t)&&1<_t.length)throw Error(t(93));Ce=""+_t}return typeof Ce=="string"&&Ce[0]===`
|
|
59
|
-
`&&k.push(_r),Ce!==null&&k.push(c(S(""+Ce))),null;case"input":k.push(hn("input")),xt=_t=et=Ce=null;for(Be in z)if(p.call(z,Be)&&(Nt=z[Be],Nt!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":xt=Nt;break;case"defaultValue":et=Nt;break;case"checked":_t=Nt;break;case"value":Ce=Nt;break;default:$t(k,ne,Be,Nt)}return _t!==null?$t(k,ne,"checked",_t):xt!==null&&$t(k,ne,"checked",xt),Ce!==null?$t(k,ne,"value",Ce):et!==null&&$t(k,ne,"value",et),k.push(Xn),null;case"menuitem":k.push(hn("menuitem"));for(var $n in z)if(p.call(z,$n)&&(Ce=z[$n],Ce!=null))switch($n){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:$t(k,ne,$n,Ce)}return k.push(Ht),null;case"title":k.push(hn("title")),Ce=null;for(Et in z)if(p.call(z,Et)&&(Be=z[Et],Be!=null))switch(Et){case"children":Ce=Be;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:$t(k,ne,Et,Be)}return k.push(Ht),Ce;case"listing":case"pre":k.push(hn(F)),Be=Ce=null;for(xt in z)if(p.call(z,xt)&&(et=z[xt],et!=null))switch(xt){case"children":Ce=et;break;case"dangerouslySetInnerHTML":Be=et;break;default:$t(k,ne,xt,et)}if(k.push(Ht),Be!=null){if(Ce!=null)throw Error(t(60));if(typeof Be!="object"||!("__html"in Be))throw Error(t(61));z=Be.__html,z!=null&&(typeof z=="string"&&0<z.length&&z[0]===`
|
|
60
|
-
`?k.push(_r,c(z)):k.push(c(""+z)))}return typeof Ce=="string"&&Ce[0]===`
|
|
61
|
-
`&&k.push(_r),Ce;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(hn(F));for(var Cn in z)if(p.call(z,Cn)&&(Ce=z[Cn],Ce!=null))switch(Cn){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,F));default:$t(k,ne,Cn,Ce)}return k.push(Xn),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return $i(k,z,F,ne);case"html":return Te.insertionMode===0&&k.push(pn),$i(k,z,F,ne);default:if(F.indexOf("-")===-1&&typeof z.is!="string")return $i(k,z,F,ne);k.push(hn(F)),Be=Ce=null;for(Nt in z)if(p.call(z,Nt)&&(et=z[Nt],et!=null))switch(Nt){case"children":Ce=et;break;case"dangerouslySetInnerHTML":Be=et;break;case"style":ct(k,ne,et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(Nt)&&typeof et!="function"&&typeof et!="symbol"&&k.push(yt,c(Nt),dt,c(S(et)),Tt)}return k.push(Ht),mr(k,Be,Ce),Ce}}var In=d("</"),ui=d(">"),un=d('<template id="'),Vi=d('"></template>'),Hi=d("<!--$-->"),Ui=d('<!--$?--><template id="'),Dr=d('"></template>'),Wn=d("<!--$!-->"),Pr=d("<!--/$-->"),yr=d("<template"),Xr=d('"'),Kr=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Po=d("></template>");function Zn(k,F,z){if(i(k,Ui),z===null)throw Error(t(395));return i(k,z),o(k,Dr)}var Zr=d('<div hidden id="'),ir=d('">'),Zt=d("</div>"),ci=d('<svg aria-hidden="true" style="display:none" id="'),Wi=d('">'),An=d("</svg>"),gn=d('<math aria-hidden="true" style="display:none" id="'),fi=d('">'),di=d("</math>"),mn=d('<table hidden id="'),uo=d('">'),br=d("</table>"),hi=d('<table hidden><tbody id="'),fn=d('">'),Ei=d("</tbody></table>"),Ra=d('<table hidden><tr id="'),Ia=d('">'),Jr=d("</tr></table>"),co=d('<table hidden><colgroup id="'),fo=d('">'),Ro=d("</colgroup></table>");function ki(k,F,z,ne){switch(z.insertionMode){case 0:case 1:return i(k,Zr),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,ir);case 2:return i(k,ci),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Wi);case 3:return i(k,gn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fi);case 4:return i(k,mn),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,uo);case 5:return i(k,hi),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fn);case 6:return i(k,Ra),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,Ia);case 7:return i(k,co),i(k,F.segmentPrefix),i(k,c(ne.toString(16))),o(k,fo);default:throw Error(t(397))}}function pi(k,F){switch(F.insertionMode){case 0:case 1:return o(k,Zt);case 2:return o(k,An);case 3:return o(k,di);case 4:return o(k,br);case 5:return o(k,Ei);case 6:return o(k,Jr);case 7:return o(k,Ro);default:throw Error(t(397))}}var Oi=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ho=d('$RS("'),_i=d('","'),Qr=d('")<\/script>'),wr=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Rr=d('$RC("'),ei=d('","'),Ir=d('")<\/script>'),zn=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),vn=d('$RX("'),Ar=d('"'),xr=d(")<\/script>"),Mn=d(","),gi=/[<\u2028\u2029]/g;function Mr(k){return JSON.stringify(k).replace(gi,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ti=Object.assign,Jn=Symbol.for("react.element"),ni=Symbol.for("react.portal"),ri=Symbol.for("react.fragment"),zi=Symbol.for("react.strict_mode"),Rn=Symbol.for("react.profiler"),Sr=Symbol.for("react.provider"),cr=Symbol.for("react.context"),Io=Symbol.for("react.forward_ref"),Yi=Symbol.for("react.suspense"),Lr=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),q=Symbol.for("react.scope"),re=Symbol.for("react.debug_trace_mode"),De=Symbol.for("react.legacy_hidden"),be=Symbol.for("react.default_value"),Me=Symbol.iterator;function tt(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case ri:return"Fragment";case ni:return"Portal";case Rn:return"Profiler";case zi:return"StrictMode";case Yi:return"Suspense";case Lr:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case cr:return(k.displayName||"Context")+".Consumer";case Sr:return(k._context.displayName||"Context")+".Provider";case Io:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case E:return F=k.displayName||null,F!==null?F:tt(k.type)||"Memo";case j:F=k._payload,k=k._init;try{return tt(k(F))}catch{}}return null}var bt={};function Ct(k,F){if(k=k.contextTypes,!k)return bt;var z={},ne;for(ne in k)z[ne]=F[ne];return z}var wt=null;function Ut(k,F){if(k!==F){k.context._currentValue=k.parentValue,k=k.parent;var z=F.parent;if(k===null){if(z!==null)throw Error(t(401))}else{if(z===null)throw Error(t(401));Ut(k,z)}F.context._currentValue=F.value}}function Qn(k){k.context._currentValue=k.parentValue,k=k.parent,k!==null&&Qn(k)}function Yn(k){var F=k.parent;F!==null&&Yn(F),k.context._currentValue=k.value}function Pn(k,F){if(k.context._currentValue=k.parentValue,k=k.parent,k===null)throw Error(t(402));k.depth===F.depth?Ut(k,F):Pn(k,F)}function Fr(k,F){var z=F.parent;if(z===null)throw Error(t(402));k.depth===z.depth?Ut(k,z):Fr(k,z),F.context._currentValue=F.value}function or(k){var F=wt;F!==k&&(F===null?Yn(k):k===null?Qn(F):F.depth===k.depth?Ut(F,k):F.depth>k.depth?Pn(F,k):Fr(F,k),wt=k)}var Gi={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function vi(k,F,z,ne){var Te=k.state!==void 0?k.state:null;k.updater=Gi,k.props=z,k.state=Te;var Ce={queue:[],replace:!1};k._reactInternals=Ce;var Be=F.contextType;if(k.context=typeof Be=="object"&&Be!==null?Be._currentValue:ne,Be=F.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(z,Te),Te=Be==null?Te:ti({},Te,Be),k.state=Te),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Gi.enqueueReplaceState(k,k.state,null),Ce.queue!==null&&0<Ce.queue.length)if(F=Ce.queue,Be=Ce.replace,Ce.queue=null,Ce.replace=!1,Be&&F.length===1)k.state=F[0];else{for(Ce=Be?F[0]:k.state,Te=!0,Be=Be?1:0;Be<F.length;Be++){var et=F[Be];et=typeof et=="function"?et.call(k,Ce,z,ne):et,et!=null&&(Te?(Te=!1,Ce=ti({},Ce,et)):ti(Ce,et))}k.state=Ce}else Ce.queue=null}var qi={id:1,overflow:""};function Nr(k,F,z){var ne=k.id;k=k.overflow;var Te=32-Ao(ne)-1;ne&=~(1<<Te),z+=1;var Ce=32-Ao(F)+Te;if(30<Ce){var Be=Te-Te%5;return Ce=(ne&(1<<Be)-1).toString(32),ne>>=Be,Te-=Be,{id:1<<32-Ao(F)+Te|z<<Te|ne,overflow:Ce+k}}return{id:1<<Ce|z<<Te|ne,overflow:k}}var Ao=Math.clz32?Math.clz32:Ma,Ys=Math.log,Aa=Math.LN2;function Ma(k){return k>>>=0,k===0?32:31-(Ys(k)/Aa|0)|0}function La(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Fa=typeof Object.is=="function"?Object.is:La,mi=null,Mo=null,ra=null,sn=null,Qt=!1,Vt=!1,Di=0,ii=null,Lo=0;function yi(){if(mi===null)throw Error(t(321));return mi}function fr(){if(0<Lo)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Na(){return sn===null?ra===null?(Qt=!1,ra=sn=fr()):(Qt=!0,sn=ra):sn.next===null?(Qt=!1,sn=sn.next=fr()):(Qt=!0,sn=sn.next),sn}function ia(){Mo=mi=null,Vt=!1,ra=null,Lo=0,sn=ii=null}function us(k,F){return typeof F=="function"?F(k):F}function yn(k,F,z){if(mi=yi(),sn=Na(),Qt){var ne=sn.queue;if(F=ne.dispatch,ii!==null&&(z=ii.get(ne),z!==void 0)){ii.delete(ne),ne=sn.memoizedState;do ne=k(ne,z.action),z=z.next;while(z!==null);return sn.memoizedState=ne,[ne,F]}return[sn.memoizedState,F]}return k=k===us?typeof F=="function"?F():F:z!==void 0?z(F):F,sn.memoizedState=k,k=sn.queue={last:null,dispatch:null},k=k.dispatch=bi.bind(null,mi,k),[sn.memoizedState,k]}function Fo(k,F){if(mi=yi(),sn=Na(),F=F===void 0?null:F,sn!==null){var z=sn.memoizedState;if(z!==null&&F!==null){var ne=z[1];e:if(ne===null)ne=!1;else{for(var Te=0;Te<ne.length&&Te<F.length;Te++)if(!Fa(F[Te],ne[Te])){ne=!1;break e}ne=!0}if(ne)return z[0]}}return k=k(),sn.memoizedState=[k,F],k}function bi(k,F,z){if(25<=Lo)throw Error(t(301));if(k===mi)if(Vt=!0,k={action:z,next:null},ii===null&&(ii=new Map),z=ii.get(F),z===void 0)ii.set(F,k);else{for(F=z;F.next!==null;)F=F.next;F.next=k}}function cs(){throw Error(t(394))}function po(){}var er={readContext:function(k){return k._currentValue},useContext:function(k){return yi(),k._currentValue},useMemo:Fo,useReducer:yn,useRef:function(k){mi=yi(),sn=Na();var F=sn.memoizedState;return F===null?(k={current:k},sn.memoizedState=k):F},useState:function(k){return yn(us,k)},useInsertionEffect:po,useLayoutEffect:function(){},useCallback:function(k,F){return Fo(function(){return k},F)},useImperativeHandle:po,useEffect:po,useDebugValue:po,useDeferredValue:function(k){return yi(),k},useTransition:function(){return yi(),[!1,cs]},useId:function(){var k=Mo.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Ao(k)-1)).toString(32)+F;var z=f;if(z===null)throw Error(t(404));return F=Di++,k=":"+z.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return yi(),F(k._source)},useSyncExternalStore:function(k,F,z){if(z===void 0)throw Error(t(407));return z()}},f=null,m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(k){return console.error(k),null}function O(){}function N(k,F,z,ne,Te,Ce,Be,et,xt){var Nt=[],_t=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ne===void 0?12800:ne,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:_t,pingedTasks:Nt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Te===void 0?C:Te,onAllReady:Ce===void 0?O:Ce,onShellReady:Be===void 0?O:Be,onShellError:et===void 0?O:et,onFatalError:xt===void 0?O:xt},z=H(F,0,null,z,!1,!1),z.parentFlushed=!0,k=B(F,k,null,z,_t,bt,null,qi),Nt.push(k),F}function B(k,F,z,ne,Te,Ce,Be,et){k.allPendingTasks++,z===null?k.pendingRootTasks++:z.pendingTasks++;var xt={node:F,ping:function(){var Nt=k.pingedTasks;Nt.push(xt),Nt.length===1&&Br(k)},blockedBoundary:z,blockedSegment:ne,abortSet:Te,legacyContext:Ce,context:Be,treeContext:et};return Te.add(xt),xt}function H(k,F,z,ne,Te,Ce){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ne,boundary:z,lastPushedText:Te,textEmbedded:Ce}}function ue(k,F){if(k=k.onError(F),k!=null&&typeof k!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof k+'" instead');return k}function oe(k,F){var z=k.onShellError;z(F),z=k.onFatalError,z(F),k.destination!==null?(k.status=2,v(k.destination,F)):(k.status=1,k.fatalError=F)}function we(k,F,z,ne,Te){for(mi={},Mo=F,Di=0,k=z(ne,Te);Vt;)Vt=!1,Di=0,Lo+=1,sn=null,k=z(ne,Te);return ia(),k}function Le(k,F,z,ne){var Te=z.render(),Ce=ne.childContextTypes;if(Ce!=null){var Be=F.legacyContext;if(typeof z.getChildContext!="function")ne=Be;else{z=z.getChildContext();for(var et in z)if(!(et in Ce))throw Error(t(108,tt(ne)||"Unknown",et));ne=ti({},Be,z)}F.legacyContext=ne,Xe(k,F,Te),F.legacyContext=Be}else Xe(k,F,Te)}function je(k,F){if(k&&k.defaultProps){F=ti({},F),k=k.defaultProps;for(var z in k)F[z]===void 0&&(F[z]=k[z]);return F}return F}function ke(k,F,z,ne,Te){if(typeof z=="function")if(z.prototype&&z.prototype.isReactComponent){Te=Ct(z,F.legacyContext);var Ce=z.contextType;Ce=new z(ne,typeof Ce=="object"&&Ce!==null?Ce._currentValue:Te),vi(Ce,z,ne,Te),Le(k,F,Ce,z)}else{Ce=Ct(z,F.legacyContext),Te=we(k,F,z,ne,Ce);var Be=Di!==0;if(typeof Te=="object"&&Te!==null&&typeof Te.render=="function"&&Te.$$typeof===void 0)vi(Te,z,ne,Ce),Le(k,F,Te,z);else if(Be){ne=F.treeContext,F.treeContext=Nr(ne,1,0);try{Xe(k,F,Te)}finally{F.treeContext=ne}}else Xe(k,F,Te)}else if(typeof z=="string"){switch(Te=F.blockedSegment,Ce=mt(Te.chunks,z,ne,k.responseState,Te.formatContext),Te.lastPushedText=!1,Be=Te.formatContext,Te.formatContext=_e(Be,z,ne),Dt(k,F,Ce),Te.formatContext=Be,z){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Te.chunks.push(In,c(z),ui)}Te.lastPushedText=!1}else{switch(z){case De:case re:case zi:case Rn:case ri:Xe(k,F,ne.children);return;case Lr:Xe(k,F,ne.children);return;case q:throw Error(t(343));case Yi:e:{z=F.blockedBoundary,Te=F.blockedSegment,Ce=ne.fallback,ne=ne.children,Be=new Set;var et={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},xt=H(k,Te.chunks.length,et,Te.formatContext,!1,!1);Te.children.push(xt),Te.lastPushedText=!1;var Nt=H(k,0,null,Te.formatContext,!1,!1);Nt.parentFlushed=!0,F.blockedBoundary=et,F.blockedSegment=Nt;try{if(Dt(k,F,ne),Nt.lastPushedText&&Nt.textEmbedded&&Nt.chunks.push(Ye),Nt.status=1,dn(et,Nt),et.pendingTasks===0)break e}catch(_t){Nt.status=4,et.forceClientRender=!0,et.errorDigest=ue(k,_t)}finally{F.blockedBoundary=z,F.blockedSegment=Te}F=B(k,Ce,z,xt,Be,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof z=="object"&&z!==null)switch(z.$$typeof){case Io:if(ne=we(k,F,z.render,ne,Te),Di!==0){z=F.treeContext,F.treeContext=Nr(z,1,0);try{Xe(k,F,ne)}finally{F.treeContext=z}}else Xe(k,F,ne);return;case E:z=z.type,ne=je(z,ne),ke(k,F,z,ne,Te);return;case Sr:if(Te=ne.children,z=z._context,ne=ne.value,Ce=z._currentValue,z._currentValue=ne,Be=wt,wt=ne={parent:Be,depth:Be===null?0:Be.depth+1,context:z,parentValue:Ce,value:ne},F.context=ne,Xe(k,F,Te),k=wt,k===null)throw Error(t(403));ne=k.parentValue,k.context._currentValue=ne===be?k.context._defaultValue:ne,k=wt=k.parent,F.context=k;return;case cr:ne=ne.children,ne=ne(z._currentValue),Xe(k,F,ne);return;case j:Te=z._init,z=Te(z._payload),ne=je(z,ne),ke(k,F,z,ne,void 0);return}throw Error(t(130,z==null?z:typeof z,""))}}function Xe(k,F,z){if(F.node=z,typeof z=="object"&&z!==null){switch(z.$$typeof){case Jn:ke(k,F,z.type,z.props,z.ref);return;case ni:throw Error(t(257));case j:var ne=z._init;z=ne(z._payload),Xe(k,F,z);return}if(Ne(z)){ft(k,F,z);return}if(z===null||typeof z!="object"?ne=null:(ne=Me&&z[Me]||z["@@iterator"],ne=typeof ne=="function"?ne:null),ne&&(ne=ne.call(z))){if(z=ne.next(),!z.done){var Te=[];do Te.push(z.value),z=ne.next();while(!z.done);ft(k,F,Te)}return}throw k=Object.prototype.toString.call(z),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":k))}typeof z=="string"?(ne=F.blockedSegment,ne.lastPushedText=We(F.blockedSegment.chunks,z,k.responseState,ne.lastPushedText)):typeof z=="number"&&(ne=F.blockedSegment,ne.lastPushedText=We(F.blockedSegment.chunks,""+z,k.responseState,ne.lastPushedText))}function ft(k,F,z){for(var ne=z.length,Te=0;Te<ne;Te++){var Ce=F.treeContext;F.treeContext=Nr(Ce,ne,Te);try{Dt(k,F,z[Te])}finally{F.treeContext=Ce}}}function Dt(k,F,z){var ne=F.blockedSegment.formatContext,Te=F.legacyContext,Ce=F.context;try{return Xe(k,F,z)}catch(xt){if(ia(),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"){z=xt;var Be=F.blockedSegment,et=H(k,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(et),Be.lastPushedText=!1,k=B(k,F.node,F.blockedBoundary,et,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,z.then(k,k),F.blockedSegment.formatContext=ne,F.legacyContext=Te,F.context=Ce,or(Ce)}else throw F.blockedSegment.formatContext=ne,F.legacyContext=Te,F.context=Ce,or(Ce),xt}}function Rt(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,jr(this,F,k)}function Ln(k,F,z){var ne=k.blockedBoundary;k.blockedSegment.status=3,ne===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.close())):(ne.pendingTasks--,ne.forceClientRender||(ne.forceClientRender=!0,k=z===void 0?Error(t(432)):z,ne.errorDigest=F.onError(k),ne.parentFlushed&&F.clientRenderedBoundaries.push(ne)),ne.fallbackAbortableTasks.forEach(function(Te){return Ln(Te,F,z)}),ne.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ne=F.onAllReady,ne()))}function dn(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var z=F.children[0];z.id=F.id,z.parentFlushed=!0,z.status===1&&dn(k,z)}else k.completedSegments.push(F)}function jr(k,F,z){if(F===null){if(z.parentFlushed){if(k.completedRootSegment!==null)throw Error(t(389));k.completedRootSegment=z}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=O,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(z.parentFlushed&&z.status===1&&dn(F,z),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(Rt,k),F.fallbackAbortableTasks.clear()):z.parentFlushed&&z.status===1&&(dn(F,z),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Br(k){if(k.status!==2){var F=wt,z=m.current;m.current=er;var ne=f;f=k.responseState;try{var Te=k.pingedTasks,Ce;for(Ce=0;Ce<Te.length;Ce++){var Be=Te[Ce],et=k,xt=Be.blockedSegment;if(xt.status===0){or(Be.context);try{Xe(et,Be,Be.node),xt.lastPushedText&&xt.textEmbedded&&xt.chunks.push(Ye),Be.abortSet.delete(Be),xt.status=1,jr(et,Be.blockedBoundary,xt)}catch(Gn){if(ia(),typeof Gn=="object"&&Gn!==null&&typeof Gn.then=="function"){var Nt=Be.ping;Gn.then(Nt,Nt)}else{Be.abortSet.delete(Be),xt.status=4;var _t=Be.blockedBoundary,Et=Gn,$n=ue(et,Et);if(_t===null?oe(et,Et):(_t.pendingTasks--,_t.forceClientRender||(_t.forceClientRender=!0,_t.errorDigest=$n,_t.parentFlushed&&et.clientRenderedBoundaries.push(_t))),et.allPendingTasks--,et.allPendingTasks===0){var Cn=et.onAllReady;Cn()}}}finally{}}}Te.splice(0,Ce),k.destination!==null&&vo(k,k.destination)}catch(Gn){ue(k,Gn),oe(k,Gn)}finally{f=ne,m.current=z,z===er&&or(F)}}}function Wt(k,F,z){switch(z.parentFlushed=!0,z.status){case 0:var ne=z.id=k.nextSegmentId++;return z.lastPushedText=!1,z.textEmbedded=!1,k=k.responseState,i(F,un),i(F,k.placeholderPrefix),k=c(ne.toString(16)),i(F,k),o(F,Vi);case 1:z.status=2;var Te=!0;ne=z.chunks;var Ce=0;z=z.children;for(var Be=0;Be<z.length;Be++){for(Te=z[Be];Ce<Te.index;Ce++)i(F,ne[Ce]);Te=$r(k,F,Te)}for(;Ce<ne.length-1;Ce++)i(F,ne[Ce]);return Ce<ne.length&&(Te=o(F,ne[Ce])),Te;default:throw Error(t(390))}}function $r(k,F,z){var ne=z.boundary;if(ne===null)return Wt(k,F,z);if(ne.parentFlushed=!0,ne.forceClientRender)ne=ne.errorDigest,o(F,Wn),i(F,yr),ne&&(i(F,Kr),i(F,c(S(ne))),i(F,Xr)),o(F,Po),Wt(k,F,z);else if(0<ne.pendingTasks){ne.rootSegmentID=k.nextSegmentId++,0<ne.completedSegments.length&&k.partialBoundaries.push(ne);var Te=k.responseState,Ce=Te.nextSuspenseID++;Te=d(Te.boundaryPrefix+Ce.toString(16)),ne=ne.id=Te,Zn(F,k.responseState,ne),Wt(k,F,z)}else if(ne.byteSize>k.progressiveChunkSize)ne.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ne),Zn(F,k.responseState,ne.id),Wt(k,F,z);else{if(o(F,Hi),z=ne.completedSegments,z.length!==1)throw Error(t(391));$r(k,F,z[0])}return o(F,Pr)}function zt(k,F,z){return ki(F,k.responseState,z.formatContext,z.id),$r(k,F,z),pi(F,z.formatContext)}function on(k,F,z){for(var ne=z.completedSegments,Te=0;Te<ne.length;Te++)go(k,F,z,ne[Te]);if(ne.length=0,k=k.responseState,ne=z.id,z=z.rootSegmentID,i(F,k.startInlineScript),k.sentCompleteBoundaryFunction?i(F,Rr):(k.sentCompleteBoundaryFunction=!0,i(F,wr)),ne===null)throw Error(t(395));return z=c(z.toString(16)),i(F,ne),i(F,ei),i(F,k.segmentPrefix),i(F,z),o(F,Ir)}function go(k,F,z,ne){if(ne.status===2)return!0;var Te=ne.id;if(Te===-1){if((ne.id=z.rootSegmentID)===-1)throw Error(t(392));return zt(k,F,ne)}return zt(k,F,ne),k=k.responseState,i(F,k.startInlineScript),k.sentCompleteSegmentFunction?i(F,ho):(k.sentCompleteSegmentFunction=!0,i(F,Oi)),i(F,k.segmentPrefix),Te=c(Te.toString(16)),i(F,Te),i(F,_i),i(F,k.placeholderPrefix),i(F,Te),o(F,Qr)}function vo(k,F){n=new Uint8Array(512),r=0;try{var z=k.completedRootSegment;if(z!==null&&k.pendingRootTasks===0){$r(k,F,z),k.completedRootSegment=null;var ne=k.responseState.bootstrapChunks;for(z=0;z<ne.length-1;z++)i(F,ne[z]);z<ne.length&&o(F,ne[z])}var Te=k.clientRenderedBoundaries,Ce;for(Ce=0;Ce<Te.length;Ce++){var Be=Te[Ce];ne=F;var et=k.responseState,xt=Be.id,Nt=Be.errorDigest,_t=Be.errorMessage,Et=Be.errorComponentStack;if(i(ne,et.startInlineScript),et.sentClientRenderFunction?i(ne,vn):(et.sentClientRenderFunction=!0,i(ne,zn)),xt===null)throw Error(t(395));i(ne,xt),i(ne,Ar),(Nt||_t||Et)&&(i(ne,Mn),i(ne,c(Mr(Nt||"")))),(_t||Et)&&(i(ne,Mn),i(ne,c(Mr(_t||"")))),Et&&(i(ne,Mn),i(ne,c(Mr(Et)))),o(ne,xr)}Te.splice(0,Ce);var $n=k.completedBoundaries;for(Ce=0;Ce<$n.length;Ce++)on(k,F,$n[Ce]);$n.splice(0,Ce),s(F),n=new Uint8Array(512),r=0;var Cn=k.partialBoundaries;for(Ce=0;Ce<Cn.length;Ce++){var Gn=Cn[Ce];e:{Te=k,Be=F;var oa=Gn.completedSegments;for(et=0;et<oa.length;et++)if(!go(Te,Be,Gn,oa[et])){et++,oa.splice(0,et);var fs=!1;break e}oa.splice(0,et),fs=!0}if(!fs){k.destination=null,Ce++,Cn.splice(0,Ce);return}}Cn.splice(0,Ce);var aa=k.completedBoundaries;for(Ce=0;Ce<aa.length;Ce++)on(k,F,aa[Ce]);aa.splice(0,Ce)}finally{s(F),k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.close()}}function Tr(k,F){try{var z=k.abortableTasks;z.forEach(function(ne){return Ln(ne,k,F)}),z.clear(),k.destination!==null&&vo(k,k.destination)}catch(ne){ue(k,ne),oe(k,ne)}}return Vh.renderToReadableStream=function(k,F){return new Promise(function(z,ne){var Te,Ce,Be=new Promise(function(_t,Et){Ce=_t,Te=Et}),et=N(k,Qe(F?F.identifierPrefix:void 0,F?F.nonce:void 0,F?F.bootstrapScriptContent:void 0,F?F.bootstrapScripts:void 0,F?F.bootstrapModules:void 0),Ee(F?F.namespaceURI:void 0),F?F.progressiveChunkSize:void 0,F?F.onError:void 0,Ce,function(){var _t=new ReadableStream({type:"bytes",pull:function(Et){if(et.status===1)et.status=2,v(Et,et.fatalError);else if(et.status!==2&&et.destination===null){et.destination=Et;try{vo(et,Et)}catch($n){ue(et,$n),oe(et,$n)}}},cancel:function(){Tr(et)}},{highWaterMark:0});_t.allReady=Be,z(_t)},function(_t){Be.catch(function(){}),ne(_t)},Te);if(F&&F.signal){var xt=F.signal,Nt=function(){Tr(et,xt.reason),xt.removeEventListener("abort",Nt)};xt.addEventListener("abort",Nt)}Br(et)})},Vh.version="18.3.1",Vh}var Sc={};/**
|
|
62
|
-
* @license React
|
|
63
|
-
* react-dom-server-legacy.browser.development.js
|
|
64
|
-
*
|
|
65
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the MIT license found in the
|
|
68
|
-
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var s1;function C4(){return s1||(s1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("warn",h,D)}}function i(h){{for(var b=arguments.length,D=new Array(b>1?b-1:0),M=1;M<b;M++)D[M-1]=arguments[M];o("error",h,D)}}function o(h,b,D){{var M=n.ReactDebugCurrentFrame,Y=M.getStackAddendum();Y!==""&&(b+="%s",D=D.concat([Y]));var ie=D.map(function(de){return String(de)});ie.unshift("Warning: "+b),Function.prototype.apply.call(console[h],console,ie)}}function s(h){h()}function l(h){}function c(h,b){d(h,b)}function d(h,b){return h.push(b)}function v(h){}function p(h){h.push(null)}function x(h){return h}function T(h){return h}function _(h,b){h.destroy(b)}function I(h){{var b=typeof Symbol=="function"&&Symbol.toStringTag,D=b&&h[Symbol.toStringTag]||h.constructor.name||"Object";return D}}function L(h){try{return R(h),!1}catch{return!0}}function R(h){return""+h}function U(h,b){if(L(h))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",b,I(h)),R(h)}function W(h,b){if(L(h))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",b,I(h)),R(h)}function te(h){if(L(h))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(h)),R(h)}var J=Object.prototype.hasOwnProperty,pe=0,S=1,ce=2,ae=3,Ne=4,Ge=5,qe=6,it=":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",nt=it+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+it+"]["+nt+"]*$"),Se={},Ve={};function Qe(h){return J.call(Ve,h)?!0:J.call(Se,h)?!1:me.test(h)?(Ve[h]=!0,!0):(Se[h]=!0,i("Invalid attribute name: `%s`",h),!1)}function at(h,b,D,M){if(D!==null&&D.type===pe)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":{if(M)return!1;if(D!==null)return!D.acceptsBooleans;var Y=h.toLowerCase().slice(0,5);return Y!=="data-"&&Y!=="aria-"}default:return!1}}function Ee(h){return Ye.hasOwnProperty(h)?Ye[h]:null}function _e(h,b,D,M,Y,ie,de){this.acceptsBooleans=b===ce||b===ae||b===Ne,this.attributeName=M,this.attributeNamespace=Y,this.mustUseProperty=D,this.propertyName=h,this.type=b,this.sanitizeURL=ie,this.removeEmptyString=de}var Ye={},We=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];We.forEach(function(h){Ye[h]=new _e(h,pe,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var b=h[0],D=h[1];Ye[b]=new _e(b,S,!1,D,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){Ye[h]=new _e(h,ce,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){Ye[h]=new _e(h,ce,!1,h,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(h){Ye[h]=new _e(h,ae,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){Ye[h]=new _e(h,ae,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){Ye[h]=new _e(h,Ne,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){Ye[h]=new _e(h,qe,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){Ye[h]=new _e(h,Ge,!1,h.toLowerCase(),null,!1,!1)});var Re=/[\-\:]([a-z])/g,Fe=function(h){return h[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(h){var b=h.replace(Re,Fe);Ye[b]=new _e(b,S,!1,h,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(h){var b=h.replace(Re,Fe);Ye[b]=new _e(b,S,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var b=h.replace(Re,Fe);Ye[b]=new _e(b,S,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){Ye[h]=new _e(h,S,!1,h.toLowerCase(),null,!1,!1)});var He="xlinkHref";Ye[He]=new _e("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){Ye[h]=new _e(h,S,!1,h.toLowerCase(),null,!0,!0)});var lt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ct(h,b){return h+b.charAt(0).toUpperCase()+b.substring(1)}var yt=["Webkit","ms","Moz","O"];Object.keys(lt).forEach(function(h){yt.forEach(function(b){lt[ct(b,h)]=lt[h]})});var dt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Tt(h,b){dt[b.type]||b.onChange||b.onInput||b.readOnly||b.disabled||b.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),b.onChange||b.readOnly||b.disabled||b.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ot(h,b){if(h.indexOf("-")===-1)return typeof b.is=="string";switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $t={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ht={},Xn=new RegExp("^(aria)-["+nt+"]*$"),mr=new RegExp("^(aria)[A-Z]["+nt+"]*$");function Kn(h,b){{if(J.call(Ht,b)&&Ht[b])return!0;if(mr.test(b)){var D="aria-"+b.slice(4).toLowerCase(),M=$t.hasOwnProperty(D)?D:null;if(M==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",b),Ht[b]=!0,!0;if(b!==M)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",b,M),Ht[b]=!0,!0}if(Xn.test(b)){var Y=b.toLowerCase(),ie=$t.hasOwnProperty(Y)?Y:null;if(ie==null)return Ht[b]=!0,!1;if(b!==ie)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",b,ie),Ht[b]=!0,!0}}return!0}function Dn(h,b){{var D=[];for(var M in b){var Y=Kn(h,M);Y||D.push(M)}var ie=D.map(function(de){return"`"+de+"`"}).join(", ");D.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h):D.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",ie,h)}}function $i(h,b){ot(h,b)||Dn(h,b)}var _r=!1;function rr(h,b){{if(h!=="input"&&h!=="textarea"&&h!=="select")return;b!=null&&b.value===null&&!_r&&(_r=!0,h==="select"&&b.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",h):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",h))}}var cn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},hn=function(){};{var pn={},mt=/^on./,In=/^on[^A-Z]/,ui=new RegExp("^(aria)-["+nt+"]*$"),un=new RegExp("^(aria)[A-Z]["+nt+"]*$");hn=function(h,b,D,M){if(J.call(pn,b)&&pn[b])return!0;var Y=b.toLowerCase();if(Y==="onfocusin"||Y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),pn[b]=!0,!0;if(M!=null){var ie=M.registrationNameDependencies,de=M.possibleRegistrationNames;if(ie.hasOwnProperty(b))return!0;var Ie=de.hasOwnProperty(Y)?de[Y]:null;if(Ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",b,Ie),pn[b]=!0,!0;if(mt.test(b))return i("Unknown event handler property `%s`. It will be ignored.",b),pn[b]=!0,!0}else if(mt.test(b))return In.test(b)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",b),pn[b]=!0,!0;if(ui.test(b)||un.test(b))return!0;if(Y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),pn[b]=!0,!0;if(Y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),pn[b]=!0,!0;if(Y==="is"&&D!==null&&D!==void 0&&typeof D!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof D),pn[b]=!0,!0;if(typeof D=="number"&&isNaN(D))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",b),pn[b]=!0,!0;var Ze=Ee(b),vt=Ze!==null&&Ze.type===pe;if(cn.hasOwnProperty(Y)){var St=cn[Y];if(St!==b)return i("Invalid DOM property `%s`. Did you mean `%s`?",b,St),pn[b]=!0,!0}else if(!vt&&b!==Y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",b,Y),pn[b]=!0,!0;return typeof D=="boolean"&&at(b,D,Ze,!1)?(D?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',D,b,b,D,b):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',D,b,b,D,b,b,b),pn[b]=!0,!0):vt?!0:at(b,D,Ze,!1)?(pn[b]=!0,!1):((D==="false"||D==="true")&&Ze!==null&&Ze.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",D,b,D==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',b,D),pn[b]=!0),!0)}}var Vi=function(h,b,D){{var M=[];for(var Y in b){var ie=hn(h,Y,b[Y],D);ie||M.push(Y)}var de=M.map(function(Ie){return"`"+Ie+"`"}).join(", ");M.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",de,h):M.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",de,h)}};function Hi(h,b,D){ot(h,b)||Vi(h,b,D)}var Ui=function(){};{var Dr=/^(?:webkit|moz|o)[A-Z]/,Wn=/^-ms-/,Pr=/-(.)/g,yr=/;\s*$/,Xr={},Kr={},Po=!1,Zn=!1,Zr=function(h){return h.replace(Pr,function(b,D){return D.toUpperCase()})},ir=function(h){Xr.hasOwnProperty(h)&&Xr[h]||(Xr[h]=!0,i("Unsupported style property %s. Did you mean %s?",h,Zr(h.replace(Wn,"ms-"))))},Zt=function(h){Xr.hasOwnProperty(h)&&Xr[h]||(Xr[h]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",h,h.charAt(0).toUpperCase()+h.slice(1)))},ci=function(h,b){Kr.hasOwnProperty(b)&&Kr[b]||(Kr[b]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,h,b.replace(yr,"")))},Wi=function(h,b){Po||(Po=!0,i("`NaN` is an invalid value for the `%s` css style property.",h))},An=function(h,b){Zn||(Zn=!0,i("`Infinity` is an invalid value for the `%s` css style property.",h))};Ui=function(h,b){h.indexOf("-")>-1?ir(h):Dr.test(h)?Zt(h):yr.test(b)&&ci(h,b),typeof b=="number"&&(isNaN(b)?Wi(h,b):isFinite(b)||An(h,b))}}var gn=Ui,fi=/["'&<>]/;function di(h){te(h);var b=""+h,D=fi.exec(b);if(!D)return b;var M,Y="",ie,de=0;for(ie=D.index;ie<b.length;ie++){switch(b.charCodeAt(ie)){case 34:M=""";break;case 38:M="&";break;case 39:M="'";break;case 60:M="<";break;case 62:M=">";break;default:continue}de!==ie&&(Y+=b.substring(de,ie)),de=ie+1,Y+=M}return de!==ie?Y+b.substring(de,ie):Y}function mn(h){return typeof h=="boolean"||typeof h=="number"?""+h:di(h)}var uo=/([A-Z])/g,br=/^ms-/;function hi(h){return h.replace(uo,"-$1").toLowerCase().replace(br,"-ms-")}var fn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Ei=!1;function Ra(h){!Ei&&fn.test(h)&&(Ei=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(h)))}var Ia=Array.isArray;function Jr(h){return Ia(h)}var co="<script>",fo="<\/script>",Ro='<script src="',ki='<script type="module" src="',pi='" async=""><\/script>';function Oi(h){return te(h),(""+h).replace(ho,_i)}var ho=/(<\/|<)(s)(cript)/gi,_i=function(h,b,D,M){return""+b+(D==="s"?"\\u0073":"\\u0053")+M};function Qr(h,b,D,M,Y){var ie=h===void 0?"":h,de=b===void 0?co:'<script nonce="'+mn(b)+'">',Ie=[];if(D!==void 0&&Ie.push(de,Oi(D),fo),M!==void 0)for(var Ze=0;Ze<M.length;Ze++)Ie.push(Ro,mn(M[Ze]),pi);if(Y!==void 0)for(var vt=0;vt<Y.length;vt++)Ie.push(ki,mn(Y[vt]),pi);return{bootstrapChunks:Ie,startInlineScript:de,placeholderPrefix:ie+"P:",segmentPrefix:ie+"S:",boundaryPrefix:ie+"B:",idPrefix:ie,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var wr=0,Rr=1,ei=2,Ir=3,zn=4,vn=5,Ar=6,xr=7;function Mn(h,b){return{insertionMode:h,selectedValue:b}}function gi(h,b,D){switch(b){case"select":return Mn(Rr,D.value!=null?D.value:D.defaultValue);case"svg":return Mn(ei,null);case"math":return Mn(Ir,null);case"foreignObject":return Mn(Rr,null);case"table":return Mn(zn,null);case"thead":case"tbody":case"tfoot":return Mn(vn,null);case"colgroup":return Mn(xr,null);case"tr":return Mn(Ar,null)}return h.insertionMode>=zn||h.insertionMode===wr?Mn(Rr,null):h}var Mr=null;function ti(h){var b=h.nextSuspenseID++;return h.boundaryPrefix+b.toString(16)}function Jn(h,b,D){var M=h.idPrefix,Y=":"+M+"R"+b;return D>0&&(Y+="H"+D.toString(32)),Y+":"}function ni(h){return mn(h)}var ri="<!-- -->";function zi(h,b,D,M){return b===""?M:(M&&h.push(ri),h.push(ni(b)),!0)}function Rn(h,b,D,M){D&&M&&h.push(ri)}var Sr=new Map;function cr(h){var b=Sr.get(h);if(b!==void 0)return b;var D=mn(hi(h));return Sr.set(h,D),D}var Io=' style="',Yi=":",Lr=";";function E(h,b,D){if(typeof D!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var M=!0;for(var Y in D)if(J.call(D,Y)){var ie=D[Y];if(!(ie==null||typeof ie=="boolean"||ie==="")){var de=void 0,Ie=void 0,Ze=Y.indexOf("--")===0;Ze?(de=mn(Y),W(ie,Y),Ie=mn((""+ie).trim())):(gn(Y,ie),de=cr(Y),typeof ie=="number"?ie!==0&&!J.call(lt,Y)?Ie=ie+"px":Ie=""+ie:(W(ie,Y),Ie=mn((""+ie).trim()))),M?(M=!1,h.push(Io,de,Yi,Ie)):h.push(Lr,de,Yi,Ie)}}M||h.push(re)}var j=" ",q='="',re='"',De='=""';function be(h,b,D,M){switch(D){case"style":{E(h,b,M);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(D.length>2&&(D[0]==="o"||D[0]==="O")&&(D[1]==="n"||D[1]==="N"))){var Y=Ee(D);if(Y!==null){switch(typeof M){case"function":case"symbol":return;case"boolean":if(!Y.acceptsBooleans)return}var ie=Y.attributeName,de=ie;switch(Y.type){case ae:M&&h.push(j,de,De);return;case Ne:M===!0?h.push(j,de,De):M===!1||h.push(j,de,q,mn(M),re);return;case Ge:isNaN(M)||h.push(j,de,q,mn(M),re);break;case qe:!isNaN(M)&&M>=1&&h.push(j,de,q,mn(M),re);break;default:Y.sanitizeURL&&(U(M,ie),M=""+M,Ra(M)),h.push(j,de,q,mn(M),re)}}else if(Qe(D)){switch(typeof M){case"function":case"symbol":return;case"boolean":{var Ie=D.toLowerCase().slice(0,5);if(Ie!=="data-"&&Ie!=="aria-")return}}h.push(j,D,q,mn(M),re)}}}var Me=">",tt="/>";function bt(h,b,D){if(b!=null){if(D!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof b!="object"||!("__html"in b))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var M=b.__html;M!=null&&(te(M),h.push(""+M))}}var Ct=!1,wt=!1,Ut=!1,Qn=!1,Yn=!1,Pn=!1,Fr=!1;function or(h,b){{var D=h[b];if(D!=null){var M=Jr(D);h.multiple&&!M?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",b):!h.multiple&&M&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",b)}}}function Gi(h,b,D){Tt("select",b),or(b,"value"),or(b,"defaultValue"),b.value!==void 0&&b.defaultValue!==void 0&&!Ut&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ut=!0),h.push(Vt("select"));var M=null,Y=null;for(var ie in b)if(J.call(b,ie)){var de=b[ie];if(de==null)continue;switch(ie){case"children":M=de;break;case"dangerouslySetInnerHTML":Y=de;break;case"defaultValue":case"value":break;default:be(h,D,ie,de);break}}return h.push(Me),bt(h,Y,M),M}function vi(h){var b="";return e.Children.forEach(h,function(D){D!=null&&(b+=D,!Yn&&typeof D!="string"&&typeof D!="number"&&(Yn=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),b}var qi=' selected=""';function Nr(h,b,D,M){var Y=M.selectedValue;h.push(Vt("option"));var ie=null,de=null,Ie=null,Ze=null;for(var vt in b)if(J.call(b,vt)){var St=b[vt];if(St==null)continue;switch(vt){case"children":ie=St;break;case"selected":Ie=St,Fr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Fr=!0);break;case"dangerouslySetInnerHTML":Ze=St;break;case"value":de=St;default:be(h,D,vt,St);break}}if(Y!=null){var Mt;if(de!==null?(U(de,"value"),Mt=""+de):(Ze!==null&&(Pn||(Pn=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),Mt=vi(ie)),Jr(Y))for(var bn=0;bn<Y.length;bn++){U(Y[bn],"value");var On=""+Y[bn];if(On===Mt){h.push(qi);break}}else U(Y,"select.value"),""+Y===Mt&&h.push(qi)}else Ie&&h.push(qi);return h.push(Me),bt(h,Ze,ie),ie}function Ao(h,b,D){Tt("input",b),b.checked!==void 0&&b.defaultChecked!==void 0&&!wt&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),wt=!0),b.value!==void 0&&b.defaultValue!==void 0&&!Ct&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",b.type),Ct=!0),h.push(Vt("input"));var M=null,Y=null,ie=null,de=null;for(var Ie in b)if(J.call(b,Ie)){var Ze=b[Ie];if(Ze==null)continue;switch(Ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":de=Ze;break;case"defaultValue":Y=Ze;break;case"checked":ie=Ze;break;case"value":M=Ze;break;default:be(h,D,Ie,Ze);break}}return ie!==null?be(h,D,"checked",ie):de!==null&&be(h,D,"checked",de),M!==null?be(h,D,"value",M):Y!==null&&be(h,D,"value",Y),h.push(tt),null}function Ys(h,b,D){Tt("textarea",b),b.value!==void 0&&b.defaultValue!==void 0&&!Qn&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Qn=!0),h.push(Vt("textarea"));var M=null,Y=null,ie=null;for(var de in b)if(J.call(b,de)){var Ie=b[de];if(Ie==null)continue;switch(de){case"children":ie=Ie;break;case"value":M=Ie;break;case"defaultValue":Y=Ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:be(h,D,de,Ie);break}}if(M===null&&Y!==null&&(M=Y),h.push(Me),ie!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),M!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Jr(ie)){if(ie.length>1)throw new Error("<textarea> can only have at most one child.");te(ie[0]),M=""+ie[0]}te(ie),M=""+ie}return typeof M=="string"&&M[0]===`
|
|
70
|
-
`&&h.push(Mo),M!==null&&(U(M,"value"),h.push(ni(""+M))),null}function Aa(h,b,D,M){h.push(Vt(D));for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":case"dangerouslySetInnerHTML":throw new Error(D+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:be(h,M,Y,ie);break}}return h.push(tt),null}function Ma(h,b,D){h.push(Vt("menuitem"));for(var M in b)if(J.call(b,M)){var Y=b[M];if(Y==null)continue;switch(M){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:be(h,D,M,Y);break}}return h.push(Me),null}function La(h,b,D){h.push(Vt("title"));var M=null;for(var Y in b)if(J.call(b,Y)){var ie=b[Y];if(ie==null)continue;switch(Y){case"children":M=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:be(h,D,Y,ie);break}}h.push(Me);{var de=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"):de!=null&&de.$$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"):de!=null&&typeof de!="string"&&typeof de!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return M}function Fa(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var de in b)if(J.call(b,de)){var Ie=b[de];if(Ie==null)continue;switch(de){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,de,Ie);break}}return h.push(Me),bt(h,ie,Y),typeof Y=="string"?(h.push(ni(Y)),null):Y}function mi(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var de in b)if(J.call(b,de)){var Ie=b[de];if(Ie==null)continue;switch(de){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;case"style":E(h,M,Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Qe(de)&&typeof Ie!="function"&&typeof Ie!="symbol"&&h.push(j,de,q,mn(Ie),re);break}}return h.push(Me),bt(h,ie,Y),Y}var Mo=`
|
|
71
|
-
`;function ra(h,b,D,M){h.push(Vt(D));var Y=null,ie=null;for(var de in b)if(J.call(b,de)){var Ie=b[de];if(Ie==null)continue;switch(de){case"children":Y=Ie;break;case"dangerouslySetInnerHTML":ie=Ie;break;default:be(h,M,de,Ie);break}}if(h.push(Me),ie!=null){if(Y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof ie!="object"||!("__html"in ie))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Ze=ie.__html;Ze!=null&&(typeof Ze=="string"&&Ze.length>0&&Ze[0]===`
|
|
72
|
-
`?h.push(Mo,Ze):(te(Ze),h.push(""+Ze)))}return typeof Y=="string"&&Y[0]===`
|
|
73
|
-
`&&h.push(Mo),Y}var sn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qt=new Map;function Vt(h){var b=Qt.get(h);if(b===void 0){if(!sn.test(h))throw new Error("Invalid tag: "+h);b="<"+h,Qt.set(h,b)}return b}var Di="<!DOCTYPE html>";function ii(h,b,D,M,Y){switch($i(b,D),rr(b,D),Hi(b,D,null),!D.suppressContentEditableWarning&&D.contentEditable&&D.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),Y.insertionMode!==ei&&Y.insertionMode!==Ir&&b.indexOf("-")===-1&&typeof D.is!="string"&&b.toLowerCase()!==b&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",b),b){case"select":return Gi(h,D,M);case"option":return Nr(h,D,M,Y);case"textarea":return Ys(h,D,M);case"input":return Ao(h,D,M);case"menuitem":return Ma(h,D,M);case"title":return La(h,D,M);case"listing":case"pre":return ra(h,D,b,M);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Aa(h,D,b,M);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 Fa(h,D,b,M);case"html":return Y.insertionMode===wr&&h.push(Di),Fa(h,D,b,M);default:return b.indexOf("-")===-1&&typeof D.is!="string"?Fa(h,D,b,M):mi(h,D,b,M)}}var Lo="</",yi=">";function fr(h,b,D){switch(b){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:h.push(Lo,b,yi)}}function Na(h,b){for(var D=b.bootstrapChunks,M=0;M<D.length-1;M++)c(h,D[M]);return M<D.length?d(h,D[M]):!0}var ia='<template id="',us='"></template>';function yn(h,b,D){c(h,ia),c(h,b.placeholderPrefix);var M=D.toString(16);return c(h,M),d(h,us)}var Fo="<!--$-->",bi='<!--$?--><template id="',cs='"></template>',po="<!--$!-->",er="<!--/$-->",f="<template",m='"',C=' data-dgst="',O=' data-msg="',N=' data-stck="',B="></template>";function H(h,b){return d(h,Fo)}function ue(h,b,D){if(c(h,bi),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),d(h,cs)}function oe(h,b,D,M,Y){var ie;return ie=d(h,po),c(h,f),D&&(c(h,C),c(h,mn(D)),c(h,m)),M&&(c(h,O),c(h,mn(M)),c(h,m)),Y&&(c(h,N),c(h,mn(Y)),c(h,m)),ie=d(h,B),ie}function we(h,b){return d(h,er)}function Le(h,b){return d(h,er)}function je(h,b){return d(h,er)}var ke='<div hidden id="',Xe='">',ft="</div>",Dt='<svg aria-hidden="true" style="display:none" id="',Rt='">',Ln="</svg>",dn='<math aria-hidden="true" style="display:none" id="',jr='">',Br="</math>",Wt='<table hidden id="',$r='">',zt="</table>",on='<table hidden><tbody id="',go='">',vo="</tbody></table>",Tr='<table hidden><tr id="',k='">',F="</tr></table>",z='<table hidden><colgroup id="',ne='">',Te="</colgroup></table>";function Ce(h,b,D,M){switch(D.insertionMode){case wr:case Rr:return c(h,ke),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Xe);case ei:return c(h,Dt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,Rt);case Ir:return c(h,dn),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,jr);case zn:return c(h,Wt),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,$r);case vn:return c(h,on),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,go);case Ar:return c(h,Tr),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,k);case xr:return c(h,z),c(h,b.segmentPrefix),c(h,M.toString(16)),d(h,ne);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Be(h,b){switch(b.insertionMode){case wr:case Rr:return d(h,ft);case ei:return d(h,Ln);case Ir:return d(h,Br);case zn:return d(h,zt);case vn:return d(h,vo);case Ar:return d(h,F);case xr:return d(h,Te);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var et="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",xt='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Nt='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',_t=et+';$RS("',Et='$RS("',$n='","',Cn='")<\/script>';function Gn(h,b,D){c(h,b.startInlineScript),b.sentCompleteSegmentFunction?c(h,Et):(b.sentCompleteSegmentFunction=!0,c(h,_t)),c(h,b.segmentPrefix);var M=D.toString(16);return c(h,M),c(h,$n),c(h,b.placeholderPrefix),c(h,M),d(h,Cn)}var oa=xt+';$RC("',fs='$RC("',aa='","',oi='")<\/script>';function Gs(h,b,D,M){if(c(h,b.startInlineScript),b.sentCompleteBoundaryFunction?c(h,fs):(b.sentCompleteBoundaryFunction=!0,c(h,oa)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var Y=M.toString(16);return c(h,D),c(h,aa),c(h,b.segmentPrefix),c(h,Y),d(h,oi)}var mo=Nt+';$RX("',ds='$RX("',sa='"',wi=")<\/script>",Xi=",";function qs(h,b,D,M,Y,ie){if(c(h,b.startInlineScript),b.sentClientRenderFunction?c(h,ds):(b.sentClientRenderFunction=!0,c(h,mo)),D===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return c(h,D),c(h,sa),(M||Y||ie)&&(c(h,Xi),c(h,la(M||""))),(Y||ie)&&(c(h,Xi),c(h,la(Y||""))),ie&&(c(h,Xi),c(h,la(ie))),d(h,wi)}var Nu=/[<\u2028\u2029]/g;function la(h){var b=JSON.stringify(h);return b.replace(Nu,function(D){switch(D){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function yo(h,b){var D=Qr(b,void 0);return{bootstrapChunks:D.bootstrapChunks,startInlineScript:D.startInlineScript,placeholderPrefix:D.placeholderPrefix,segmentPrefix:D.segmentPrefix,boundaryPrefix:D.boundaryPrefix,idPrefix:D.idPrefix,nextSuspenseID:D.nextSuspenseID,sentCompleteSegmentFunction:D.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:D.sentCompleteBoundaryFunction,sentClientRenderFunction:D.sentClientRenderFunction,generateStaticMarkup:h}}function dr(){return{insertionMode:Rr,selectedValue:null}}function Xs(h,b,D,M){return D.generateStaticMarkup?(h.push(mn(b)),!1):zi(h,b,D,M)}function hs(h,b,D,M){if(!b.generateStaticMarkup)return Rn(h,b,D,M)}function ps(h,b){return b.generateStaticMarkup?!0:H(h)}function ee(h,b,D,M,Y){return b.generateStaticMarkup?!0:oe(h,b,D,M,Y)}function ve(h,b){return b.generateStaticMarkup?!0:we(h)}function Pe(h,b){return b.generateStaticMarkup?!0:je(h)}var Oe=Object.assign,Q=Symbol.for("react.element"),he=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),$e=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),ht=Symbol.for("react.provider"),pt=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),It=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),Yt=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),ar=Symbol.for("react.scope"),qn=Symbol.for("react.debug_trace_mode"),Vr=Symbol.for("react.legacy_hidden"),Ki=Symbol.for("react.default_value"),At=Symbol.iterator,Vc="@@iterator";function En(h){if(h===null||typeof h!="object")return null;var b=At&&h[At]||h[Vc];return typeof b=="function"?b:null}function ua(h,b,D){var M=h.displayName;if(M)return M;var Y=b.displayName||b.name||"";return Y!==""?D+"("+Y+")":D}function ju(h){return h.displayName||"Context"}function kn(h){if(h==null)return null;if(typeof h.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case fe:return"Fragment";case he:return"Portal";case ze:return"Profiler";case $e:return"StrictMode";case It:return"Suspense";case kt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case pt:var b=h;return ju(b)+".Consumer";case ht:var D=h;return ju(D._context)+".Provider";case ut:return ua(h,h.render,"ForwardRef");case Yt:var M=h.displayName||null;return M!==null?M:kn(h.type)||"Memo";case Fn:{var Y=h,ie=Y._payload,de=Y._init;try{return kn(de(ie))}catch{return null}}}return null}var gs=0,vs,bo,ms,$l,ys,Bu,$u;function ja(){}ja.__reactDisabledLog=!0;function Vl(){{if(gs===0){vs=console.log,bo=console.info,ms=console.warn,$l=console.error,ys=console.group,Bu=console.groupCollapsed,$u=console.groupEnd;var h={configurable:!0,enumerable:!0,value:ja,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}gs++}}function No(){{if(gs--,gs===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oe({},h,{value:vs}),info:Oe({},h,{value:bo}),warn:Oe({},h,{value:ms}),error:Oe({},h,{value:$l}),group:Oe({},h,{value:ys}),groupCollapsed:Oe({},h,{value:Bu}),groupEnd:Oe({},h,{value:$u})})}gs<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Zi=n.ReactCurrentDispatcher,jo;function Ks(h,b,D){{if(jo===void 0)try{throw Error()}catch(Y){var M=Y.stack.trim().match(/\n( *(at )?)/);jo=M&&M[1]||""}return`
|
|
74
|
-
`+jo+h}}var Zs=!1,Hl;{var Js=typeof WeakMap=="function"?WeakMap:Map;Hl=new Js}function bs(h,b){if(!h||Zs)return"";{var D=Hl.get(h);if(D!==void 0)return D}var M;Zs=!0;var Y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=Zi.current,Zi.current=null,Vl();try{if(b){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Ti){M=Ti}Reflect.construct(h,[],de)}else{try{de.call()}catch(Ti){M=Ti}h.call(de.prototype)}}else{try{throw Error()}catch(Ti){M=Ti}h()}}catch(Ti){if(Ti&&M&&typeof Ti.stack=="string"){for(var Ie=Ti.stack.split(`
|
|
75
|
-
`),Ze=M.stack.split(`
|
|
76
|
-
`),vt=Ie.length-1,St=Ze.length-1;vt>=1&&St>=0&&Ie[vt]!==Ze[St];)St--;for(;vt>=1&&St>=0;vt--,St--)if(Ie[vt]!==Ze[St]){if(vt!==1||St!==1)do if(vt--,St--,St<0||Ie[vt]!==Ze[St]){var Mt=`
|
|
77
|
-
`+Ie[vt].replace(" at new "," at ");return h.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",h.displayName)),typeof h=="function"&&Hl.set(h,Mt),Mt}while(vt>=1&&St>=0);break}}}finally{Zs=!1,Zi.current=ie,No(),Error.prepareStackTrace=Y}var bn=h?h.displayName||h.name:"",On=bn?Ks(bn):"";return typeof h=="function"&&Hl.set(h,On),On}function Qs(h,b,D){return bs(h,!0)}function Vu(h,b,D){return bs(h,!1)}function Hu(h){var b=h.prototype;return!!(b&&b.isReactComponent)}function ws(h,b,D){if(h==null)return"";if(typeof h=="function")return bs(h,Hu(h));if(typeof h=="string")return Ks(h);switch(h){case It:return Ks("Suspense");case kt:return Ks("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ut:return Vu(h.render);case Yt:return ws(h.type,b,D);case Fn:{var M=h,Y=M._payload,ie=M._init;try{return ws(ie(Y),b,D)}catch{}}}return""}var Uu={},Nn=n.ReactDebugCurrentFrame;function jn(h){if(h){var b=h._owner,D=ws(h.type,h._source,b?b.type:null);Nn.setExtraStackFrame(D)}else Nn.setExtraStackFrame(null)}function Wu(h,b,D,M,Y){{var ie=Function.call.bind(J);for(var de in h)if(ie(h,de)){var Ie=void 0;try{if(typeof h[de]!="function"){var Ze=Error((M||"React class")+": "+D+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ze.name="Invariant Violation",Ze}Ie=h[de](b,de,M,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(vt){Ie=vt}Ie&&!(Ie instanceof Error)&&(jn(Y),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",M||"React class",D,de,typeof Ie),jn(null)),Ie instanceof Error&&!(Ie.message in Uu)&&(Uu[Ie.message]=!0,jn(Y),i("Failed %s type: %s",D,Ie.message),jn(null))}}}var zu;zu={};var Bo={};Object.freeze(Bo);function Hc(h,b){{var D=h.contextTypes;if(!D)return Bo;var M={};for(var Y in D)M[Y]=b[Y];{var ie=kn(h)||"Unknown";Wu(D,M,"context",ie)}return M}}function $o(h,b,D,M){{if(typeof h.getChildContext!="function"){{var Y=kn(b)||"Unknown";zu[Y]||(zu[Y]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",Y,Y))}return D}var ie=h.getChildContext();for(var de in ie)if(!(de in M))throw new Error((kn(b)||"Unknown")+'.getChildContext(): key "'+de+'" is not defined in childContextTypes.');{var Ie=kn(b)||"Unknown";Wu(M,ie,"child context",Ie)}return Oe({},D,ie)}}var Ji;Ji={};var el=null,Hr=null;function ca(h){h.context._currentValue2=h.parentValue}function fa(h){h.context._currentValue2=h.value}function da(h,b){if(h!==b){ca(h);var D=h.parent,M=b.parent;if(D===null){if(M!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(M===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");da(D,M)}fa(b)}}function ha(h){ca(h);var b=h.parent;b!==null&&ha(b)}function tl(h){var b=h.parent;b!==null&&tl(b),fa(h)}function Uc(h,b){ca(h);var D=h.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");D.depth===b.depth?da(D,b):Uc(D,b)}function Wc(h,b){var D=b.parent;if(D===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");h.depth===D.depth?da(h,D):Wc(h,D),fa(b)}function Ul(h){var b=Hr,D=h;b!==D&&(b===null?tl(D):D===null?ha(b):b.depth===D.depth?da(b,D):b.depth>D.depth?Uc(b,D):Wc(b,D),Hr=D)}function nl(h,b){var D;D=h._currentValue2,h._currentValue2=b,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ji&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ji;var M=Hr,Y={parent:M,depth:M===null?0:M.depth+1,context:h,parentValue:D,value:b};return Hr=Y,Y}function xs(h){var b=Hr;if(b===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");b.context!==h&&i("The parent context is not the expected context. This is probably a bug in React.");{var D=b.parentValue;D===Ki?b.context._currentValue2=b.context._defaultValue:b.context._currentValue2=D,h._currentRenderer2!==void 0&&h._currentRenderer2!==null&&h._currentRenderer2!==Ji&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),h._currentRenderer2=Ji}return Hr=b.parent}function rl(){return Hr}function Ba(h){var b=h._currentValue2;return b}function G(h){return h._reactInternals}function pa(h,b){h._reactInternals=b}var $a={},Ur={},qt,Wl,Ss,il,wo,Ts,zl,Yl,Gl;{qt=new Set,Wl=new Set,Ss=new Set,zl=new Set,il=new Set,Yl=new Set,Gl=new Set;var zc=new Set;Ts=function(h,b){if(!(h===null||typeof h=="function")){var D=b+"_"+h;zc.has(D)||(zc.add(D),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",b,h))}},wo=function(h,b){if(b===void 0){var D=kn(h)||"Component";il.has(D)||(il.add(D),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",D))}}}function xo(h,b){{var D=h.constructor,M=D&&kn(D)||"ReactClass",Y=M+"."+b;if($a[Y])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
78
|
-
|
|
79
|
-
Please check the code for the %s component.`,b,b,M),$a[Y]=!0}}var Yc={isMounted:function(h){return!1},enqueueSetState:function(h,b,D){var M=G(h);M.queue===null?xo(h,"setState"):(M.queue.push(b),D!=null&&Ts(D,"setState"))},enqueueReplaceState:function(h,b,D){var M=G(h);M.replace=!0,M.queue=[b],D!=null&&Ts(D,"setState")},enqueueForceUpdate:function(h,b){var D=G(h);D.queue===null?xo(h,"forceUpdate"):b!=null&&Ts(b,"setState")}};function Vf(h,b,D,M,Y){var ie=D(Y,M);wo(b,ie);var de=ie==null?M:Oe({},M,ie);return de}function Hf(h,b,D){var M=Bo,Y=h.contextType;if("contextType"in h){var ie=Y===null||Y!==void 0&&Y.$$typeof===pt&&Y._context===void 0;if(!ie&&!Gl.has(h)){Gl.add(h);var de="";Y===void 0?de=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof Y!="object"?de=" However, it is set to a "+typeof Y+".":Y.$$typeof===ht?de=" Did you accidentally pass the Context.Provider instead?":Y._context!==void 0?de=" Did you accidentally pass the Context.Consumer instead?":de=" However, it is set to an object with keys {"+Object.keys(Y).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",kn(h)||"Component",de)}}typeof Y=="object"&&Y!==null?M=Ba(Y):M=D;var Ie=new h(b,M);{if(typeof h.getDerivedStateFromProps=="function"&&(Ie.state===null||Ie.state===void 0)){var Ze=kn(h)||"Component";qt.has(Ze)||(qt.add(Ze),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ze,Ie.state===null?"null":"undefined",Ze))}if(typeof h.getDerivedStateFromProps=="function"||typeof Ie.getSnapshotBeforeUpdate=="function"){var vt=null,St=null,Mt=null;if(typeof Ie.componentWillMount=="function"&&Ie.componentWillMount.__suppressDeprecationWarning!==!0?vt="componentWillMount":typeof Ie.UNSAFE_componentWillMount=="function"&&(vt="UNSAFE_componentWillMount"),typeof Ie.componentWillReceiveProps=="function"&&Ie.componentWillReceiveProps.__suppressDeprecationWarning!==!0?St="componentWillReceiveProps":typeof Ie.UNSAFE_componentWillReceiveProps=="function"&&(St="UNSAFE_componentWillReceiveProps"),typeof Ie.componentWillUpdate=="function"&&Ie.componentWillUpdate.__suppressDeprecationWarning!==!0?Mt="componentWillUpdate":typeof Ie.UNSAFE_componentWillUpdate=="function"&&(Mt="UNSAFE_componentWillUpdate"),vt!==null||St!==null||Mt!==null){var bn=kn(h)||"Component",On=typeof h.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ss.has(bn)||(Ss.add(bn),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
80
|
-
|
|
81
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
82
|
-
|
|
83
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
84
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,bn,On,vt!==null?`
|
|
85
|
-
`+vt:"",St!==null?`
|
|
86
|
-
`+St:"",Mt!==null?`
|
|
87
|
-
`+Mt:""))}}}return Ie}function Gc(h,b,D){{var M=kn(b)||"Component",Y=h.render;Y||(b.prototype&&typeof b.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",M):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",M)),h.getInitialState&&!h.getInitialState.isReactClassApproved&&!h.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",M),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",M),h.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",M),h.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),h.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",M),b.contextType&&b.contextTypes&&!Yl.has(b)&&(Yl.add(b),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",M)),typeof h.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",M),b.prototype&&b.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",kn(b)||"A pure component"),typeof h.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",M),typeof h.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",M),typeof h.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof h.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M);var ie=h.props!==D;h.props!==void 0&&ie&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",M,M),h.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",M,M),typeof h.getSnapshotBeforeUpdate=="function"&&typeof h.componentDidUpdate!="function"&&!Wl.has(b)&&(Wl.add(b),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",kn(b))),typeof h.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof h.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",M),typeof b.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",M);var de=h.state;de&&(typeof de!="object"||Jr(de))&&i("%s.state: must be set to an object or null",M),typeof h.getChildContext=="function"&&typeof b.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M)}}function Uf(h,b){var D=b.state;if(typeof b.componentWillMount=="function"){if(b.componentWillMount.__suppressDeprecationWarning!==!0){var M=kn(h)||"Unknown";Ur[M]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
88
|
-
|
|
89
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
90
|
-
|
|
91
|
-
Please update the following components: %s`,M),Ur[M]=!0)}b.componentWillMount()}typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),D!==b.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",kn(h)||"Component"),Yc.enqueueReplaceState(b,b.state,null))}function Vo(h,b,D,M){if(h.queue!==null&&h.queue.length>0){var Y=h.queue,ie=h.replace;if(h.queue=null,h.replace=!1,ie&&Y.length===1)b.state=Y[0];else{for(var de=ie?Y[0]:b.state,Ie=!0,Ze=ie?1:0;Ze<Y.length;Ze++){var vt=Y[Ze],St=typeof vt=="function"?vt.call(b,de,D,M):vt;St!=null&&(Ie?(Ie=!1,de=Oe({},de,St)):Oe(de,St))}b.state=de}}else h.queue=null}function ql(h,b,D,M){Gc(h,b,D);var Y=h.state!==void 0?h.state:null;h.updater=Yc,h.props=D,h.state=Y;var ie={queue:[],replace:!1};pa(h,ie);var de=b.contextType;if(typeof de=="object"&&de!==null?h.context=Ba(de):h.context=M,h.state===D){var Ie=kn(b)||"Component";zl.has(Ie)||(zl.add(Ie),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Ie))}var Ze=b.getDerivedStateFromProps;typeof Ze=="function"&&(h.state=Vf(h,b,Ze,Y,D)),typeof b.getDerivedStateFromProps!="function"&&typeof h.getSnapshotBeforeUpdate!="function"&&(typeof h.UNSAFE_componentWillMount=="function"||typeof h.componentWillMount=="function")&&(Uf(b,h),Vo(ie,h,D,M))}var Xl={id:1,overflow:""};function Wf(h){var b=h.overflow,D=h.id,M=D&~Va(D);return M.toString(32)+b}function Yu(h,b,D){var M=h.id,Y=h.overflow,ie=Kl(M)-1,de=M&~(1<<ie),Ie=D+1,Ze=Kl(b)+ie;if(Ze>30){var vt=ie-ie%5,St=(1<<vt)-1,Mt=(de&St).toString(32),bn=de>>vt,On=ie-vt,Ti=Kl(b)+On,dc=Ie<<On,lf=dc|bn,hc=Mt+Y;return{id:1<<Ti|lf,overflow:hc}}else{var cu=Ie<<ie,sg=cu|de,Qa=Y;return{id:1<<Ze|sg,overflow:Qa}}}function Kl(h){return 32-zf(h)}function Va(h){return 1<<Kl(h)-1}var zf=Math.clz32?Math.clz32:Ho,Yf=Math.log,Qi=Math.LN2;function Ho(h){var b=h>>>0;return b===0?32:31-(Yf(b)/Qi|0)|0}function Gu(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var Zl=typeof Object.is=="function"?Object.is:Gu,nn=null,Ha=null,ga=null,ln=null,Pi=!1,Ua=!1,Cs=0,Vn=null,Ri=0,Wa=25,eo=!1,za;function hr(){if(nn===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
92
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
93
|
-
2. You might be breaking the Rules of Hooks
|
|
94
|
-
3. You might have more than one copy of React in the same app
|
|
95
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return eo&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),nn}function qu(h,b){if(b===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",za),!1;h.length!==b.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
96
|
-
|
|
97
|
-
Previous: %s
|
|
98
|
-
Incoming: %s`,za,"["+h.join(", ")+"]","["+b.join(", ")+"]");for(var D=0;D<b.length&&D<h.length;D++)if(!Zl(h[D],b[D]))return!1;return!0}function va(){if(Ri>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Wr(){return ln===null?ga===null?(Pi=!1,ga=ln=va()):(Pi=!0,ln=ga):ln.next===null?(Pi=!1,ln=ln.next=va()):(Pi=!0,ln=ln.next),ln}function Xu(h,b){nn=b,Ha=h,eo=!1,Cs=0}function qc(h,b,D,M){for(;Ua;)Ua=!1,Cs=0,Ri+=1,ln=null,D=h(b,M);return Uo(),D}function Ku(){var h=Cs!==0;return h}function Uo(){eo=!1,nn=null,Ha=null,Ua=!1,ga=null,Ri=0,Vn=null,ln=null}function ma(h){return eo&&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()."),Ba(h)}function Zu(h){return za="useContext",hr(),Ba(h)}function Jl(h,b){return typeof b=="function"?b(h):b}function Ql(h){return za="useState",Xc(Jl,h)}function Xc(h,b,D){if(h!==Jl&&(za="useReducer"),nn=hr(),ln=Wr(),Pi){var M=ln.queue,Y=M.dispatch;if(Vn!==null){var ie=Vn.get(M);if(ie!==void 0){Vn.delete(M);var de=ln.memoizedState,Ie=ie;do{var Ze=Ie.action;eo=!0,de=h(de,Ze),eo=!1,Ie=Ie.next}while(Ie!==null);return ln.memoizedState=de,[de,Y]}}return[ln.memoizedState,Y]}else{eo=!0;var vt;h===Jl?vt=typeof b=="function"?b():b:vt=D!==void 0?D(b):b,eo=!1,ln.memoizedState=vt;var St=ln.queue={last:null,dispatch:null},Mt=St.dispatch=Kc.bind(null,nn,St);return[ln.memoizedState,Mt]}}function Ju(h,b){nn=hr(),ln=Wr();var D=b===void 0?null:b;if(ln!==null){var M=ln.memoizedState;if(M!==null&&D!==null){var Y=M[1];if(qu(D,Y))return M[0]}}eo=!0;var ie=h();return eo=!1,ln.memoizedState=[ie,D],ie}function pr(h){nn=hr(),ln=Wr();var b=ln.memoizedState;if(b===null){var D={current:h};return Object.seal(D),ln.memoizedState=D,D}else return b}function Qu(h,b){za="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 Kc(h,b,D){if(Ri>=Wa)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h===nn){Ua=!0;var M={action:D,next:null};Vn===null&&(Vn=new Map);var Y=Vn.get(b);if(Y===void 0)Vn.set(b,M);else{for(var ie=Y;ie.next!==null;)ie=ie.next;ie.next=M}}}function So(h,b){return Ju(function(){return h},b)}function ec(h,b,D){return hr(),b(h._source)}function eu(h,b,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 Ya(h){return hr(),h}function ol(){throw new Error("startTransition cannot be called during server rendering.")}function Cr(){return hr(),[!1,ol]}function al(){var h=Ha,b=Wf(h.treeContext),D=ll;if(D===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var M=Cs++;return Jn(D,b,M)}function sl(){}var Zc={readContext:ma,useContext:Zu,useMemo:Ju,useReducer:Xc,useRef:pr,useState:Ql,useInsertionEffect:sl,useLayoutEffect:Qu,useCallback:So,useImperativeHandle:sl,useEffect:sl,useDebugValue:sl,useDeferredValue:Ya,useTransition:Cr,useId:al,useMutableSource:ec,useSyncExternalStore:eu},ll=null;function Es(h){ll=h}function tc(h){try{var b="",D=h;do{switch(D.tag){case 0:b+=Ks(D.type,null,null);break;case 1:b+=Vu(D.type,null,null);break;case 2:b+=Qs(D.type,null,null);break}D=D.parent}while(D);return b}catch(M){return`
|
|
99
|
-
Error generating stack: `+M.message+`
|
|
100
|
-
`+M.stack}}var Ii=n.ReactCurrentDispatcher,ul=n.ReactDebugCurrentFrame,tu=0,Ga=1,ks=2,nc=3,qa=4,rc=0,ic=1,To=2,Gf=12800;function qf(h){return console.error(h),null}function Os(){}function cl(h,b,D,M,Y,ie,de,Ie,Ze){var vt=[],St=new Set,Mt={destination:null,responseState:b,progressiveChunkSize:M===void 0?Gf:M,status:rc,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:vt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Y===void 0?qf:Y,onAllReady:ie===void 0?Os:ie,onShellReady:de===void 0?Os:de,onShellError:Ie===void 0?Os:Ie,onFatalError:Ze===void 0?Os:Ze},bn=Wo(Mt,0,null,D,!1,!1);bn.parentFlushed=!0;var On=_s(Mt,h,null,bn,St,Bo,el,Xl);return vt.push(On),Mt}function nu(h,b){var D=h.pingedTasks;D.push(b),D.length===1&&s(function(){return fc(h)})}function to(h,b){return{id:Mr,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:b,errorDigest:null}}function _s(h,b,D,M,Y,ie,de,Ie){h.allPendingTasks++,D===null?h.pendingRootTasks++:D.pendingTasks++;var Ze={node:b,ping:function(){return nu(h,Ze)},blockedBoundary:D,blockedSegment:M,abortSet:Y,legacyContext:ie,context:de,treeContext:Ie};return Ze.componentStack=null,Y.add(Ze),Ze}function Wo(h,b,D,M,Y,ie){return{status:tu,id:-1,index:b,parentFlushed:!1,chunks:[],children:[],formatContext:M,boundary:D,lastPushedText:Y,textEmbedded:ie}}var no=null;function Ds(){return no===null||no.componentStack===null?"":tc(no.componentStack)}function Ai(h,b){h.componentStack={tag:0,parent:h.componentStack,type:b}}function Xa(h,b){h.componentStack={tag:1,parent:h.componentStack,type:b}}function ru(h,b){h.componentStack={tag:2,parent:h.componentStack,type:b}}function Mi(h){h.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):h.componentStack=h.componentStack.parent}var zo=null;function oc(h,b){{var D;typeof b=="string"?D=b:b&&typeof b.message=="string"?D=b.message:D=String(b);var M=zo||Ds();zo=null,h.errorMessage=D,h.errorComponentStack=M}}function Ka(h,b){var D=h.onError(b);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 fl(h,b){var D=h.onShellError;D(b);var M=h.onFatalError;M(b),h.destination!==null?(h.status=To,_(h.destination,b)):(h.status=ic,h.fatalError=b)}function iu(h,b,D){Ai(b,"Suspense");var M=b.blockedBoundary,Y=b.blockedSegment,ie=D.fallback,de=D.children,Ie=new Set,Ze=to(h,Ie),vt=Y.chunks.length,St=Wo(h,vt,Ze,Y.formatContext,!1,!1);Y.children.push(St),Y.lastPushedText=!1;var Mt=Wo(h,0,null,Y.formatContext,!1,!1);Mt.parentFlushed=!0,b.blockedBoundary=Ze,b.blockedSegment=Mt;try{if(pl(h,b,de),hs(Mt.chunks,h.responseState,Mt.lastPushedText,Mt.textEmbedded),Mt.status=Ga,vl(Ze,Mt),Ze.pendingTasks===0){Mi(b);return}}catch(On){Mt.status=qa,Ze.forceClientRender=!0,Ze.errorDigest=Ka(h,On),oc(Ze,On)}finally{b.blockedBoundary=M,b.blockedSegment=Y}var bn=_s(h,ie,M,St,Ie,b.legacyContext,b.context,b.treeContext);bn.componentStack=b.componentStack,h.pingedTasks.push(bn),Mi(b)}function Jc(h,b,D,M){Ai(b,D);var Y=b.blockedSegment,ie=ii(Y.chunks,D,M,h.responseState,Y.formatContext);Y.lastPushedText=!1;var de=Y.formatContext;Y.formatContext=gi(de,D,M),pl(h,b,ie),Y.formatContext=de,fr(Y.chunks,D),Y.lastPushedText=!1,Mi(b)}function ac(h){return h.prototype&&h.prototype.isReactComponent}function Gt(h,b,D,M,Y){var ie={};Xu(b,ie);var de=D(M,Y);return qc(D,M,de,Y)}function dl(h,b,D,M,Y){var ie=D.render();D.props!==Y&&(ai||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",kn(M)||"a component"),ai=!0);{var de=M.childContextTypes;if(de!=null){var Ie=b.legacyContext,Ze=$o(D,M,Ie,de);b.legacyContext=Ze,Yr(h,b,ie),b.legacyContext=Ie;return}}Yr(h,b,ie)}function Qc(h,b,D,M){ru(b,D);var Y=Hc(D,b.legacyContext),ie=Hf(D,M,Y);ql(ie,D,M,Y),dl(h,b,ie,D,M),Mi(b)}var Za={},Ps={},sc={},lc={},ai=!1,uc={},hl=!1,ou=!1,au=!1;function ef(h,b,D,M){var Y;if(Y=Hc(D,b.legacyContext),Xa(b,D),D.prototype&&typeof D.prototype.render=="function"){var ie=kn(D)||"Unknown";Za[ie]||(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.",ie,ie),Za[ie]=!0)}var de=Gt(h,b,D,M,Y),Ie=Ku();if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){var Ze=kn(D)||"Unknown";Ps[Ze]||(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.",Ze,Ze,Ze),Ps[Ze]=!0)}if(typeof de=="object"&&de!==null&&typeof de.render=="function"&&de.$$typeof===void 0){{var vt=kn(D)||"Unknown";Ps[vt]||(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.",vt,vt,vt),Ps[vt]=!0)}ql(de,D,M,Y),dl(h,b,de,D,M)}else if(xi(D),Ie){var St=b.treeContext,Mt=1,bn=0;b.treeContext=Yu(St,Mt,bn);try{Yr(h,b,de)}finally{b.treeContext=St}}else Yr(h,b,de);Mi(b)}function xi(h){{if(h&&h.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",h.displayName||h.name||"Component"),h.defaultProps!==void 0){var b=kn(h)||"Unknown";uc[b]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",b),uc[b]=!0)}if(typeof h.getDerivedStateFromProps=="function"){var D=kn(h)||"Unknown";lc[D]||(i("%s: Function components do not support getDerivedStateFromProps.",D),lc[D]=!0)}if(typeof h.contextType=="object"&&h.contextType!==null){var M=kn(h)||"Unknown";sc[M]||(i("%s: Function components do not support contextType.",M),sc[M]=!0)}}}function Yo(h,b){if(h&&h.defaultProps){var D=Oe({},b),M=h.defaultProps;for(var Y in M)D[Y]===void 0&&(D[Y]=M[Y]);return D}return b}function cc(h,b,D,M,Y){Xa(b,D.render);var ie=Gt(h,b,D.render,M,Y),de=Ku();if(de){var Ie=b.treeContext,Ze=1,vt=0;b.treeContext=Yu(Ie,Ze,vt);try{Yr(h,b,ie)}finally{b.treeContext=Ie}}else Yr(h,b,ie);Mi(b)}function tf(h,b,D,M,Y){var ie=D.type,de=Yo(ie,M);su(h,b,ie,de,Y)}function Rs(h,b,D,M){D._context===void 0?D!==D.Consumer&&(au||(au=!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 Y=M.children;typeof Y!="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 ie=Ba(D),de=Y(ie);Yr(h,b,de)}function nf(h,b,D,M){var Y=D._context,ie=M.value,de=M.children,Ie;Ie=b.context,b.context=nl(Y,ie),Yr(h,b,de),b.context=xs(Y),Ie!==b.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function zr(h,b,D,M,Y){Ai(b,"Lazy");var ie=D._payload,de=D._init,Ie=de(ie),Ze=Yo(Ie,M);su(h,b,Ie,Ze,Y),Mi(b)}function su(h,b,D,M,Y){if(typeof D=="function")if(ac(D)){Qc(h,b,D,M);return}else{ef(h,b,D,M);return}if(typeof D=="string"){Jc(h,b,D,M);return}switch(D){case Vr:case qn:case $e:case ze:case fe:{Yr(h,b,M.children);return}case kt:{Ai(b,"SuspenseList"),Yr(h,b,M.children),Mi(b);return}case ar:throw new Error("ReactDOMServer does not yet support scope components.");case It:{iu(h,b,M);return}}if(typeof D=="object"&&D!==null)switch(D.$$typeof){case ut:{cc(h,b,D,M,Y);return}case Yt:{tf(h,b,D,M,Y);return}case ht:{nf(h,b,D,M);return}case pt:{Rs(h,b,D,M);return}case Fn:{zr(h,b,D,M);return}}var ie="";throw(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(ie+=" 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)+"."+ie))}function lu(h,b){typeof Symbol=="function"&&h[Symbol.toStringTag]==="Generator"&&(hl||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."),hl=!0),h.entries===b&&(ou||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ou=!0)}function Yr(h,b,D){try{return Co(h,b,D)}catch(M){throw typeof M=="object"&&M!==null&&typeof M.then=="function"||(zo=zo!==null?zo:Ds()),M}}function Co(h,b,D){if(b.node=D,typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:{var M=D,Y=M.type,ie=M.props,de=M.ref;su(h,b,Y,ie,de);return}case he: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 Fn:{var Ie=D,Ze=Ie._payload,vt=Ie._init,St;try{St=vt(Ze)}catch(cu){throw typeof cu=="object"&&cu!==null&&typeof cu.then=="function"&&Ai(b,"Lazy"),cu}Yr(h,b,St);return}}if(Jr(D)){rf(h,b,D);return}var Mt=En(D);if(Mt){lu(D,Mt);var bn=Mt.call(D);if(bn){var On=bn.next();if(!On.done){var Ti=[];do Ti.push(On.value),On=bn.next();while(!On.done);rf(h,b,Ti);return}return}}var dc=Object.prototype.toString.call(D);throw new Error("Objects are not valid as a React child (found: "+(dc==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":dc)+"). If you meant to render a collection of children, use an array instead.")}if(typeof D=="string"){var lf=b.blockedSegment;lf.lastPushedText=Xs(b.blockedSegment.chunks,D,h.responseState,lf.lastPushedText);return}if(typeof D=="number"){var hc=b.blockedSegment;hc.lastPushedText=Xs(b.blockedSegment.chunks,""+D,h.responseState,hc.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 rf(h,b,D){for(var M=D.length,Y=0;Y<M;Y++){var ie=b.treeContext;b.treeContext=Yu(ie,M,Y);try{pl(h,b,D[Y])}finally{b.treeContext=ie}}}function ya(h,b,D){var M=b.blockedSegment,Y=M.chunks.length,ie=Wo(h,Y,null,M.formatContext,M.lastPushedText,!0);M.children.push(ie),M.lastPushedText=!1;var de=_s(h,b.node,b.blockedBoundary,ie,b.abortSet,b.legacyContext,b.context,b.treeContext);b.componentStack!==null&&(de.componentStack=b.componentStack.parent);var Ie=de.ping;D.then(Ie,Ie)}function pl(h,b,D){var M=b.blockedSegment.formatContext,Y=b.legacyContext,ie=b.context,de=null;de=b.componentStack;try{return Yr(h,b,D)}catch(Ie){if(Uo(),typeof Ie=="object"&&Ie!==null&&typeof Ie.then=="function"){ya(h,b,Ie),b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Ul(ie),b.componentStack=de;return}else throw b.blockedSegment.formatContext=M,b.legacyContext=Y,b.context=ie,Ul(ie),b.componentStack=de,Ie}}function gl(h,b,D,M){var Y=Ka(h,M);if(b===null?fl(h,M):(b.pendingTasks--,b.forceClientRender||(b.forceClientRender=!0,b.errorDigest=Y,oc(b,M),b.parentFlushed&&h.clientRenderedBoundaries.push(b))),h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function uu(h){var b=this,D=h.blockedBoundary,M=h.blockedSegment;M.status=nc,ml(b,D,M)}function of(h,b,D){var M=h.blockedBoundary,Y=h.blockedSegment;if(Y.status=nc,M===null)b.allPendingTasks--,b.status!==To&&(b.status=To,b.destination!==null&&p(b.destination));else{if(M.pendingTasks--,!M.forceClientRender){M.forceClientRender=!0;var ie=D===void 0?new Error("The render was aborted by the server without a reason."):D;M.errorDigest=b.onError(ie);{var de="The server did not finish this Suspense boundary: ";ie&&typeof ie.message=="string"?ie=de+ie.message:ie=de+String(ie);var Ie=no;no=h;try{oc(M,ie)}finally{no=Ie}}M.parentFlushed&&b.clientRenderedBoundaries.push(M)}if(M.fallbackAbortableTasks.forEach(function(vt){return of(vt,b,D)}),M.fallbackAbortableTasks.clear(),b.allPendingTasks--,b.allPendingTasks===0){var Ze=b.onAllReady;Ze()}}}function vl(h,b){if(b.chunks.length===0&&b.children.length===1&&b.children[0].boundary===null){var D=b.children[0];D.id=b.id,D.parentFlushed=!0,D.status===Ga&&vl(h,D)}else{var M=h.completedSegments;M.push(b)}}function ml(h,b,D){if(b===null){if(D.parentFlushed){if(h.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");h.completedRootSegment=D}if(h.pendingRootTasks--,h.pendingRootTasks===0){h.onShellError=Os;var M=h.onShellReady;M()}}else if(b.pendingTasks--,!b.forceClientRender){if(b.pendingTasks===0)D.parentFlushed&&D.status===Ga&&vl(b,D),b.parentFlushed&&h.completedBoundaries.push(b),b.fallbackAbortableTasks.forEach(uu,h),b.fallbackAbortableTasks.clear();else if(D.parentFlushed&&D.status===Ga){vl(b,D);var Y=b.completedSegments;Y.length===1&&b.parentFlushed&&h.partialBoundaries.push(b)}}if(h.allPendingTasks--,h.allPendingTasks===0){var ie=h.onAllReady;ie()}}function yl(h,b){var D=b.blockedSegment;if(D.status===tu){Ul(b.context);var M=null;M=no,no=b;try{Yr(h,b,b.node),hs(D.chunks,h.responseState,D.lastPushedText,D.textEmbedded),b.abortSet.delete(b),D.status=Ga,ml(h,b.blockedBoundary,D)}catch(ie){if(Uo(),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"){var Y=b.ping;ie.then(Y,Y)}else b.abortSet.delete(b),D.status=qa,gl(h,b.blockedBoundary,D,ie)}finally{no=M}}}function fc(h){if(h.status!==To){var b=rl(),D=Ii.current;Ii.current=Zc;var M;M=ul.getCurrentStack,ul.getCurrentStack=Ds;var Y=ll;Es(h.responseState);try{var ie=h.pingedTasks,de;for(de=0;de<ie.length;de++){var Ie=ie[de];yl(h,Ie)}ie.splice(0,de),h.destination!==null&&Ja(h,h.destination)}catch(Ze){Ka(h,Ze),fl(h,Ze)}finally{Es(Y),Ii.current=D,ul.getCurrentStack=M,D===Zc&&Ul(b)}}}function bl(h,b,D){switch(D.parentFlushed=!0,D.status){case tu:{var M=D.id=h.nextSegmentId++;return D.lastPushedText=!1,D.textEmbedded=!1,yn(b,h.responseState,M)}case Ga:{D.status=ks;for(var Y=!0,ie=D.chunks,de=0,Ie=D.children,Ze=0;Ze<Ie.length;Ze++){for(var vt=Ie[Ze];de<vt.index;de++)c(b,ie[de]);Y=Is(h,b,vt)}for(;de<ie.length-1;de++)c(b,ie[de]);return de<ie.length&&(Y=d(b,ie[de])),Y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Is(h,b,D){var M=D.boundary;if(M===null)return bl(h,b,D);if(M.parentFlushed=!0,M.forceClientRender)return ee(b,h.responseState,M.errorDigest,M.errorMessage,M.errorComponentStack),bl(h,b,D),Pe(b,h.responseState);if(M.pendingTasks>0){M.rootSegmentID=h.nextSegmentId++,M.completedSegments.length>0&&h.partialBoundaries.push(M);var Y=M.id=ti(h.responseState);return ue(b,h.responseState,Y),bl(h,b,D),Le(b,h.responseState)}else{if(M.byteSize>h.progressiveChunkSize)return M.rootSegmentID=h.nextSegmentId++,h.completedBoundaries.push(M),ue(b,h.responseState,M.id),bl(h,b,D),Le(b,h.responseState);ps(b,h.responseState);var ie=M.completedSegments;if(ie.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var de=ie[0];return Is(h,b,de),ve(b,h.responseState)}}function af(h,b,D){return qs(b,h.responseState,D.id,D.errorDigest,D.errorMessage,D.errorComponentStack)}function Er(h,b,D){return Ce(b,h.responseState,D.formatContext,D.id),Is(h,b,D),Be(b,D.formatContext)}function Si(h,b,D){for(var M=D.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];sf(h,b,D,ie)}return M.length=0,Gs(b,h.responseState,D.id,D.rootSegmentID)}function Xf(h,b,D){for(var M=D.completedSegments,Y=0;Y<M.length;Y++){var ie=M[Y];if(!sf(h,b,D,ie))return Y++,M.splice(0,Y),!1}return M.splice(0,Y),!0}function sf(h,b,D,M){if(M.status===ks)return!0;var Y=M.id;if(Y===-1){var ie=M.id=D.rootSegmentID;if(ie===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Er(h,b,M)}else return Er(h,b,M),Gn(b,h.responseState,Y)}function Ja(h,b){try{var D=h.completedRootSegment;D!==null&&h.pendingRootTasks===0&&(Is(h,b,D),h.completedRootSegment=null,Na(b,h.responseState));var M=h.clientRenderedBoundaries,Y;for(Y=0;Y<M.length;Y++){var ie=M[Y];if(!af(h,b,ie)){h.destination=null,Y++,M.splice(0,Y);return}}M.splice(0,Y);var de=h.completedBoundaries;for(Y=0;Y<de.length;Y++){var Ie=de[Y];if(!Si(h,b,Ie)){h.destination=null,Y++,de.splice(0,Y);return}}de.splice(0,Y);var Ze=h.partialBoundaries;for(Y=0;Y<Ze.length;Y++){var vt=Ze[Y];if(!Xf(h,b,vt)){h.destination=null,Y++,Ze.splice(0,Y);return}}Ze.splice(0,Y);var St=h.completedBoundaries;for(Y=0;Y<St.length;Y++){var Mt=St[Y];if(!Si(h,b,Mt)){h.destination=null,Y++,St.splice(0,Y);return}}St.splice(0,Y)}finally{h.allPendingTasks===0&&h.pingedTasks.length===0&&h.clientRenderedBoundaries.length===0&&h.completedBoundaries.length===0&&(h.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),p(b))}}function As(h){s(function(){return fc(h)})}function g(h,b){if(h.status===ic){h.status=To,_(b,h.fatalError);return}if(h.status!==To&&h.destination===null){h.destination=b;try{Ja(h,b)}catch(D){Ka(h,D),fl(h,D)}}}function w(h,b){try{var D=h.abortableTasks;D.forEach(function(M){return of(M,h,b)}),D.clear(),h.destination!==null&&Ja(h,h.destination)}catch(M){Ka(h,M),fl(h,M)}}function A(){}function $(h,b,D,M){var Y=!1,ie=null,de="",Ie={push:function(Mt){return Mt!==null&&(de+=Mt),!0},destroy:function(Mt){Y=!0,ie=Mt}},Ze=!1;function vt(){Ze=!0}var St=cl(h,yo(D,b?b.identifierPrefix:void 0),dr(),1/0,A,void 0,vt,void 0,void 0);if(As(St),w(St,M),g(St,Ie),Y)throw ie;if(!Ze)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return de}function K(h,b){return $(h,b,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function se(h,b){return $(h,b,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ye(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function Ae(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Sc.renderToNodeStream=ye,Sc.renderToStaticMarkup=se,Sc.renderToStaticNodeStream=Ae,Sc.renderToString=K,Sc.version=t}()),Sc}var Hh={};/**
|
|
101
|
-
* @license React
|
|
102
|
-
* react-dom-server.browser.development.js
|
|
103
|
-
*
|
|
104
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the MIT license found in the
|
|
107
|
-
* LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/var l1;function E4(){return l1||(l1=1,process.env.NODE_ENV!=="production"&&function(){var e=X,t="18.3.1",n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("warn",g,A)}}function i(g){{for(var w=arguments.length,A=new Array(w>1?w-1:0),$=1;$<w;$++)A[$-1]=arguments[$];o("error",g,A)}}function o(g,w,A){{var $=n.ReactDebugCurrentFrame,K=$.getStackAddendum();K!==""&&(w+="%s",A=A.concat([K]));var se=A.map(function(ye){return String(ye)});se.unshift("Warning: "+w),Function.prototype.apply.call(console[g],console,se)}}function s(g){g()}var l=512,c=null,d=0;function v(g){c=new Uint8Array(l),d=0}function p(g,w){if(w.length!==0){if(w.length>l){d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=new Uint8Array(l),d=0),g.enqueue(w);return}var A=w,$=c.length-d;$<A.length&&($===0?g.enqueue(c):(c.set(A.subarray(0,$),d),g.enqueue(c),A=A.subarray($)),c=new Uint8Array(l),d=0),c.set(A,d),d+=A.length}}function x(g,w){return p(g,w),!0}function T(g){c&&d>0&&(g.enqueue(new Uint8Array(c.buffer,0,d)),c=null,d=0)}function _(g){g.close()}var I=new TextEncoder;function L(g){return I.encode(g)}function R(g){return I.encode(g)}function U(g,w){typeof g.error=="function"?g.error(w):g.close()}function W(g){{var w=typeof Symbol=="function"&&Symbol.toStringTag,A=w&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function te(g){try{return J(g),!1}catch{return!0}}function J(g){return""+g}function pe(g,w){if(te(g))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",w,W(g)),J(g)}function S(g,w){if(te(g))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",w,W(g)),J(g)}function ce(g){if(te(g))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",W(g)),J(g)}var ae=Object.prototype.hasOwnProperty,Ne=0,Ge=1,qe=2,it=3,nt=4,me=5,Se=6,Ve=":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",Qe=Ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",at=new RegExp("^["+Ve+"]["+Qe+"]*$"),Ee={},_e={};function Ye(g){return ae.call(_e,g)?!0:ae.call(Ee,g)?!1:at.test(g)?(_e[g]=!0,!0):(Ee[g]=!0,i("Invalid attribute name: `%s`",g),!1)}function We(g,w,A,$){if(A!==null&&A.type===Ne)return!1;switch(typeof w){case"function":case"symbol":return!0;case"boolean":{if($)return!1;if(A!==null)return!A.acceptsBooleans;var K=g.toLowerCase().slice(0,5);return K!=="data-"&&K!=="aria-"}default:return!1}}function Re(g){return He.hasOwnProperty(g)?He[g]:null}function Fe(g,w,A,$,K,se,ye){this.acceptsBooleans=w===qe||w===it||w===nt,this.attributeName=$,this.attributeNamespace=K,this.mustUseProperty=A,this.propertyName=g,this.type=w,this.sanitizeURL=se,this.removeEmptyString=ye}var He={},lt=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];lt.forEach(function(g){He[g]=new Fe(g,Ne,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var w=g[0],A=g[1];He[w]=new Fe(w,Ge,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){He[g]=new Fe(g,qe,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){He[g]=new Fe(g,qe,!1,g,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(g){He[g]=new Fe(g,it,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){He[g]=new Fe(g,it,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){He[g]=new Fe(g,nt,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){He[g]=new Fe(g,Se,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){He[g]=new Fe(g,me,!1,g.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,yt=function(g){return g[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(g){var w=g.replace(ct,yt);He[w]=new Fe(w,Ge,!1,g,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(g){var w=g.replace(ct,yt);He[w]=new Fe(w,Ge,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var w=g.replace(ct,yt);He[w]=new Fe(w,Ge,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){He[g]=new Fe(g,Ge,!1,g.toLowerCase(),null,!1,!1)});var dt="xlinkHref";He[dt]=new Fe("xlinkHref",Ge,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){He[g]=new Fe(g,Ge,!1,g.toLowerCase(),null,!0,!0)});var Tt={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 ot(g,w){return g+w.charAt(0).toUpperCase()+w.substring(1)}var $t=["Webkit","ms","Moz","O"];Object.keys(Tt).forEach(function(g){$t.forEach(function(w){Tt[ot(w,g)]=Tt[g]})});var Ht={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Xn(g,w){Ht[w.type]||w.onChange||w.onInput||w.readOnly||w.disabled||w.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),w.onChange||w.readOnly||w.disabled||w.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mr(g,w){if(g.indexOf("-")===-1)return typeof w.is=="string";switch(g){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Dn={},$i=new RegExp("^(aria)-["+Qe+"]*$"),_r=new RegExp("^(aria)[A-Z]["+Qe+"]*$");function rr(g,w){{if(ae.call(Dn,w)&&Dn[w])return!0;if(_r.test(w)){var A="aria-"+w.slice(4).toLowerCase(),$=Kn.hasOwnProperty(A)?A:null;if($==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",w),Dn[w]=!0,!0;if(w!==$)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",w,$),Dn[w]=!0,!0}if($i.test(w)){var K=w.toLowerCase(),se=Kn.hasOwnProperty(K)?K:null;if(se==null)return Dn[w]=!0,!1;if(w!==se)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",w,se),Dn[w]=!0,!0}}return!0}function cn(g,w){{var A=[];for(var $ in w){var K=rr(g,$);K||A.push($)}var se=A.map(function(ye){return"`"+ye+"`"}).join(", ");A.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g):A.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",se,g)}}function hn(g,w){mr(g,w)||cn(g,w)}var pn=!1;function mt(g,w){{if(g!=="input"&&g!=="textarea"&&g!=="select")return;w!=null&&w.value===null&&!pn&&(pn=!0,g==="select"&&w.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",g):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",g))}}var In={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"},ui=function(){};{var un={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Qe+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Qe+"]*$");ui=function(g,w,A,$){if(ae.call(un,w)&&un[w])return!0;var K=w.toLowerCase();if(K==="onfocusin"||K==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),un[w]=!0,!0;if($!=null){var se=$.registrationNameDependencies,ye=$.possibleRegistrationNames;if(se.hasOwnProperty(w))return!0;var Ae=ye.hasOwnProperty(K)?ye[K]:null;if(Ae!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",w,Ae),un[w]=!0,!0;if(Vi.test(w))return i("Unknown event handler property `%s`. It will be ignored.",w),un[w]=!0,!0}else if(Vi.test(w))return Hi.test(w)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",w),un[w]=!0,!0;if(Ui.test(w)||Dr.test(w))return!0;if(K==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),un[w]=!0,!0;if(K==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),un[w]=!0,!0;if(K==="is"&&A!==null&&A!==void 0&&typeof A!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof A),un[w]=!0,!0;if(typeof A=="number"&&isNaN(A))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",w),un[w]=!0,!0;var h=Re(w),b=h!==null&&h.type===Ne;if(In.hasOwnProperty(K)){var D=In[K];if(D!==w)return i("Invalid DOM property `%s`. Did you mean `%s`?",w,D),un[w]=!0,!0}else if(!b&&w!==K)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",w,K),un[w]=!0,!0;return typeof A=="boolean"&&We(w,A,h,!1)?(A?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',A,w,w,A,w):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',A,w,w,A,w,w,w),un[w]=!0,!0):b?!0:We(w,A,h,!1)?(un[w]=!0,!1):((A==="false"||A==="true")&&h!==null&&h.type===it&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",A,w,A==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',w,A),un[w]=!0),!0)}}var Wn=function(g,w,A){{var $=[];for(var K in w){var se=ui(g,K,w[K],A);se||$.push(K)}var ye=$.map(function(Ae){return"`"+Ae+"`"}).join(", ");$.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ye,g):$.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",ye,g)}};function Pr(g,w,A){mr(g,w)||Wn(g,w,A)}var yr=function(){};{var Xr=/^(?:webkit|moz|o)[A-Z]/,Kr=/^-ms-/,Po=/-(.)/g,Zn=/;\s*$/,Zr={},ir={},Zt=!1,ci=!1,Wi=function(g){return g.replace(Po,function(w,A){return A.toUpperCase()})},An=function(g){Zr.hasOwnProperty(g)&&Zr[g]||(Zr[g]=!0,i("Unsupported style property %s. Did you mean %s?",g,Wi(g.replace(Kr,"ms-"))))},gn=function(g){Zr.hasOwnProperty(g)&&Zr[g]||(Zr[g]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",g,g.charAt(0).toUpperCase()+g.slice(1)))},fi=function(g,w){ir.hasOwnProperty(w)&&ir[w]||(ir[w]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,g,w.replace(Zn,"")))},di=function(g,w){Zt||(Zt=!0,i("`NaN` is an invalid value for the `%s` css style property.",g))},mn=function(g,w){ci||(ci=!0,i("`Infinity` is an invalid value for the `%s` css style property.",g))};yr=function(g,w){g.indexOf("-")>-1?An(g):Xr.test(g)?gn(g):Zn.test(w)&&fi(g,w),typeof w=="number"&&(isNaN(w)?di(g,w):isFinite(w)||mn(g,w))}}var uo=yr,br=/["'&<>]/;function hi(g){ce(g);var w=""+g,A=br.exec(w);if(!A)return w;var $,K="",se,ye=0;for(se=A.index;se<w.length;se++){switch(w.charCodeAt(se)){case 34:$=""";break;case 38:$="&";break;case 39:$="'";break;case 60:$="<";break;case 62:$=">";break;default:continue}ye!==se&&(K+=w.substring(ye,se)),ye=se+1,K+=$}return ye!==se?K+w.substring(ye,se):K}function fn(g){return typeof g=="boolean"||typeof g=="number"?""+g:hi(g)}var Ei=/([A-Z])/g,Ra=/^ms-/;function Ia(g){return g.replace(Ei,"-$1").toLowerCase().replace(Ra,"-ms-")}var Jr=/^[\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,co=!1;function fo(g){!co&&Jr.test(g)&&(co=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(g)))}var Ro=Array.isArray;function ki(g){return Ro(g)}var pi=R("<script>"),Oi=R("<\/script>"),ho=R('<script src="'),_i=R('<script type="module" src="'),Qr=R('" async=""><\/script>');function wr(g){return ce(g),(""+g).replace(Rr,ei)}var Rr=/(<\/|<)(s)(cript)/gi,ei=function(g,w,A,$){return""+w+(A==="s"?"\\u0073":"\\u0053")+$};function Ir(g,w,A,$,K){var se=g===void 0?"":g,ye=w===void 0?pi:R('<script nonce="'+fn(w)+'">'),Ae=[];if(A!==void 0&&Ae.push(ye,L(wr(A)),Oi),$!==void 0)for(var h=0;h<$.length;h++)Ae.push(ho,L(fn($[h])),Qr);if(K!==void 0)for(var b=0;b<K.length;b++)Ae.push(_i,L(fn(K[b])),Qr);return{bootstrapChunks:Ae,startInlineScript:ye,placeholderPrefix:R(se+"P:"),segmentPrefix:R(se+"S:"),boundaryPrefix:se+"B:",idPrefix:se,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var zn=0,vn=1,Ar=2,xr=3,Mn=4,gi=5,Mr=6,ti=7;function Jn(g,w){return{insertionMode:g,selectedValue:w}}function ni(g){var w=g==="http://www.w3.org/2000/svg"?Ar:g==="http://www.w3.org/1998/Math/MathML"?xr:zn;return Jn(w,null)}function ri(g,w,A){switch(w){case"select":return Jn(vn,A.value!=null?A.value:A.defaultValue);case"svg":return Jn(Ar,null);case"math":return Jn(xr,null);case"foreignObject":return Jn(vn,null);case"table":return Jn(Mn,null);case"thead":case"tbody":case"tfoot":return Jn(gi,null);case"colgroup":return Jn(ti,null);case"tr":return Jn(Mr,null)}return g.insertionMode>=Mn||g.insertionMode===zn?Jn(vn,null):g}var zi=null;function Rn(g){var w=g.nextSuspenseID++;return R(g.boundaryPrefix+w.toString(16))}function Sr(g,w,A){var $=g.idPrefix,K=":"+$+"R"+w;return A>0&&(K+="H"+A.toString(32)),K+":"}function cr(g){return fn(g)}var Io=R("<!-- -->");function Yi(g,w,A,$){return w===""?$:($&&g.push(Io),g.push(L(cr(w))),!0)}function Lr(g,w,A,$){A&&$&&g.push(Io)}var E=new Map;function j(g){var w=E.get(g);if(w!==void 0)return w;var A=R(fn(Ia(g)));return E.set(g,A),A}var q=R(' style="'),re=R(":"),De=R(";");function be(g,w,A){if(typeof A!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var $=!0;for(var K in A)if(ae.call(A,K)){var se=A[K];if(!(se==null||typeof se=="boolean"||se==="")){var ye=void 0,Ae=void 0,h=K.indexOf("--")===0;h?(ye=L(fn(K)),S(se,K),Ae=L(fn((""+se).trim()))):(uo(K,se),ye=j(K),typeof se=="number"?se!==0&&!ae.call(Tt,K)?Ae=L(se+"px"):Ae=L(""+se):(S(se,K),Ae=L(fn((""+se).trim())))),$?($=!1,g.push(q,ye,re,Ae)):g.push(De,ye,re,Ae)}}$||g.push(bt)}var Me=R(" "),tt=R('="'),bt=R('"'),Ct=R('=""');function wt(g,w,A,$){switch(A){case"style":{be(g,w,$);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(A.length>2&&(A[0]==="o"||A[0]==="O")&&(A[1]==="n"||A[1]==="N"))){var K=Re(A);if(K!==null){switch(typeof $){case"function":case"symbol":return;case"boolean":if(!K.acceptsBooleans)return}var se=K.attributeName,ye=L(se);switch(K.type){case it:$&&g.push(Me,ye,Ct);return;case nt:$===!0?g.push(Me,ye,Ct):$===!1||g.push(Me,ye,tt,L(fn($)),bt);return;case me:isNaN($)||g.push(Me,ye,tt,L(fn($)),bt);break;case Se:!isNaN($)&&$>=1&&g.push(Me,ye,tt,L(fn($)),bt);break;default:K.sanitizeURL&&(pe($,se),$=""+$,fo($)),g.push(Me,ye,tt,L(fn($)),bt)}}else if(Ye(A)){switch(typeof $){case"function":case"symbol":return;case"boolean":{var Ae=A.toLowerCase().slice(0,5);if(Ae!=="data-"&&Ae!=="aria-")return}}g.push(Me,L(A),tt,L(fn($)),bt)}}}var Ut=R(">"),Qn=R("/>");function Yn(g,w,A){if(w!=null){if(A!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof w!="object"||!("__html"in w))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var $=w.__html;$!=null&&(ce($),g.push(L(""+$)))}}var Pn=!1,Fr=!1,or=!1,Gi=!1,vi=!1,qi=!1,Nr=!1;function Ao(g,w){{var A=g[w];if(A!=null){var $=ki(A);g.multiple&&!$?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",w):!g.multiple&&$&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",w)}}}function Ys(g,w,A){Xn("select",w),Ao(w,"value"),Ao(w,"defaultValue"),w.value!==void 0&&w.defaultValue!==void 0&&!or&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),or=!0),g.push(fr("select"));var $=null,K=null;for(var se in w)if(ae.call(w,se)){var ye=w[se];if(ye==null)continue;switch(se){case"children":$=ye;break;case"dangerouslySetInnerHTML":K=ye;break;case"defaultValue":case"value":break;default:wt(g,A,se,ye);break}}return g.push(Ut),Yn(g,K,$),$}function Aa(g){var w="";return e.Children.forEach(g,function(A){A!=null&&(w+=A,!vi&&typeof A!="string"&&typeof A!="number"&&(vi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),w}var Ma=R(' selected=""');function La(g,w,A,$){var K=$.selectedValue;g.push(fr("option"));var se=null,ye=null,Ae=null,h=null;for(var b in w)if(ae.call(w,b)){var D=w[b];if(D==null)continue;switch(b){case"children":se=D;break;case"selected":Ae=D,Nr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nr=!0);break;case"dangerouslySetInnerHTML":h=D;break;case"value":ye=D;default:wt(g,A,b,D);break}}if(K!=null){var M;if(ye!==null?(pe(ye,"value"),M=""+ye):(h!==null&&(qi||(qi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),M=Aa(se)),ki(K))for(var Y=0;Y<K.length;Y++){pe(K[Y],"value");var ie=""+K[Y];if(ie===M){g.push(Ma);break}}else pe(K,"select.value"),""+K===M&&g.push(Ma)}else Ae&&g.push(Ma);return g.push(Ut),Yn(g,h,se),se}function Fa(g,w,A){Xn("input",w),w.checked!==void 0&&w.defaultChecked!==void 0&&!Fr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),Fr=!0),w.value!==void 0&&w.defaultValue!==void 0&&!Pn&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",w.type),Pn=!0),g.push(fr("input"));var $=null,K=null,se=null,ye=null;for(var Ae in w)if(ae.call(w,Ae)){var h=w[Ae];if(h==null)continue;switch(Ae){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":ye=h;break;case"defaultValue":K=h;break;case"checked":se=h;break;case"value":$=h;break;default:wt(g,A,Ae,h);break}}return se!==null?wt(g,A,"checked",se):ye!==null&&wt(g,A,"checked",ye),$!==null?wt(g,A,"value",$):K!==null&&wt(g,A,"value",K),g.push(Qn),null}function mi(g,w,A){Xn("textarea",w),w.value!==void 0&&w.defaultValue!==void 0&&!Gi&&(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"),Gi=!0),g.push(fr("textarea"));var $=null,K=null,se=null;for(var ye in w)if(ae.call(w,ye)){var Ae=w[ye];if(Ae==null)continue;switch(ye){case"children":se=Ae;break;case"value":$=Ae;break;case"defaultValue":K=Ae;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:wt(g,A,ye,Ae);break}}if($===null&&K!==null&&($=K),g.push(Ut),se!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),$!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ki(se)){if(se.length>1)throw new Error("<textarea> can only have at most one child.");ce(se[0]),$=""+se[0]}ce(se),$=""+se}return typeof $=="string"&&$[0]===`
|
|
109
|
-
`&&g.push(Di),$!==null&&(pe($,"value"),g.push(L(cr(""+$)))),null}function Mo(g,w,A,$){g.push(fr(A));for(var K in w)if(ae.call(w,K)){var se=w[K];if(se==null)continue;switch(K){case"children":case"dangerouslySetInnerHTML":throw new Error(A+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:wt(g,$,K,se);break}}return g.push(Qn),null}function ra(g,w,A){g.push(fr("menuitem"));for(var $ in w)if(ae.call(w,$)){var K=w[$];if(K==null)continue;switch($){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:wt(g,A,$,K);break}}return g.push(Ut),null}function sn(g,w,A){g.push(fr("title"));var $=null;for(var K in w)if(ae.call(w,K)){var se=w[K];if(se==null)continue;switch(K){case"children":$=se;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:wt(g,A,K,se);break}}g.push(Ut);{var ye=Array.isArray($)&&$.length<2?$[0]||null:$;Array.isArray($)&&$.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):ye!=null&&ye.$$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"):ye!=null&&typeof ye!="string"&&typeof ye!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return $}function Qt(g,w,A,$){g.push(fr(A));var K=null,se=null;for(var ye in w)if(ae.call(w,ye)){var Ae=w[ye];if(Ae==null)continue;switch(ye){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:wt(g,$,ye,Ae);break}}return g.push(Ut),Yn(g,se,K),typeof K=="string"?(g.push(L(cr(K))),null):K}function Vt(g,w,A,$){g.push(fr(A));var K=null,se=null;for(var ye in w)if(ae.call(w,ye)){var Ae=w[ye];if(Ae==null)continue;switch(ye){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;case"style":be(g,$,Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ye(ye)&&typeof Ae!="function"&&typeof Ae!="symbol"&&g.push(Me,L(ye),tt,L(fn(Ae)),bt);break}}return g.push(Ut),Yn(g,se,K),K}var Di=R(`
|
|
110
|
-
`);function ii(g,w,A,$){g.push(fr(A));var K=null,se=null;for(var ye in w)if(ae.call(w,ye)){var Ae=w[ye];if(Ae==null)continue;switch(ye){case"children":K=Ae;break;case"dangerouslySetInnerHTML":se=Ae;break;default:wt(g,$,ye,Ae);break}}if(g.push(Ut),se!=null){if(K!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof se!="object"||!("__html"in se))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=se.__html;h!=null&&(typeof h=="string"&&h.length>0&&h[0]===`
|
|
111
|
-
`?g.push(Di,L(h)):(ce(h),g.push(L(""+h))))}return typeof K=="string"&&K[0]===`
|
|
112
|
-
`&&g.push(Di),K}var Lo=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,yi=new Map;function fr(g){var w=yi.get(g);if(w===void 0){if(!Lo.test(g))throw new Error("Invalid tag: "+g);w=R("<"+g),yi.set(g,w)}return w}var Na=R("<!DOCTYPE html>");function ia(g,w,A,$,K){switch(hn(w,A),mt(w,A),Pr(w,A,null),!A.suppressContentEditableWarning&&A.contentEditable&&A.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),K.insertionMode!==Ar&&K.insertionMode!==xr&&w.indexOf("-")===-1&&typeof A.is!="string"&&w.toLowerCase()!==w&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",w),w){case"select":return Ys(g,A,$);case"option":return La(g,A,$,K);case"textarea":return mi(g,A,$);case"input":return Fa(g,A,$);case"menuitem":return ra(g,A,$);case"title":return sn(g,A,$);case"listing":case"pre":return ii(g,A,w,$);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Mo(g,A,w,$);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 Qt(g,A,w,$);case"html":return K.insertionMode===zn&&g.push(Na),Qt(g,A,w,$);default:return w.indexOf("-")===-1&&typeof A.is!="string"?Qt(g,A,w,$):Vt(g,A,w,$)}}var us=R("</"),yn=R(">");function Fo(g,w,A){switch(w){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:g.push(us,L(w),yn)}}function bi(g,w){for(var A=w.bootstrapChunks,$=0;$<A.length-1;$++)p(g,A[$]);return $<A.length?x(g,A[$]):!0}var cs=R('<template id="'),po=R('"></template>');function er(g,w,A){p(g,cs),p(g,w.placeholderPrefix);var $=L(A.toString(16));return p(g,$),x(g,po)}var f=R("<!--$-->"),m=R('<!--$?--><template id="'),C=R('"></template>'),O=R("<!--$!-->"),N=R("<!--/$-->"),B=R("<template"),H=R('"'),ue=R(' data-dgst="'),oe=R(' data-msg="'),we=R(' data-stck="'),Le=R("></template>");function je(g,w){return x(g,f)}function ke(g,w,A){if(p(g,m),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),x(g,C)}function Xe(g,w,A,$,K){var se;return se=x(g,O),p(g,B),A&&(p(g,ue),p(g,L(fn(A))),p(g,H)),$&&(p(g,oe),p(g,L(fn($))),p(g,H)),K&&(p(g,we),p(g,L(fn(K))),p(g,H)),se=x(g,Le),se}function ft(g,w){return x(g,N)}function Dt(g,w){return x(g,N)}function Rt(g,w){return x(g,N)}var Ln=R('<div hidden id="'),dn=R('">'),jr=R("</div>"),Br=R('<svg aria-hidden="true" style="display:none" id="'),Wt=R('">'),$r=R("</svg>"),zt=R('<math aria-hidden="true" style="display:none" id="'),on=R('">'),go=R("</math>"),vo=R('<table hidden id="'),Tr=R('">'),k=R("</table>"),F=R('<table hidden><tbody id="'),z=R('">'),ne=R("</tbody></table>"),Te=R('<table hidden><tr id="'),Ce=R('">'),Be=R("</tr></table>"),et=R('<table hidden><colgroup id="'),xt=R('">'),Nt=R("</colgroup></table>");function _t(g,w,A,$){switch(A.insertionMode){case zn:case vn:return p(g,Ln),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,dn);case Ar:return p(g,Br),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Wt);case xr:return p(g,zt),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,on);case Mn:return p(g,vo),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Tr);case gi:return p(g,F),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,z);case Mr:return p(g,Te),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,Ce);case ti:return p(g,et),p(g,w.segmentPrefix),p(g,L($.toString(16))),x(g,xt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Et(g,w){switch(w.insertionMode){case zn:case vn:return x(g,jr);case Ar:return x(g,$r);case xr:return x(g,go);case Mn:return x(g,k);case gi:return x(g,ne);case Mr:return x(g,Be);case ti:return x(g,Nt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var $n="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Cn='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Gn='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',oa=R($n+';$RS("'),fs=R('$RS("'),aa=R('","'),oi=R('")<\/script>');function Gs(g,w,A){p(g,w.startInlineScript),w.sentCompleteSegmentFunction?p(g,fs):(w.sentCompleteSegmentFunction=!0,p(g,oa)),p(g,w.segmentPrefix);var $=L(A.toString(16));return p(g,$),p(g,aa),p(g,w.placeholderPrefix),p(g,$),x(g,oi)}var mo=R(Cn+';$RC("'),ds=R('$RC("'),sa=R('","'),wi=R('")<\/script>');function Xi(g,w,A,$){if(p(g,w.startInlineScript),w.sentCompleteBoundaryFunction?p(g,ds):(w.sentCompleteBoundaryFunction=!0,p(g,mo)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var K=L($.toString(16));return p(g,A),p(g,sa),p(g,w.segmentPrefix),p(g,K),x(g,wi)}var qs=R(Gn+';$RX("'),Nu=R('$RX("'),la=R('"'),yo=R(")<\/script>"),dr=R(",");function Xs(g,w,A,$,K,se){if(p(g,w.startInlineScript),w.sentClientRenderFunction?p(g,Nu):(w.sentClientRenderFunction=!0,p(g,qs)),A===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return p(g,A),p(g,la),($||K||se)&&(p(g,dr),p(g,L(ps($||"")))),(K||se)&&(p(g,dr),p(g,L(ps(K||"")))),se&&(p(g,dr),p(g,L(ps(se)))),x(g,yo)}var hs=/[<\u2028\u2029]/g;function ps(g){var w=JSON.stringify(g);return w.replace(hs,function(A){switch(A){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ee=Object.assign,ve=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),$e=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),kt=Symbol.for("react.scope"),Yt=Symbol.for("react.debug_trace_mode"),Fn=Symbol.for("react.legacy_hidden"),ar=Symbol.for("react.default_value"),qn=Symbol.iterator,Vr="@@iterator";function Ki(g){if(g===null||typeof g!="object")return null;var w=qn&&g[qn]||g[Vr];return typeof w=="function"?w:null}function At(g,w,A){var $=g.displayName;if($)return $;var K=w.displayName||w.name||"";return K!==""?A+"("+K+")":A}function Vc(g){return g.displayName||"Context"}function En(g){if(g==null)return null;if(typeof g.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case Oe:return"Fragment";case Pe:return"Portal";case he:return"Profiler";case Q:return"StrictMode";case ht:return"Suspense";case pt:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case $e:var w=g;return Vc(w)+".Consumer";case fe:var A=g;return Vc(A._context)+".Provider";case ze:return At(g,g.render,"ForwardRef");case ut:var $=g.displayName||null;return $!==null?$:En(g.type)||"Memo";case It:{var K=g,se=K._payload,ye=K._init;try{return En(ye(se))}catch{return null}}}return null}var ua=0,ju,kn,gs,vs,bo,ms,$l;function ys(){}ys.__reactDisabledLog=!0;function Bu(){{if(ua===0){ju=console.log,kn=console.info,gs=console.warn,vs=console.error,bo=console.group,ms=console.groupCollapsed,$l=console.groupEnd;var g={configurable:!0,enumerable:!0,value:ys,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}ua++}}function $u(){{if(ua--,ua===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},g,{value:ju}),info:ee({},g,{value:kn}),warn:ee({},g,{value:gs}),error:ee({},g,{value:vs}),group:ee({},g,{value:bo}),groupCollapsed:ee({},g,{value:ms}),groupEnd:ee({},g,{value:$l})})}ua<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ja=n.ReactCurrentDispatcher,Vl;function No(g,w,A){{if(Vl===void 0)try{throw Error()}catch(K){var $=K.stack.trim().match(/\n( *(at )?)/);Vl=$&&$[1]||""}return`
|
|
113
|
-
`+Vl+g}}var Zi=!1,jo;{var Ks=typeof WeakMap=="function"?WeakMap:Map;jo=new Ks}function Zs(g,w){if(!g||Zi)return"";{var A=jo.get(g);if(A!==void 0)return A}var $;Zi=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=ja.current,ja.current=null,Bu();try{if(w){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(de){$=de}Reflect.construct(g,[],ye)}else{try{ye.call()}catch(de){$=de}g.call(ye.prototype)}}else{try{throw Error()}catch(de){$=de}g()}}catch(de){if(de&&$&&typeof de.stack=="string"){for(var Ae=de.stack.split(`
|
|
114
|
-
`),h=$.stack.split(`
|
|
115
|
-
`),b=Ae.length-1,D=h.length-1;b>=1&&D>=0&&Ae[b]!==h[D];)D--;for(;b>=1&&D>=0;b--,D--)if(Ae[b]!==h[D]){if(b!==1||D!==1)do if(b--,D--,D<0||Ae[b]!==h[D]){var M=`
|
|
116
|
-
`+Ae[b].replace(" at new "," at ");return g.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",g.displayName)),typeof g=="function"&&jo.set(g,M),M}while(b>=1&&D>=0);break}}}finally{Zi=!1,ja.current=se,$u(),Error.prepareStackTrace=K}var Y=g?g.displayName||g.name:"",ie=Y?No(Y):"";return typeof g=="function"&&jo.set(g,ie),ie}function Hl(g,w,A){return Zs(g,!0)}function Js(g,w,A){return Zs(g,!1)}function bs(g){var w=g.prototype;return!!(w&&w.isReactComponent)}function Qs(g,w,A){if(g==null)return"";if(typeof g=="function")return Zs(g,bs(g));if(typeof g=="string")return No(g);switch(g){case ht:return No("Suspense");case pt:return No("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case ze:return Js(g.render);case ut:return Qs(g.type,w,A);case It:{var $=g,K=$._payload,se=$._init;try{return Qs(se(K),w,A)}catch{}}}return""}var Vu={},Hu=n.ReactDebugCurrentFrame;function ws(g){if(g){var w=g._owner,A=Qs(g.type,g._source,w?w.type:null);Hu.setExtraStackFrame(A)}else Hu.setExtraStackFrame(null)}function Uu(g,w,A,$,K){{var se=Function.call.bind(ae);for(var ye in g)if(se(g,ye)){var Ae=void 0;try{if(typeof g[ye]!="function"){var h=Error(($||"React class")+": "+A+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}Ae=g[ye](w,ye,$,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){Ae=b}Ae&&!(Ae instanceof Error)&&(ws(K),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",A,ye,typeof Ae),ws(null)),Ae instanceof Error&&!(Ae.message in Vu)&&(Vu[Ae.message]=!0,ws(K),i("Failed %s type: %s",A,Ae.message),ws(null))}}}var Nn;Nn={};var jn={};Object.freeze(jn);function Wu(g,w){{var A=g.contextTypes;if(!A)return jn;var $={};for(var K in A)$[K]=w[K];{var se=En(g)||"Unknown";Uu(A,$,"context",se)}return $}}function zu(g,w,A,$){{if(typeof g.getChildContext!="function"){{var K=En(w)||"Unknown";Nn[K]||(Nn[K]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",K,K))}return A}var se=g.getChildContext();for(var ye in se)if(!(ye in $))throw new Error((En(w)||"Unknown")+'.getChildContext(): key "'+ye+'" is not defined in childContextTypes.');{var Ae=En(w)||"Unknown";Uu($,se,"child context",Ae)}return ee({},A,se)}}var Bo;Bo={};var Hc=null,$o=null;function Ji(g){g.context._currentValue=g.parentValue}function el(g){g.context._currentValue=g.value}function Hr(g,w){if(g!==w){Ji(g);var A=g.parent,$=w.parent;if(A===null){if($!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if($===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Hr(A,$)}el(w)}}function ca(g){Ji(g);var w=g.parent;w!==null&&ca(w)}function fa(g){var w=g.parent;w!==null&&fa(w),el(g)}function da(g,w){Ji(g);var A=g.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");A.depth===w.depth?Hr(A,w):da(A,w)}function ha(g,w){var A=w.parent;if(A===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");g.depth===A.depth?Hr(g,A):ha(g,A),el(w)}function tl(g){var w=$o,A=g;w!==A&&(w===null?fa(A):A===null?ca(w):w.depth===A.depth?Hr(w,A):w.depth>A.depth?da(w,A):ha(w,A),$o=A)}function Uc(g,w){var A;A=g._currentValue,g._currentValue=w,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Bo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Bo;var $=$o,K={parent:$,depth:$===null?0:$.depth+1,context:g,parentValue:A,value:w};return $o=K,K}function Wc(g){var w=$o;if(w===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");w.context!==g&&i("The parent context is not the expected context. This is probably a bug in React.");{var A=w.parentValue;A===ar?w.context._currentValue=w.context._defaultValue:w.context._currentValue=A,g._currentRenderer!==void 0&&g._currentRenderer!==null&&g._currentRenderer!==Bo&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),g._currentRenderer=Bo}return $o=w.parent}function Ul(){return $o}function nl(g){var w=g._currentValue;return w}function xs(g){return g._reactInternals}function rl(g,w){g._reactInternals=w}var Ba={},G={},pa,$a,Ur,qt,Wl,Ss,il,wo,Ts;{pa=new Set,$a=new Set,Ur=new Set,il=new Set,qt=new Set,wo=new Set,Ts=new Set;var zl=new Set;Ss=function(g,w){if(!(g===null||typeof g=="function")){var A=w+"_"+g;zl.has(A)||(zl.add(A),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",w,g))}},Wl=function(g,w){if(w===void 0){var A=En(g)||"Component";qt.has(A)||(qt.add(A),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",A))}}}function Yl(g,w){{var A=g.constructor,$=A&&En(A)||"ReactClass",K=$+"."+w;if(Ba[K])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
117
|
-
|
|
118
|
-
Please check the code for the %s component.`,w,w,$),Ba[K]=!0}}var Gl={isMounted:function(g){return!1},enqueueSetState:function(g,w,A){var $=xs(g);$.queue===null?Yl(g,"setState"):($.queue.push(w),A!=null&&Ss(A,"setState"))},enqueueReplaceState:function(g,w,A){var $=xs(g);$.replace=!0,$.queue=[w],A!=null&&Ss(A,"setState")},enqueueForceUpdate:function(g,w){var A=xs(g);A.queue===null?Yl(g,"forceUpdate"):w!=null&&Ss(w,"setState")}};function zc(g,w,A,$,K){var se=A(K,$);Wl(w,se);var ye=se==null?$:ee({},$,se);return ye}function xo(g,w,A){var $=jn,K=g.contextType;if("contextType"in g){var se=K===null||K!==void 0&&K.$$typeof===$e&&K._context===void 0;if(!se&&!Ts.has(g)){Ts.add(g);var ye="";K===void 0?ye=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof K!="object"?ye=" However, it is set to a "+typeof K+".":K.$$typeof===fe?ye=" Did you accidentally pass the Context.Provider instead?":K._context!==void 0?ye=" Did you accidentally pass the Context.Consumer instead?":ye=" However, it is set to an object with keys {"+Object.keys(K).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",En(g)||"Component",ye)}}typeof K=="object"&&K!==null?$=nl(K):$=A;var Ae=new g(w,$);{if(typeof g.getDerivedStateFromProps=="function"&&(Ae.state===null||Ae.state===void 0)){var h=En(g)||"Component";pa.has(h)||(pa.add(h),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,Ae.state===null?"null":"undefined",h))}if(typeof g.getDerivedStateFromProps=="function"||typeof Ae.getSnapshotBeforeUpdate=="function"){var b=null,D=null,M=null;if(typeof Ae.componentWillMount=="function"&&Ae.componentWillMount.__suppressDeprecationWarning!==!0?b="componentWillMount":typeof Ae.UNSAFE_componentWillMount=="function"&&(b="UNSAFE_componentWillMount"),typeof Ae.componentWillReceiveProps=="function"&&Ae.componentWillReceiveProps.__suppressDeprecationWarning!==!0?D="componentWillReceiveProps":typeof Ae.UNSAFE_componentWillReceiveProps=="function"&&(D="UNSAFE_componentWillReceiveProps"),typeof Ae.componentWillUpdate=="function"&&Ae.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof Ae.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),b!==null||D!==null||M!==null){var Y=En(g)||"Component",ie=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ur.has(Y)||(Ur.add(Y),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
119
|
-
|
|
120
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
121
|
-
|
|
122
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
123
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,Y,ie,b!==null?`
|
|
124
|
-
`+b:"",D!==null?`
|
|
125
|
-
`+D:"",M!==null?`
|
|
126
|
-
`+M:""))}}}return Ae}function Yc(g,w,A){{var $=En(w)||"Component",K=g.render;K||(w.prototype&&typeof w.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",$):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",$)),g.getInitialState&&!g.getInitialState.isReactClassApproved&&!g.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",$),g.getDefaultProps&&!g.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",$),g.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",$),g.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",$),g.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",$),w.contextType&&w.contextTypes&&!wo.has(w)&&(wo.add(w),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",$)),typeof g.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",$),w.prototype&&w.prototype.isPureReactComponent&&typeof g.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",En(w)||"A pure component"),typeof g.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",$),typeof g.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",$),typeof g.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",$),typeof g.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",$);var se=g.props!==A;g.props!==void 0&&se&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",$,$),g.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",$,$),typeof g.getSnapshotBeforeUpdate=="function"&&typeof g.componentDidUpdate!="function"&&!$a.has(w)&&($a.add(w),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",En(w))),typeof g.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof g.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",$),typeof w.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",$);var ye=g.state;ye&&(typeof ye!="object"||ki(ye))&&i("%s.state: must be set to an object or null",$),typeof g.getChildContext=="function"&&typeof w.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",$)}}function Vf(g,w){var A=w.state;if(typeof w.componentWillMount=="function"){if(w.componentWillMount.__suppressDeprecationWarning!==!0){var $=En(g)||"Unknown";G[$]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
127
|
-
|
|
128
|
-
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
129
|
-
|
|
130
|
-
Please update the following components: %s`,$),G[$]=!0)}w.componentWillMount()}typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),A!==w.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",En(g)||"Component"),Gl.enqueueReplaceState(w,w.state,null))}function Hf(g,w,A,$){if(g.queue!==null&&g.queue.length>0){var K=g.queue,se=g.replace;if(g.queue=null,g.replace=!1,se&&K.length===1)w.state=K[0];else{for(var ye=se?K[0]:w.state,Ae=!0,h=se?1:0;h<K.length;h++){var b=K[h],D=typeof b=="function"?b.call(w,ye,A,$):b;D!=null&&(Ae?(Ae=!1,ye=ee({},ye,D)):ee(ye,D))}w.state=ye}}else g.queue=null}function Gc(g,w,A,$){Yc(g,w,A);var K=g.state!==void 0?g.state:null;g.updater=Gl,g.props=A,g.state=K;var se={queue:[],replace:!1};rl(g,se);var ye=w.contextType;if(typeof ye=="object"&&ye!==null?g.context=nl(ye):g.context=$,g.state===A){var Ae=En(w)||"Component";il.has(Ae)||(il.add(Ae),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Ae))}var h=w.getDerivedStateFromProps;typeof h=="function"&&(g.state=zc(g,w,h,K,A)),typeof w.getDerivedStateFromProps!="function"&&typeof g.getSnapshotBeforeUpdate!="function"&&(typeof g.UNSAFE_componentWillMount=="function"||typeof g.componentWillMount=="function")&&(Vf(w,g),Hf(se,g,A,$))}var Uf={id:1,overflow:""};function Vo(g){var w=g.overflow,A=g.id,$=A&~Wf(A);return $.toString(32)+w}function ql(g,w,A){var $=g.id,K=g.overflow,se=Xl($)-1,ye=$&~(1<<se),Ae=A+1,h=Xl(w)+se;if(h>30){var b=se-se%5,D=(1<<b)-1,M=(ye&D).toString(32),Y=ye>>b,ie=se-b,de=Xl(w)+ie,Ie=Ae<<ie,Ze=Ie|Y,vt=M+K;return{id:1<<de|Ze,overflow:vt}}else{var St=Ae<<se,Mt=St|ye,bn=K;return{id:1<<h|Mt,overflow:bn}}}function Xl(g){return 32-Yu(g)}function Wf(g){return 1<<Xl(g)-1}var Yu=Math.clz32?Math.clz32:zf,Kl=Math.log,Va=Math.LN2;function zf(g){var w=g>>>0;return w===0?32:31-(Kl(w)/Va|0)|0}function Yf(g,w){return g===w&&(g!==0||1/g===1/w)||g!==g&&w!==w}var Qi=typeof Object.is=="function"?Object.is:Yf,Ho=null,Gu=null,Zl=null,nn=null,Ha=!1,ga=!1,ln=0,Pi=null,Ua=0,Cs=25,Vn=!1,Ri;function Wa(){if(Ho===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
131
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
132
|
-
2. You might be breaking the Rules of Hooks
|
|
133
|
-
3. You might have more than one copy of React in the same app
|
|
134
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Vn&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Ho}function eo(g,w){if(w===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ri),!1;g.length!==w.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
135
|
-
|
|
136
|
-
Previous: %s
|
|
137
|
-
Incoming: %s`,Ri,"["+g.join(", ")+"]","["+w.join(", ")+"]");for(var A=0;A<w.length&&A<g.length;A++)if(!Qi(g[A],w[A]))return!1;return!0}function za(){if(Ua>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function hr(){return nn===null?Zl===null?(Ha=!1,Zl=nn=za()):(Ha=!0,nn=Zl):nn.next===null?(Ha=!1,nn=nn.next=za()):(Ha=!0,nn=nn.next),nn}function qu(g,w){Ho=w,Gu=g,Vn=!1,ln=0}function va(g,w,A,$){for(;ga;)ga=!1,ln=0,Ua+=1,nn=null,A=g(w,$);return Xu(),A}function Wr(){var g=ln!==0;return g}function Xu(){Vn=!1,Ho=null,Gu=null,ga=!1,Zl=null,Ua=0,Pi=null,nn=null}function qc(g){return Vn&&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()."),nl(g)}function Ku(g){return Ri="useContext",Wa(),nl(g)}function Uo(g,w){return typeof w=="function"?w(g):w}function ma(g){return Ri="useState",Zu(Uo,g)}function Zu(g,w,A){if(g!==Uo&&(Ri="useReducer"),Ho=Wa(),nn=hr(),Ha){var $=nn.queue,K=$.dispatch;if(Pi!==null){var se=Pi.get($);if(se!==void 0){Pi.delete($);var ye=nn.memoizedState,Ae=se;do{var h=Ae.action;Vn=!0,ye=g(ye,h),Vn=!1,Ae=Ae.next}while(Ae!==null);return nn.memoizedState=ye,[ye,K]}}return[nn.memoizedState,K]}else{Vn=!0;var b;g===Uo?b=typeof w=="function"?w():w:b=A!==void 0?A(w):w,Vn=!1,nn.memoizedState=b;var D=nn.queue={last:null,dispatch:null},M=D.dispatch=Ju.bind(null,Ho,D);return[nn.memoizedState,M]}}function Jl(g,w){Ho=Wa(),nn=hr();var A=w===void 0?null:w;if(nn!==null){var $=nn.memoizedState;if($!==null&&A!==null){var K=$[1];if(eo(A,K))return $[0]}}Vn=!0;var se=g();return Vn=!1,nn.memoizedState=[se,A],se}function Ql(g){Ho=Wa(),nn=hr();var w=nn.memoizedState;if(w===null){var A={current:g};return Object.seal(A),nn.memoizedState=A,A}else return w}function Xc(g,w){Ri="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 Ju(g,w,A){if(Ua>=Cs)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(g===Ho){ga=!0;var $={action:A,next:null};Pi===null&&(Pi=new Map);var K=Pi.get(w);if(K===void 0)Pi.set(w,$);else{for(var se=K;se.next!==null;)se=se.next;se.next=$}}}function pr(g,w){return Jl(function(){return g},w)}function Qu(g,w,A){return Wa(),w(g._source)}function Kc(g,w,A){if(A===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return A()}function So(g){return Wa(),g}function ec(){throw new Error("startTransition cannot be called during server rendering.")}function eu(){return Wa(),[!1,ec]}function Ya(){var g=Gu,w=Vo(g.treeContext),A=al;if(A===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var $=ln++;return Sr(A,w,$)}function ol(){}var Cr={readContext:qc,useContext:Ku,useMemo:Jl,useReducer:Zu,useRef:Ql,useState:ma,useInsertionEffect:ol,useLayoutEffect:Xc,useCallback:pr,useImperativeHandle:ol,useEffect:ol,useDebugValue:ol,useDeferredValue:So,useTransition:eu,useId:Ya,useMutableSource:Qu,useSyncExternalStore:Kc},al=null;function sl(g){al=g}function Zc(g){try{var w="",A=g;do{switch(A.tag){case 0:w+=No(A.type,null,null);break;case 1:w+=Js(A.type,null,null);break;case 2:w+=Hl(A.type,null,null);break}A=A.parent}while(A);return w}catch($){return`
|
|
138
|
-
Error generating stack: `+$.message+`
|
|
139
|
-
`+$.stack}}var ll=n.ReactCurrentDispatcher,Es=n.ReactDebugCurrentFrame,tc=0,Ii=1,ul=2,tu=3,Ga=4,ks=0,nc=1,qa=2,rc=12800;function ic(g){return console.error(g),null}function To(){}function Gf(g,w,A,$,K,se,ye,Ae,h){var b=[],D=new Set,M={destination:null,responseState:w,progressiveChunkSize:$===void 0?rc:$,status:ks,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:D,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:K===void 0?ic:K,onAllReady:se===void 0?To:se,onShellReady:ye===void 0?To:ye,onShellError:Ae===void 0?To:Ae,onFatalError:h===void 0?To:h},Y=nu(M,0,null,A,!1,!1);Y.parentFlushed=!0;var ie=cl(M,g,null,Y,D,jn,Hc,Uf);return b.push(ie),M}function qf(g,w){var A=g.pingedTasks;A.push(w),A.length===1&&s(function(){return vl(g)})}function Os(g,w){return{id:zi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:w,errorDigest:null}}function cl(g,w,A,$,K,se,ye,Ae){g.allPendingTasks++,A===null?g.pendingRootTasks++:A.pendingTasks++;var h={node:w,ping:function(){return qf(g,h)},blockedBoundary:A,blockedSegment:$,abortSet:K,legacyContext:se,context:ye,treeContext:Ae};return h.componentStack=null,K.add(h),h}function nu(g,w,A,$,K,se){return{status:tc,id:-1,index:w,parentFlushed:!1,chunks:[],children:[],formatContext:$,boundary:A,lastPushedText:K,textEmbedded:se}}var to=null;function _s(){return to===null||to.componentStack===null?"":Zc(to.componentStack)}function Wo(g,w){g.componentStack={tag:0,parent:g.componentStack,type:w}}function no(g,w){g.componentStack={tag:1,parent:g.componentStack,type:w}}function Ds(g,w){g.componentStack={tag:2,parent:g.componentStack,type:w}}function Ai(g){g.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):g.componentStack=g.componentStack.parent}var Xa=null;function ru(g,w){{var A;typeof w=="string"?A=w:w&&typeof w.message=="string"?A=w.message:A=String(w);var $=Xa||_s();Xa=null,g.errorMessage=A,g.errorComponentStack=$}}function Mi(g,w){var A=g.onError(w);if(A!=null&&typeof A!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof A+'" instead');return A}function zo(g,w){var A=g.onShellError;A(w);var $=g.onFatalError;$(w),g.destination!==null?(g.status=qa,U(g.destination,w)):(g.status=nc,g.fatalError=w)}function oc(g,w,A){Wo(w,"Suspense");var $=w.blockedBoundary,K=w.blockedSegment,se=A.fallback,ye=A.children,Ae=new Set,h=Os(g,Ae),b=K.chunks.length,D=nu(g,b,h,K.formatContext,!1,!1);K.children.push(D),K.lastPushedText=!1;var M=nu(g,0,null,K.formatContext,!1,!1);M.parentFlushed=!0,w.blockedBoundary=h,w.blockedSegment=M;try{if(Co(g,w,ye),Lr(M.chunks,g.responseState,M.lastPushedText,M.textEmbedded),M.status=Ii,gl(h,M),h.pendingTasks===0){Ai(w);return}}catch(ie){M.status=Ga,h.forceClientRender=!0,h.errorDigest=Mi(g,ie),ru(h,ie)}finally{w.blockedBoundary=$,w.blockedSegment=K}var Y=cl(g,se,$,D,Ae,w.legacyContext,w.context,w.treeContext);Y.componentStack=w.componentStack,g.pingedTasks.push(Y),Ai(w)}function Ka(g,w,A,$){Wo(w,A);var K=w.blockedSegment,se=ia(K.chunks,A,$,g.responseState,K.formatContext);K.lastPushedText=!1;var ye=K.formatContext;K.formatContext=ri(ye,A,$),Co(g,w,se),K.formatContext=ye,Fo(K.chunks,A),K.lastPushedText=!1,Ai(w)}function fl(g){return g.prototype&&g.prototype.isReactComponent}function iu(g,w,A,$,K){var se={};qu(w,se);var ye=A($,K);return va(A,$,ye,K)}function Jc(g,w,A,$,K){var se=A.render();A.props!==K&&(Ps||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",En($)||"a component"),Ps=!0);{var ye=$.childContextTypes;if(ye!=null){var Ae=w.legacyContext,h=zu(A,$,Ae,ye);w.legacyContext=h,zr(g,w,se),w.legacyContext=Ae;return}}zr(g,w,se)}function ac(g,w,A,$){Ds(w,A);var K=Wu(A,w.legacyContext),se=xo(A,$,K);Gc(se,A,$,K),Jc(g,w,se,A,$),Ai(w)}var Gt={},dl={},Qc={},Za={},Ps=!1,sc={},lc=!1,ai=!1,uc=!1;function hl(g,w,A,$){var K;if(K=Wu(A,w.legacyContext),no(w,A),A.prototype&&typeof A.prototype.render=="function"){var se=En(A)||"Unknown";Gt[se]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",se,se),Gt[se]=!0)}var ye=iu(g,w,A,$,K),Ae=Wr();if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0){var h=En(A)||"Unknown";dl[h]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",h,h,h),dl[h]=!0)}if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0){{var b=En(A)||"Unknown";dl[b]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",b,b,b),dl[b]=!0)}Gc(ye,A,$,K),Jc(g,w,ye,A,$)}else if(ou(A),Ae){var D=w.treeContext,M=1,Y=0;w.treeContext=ql(D,M,Y);try{zr(g,w,ye)}finally{w.treeContext=D}}else zr(g,w,ye);Ai(w)}function ou(g){{if(g&&g.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",g.displayName||g.name||"Component"),g.defaultProps!==void 0){var w=En(g)||"Unknown";sc[w]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",w),sc[w]=!0)}if(typeof g.getDerivedStateFromProps=="function"){var A=En(g)||"Unknown";Za[A]||(i("%s: Function components do not support getDerivedStateFromProps.",A),Za[A]=!0)}if(typeof g.contextType=="object"&&g.contextType!==null){var $=En(g)||"Unknown";Qc[$]||(i("%s: Function components do not support contextType.",$),Qc[$]=!0)}}}function au(g,w){if(g&&g.defaultProps){var A=ee({},w),$=g.defaultProps;for(var K in $)A[K]===void 0&&(A[K]=$[K]);return A}return w}function ef(g,w,A,$,K){no(w,A.render);var se=iu(g,w,A.render,$,K),ye=Wr();if(ye){var Ae=w.treeContext,h=1,b=0;w.treeContext=ql(Ae,h,b);try{zr(g,w,se)}finally{w.treeContext=Ae}}else zr(g,w,se);Ai(w)}function xi(g,w,A,$,K){var se=A.type,ye=au(se,$);Rs(g,w,se,ye,K)}function Yo(g,w,A,$){A._context===void 0?A!==A.Consumer&&(uc||(uc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):A=A._context;var K=$.children;typeof K!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var se=nl(A),ye=K(se);zr(g,w,ye)}function cc(g,w,A,$){var K=A._context,se=$.value,ye=$.children,Ae;Ae=w.context,w.context=Uc(K,se),zr(g,w,ye),w.context=Wc(K),Ae!==w.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function tf(g,w,A,$,K){Wo(w,"Lazy");var se=A._payload,ye=A._init,Ae=ye(se),h=au(Ae,$);Rs(g,w,Ae,h,K),Ai(w)}function Rs(g,w,A,$,K){if(typeof A=="function")if(fl(A)){ac(g,w,A,$);return}else{hl(g,w,A,$);return}if(typeof A=="string"){Ka(g,w,A,$);return}switch(A){case Fn:case Yt:case Q:case he:case Oe:{zr(g,w,$.children);return}case pt:{Wo(w,"SuspenseList"),zr(g,w,$.children),Ai(w);return}case kt:throw new Error("ReactDOMServer does not yet support scope components.");case ht:{oc(g,w,$);return}}if(typeof A=="object"&&A!==null)switch(A.$$typeof){case ze:{ef(g,w,A,$,K);return}case ut:{xi(g,w,A,$,K);return}case fe:{cc(g,w,A,$);return}case $e:{Yo(g,w,A,$);return}case It:{tf(g,w,A,$);return}}var se="";throw(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(A==null?A:typeof A)+"."+se))}function nf(g,w){typeof Symbol=="function"&&g[Symbol.toStringTag]==="Generator"&&(lc||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."),lc=!0),g.entries===w&&(ai||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ai=!0)}function zr(g,w,A){try{return su(g,w,A)}catch($){throw typeof $=="object"&&$!==null&&typeof $.then=="function"||(Xa=Xa!==null?Xa:_s()),$}}function su(g,w,A){if(w.node=A,typeof A=="object"&&A!==null){switch(A.$$typeof){case ve:{var $=A,K=$.type,se=$.props,ye=$.ref;Rs(g,w,K,se,ye);return}case Pe: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 Ae=A,h=Ae._payload,b=Ae._init,D;try{D=b(h)}catch(St){throw typeof St=="object"&&St!==null&&typeof St.then=="function"&&Wo(w,"Lazy"),St}zr(g,w,D);return}}if(ki(A)){lu(g,w,A);return}var M=Ki(A);if(M){nf(A,M);var Y=M.call(A);if(Y){var ie=Y.next();if(!ie.done){var de=[];do de.push(ie.value),ie=Y.next();while(!ie.done);lu(g,w,de);return}return}}var Ie=Object.prototype.toString.call(A);throw new Error("Objects are not valid as a React child (found: "+(Ie==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Ie)+"). If you meant to render a collection of children, use an array instead.")}if(typeof A=="string"){var Ze=w.blockedSegment;Ze.lastPushedText=Yi(w.blockedSegment.chunks,A,g.responseState,Ze.lastPushedText);return}if(typeof A=="number"){var vt=w.blockedSegment;vt.lastPushedText=Yi(w.blockedSegment.chunks,""+A,g.responseState,vt.lastPushedText);return}typeof A=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function lu(g,w,A){for(var $=A.length,K=0;K<$;K++){var se=w.treeContext;w.treeContext=ql(se,$,K);try{Co(g,w,A[K])}finally{w.treeContext=se}}}function Yr(g,w,A){var $=w.blockedSegment,K=$.chunks.length,se=nu(g,K,null,$.formatContext,$.lastPushedText,!0);$.children.push(se),$.lastPushedText=!1;var ye=cl(g,w.node,w.blockedBoundary,se,w.abortSet,w.legacyContext,w.context,w.treeContext);w.componentStack!==null&&(ye.componentStack=w.componentStack.parent);var Ae=ye.ping;A.then(Ae,Ae)}function Co(g,w,A){var $=w.blockedSegment.formatContext,K=w.legacyContext,se=w.context,ye=null;ye=w.componentStack;try{return zr(g,w,A)}catch(Ae){if(Xu(),typeof Ae=="object"&&Ae!==null&&typeof Ae.then=="function"){Yr(g,w,Ae),w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,tl(se),w.componentStack=ye;return}else throw w.blockedSegment.formatContext=$,w.legacyContext=K,w.context=se,tl(se),w.componentStack=ye,Ae}}function rf(g,w,A,$){var K=Mi(g,$);if(w===null?zo(g,$):(w.pendingTasks--,w.forceClientRender||(w.forceClientRender=!0,w.errorDigest=K,ru(w,$),w.parentFlushed&&g.clientRenderedBoundaries.push(w))),g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function ya(g){var w=this,A=g.blockedBoundary,$=g.blockedSegment;$.status=tu,uu(w,A,$)}function pl(g,w,A){var $=g.blockedBoundary,K=g.blockedSegment;if(K.status=tu,$===null)w.allPendingTasks--,w.status!==qa&&(w.status=qa,w.destination!==null&&_(w.destination));else{if($.pendingTasks--,!$.forceClientRender){$.forceClientRender=!0;var se=A===void 0?new Error("The render was aborted by the server without a reason."):A;$.errorDigest=w.onError(se);{var ye="The server did not finish this Suspense boundary: ";se&&typeof se.message=="string"?se=ye+se.message:se=ye+String(se);var Ae=to;to=g;try{ru($,se)}finally{to=Ae}}$.parentFlushed&&w.clientRenderedBoundaries.push($)}if($.fallbackAbortableTasks.forEach(function(b){return pl(b,w,A)}),$.fallbackAbortableTasks.clear(),w.allPendingTasks--,w.allPendingTasks===0){var h=w.onAllReady;h()}}}function gl(g,w){if(w.chunks.length===0&&w.children.length===1&&w.children[0].boundary===null){var A=w.children[0];A.id=w.id,A.parentFlushed=!0,A.status===Ii&&gl(g,A)}else{var $=g.completedSegments;$.push(w)}}function uu(g,w,A){if(w===null){if(A.parentFlushed){if(g.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");g.completedRootSegment=A}if(g.pendingRootTasks--,g.pendingRootTasks===0){g.onShellError=To;var $=g.onShellReady;$()}}else if(w.pendingTasks--,!w.forceClientRender){if(w.pendingTasks===0)A.parentFlushed&&A.status===Ii&&gl(w,A),w.parentFlushed&&g.completedBoundaries.push(w),w.fallbackAbortableTasks.forEach(ya,g),w.fallbackAbortableTasks.clear();else if(A.parentFlushed&&A.status===Ii){gl(w,A);var K=w.completedSegments;K.length===1&&w.parentFlushed&&g.partialBoundaries.push(w)}}if(g.allPendingTasks--,g.allPendingTasks===0){var se=g.onAllReady;se()}}function of(g,w){var A=w.blockedSegment;if(A.status===tc){tl(w.context);var $=null;$=to,to=w;try{zr(g,w,w.node),Lr(A.chunks,g.responseState,A.lastPushedText,A.textEmbedded),w.abortSet.delete(w),A.status=Ii,uu(g,w.blockedBoundary,A)}catch(se){if(Xu(),typeof se=="object"&&se!==null&&typeof se.then=="function"){var K=w.ping;se.then(K,K)}else w.abortSet.delete(w),A.status=Ga,rf(g,w.blockedBoundary,A,se)}finally{to=$}}}function vl(g){if(g.status!==qa){var w=Ul(),A=ll.current;ll.current=Cr;var $;$=Es.getCurrentStack,Es.getCurrentStack=_s;var K=al;sl(g.responseState);try{var se=g.pingedTasks,ye;for(ye=0;ye<se.length;ye++){var Ae=se[ye];of(g,Ae)}se.splice(0,ye),g.destination!==null&&Si(g,g.destination)}catch(h){Mi(g,h),zo(g,h)}finally{sl(K),ll.current=A,Es.getCurrentStack=$,A===Cr&&tl(w)}}}function ml(g,w,A){switch(A.parentFlushed=!0,A.status){case tc:{var $=A.id=g.nextSegmentId++;return A.lastPushedText=!1,A.textEmbedded=!1,er(w,g.responseState,$)}case Ii:{A.status=ul;for(var K=!0,se=A.chunks,ye=0,Ae=A.children,h=0;h<Ae.length;h++){for(var b=Ae[h];ye<b.index;ye++)p(w,se[ye]);K=yl(g,w,b)}for(;ye<se.length-1;ye++)p(w,se[ye]);return ye<se.length&&(K=x(w,se[ye])),K}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function yl(g,w,A){var $=A.boundary;if($===null)return ml(g,w,A);if($.parentFlushed=!0,$.forceClientRender)return Xe(w,g.responseState,$.errorDigest,$.errorMessage,$.errorComponentStack),ml(g,w,A),Rt(w,g.responseState);if($.pendingTasks>0){$.rootSegmentID=g.nextSegmentId++,$.completedSegments.length>0&&g.partialBoundaries.push($);var K=$.id=Rn(g.responseState);return ke(w,g.responseState,K),ml(g,w,A),Dt(w,g.responseState)}else{if($.byteSize>g.progressiveChunkSize)return $.rootSegmentID=g.nextSegmentId++,g.completedBoundaries.push($),ke(w,g.responseState,$.id),ml(g,w,A),Dt(w,g.responseState);je(w,g.responseState);var se=$.completedSegments;if(se.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var ye=se[0];return yl(g,w,ye),ft(w,g.responseState)}}function fc(g,w,A){return Xs(w,g.responseState,A.id,A.errorDigest,A.errorMessage,A.errorComponentStack)}function bl(g,w,A){return _t(w,g.responseState,A.formatContext,A.id),yl(g,w,A),Et(w,A.formatContext)}function Is(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];Er(g,w,A,se)}return $.length=0,Xi(w,g.responseState,A.id,A.rootSegmentID)}function af(g,w,A){for(var $=A.completedSegments,K=0;K<$.length;K++){var se=$[K];if(!Er(g,w,A,se))return K++,$.splice(0,K),!1}return $.splice(0,K),!0}function Er(g,w,A,$){if($.status===ul)return!0;var K=$.id;if(K===-1){var se=$.id=A.rootSegmentID;if(se===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return bl(g,w,$)}else return bl(g,w,$),Gs(w,g.responseState,K)}function Si(g,w){v();try{var A=g.completedRootSegment;A!==null&&g.pendingRootTasks===0&&(yl(g,w,A),g.completedRootSegment=null,bi(w,g.responseState));var $=g.clientRenderedBoundaries,K;for(K=0;K<$.length;K++){var se=$[K];fc(g,w,se)}$.splice(0,K);var ye=g.completedBoundaries;for(K=0;K<ye.length;K++){var Ae=ye[K];Is(g,w,Ae)}ye.splice(0,K),T(w),v(w);var h=g.partialBoundaries;for(K=0;K<h.length;K++){var b=h[K];if(!af(g,w,b)){g.destination=null,K++,h.splice(0,K);return}}h.splice(0,K);var D=g.completedBoundaries;for(K=0;K<D.length;K++){var M=D[K];Is(g,w,M)}D.splice(0,K)}finally{T(w),g.allPendingTasks===0&&g.pingedTasks.length===0&&g.clientRenderedBoundaries.length===0&&g.completedBoundaries.length===0&&(g.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),_(w))}}function Xf(g){s(function(){return vl(g)})}function sf(g,w){if(g.status===nc){g.status=qa,U(w,g.fatalError);return}if(g.status!==qa&&g.destination===null){g.destination=w;try{Si(g,w)}catch(A){Mi(g,A),zo(g,A)}}}function Ja(g,w){try{var A=g.abortableTasks;A.forEach(function($){return pl($,g,w)}),A.clear(),g.destination!==null&&Si(g,g.destination)}catch($){Mi(g,$),zo(g,$)}}function As(g,w){return new Promise(function(A,$){var K,se,ye=new Promise(function(Y,ie){se=Y,K=ie});function Ae(){var Y=new ReadableStream({type:"bytes",pull:function(ie){sf(b,ie)},cancel:function(ie){Ja(b)}},{highWaterMark:0});Y.allReady=ye,A(Y)}function h(Y){ye.catch(function(){}),$(Y)}var b=Gf(g,Ir(w?w.identifierPrefix:void 0,w?w.nonce:void 0,w?w.bootstrapScriptContent:void 0,w?w.bootstrapScripts:void 0,w?w.bootstrapModules:void 0),ni(w?w.namespaceURI:void 0),w?w.progressiveChunkSize:void 0,w?w.onError:void 0,se,Ae,h,K);if(w&&w.signal){var D=w.signal,M=function(){Ja(b,D.reason),D.removeEventListener("abort",M)};D.addEventListener("abort",M)}Xf(b)})}Hh.renderToReadableStream=As,Hh.version=t}()),Hh}var Mc,Lm;process.env.NODE_ENV==="production"?(Mc=S4(),Lm=T4()):(Mc=C4(),Lm=E4());Mc.version;var k4=Mc.renderToString;Mc.renderToStaticMarkup;Mc.renderToNodeStream;Mc.renderToStaticNodeStream;Lm.renderToReadableStream;var O4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yO(e,t){return e(t={exports:{}},t.exports),t.exports}var _4=yO(function(e){(function(t){var n=function(L,R,U){if(!c(R)||v(R)||p(R)||x(R)||l(R))return R;var W,te=0,J=0;if(d(R))for(W=[],J=R.length;te<J;te++)W.push(n(L,R[te],U));else for(var pe in W={},R)Object.prototype.hasOwnProperty.call(R,pe)&&(W[L(pe,U)]=n(L,R[pe],U));return W},r=function(L){return T(L)?L:(L=L.replace(/[\-_\s]+(.)?/g,function(R,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+L.substr(1)},i=function(L){var R=r(L);return R.substr(0,1).toUpperCase()+R.substr(1)},o=function(L,R){return function(U,W){var te=(W=W||{}).separator||"_",J=W.split||/(?=[A-Z])/;return U.split(J).join(te)}(L,R).toLowerCase()},s=Object.prototype.toString,l=function(L){return typeof L=="function"},c=function(L){return L===Object(L)},d=function(L){return s.call(L)=="[object Array]"},v=function(L){return s.call(L)=="[object Date]"},p=function(L){return s.call(L)=="[object RegExp]"},x=function(L){return s.call(L)=="[object Boolean]"},T=function(L){return(L-=0)==L},_=function(L,R){var U=R&&"process"in R?R.process:R;return typeof U!="function"?L:function(W,te){return U(W,L,te)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(L,R){return n(_(r,R),L)},decamelizeKeys:function(L,R){return n(_(o,R),L,R)},pascalizeKeys:function(L,R){return n(_(i,R),L)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(O4)}).decamelize,D4=function(e){if(Array.isArray(e))return e},P4=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(c){i=!0,o=c}finally{try{r||l.return==null||l.return()}finally{if(i)throw o}}return n}},u1=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},R4=function(e,t){if(e){if(typeof e=="string")return u1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u1(e,t):void 0}},I4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
140
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},A4=function(e,t){return D4(e)||P4(e,t)||R4(e,t)||I4()},bO=yO(function(e){function t(){return e.exports=t=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},t.apply(this,arguments)}e.exports=t}),M4=function(e,t){if(e==null)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},wO=function(e,t){if(e==null)return{};var n,r,i=M4(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},L4=X.createContext(null);function xO(e){var t=e.children,n=t===void 0?"":t,r=wO(e,["children"]);return typeof n!="string"&&(n=k4(n)),X.createElement("template",bO({},r,{dangerouslySetInnerHTML:{__html:n}}))}function SO(e){var t=e.root,n=e.children;return Wm.createPortal(n===void 0?null:n,t)}function F4(e){var t=X.forwardRef(function(n,r){var i,o,s=n.mode,l=s===void 0?"open":s,c=n.delegatesFocus,d=c!==void 0&&c,v=n.styleSheets,p=v===void 0?[]:v,x=n.ssr,T=x!==void 0&&x,_=n.children,I=wO(n,["mode","delegatesFocus","styleSheets","ssr","children"]),L=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),R=X.useState(null),U=A4(R,2),W=U[0],te=U[1],J="node_".concat(l).concat(d);return X.useLayoutEffect(function(){if(L.current)try{if(typeof r=="function"&&r(L.current),T){var pe=L.current.shadowRoot;return void te(pe)}var S=L.current.attachShadow({mode:l,delegatesFocus:d});p.length>0&&(S.adoptedStyleSheets=p),te(S)}catch(ce){(function(ae){var Ne=ae.error,Ge=ae.styleSheets,qe=ae.root;switch(Ne.name){case"NotSupportedError":Ge.length>0&&(qe.adoptedStyleSheets=Ge);break;default:throw Ne}})({error:ce,styleSheets:p,root:W})}},[r,L,p]),X.createElement(X.Fragment,null,X.createElement(e.tag,bO({key:J,ref:L},I),(W||T)&&X.createElement(L4.Provider,{value:W},T?X.createElement(xO,{shadowroot:l,shadowrootmode:l},e.render({root:W,ssr:T,children:_})):X.createElement(SO,{root:W},e.render({root:W,ssr:T,children:_})))))});return t.propTypes={mode:Oa.oneOf(["open","closed"]),delegatesFocus:Oa.bool,styleSheets:Oa.arrayOf(Oa.instanceOf(globalThis.CSSStyleSheet)),ssr:Oa.bool,children:Oa.node},t}xO.propTypes={children:Oa.oneOfType([Oa.string,Oa.node])},SO.propTypes={root:Oa.object.isRequired,children:Oa.node};var _v=new Map;function N4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(e,{get:function(r,i){var o=_4(i,{separator:"-"}),s="".concat(t,"-").concat(o);return _v.has(s)||_v.set(s,F4({tag:o,render:n})),_v.get(s)}})}var TO=N4();const j4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
141
|
-
`,B4=`.favorite-bar{position:sticky;top:64px;z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}
|
|
142
|
-
`;function $4(e){const t=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:e}});window.dispatchEvent(t)}function V4(e){const t=_p.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState(window.location.href);X.useEffect(()=>{o(window.location.href)},[t]);const s=x=>`${x}`;function l(x,T){for(const _ of x){if(_.id===T)return _;if(_.children){const I=l(_.children,T);if(I)return I}}return null}function c(x,T){const _=l(n,x);_?(_.isFavorite=T,$4(_),Qy(x,T)):console.error(`Item with id ${x} not found`)}const d=x=>{console.log("Favorite menus changed",x),r(x.detail.favoriteMenus||[])};X.useEffect(()=>(window.addEventListener("favoriteMenusChange",d),()=>{window.removeEventListener("favoriteMenusChange",d)}),[]),console.log("favoriteItems",n);function v(x,T){return!T||n.indexOf(T)===-1?1:v(T,n.find(I=>I.id===T.parentKey))+1}const p=(x,T,_)=>{const I=L=>_.some(R=>R.id===L);return Ue.jsx(mO,{isActive:I,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,item:x,level:T,onSetFavoriteSuccess:c})};return Ue.jsx(Ue.Fragment,{children:n.length?Ue.jsx("div",{className:s("favorite-menu"),children:Ue.jsx("div",{className:s("wrap-section favorite-menu__menu"),style:{flex:1,overflow:"auto",width:"100%",overflowY:"hidden",display:"flex",alignItems:"center",scrollbarWidth:"thin"},children:n.map(x=>Ue.jsx("div",{children:p(x,v(),[])},x.id))})}):""})}function H4(e=32){const[t,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const s=window.scrollY;s>r&&s>e?n(!1):s<r&&n(!0),i(s)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:t}}function U4(e){const{isFavoriteBarVisible:t}=H4();return Ue.jsxs(Ue.Fragment,{children:[Ue.jsx("style",{children:B4}),Ue.jsx("div",{className:`favorite-bar ${t?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Ue.jsx(TO.div,{children:Ue.jsx(Xm,{styles:[ST,x4,j4],children:Ue.jsx(V4,{...e})})})})]})}function Qy(e,t){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(t)n.includes(e)||n.push(e);else{const r=n.indexOf(e);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function CO({...e}){var _e,Ye,We,Re,Fe;const t=e.item,n=e.level||0,r=!!((_e=e.item.children)!=null&&_e.length),{isActive:i,isCollapsed:o}=e,s=`level-${n}`,l=o?"collapsed":"expanded",c=i(t.id)?"active":"",d=r?"parent":"child",v=e.params.isOpen?"isOpen":"isClose",p=e.isInternalApp?"isInternalApp":"",x=(He,lt=s)=>`${He} ${lt} ${l} ${c} ${d} ${v} ${p}`,[T,_]=X.useState(!1),[I,L]=X.useState(t.isFavorite||!1);X.useEffect(()=>{L(!!e.item.isFavorite)},[e.item.isFavorite]);const R=X.useRef(),U=X.useRef();U!=null&&U.current&&((Ye=U==null?void 0:U.current)==null?void 0:Ye.scrollWidth)>((We=U==null?void 0:U.current)==null?void 0:We.clientWidth);const W=window.location.origin,te=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},J=window.location.pathname.split("/")[1],pe=te.pathname.split("/")[1],S=e.item.redirectUrl||e.ssr||!W.includes("local")&&W!==te.origin||pe!==J,ce=r?"div":!e.isInternalApp&&S?"a":_p.Link,ae=t.redirectUrl||t.path||"#",Ne=n+1,Ge=r&&o&&T,qe=o||n===0?void 0:`${n+.25}rem`,it=()=>{_(!0)},nt=()=>{_(!1)},me="/global-menu-config/api/v1/menu-items/user/set-favorite",Se=t.serviceKey==="mn_poms";e.params.depth*20,e.params.depth,yH(t.id,e.params.isOpen,e.params.onToggle);const Ve=He=>{He.stopPropagation(),e.params.onToggle()},at=Se||o&&n===0?t.name==="POMs"?"Parking Operations Management":t.description||t.name:null;Object.entries(e.brandColors||{}).reduce((He,[lt,ct])=>(ct&&(He[`--${lt}`]=ct),He),{});const Ee=W!==te.origin||e.item.redirectUrl?"_blank":"_self";return Ue.jsxs("div",{ref:R,className:x("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:it,onMouseOut:nt,onDragStart:He=>{o&&n>1&&He.preventDefault()},children:[Ue.jsx(ss.Tooltip,{placement:"top",title:at,disableInteractive:!0,children:Ue.jsxs(ce,{target:Ee,to:ae,href:ae,draggable:"true",className:x("menu-item__link"),style:{paddingLeft:qe,transition:"all 0.3s",color:i(t.id)?((Re=e.brandColors)==null?void 0:Re.primary400)||Gr.primary400:void 0,backgroundColor:i(t.id)&&n===0?(Fe=e.brandColors)==null?void 0:Fe.primary200:void 0},onClick:He=>{o||Ve(He)},children:[Ue.jsx(W4,{cls:x,item:t}),Ue.jsx("span",{className:x("menu-item__label"),ref:U,children:t.name}),Ue.jsx(z4,{tooltipPosition:at?"right":"top",menuLevel:n,hasChildren:r,isHovered:T,isFavorite:I,onClick:He=>{const lt={menuConfigId:t.id,isFavorite:He},ct=e.baseUrl+me;as.post(ct,lt).then(yt=>{var dt;L(He),Qm("Set favorite menu item successfully"),(dt=e.onSetFavoriteSuccess)==null||dt.call(e,e.item.id,He),Qy(e.item.id,He)}).catch(yt=>{var dt,Tt;Wd(((Tt=(dt=yt.response)==null?void 0:dt.data)==null?void 0:Tt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ue.jsx("div",{className:x("menu-item__icon-arrow__wrapper"),children:Ue.jsx(V5,{className:x(`menu-item__icon-arrow__icon ${e.params.isOpen?"open":"close"}`)})})]})}),Ge&&Ue.jsx(H5,{parentRef:R,onlyChild:!o,renderChildren:({maxHeight:He})=>{var lt;return Ue.jsx(lO.div,{className:x(`menu-item__dropdown ${e.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ne}`),style:Zy({maxHeight:He,overflowY:"auto",paddingRight:3},He!=="auto"&&!!Ne),children:(lt=t.children)==null?void 0:lt.map(ct=>X.createElement(CO,{...e,key:ct.id,item:ct,level:Ne}))})}})]})}function W4({item:e,cls:t}){return Ue.jsx("div",{className:t("menu-item__icon"),children:Ue.jsx(vO,{item:e})})}function z4(e){const t={marginRight:e.hasChildren?10:0,fontSize:18,fill:Gr.warning};return Ue.jsxs(Ue.Fragment,{children:[e.isHovered&&!e.isFavorite&&Ue.jsx(ss.Tooltip,{placement:e.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Ue.jsx("div",{children:Ue.jsx(uO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!0)}})})}),e.isFavorite&&Ue.jsx(ss.Tooltip,{placement:e.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Ue.jsx("div",{children:Ue.jsx(cO,{style:t,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,!1)}})})})]})}function Y4(){return Ue.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:Ue.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 G4(){return Ue.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:Ue.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function q4(e){return Ue.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:Ue.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 X4=`.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:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link.expanded.level-0{padding:.5rem 10px}.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.menu-item__link.collapsed.level-0{padding:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-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;color:#292929;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}.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:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width: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}}
|
|
143
|
-
`,K4=e=>{const t=e.isCollapsed?0:e.depth*16;return Ue.jsx("div",{style:{backgroundColor:e.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:t}})},Z4=`.app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}
|
|
144
|
-
`,J4=e=>{const[t,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(e==null?void 0:e.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(t))},[t]),[t,n]};function EO(e){document.documentElement.style.setProperty("--global-menu-width",!e||e==="true"?"64px":"17rem")}const Jh=localStorage.getItem("isCollapsed");EO(Jh);function Q4(e){const t=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:e}});window.dispatchEvent(t)}function e6(e){const t=_p.useLocation(),[n,r]=X.useState([]),i=n.map(ce=>ce.data),[o,s]=X.useState(!1),[l,c]=X.useState(Jh===null?!0:Jh==="true"),[d,v]=X.useState(window.location.href),p=X.useRef(null);X.useEffect(()=>{var ce;(ce=e.handleCallback)==null||ce.call(e,i)},[i,e.handleCallback]),X.useEffect(()=>{v(window.location.href)},[t]);const x=n6(i,d),[T,_]=J4({initOpenIds:e.initOpenIds}),I=()=>{var ce,ae;if(c(!l),localStorage.setItem("isCollapsed",JSON.stringify(!l)),EO(l),l)T&&((ce=p.current)==null||ce.open(T));else{const Ne=n.filter(Ge=>Ge.parent===0).map(Ge=>Ge.id);console.log("closeIds:",Ne),(ae=p.current)==null||ae.close(Ne)}},[L,R]=X.useState(!1),U=l?"collapsed":"expanded",W=ce=>`${ce} ${U}`,te=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var ae,Ne;try{const Ge=e.menuPath||"/global-menu-config/api/v1/menu-items/user",qe=e.baseUrl+Ge,{data:it}=await as.get(qe);let nt=it.map(Se=>({...Se,parentKey:Se.parentKey||0}));nt=OO(nt),e.replacePath&&(nt=kO(nt,e.replacePath));const me=nt.map(Se=>({id:Se.id,parent:Se.parentKey,text:Se.name,data:Se}));r(me)}catch(Ge){console.error("Global menu",Ge),Wd(((Ne=(ae=Ge.response)==null?void 0:ae.data)==null?void 0:Ne.errorMessage)||"Have error when get menu items")}})()},[e.baseUrl,e.menuPath,e.replacePath]),X.useEffect(()=>{const ce=i.filter(Ge=>Ge.isFavorite);function ae(Ge){return i.every(qe=>qe.parentKey!==Ge.id)?Ge:{...Ge,children:i.filter(qe=>qe.parentKey===Ge.id).map(qe=>ae(qe))}}const Ne=ce.map(Ge=>ae(Ge));Q4(Ne)},[i]);function J(ce){const ae=ce.detail.menuItem;r(Ne=>Ne.map(Ge=>Ge.id!==ae.id?Ge:{...Ge,data:ae}))}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",J),()=>{window.removeEventListener("updateFavoriteMenu",J)}),[]),X.useLayoutEffect(()=>{var Ge;const ce=localStorage.getItem("scrollPos");ce&&te.current&&setTimeout(()=>{const qe=te.current.getScrollElement();qe.scrollTop=parseInt(ce)},0);const ae=()=>{if(te.current){const qe=te.current.getScrollElement();localStorage.setItem("scrollPos",qe.scrollTop.toString())}},Ne=(Ge=te.current)==null?void 0:Ge.getScrollElement();return Ne==null||Ne.addEventListener("scroll",ae),()=>{Ne==null||Ne.removeEventListener("scroll",ae)}},[i]);function pe(ce){s(!0);const ae=[...n];r(ce);const Ne=ce.map((Ge,qe)=>({menuItemId:Ge.id,order:qe}));as.post("/global-menu-config/api/v1/menu-items/user",Ne,{baseURL:e.baseUrl}).then(()=>{}).catch(Ge=>{console.error(Ge),r(ae)}).finally(()=>{s(!1)})}const S=X.useMemo(()=>Jh==="false"?T:[],[]);return Ue.jsxs("div",{className:W("side-bar"),children:[Ue.jsx("div",{className:W("wrap-section side-bar__wrapper-toggle-btn"),children:Ue.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:I,children:l?Ue.jsx(G4,{}):Ue.jsx(Y4,{})})}),Ue.jsx(xT,{ref:te,className:W("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Ue.jsx(t3,{backend:H3,options:cH(),children:Ue.jsx(PH,{ref:p,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:pe,render:(ce,ae)=>{function Ne(nt){return n.every(me=>me.parent!==nt.id)?nt:{...nt,children:n.filter(me=>me.parent===nt.id).map(me=>Ne(me.data))}}const Ge=Ne(ce.data),qe=nt=>x.some(me=>me.id===nt);function it(nt,me){r(Se=>Se.map(Ve=>Ve.id===nt?{...Ve,data:{...Ve.data,isFavorite:me}}:Ve))}return Ue.jsx(CO,{isInternalApp:e.isInternalApp,isActive:qe,isCollapsed:l,replacePath:e.replacePath,ssr:e.ssr,brandColors:e.brandColors,baseUrl:e.baseUrl,node:ce,params:ae,nodes:n,item:Ge,expanded:()=>!1,toggleExpand:()=>{},level:ae.depth,onSetFavoriteSuccess:it})},placeholderRender:(ce,{depth:ae})=>{var Ne;return Ue.jsx(K4,{node:ce,depth:ae,color:(Ne=e.brandColors)==null?void 0:Ne.primary300,isCollapsed:l})},canDrag:()=>!o,canDrop:(ce,{dragSource:ae,dropTargetId:Ne})=>(ae==null?void 0:ae.parent)===Ne,onDragStart:ce=>{console.log("onDragStart",ce)},onChangeOpen:ce=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",ce),_(ce))},initialOpen:S})})}),Ue.jsxs("div",{className:W("wrap-section side-bar__wrap-btn-logout"),children:[Ue.jsxs("button",{className:W("side-bar__logout-btn"),onClick:()=>R(!0),children:[Ue.jsx(q4,{className:W("side-bar__icon-logout")}),Ue.jsx("span",{className:W("side-bar__logout-btn__text"),children:"Logout"})]}),Ue.jsx(D1,{isOpen:L,onClose:()=>R(!1),onConfirm:()=>e.logout?e.logout():B1(e.baseUrl)})]})]})}function t6(e,t){const n=new URL(e,window.location.origin),r=new URL(t,window.location.origin);return n.pathname===r.pathname&&n.search===r.search?3:n.pathname===r.pathname?2:r.pathname.startsWith(n.pathname)?1:0}function n6(e,t){const n=e.map(s=>({item:s,priority:s.path?t6(s.path,t):0})).filter(s=>s.priority>0),r=n.length>0?n.reduce((s,l)=>l.priority>s.priority?l:s).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=e.find(s=>s.id===(o==null?void 0:o.parentKey))||null;return i}function kO(e,t){return e.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=kO(n.children,t)):n.path=t(n.path),n})}function OO(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=OO(n.children)),n))}function r6(e){return Ue.jsx(TO.div,{children:Ue.jsx(Xm,{styles:[ST,X4,Z4],style:{position:"sticky",zIndex:1300},children:Ue.jsx(e6,{...e})})})}const i6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var Ep={exports:{}};/**
|
|
145
|
-
* @license
|
|
146
|
-
* Lodash <https://lodash.com/>
|
|
147
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
148
|
-
* Released under MIT license <https://lodash.com/license>
|
|
149
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
150
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
151
|
-
*/Ep.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,v="__lodash_placeholder__",p=1,x=2,T=4,_=1,I=2,L=1,R=2,U=4,W=8,te=16,J=32,pe=64,S=128,ce=256,ae=512,Ne=30,Ge="...",qe=800,it=16,nt=1,me=2,Se=3,Ve=1/0,Qe=9007199254740991,at=17976931348623157e292,Ee=0/0,_e=4294967295,Ye=_e-1,We=_e>>>1,Re=[["ary",S],["bind",L],["bindKey",R],["curry",W],["curryRight",te],["flip",ae],["partial",J],["partialRight",pe],["rearg",ce]],Fe="[object Arguments]",He="[object Array]",lt="[object AsyncFunction]",ct="[object Boolean]",yt="[object Date]",dt="[object DOMException]",Tt="[object Error]",ot="[object Function]",$t="[object GeneratorFunction]",Ht="[object Map]",Xn="[object Number]",mr="[object Null]",Kn="[object Object]",Dn="[object Promise]",$i="[object Proxy]",_r="[object RegExp]",rr="[object Set]",cn="[object String]",hn="[object Symbol]",pn="[object Undefined]",mt="[object WeakMap]",In="[object WeakSet]",ui="[object ArrayBuffer]",un="[object DataView]",Vi="[object Float32Array]",Hi="[object Float64Array]",Ui="[object Int8Array]",Dr="[object Int16Array]",Wn="[object Int32Array]",Pr="[object Uint8Array]",yr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",Kr="[object Uint32Array]",Po=/\b__p \+= '';/g,Zn=/\b(__p \+=) '' \+/g,Zr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ir=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,ci=RegExp(ir.source),Wi=RegExp(Zt.source),An=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,fi=/<%=([\s\S]+?)%>/g,di=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mn=/^\w*$/,uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,br=/[\\^$.*+?()[\]{}|]/g,hi=RegExp(br.source),fn=/^\s+/,Ei=/\s/,Ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ia=/\{\n\/\* \[wrapped with (.+)\] \*/,Jr=/,? & /,co=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fo=/[()=,{}\[\]\/\s]/,Ro=/\\(\\)?/g,ki=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pi=/\w*$/,Oi=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,_i=/^\[object .+?Constructor\]$/,Qr=/^0o[0-7]+$/i,wr=/^(?:0|[1-9]\d*)$/,Rr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ei=/($^)/,Ir=/['\n\r\u2028\u2029\\]/g,zn="\\ud800-\\udfff",vn="\\u0300-\\u036f",Ar="\\ufe20-\\ufe2f",xr="\\u20d0-\\u20ff",Mn=vn+Ar+xr,gi="\\u2700-\\u27bf",Mr="a-z\\xdf-\\xf6\\xf8-\\xff",ti="\\xac\\xb1\\xd7\\xf7",Jn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ni="\\u2000-\\u206f",ri=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zi="A-Z\\xc0-\\xd6\\xd8-\\xde",Rn="\\ufe0e\\ufe0f",Sr=ti+Jn+ni+ri,cr="['’]",Io="["+zn+"]",Yi="["+Sr+"]",Lr="["+Mn+"]",E="\\d+",j="["+gi+"]",q="["+Mr+"]",re="[^"+zn+Sr+E+gi+Mr+zi+"]",De="\\ud83c[\\udffb-\\udfff]",be="(?:"+Lr+"|"+De+")",Me="[^"+zn+"]",tt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+zi+"]",wt="\\u200d",Ut="(?:"+q+"|"+re+")",Qn="(?:"+Ct+"|"+re+")",Yn="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",Pn="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",Fr=be+"?",or="["+Rn+"]?",Gi="(?:"+wt+"(?:"+[Me,tt,bt].join("|")+")"+or+Fr+")*",vi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Nr=or+Fr+Gi,Ao="(?:"+[j,tt,bt].join("|")+")"+Nr,Ys="(?:"+[Me+Lr+"?",Lr,tt,bt,Io].join("|")+")",Aa=RegExp(cr,"g"),Ma=RegExp(Lr,"g"),La=RegExp(De+"(?="+De+")|"+Ys+Nr,"g"),Fa=RegExp([Ct+"?"+q+"+"+Yn+"(?="+[Yi,Ct,"$"].join("|")+")",Qn+"+"+Pn+"(?="+[Yi,Ct+Ut,"$"].join("|")+")",Ct+"?"+Ut+"+"+Yn,Ct+"+"+Pn,qi,vi,E,Ao].join("|"),"g"),mi=RegExp("["+wt+zn+Mn+Rn+"]"),Mo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ra=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],sn=-1,Qt={};Qt[Vi]=Qt[Hi]=Qt[Ui]=Qt[Dr]=Qt[Wn]=Qt[Pr]=Qt[yr]=Qt[Xr]=Qt[Kr]=!0,Qt[Fe]=Qt[He]=Qt[ui]=Qt[ct]=Qt[un]=Qt[yt]=Qt[Tt]=Qt[ot]=Qt[Ht]=Qt[Xn]=Qt[Kn]=Qt[_r]=Qt[rr]=Qt[cn]=Qt[mt]=!1;var Vt={};Vt[Fe]=Vt[He]=Vt[ui]=Vt[un]=Vt[ct]=Vt[yt]=Vt[Vi]=Vt[Hi]=Vt[Ui]=Vt[Dr]=Vt[Wn]=Vt[Ht]=Vt[Xn]=Vt[Kn]=Vt[_r]=Vt[rr]=Vt[cn]=Vt[hn]=Vt[Pr]=Vt[yr]=Vt[Xr]=Vt[Kr]=!0,Vt[Tt]=Vt[ot]=Vt[mt]=!1;var Di={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ii={"&":"&","<":"<",">":">",'"':""","'":"'"},Lo={"&":"&","<":"<",">":">",""":'"',"'":"'"},yi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fr=parseFloat,Na=parseInt,ia=typeof Ci=="object"&&Ci&&Ci.Object===Object&&Ci,us=typeof self=="object"&&self&&self.Object===Object&&self,yn=ia||us||Function("return this")(),Fo=t&&!t.nodeType&&t,bi=Fo&&!0&&e&&!e.nodeType&&e,cs=bi&&bi.exports===Fo,po=cs&&ia.process,er=function(){try{var Q=bi&&bi.require&&bi.require("util").types;return Q||po&&po.binding&&po.binding("util")}catch{}}(),f=er&&er.isArrayBuffer,m=er&&er.isDate,C=er&&er.isMap,O=er&&er.isRegExp,N=er&&er.isSet,B=er&&er.isTypedArray;function H(Q,he,fe){switch(fe.length){case 0:return Q.call(he);case 1:return Q.call(he,fe[0]);case 2:return Q.call(he,fe[0],fe[1]);case 3:return Q.call(he,fe[0],fe[1],fe[2])}return Q.apply(he,fe)}function ue(Q,he,fe,$e){for(var ze=-1,ht=Q==null?0:Q.length;++ze<ht;){var pt=Q[ze];he($e,pt,fe(pt),Q)}return $e}function oe(Q,he){for(var fe=-1,$e=Q==null?0:Q.length;++fe<$e&&he(Q[fe],fe,Q)!==!1;);return Q}function we(Q,he){for(var fe=Q==null?0:Q.length;fe--&&he(Q[fe],fe,Q)!==!1;);return Q}function Le(Q,he){for(var fe=-1,$e=Q==null?0:Q.length;++fe<$e;)if(!he(Q[fe],fe,Q))return!1;return!0}function je(Q,he){for(var fe=-1,$e=Q==null?0:Q.length,ze=0,ht=[];++fe<$e;){var pt=Q[fe];he(pt,fe,Q)&&(ht[ze++]=pt)}return ht}function ke(Q,he){var fe=Q==null?0:Q.length;return!!fe&&on(Q,he,0)>-1}function Xe(Q,he,fe){for(var $e=-1,ze=Q==null?0:Q.length;++$e<ze;)if(fe(he,Q[$e]))return!0;return!1}function ft(Q,he){for(var fe=-1,$e=Q==null?0:Q.length,ze=Array($e);++fe<$e;)ze[fe]=he(Q[fe],fe,Q);return ze}function Dt(Q,he){for(var fe=-1,$e=he.length,ze=Q.length;++fe<$e;)Q[ze+fe]=he[fe];return Q}function Rt(Q,he,fe,$e){var ze=-1,ht=Q==null?0:Q.length;for($e&&ht&&(fe=Q[++ze]);++ze<ht;)fe=he(fe,Q[ze],ze,Q);return fe}function Ln(Q,he,fe,$e){var ze=Q==null?0:Q.length;for($e&&ze&&(fe=Q[--ze]);ze--;)fe=he(fe,Q[ze],ze,Q);return fe}function dn(Q,he){for(var fe=-1,$e=Q==null?0:Q.length;++fe<$e;)if(he(Q[fe],fe,Q))return!0;return!1}var jr=k("length");function Br(Q){return Q.split("")}function Wt(Q){return Q.match(co)||[]}function $r(Q,he,fe){var $e;return fe(Q,function(ze,ht,pt){if(he(ze,ht,pt))return $e=ht,!1}),$e}function zt(Q,he,fe,$e){for(var ze=Q.length,ht=fe+($e?1:-1);$e?ht--:++ht<ze;)if(he(Q[ht],ht,Q))return ht;return-1}function on(Q,he,fe){return he===he?Nu(Q,he,fe):zt(Q,vo,fe)}function go(Q,he,fe,$e){for(var ze=fe-1,ht=Q.length;++ze<ht;)if($e(Q[ze],he))return ze;return-1}function vo(Q){return Q!==Q}function Tr(Q,he){var fe=Q==null?0:Q.length;return fe?Te(Q,he)/fe:Ee}function k(Q){return function(he){return he==null?n:he[Q]}}function F(Q){return function(he){return Q==null?n:Q[he]}}function z(Q,he,fe,$e,ze){return ze(Q,function(ht,pt,ut){fe=$e?($e=!1,ht):he(fe,ht,pt,ut)}),fe}function ne(Q,he){var fe=Q.length;for(Q.sort(he);fe--;)Q[fe]=Q[fe].value;return Q}function Te(Q,he){for(var fe,$e=-1,ze=Q.length;++$e<ze;){var ht=he(Q[$e]);ht!==n&&(fe=fe===n?ht:fe+ht)}return fe}function Ce(Q,he){for(var fe=-1,$e=Array(Q);++fe<Q;)$e[fe]=he(fe);return $e}function Be(Q,he){return ft(he,function(fe){return[fe,Q[fe]]})}function et(Q){return Q&&Q.slice(0,Xs(Q)+1).replace(fn,"")}function xt(Q){return function(he){return Q(he)}}function Nt(Q,he){return ft(he,function(fe){return Q[fe]})}function _t(Q,he){return Q.has(he)}function Et(Q,he){for(var fe=-1,$e=Q.length;++fe<$e&&on(he,Q[fe],0)>-1;);return fe}function $n(Q,he){for(var fe=Q.length;fe--&&on(he,Q[fe],0)>-1;);return fe}function Cn(Q,he){for(var fe=Q.length,$e=0;fe--;)Q[fe]===he&&++$e;return $e}var Gn=F(Di),oa=F(ii);function fs(Q){return"\\"+yi[Q]}function aa(Q,he){return Q==null?n:Q[he]}function oi(Q){return mi.test(Q)}function Gs(Q){return Mo.test(Q)}function mo(Q){for(var he,fe=[];!(he=Q.next()).done;)fe.push(he.value);return fe}function ds(Q){var he=-1,fe=Array(Q.size);return Q.forEach(function($e,ze){fe[++he]=[ze,$e]}),fe}function sa(Q,he){return function(fe){return Q(he(fe))}}function wi(Q,he){for(var fe=-1,$e=Q.length,ze=0,ht=[];++fe<$e;){var pt=Q[fe];(pt===he||pt===v)&&(Q[fe]=v,ht[ze++]=fe)}return ht}function Xi(Q){var he=-1,fe=Array(Q.size);return Q.forEach(function($e){fe[++he]=$e}),fe}function qs(Q){var he=-1,fe=Array(Q.size);return Q.forEach(function($e){fe[++he]=[$e,$e]}),fe}function Nu(Q,he,fe){for(var $e=fe-1,ze=Q.length;++$e<ze;)if(Q[$e]===he)return $e;return-1}function la(Q,he,fe){for(var $e=fe+1;$e--;)if(Q[$e]===he)return $e;return $e}function yo(Q){return oi(Q)?ps(Q):jr(Q)}function dr(Q){return oi(Q)?ee(Q):Br(Q)}function Xs(Q){for(var he=Q.length;he--&&Ei.test(Q.charAt(he)););return he}var hs=F(Lo);function ps(Q){for(var he=La.lastIndex=0;La.test(Q);)++he;return he}function ee(Q){return Q.match(La)||[]}function ve(Q){return Q.match(Fa)||[]}var Pe=function Q(he){he=he==null?yn:Oe.defaults(yn.Object(),he,Oe.pick(yn,ra));var fe=he.Array,$e=he.Date,ze=he.Error,ht=he.Function,pt=he.Math,ut=he.Object,It=he.RegExp,kt=he.String,Yt=he.TypeError,Fn=fe.prototype,ar=ht.prototype,qn=ut.prototype,Vr=he["__core-js_shared__"],Ki=ar.toString,At=qn.hasOwnProperty,Vc=0,En=function(){var a=/[^.]+$/.exec(Vr&&Vr.keys&&Vr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),ua=qn.toString,ju=Ki.call(ut),kn=yn._,gs=It("^"+Ki.call(At).replace(br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=cs?he.Buffer:n,bo=he.Symbol,ms=he.Uint8Array,$l=vs?vs.allocUnsafe:n,ys=sa(ut.getPrototypeOf,ut),Bu=ut.create,$u=qn.propertyIsEnumerable,ja=Fn.splice,Vl=bo?bo.isConcatSpreadable:n,No=bo?bo.iterator:n,Zi=bo?bo.toStringTag:n,jo=function(){try{var a=pc(ut,"defineProperty");return a({},"",{}),a}catch{}}(),Ks=he.clearTimeout!==yn.clearTimeout&&he.clearTimeout,Zs=$e&&$e.now!==yn.Date.now&&$e.now,Hl=he.setTimeout!==yn.setTimeout&&he.setTimeout,Js=pt.ceil,bs=pt.floor,Qs=ut.getOwnPropertySymbols,Vu=vs?vs.isBuffer:n,Hu=he.isFinite,ws=Fn.join,Uu=sa(ut.keys,ut),Nn=pt.max,jn=pt.min,Wu=$e.now,zu=he.parseInt,Bo=pt.random,Hc=Fn.reverse,$o=pc(he,"DataView"),Ji=pc(he,"Map"),el=pc(he,"Promise"),Hr=pc(he,"Set"),ca=pc(he,"WeakMap"),fa=pc(ut,"create"),da=ca&&new ca,ha={},tl=gc($o),Uc=gc(Ji),Wc=gc(el),Ul=gc(Hr),nl=gc(ca),xs=bo?bo.prototype:n,rl=xs?xs.valueOf:n,Ba=xs?xs.toString:n;function G(a){if(sr(a)&&!Xt(a)&&!(a instanceof qt)){if(a instanceof Ur)return a;if(At.call(a,"__wrapped__"))return x0(a)}return new Ur(a)}var pa=function(){function a(){}return function(u){if(!tr(u))return{};if(Bu)return Bu(u);a.prototype=u;var y=new a;return a.prototype=n,y}}();function $a(){}function Ur(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}G.templateSettings={escape:An,evaluate:gn,interpolate:fi,variable:"",imports:{_:G}},G.prototype=$a.prototype,G.prototype.constructor=G,Ur.prototype=pa($a.prototype),Ur.prototype.constructor=Ur;function qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_e,this.__views__=[]}function Wl(){var a=new qt(this.__wrapped__);return a.__actions__=Er(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Er(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Er(this.__views__),a}function Ss(){if(this.__filtered__){var a=new qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function il(){var a=this.__wrapped__.value(),u=this.__dir__,y=Xt(a),P=u<0,V=y?a.length:0,Z=h_(0,V,this.__views__),le=Z.start,ge=Z.end,xe=ge-le,Ke=P?ge:le-1,Je=this.__iteratees__,rt=Je.length,gt=0,Ot=jn(xe,this.__takeCount__);if(!y||!P&&V==xe&&Ot==xe)return nf(a,this.__actions__);var Lt=[];e:for(;xe--&><Ot;){Ke+=u;for(var tn=-1,Ft=a[Ke];++tn<rt;){var rn=Je[tn],an=rn.iteratee,qo=rn.type,io=an(Ft);if(qo==me)Ft=io;else if(!io){if(qo==nt)continue e;break e}}Lt[gt++]=Ft}return Lt}qt.prototype=pa($a.prototype),qt.prototype.constructor=qt;function wo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var P=a[u];this.set(P[0],P[1])}}function Ts(){this.__data__=fa?fa(null):{},this.size=0}function zl(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Yl(a){var u=this.__data__;if(fa){var y=u[a];return y===c?n:y}return At.call(u,a)?u[a]:n}function Gl(a){var u=this.__data__;return fa?u[a]!==n:At.call(u,a)}function zc(a,u){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=fa&&u===n?c:u,this}wo.prototype.clear=Ts,wo.prototype.delete=zl,wo.prototype.get=Yl,wo.prototype.has=Gl,wo.prototype.set=zc;function xo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var P=a[u];this.set(P[0],P[1])}}function Yc(){this.__data__=[],this.size=0}function Vf(a){var u=this.__data__,y=Ri(u,a);if(y<0)return!1;var P=u.length-1;return y==P?u.pop():ja.call(u,y,1),--this.size,!0}function Hf(a){var u=this.__data__,y=Ri(u,a);return y<0?n:u[y][1]}function Gc(a){return Ri(this.__data__,a)>-1}function Uf(a,u){var y=this.__data__,P=Ri(y,a);return P<0?(++this.size,y.push([a,u])):y[P][1]=u,this}xo.prototype.clear=Yc,xo.prototype.delete=Vf,xo.prototype.get=Hf,xo.prototype.has=Gc,xo.prototype.set=Uf;function Vo(a){var u=-1,y=a==null?0:a.length;for(this.clear();++u<y;){var P=a[u];this.set(P[0],P[1])}}function ql(){this.size=0,this.__data__={hash:new wo,map:new(Ji||xo),string:new wo}}function Xl(a){var u=rh(this,a).delete(a);return this.size-=u?1:0,u}function Wf(a){return rh(this,a).get(a)}function Yu(a){return rh(this,a).has(a)}function Kl(a,u){var y=rh(this,a),P=y.size;return y.set(a,u),this.size+=y.size==P?0:1,this}Vo.prototype.clear=ql,Vo.prototype.delete=Xl,Vo.prototype.get=Wf,Vo.prototype.has=Yu,Vo.prototype.set=Kl;function Va(a){var u=-1,y=a==null?0:a.length;for(this.__data__=new Vo;++u<y;)this.add(a[u])}function zf(a){return this.__data__.set(a,c),this}function Yf(a){return this.__data__.has(a)}Va.prototype.add=Va.prototype.push=zf,Va.prototype.has=Yf;function Qi(a){var u=this.__data__=new xo(a);this.size=u.size}function Ho(){this.__data__=new xo,this.size=0}function Gu(a){var u=this.__data__,y=u.delete(a);return this.size=u.size,y}function Zl(a){return this.__data__.get(a)}function nn(a){return this.__data__.has(a)}function Ha(a,u){var y=this.__data__;if(y instanceof xo){var P=y.__data__;if(!Ji||P.length<i-1)return P.push([a,u]),this.size=++y.size,this;y=this.__data__=new Vo(P)}return y.set(a,u),this.size=y.size,this}Qi.prototype.clear=Ho,Qi.prototype.delete=Gu,Qi.prototype.get=Zl,Qi.prototype.has=nn,Qi.prototype.set=Ha;function ga(a,u){var y=Xt(a),P=!y&&vc(a),V=!y&&!P&&fu(a),Z=!y&&!P&&!V&&cf(a),le=y||P||V||Z,ge=le?Ce(a.length,kt):[],xe=ge.length;for(var Ke in a)(u||At.call(a,Ke))&&!(le&&(Ke=="length"||V&&(Ke=="offset"||Ke=="parent")||Z&&(Ke=="buffer"||Ke=="byteLength"||Ke=="byteOffset")||wl(Ke,xe)))&&ge.push(Ke);return ge}function ln(a){var u=a.length;return u?a[iu(0,u-1)]:n}function Pi(a,u){return ih(Er(a),va(u,0,a.length))}function Ua(a){return ih(Er(a))}function Cs(a,u,y){(y!==n&&!es(a[u],y)||y===n&&!(u in a))&&hr(a,u,y)}function Vn(a,u,y){var P=a[u];(!(At.call(a,u)&&es(P,y))||y===n&&!(u in a))&&hr(a,u,y)}function Ri(a,u){for(var y=a.length;y--;)if(es(a[y][0],u))return y;return-1}function Wa(a,u,y,P){return ma(a,function(V,Z,le){u(P,V,y(V),le)}),P}function eo(a,u){return a&&Si(u,si(u),a)}function za(a,u){return a&&Si(u,ko(u),a)}function hr(a,u,y){u=="__proto__"&&jo?jo(a,u,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[u]=y}function qu(a,u){for(var y=-1,P=u.length,V=fe(P),Z=a==null;++y<P;)V[y]=Z?n:Tg(a,u[y]);return V}function va(a,u,y){return a===a&&(y!==n&&(a=a<=y?a:y),u!==n&&(a=a>=u?a:u)),a}function Wr(a,u,y,P,V,Z){var le,ge=u&p,xe=u&x,Ke=u&T;if(y&&(le=V?y(a,P,V,Z):y(a)),le!==n)return le;if(!tr(a))return a;var Je=Xt(a);if(Je){if(le=g_(a),!ge)return Er(a,le)}else{var rt=Li(a),gt=rt==ot||rt==$t;if(fu(a))return gl(a,ge);if(rt==Kn||rt==Fe||gt&&!V){if(le=xe||gt?{}:d0(a),!ge)return xe?sf(a,za(le,a)):Xf(a,eo(le,a))}else{if(!Vt[rt])return V?a:{};le=v_(a,rt,ge)}}Z||(Z=new Qi);var Ot=Z.get(a);if(Ot)return Ot;Z.set(a,le),V0(a)?a.forEach(function(Ft){le.add(Wr(Ft,u,y,Ft,a,Z))}):B0(a)&&a.forEach(function(Ft,rn){le.set(rn,Wr(Ft,u,y,rn,a,Z))});var Lt=Ke?xe?ug:lg:xe?ko:si,tn=Je?n:Lt(a);return oe(tn||a,function(Ft,rn){tn&&(rn=Ft,Ft=a[rn]),Vn(le,rn,Wr(Ft,u,y,rn,a,Z))}),le}function Xu(a){var u=si(a);return function(y){return qc(y,a,u)}}function qc(a,u,y){var P=y.length;if(a==null)return!P;for(a=ut(a);P--;){var V=y[P],Z=u[V],le=a[V];if(le===n&&!(V in a)||!Z(le))return!1}return!0}function Ku(a,u,y){if(typeof a!="function")throw new Yt(s);return Zf(function(){a.apply(n,y)},u)}function Uo(a,u,y,P){var V=-1,Z=ke,le=!0,ge=a.length,xe=[],Ke=u.length;if(!ge)return xe;y&&(u=ft(u,xt(y))),P?(Z=Xe,le=!1):u.length>=i&&(Z=_t,le=!1,u=new Va(u));e:for(;++V<ge;){var Je=a[V],rt=y==null?Je:y(Je);if(Je=P||Je!==0?Je:0,le&&rt===rt){for(var gt=Ke;gt--;)if(u[gt]===rt)continue e;xe.push(Je)}else Z(u,rt,P)||xe.push(Je)}return xe}var ma=g(So),Zu=g(ec,!0);function Jl(a,u){var y=!0;return ma(a,function(P,V,Z){return y=!!u(P,V,Z),y}),y}function Ql(a,u,y){for(var P=-1,V=a.length;++P<V;){var Z=a[P],le=u(Z);if(le!=null&&(ge===n?le===le&&!Go(le):y(le,ge)))var ge=le,xe=Z}return xe}function Xc(a,u,y,P){var V=a.length;for(y=en(y),y<0&&(y=-y>V?0:V+y),P=P===n||P>V?V:en(P),P<0&&(P+=V),P=y>P?0:U0(P);y<P;)a[y++]=u;return a}function Ju(a,u){var y=[];return ma(a,function(P,V,Z){u(P,V,Z)&&y.push(P)}),y}function pr(a,u,y,P,V){var Z=-1,le=a.length;for(y||(y=y_),V||(V=[]);++Z<le;){var ge=a[Z];u>0&&y(ge)?u>1?pr(ge,u-1,y,P,V):Dt(V,ge):P||(V[V.length]=ge)}return V}var Qu=w(),Kc=w(!0);function So(a,u){return a&&Qu(a,u,si)}function ec(a,u){return a&&Kc(a,u,si)}function eu(a,u){return je(u,function(y){return xl(a[y])})}function Ya(a,u){u=Co(u,a);for(var y=0,P=u.length;a!=null&&y<P;)a=a[Ms(u[y++])];return y&&y==P?a:n}function ol(a,u,y){var P=u(a);return Xt(a)?P:Dt(P,y(a))}function Cr(a){return a==null?a===n?pn:mr:Zi&&Zi in ut(a)?d_(a):E_(a)}function al(a,u){return a>u}function sl(a,u){return a!=null&&At.call(a,u)}function Zc(a,u){return a!=null&&u in ut(a)}function ll(a,u,y){return a>=jn(u,y)&&a<Nn(u,y)}function Es(a,u,y){for(var P=y?Xe:ke,V=a[0].length,Z=a.length,le=Z,ge=fe(Z),xe=1/0,Ke=[];le--;){var Je=a[le];le&&u&&(Je=ft(Je,xt(u))),xe=jn(Je.length,xe),ge[le]=!y&&(u||V>=120&&Je.length>=120)?new Va(le&&Je):n}Je=a[0];var rt=-1,gt=ge[0];e:for(;++rt<V&&Ke.length<xe;){var Ot=Je[rt],Lt=u?u(Ot):Ot;if(Ot=y||Ot!==0?Ot:0,!(gt?_t(gt,Lt):P(Ke,Lt,y))){for(le=Z;--le;){var tn=ge[le];if(!(tn?_t(tn,Lt):P(a[le],Lt,y)))continue e}gt&>.push(Lt),Ke.push(Ot)}}return Ke}function tc(a,u,y,P){return So(a,function(V,Z,le){u(P,y(V),Z,le)}),P}function Ii(a,u,y){u=Co(u,a),a=v0(a,u);var P=a==null?a:a[Ms(ba(u))];return P==null?n:H(P,a,y)}function ul(a){return sr(a)&&Cr(a)==Fe}function tu(a){return sr(a)&&Cr(a)==ui}function Ga(a){return sr(a)&&Cr(a)==yt}function ks(a,u,y,P,V){return a===u?!0:a==null||u==null||!sr(a)&&!sr(u)?a!==a&&u!==u:nc(a,u,y,P,ks,V)}function nc(a,u,y,P,V,Z){var le=Xt(a),ge=Xt(u),xe=le?He:Li(a),Ke=ge?He:Li(u);xe=xe==Fe?Kn:xe,Ke=Ke==Fe?Kn:Ke;var Je=xe==Kn,rt=Ke==Kn,gt=xe==Ke;if(gt&&fu(a)){if(!fu(u))return!1;le=!0,Je=!1}if(gt&&!Je)return Z||(Z=new Qi),le||cf(a)?hc(a,u,y,P,V,Z):cu(a,u,xe,y,P,V,Z);if(!(y&_)){var Ot=Je&&At.call(a,"__wrapped__"),Lt=rt&&At.call(u,"__wrapped__");if(Ot||Lt){var tn=Ot?a.value():a,Ft=Lt?u.value():u;return Z||(Z=new Qi),V(tn,Ft,y,P,Z)}}return gt?(Z||(Z=new Qi),sg(a,u,y,P,V,Z)):!1}function qa(a){return sr(a)&&Li(a)==Ht}function rc(a,u,y,P){var V=y.length,Z=V,le=!P;if(a==null)return!Z;for(a=ut(a);V--;){var ge=y[V];if(le&&ge[2]?ge[1]!==a[ge[0]]:!(ge[0]in a))return!1}for(;++V<Z;){ge=y[V];var xe=ge[0],Ke=a[xe],Je=ge[1];if(le&&ge[2]){if(Ke===n&&!(xe in a))return!1}else{var rt=new Qi;if(P)var gt=P(Ke,Je,xe,a,u,rt);if(!(gt===n?ks(Je,Ke,_|I,P,rt):gt))return!1}}return!0}function ic(a){if(!tr(a)||w_(a))return!1;var u=xl(a)?gs:_i;return u.test(gc(a))}function To(a){return sr(a)&&Cr(a)==_r}function Gf(a){return sr(a)&&Li(a)==rr}function qf(a){return sr(a)&&ch(a.length)&&!!Qt[Cr(a)]}function Os(a){return typeof a=="function"?a:a==null?Oo:typeof a=="object"?Xt(a)?no(a[0],a[1]):Wo(a):eb(a)}function cl(a){if(!Kf(a))return Uu(a);var u=[];for(var y in ut(a))At.call(a,y)&&y!="constructor"&&u.push(y);return u}function nu(a){if(!tr(a))return C_(a);var u=Kf(a),y=[];for(var P in a)P=="constructor"&&(u||!At.call(a,P))||y.push(P);return y}function to(a,u){return a<u}function _s(a,u){var y=-1,P=Eo(a)?fe(a.length):[];return ma(a,function(V,Z,le){P[++y]=u(V,Z,le)}),P}function Wo(a){var u=fg(a);return u.length==1&&u[0][2]?p0(u[0][0],u[0][1]):function(y){return y===a||rc(y,a,u)}}function no(a,u){return hg(a)&&h0(u)?p0(Ms(a),u):function(y){var P=Tg(y,a);return P===n&&P===u?Cg(y,a):ks(u,P,_|I)}}function Ds(a,u,y,P,V){a!==u&&Qu(u,function(Z,le){if(V||(V=new Qi),tr(Z))Ai(a,u,le,y,Ds,P,V);else{var ge=P?P(gg(a,le),Z,le+"",a,u,V):n;ge===n&&(ge=Z),Cs(a,le,ge)}},ko)}function Ai(a,u,y,P,V,Z,le){var ge=gg(a,y),xe=gg(u,y),Ke=le.get(xe);if(Ke){Cs(a,y,Ke);return}var Je=Z?Z(ge,xe,y+"",a,u,le):n,rt=Je===n;if(rt){var gt=Xt(xe),Ot=!gt&&fu(xe),Lt=!gt&&!Ot&&cf(xe);Je=xe,gt||Ot||Lt?Xt(ge)?Je=ge:gr(ge)?Je=Er(ge):Ot?(rt=!1,Je=gl(xe,!0)):Lt?(rt=!1,Je=yl(xe,!0)):Je=[]:Jf(xe)||vc(xe)?(Je=ge,vc(ge)?Je=W0(ge):(!tr(ge)||xl(ge))&&(Je=d0(xe))):rt=!1}rt&&(le.set(xe,Je),V(Je,xe,P,Z,le),le.delete(xe)),Cs(a,y,Je)}function Xa(a,u){var y=a.length;if(y)return u+=u<0?y:0,wl(u,y)?a[u]:n}function ru(a,u,y){u.length?u=ft(u,function(Z){return Xt(Z)?function(le){return Ya(le,Z.length===1?Z[0]:Z)}:Z}):u=[Oo];var P=-1;u=ft(u,xt(Pt()));var V=_s(a,function(Z,le,ge){var xe=ft(u,function(Ke){return Ke(Z)});return{criteria:xe,index:++P,value:Z}});return ne(V,function(Z,le){return bl(Z,le,y)})}function Mi(a,u){return zo(a,u,function(y,P){return Cg(a,P)})}function zo(a,u,y){for(var P=-1,V=u.length,Z={};++P<V;){var le=u[P],ge=Ya(a,le);y(ge,le)&&Za(Z,Co(le,a),ge)}return Z}function oc(a){return function(u){return Ya(u,a)}}function Ka(a,u,y,P){var V=P?go:on,Z=-1,le=u.length,ge=a;for(a===u&&(u=Er(u)),y&&(ge=ft(a,xt(y)));++Z<le;)for(var xe=0,Ke=u[Z],Je=y?y(Ke):Ke;(xe=V(ge,Je,xe,P))>-1;)ge!==a&&ja.call(ge,xe,1),ja.call(a,xe,1);return a}function fl(a,u){for(var y=a?u.length:0,P=y-1;y--;){var V=u[y];if(y==P||V!==Z){var Z=V;wl(V)?ja.call(a,V,1):cc(a,V)}}return a}function iu(a,u){return a+bs(Bo()*(u-a+1))}function Jc(a,u,y,P){for(var V=-1,Z=Nn(Js((u-a)/(y||1)),0),le=fe(Z);Z--;)le[P?Z:++V]=a,a+=y;return le}function ac(a,u){var y="";if(!a||u<1||u>Qe)return y;do u%2&&(y+=a),u=bs(u/2),u&&(a+=a);while(u);return y}function Gt(a,u){return vg(g0(a,u,Oo),a+"")}function dl(a){return ln(ff(a))}function Qc(a,u){var y=ff(a);return ih(y,va(u,0,y.length))}function Za(a,u,y,P){if(!tr(a))return a;u=Co(u,a);for(var V=-1,Z=u.length,le=Z-1,ge=a;ge!=null&&++V<Z;){var xe=Ms(u[V]),Ke=y;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return a;if(V!=le){var Je=ge[xe];Ke=P?P(Je,xe,ge):n,Ke===n&&(Ke=tr(Je)?Je:wl(u[V+1])?[]:{})}Vn(ge,xe,Ke),ge=ge[xe]}return a}var Ps=da?function(a,u){return da.set(a,u),a}:Oo,sc=jo?function(a,u){return jo(a,"toString",{configurable:!0,enumerable:!1,value:kg(u),writable:!0})}:Oo;function lc(a){return ih(ff(a))}function ai(a,u,y){var P=-1,V=a.length;u<0&&(u=-u>V?0:V+u),y=y>V?V:y,y<0&&(y+=V),V=u>y?0:y-u>>>0,u>>>=0;for(var Z=fe(V);++P<V;)Z[P]=a[P+u];return Z}function uc(a,u){var y;return ma(a,function(P,V,Z){return y=u(P,V,Z),!y}),!!y}function hl(a,u,y){var P=0,V=a==null?P:a.length;if(typeof u=="number"&&u===u&&V<=We){for(;P<V;){var Z=P+V>>>1,le=a[Z];le!==null&&!Go(le)&&(y?le<=u:le<u)?P=Z+1:V=Z}return V}return ou(a,u,Oo,y)}function ou(a,u,y,P){var V=0,Z=a==null?0:a.length;if(Z===0)return 0;u=y(u);for(var le=u!==u,ge=u===null,xe=Go(u),Ke=u===n;V<Z;){var Je=bs((V+Z)/2),rt=y(a[Je]),gt=rt!==n,Ot=rt===null,Lt=rt===rt,tn=Go(rt);if(le)var Ft=P||Lt;else Ke?Ft=Lt&&(P||gt):ge?Ft=Lt&>&&(P||!Ot):xe?Ft=Lt&>&&!Ot&&(P||!tn):Ot||tn?Ft=!1:Ft=P?rt<=u:rt<u;Ft?V=Je+1:Z=Je}return jn(Z,Ye)}function au(a,u){for(var y=-1,P=a.length,V=0,Z=[];++y<P;){var le=a[y],ge=u?u(le):le;if(!y||!es(ge,xe)){var xe=ge;Z[V++]=le===0?0:le}}return Z}function ef(a){return typeof a=="number"?a:Go(a)?Ee:+a}function xi(a){if(typeof a=="string")return a;if(Xt(a))return ft(a,xi)+"";if(Go(a))return Ba?Ba.call(a):"";var u=a+"";return u=="0"&&1/a==-Ve?"-0":u}function Yo(a,u,y){var P=-1,V=ke,Z=a.length,le=!0,ge=[],xe=ge;if(y)le=!1,V=Xe;else if(Z>=i){var Ke=u?null:Mt(a);if(Ke)return Xi(Ke);le=!1,V=_t,xe=new Va}else xe=u?[]:ge;e:for(;++P<Z;){var Je=a[P],rt=u?u(Je):Je;if(Je=y||Je!==0?Je:0,le&&rt===rt){for(var gt=xe.length;gt--;)if(xe[gt]===rt)continue e;u&&xe.push(rt),ge.push(Je)}else V(xe,rt,y)||(xe!==ge&&xe.push(rt),ge.push(Je))}return ge}function cc(a,u){return u=Co(u,a),a=v0(a,u),a==null||delete a[Ms(ba(u))]}function tf(a,u,y,P){return Za(a,u,y(Ya(a,u)),P)}function Rs(a,u,y,P){for(var V=a.length,Z=P?V:-1;(P?Z--:++Z<V)&&u(a[Z],Z,a););return y?ai(a,P?0:Z,P?Z+1:V):ai(a,P?Z+1:0,P?V:Z)}function nf(a,u){var y=a;return y instanceof qt&&(y=y.value()),Rt(u,function(P,V){return V.func.apply(V.thisArg,Dt([P],V.args))},y)}function zr(a,u,y){var P=a.length;if(P<2)return P?Yo(a[0]):[];for(var V=-1,Z=fe(P);++V<P;)for(var le=a[V],ge=-1;++ge<P;)ge!=V&&(Z[V]=Uo(Z[V]||le,a[ge],u,y));return Yo(pr(Z,1),u,y)}function su(a,u,y){for(var P=-1,V=a.length,Z=u.length,le={};++P<V;){var ge=P<Z?u[P]:n;y(le,a[P],ge)}return le}function lu(a){return gr(a)?a:[]}function Yr(a){return typeof a=="function"?a:Oo}function Co(a,u){return Xt(a)?a:hg(a,u)?[a]:w0(wn(a))}var rf=Gt;function ya(a,u,y){var P=a.length;return y=y===n?P:y,!u&&y>=P?a:ai(a,u,y)}var pl=Ks||function(a){return yn.clearTimeout(a)};function gl(a,u){if(u)return a.slice();var y=a.length,P=$l?$l(y):new a.constructor(y);return a.copy(P),P}function uu(a){var u=new a.constructor(a.byteLength);return new ms(u).set(new ms(a)),u}function of(a,u){var y=u?uu(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function vl(a){var u=new a.constructor(a.source,pi.exec(a));return u.lastIndex=a.lastIndex,u}function ml(a){return rl?ut(rl.call(a)):{}}function yl(a,u){var y=u?uu(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function fc(a,u){if(a!==u){var y=a!==n,P=a===null,V=a===a,Z=Go(a),le=u!==n,ge=u===null,xe=u===u,Ke=Go(u);if(!ge&&!Ke&&!Z&&a>u||Z&&le&&xe&&!ge&&!Ke||P&&le&&xe||!y&&xe||!V)return 1;if(!P&&!Z&&!Ke&&a<u||Ke&&y&&V&&!P&&!Z||ge&&y&&V||!le&&V||!xe)return-1}return 0}function bl(a,u,y){for(var P=-1,V=a.criteria,Z=u.criteria,le=V.length,ge=y.length;++P<le;){var xe=fc(V[P],Z[P]);if(xe){if(P>=ge)return xe;var Ke=y[P];return xe*(Ke=="desc"?-1:1)}}return a.index-u.index}function Is(a,u,y,P){for(var V=-1,Z=a.length,le=y.length,ge=-1,xe=u.length,Ke=Nn(Z-le,0),Je=fe(xe+Ke),rt=!P;++ge<xe;)Je[ge]=u[ge];for(;++V<le;)(rt||V<Z)&&(Je[y[V]]=a[V]);for(;Ke--;)Je[ge++]=a[V++];return Je}function af(a,u,y,P){for(var V=-1,Z=a.length,le=-1,ge=y.length,xe=-1,Ke=u.length,Je=Nn(Z-ge,0),rt=fe(Je+Ke),gt=!P;++V<Je;)rt[V]=a[V];for(var Ot=V;++xe<Ke;)rt[Ot+xe]=u[xe];for(;++le<ge;)(gt||V<Z)&&(rt[Ot+y[le]]=a[V++]);return rt}function Er(a,u){var y=-1,P=a.length;for(u||(u=fe(P));++y<P;)u[y]=a[y];return u}function Si(a,u,y,P){var V=!y;y||(y={});for(var Z=-1,le=u.length;++Z<le;){var ge=u[Z],xe=P?P(y[ge],a[ge],ge,y,a):n;xe===n&&(xe=a[ge]),V?hr(y,ge,xe):Vn(y,ge,xe)}return y}function Xf(a,u){return Si(a,dg(a),u)}function sf(a,u){return Si(a,c0(a),u)}function Ja(a,u){return function(y,P){var V=Xt(y)?ue:Wa,Z=u?u():{};return V(y,a,Pt(P,2),Z)}}function As(a){return Gt(function(u,y){var P=-1,V=y.length,Z=V>1?y[V-1]:n,le=V>2?y[2]:n;for(Z=a.length>3&&typeof Z=="function"?(V--,Z):n,le&&ro(y[0],y[1],le)&&(Z=V<3?n:Z,V=1),u=ut(u);++P<V;){var ge=y[P];ge&&a(u,ge,P,Z)}return u})}function g(a,u){return function(y,P){if(y==null)return y;if(!Eo(y))return a(y,P);for(var V=y.length,Z=u?V:-1,le=ut(y);(u?Z--:++Z<V)&&P(le[Z],Z,le)!==!1;);return y}}function w(a){return function(u,y,P){for(var V=-1,Z=ut(u),le=P(u),ge=le.length;ge--;){var xe=le[a?ge:++V];if(y(Z[xe],xe,Z)===!1)break}return u}}function A(a,u,y){var P=u&L,V=se(a);function Z(){var le=this&&this!==yn&&this instanceof Z?V:a;return le.apply(P?y:this,arguments)}return Z}function $(a){return function(u){u=wn(u);var y=oi(u)?dr(u):n,P=y?y[0]:u.charAt(0),V=y?ya(y,1).join(""):u.slice(1);return P[a]()+V}}function K(a){return function(u){return Rt(J0(Z0(u).replace(Aa,"")),a,"")}}function se(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var y=pa(a.prototype),P=a.apply(y,u);return tr(P)?P:y}}function ye(a,u,y){var P=se(a);function V(){for(var Z=arguments.length,le=fe(Z),ge=Z,xe=uf(V);ge--;)le[ge]=arguments[ge];var Ke=Z<3&&le[0]!==xe&&le[Z-1]!==xe?[]:wi(le,xe);if(Z-=Ke.length,Z<y)return vt(a,u,b,V.placeholder,n,le,Ke,n,n,y-Z);var Je=this&&this!==yn&&this instanceof V?P:a;return H(Je,this,le)}return V}function Ae(a){return function(u,y,P){var V=ut(u);if(!Eo(u)){var Z=Pt(y,3);u=si(u),y=function(ge){return Z(V[ge],ge,V)}}var le=a(u,y,P);return le>-1?V[Z?u[le]:le]:n}}function h(a){return Qa(function(u){var y=u.length,P=y,V=Ur.prototype.thru;for(a&&u.reverse();P--;){var Z=u[P];if(typeof Z!="function")throw new Yt(s);if(V&&!le&&nh(Z)=="wrapper")var le=new Ur([],!0)}for(P=le?P:y;++P<y;){Z=u[P];var ge=nh(Z),xe=ge=="wrapper"?cg(Z):n;xe&&pg(xe[0])&&xe[1]==(S|W|J|ce)&&!xe[4].length&&xe[9]==1?le=le[nh(xe[0])].apply(le,xe[3]):le=Z.length==1&&pg(Z)?le[ge]():le.thru(Z)}return function(){var Ke=arguments,Je=Ke[0];if(le&&Ke.length==1&&Xt(Je))return le.plant(Je).value();for(var rt=0,gt=y?u[rt].apply(this,Ke):Je;++rt<y;)gt=u[rt].call(this,gt);return gt}})}function b(a,u,y,P,V,Z,le,ge,xe,Ke){var Je=u&S,rt=u&L,gt=u&R,Ot=u&(W|te),Lt=u&ae,tn=gt?n:se(a);function Ft(){for(var rn=arguments.length,an=fe(rn),qo=rn;qo--;)an[qo]=arguments[qo];if(Ot)var io=uf(Ft),Xo=Cn(an,io);if(P&&(an=Is(an,P,V,Ot)),Z&&(an=af(an,Z,le,Ot)),rn-=Xo,Ot&&rn<Ke){var vr=wi(an,io);return vt(a,u,b,Ft.placeholder,y,an,vr,ge,xe,Ke-rn)}var ts=rt?y:this,Tl=gt?ts[a]:a;return rn=an.length,ge?an=k_(an,ge):Lt&&rn>1&&an.reverse(),Je&&xe<rn&&(an.length=xe),this&&this!==yn&&this instanceof Ft&&(Tl=tn||se(Tl)),Tl.apply(ts,an)}return Ft}function D(a,u){return function(y,P){return tc(y,a,u(P),{})}}function M(a,u){return function(y,P){var V;if(y===n&&P===n)return u;if(y!==n&&(V=y),P!==n){if(V===n)return P;typeof y=="string"||typeof P=="string"?(y=xi(y),P=xi(P)):(y=ef(y),P=ef(P)),V=a(y,P)}return V}}function Y(a){return Qa(function(u){return u=ft(u,xt(Pt())),Gt(function(y){var P=this;return a(u,function(V){return H(V,P,y)})})})}function ie(a,u){u=u===n?" ":xi(u);var y=u.length;if(y<2)return y?ac(u,a):u;var P=ac(u,Js(a/yo(u)));return oi(u)?ya(dr(P),0,a).join(""):P.slice(0,a)}function de(a,u,y,P){var V=u&L,Z=se(a);function le(){for(var ge=-1,xe=arguments.length,Ke=-1,Je=P.length,rt=fe(Je+xe),gt=this&&this!==yn&&this instanceof le?Z:a;++Ke<Je;)rt[Ke]=P[Ke];for(;xe--;)rt[Ke++]=arguments[++ge];return H(gt,V?y:this,rt)}return le}function Ie(a){return function(u,y,P){return P&&typeof P!="number"&&ro(u,y,P)&&(y=P=n),u=Sl(u),y===n?(y=u,u=0):y=Sl(y),P=P===n?u<y?1:-1:Sl(P),Jc(u,y,P,a)}}function Ze(a){return function(u,y){return typeof u=="string"&&typeof y=="string"||(u=wa(u),y=wa(y)),a(u,y)}}function vt(a,u,y,P,V,Z,le,ge,xe,Ke){var Je=u&W,rt=Je?le:n,gt=Je?n:le,Ot=Je?Z:n,Lt=Je?n:Z;u|=Je?J:pe,u&=~(Je?pe:J),u&U||(u&=~(L|R));var tn=[a,u,V,Ot,rt,Lt,gt,ge,xe,Ke],Ft=y.apply(n,tn);return pg(a)&&m0(Ft,tn),Ft.placeholder=P,y0(Ft,a,u)}function St(a){var u=pt[a];return function(y,P){if(y=wa(y),P=P==null?0:jn(en(P),292),P&&Hu(y)){var V=(wn(y)+"e").split("e"),Z=u(V[0]+"e"+(+V[1]+P));return V=(wn(Z)+"e").split("e"),+(V[0]+"e"+(+V[1]-P))}return u(y)}}var Mt=Hr&&1/Xi(new Hr([,-0]))[1]==Ve?function(a){return new Hr(a)}:Dg;function bn(a){return function(u){var y=Li(u);return y==Ht?ds(u):y==rr?qs(u):Be(u,a(u))}}function On(a,u,y,P,V,Z,le,ge){var xe=u&R;if(!xe&&typeof a!="function")throw new Yt(s);var Ke=P?P.length:0;if(Ke||(u&=~(J|pe),P=V=n),le=le===n?le:Nn(en(le),0),ge=ge===n?ge:en(ge),Ke-=V?V.length:0,u&pe){var Je=P,rt=V;P=V=n}var gt=xe?n:cg(a),Ot=[a,u,y,P,V,Je,rt,Z,le,ge];if(gt&&T_(Ot,gt),a=Ot[0],u=Ot[1],y=Ot[2],P=Ot[3],V=Ot[4],ge=Ot[9]=Ot[9]===n?xe?0:a.length:Nn(Ot[9]-Ke,0),!ge&&u&(W|te)&&(u&=~(W|te)),!u||u==L)var Lt=A(a,u,y);else u==W||u==te?Lt=ye(a,u,ge):(u==J||u==(L|J))&&!V.length?Lt=de(a,u,y,P):Lt=b.apply(n,Ot);var tn=gt?Ps:m0;return y0(tn(Lt,Ot),a,u)}function Ti(a,u,y,P){return a===n||es(a,qn[y])&&!At.call(P,y)?u:a}function dc(a,u,y,P,V,Z){return tr(a)&&tr(u)&&(Z.set(u,a),Ds(a,u,n,dc,Z),Z.delete(u)),a}function lf(a){return Jf(a)?n:a}function hc(a,u,y,P,V,Z){var le=y&_,ge=a.length,xe=u.length;if(ge!=xe&&!(le&&xe>ge))return!1;var Ke=Z.get(a),Je=Z.get(u);if(Ke&&Je)return Ke==u&&Je==a;var rt=-1,gt=!0,Ot=y&I?new Va:n;for(Z.set(a,u),Z.set(u,a);++rt<ge;){var Lt=a[rt],tn=u[rt];if(P)var Ft=le?P(tn,Lt,rt,u,a,Z):P(Lt,tn,rt,a,u,Z);if(Ft!==n){if(Ft)continue;gt=!1;break}if(Ot){if(!dn(u,function(rn,an){if(!_t(Ot,an)&&(Lt===rn||V(Lt,rn,y,P,Z)))return Ot.push(an)})){gt=!1;break}}else if(!(Lt===tn||V(Lt,tn,y,P,Z))){gt=!1;break}}return Z.delete(a),Z.delete(u),gt}function cu(a,u,y,P,V,Z,le){switch(y){case un:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case ui:return!(a.byteLength!=u.byteLength||!Z(new ms(a),new ms(u)));case ct:case yt:case Xn:return es(+a,+u);case Tt:return a.name==u.name&&a.message==u.message;case _r:case cn:return a==u+"";case Ht:var ge=ds;case rr:var xe=P&_;if(ge||(ge=Xi),a.size!=u.size&&!xe)return!1;var Ke=le.get(a);if(Ke)return Ke==u;P|=I,le.set(a,u);var Je=hc(ge(a),ge(u),P,V,Z,le);return le.delete(a),Je;case hn:if(rl)return rl.call(a)==rl.call(u)}return!1}function sg(a,u,y,P,V,Z){var le=y&_,ge=lg(a),xe=ge.length,Ke=lg(u),Je=Ke.length;if(xe!=Je&&!le)return!1;for(var rt=xe;rt--;){var gt=ge[rt];if(!(le?gt in u:At.call(u,gt)))return!1}var Ot=Z.get(a),Lt=Z.get(u);if(Ot&&Lt)return Ot==u&&Lt==a;var tn=!0;Z.set(a,u),Z.set(u,a);for(var Ft=le;++rt<xe;){gt=ge[rt];var rn=a[gt],an=u[gt];if(P)var qo=le?P(an,rn,gt,u,a,Z):P(rn,an,gt,a,u,Z);if(!(qo===n?rn===an||V(rn,an,y,P,Z):qo)){tn=!1;break}Ft||(Ft=gt=="constructor")}if(tn&&!Ft){var io=a.constructor,Xo=u.constructor;io!=Xo&&"constructor"in a&&"constructor"in u&&!(typeof io=="function"&&io instanceof io&&typeof Xo=="function"&&Xo instanceof Xo)&&(tn=!1)}return Z.delete(a),Z.delete(u),tn}function Qa(a){return vg(g0(a,n,C0),a+"")}function lg(a){return ol(a,si,dg)}function ug(a){return ol(a,ko,c0)}var cg=da?function(a){return da.get(a)}:Dg;function nh(a){for(var u=a.name+"",y=ha[u],P=At.call(ha,u)?y.length:0;P--;){var V=y[P],Z=V.func;if(Z==null||Z==a)return V.name}return u}function uf(a){var u=At.call(G,"placeholder")?G:a;return u.placeholder}function Pt(){var a=G.iteratee||Og;return a=a===Og?Os:a,arguments.length?a(arguments[0],arguments[1]):a}function rh(a,u){var y=a.__data__;return b_(u)?y[typeof u=="string"?"string":"hash"]:y.map}function fg(a){for(var u=si(a),y=u.length;y--;){var P=u[y],V=a[P];u[y]=[P,V,h0(V)]}return u}function pc(a,u){var y=aa(a,u);return ic(y)?y:n}function d_(a){var u=At.call(a,Zi),y=a[Zi];try{a[Zi]=n;var P=!0}catch{}var V=ua.call(a);return P&&(u?a[Zi]=y:delete a[Zi]),V}var dg=Qs?function(a){return a==null?[]:(a=ut(a),je(Qs(a),function(u){return $u.call(a,u)}))}:Pg,c0=Qs?function(a){for(var u=[];a;)Dt(u,dg(a)),a=ys(a);return u}:Pg,Li=Cr;($o&&Li(new $o(new ArrayBuffer(1)))!=un||Ji&&Li(new Ji)!=Ht||el&&Li(el.resolve())!=Dn||Hr&&Li(new Hr)!=rr||ca&&Li(new ca)!=mt)&&(Li=function(a){var u=Cr(a),y=u==Kn?a.constructor:n,P=y?gc(y):"";if(P)switch(P){case tl:return un;case Uc:return Ht;case Wc:return Dn;case Ul:return rr;case nl:return mt}return u});function h_(a,u,y){for(var P=-1,V=y.length;++P<V;){var Z=y[P],le=Z.size;switch(Z.type){case"drop":a+=le;break;case"dropRight":u-=le;break;case"take":u=jn(u,a+le);break;case"takeRight":a=Nn(a,u-le);break}}return{start:a,end:u}}function p_(a){var u=a.match(Ia);return u?u[1].split(Jr):[]}function f0(a,u,y){u=Co(u,a);for(var P=-1,V=u.length,Z=!1;++P<V;){var le=Ms(u[P]);if(!(Z=a!=null&&y(a,le)))break;a=a[le]}return Z||++P!=V?Z:(V=a==null?0:a.length,!!V&&ch(V)&&wl(le,V)&&(Xt(a)||vc(a)))}function g_(a){var u=a.length,y=new a.constructor(u);return u&&typeof a[0]=="string"&&At.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function d0(a){return typeof a.constructor=="function"&&!Kf(a)?pa(ys(a)):{}}function v_(a,u,y){var P=a.constructor;switch(u){case ui:return uu(a);case ct:case yt:return new P(+a);case un:return of(a,y);case Vi:case Hi:case Ui:case Dr:case Wn:case Pr:case yr:case Xr:case Kr:return yl(a,y);case Ht:return new P;case Xn:case cn:return new P(a);case _r:return vl(a);case rr:return new P;case hn:return ml(a)}}function m_(a,u){var y=u.length;if(!y)return a;var P=y-1;return u[P]=(y>1?"& ":"")+u[P],u=u.join(y>2?", ":" "),a.replace(Ra,`{
|
|
152
|
-
/* [wrapped with `+u+`] */
|
|
153
|
-
`)}function y_(a){return Xt(a)||vc(a)||!!(Vl&&a&&a[Vl])}function wl(a,u){var y=typeof a;return u=u??Qe,!!u&&(y=="number"||y!="symbol"&&wr.test(a))&&a>-1&&a%1==0&&a<u}function ro(a,u,y){if(!tr(y))return!1;var P=typeof u;return(P=="number"?Eo(y)&&wl(u,y.length):P=="string"&&u in y)?es(y[u],a):!1}function hg(a,u){if(Xt(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Go(a)?!0:mn.test(a)||!di.test(a)||u!=null&&a in ut(u)}function b_(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function pg(a){var u=nh(a),y=G[u];if(typeof y!="function"||!(u in qt.prototype))return!1;if(a===y)return!0;var P=cg(y);return!!P&&a===P[0]}function w_(a){return!!En&&En in a}var x_=Vr?xl:Rg;function Kf(a){var u=a&&a.constructor,y=typeof u=="function"&&u.prototype||qn;return a===y}function h0(a){return a===a&&!tr(a)}function p0(a,u){return function(y){return y==null?!1:y[a]===u&&(u!==n||a in ut(y))}}function S_(a){var u=lh(a,function(P){return y.size===d&&y.clear(),P}),y=u.cache;return u}function T_(a,u){var y=a[1],P=u[1],V=y|P,Z=V<(L|R|S),le=P==S&&y==W||P==S&&y==ce&&a[7].length<=u[8]||P==(S|ce)&&u[7].length<=u[8]&&y==W;if(!(Z||le))return a;P&L&&(a[2]=u[2],V|=y&L?0:U);var ge=u[3];if(ge){var xe=a[3];a[3]=xe?Is(xe,ge,u[4]):ge,a[4]=xe?wi(a[3],v):u[4]}return ge=u[5],ge&&(xe=a[5],a[5]=xe?af(xe,ge,u[6]):ge,a[6]=xe?wi(a[5],v):u[6]),ge=u[7],ge&&(a[7]=ge),P&S&&(a[8]=a[8]==null?u[8]:jn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=V,a}function C_(a){var u=[];if(a!=null)for(var y in ut(a))u.push(y);return u}function E_(a){return ua.call(a)}function g0(a,u,y){return u=Nn(u===n?a.length-1:u,0),function(){for(var P=arguments,V=-1,Z=Nn(P.length-u,0),le=fe(Z);++V<Z;)le[V]=P[u+V];V=-1;for(var ge=fe(u+1);++V<u;)ge[V]=P[V];return ge[u]=y(le),H(a,this,ge)}}function v0(a,u){return u.length<2?a:Ya(a,ai(u,0,-1))}function k_(a,u){for(var y=a.length,P=jn(u.length,y),V=Er(a);P--;){var Z=u[P];a[P]=wl(Z,y)?V[Z]:n}return a}function gg(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var m0=b0(Ps),Zf=Hl||function(a,u){return yn.setTimeout(a,u)},vg=b0(sc);function y0(a,u,y){var P=u+"";return vg(a,m_(P,O_(p_(P),y)))}function b0(a){var u=0,y=0;return function(){var P=Wu(),V=it-(P-y);if(y=P,V>0){if(++u>=qe)return arguments[0]}else u=0;return a.apply(n,arguments)}}function ih(a,u){var y=-1,P=a.length,V=P-1;for(u=u===n?P:u;++y<u;){var Z=iu(y,V),le=a[Z];a[Z]=a[y],a[y]=le}return a.length=u,a}var w0=S_(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(uo,function(y,P,V,Z){u.push(V?Z.replace(Ro,"$1"):P||y)}),u});function Ms(a){if(typeof a=="string"||Go(a))return a;var u=a+"";return u=="0"&&1/a==-Ve?"-0":u}function gc(a){if(a!=null){try{return Ki.call(a)}catch{}try{return a+""}catch{}}return""}function O_(a,u){return oe(Re,function(y){var P="_."+y[0];u&y[1]&&!ke(a,P)&&a.push(P)}),a.sort()}function x0(a){if(a instanceof qt)return a.clone();var u=new Ur(a.__wrapped__,a.__chain__);return u.__actions__=Er(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function __(a,u,y){(y?ro(a,u,y):u===n)?u=1:u=Nn(en(u),0);var P=a==null?0:a.length;if(!P||u<1)return[];for(var V=0,Z=0,le=fe(Js(P/u));V<P;)le[Z++]=ai(a,V,V+=u);return le}function D_(a){for(var u=-1,y=a==null?0:a.length,P=0,V=[];++u<y;){var Z=a[u];Z&&(V[P++]=Z)}return V}function P_(){var a=arguments.length;if(!a)return[];for(var u=fe(a-1),y=arguments[0],P=a;P--;)u[P-1]=arguments[P];return Dt(Xt(y)?Er(y):[y],pr(u,1))}var R_=Gt(function(a,u){return gr(a)?Uo(a,pr(u,1,gr,!0)):[]}),I_=Gt(function(a,u){var y=ba(u);return gr(y)&&(y=n),gr(a)?Uo(a,pr(u,1,gr,!0),Pt(y,2)):[]}),A_=Gt(function(a,u){var y=ba(u);return gr(y)&&(y=n),gr(a)?Uo(a,pr(u,1,gr,!0),n,y):[]});function M_(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),ai(a,u<0?0:u,P)):[]}function L_(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),u=P-u,ai(a,0,u<0?0:u)):[]}function F_(a,u){return a&&a.length?Rs(a,Pt(u,3),!0,!0):[]}function N_(a,u){return a&&a.length?Rs(a,Pt(u,3),!0):[]}function j_(a,u,y,P){var V=a==null?0:a.length;return V?(y&&typeof y!="number"&&ro(a,u,y)&&(y=0,P=V),Xc(a,u,y,P)):[]}function S0(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(P+V,0)),zt(a,Pt(u,3),V)}function T0(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=P-1;return y!==n&&(V=en(y),V=y<0?Nn(P+V,0):jn(V,P-1)),zt(a,Pt(u,3),V,!0)}function C0(a){var u=a==null?0:a.length;return u?pr(a,1):[]}function B_(a){var u=a==null?0:a.length;return u?pr(a,Ve):[]}function $_(a,u){var y=a==null?0:a.length;return y?(u=u===n?1:en(u),pr(a,u)):[]}function V_(a){for(var u=-1,y=a==null?0:a.length,P={};++u<y;){var V=a[u];P[V[0]]=V[1]}return P}function E0(a){return a&&a.length?a[0]:n}function H_(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=y==null?0:en(y);return V<0&&(V=Nn(P+V,0)),on(a,u,V)}function U_(a){var u=a==null?0:a.length;return u?ai(a,0,-1):[]}var W_=Gt(function(a){var u=ft(a,lu);return u.length&&u[0]===a[0]?Es(u):[]}),z_=Gt(function(a){var u=ba(a),y=ft(a,lu);return u===ba(y)?u=n:y.pop(),y.length&&y[0]===a[0]?Es(y,Pt(u,2)):[]}),Y_=Gt(function(a){var u=ba(a),y=ft(a,lu);return u=typeof u=="function"?u:n,u&&y.pop(),y.length&&y[0]===a[0]?Es(y,n,u):[]});function G_(a,u){return a==null?"":ws.call(a,u)}function ba(a){var u=a==null?0:a.length;return u?a[u-1]:n}function q_(a,u,y){var P=a==null?0:a.length;if(!P)return-1;var V=P;return y!==n&&(V=en(y),V=V<0?Nn(P+V,0):jn(V,P-1)),u===u?la(a,u,V):zt(a,vo,V,!0)}function X_(a,u){return a&&a.length?Xa(a,en(u)):n}var K_=Gt(k0);function k0(a,u){return a&&a.length&&u&&u.length?Ka(a,u):a}function Z_(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,Pt(y,2)):a}function J_(a,u,y){return a&&a.length&&u&&u.length?Ka(a,u,n,y):a}var Q_=Qa(function(a,u){var y=a==null?0:a.length,P=qu(a,u);return fl(a,ft(u,function(V){return wl(V,y)?+V:V}).sort(fc)),P});function eD(a,u){var y=[];if(!(a&&a.length))return y;var P=-1,V=[],Z=a.length;for(u=Pt(u,3);++P<Z;){var le=a[P];u(le,P,a)&&(y.push(le),V.push(P))}return fl(a,V),y}function mg(a){return a==null?a:Hc.call(a)}function tD(a,u,y){var P=a==null?0:a.length;return P?(y&&typeof y!="number"&&ro(a,u,y)?(u=0,y=P):(u=u==null?0:en(u),y=y===n?P:en(y)),ai(a,u,y)):[]}function nD(a,u){return hl(a,u)}function rD(a,u,y){return ou(a,u,Pt(y,2))}function iD(a,u){var y=a==null?0:a.length;if(y){var P=hl(a,u);if(P<y&&es(a[P],u))return P}return-1}function oD(a,u){return hl(a,u,!0)}function aD(a,u,y){return ou(a,u,Pt(y,2),!0)}function sD(a,u){var y=a==null?0:a.length;if(y){var P=hl(a,u,!0)-1;if(es(a[P],u))return P}return-1}function lD(a){return a&&a.length?au(a):[]}function uD(a,u){return a&&a.length?au(a,Pt(u,2)):[]}function cD(a){var u=a==null?0:a.length;return u?ai(a,1,u):[]}function fD(a,u,y){return a&&a.length?(u=y||u===n?1:en(u),ai(a,0,u<0?0:u)):[]}function dD(a,u,y){var P=a==null?0:a.length;return P?(u=y||u===n?1:en(u),u=P-u,ai(a,u<0?0:u,P)):[]}function hD(a,u){return a&&a.length?Rs(a,Pt(u,3),!1,!0):[]}function pD(a,u){return a&&a.length?Rs(a,Pt(u,3)):[]}var gD=Gt(function(a){return Yo(pr(a,1,gr,!0))}),vD=Gt(function(a){var u=ba(a);return gr(u)&&(u=n),Yo(pr(a,1,gr,!0),Pt(u,2))}),mD=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,Yo(pr(a,1,gr,!0),n,u)});function yD(a){return a&&a.length?Yo(a):[]}function bD(a,u){return a&&a.length?Yo(a,Pt(u,2)):[]}function wD(a,u){return u=typeof u=="function"?u:n,a&&a.length?Yo(a,n,u):[]}function yg(a){if(!(a&&a.length))return[];var u=0;return a=je(a,function(y){if(gr(y))return u=Nn(y.length,u),!0}),Ce(u,function(y){return ft(a,k(y))})}function O0(a,u){if(!(a&&a.length))return[];var y=yg(a);return u==null?y:ft(y,function(P){return H(u,n,P)})}var xD=Gt(function(a,u){return gr(a)?Uo(a,u):[]}),SD=Gt(function(a){return zr(je(a,gr))}),TD=Gt(function(a){var u=ba(a);return gr(u)&&(u=n),zr(je(a,gr),Pt(u,2))}),CD=Gt(function(a){var u=ba(a);return u=typeof u=="function"?u:n,zr(je(a,gr),n,u)}),ED=Gt(yg);function kD(a,u){return su(a||[],u||[],Vn)}function OD(a,u){return su(a||[],u||[],Za)}var _D=Gt(function(a){var u=a.length,y=u>1?a[u-1]:n;return y=typeof y=="function"?(a.pop(),y):n,O0(a,y)});function _0(a){var u=G(a);return u.__chain__=!0,u}function DD(a,u){return u(a),a}function oh(a,u){return u(a)}var PD=Qa(function(a){var u=a.length,y=u?a[0]:0,P=this.__wrapped__,V=function(Z){return qu(Z,a)};return u>1||this.__actions__.length||!(P instanceof qt)||!wl(y)?this.thru(V):(P=P.slice(y,+y+(u?1:0)),P.__actions__.push({func:oh,args:[V],thisArg:n}),new Ur(P,this.__chain__).thru(function(Z){return u&&!Z.length&&Z.push(n),Z}))});function RD(){return _0(this)}function ID(){return new Ur(this.value(),this.__chain__)}function AD(){this.__values__===n&&(this.__values__=H0(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function MD(){return this}function LD(a){for(var u,y=this;y instanceof $a;){var P=x0(y);P.__index__=0,P.__values__=n,u?V.__wrapped__=P:u=P;var V=P;y=y.__wrapped__}return V.__wrapped__=a,u}function FD(){var a=this.__wrapped__;if(a instanceof qt){var u=a;return this.__actions__.length&&(u=new qt(this)),u=u.reverse(),u.__actions__.push({func:oh,args:[mg],thisArg:n}),new Ur(u,this.__chain__)}return this.thru(mg)}function ND(){return nf(this.__wrapped__,this.__actions__)}var jD=Ja(function(a,u,y){At.call(a,y)?++a[y]:hr(a,y,1)});function BD(a,u,y){var P=Xt(a)?Le:Jl;return y&&ro(a,u,y)&&(u=n),P(a,Pt(u,3))}function $D(a,u){var y=Xt(a)?je:Ju;return y(a,Pt(u,3))}var VD=Ae(S0),HD=Ae(T0);function UD(a,u){return pr(ah(a,u),1)}function WD(a,u){return pr(ah(a,u),Ve)}function zD(a,u,y){return y=y===n?1:en(y),pr(ah(a,u),y)}function D0(a,u){var y=Xt(a)?oe:ma;return y(a,Pt(u,3))}function P0(a,u){var y=Xt(a)?we:Zu;return y(a,Pt(u,3))}var YD=Ja(function(a,u,y){At.call(a,y)?a[y].push(u):hr(a,y,[u])});function GD(a,u,y,P){a=Eo(a)?a:ff(a),y=y&&!P?en(y):0;var V=a.length;return y<0&&(y=Nn(V+y,0)),fh(a)?y<=V&&a.indexOf(u,y)>-1:!!V&&on(a,u,y)>-1}var qD=Gt(function(a,u,y){var P=-1,V=typeof u=="function",Z=Eo(a)?fe(a.length):[];return ma(a,function(le){Z[++P]=V?H(u,le,y):Ii(le,u,y)}),Z}),XD=Ja(function(a,u,y){hr(a,y,u)});function ah(a,u){var y=Xt(a)?ft:_s;return y(a,Pt(u,3))}function KD(a,u,y,P){return a==null?[]:(Xt(u)||(u=u==null?[]:[u]),y=P?n:y,Xt(y)||(y=y==null?[]:[y]),ru(a,u,y))}var ZD=Ja(function(a,u,y){a[y?0:1].push(u)},function(){return[[],[]]});function JD(a,u,y){var P=Xt(a)?Rt:z,V=arguments.length<3;return P(a,Pt(u,4),y,V,ma)}function QD(a,u,y){var P=Xt(a)?Ln:z,V=arguments.length<3;return P(a,Pt(u,4),y,V,Zu)}function eP(a,u){var y=Xt(a)?je:Ju;return y(a,uh(Pt(u,3)))}function tP(a){var u=Xt(a)?ln:dl;return u(a)}function nP(a,u,y){(y?ro(a,u,y):u===n)?u=1:u=en(u);var P=Xt(a)?Pi:Qc;return P(a,u)}function rP(a){var u=Xt(a)?Ua:lc;return u(a)}function iP(a){if(a==null)return 0;if(Eo(a))return fh(a)?yo(a):a.length;var u=Li(a);return u==Ht||u==rr?a.size:cl(a).length}function oP(a,u,y){var P=Xt(a)?dn:uc;return y&&ro(a,u,y)&&(u=n),P(a,Pt(u,3))}var aP=Gt(function(a,u){if(a==null)return[];var y=u.length;return y>1&&ro(a,u[0],u[1])?u=[]:y>2&&ro(u[0],u[1],u[2])&&(u=[u[0]]),ru(a,pr(u,1),[])}),sh=Zs||function(){return yn.Date.now()};function sP(a,u){if(typeof u!="function")throw new Yt(s);return a=en(a),function(){if(--a<1)return u.apply(this,arguments)}}function R0(a,u,y){return u=y?n:u,u=a&&u==null?a.length:u,On(a,S,n,n,n,n,u)}function I0(a,u){var y;if(typeof u!="function")throw new Yt(s);return a=en(a),function(){return--a>0&&(y=u.apply(this,arguments)),a<=1&&(u=n),y}}var bg=Gt(function(a,u,y){var P=L;if(y.length){var V=wi(y,uf(bg));P|=J}return On(a,P,u,y,V)}),A0=Gt(function(a,u,y){var P=L|R;if(y.length){var V=wi(y,uf(A0));P|=J}return On(u,P,a,y,V)});function M0(a,u,y){u=y?n:u;var P=On(a,W,n,n,n,n,n,u);return P.placeholder=M0.placeholder,P}function L0(a,u,y){u=y?n:u;var P=On(a,te,n,n,n,n,n,u);return P.placeholder=L0.placeholder,P}function F0(a,u,y){var P,V,Z,le,ge,xe,Ke=0,Je=!1,rt=!1,gt=!0;if(typeof a!="function")throw new Yt(s);u=wa(u)||0,tr(y)&&(Je=!!y.leading,rt="maxWait"in y,Z=rt?Nn(wa(y.maxWait)||0,u):Z,gt="trailing"in y?!!y.trailing:gt);function Ot(vr){var ts=P,Tl=V;return P=V=n,Ke=vr,le=a.apply(Tl,ts),le}function Lt(vr){return Ke=vr,ge=Zf(rn,u),Je?Ot(vr):le}function tn(vr){var ts=vr-xe,Tl=vr-Ke,tb=u-ts;return rt?jn(tb,Z-Tl):tb}function Ft(vr){var ts=vr-xe,Tl=vr-Ke;return xe===n||ts>=u||ts<0||rt&&Tl>=Z}function rn(){var vr=sh();if(Ft(vr))return an(vr);ge=Zf(rn,tn(vr))}function an(vr){return ge=n,gt&&P?Ot(vr):(P=V=n,le)}function qo(){ge!==n&&pl(ge),Ke=0,P=xe=V=ge=n}function io(){return ge===n?le:an(sh())}function Xo(){var vr=sh(),ts=Ft(vr);if(P=arguments,V=this,xe=vr,ts){if(ge===n)return Lt(xe);if(rt)return pl(ge),ge=Zf(rn,u),Ot(xe)}return ge===n&&(ge=Zf(rn,u)),le}return Xo.cancel=qo,Xo.flush=io,Xo}var lP=Gt(function(a,u){return Ku(a,1,u)}),uP=Gt(function(a,u,y){return Ku(a,wa(u)||0,y)});function cP(a){return On(a,ae)}function lh(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yt(s);var y=function(){var P=arguments,V=u?u.apply(this,P):P[0],Z=y.cache;if(Z.has(V))return Z.get(V);var le=a.apply(this,P);return y.cache=Z.set(V,le)||Z,le};return y.cache=new(lh.Cache||Vo),y}lh.Cache=Vo;function uh(a){if(typeof a!="function")throw new Yt(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function fP(a){return I0(2,a)}var dP=rf(function(a,u){u=u.length==1&&Xt(u[0])?ft(u[0],xt(Pt())):ft(pr(u,1),xt(Pt()));var y=u.length;return Gt(function(P){for(var V=-1,Z=jn(P.length,y);++V<Z;)P[V]=u[V].call(this,P[V]);return H(a,this,P)})}),wg=Gt(function(a,u){var y=wi(u,uf(wg));return On(a,J,n,u,y)}),N0=Gt(function(a,u){var y=wi(u,uf(N0));return On(a,pe,n,u,y)}),hP=Qa(function(a,u){return On(a,ce,n,n,n,u)});function pP(a,u){if(typeof a!="function")throw new Yt(s);return u=u===n?u:en(u),Gt(a,u)}function gP(a,u){if(typeof a!="function")throw new Yt(s);return u=u==null?0:Nn(en(u),0),Gt(function(y){var P=y[u],V=ya(y,0,u);return P&&Dt(V,P),H(a,this,V)})}function vP(a,u,y){var P=!0,V=!0;if(typeof a!="function")throw new Yt(s);return tr(y)&&(P="leading"in y?!!y.leading:P,V="trailing"in y?!!y.trailing:V),F0(a,u,{leading:P,maxWait:u,trailing:V})}function mP(a){return R0(a,1)}function yP(a,u){return wg(Yr(u),a)}function bP(){if(!arguments.length)return[];var a=arguments[0];return Xt(a)?a:[a]}function wP(a){return Wr(a,T)}function xP(a,u){return u=typeof u=="function"?u:n,Wr(a,T,u)}function SP(a){return Wr(a,p|T)}function TP(a,u){return u=typeof u=="function"?u:n,Wr(a,p|T,u)}function CP(a,u){return u==null||qc(a,u,si(u))}function es(a,u){return a===u||a!==a&&u!==u}var EP=Ze(al),kP=Ze(function(a,u){return a>=u}),vc=ul(function(){return arguments}())?ul:function(a){return sr(a)&&At.call(a,"callee")&&!$u.call(a,"callee")},Xt=fe.isArray,OP=f?xt(f):tu;function Eo(a){return a!=null&&ch(a.length)&&!xl(a)}function gr(a){return sr(a)&&Eo(a)}function _P(a){return a===!0||a===!1||sr(a)&&Cr(a)==ct}var fu=Vu||Rg,DP=m?xt(m):Ga;function PP(a){return sr(a)&&a.nodeType===1&&!Jf(a)}function RP(a){if(a==null)return!0;if(Eo(a)&&(Xt(a)||typeof a=="string"||typeof a.splice=="function"||fu(a)||cf(a)||vc(a)))return!a.length;var u=Li(a);if(u==Ht||u==rr)return!a.size;if(Kf(a))return!cl(a).length;for(var y in a)if(At.call(a,y))return!1;return!0}function IP(a,u){return ks(a,u)}function AP(a,u,y){y=typeof y=="function"?y:n;var P=y?y(a,u):n;return P===n?ks(a,u,n,y):!!P}function xg(a){if(!sr(a))return!1;var u=Cr(a);return u==Tt||u==dt||typeof a.message=="string"&&typeof a.name=="string"&&!Jf(a)}function MP(a){return typeof a=="number"&&Hu(a)}function xl(a){if(!tr(a))return!1;var u=Cr(a);return u==ot||u==$t||u==lt||u==$i}function j0(a){return typeof a=="number"&&a==en(a)}function ch(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=Qe}function tr(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function sr(a){return a!=null&&typeof a=="object"}var B0=C?xt(C):qa;function LP(a,u){return a===u||rc(a,u,fg(u))}function FP(a,u,y){return y=typeof y=="function"?y:n,rc(a,u,fg(u),y)}function NP(a){return $0(a)&&a!=+a}function jP(a){if(x_(a))throw new ze(o);return ic(a)}function BP(a){return a===null}function $P(a){return a==null}function $0(a){return typeof a=="number"||sr(a)&&Cr(a)==Xn}function Jf(a){if(!sr(a)||Cr(a)!=Kn)return!1;var u=ys(a);if(u===null)return!0;var y=At.call(u,"constructor")&&u.constructor;return typeof y=="function"&&y instanceof y&&Ki.call(y)==ju}var Sg=O?xt(O):To;function VP(a){return j0(a)&&a>=-Qe&&a<=Qe}var V0=N?xt(N):Gf;function fh(a){return typeof a=="string"||!Xt(a)&&sr(a)&&Cr(a)==cn}function Go(a){return typeof a=="symbol"||sr(a)&&Cr(a)==hn}var cf=B?xt(B):qf;function HP(a){return a===n}function UP(a){return sr(a)&&Li(a)==mt}function WP(a){return sr(a)&&Cr(a)==In}var zP=Ze(to),YP=Ze(function(a,u){return a<=u});function H0(a){if(!a)return[];if(Eo(a))return fh(a)?dr(a):Er(a);if(No&&a[No])return mo(a[No]());var u=Li(a),y=u==Ht?ds:u==rr?Xi:ff;return y(a)}function Sl(a){if(!a)return a===0?a:0;if(a=wa(a),a===Ve||a===-Ve){var u=a<0?-1:1;return u*at}return a===a?a:0}function en(a){var u=Sl(a),y=u%1;return u===u?y?u-y:u:0}function U0(a){return a?va(en(a),0,_e):0}function wa(a){if(typeof a=="number")return a;if(Go(a))return Ee;if(tr(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=tr(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=et(a);var y=ho.test(a);return y||Qr.test(a)?Na(a.slice(2),y?2:8):Oi.test(a)?Ee:+a}function W0(a){return Si(a,ko(a))}function GP(a){return a?va(en(a),-Qe,Qe):a===0?a:0}function wn(a){return a==null?"":xi(a)}var qP=As(function(a,u){if(Kf(u)||Eo(u)){Si(u,si(u),a);return}for(var y in u)At.call(u,y)&&Vn(a,y,u[y])}),z0=As(function(a,u){Si(u,ko(u),a)}),dh=As(function(a,u,y,P){Si(u,ko(u),a,P)}),XP=As(function(a,u,y,P){Si(u,si(u),a,P)}),KP=Qa(qu);function ZP(a,u){var y=pa(a);return u==null?y:eo(y,u)}var JP=Gt(function(a,u){a=ut(a);var y=-1,P=u.length,V=P>2?u[2]:n;for(V&&ro(u[0],u[1],V)&&(P=1);++y<P;)for(var Z=u[y],le=ko(Z),ge=-1,xe=le.length;++ge<xe;){var Ke=le[ge],Je=a[Ke];(Je===n||es(Je,qn[Ke])&&!At.call(a,Ke))&&(a[Ke]=Z[Ke])}return a}),QP=Gt(function(a){return a.push(n,dc),H(Y0,n,a)});function eR(a,u){return $r(a,Pt(u,3),So)}function tR(a,u){return $r(a,Pt(u,3),ec)}function nR(a,u){return a==null?a:Qu(a,Pt(u,3),ko)}function rR(a,u){return a==null?a:Kc(a,Pt(u,3),ko)}function iR(a,u){return a&&So(a,Pt(u,3))}function oR(a,u){return a&&ec(a,Pt(u,3))}function aR(a){return a==null?[]:eu(a,si(a))}function sR(a){return a==null?[]:eu(a,ko(a))}function Tg(a,u,y){var P=a==null?n:Ya(a,u);return P===n?y:P}function lR(a,u){return a!=null&&f0(a,u,sl)}function Cg(a,u){return a!=null&&f0(a,u,Zc)}var uR=D(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=ua.call(u)),a[u]=y},kg(Oo)),cR=D(function(a,u,y){u!=null&&typeof u.toString!="function"&&(u=ua.call(u)),At.call(a,u)?a[u].push(y):a[u]=[y]},Pt),fR=Gt(Ii);function si(a){return Eo(a)?ga(a):cl(a)}function ko(a){return Eo(a)?ga(a,!0):nu(a)}function dR(a,u){var y={};return u=Pt(u,3),So(a,function(P,V,Z){hr(y,u(P,V,Z),P)}),y}function hR(a,u){var y={};return u=Pt(u,3),So(a,function(P,V,Z){hr(y,V,u(P,V,Z))}),y}var pR=As(function(a,u,y){Ds(a,u,y)}),Y0=As(function(a,u,y,P){Ds(a,u,y,P)}),gR=Qa(function(a,u){var y={};if(a==null)return y;var P=!1;u=ft(u,function(Z){return Z=Co(Z,a),P||(P=Z.length>1),Z}),Si(a,ug(a),y),P&&(y=Wr(y,p|x|T,lf));for(var V=u.length;V--;)cc(y,u[V]);return y});function vR(a,u){return G0(a,uh(Pt(u)))}var mR=Qa(function(a,u){return a==null?{}:Mi(a,u)});function G0(a,u){if(a==null)return{};var y=ft(ug(a),function(P){return[P]});return u=Pt(u),zo(a,y,function(P,V){return u(P,V[0])})}function yR(a,u,y){u=Co(u,a);var P=-1,V=u.length;for(V||(V=1,a=n);++P<V;){var Z=a==null?n:a[Ms(u[P])];Z===n&&(P=V,Z=y),a=xl(Z)?Z.call(a):Z}return a}function bR(a,u,y){return a==null?a:Za(a,u,y)}function wR(a,u,y,P){return P=typeof P=="function"?P:n,a==null?a:Za(a,u,y,P)}var q0=bn(si),X0=bn(ko);function xR(a,u,y){var P=Xt(a),V=P||fu(a)||cf(a);if(u=Pt(u,4),y==null){var Z=a&&a.constructor;V?y=P?new Z:[]:tr(a)?y=xl(Z)?pa(ys(a)):{}:y={}}return(V?oe:So)(a,function(le,ge,xe){return u(y,le,ge,xe)}),y}function SR(a,u){return a==null?!0:cc(a,u)}function TR(a,u,y){return a==null?a:tf(a,u,Yr(y))}function CR(a,u,y,P){return P=typeof P=="function"?P:n,a==null?a:tf(a,u,Yr(y),P)}function ff(a){return a==null?[]:Nt(a,si(a))}function ER(a){return a==null?[]:Nt(a,ko(a))}function kR(a,u,y){return y===n&&(y=u,u=n),y!==n&&(y=wa(y),y=y===y?y:0),u!==n&&(u=wa(u),u=u===u?u:0),va(wa(a),u,y)}function OR(a,u,y){return u=Sl(u),y===n?(y=u,u=0):y=Sl(y),a=wa(a),ll(a,u,y)}function _R(a,u,y){if(y&&typeof y!="boolean"&&ro(a,u,y)&&(u=y=n),y===n&&(typeof u=="boolean"?(y=u,u=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&u===n?(a=0,u=1):(a=Sl(a),u===n?(u=a,a=0):u=Sl(u)),a>u){var P=a;a=u,u=P}if(y||a%1||u%1){var V=Bo();return jn(a+V*(u-a+fr("1e-"+((V+"").length-1))),u)}return iu(a,u)}var DR=K(function(a,u,y){return u=u.toLowerCase(),a+(y?K0(u):u)});function K0(a){return Eg(wn(a).toLowerCase())}function Z0(a){return a=wn(a),a&&a.replace(Rr,Gn).replace(Ma,"")}function PR(a,u,y){a=wn(a),u=xi(u);var P=a.length;y=y===n?P:va(en(y),0,P);var V=y;return y-=u.length,y>=0&&a.slice(y,V)==u}function RR(a){return a=wn(a),a&&Wi.test(a)?a.replace(Zt,oa):a}function IR(a){return a=wn(a),a&&hi.test(a)?a.replace(br,"\\$&"):a}var AR=K(function(a,u,y){return a+(y?"-":"")+u.toLowerCase()}),MR=K(function(a,u,y){return a+(y?" ":"")+u.toLowerCase()}),LR=$("toLowerCase");function FR(a,u,y){a=wn(a),u=en(u);var P=u?yo(a):0;if(!u||P>=u)return a;var V=(u-P)/2;return ie(bs(V),y)+a+ie(Js(V),y)}function NR(a,u,y){a=wn(a),u=en(u);var P=u?yo(a):0;return u&&P<u?a+ie(u-P,y):a}function jR(a,u,y){a=wn(a),u=en(u);var P=u?yo(a):0;return u&&P<u?ie(u-P,y)+a:a}function BR(a,u,y){return y||u==null?u=0:u&&(u=+u),zu(wn(a).replace(fn,""),u||0)}function $R(a,u,y){return(y?ro(a,u,y):u===n)?u=1:u=en(u),ac(wn(a),u)}function VR(){var a=arguments,u=wn(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var HR=K(function(a,u,y){return a+(y?"_":"")+u.toLowerCase()});function UR(a,u,y){return y&&typeof y!="number"&&ro(a,u,y)&&(u=y=n),y=y===n?_e:y>>>0,y?(a=wn(a),a&&(typeof u=="string"||u!=null&&!Sg(u))&&(u=xi(u),!u&&oi(a))?ya(dr(a),0,y):a.split(u,y)):[]}var WR=K(function(a,u,y){return a+(y?" ":"")+Eg(u)});function zR(a,u,y){return a=wn(a),y=y==null?0:va(en(y),0,a.length),u=xi(u),a.slice(y,y+u.length)==u}function YR(a,u,y){var P=G.templateSettings;y&&ro(a,u,y)&&(u=n),a=wn(a),u=dh({},u,P,Ti);var V=dh({},u.imports,P.imports,Ti),Z=si(V),le=Nt(V,Z),ge,xe,Ke=0,Je=u.interpolate||ei,rt="__p += '",gt=It((u.escape||ei).source+"|"+Je.source+"|"+(Je===fi?ki:ei).source+"|"+(u.evaluate||ei).source+"|$","g"),Ot="//# sourceURL="+(At.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sn+"]")+`
|
|
154
|
-
`;a.replace(gt,function(Ft,rn,an,qo,io,Xo){return an||(an=qo),rt+=a.slice(Ke,Xo).replace(Ir,fs),rn&&(ge=!0,rt+=`' +
|
|
155
|
-
__e(`+rn+`) +
|
|
156
|
-
'`),io&&(xe=!0,rt+=`';
|
|
157
|
-
`+io+`;
|
|
158
|
-
__p += '`),an&&(rt+=`' +
|
|
159
|
-
((__t = (`+an+`)) == null ? '' : __t) +
|
|
160
|
-
'`),Ke=Xo+Ft.length,Ft}),rt+=`';
|
|
161
|
-
`;var Lt=At.call(u,"variable")&&u.variable;if(!Lt)rt=`with (obj) {
|
|
162
|
-
`+rt+`
|
|
163
|
-
}
|
|
164
|
-
`;else if(fo.test(Lt))throw new ze(l);rt=(xe?rt.replace(Po,""):rt).replace(Zn,"$1").replace(Zr,"$1;"),rt="function("+(Lt||"obj")+`) {
|
|
165
|
-
`+(Lt?"":`obj || (obj = {});
|
|
166
|
-
`)+"var __t, __p = ''"+(ge?", __e = _.escape":"")+(xe?`, __j = Array.prototype.join;
|
|
167
|
-
function print() { __p += __j.call(arguments, '') }
|
|
168
|
-
`:`;
|
|
169
|
-
`)+rt+`return __p
|
|
170
|
-
}`;var tn=Q0(function(){return ht(Z,Ot+"return "+rt).apply(n,le)});if(tn.source=rt,xg(tn))throw tn;return tn}function GR(a){return wn(a).toLowerCase()}function qR(a){return wn(a).toUpperCase()}function XR(a,u,y){if(a=wn(a),a&&(y||u===n))return et(a);if(!a||!(u=xi(u)))return a;var P=dr(a),V=dr(u),Z=Et(P,V),le=$n(P,V)+1;return ya(P,Z,le).join("")}function KR(a,u,y){if(a=wn(a),a&&(y||u===n))return a.slice(0,Xs(a)+1);if(!a||!(u=xi(u)))return a;var P=dr(a),V=$n(P,dr(u))+1;return ya(P,0,V).join("")}function ZR(a,u,y){if(a=wn(a),a&&(y||u===n))return a.replace(fn,"");if(!a||!(u=xi(u)))return a;var P=dr(a),V=Et(P,dr(u));return ya(P,V).join("")}function JR(a,u){var y=Ne,P=Ge;if(tr(u)){var V="separator"in u?u.separator:V;y="length"in u?en(u.length):y,P="omission"in u?xi(u.omission):P}a=wn(a);var Z=a.length;if(oi(a)){var le=dr(a);Z=le.length}if(y>=Z)return a;var ge=y-yo(P);if(ge<1)return P;var xe=le?ya(le,0,ge).join(""):a.slice(0,ge);if(V===n)return xe+P;if(le&&(ge+=xe.length-ge),Sg(V)){if(a.slice(ge).search(V)){var Ke,Je=xe;for(V.global||(V=It(V.source,wn(pi.exec(V))+"g")),V.lastIndex=0;Ke=V.exec(Je);)var rt=Ke.index;xe=xe.slice(0,rt===n?ge:rt)}}else if(a.indexOf(xi(V),ge)!=ge){var gt=xe.lastIndexOf(V);gt>-1&&(xe=xe.slice(0,gt))}return xe+P}function QR(a){return a=wn(a),a&&ci.test(a)?a.replace(ir,hs):a}var eI=K(function(a,u,y){return a+(y?" ":"")+u.toUpperCase()}),Eg=$("toUpperCase");function J0(a,u,y){return a=wn(a),u=y?n:u,u===n?Gs(a)?ve(a):Wt(a):a.match(u)||[]}var Q0=Gt(function(a,u){try{return H(a,n,u)}catch(y){return xg(y)?y:new ze(y)}}),tI=Qa(function(a,u){return oe(u,function(y){y=Ms(y),hr(a,y,bg(a[y],a))}),a});function nI(a){var u=a==null?0:a.length,y=Pt();return a=u?ft(a,function(P){if(typeof P[1]!="function")throw new Yt(s);return[y(P[0]),P[1]]}):[],Gt(function(P){for(var V=-1;++V<u;){var Z=a[V];if(H(Z[0],this,P))return H(Z[1],this,P)}})}function rI(a){return Xu(Wr(a,p))}function kg(a){return function(){return a}}function iI(a,u){return a==null||a!==a?u:a}var oI=h(),aI=h(!0);function Oo(a){return a}function Og(a){return Os(typeof a=="function"?a:Wr(a,p))}function sI(a){return Wo(Wr(a,p))}function lI(a,u){return no(a,Wr(u,p))}var uI=Gt(function(a,u){return function(y){return Ii(y,a,u)}}),cI=Gt(function(a,u){return function(y){return Ii(a,y,u)}});function _g(a,u,y){var P=si(u),V=eu(u,P);y==null&&!(tr(u)&&(V.length||!P.length))&&(y=u,u=a,a=this,V=eu(u,si(u)));var Z=!(tr(y)&&"chain"in y)||!!y.chain,le=xl(a);return oe(V,function(ge){var xe=u[ge];a[ge]=xe,le&&(a.prototype[ge]=function(){var Ke=this.__chain__;if(Z||Ke){var Je=a(this.__wrapped__),rt=Je.__actions__=Er(this.__actions__);return rt.push({func:xe,args:arguments,thisArg:a}),Je.__chain__=Ke,Je}return xe.apply(a,Dt([this.value()],arguments))})}),a}function fI(){return yn._===this&&(yn._=kn),this}function Dg(){}function dI(a){return a=en(a),Gt(function(u){return Xa(u,a)})}var hI=Y(ft),pI=Y(Le),gI=Y(dn);function eb(a){return hg(a)?k(Ms(a)):oc(a)}function vI(a){return function(u){return a==null?n:Ya(a,u)}}var mI=Ie(),yI=Ie(!0);function Pg(){return[]}function Rg(){return!1}function bI(){return{}}function wI(){return""}function xI(){return!0}function SI(a,u){if(a=en(a),a<1||a>Qe)return[];var y=_e,P=jn(a,_e);u=Pt(u),a-=_e;for(var V=Ce(P,u);++y<a;)u(y);return V}function TI(a){return Xt(a)?ft(a,Ms):Go(a)?[a]:Er(w0(wn(a)))}function CI(a){var u=++Vc;return wn(a)+u}var EI=M(function(a,u){return a+u},0),kI=St("ceil"),OI=M(function(a,u){return a/u},1),_I=St("floor");function DI(a){return a&&a.length?Ql(a,Oo,al):n}function PI(a,u){return a&&a.length?Ql(a,Pt(u,2),al):n}function RI(a){return Tr(a,Oo)}function II(a,u){return Tr(a,Pt(u,2))}function AI(a){return a&&a.length?Ql(a,Oo,to):n}function MI(a,u){return a&&a.length?Ql(a,Pt(u,2),to):n}var LI=M(function(a,u){return a*u},1),FI=St("round"),NI=M(function(a,u){return a-u},0);function jI(a){return a&&a.length?Te(a,Oo):0}function BI(a,u){return a&&a.length?Te(a,Pt(u,2)):0}return G.after=sP,G.ary=R0,G.assign=qP,G.assignIn=z0,G.assignInWith=dh,G.assignWith=XP,G.at=KP,G.before=I0,G.bind=bg,G.bindAll=tI,G.bindKey=A0,G.castArray=bP,G.chain=_0,G.chunk=__,G.compact=D_,G.concat=P_,G.cond=nI,G.conforms=rI,G.constant=kg,G.countBy=jD,G.create=ZP,G.curry=M0,G.curryRight=L0,G.debounce=F0,G.defaults=JP,G.defaultsDeep=QP,G.defer=lP,G.delay=uP,G.difference=R_,G.differenceBy=I_,G.differenceWith=A_,G.drop=M_,G.dropRight=L_,G.dropRightWhile=F_,G.dropWhile=N_,G.fill=j_,G.filter=$D,G.flatMap=UD,G.flatMapDeep=WD,G.flatMapDepth=zD,G.flatten=C0,G.flattenDeep=B_,G.flattenDepth=$_,G.flip=cP,G.flow=oI,G.flowRight=aI,G.fromPairs=V_,G.functions=aR,G.functionsIn=sR,G.groupBy=YD,G.initial=U_,G.intersection=W_,G.intersectionBy=z_,G.intersectionWith=Y_,G.invert=uR,G.invertBy=cR,G.invokeMap=qD,G.iteratee=Og,G.keyBy=XD,G.keys=si,G.keysIn=ko,G.map=ah,G.mapKeys=dR,G.mapValues=hR,G.matches=sI,G.matchesProperty=lI,G.memoize=lh,G.merge=pR,G.mergeWith=Y0,G.method=uI,G.methodOf=cI,G.mixin=_g,G.negate=uh,G.nthArg=dI,G.omit=gR,G.omitBy=vR,G.once=fP,G.orderBy=KD,G.over=hI,G.overArgs=dP,G.overEvery=pI,G.overSome=gI,G.partial=wg,G.partialRight=N0,G.partition=ZD,G.pick=mR,G.pickBy=G0,G.property=eb,G.propertyOf=vI,G.pull=K_,G.pullAll=k0,G.pullAllBy=Z_,G.pullAllWith=J_,G.pullAt=Q_,G.range=mI,G.rangeRight=yI,G.rearg=hP,G.reject=eP,G.remove=eD,G.rest=pP,G.reverse=mg,G.sampleSize=nP,G.set=bR,G.setWith=wR,G.shuffle=rP,G.slice=tD,G.sortBy=aP,G.sortedUniq=lD,G.sortedUniqBy=uD,G.split=UR,G.spread=gP,G.tail=cD,G.take=fD,G.takeRight=dD,G.takeRightWhile=hD,G.takeWhile=pD,G.tap=DD,G.throttle=vP,G.thru=oh,G.toArray=H0,G.toPairs=q0,G.toPairsIn=X0,G.toPath=TI,G.toPlainObject=W0,G.transform=xR,G.unary=mP,G.union=gD,G.unionBy=vD,G.unionWith=mD,G.uniq=yD,G.uniqBy=bD,G.uniqWith=wD,G.unset=SR,G.unzip=yg,G.unzipWith=O0,G.update=TR,G.updateWith=CR,G.values=ff,G.valuesIn=ER,G.without=xD,G.words=J0,G.wrap=yP,G.xor=SD,G.xorBy=TD,G.xorWith=CD,G.zip=ED,G.zipObject=kD,G.zipObjectDeep=OD,G.zipWith=_D,G.entries=q0,G.entriesIn=X0,G.extend=z0,G.extendWith=dh,_g(G,G),G.add=EI,G.attempt=Q0,G.camelCase=DR,G.capitalize=K0,G.ceil=kI,G.clamp=kR,G.clone=wP,G.cloneDeep=SP,G.cloneDeepWith=TP,G.cloneWith=xP,G.conformsTo=CP,G.deburr=Z0,G.defaultTo=iI,G.divide=OI,G.endsWith=PR,G.eq=es,G.escape=RR,G.escapeRegExp=IR,G.every=BD,G.find=VD,G.findIndex=S0,G.findKey=eR,G.findLast=HD,G.findLastIndex=T0,G.findLastKey=tR,G.floor=_I,G.forEach=D0,G.forEachRight=P0,G.forIn=nR,G.forInRight=rR,G.forOwn=iR,G.forOwnRight=oR,G.get=Tg,G.gt=EP,G.gte=kP,G.has=lR,G.hasIn=Cg,G.head=E0,G.identity=Oo,G.includes=GD,G.indexOf=H_,G.inRange=OR,G.invoke=fR,G.isArguments=vc,G.isArray=Xt,G.isArrayBuffer=OP,G.isArrayLike=Eo,G.isArrayLikeObject=gr,G.isBoolean=_P,G.isBuffer=fu,G.isDate=DP,G.isElement=PP,G.isEmpty=RP,G.isEqual=IP,G.isEqualWith=AP,G.isError=xg,G.isFinite=MP,G.isFunction=xl,G.isInteger=j0,G.isLength=ch,G.isMap=B0,G.isMatch=LP,G.isMatchWith=FP,G.isNaN=NP,G.isNative=jP,G.isNil=$P,G.isNull=BP,G.isNumber=$0,G.isObject=tr,G.isObjectLike=sr,G.isPlainObject=Jf,G.isRegExp=Sg,G.isSafeInteger=VP,G.isSet=V0,G.isString=fh,G.isSymbol=Go,G.isTypedArray=cf,G.isUndefined=HP,G.isWeakMap=UP,G.isWeakSet=WP,G.join=G_,G.kebabCase=AR,G.last=ba,G.lastIndexOf=q_,G.lowerCase=MR,G.lowerFirst=LR,G.lt=zP,G.lte=YP,G.max=DI,G.maxBy=PI,G.mean=RI,G.meanBy=II,G.min=AI,G.minBy=MI,G.stubArray=Pg,G.stubFalse=Rg,G.stubObject=bI,G.stubString=wI,G.stubTrue=xI,G.multiply=LI,G.nth=X_,G.noConflict=fI,G.noop=Dg,G.now=sh,G.pad=FR,G.padEnd=NR,G.padStart=jR,G.parseInt=BR,G.random=_R,G.reduce=JD,G.reduceRight=QD,G.repeat=$R,G.replace=VR,G.result=yR,G.round=FI,G.runInContext=Q,G.sample=tP,G.size=iP,G.snakeCase=HR,G.some=oP,G.sortedIndex=nD,G.sortedIndexBy=rD,G.sortedIndexOf=iD,G.sortedLastIndex=oD,G.sortedLastIndexBy=aD,G.sortedLastIndexOf=sD,G.startCase=WR,G.startsWith=zR,G.subtract=NI,G.sum=jI,G.sumBy=BI,G.template=YR,G.times=SI,G.toFinite=Sl,G.toInteger=en,G.toLength=U0,G.toLower=GR,G.toNumber=wa,G.toSafeInteger=GP,G.toString=wn,G.toUpper=qR,G.trim=XR,G.trimEnd=KR,G.trimStart=ZR,G.truncate=JR,G.unescape=QR,G.uniqueId=CI,G.upperCase=eI,G.upperFirst=Eg,G.each=D0,G.eachRight=P0,G.first=E0,_g(G,function(){var a={};return So(G,function(u,y){At.call(G.prototype,y)||(a[y]=u)}),a}(),{chain:!1}),G.VERSION=r,oe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){G[a].placeholder=G}),oe(["drop","take"],function(a,u){qt.prototype[a]=function(y){y=y===n?1:Nn(en(y),0);var P=this.__filtered__&&!u?new qt(this):this.clone();return P.__filtered__?P.__takeCount__=jn(y,P.__takeCount__):P.__views__.push({size:jn(y,_e),type:a+(P.__dir__<0?"Right":"")}),P},qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),oe(["filter","map","takeWhile"],function(a,u){var y=u+1,P=y==nt||y==Se;qt.prototype[a]=function(V){var Z=this.clone();return Z.__iteratees__.push({iteratee:Pt(V,3),type:y}),Z.__filtered__=Z.__filtered__||P,Z}}),oe(["head","last"],function(a,u){var y="take"+(u?"Right":"");qt.prototype[a]=function(){return this[y](1).value()[0]}}),oe(["initial","tail"],function(a,u){var y="drop"+(u?"":"Right");qt.prototype[a]=function(){return this.__filtered__?new qt(this):this[y](1)}}),qt.prototype.compact=function(){return this.filter(Oo)},qt.prototype.find=function(a){return this.filter(a).head()},qt.prototype.findLast=function(a){return this.reverse().find(a)},qt.prototype.invokeMap=Gt(function(a,u){return typeof a=="function"?new qt(this):this.map(function(y){return Ii(y,a,u)})}),qt.prototype.reject=function(a){return this.filter(uh(Pt(a)))},qt.prototype.slice=function(a,u){a=en(a);var y=this;return y.__filtered__&&(a>0||u<0)?new qt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),u!==n&&(u=en(u),y=u<0?y.dropRight(-u):y.take(u-a)),y)},qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},qt.prototype.toArray=function(){return this.take(_e)},So(qt.prototype,function(a,u){var y=/^(?:filter|find|map|reject)|While$/.test(u),P=/^(?:head|last)$/.test(u),V=G[P?"take"+(u=="last"?"Right":""):u],Z=P||/^find/.test(u);V&&(G.prototype[u]=function(){var le=this.__wrapped__,ge=P?[1]:arguments,xe=le instanceof qt,Ke=ge[0],Je=xe||Xt(le),rt=function(rn){var an=V.apply(G,Dt([rn],ge));return P&>?an[0]:an};Je&&y&&typeof Ke=="function"&&Ke.length!=1&&(xe=Je=!1);var gt=this.__chain__,Ot=!!this.__actions__.length,Lt=Z&&!gt,tn=xe&&!Ot;if(!Z&&Je){le=tn?le:new qt(this);var Ft=a.apply(le,ge);return Ft.__actions__.push({func:oh,args:[rt],thisArg:n}),new Ur(Ft,gt)}return Lt&&tn?a.apply(this,ge):(Ft=this.thru(rt),Lt?P?Ft.value()[0]:Ft.value():Ft)})}),oe(["pop","push","shift","sort","splice","unshift"],function(a){var u=Fn[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",P=/^(?:pop|shift)$/.test(a);G.prototype[a]=function(){var V=arguments;if(P&&!this.__chain__){var Z=this.value();return u.apply(Xt(Z)?Z:[],V)}return this[y](function(le){return u.apply(Xt(le)?le:[],V)})}}),So(qt.prototype,function(a,u){var y=G[u];if(y){var P=y.name+"";At.call(ha,P)||(ha[P]=[]),ha[P].push({name:u,func:y})}}),ha[b(n,R).name]=[{name:"wrapper",func:n}],qt.prototype.clone=Wl,qt.prototype.reverse=Ss,qt.prototype.value=il,G.prototype.at=PD,G.prototype.chain=RD,G.prototype.commit=ID,G.prototype.next=AD,G.prototype.plant=LD,G.prototype.reverse=FD,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=ND,G.prototype.first=G.prototype.head,No&&(G.prototype[No]=MD),G},Oe=Pe();bi?((bi.exports=Oe)._=Oe,Fo._=Oe):yn._=Oe}).call(Ci)})(Ep,Ep.exports);var _O=Ep.exports;const o6=Mu(_O);function c1(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function a6(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function s6(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,s=[],l=null,c=null,d=i;d<=o;d++){var v=t(d);v?c!==null&&(s.push(l,c),l=c=null):(c=d,l===null&&(l=d))}if(c!==null){for(var p=Math.min(Math.max(c,l+r-1),n-1),x=c+1;x<=p&&!t(x);x++)c=x;s.push(l,c)}if(s.length)for(;s[1]-s[0]+1<r&&s[0]>0;){var T=s[0]-1;if(!t(T))s[0]=T;else break}return s}var l6=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u6=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c6=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},f1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},f6=function(e){c6(t,e);function t(){var n,r,i,o;l6(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=f1(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(d){var v=d.visibleStartIndex,p=d.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!c1(v)||!c1(p))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=v,i._lastRenderedStopIndex=p,i._ensureRowsLoaded(v,p)},i._setRef=function(d){i._listRef=d},r),f1(i,o)}return u6(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,s=o.isItemLoaded,l=o.itemCount,c=o.minimumBatchSize,d=c===void 0?10:c,v=o.threshold,p=v===void 0?15:v,x=s6({isItemLoaded:s,itemCount:l,minimumBatchSize:d,startIndex:Math.max(0,r-p),stopIndex:Math.min(l-1,i+p)});(this._memoizedUnloadedRanges.length!==x.length||this._memoizedUnloadedRanges.some(function(T,_){return x[_]!==T}))&&(this._memoizedUnloadedRanges=x,this._loadUnloadedRanges(x))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,s=function(d){var v=r[d],p=r[d+1],x=o(v,p);x!=null&&x.then(function(){if(a6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:v,stopIndex:p})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(v,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},l=0;l<r.length;l+=2)s(l)}}]),t}(X.PureComponent),DO={exports:{}};/*!
|
|
171
|
-
* jQuery JavaScript Library v3.7.1
|
|
172
|
-
* https://jquery.com/
|
|
173
|
-
*
|
|
174
|
-
* Copyright OpenJS Foundation and other contributors
|
|
175
|
-
* Released under the MIT license
|
|
176
|
-
* https://jquery.org/license
|
|
177
|
-
*
|
|
178
|
-
* Date: 2023-08-28T13:37Z
|
|
179
|
-
*/(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ci,function(t,n){var r=[],i=Object.getPrototypeOf,o=r.slice,s=r.flat?function(f){return r.flat.call(f)}:function(f){return r.concat.apply([],f)},l=r.push,c=r.indexOf,d={},v=d.toString,p=d.hasOwnProperty,x=p.toString,T=x.call(Object),_={},I=function(m){return typeof m=="function"&&typeof m.nodeType!="number"&&typeof m.item!="function"},L=function(m){return m!=null&&m===m.window},R=t.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function W(f,m,C){C=C||R;var O,N,B=C.createElement("script");if(B.text=f,m)for(O in U)N=m[O]||m.getAttribute&&m.getAttribute(O),N&&B.setAttribute(O,N);C.head.appendChild(B).parentNode.removeChild(B)}function te(f){return f==null?f+"":typeof f=="object"||typeof f=="function"?d[v.call(f)]||"object":typeof f}var J="3.7.1",pe=/HTML$/i,S=function(f,m){return new S.fn.init(f,m)};S.fn=S.prototype={jquery:J,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(f){return f==null?o.call(this):f<0?this[f+this.length]:this[f]},pushStack:function(f){var m=S.merge(this.constructor(),f);return m.prevObject=this,m},each:function(f){return S.each(this,f)},map:function(f){return this.pushStack(S.map(this,function(m,C){return f.call(m,C,m)}))},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(S.grep(this,function(f,m){return(m+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(f,m){return m%2}))},eq:function(f){var m=this.length,C=+f+(f<0?m:0);return this.pushStack(C>=0&&C<m?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var f,m,C,O,N,B,H=arguments[0]||{},ue=1,oe=arguments.length,we=!1;for(typeof H=="boolean"&&(we=H,H=arguments[ue]||{},ue++),typeof H!="object"&&!I(H)&&(H={}),ue===oe&&(H=this,ue--);ue<oe;ue++)if((f=arguments[ue])!=null)for(m in f)O=f[m],!(m==="__proto__"||H===O)&&(we&&O&&(S.isPlainObject(O)||(N=Array.isArray(O)))?(C=H[m],N&&!Array.isArray(C)?B=[]:!N&&!S.isPlainObject(C)?B={}:B=C,N=!1,H[m]=S.extend(we,B,O)):O!==void 0&&(H[m]=O));return H},S.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(f){throw new Error(f)},noop:function(){},isPlainObject:function(f){var m,C;return!f||v.call(f)!=="[object Object]"?!1:(m=i(f),m?(C=p.call(m,"constructor")&&m.constructor,typeof C=="function"&&x.call(C)===T):!0)},isEmptyObject:function(f){var m;for(m in f)return!1;return!0},globalEval:function(f,m,C){W(f,{nonce:m&&m.nonce},C)},each:function(f,m){var C,O=0;if(ce(f))for(C=f.length;O<C&&m.call(f[O],O,f[O])!==!1;O++);else for(O in f)if(m.call(f[O],O,f[O])===!1)break;return f},text:function(f){var m,C="",O=0,N=f.nodeType;if(!N)for(;m=f[O++];)C+=S.text(m);return N===1||N===11?f.textContent:N===9?f.documentElement.textContent:N===3||N===4?f.nodeValue:C},makeArray:function(f,m){var C=m||[];return f!=null&&(ce(Object(f))?S.merge(C,typeof f=="string"?[f]:f):l.call(C,f)),C},inArray:function(f,m,C){return m==null?-1:c.call(m,f,C)},isXMLDoc:function(f){var m=f&&f.namespaceURI,C=f&&(f.ownerDocument||f).documentElement;return!pe.test(m||C&&C.nodeName||"HTML")},merge:function(f,m){for(var C=+m.length,O=0,N=f.length;O<C;O++)f[N++]=m[O];return f.length=N,f},grep:function(f,m,C){for(var O,N=[],B=0,H=f.length,ue=!C;B<H;B++)O=!m(f[B],B),O!==ue&&N.push(f[B]);return N},map:function(f,m,C){var O,N,B=0,H=[];if(ce(f))for(O=f.length;B<O;B++)N=m(f[B],B,C),N!=null&&H.push(N);else for(B in f)N=m(f[B],B,C),N!=null&&H.push(N);return s(H)},guid:1,support:_}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=r[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(f,m){d["[object "+m+"]"]=m.toLowerCase()});function ce(f){var m=!!f&&"length"in f&&f.length,C=te(f);return I(f)||L(f)?!1:C==="array"||m===0||typeof m=="number"&&m>0&&m-1 in f}function ae(f,m){return f.nodeName&&f.nodeName.toLowerCase()===m.toLowerCase()}var Ne=r.pop,Ge=r.sort,qe=r.splice,it="[\\x20\\t\\r\\n\\f]",nt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g");S.contains=function(f,m){var C=m&&m.parentNode;return f===C||!!(C&&C.nodeType===1&&(f.contains?f.contains(C):f.compareDocumentPosition&&f.compareDocumentPosition(C)&16))};var me=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Se(f,m){return m?f==="\0"?"�":f.slice(0,-1)+"\\"+f.charCodeAt(f.length-1).toString(16)+" ":"\\"+f}S.escapeSelector=function(f){return(f+"").replace(me,Se)};var Ve=R,Qe=l;(function(){var f,m,C,O,N,B=Qe,H,ue,oe,we,Le,je=S.expando,ke=0,Xe=0,ft=$n(),Dt=$n(),Rt=$n(),Ln=$n(),dn=function(ee,ve){return ee===ve&&(N=!0),0},jr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Br="(?:\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Wt="\\["+it+"*("+Br+")(?:"+it+"*([*^$|!~]?=)"+it+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Br+"))|)"+it+"*\\]",$r=":("+Br+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Wt+")*)|.*)\\)|)",zt=new RegExp(it+"+","g"),on=new RegExp("^"+it+"*,"+it+"*"),go=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),vo=new RegExp(it+"|>"),Tr=new RegExp($r),k=new RegExp("^"+Br+"$"),F={ID:new RegExp("^#("+Br+")"),CLASS:new RegExp("^\\.("+Br+")"),TAG:new RegExp("^("+Br+"|[*])"),ATTR:new RegExp("^"+Wt),PSEUDO:new RegExp("^"+$r),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+jr+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,ne=/^h\d$/i,Te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ce=/[+~]/,Be=new RegExp("\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\([^\\r\\n\\f])","g"),et=function(ee,ve){var Pe="0x"+ee.slice(1)-65536;return ve||(Pe<0?String.fromCharCode(Pe+65536):String.fromCharCode(Pe>>10|55296,Pe&1023|56320))},xt=function(){mo()},Nt=Xi(function(ee){return ee.disabled===!0&&ae(ee,"fieldset")},{dir:"parentNode",next:"legend"});function _t(){try{return H.activeElement}catch{}}try{B.apply(r=o.call(Ve.childNodes),Ve.childNodes),r[Ve.childNodes.length].nodeType}catch{B={apply:function(ve,Pe){Qe.apply(ve,o.call(Pe))},call:function(ve){Qe.apply(ve,o.call(arguments,1))}}}function Et(ee,ve,Pe,Oe){var Q,he,fe,$e,ze,ht,pt,ut=ve&&ve.ownerDocument,It=ve?ve.nodeType:9;if(Pe=Pe||[],typeof ee!="string"||!ee||It!==1&&It!==9&&It!==11)return Pe;if(!Oe&&(mo(ve),ve=ve||H,oe)){if(It!==11&&(ze=Te.exec(ee)))if(Q=ze[1]){if(It===9)if(fe=ve.getElementById(Q)){if(fe.id===Q)return B.call(Pe,fe),Pe}else return Pe;else if(ut&&(fe=ut.getElementById(Q))&&Et.contains(ve,fe)&&fe.id===Q)return B.call(Pe,fe),Pe}else{if(ze[2])return B.apply(Pe,ve.getElementsByTagName(ee)),Pe;if((Q=ze[3])&&ve.getElementsByClassName)return B.apply(Pe,ve.getElementsByClassName(Q)),Pe}if(!Ln[ee+" "]&&(!we||!we.test(ee))){if(pt=ee,ut=ve,It===1&&(vo.test(ee)||go.test(ee))){for(ut=Ce.test(ee)&&Gs(ve.parentNode)||ve,(ut!=ve||!_.scope)&&(($e=ve.getAttribute("id"))?$e=S.escapeSelector($e):ve.setAttribute("id",$e=je)),ht=sa(ee),he=ht.length;he--;)ht[he]=($e?"#"+$e:":scope")+" "+wi(ht[he]);pt=ht.join(",")}try{return B.apply(Pe,ut.querySelectorAll(pt)),Pe}catch{Ln(ee,!0)}finally{$e===je&&ve.removeAttribute("id")}}}return ps(ee.replace(nt,"$1"),ve,Pe,Oe)}function $n(){var ee=[];function ve(Pe,Oe){return ee.push(Pe+" ")>m.cacheLength&&delete ve[ee.shift()],ve[Pe+" "]=Oe}return ve}function Cn(ee){return ee[je]=!0,ee}function Gn(ee){var ve=H.createElement("fieldset");try{return!!ee(ve)}catch{return!1}finally{ve.parentNode&&ve.parentNode.removeChild(ve),ve=null}}function oa(ee){return function(ve){return ae(ve,"input")&&ve.type===ee}}function fs(ee){return function(ve){return(ae(ve,"input")||ae(ve,"button"))&&ve.type===ee}}function aa(ee){return function(ve){return"form"in ve?ve.parentNode&&ve.disabled===!1?"label"in ve?"label"in ve.parentNode?ve.parentNode.disabled===ee:ve.disabled===ee:ve.isDisabled===ee||ve.isDisabled!==!ee&&Nt(ve)===ee:ve.disabled===ee:"label"in ve?ve.disabled===ee:!1}}function oi(ee){return Cn(function(ve){return ve=+ve,Cn(function(Pe,Oe){for(var Q,he=ee([],Pe.length,ve),fe=he.length;fe--;)Pe[Q=he[fe]]&&(Pe[Q]=!(Oe[Q]=Pe[Q]))})})}function Gs(ee){return ee&&typeof ee.getElementsByTagName<"u"&&ee}function mo(ee){var ve,Pe=ee?ee.ownerDocument||ee:Ve;return Pe==H||Pe.nodeType!==9||!Pe.documentElement||(H=Pe,ue=H.documentElement,oe=!S.isXMLDoc(H),Le=ue.matches||ue.webkitMatchesSelector||ue.msMatchesSelector,ue.msMatchesSelector&&Ve!=H&&(ve=H.defaultView)&&ve.top!==ve&&ve.addEventListener("unload",xt),_.getById=Gn(function(Oe){return ue.appendChild(Oe).id=S.expando,!H.getElementsByName||!H.getElementsByName(S.expando).length}),_.disconnectedMatch=Gn(function(Oe){return Le.call(Oe,"*")}),_.scope=Gn(function(){return H.querySelectorAll(":scope")}),_.cssHas=Gn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),_.getById?(m.filter.ID=function(Oe){var Q=Oe.replace(Be,et);return function(he){return he.getAttribute("id")===Q}},m.find.ID=function(Oe,Q){if(typeof Q.getElementById<"u"&&oe){var he=Q.getElementById(Oe);return he?[he]:[]}}):(m.filter.ID=function(Oe){var Q=Oe.replace(Be,et);return function(he){var fe=typeof he.getAttributeNode<"u"&&he.getAttributeNode("id");return fe&&fe.value===Q}},m.find.ID=function(Oe,Q){if(typeof Q.getElementById<"u"&&oe){var he,fe,$e,ze=Q.getElementById(Oe);if(ze){if(he=ze.getAttributeNode("id"),he&&he.value===Oe)return[ze];for($e=Q.getElementsByName(Oe),fe=0;ze=$e[fe++];)if(he=ze.getAttributeNode("id"),he&&he.value===Oe)return[ze]}return[]}}),m.find.TAG=function(Oe,Q){return typeof Q.getElementsByTagName<"u"?Q.getElementsByTagName(Oe):Q.querySelectorAll(Oe)},m.find.CLASS=function(Oe,Q){if(typeof Q.getElementsByClassName<"u"&&oe)return Q.getElementsByClassName(Oe)},we=[],Gn(function(Oe){var Q;ue.appendChild(Oe).innerHTML="<a id='"+je+"' href='' disabled='disabled'></a><select id='"+je+"-\r\\' disabled='disabled'><option selected=''></option></select>",Oe.querySelectorAll("[selected]").length||we.push("\\["+it+"*(?:value|"+jr+")"),Oe.querySelectorAll("[id~="+je+"-]").length||we.push("~="),Oe.querySelectorAll("a#"+je+"+*").length||we.push(".#.+[+~]"),Oe.querySelectorAll(":checked").length||we.push(":checked"),Q=H.createElement("input"),Q.setAttribute("type","hidden"),Oe.appendChild(Q).setAttribute("name","D"),ue.appendChild(Oe).disabled=!0,Oe.querySelectorAll(":disabled").length!==2&&we.push(":enabled",":disabled"),Q=H.createElement("input"),Q.setAttribute("name",""),Oe.appendChild(Q),Oe.querySelectorAll("[name='']").length||we.push("\\["+it+"*name"+it+"*="+it+`*(?:''|"")`)}),_.cssHas||we.push(":has"),we=we.length&&new RegExp(we.join("|")),dn=function(Oe,Q){if(Oe===Q)return N=!0,0;var he=!Oe.compareDocumentPosition-!Q.compareDocumentPosition;return he||(he=(Oe.ownerDocument||Oe)==(Q.ownerDocument||Q)?Oe.compareDocumentPosition(Q):1,he&1||!_.sortDetached&&Q.compareDocumentPosition(Oe)===he?Oe===H||Oe.ownerDocument==Ve&&Et.contains(Ve,Oe)?-1:Q===H||Q.ownerDocument==Ve&&Et.contains(Ve,Q)?1:O?c.call(O,Oe)-c.call(O,Q):0:he&4?-1:1)}),H}Et.matches=function(ee,ve){return Et(ee,null,null,ve)},Et.matchesSelector=function(ee,ve){if(mo(ee),oe&&!Ln[ve+" "]&&(!we||!we.test(ve)))try{var Pe=Le.call(ee,ve);if(Pe||_.disconnectedMatch||ee.document&&ee.document.nodeType!==11)return Pe}catch{Ln(ve,!0)}return Et(ve,H,null,[ee]).length>0},Et.contains=function(ee,ve){return(ee.ownerDocument||ee)!=H&&mo(ee),S.contains(ee,ve)},Et.attr=function(ee,ve){(ee.ownerDocument||ee)!=H&&mo(ee);var Pe=m.attrHandle[ve.toLowerCase()],Oe=Pe&&p.call(m.attrHandle,ve.toLowerCase())?Pe(ee,ve,!oe):void 0;return Oe!==void 0?Oe:ee.getAttribute(ve)},Et.error=function(ee){throw new Error("Syntax error, unrecognized expression: "+ee)},S.uniqueSort=function(ee){var ve,Pe=[],Oe=0,Q=0;if(N=!_.sortStable,O=!_.sortStable&&o.call(ee,0),Ge.call(ee,dn),N){for(;ve=ee[Q++];)ve===ee[Q]&&(Oe=Pe.push(Q));for(;Oe--;)qe.call(ee,Pe[Oe],1)}return O=null,ee},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},m=S.expr={cacheLength:50,createPseudo:Cn,match:F,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ee){return ee[1]=ee[1].replace(Be,et),ee[3]=(ee[3]||ee[4]||ee[5]||"").replace(Be,et),ee[2]==="~="&&(ee[3]=" "+ee[3]+" "),ee.slice(0,4)},CHILD:function(ee){return ee[1]=ee[1].toLowerCase(),ee[1].slice(0,3)==="nth"?(ee[3]||Et.error(ee[0]),ee[4]=+(ee[4]?ee[5]+(ee[6]||1):2*(ee[3]==="even"||ee[3]==="odd")),ee[5]=+(ee[7]+ee[8]||ee[3]==="odd")):ee[3]&&Et.error(ee[0]),ee},PSEUDO:function(ee){var ve,Pe=!ee[6]&&ee[2];return F.CHILD.test(ee[0])?null:(ee[3]?ee[2]=ee[4]||ee[5]||"":Pe&&Tr.test(Pe)&&(ve=sa(Pe,!0))&&(ve=Pe.indexOf(")",Pe.length-ve)-Pe.length)&&(ee[0]=ee[0].slice(0,ve),ee[2]=Pe.slice(0,ve)),ee.slice(0,3))}},filter:{TAG:function(ee){var ve=ee.replace(Be,et).toLowerCase();return ee==="*"?function(){return!0}:function(Pe){return ae(Pe,ve)}},CLASS:function(ee){var ve=ft[ee+" "];return ve||(ve=new RegExp("(^|"+it+")"+ee+"("+it+"|$)"))&&ft(ee,function(Pe){return ve.test(typeof Pe.className=="string"&&Pe.className||typeof Pe.getAttribute<"u"&&Pe.getAttribute("class")||"")})},ATTR:function(ee,ve,Pe){return function(Oe){var Q=Et.attr(Oe,ee);return Q==null?ve==="!=":ve?(Q+="",ve==="="?Q===Pe:ve==="!="?Q!==Pe:ve==="^="?Pe&&Q.indexOf(Pe)===0:ve==="*="?Pe&&Q.indexOf(Pe)>-1:ve==="$="?Pe&&Q.slice(-Pe.length)===Pe:ve==="~="?(" "+Q.replace(zt," ")+" ").indexOf(Pe)>-1:ve==="|="?Q===Pe||Q.slice(0,Pe.length+1)===Pe+"-":!1):!0}},CHILD:function(ee,ve,Pe,Oe,Q){var he=ee.slice(0,3)!=="nth",fe=ee.slice(-4)!=="last",$e=ve==="of-type";return Oe===1&&Q===0?function(ze){return!!ze.parentNode}:function(ze,ht,pt){var ut,It,kt,Yt,Fn,ar=he!==fe?"nextSibling":"previousSibling",qn=ze.parentNode,Vr=$e&&ze.nodeName.toLowerCase(),Ki=!pt&&!$e,At=!1;if(qn){if(he){for(;ar;){for(kt=ze;kt=kt[ar];)if($e?ae(kt,Vr):kt.nodeType===1)return!1;Fn=ar=ee==="only"&&!Fn&&"nextSibling"}return!0}if(Fn=[fe?qn.firstChild:qn.lastChild],fe&&Ki){for(It=qn[je]||(qn[je]={}),ut=It[ee]||[],Yt=ut[0]===ke&&ut[1],At=Yt&&ut[2],kt=Yt&&qn.childNodes[Yt];kt=++Yt&&kt&&kt[ar]||(At=Yt=0)||Fn.pop();)if(kt.nodeType===1&&++At&&kt===ze){It[ee]=[ke,Yt,At];break}}else if(Ki&&(It=ze[je]||(ze[je]={}),ut=It[ee]||[],Yt=ut[0]===ke&&ut[1],At=Yt),At===!1)for(;(kt=++Yt&&kt&&kt[ar]||(At=Yt=0)||Fn.pop())&&!(($e?ae(kt,Vr):kt.nodeType===1)&&++At&&(Ki&&(It=kt[je]||(kt[je]={}),It[ee]=[ke,At]),kt===ze)););return At-=Q,At===Oe||At%Oe===0&&At/Oe>=0}}},PSEUDO:function(ee,ve){var Pe,Oe=m.pseudos[ee]||m.setFilters[ee.toLowerCase()]||Et.error("unsupported pseudo: "+ee);return Oe[je]?Oe(ve):Oe.length>1?(Pe=[ee,ee,"",ve],m.setFilters.hasOwnProperty(ee.toLowerCase())?Cn(function(Q,he){for(var fe,$e=Oe(Q,ve),ze=$e.length;ze--;)fe=c.call(Q,$e[ze]),Q[fe]=!(he[fe]=$e[ze])}):function(Q){return Oe(Q,0,Pe)}):Oe}},pseudos:{not:Cn(function(ee){var ve=[],Pe=[],Oe=hs(ee.replace(nt,"$1"));return Oe[je]?Cn(function(Q,he,fe,$e){for(var ze,ht=Oe(Q,null,$e,[]),pt=Q.length;pt--;)(ze=ht[pt])&&(Q[pt]=!(he[pt]=ze))}):function(Q,he,fe){return ve[0]=Q,Oe(ve,null,fe,Pe),ve[0]=null,!Pe.pop()}}),has:Cn(function(ee){return function(ve){return Et(ee,ve).length>0}}),contains:Cn(function(ee){return ee=ee.replace(Be,et),function(ve){return(ve.textContent||S.text(ve)).indexOf(ee)>-1}}),lang:Cn(function(ee){return k.test(ee||"")||Et.error("unsupported lang: "+ee),ee=ee.replace(Be,et).toLowerCase(),function(ve){var Pe;do if(Pe=oe?ve.lang:ve.getAttribute("xml:lang")||ve.getAttribute("lang"))return Pe=Pe.toLowerCase(),Pe===ee||Pe.indexOf(ee+"-")===0;while((ve=ve.parentNode)&&ve.nodeType===1);return!1}}),target:function(ee){var ve=t.location&&t.location.hash;return ve&&ve.slice(1)===ee.id},root:function(ee){return ee===ue},focus:function(ee){return ee===_t()&&H.hasFocus()&&!!(ee.type||ee.href||~ee.tabIndex)},enabled:aa(!1),disabled:aa(!0),checked:function(ee){return ae(ee,"input")&&!!ee.checked||ae(ee,"option")&&!!ee.selected},selected:function(ee){return ee.parentNode&&ee.parentNode.selectedIndex,ee.selected===!0},empty:function(ee){for(ee=ee.firstChild;ee;ee=ee.nextSibling)if(ee.nodeType<6)return!1;return!0},parent:function(ee){return!m.pseudos.empty(ee)},header:function(ee){return ne.test(ee.nodeName)},input:function(ee){return z.test(ee.nodeName)},button:function(ee){return ae(ee,"input")&&ee.type==="button"||ae(ee,"button")},text:function(ee){var ve;return ae(ee,"input")&&ee.type==="text"&&((ve=ee.getAttribute("type"))==null||ve.toLowerCase()==="text")},first:oi(function(){return[0]}),last:oi(function(ee,ve){return[ve-1]}),eq:oi(function(ee,ve,Pe){return[Pe<0?Pe+ve:Pe]}),even:oi(function(ee,ve){for(var Pe=0;Pe<ve;Pe+=2)ee.push(Pe);return ee}),odd:oi(function(ee,ve){for(var Pe=1;Pe<ve;Pe+=2)ee.push(Pe);return ee}),lt:oi(function(ee,ve,Pe){var Oe;for(Pe<0?Oe=Pe+ve:Pe>ve?Oe=ve:Oe=Pe;--Oe>=0;)ee.push(Oe);return ee}),gt:oi(function(ee,ve,Pe){for(var Oe=Pe<0?Pe+ve:Pe;++Oe<ve;)ee.push(Oe);return ee})}},m.pseudos.nth=m.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})m.pseudos[f]=oa(f);for(f in{submit:!0,reset:!0})m.pseudos[f]=fs(f);function ds(){}ds.prototype=m.filters=m.pseudos,m.setFilters=new ds;function sa(ee,ve){var Pe,Oe,Q,he,fe,$e,ze,ht=Dt[ee+" "];if(ht)return ve?0:ht.slice(0);for(fe=ee,$e=[],ze=m.preFilter;fe;){(!Pe||(Oe=on.exec(fe)))&&(Oe&&(fe=fe.slice(Oe[0].length)||fe),$e.push(Q=[])),Pe=!1,(Oe=go.exec(fe))&&(Pe=Oe.shift(),Q.push({value:Pe,type:Oe[0].replace(nt," ")}),fe=fe.slice(Pe.length));for(he in m.filter)(Oe=F[he].exec(fe))&&(!ze[he]||(Oe=ze[he](Oe)))&&(Pe=Oe.shift(),Q.push({value:Pe,type:he,matches:Oe}),fe=fe.slice(Pe.length));if(!Pe)break}return ve?fe.length:fe?Et.error(ee):Dt(ee,$e).slice(0)}function wi(ee){for(var ve=0,Pe=ee.length,Oe="";ve<Pe;ve++)Oe+=ee[ve].value;return Oe}function Xi(ee,ve,Pe){var Oe=ve.dir,Q=ve.next,he=Q||Oe,fe=Pe&&he==="parentNode",$e=Xe++;return ve.first?function(ze,ht,pt){for(;ze=ze[Oe];)if(ze.nodeType===1||fe)return ee(ze,ht,pt);return!1}:function(ze,ht,pt){var ut,It,kt=[ke,$e];if(pt){for(;ze=ze[Oe];)if((ze.nodeType===1||fe)&&ee(ze,ht,pt))return!0}else for(;ze=ze[Oe];)if(ze.nodeType===1||fe)if(It=ze[je]||(ze[je]={}),Q&&ae(ze,Q))ze=ze[Oe]||ze;else{if((ut=It[he])&&ut[0]===ke&&ut[1]===$e)return kt[2]=ut[2];if(It[he]=kt,kt[2]=ee(ze,ht,pt))return!0}return!1}}function qs(ee){return ee.length>1?function(ve,Pe,Oe){for(var Q=ee.length;Q--;)if(!ee[Q](ve,Pe,Oe))return!1;return!0}:ee[0]}function Nu(ee,ve,Pe){for(var Oe=0,Q=ve.length;Oe<Q;Oe++)Et(ee,ve[Oe],Pe);return Pe}function la(ee,ve,Pe,Oe,Q){for(var he,fe=[],$e=0,ze=ee.length,ht=ve!=null;$e<ze;$e++)(he=ee[$e])&&(!Pe||Pe(he,Oe,Q))&&(fe.push(he),ht&&ve.push($e));return fe}function yo(ee,ve,Pe,Oe,Q,he){return Oe&&!Oe[je]&&(Oe=yo(Oe)),Q&&!Q[je]&&(Q=yo(Q,he)),Cn(function(fe,$e,ze,ht){var pt,ut,It,kt,Yt=[],Fn=[],ar=$e.length,qn=fe||Nu(ve||"*",ze.nodeType?[ze]:ze,[]),Vr=ee&&(fe||!ve)?la(qn,Yt,ee,ze,ht):qn;if(Pe?(kt=Q||(fe?ee:ar||Oe)?[]:$e,Pe(Vr,kt,ze,ht)):kt=Vr,Oe)for(pt=la(kt,Fn),Oe(pt,[],ze,ht),ut=pt.length;ut--;)(It=pt[ut])&&(kt[Fn[ut]]=!(Vr[Fn[ut]]=It));if(fe){if(Q||ee){if(Q){for(pt=[],ut=kt.length;ut--;)(It=kt[ut])&&pt.push(Vr[ut]=It);Q(null,kt=[],pt,ht)}for(ut=kt.length;ut--;)(It=kt[ut])&&(pt=Q?c.call(fe,It):Yt[ut])>-1&&(fe[pt]=!($e[pt]=It))}}else kt=la(kt===$e?kt.splice(ar,kt.length):kt),Q?Q(null,$e,kt,ht):B.apply($e,kt)})}function dr(ee){for(var ve,Pe,Oe,Q=ee.length,he=m.relative[ee[0].type],fe=he||m.relative[" "],$e=he?1:0,ze=Xi(function(ut){return ut===ve},fe,!0),ht=Xi(function(ut){return c.call(ve,ut)>-1},fe,!0),pt=[function(ut,It,kt){var Yt=!he&&(kt||It!=C)||((ve=It).nodeType?ze(ut,It,kt):ht(ut,It,kt));return ve=null,Yt}];$e<Q;$e++)if(Pe=m.relative[ee[$e].type])pt=[Xi(qs(pt),Pe)];else{if(Pe=m.filter[ee[$e].type].apply(null,ee[$e].matches),Pe[je]){for(Oe=++$e;Oe<Q&&!m.relative[ee[Oe].type];Oe++);return yo($e>1&&qs(pt),$e>1&&wi(ee.slice(0,$e-1).concat({value:ee[$e-2].type===" "?"*":""})).replace(nt,"$1"),Pe,$e<Oe&&dr(ee.slice($e,Oe)),Oe<Q&&dr(ee=ee.slice(Oe)),Oe<Q&&wi(ee))}pt.push(Pe)}return qs(pt)}function Xs(ee,ve){var Pe=ve.length>0,Oe=ee.length>0,Q=function(he,fe,$e,ze,ht){var pt,ut,It,kt=0,Yt="0",Fn=he&&[],ar=[],qn=C,Vr=he||Oe&&m.find.TAG("*",ht),Ki=ke+=qn==null?1:Math.random()||.1,At=Vr.length;for(ht&&(C=fe==H||fe||ht);Yt!==At&&(pt=Vr[Yt])!=null;Yt++){if(Oe&&pt){for(ut=0,!fe&&pt.ownerDocument!=H&&(mo(pt),$e=!oe);It=ee[ut++];)if(It(pt,fe||H,$e)){B.call(ze,pt);break}ht&&(ke=Ki)}Pe&&((pt=!It&&pt)&&kt--,he&&Fn.push(pt))}if(kt+=Yt,Pe&&Yt!==kt){for(ut=0;It=ve[ut++];)It(Fn,ar,fe,$e);if(he){if(kt>0)for(;Yt--;)Fn[Yt]||ar[Yt]||(ar[Yt]=Ne.call(ze));ar=la(ar)}B.apply(ze,ar),ht&&!he&&ar.length>0&&kt+ve.length>1&&S.uniqueSort(ze)}return ht&&(ke=Ki,C=qn),Fn};return Pe?Cn(Q):Q}function hs(ee,ve){var Pe,Oe=[],Q=[],he=Rt[ee+" "];if(!he){for(ve||(ve=sa(ee)),Pe=ve.length;Pe--;)he=dr(ve[Pe]),he[je]?Oe.push(he):Q.push(he);he=Rt(ee,Xs(Q,Oe)),he.selector=ee}return he}function ps(ee,ve,Pe,Oe){var Q,he,fe,$e,ze,ht=typeof ee=="function"&&ee,pt=!Oe&&sa(ee=ht.selector||ee);if(Pe=Pe||[],pt.length===1){if(he=pt[0]=pt[0].slice(0),he.length>2&&(fe=he[0]).type==="ID"&&ve.nodeType===9&&oe&&m.relative[he[1].type]){if(ve=(m.find.ID(fe.matches[0].replace(Be,et),ve)||[])[0],ve)ht&&(ve=ve.parentNode);else return Pe;ee=ee.slice(he.shift().value.length)}for(Q=F.needsContext.test(ee)?0:he.length;Q--&&(fe=he[Q],!m.relative[$e=fe.type]);)if((ze=m.find[$e])&&(Oe=ze(fe.matches[0].replace(Be,et),Ce.test(he[0].type)&&Gs(ve.parentNode)||ve))){if(he.splice(Q,1),ee=Oe.length&&wi(he),!ee)return B.apply(Pe,Oe),Pe;break}}return(ht||hs(ee,pt))(Oe,ve,!oe,Pe,!ve||Ce.test(ee)&&Gs(ve.parentNode)||ve),Pe}_.sortStable=je.split("").sort(dn).join("")===je,mo(),_.sortDetached=Gn(function(ee){return ee.compareDocumentPosition(H.createElement("fieldset"))&1}),S.find=Et,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Et.compile=hs,Et.select=ps,Et.setDocument=mo,Et.tokenize=sa,Et.escape=S.escapeSelector,Et.getText=S.text,Et.isXML=S.isXMLDoc,Et.selectors=S.expr,Et.support=S.support,Et.uniqueSort=S.uniqueSort})();var at=function(f,m,C){for(var O=[],N=C!==void 0;(f=f[m])&&f.nodeType!==9;)if(f.nodeType===1){if(N&&S(f).is(C))break;O.push(f)}return O},Ee=function(f,m){for(var C=[];f;f=f.nextSibling)f.nodeType===1&&f!==m&&C.push(f);return C},_e=S.expr.match.needsContext,Ye=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function We(f,m,C){return I(m)?S.grep(f,function(O,N){return!!m.call(O,N,O)!==C}):m.nodeType?S.grep(f,function(O){return O===m!==C}):typeof m!="string"?S.grep(f,function(O){return c.call(m,O)>-1!==C}):S.filter(m,f,C)}S.filter=function(f,m,C){var O=m[0];return C&&(f=":not("+f+")"),m.length===1&&O.nodeType===1?S.find.matchesSelector(O,f)?[O]:[]:S.find.matches(f,S.grep(m,function(N){return N.nodeType===1}))},S.fn.extend({find:function(f){var m,C,O=this.length,N=this;if(typeof f!="string")return this.pushStack(S(f).filter(function(){for(m=0;m<O;m++)if(S.contains(N[m],this))return!0}));for(C=this.pushStack([]),m=0;m<O;m++)S.find(f,N[m],C);return O>1?S.uniqueSort(C):C},filter:function(f){return this.pushStack(We(this,f||[],!1))},not:function(f){return this.pushStack(We(this,f||[],!0))},is:function(f){return!!We(this,typeof f=="string"&&_e.test(f)?S(f):f||[],!1).length}});var Re,Fe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,He=S.fn.init=function(f,m,C){var O,N;if(!f)return this;if(C=C||Re,typeof f=="string")if(f[0]==="<"&&f[f.length-1]===">"&&f.length>=3?O=[null,f,null]:O=Fe.exec(f),O&&(O[1]||!m))if(O[1]){if(m=m instanceof S?m[0]:m,S.merge(this,S.parseHTML(O[1],m&&m.nodeType?m.ownerDocument||m:R,!0)),Ye.test(O[1])&&S.isPlainObject(m))for(O in m)I(this[O])?this[O](m[O]):this.attr(O,m[O]);return this}else return N=R.getElementById(O[2]),N&&(this[0]=N,this.length=1),this;else return!m||m.jquery?(m||C).find(f):this.constructor(m).find(f);else{if(f.nodeType)return this[0]=f,this.length=1,this;if(I(f))return C.ready!==void 0?C.ready(f):f(S)}return S.makeArray(f,this)};He.prototype=S.fn,Re=S(R);var lt=/^(?:parents|prev(?:Until|All))/,ct={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(f){var m=S(f,this),C=m.length;return this.filter(function(){for(var O=0;O<C;O++)if(S.contains(this,m[O]))return!0})},closest:function(f,m){var C,O=0,N=this.length,B=[],H=typeof f!="string"&&S(f);if(!_e.test(f)){for(;O<N;O++)for(C=this[O];C&&C!==m;C=C.parentNode)if(C.nodeType<11&&(H?H.index(C)>-1:C.nodeType===1&&S.find.matchesSelector(C,f))){B.push(C);break}}return this.pushStack(B.length>1?S.uniqueSort(B):B)},index:function(f){return f?typeof f=="string"?c.call(S(f),this[0]):c.call(this,f.jquery?f[0]:f):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(f,m){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(f,m))))},addBack:function(f){return this.add(f==null?this.prevObject:this.prevObject.filter(f))}});function yt(f,m){for(;(f=f[m])&&f.nodeType!==1;);return f}S.each({parent:function(f){var m=f.parentNode;return m&&m.nodeType!==11?m:null},parents:function(f){return at(f,"parentNode")},parentsUntil:function(f,m,C){return at(f,"parentNode",C)},next:function(f){return yt(f,"nextSibling")},prev:function(f){return yt(f,"previousSibling")},nextAll:function(f){return at(f,"nextSibling")},prevAll:function(f){return at(f,"previousSibling")},nextUntil:function(f,m,C){return at(f,"nextSibling",C)},prevUntil:function(f,m,C){return at(f,"previousSibling",C)},siblings:function(f){return Ee((f.parentNode||{}).firstChild,f)},children:function(f){return Ee(f.firstChild)},contents:function(f){return f.contentDocument!=null&&i(f.contentDocument)?f.contentDocument:(ae(f,"template")&&(f=f.content||f),S.merge([],f.childNodes))}},function(f,m){S.fn[f]=function(C,O){var N=S.map(this,m,C);return f.slice(-5)!=="Until"&&(O=C),O&&typeof O=="string"&&(N=S.filter(O,N)),this.length>1&&(ct[f]||S.uniqueSort(N),lt.test(f)&&N.reverse()),this.pushStack(N)}});var dt=/[^\x20\t\r\n\f]+/g;function Tt(f){var m={};return S.each(f.match(dt)||[],function(C,O){m[O]=!0}),m}S.Callbacks=function(f){f=typeof f=="string"?Tt(f):S.extend({},f);var m,C,O,N,B=[],H=[],ue=-1,oe=function(){for(N=N||f.once,O=m=!0;H.length;ue=-1)for(C=H.shift();++ue<B.length;)B[ue].apply(C[0],C[1])===!1&&f.stopOnFalse&&(ue=B.length,C=!1);f.memory||(C=!1),m=!1,N&&(C?B=[]:B="")},we={add:function(){return B&&(C&&!m&&(ue=B.length-1,H.push(C)),function Le(je){S.each(je,function(ke,Xe){I(Xe)?(!f.unique||!we.has(Xe))&&B.push(Xe):Xe&&Xe.length&&te(Xe)!=="string"&&Le(Xe)})}(arguments),C&&!m&&oe()),this},remove:function(){return S.each(arguments,function(Le,je){for(var ke;(ke=S.inArray(je,B,ke))>-1;)B.splice(ke,1),ke<=ue&&ue--}),this},has:function(Le){return Le?S.inArray(Le,B)>-1:B.length>0},empty:function(){return B&&(B=[]),this},disable:function(){return N=H=[],B=C="",this},disabled:function(){return!B},lock:function(){return N=H=[],!C&&!m&&(B=C=""),this},locked:function(){return!!N},fireWith:function(Le,je){return N||(je=je||[],je=[Le,je.slice?je.slice():je],H.push(je),m||oe()),this},fire:function(){return we.fireWith(this,arguments),this},fired:function(){return!!O}};return we};function ot(f){return f}function $t(f){throw f}function Ht(f,m,C,O){var N;try{f&&I(N=f.promise)?N.call(f).done(m).fail(C):f&&I(N=f.then)?N.call(f,m,C):m.apply(void 0,[f].slice(O))}catch(B){C.apply(void 0,[B])}}S.extend({Deferred:function(f){var m=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],C="pending",O={state:function(){return C},always:function(){return N.done(arguments).fail(arguments),this},catch:function(B){return O.then(null,B)},pipe:function(){var B=arguments;return S.Deferred(function(H){S.each(m,function(ue,oe){var we=I(B[oe[4]])&&B[oe[4]];N[oe[1]](function(){var Le=we&&we.apply(this,arguments);Le&&I(Le.promise)?Le.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[oe[0]+"With"](this,we?[Le]:arguments)})}),B=null}).promise()},then:function(B,H,ue){var oe=0;function we(Le,je,ke,Xe){return function(){var ft=this,Dt=arguments,Rt=function(){var dn,jr;if(!(Le<oe)){if(dn=ke.apply(ft,Dt),dn===je.promise())throw new TypeError("Thenable self-resolution");jr=dn&&(typeof dn=="object"||typeof dn=="function")&&dn.then,I(jr)?Xe?jr.call(dn,we(oe,je,ot,Xe),we(oe,je,$t,Xe)):(oe++,jr.call(dn,we(oe,je,ot,Xe),we(oe,je,$t,Xe),we(oe,je,ot,je.notifyWith))):(ke!==ot&&(ft=void 0,Dt=[dn]),(Xe||je.resolveWith)(ft,Dt))}},Ln=Xe?Rt:function(){try{Rt()}catch(dn){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(dn,Ln.error),Le+1>=oe&&(ke!==$t&&(ft=void 0,Dt=[dn]),je.rejectWith(ft,Dt))}};Le?Ln():(S.Deferred.getErrorHook?Ln.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Ln.error=S.Deferred.getStackHook()),t.setTimeout(Ln))}}return S.Deferred(function(Le){m[0][3].add(we(0,Le,I(ue)?ue:ot,Le.notifyWith)),m[1][3].add(we(0,Le,I(B)?B:ot)),m[2][3].add(we(0,Le,I(H)?H:$t))}).promise()},promise:function(B){return B!=null?S.extend(B,O):O}},N={};return S.each(m,function(B,H){var ue=H[2],oe=H[5];O[H[1]]=ue.add,oe&&ue.add(function(){C=oe},m[3-B][2].disable,m[3-B][3].disable,m[0][2].lock,m[0][3].lock),ue.add(H[3].fire),N[H[0]]=function(){return N[H[0]+"With"](this===N?void 0:this,arguments),this},N[H[0]+"With"]=ue.fireWith}),O.promise(N),f&&f.call(N,N),N},when:function(f){var m=arguments.length,C=m,O=Array(C),N=o.call(arguments),B=S.Deferred(),H=function(ue){return function(oe){O[ue]=this,N[ue]=arguments.length>1?o.call(arguments):oe,--m||B.resolveWith(O,N)}};if(m<=1&&(Ht(f,B.done(H(C)).resolve,B.reject,!m),B.state()==="pending"||I(N[C]&&N[C].then)))return B.then();for(;C--;)Ht(N[C],H(C),B.reject);return B.promise()}});var Xn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(f,m){t.console&&t.console.warn&&f&&Xn.test(f.name)&&t.console.warn("jQuery.Deferred exception: "+f.message,f.stack,m)},S.readyException=function(f){t.setTimeout(function(){throw f})};var mr=S.Deferred();S.fn.ready=function(f){return mr.then(f).catch(function(m){S.readyException(m)}),this},S.extend({isReady:!1,readyWait:1,ready:function(f){(f===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(f!==!0&&--S.readyWait>0)&&mr.resolveWith(R,[S]))}}),S.ready.then=mr.then;function Kn(){R.removeEventListener("DOMContentLoaded",Kn),t.removeEventListener("load",Kn),S.ready()}R.readyState==="complete"||R.readyState!=="loading"&&!R.documentElement.doScroll?t.setTimeout(S.ready):(R.addEventListener("DOMContentLoaded",Kn),t.addEventListener("load",Kn));var Dn=function(f,m,C,O,N,B,H){var ue=0,oe=f.length,we=C==null;if(te(C)==="object"){N=!0;for(ue in C)Dn(f,m,ue,C[ue],!0,B,H)}else if(O!==void 0&&(N=!0,I(O)||(H=!0),we&&(H?(m.call(f,O),m=null):(we=m,m=function(Le,je,ke){return we.call(S(Le),ke)})),m))for(;ue<oe;ue++)m(f[ue],C,H?O:O.call(f[ue],ue,m(f[ue],C)));return N?f:we?m.call(f):oe?m(f[0],C):B},$i=/^-ms-/,_r=/-([a-z])/g;function rr(f,m){return m.toUpperCase()}function cn(f){return f.replace($i,"ms-").replace(_r,rr)}var hn=function(f){return f.nodeType===1||f.nodeType===9||!+f.nodeType};function pn(){this.expando=S.expando+pn.uid++}pn.uid=1,pn.prototype={cache:function(f){var m=f[this.expando];return m||(m={},hn(f)&&(f.nodeType?f[this.expando]=m:Object.defineProperty(f,this.expando,{value:m,configurable:!0}))),m},set:function(f,m,C){var O,N=this.cache(f);if(typeof m=="string")N[cn(m)]=C;else for(O in m)N[cn(O)]=m[O];return N},get:function(f,m){return m===void 0?this.cache(f):f[this.expando]&&f[this.expando][cn(m)]},access:function(f,m,C){return m===void 0||m&&typeof m=="string"&&C===void 0?this.get(f,m):(this.set(f,m,C),C!==void 0?C:m)},remove:function(f,m){var C,O=f[this.expando];if(O!==void 0){if(m!==void 0)for(Array.isArray(m)?m=m.map(cn):(m=cn(m),m=m in O?[m]:m.match(dt)||[]),C=m.length;C--;)delete O[m[C]];(m===void 0||S.isEmptyObject(O))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(f){var m=f[this.expando];return m!==void 0&&!S.isEmptyObject(m)}};var mt=new pn,In=new pn,ui=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,un=/[A-Z]/g;function Vi(f){return f==="true"?!0:f==="false"?!1:f==="null"?null:f===+f+""?+f:ui.test(f)?JSON.parse(f):f}function Hi(f,m,C){var O;if(C===void 0&&f.nodeType===1)if(O="data-"+m.replace(un,"-$&").toLowerCase(),C=f.getAttribute(O),typeof C=="string"){try{C=Vi(C)}catch{}In.set(f,m,C)}else C=void 0;return C}S.extend({hasData:function(f){return In.hasData(f)||mt.hasData(f)},data:function(f,m,C){return In.access(f,m,C)},removeData:function(f,m){In.remove(f,m)},_data:function(f,m,C){return mt.access(f,m,C)},_removeData:function(f,m){mt.remove(f,m)}}),S.fn.extend({data:function(f,m){var C,O,N,B=this[0],H=B&&B.attributes;if(f===void 0){if(this.length&&(N=In.get(B),B.nodeType===1&&!mt.get(B,"hasDataAttrs"))){for(C=H.length;C--;)H[C]&&(O=H[C].name,O.indexOf("data-")===0&&(O=cn(O.slice(5)),Hi(B,O,N[O])));mt.set(B,"hasDataAttrs",!0)}return N}return typeof f=="object"?this.each(function(){In.set(this,f)}):Dn(this,function(ue){var oe;if(B&&ue===void 0)return oe=In.get(B,f),oe!==void 0||(oe=Hi(B,f),oe!==void 0)?oe:void 0;this.each(function(){In.set(this,f,ue)})},null,m,arguments.length>1,null,!0)},removeData:function(f){return this.each(function(){In.remove(this,f)})}}),S.extend({queue:function(f,m,C){var O;if(f)return m=(m||"fx")+"queue",O=mt.get(f,m),C&&(!O||Array.isArray(C)?O=mt.access(f,m,S.makeArray(C)):O.push(C)),O||[]},dequeue:function(f,m){m=m||"fx";var C=S.queue(f,m),O=C.length,N=C.shift(),B=S._queueHooks(f,m),H=function(){S.dequeue(f,m)};N==="inprogress"&&(N=C.shift(),O--),N&&(m==="fx"&&C.unshift("inprogress"),delete B.stop,N.call(f,H,B)),!O&&B&&B.empty.fire()},_queueHooks:function(f,m){var C=m+"queueHooks";return mt.get(f,C)||mt.access(f,C,{empty:S.Callbacks("once memory").add(function(){mt.remove(f,[m+"queue",C])})})}}),S.fn.extend({queue:function(f,m){var C=2;return typeof f!="string"&&(m=f,f="fx",C--),arguments.length<C?S.queue(this[0],f):m===void 0?this:this.each(function(){var O=S.queue(this,f,m);S._queueHooks(this,f),f==="fx"&&O[0]!=="inprogress"&&S.dequeue(this,f)})},dequeue:function(f){return this.each(function(){S.dequeue(this,f)})},clearQueue:function(f){return this.queue(f||"fx",[])},promise:function(f,m){var C,O=1,N=S.Deferred(),B=this,H=this.length,ue=function(){--O||N.resolveWith(B,[B])};for(typeof f!="string"&&(m=f,f=void 0),f=f||"fx";H--;)C=mt.get(B[H],f+"queueHooks"),C&&C.empty&&(O++,C.empty.add(ue));return ue(),N.promise(m)}});var Ui=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dr=new RegExp("^(?:([+-])=|)("+Ui+")([a-z%]*)$","i"),Wn=["Top","Right","Bottom","Left"],Pr=R.documentElement,yr=function(f){return S.contains(f.ownerDocument,f)},Xr={composed:!0};Pr.getRootNode&&(yr=function(f){return S.contains(f.ownerDocument,f)||f.getRootNode(Xr)===f.ownerDocument});var Kr=function(f,m){return f=m||f,f.style.display==="none"||f.style.display===""&&yr(f)&&S.css(f,"display")==="none"};function Po(f,m,C,O){var N,B,H=20,ue=O?function(){return O.cur()}:function(){return S.css(f,m,"")},oe=ue(),we=C&&C[3]||(S.cssNumber[m]?"":"px"),Le=f.nodeType&&(S.cssNumber[m]||we!=="px"&&+oe)&&Dr.exec(S.css(f,m));if(Le&&Le[3]!==we){for(oe=oe/2,we=we||Le[3],Le=+oe||1;H--;)S.style(f,m,Le+we),(1-B)*(1-(B=ue()/oe||.5))<=0&&(H=0),Le=Le/B;Le=Le*2,S.style(f,m,Le+we),C=C||[]}return C&&(Le=+Le||+oe||0,N=C[1]?Le+(C[1]+1)*C[2]:+C[2],O&&(O.unit=we,O.start=Le,O.end=N)),N}var Zn={};function Zr(f){var m,C=f.ownerDocument,O=f.nodeName,N=Zn[O];return N||(m=C.body.appendChild(C.createElement(O)),N=S.css(m,"display"),m.parentNode.removeChild(m),N==="none"&&(N="block"),Zn[O]=N,N)}function ir(f,m){for(var C,O,N=[],B=0,H=f.length;B<H;B++)O=f[B],O.style&&(C=O.style.display,m?(C==="none"&&(N[B]=mt.get(O,"display")||null,N[B]||(O.style.display="")),O.style.display===""&&Kr(O)&&(N[B]=Zr(O))):C!=="none"&&(N[B]="none",mt.set(O,"display",C)));for(B=0;B<H;B++)N[B]!=null&&(f[B].style.display=N[B]);return f}S.fn.extend({show:function(){return ir(this,!0)},hide:function(){return ir(this)},toggle:function(f){return typeof f=="boolean"?f?this.show():this.hide():this.each(function(){Kr(this)?S(this).show():S(this).hide()})}});var Zt=/^(?:checkbox|radio)$/i,ci=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Wi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var f=R.createDocumentFragment(),m=f.appendChild(R.createElement("div")),C=R.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),m.appendChild(C),_.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!m.cloneNode(!0).lastChild.defaultValue,m.innerHTML="<option></option>",_.option=!!m.lastChild})();var An={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,"",""]};An.tbody=An.tfoot=An.colgroup=An.caption=An.thead,An.th=An.td,_.option||(An.optgroup=An.option=[1,"<select multiple='multiple'>","</select>"]);function gn(f,m){var C;return typeof f.getElementsByTagName<"u"?C=f.getElementsByTagName(m||"*"):typeof f.querySelectorAll<"u"?C=f.querySelectorAll(m||"*"):C=[],m===void 0||m&&ae(f,m)?S.merge([f],C):C}function fi(f,m){for(var C=0,O=f.length;C<O;C++)mt.set(f[C],"globalEval",!m||mt.get(m[C],"globalEval"))}var di=/<|&#?\w+;/;function mn(f,m,C,O,N){for(var B,H,ue,oe,we,Le,je=m.createDocumentFragment(),ke=[],Xe=0,ft=f.length;Xe<ft;Xe++)if(B=f[Xe],B||B===0)if(te(B)==="object")S.merge(ke,B.nodeType?[B]:B);else if(!di.test(B))ke.push(m.createTextNode(B));else{for(H=H||je.appendChild(m.createElement("div")),ue=(ci.exec(B)||["",""])[1].toLowerCase(),oe=An[ue]||An._default,H.innerHTML=oe[1]+S.htmlPrefilter(B)+oe[2],Le=oe[0];Le--;)H=H.lastChild;S.merge(ke,H.childNodes),H=je.firstChild,H.textContent=""}for(je.textContent="",Xe=0;B=ke[Xe++];){if(O&&S.inArray(B,O)>-1){N&&N.push(B);continue}if(we=yr(B),H=gn(je.appendChild(B),"script"),we&&fi(H),C)for(Le=0;B=H[Le++];)Wi.test(B.type||"")&&C.push(B)}return je}var uo=/^([^.]*)(?:\.(.+)|)/;function br(){return!0}function hi(){return!1}function fn(f,m,C,O,N,B){var H,ue;if(typeof m=="object"){typeof C!="string"&&(O=O||C,C=void 0);for(ue in m)fn(f,ue,C,O,m[ue],B);return f}if(O==null&&N==null?(N=C,O=C=void 0):N==null&&(typeof C=="string"?(N=O,O=void 0):(N=O,O=C,C=void 0)),N===!1)N=hi;else if(!N)return f;return B===1&&(H=N,N=function(oe){return S().off(oe),H.apply(this,arguments)},N.guid=H.guid||(H.guid=S.guid++)),f.each(function(){S.event.add(this,m,N,O,C)})}S.event={global:{},add:function(f,m,C,O,N){var B,H,ue,oe,we,Le,je,ke,Xe,ft,Dt,Rt=mt.get(f);if(hn(f))for(C.handler&&(B=C,C=B.handler,N=B.selector),N&&S.find.matchesSelector(Pr,N),C.guid||(C.guid=S.guid++),(oe=Rt.events)||(oe=Rt.events=Object.create(null)),(H=Rt.handle)||(H=Rt.handle=function(Ln){return typeof S<"u"&&S.event.triggered!==Ln.type?S.event.dispatch.apply(f,arguments):void 0}),m=(m||"").match(dt)||[""],we=m.length;we--;)ue=uo.exec(m[we])||[],Xe=Dt=ue[1],ft=(ue[2]||"").split(".").sort(),Xe&&(je=S.event.special[Xe]||{},Xe=(N?je.delegateType:je.bindType)||Xe,je=S.event.special[Xe]||{},Le=S.extend({type:Xe,origType:Dt,data:O,handler:C,guid:C.guid,selector:N,needsContext:N&&S.expr.match.needsContext.test(N),namespace:ft.join(".")},B),(ke=oe[Xe])||(ke=oe[Xe]=[],ke.delegateCount=0,(!je.setup||je.setup.call(f,O,ft,H)===!1)&&f.addEventListener&&f.addEventListener(Xe,H)),je.add&&(je.add.call(f,Le),Le.handler.guid||(Le.handler.guid=C.guid)),N?ke.splice(ke.delegateCount++,0,Le):ke.push(Le),S.event.global[Xe]=!0)},remove:function(f,m,C,O,N){var B,H,ue,oe,we,Le,je,ke,Xe,ft,Dt,Rt=mt.hasData(f)&&mt.get(f);if(!(!Rt||!(oe=Rt.events))){for(m=(m||"").match(dt)||[""],we=m.length;we--;){if(ue=uo.exec(m[we])||[],Xe=Dt=ue[1],ft=(ue[2]||"").split(".").sort(),!Xe){for(Xe in oe)S.event.remove(f,Xe+m[we],C,O,!0);continue}for(je=S.event.special[Xe]||{},Xe=(O?je.delegateType:je.bindType)||Xe,ke=oe[Xe]||[],ue=ue[2]&&new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=B=ke.length;B--;)Le=ke[B],(N||Dt===Le.origType)&&(!C||C.guid===Le.guid)&&(!ue||ue.test(Le.namespace))&&(!O||O===Le.selector||O==="**"&&Le.selector)&&(ke.splice(B,1),Le.selector&&ke.delegateCount--,je.remove&&je.remove.call(f,Le));H&&!ke.length&&((!je.teardown||je.teardown.call(f,ft,Rt.handle)===!1)&&S.removeEvent(f,Xe,Rt.handle),delete oe[Xe])}S.isEmptyObject(oe)&&mt.remove(f,"handle events")}},dispatch:function(f){var m,C,O,N,B,H,ue=new Array(arguments.length),oe=S.event.fix(f),we=(mt.get(this,"events")||Object.create(null))[oe.type]||[],Le=S.event.special[oe.type]||{};for(ue[0]=oe,m=1;m<arguments.length;m++)ue[m]=arguments[m];if(oe.delegateTarget=this,!(Le.preDispatch&&Le.preDispatch.call(this,oe)===!1)){for(H=S.event.handlers.call(this,oe,we),m=0;(N=H[m++])&&!oe.isPropagationStopped();)for(oe.currentTarget=N.elem,C=0;(B=N.handlers[C++])&&!oe.isImmediatePropagationStopped();)(!oe.rnamespace||B.namespace===!1||oe.rnamespace.test(B.namespace))&&(oe.handleObj=B,oe.data=B.data,O=((S.event.special[B.origType]||{}).handle||B.handler).apply(N.elem,ue),O!==void 0&&(oe.result=O)===!1&&(oe.preventDefault(),oe.stopPropagation()));return Le.postDispatch&&Le.postDispatch.call(this,oe),oe.result}},handlers:function(f,m){var C,O,N,B,H,ue=[],oe=m.delegateCount,we=f.target;if(oe&&we.nodeType&&!(f.type==="click"&&f.button>=1)){for(;we!==this;we=we.parentNode||this)if(we.nodeType===1&&!(f.type==="click"&&we.disabled===!0)){for(B=[],H={},C=0;C<oe;C++)O=m[C],N=O.selector+" ",H[N]===void 0&&(H[N]=O.needsContext?S(N,this).index(we)>-1:S.find(N,this,null,[we]).length),H[N]&&B.push(O);B.length&&ue.push({elem:we,handlers:B})}}return we=this,oe<m.length&&ue.push({elem:we,handlers:m.slice(oe)}),ue},addProp:function(f,m){Object.defineProperty(S.Event.prototype,f,{enumerable:!0,configurable:!0,get:I(m)?function(){if(this.originalEvent)return m(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[f]},set:function(C){Object.defineProperty(this,f,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(f){return f[S.expando]?f:new S.Event(f)},special:{load:{noBubble:!0},click:{setup:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ae(m,"input")&&Ei(m,"click",!0),!1},trigger:function(f){var m=this||f;return Zt.test(m.type)&&m.click&&ae(m,"input")&&Ei(m,"click"),!0},_default:function(f){var m=f.target;return Zt.test(m.type)&&m.click&&ae(m,"input")&&mt.get(m,"click")||ae(m,"a")}},beforeunload:{postDispatch:function(f){f.result!==void 0&&f.originalEvent&&(f.originalEvent.returnValue=f.result)}}}};function Ei(f,m,C){if(!C){mt.get(f,m)===void 0&&S.event.add(f,m,br);return}mt.set(f,m,!1),S.event.add(f,m,{namespace:!1,handler:function(O){var N,B=mt.get(this,m);if(O.isTrigger&1&&this[m]){if(B)(S.event.special[m]||{}).delegateType&&O.stopPropagation();else if(B=o.call(arguments),mt.set(this,m,B),this[m](),N=mt.get(this,m),mt.set(this,m,!1),B!==N)return O.stopImmediatePropagation(),O.preventDefault(),N}else B&&(mt.set(this,m,S.event.trigger(B[0],B.slice(1),this)),O.stopPropagation(),O.isImmediatePropagationStopped=br)}})}S.removeEvent=function(f,m,C){f.removeEventListener&&f.removeEventListener(m,C)},S.Event=function(f,m){if(!(this instanceof S.Event))return new S.Event(f,m);f&&f.type?(this.originalEvent=f,this.type=f.type,this.isDefaultPrevented=f.defaultPrevented||f.defaultPrevented===void 0&&f.returnValue===!1?br:hi,this.target=f.target&&f.target.nodeType===3?f.target.parentNode:f.target,this.currentTarget=f.currentTarget,this.relatedTarget=f.relatedTarget):this.type=f,m&&S.extend(this,m),this.timeStamp=f&&f.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:hi,isPropagationStopped:hi,isImmediatePropagationStopped:hi,isSimulated:!1,preventDefault:function(){var f=this.originalEvent;this.isDefaultPrevented=br,f&&!this.isSimulated&&f.preventDefault()},stopPropagation:function(){var f=this.originalEvent;this.isPropagationStopped=br,f&&!this.isSimulated&&f.stopPropagation()},stopImmediatePropagation:function(){var f=this.originalEvent;this.isImmediatePropagationStopped=br,f&&!this.isSimulated&&f.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(f,m){function C(O){if(R.documentMode){var N=mt.get(this,"handle"),B=S.event.fix(O);B.type=O.type==="focusin"?"focus":"blur",B.isSimulated=!0,N(O),B.target===B.currentTarget&&N(B)}else S.event.simulate(m,O.target,S.event.fix(O))}S.event.special[f]={setup:function(){var O;if(Ei(this,f,!0),R.documentMode)O=mt.get(this,m),O||this.addEventListener(m,C),mt.set(this,m,(O||0)+1);else return!1},trigger:function(){return Ei(this,f),!0},teardown:function(){var O;if(R.documentMode)O=mt.get(this,m)-1,O?mt.set(this,m,O):(this.removeEventListener(m,C),mt.remove(this,m));else return!1},_default:function(O){return mt.get(O.target,f)},delegateType:m},S.event.special[m]={setup:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=mt.get(N,m);B||(R.documentMode?this.addEventListener(m,C):O.addEventListener(f,C,!0)),mt.set(N,m,(B||0)+1)},teardown:function(){var O=this.ownerDocument||this.document||this,N=R.documentMode?this:O,B=mt.get(N,m)-1;B?mt.set(N,m,B):(R.documentMode?this.removeEventListener(m,C):O.removeEventListener(f,C,!0),mt.remove(N,m))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(f,m){S.event.special[f]={delegateType:m,bindType:m,handle:function(C){var O,N=this,B=C.relatedTarget,H=C.handleObj;return(!B||B!==N&&!S.contains(N,B))&&(C.type=H.origType,O=H.handler.apply(this,arguments),C.type=m),O}}}),S.fn.extend({on:function(f,m,C,O){return fn(this,f,m,C,O)},one:function(f,m,C,O){return fn(this,f,m,C,O,1)},off:function(f,m,C){var O,N;if(f&&f.preventDefault&&f.handleObj)return O=f.handleObj,S(f.delegateTarget).off(O.namespace?O.origType+"."+O.namespace:O.origType,O.selector,O.handler),this;if(typeof f=="object"){for(N in f)this.off(N,m,f[N]);return this}return(m===!1||typeof m=="function")&&(C=m,m=void 0),C===!1&&(C=hi),this.each(function(){S.event.remove(this,f,C,m)})}});var Ra=/<script|<style|<link/i,Ia=/checked\s*(?:[^=]|=\s*.checked.)/i,Jr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function co(f,m){return ae(f,"table")&&ae(m.nodeType!==11?m:m.firstChild,"tr")&&S(f).children("tbody")[0]||f}function fo(f){return f.type=(f.getAttribute("type")!==null)+"/"+f.type,f}function Ro(f){return(f.type||"").slice(0,5)==="true/"?f.type=f.type.slice(5):f.removeAttribute("type"),f}function ki(f,m){var C,O,N,B,H,ue,oe;if(m.nodeType===1){if(mt.hasData(f)&&(B=mt.get(f),oe=B.events,oe)){mt.remove(m,"handle events");for(N in oe)for(C=0,O=oe[N].length;C<O;C++)S.event.add(m,N,oe[N][C])}In.hasData(f)&&(H=In.access(f),ue=S.extend({},H),In.set(m,ue))}}function pi(f,m){var C=m.nodeName.toLowerCase();C==="input"&&Zt.test(f.type)?m.checked=f.checked:(C==="input"||C==="textarea")&&(m.defaultValue=f.defaultValue)}function Oi(f,m,C,O){m=s(m);var N,B,H,ue,oe,we,Le=0,je=f.length,ke=je-1,Xe=m[0],ft=I(Xe);if(ft||je>1&&typeof Xe=="string"&&!_.checkClone&&Ia.test(Xe))return f.each(function(Dt){var Rt=f.eq(Dt);ft&&(m[0]=Xe.call(this,Dt,Rt.html())),Oi(Rt,m,C,O)});if(je&&(N=mn(m,f[0].ownerDocument,!1,f,O),B=N.firstChild,N.childNodes.length===1&&(N=B),B||O)){for(H=S.map(gn(N,"script"),fo),ue=H.length;Le<je;Le++)oe=N,Le!==ke&&(oe=S.clone(oe,!0,!0),ue&&S.merge(H,gn(oe,"script"))),C.call(f[Le],oe,Le);if(ue)for(we=H[H.length-1].ownerDocument,S.map(H,Ro),Le=0;Le<ue;Le++)oe=H[Le],Wi.test(oe.type||"")&&!mt.access(oe,"globalEval")&&S.contains(we,oe)&&(oe.src&&(oe.type||"").toLowerCase()!=="module"?S._evalUrl&&!oe.noModule&&S._evalUrl(oe.src,{nonce:oe.nonce||oe.getAttribute("nonce")},we):W(oe.textContent.replace(Jr,""),oe,we))}return f}function ho(f,m,C){for(var O,N=m?S.filter(m,f):f,B=0;(O=N[B])!=null;B++)!C&&O.nodeType===1&&S.cleanData(gn(O)),O.parentNode&&(C&&yr(O)&&fi(gn(O,"script")),O.parentNode.removeChild(O));return f}S.extend({htmlPrefilter:function(f){return f},clone:function(f,m,C){var O,N,B,H,ue=f.cloneNode(!0),oe=yr(f);if(!_.noCloneChecked&&(f.nodeType===1||f.nodeType===11)&&!S.isXMLDoc(f))for(H=gn(ue),B=gn(f),O=0,N=B.length;O<N;O++)pi(B[O],H[O]);if(m)if(C)for(B=B||gn(f),H=H||gn(ue),O=0,N=B.length;O<N;O++)ki(B[O],H[O]);else ki(f,ue);return H=gn(ue,"script"),H.length>0&&fi(H,!oe&&gn(f,"script")),ue},cleanData:function(f){for(var m,C,O,N=S.event.special,B=0;(C=f[B])!==void 0;B++)if(hn(C)){if(m=C[mt.expando]){if(m.events)for(O in m.events)N[O]?S.event.remove(C,O):S.removeEvent(C,O,m.handle);C[mt.expando]=void 0}C[In.expando]&&(C[In.expando]=void 0)}}}),S.fn.extend({detach:function(f){return ho(this,f,!0)},remove:function(f){return ho(this,f)},text:function(f){return Dn(this,function(m){return m===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=m)})},null,f,arguments.length)},append:function(){return Oi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=co(this,f);m.appendChild(f)}})},prepend:function(){return Oi(this,arguments,function(f){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var m=co(this,f);m.insertBefore(f,m.firstChild)}})},before:function(){return Oi(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this)})},after:function(){return Oi(this,arguments,function(f){this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling)})},empty:function(){for(var f,m=0;(f=this[m])!=null;m++)f.nodeType===1&&(S.cleanData(gn(f,!1)),f.textContent="");return this},clone:function(f,m){return f=f??!1,m=m??f,this.map(function(){return S.clone(this,f,m)})},html:function(f){return Dn(this,function(m){var C=this[0]||{},O=0,N=this.length;if(m===void 0&&C.nodeType===1)return C.innerHTML;if(typeof m=="string"&&!Ra.test(m)&&!An[(ci.exec(m)||["",""])[1].toLowerCase()]){m=S.htmlPrefilter(m);try{for(;O<N;O++)C=this[O]||{},C.nodeType===1&&(S.cleanData(gn(C,!1)),C.innerHTML=m);C=0}catch{}}C&&this.empty().append(m)},null,f,arguments.length)},replaceWith:function(){var f=[];return Oi(this,arguments,function(m){var C=this.parentNode;S.inArray(this,f)<0&&(S.cleanData(gn(this)),C&&C.replaceChild(m,this))},f)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,m){S.fn[f]=function(C){for(var O,N=[],B=S(C),H=B.length-1,ue=0;ue<=H;ue++)O=ue===H?this:this.clone(!0),S(B[ue])[m](O),l.apply(N,O.get());return this.pushStack(N)}});var _i=new RegExp("^("+Ui+")(?!px)[a-z%]+$","i"),Qr=/^--/,wr=function(f){var m=f.ownerDocument.defaultView;return(!m||!m.opener)&&(m=t),m.getComputedStyle(f)},Rr=function(f,m,C){var O,N,B={};for(N in m)B[N]=f.style[N],f.style[N]=m[N];O=C.call(f);for(N in m)f.style[N]=B[N];return O},ei=new RegExp(Wn.join("|"),"i");(function(){function f(){if(we){oe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",we.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Pr.appendChild(oe).appendChild(we);var Le=t.getComputedStyle(we);C=Le.top!=="1%",ue=m(Le.marginLeft)===12,we.style.right="60%",B=m(Le.right)===36,O=m(Le.width)===36,we.style.position="absolute",N=m(we.offsetWidth/3)===12,Pr.removeChild(oe),we=null}}function m(Le){return Math.round(parseFloat(Le))}var C,O,N,B,H,ue,oe=R.createElement("div"),we=R.createElement("div");we.style&&(we.style.backgroundClip="content-box",we.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle=we.style.backgroundClip==="content-box",S.extend(_,{boxSizingReliable:function(){return f(),O},pixelBoxStyles:function(){return f(),B},pixelPosition:function(){return f(),C},reliableMarginLeft:function(){return f(),ue},scrollboxSize:function(){return f(),N},reliableTrDimensions:function(){var Le,je,ke,Xe;return H==null&&(Le=R.createElement("table"),je=R.createElement("tr"),ke=R.createElement("div"),Le.style.cssText="position:absolute;left:-11111px;border-collapse:separate",je.style.cssText="box-sizing:content-box;border:1px solid",je.style.height="1px",ke.style.height="9px",ke.style.display="block",Pr.appendChild(Le).appendChild(je).appendChild(ke),Xe=t.getComputedStyle(je),H=parseInt(Xe.height,10)+parseInt(Xe.borderTopWidth,10)+parseInt(Xe.borderBottomWidth,10)===je.offsetHeight,Pr.removeChild(Le)),H}}))})();function Ir(f,m,C){var O,N,B,H,ue=Qr.test(m),oe=f.style;return C=C||wr(f),C&&(H=C.getPropertyValue(m)||C[m],ue&&H&&(H=H.replace(nt,"$1")||void 0),H===""&&!yr(f)&&(H=S.style(f,m)),!_.pixelBoxStyles()&&_i.test(H)&&ei.test(m)&&(O=oe.width,N=oe.minWidth,B=oe.maxWidth,oe.minWidth=oe.maxWidth=oe.width=H,H=C.width,oe.width=O,oe.minWidth=N,oe.maxWidth=B)),H!==void 0?H+"":H}function zn(f,m){return{get:function(){if(f()){delete this.get;return}return(this.get=m).apply(this,arguments)}}}var vn=["Webkit","Moz","ms"],Ar=R.createElement("div").style,xr={};function Mn(f){for(var m=f[0].toUpperCase()+f.slice(1),C=vn.length;C--;)if(f=vn[C]+m,f in Ar)return f}function gi(f){var m=S.cssProps[f]||xr[f];return m||(f in Ar?f:xr[f]=Mn(f)||f)}var Mr=/^(none|table(?!-c[ea]).+)/,ti={position:"absolute",visibility:"hidden",display:"block"},Jn={letterSpacing:"0",fontWeight:"400"};function ni(f,m,C){var O=Dr.exec(m);return O?Math.max(0,O[2]-(C||0))+(O[3]||"px"):m}function ri(f,m,C,O,N,B){var H=m==="width"?1:0,ue=0,oe=0,we=0;if(C===(O?"border":"content"))return 0;for(;H<4;H+=2)C==="margin"&&(we+=S.css(f,C+Wn[H],!0,N)),O?(C==="content"&&(oe-=S.css(f,"padding"+Wn[H],!0,N)),C!=="margin"&&(oe-=S.css(f,"border"+Wn[H]+"Width",!0,N))):(oe+=S.css(f,"padding"+Wn[H],!0,N),C!=="padding"?oe+=S.css(f,"border"+Wn[H]+"Width",!0,N):ue+=S.css(f,"border"+Wn[H]+"Width",!0,N));return!O&&B>=0&&(oe+=Math.max(0,Math.ceil(f["offset"+m[0].toUpperCase()+m.slice(1)]-B-oe-ue-.5))||0),oe+we}function zi(f,m,C){var O=wr(f),N=!_.boxSizingReliable()||C,B=N&&S.css(f,"boxSizing",!1,O)==="border-box",H=B,ue=Ir(f,m,O),oe="offset"+m[0].toUpperCase()+m.slice(1);if(_i.test(ue)){if(!C)return ue;ue="auto"}return(!_.boxSizingReliable()&&B||!_.reliableTrDimensions()&&ae(f,"tr")||ue==="auto"||!parseFloat(ue)&&S.css(f,"display",!1,O)==="inline")&&f.getClientRects().length&&(B=S.css(f,"boxSizing",!1,O)==="border-box",H=oe in f,H&&(ue=f[oe])),ue=parseFloat(ue)||0,ue+ri(f,m,C||(B?"border":"content"),H,O,ue)+"px"}S.extend({cssHooks:{opacity:{get:function(f,m){if(m){var C=Ir(f,"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(f,m,C,O){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var N,B,H,ue=cn(m),oe=Qr.test(m),we=f.style;if(oe||(m=gi(ue)),H=S.cssHooks[m]||S.cssHooks[ue],C!==void 0){if(B=typeof C,B==="string"&&(N=Dr.exec(C))&&N[1]&&(C=Po(f,m,N),B="number"),C==null||C!==C)return;B==="number"&&!oe&&(C+=N&&N[3]||(S.cssNumber[ue]?"":"px")),!_.clearCloneStyle&&C===""&&m.indexOf("background")===0&&(we[m]="inherit"),(!H||!("set"in H)||(C=H.set(f,C,O))!==void 0)&&(oe?we.setProperty(m,C):we[m]=C)}else return H&&"get"in H&&(N=H.get(f,!1,O))!==void 0?N:we[m]}},css:function(f,m,C,O){var N,B,H,ue=cn(m),oe=Qr.test(m);return oe||(m=gi(ue)),H=S.cssHooks[m]||S.cssHooks[ue],H&&"get"in H&&(N=H.get(f,!0,C)),N===void 0&&(N=Ir(f,m,O)),N==="normal"&&m in Jn&&(N=Jn[m]),C===""||C?(B=parseFloat(N),C===!0||isFinite(B)?B||0:N):N}}),S.each(["height","width"],function(f,m){S.cssHooks[m]={get:function(C,O,N){if(O)return Mr.test(S.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?Rr(C,ti,function(){return zi(C,m,N)}):zi(C,m,N)},set:function(C,O,N){var B,H=wr(C),ue=!_.scrollboxSize()&&H.position==="absolute",oe=ue||N,we=oe&&S.css(C,"boxSizing",!1,H)==="border-box",Le=N?ri(C,m,N,we,H):0;return we&&ue&&(Le-=Math.ceil(C["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(H[m])-ri(C,m,"border",!1,H)-.5)),Le&&(B=Dr.exec(O))&&(B[3]||"px")!=="px"&&(C.style[m]=O,O=S.css(C,m)),ni(C,O,Le)}}}),S.cssHooks.marginLeft=zn(_.reliableMarginLeft,function(f,m){if(m)return(parseFloat(Ir(f,"marginLeft"))||f.getBoundingClientRect().left-Rr(f,{marginLeft:0},function(){return f.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(f,m){S.cssHooks[f+m]={expand:function(C){for(var O=0,N={},B=typeof C=="string"?C.split(" "):[C];O<4;O++)N[f+Wn[O]+m]=B[O]||B[O-2]||B[0];return N}},f!=="margin"&&(S.cssHooks[f+m].set=ni)}),S.fn.extend({css:function(f,m){return Dn(this,function(C,O,N){var B,H,ue={},oe=0;if(Array.isArray(O)){for(B=wr(C),H=O.length;oe<H;oe++)ue[O[oe]]=S.css(C,O[oe],!1,B);return ue}return N!==void 0?S.style(C,O,N):S.css(C,O)},f,m,arguments.length>1)}});function Rn(f,m,C,O,N){return new Rn.prototype.init(f,m,C,O,N)}S.Tween=Rn,Rn.prototype={constructor:Rn,init:function(f,m,C,O,N,B){this.elem=f,this.prop=C,this.easing=N||S.easing._default,this.options=m,this.start=this.now=this.cur(),this.end=O,this.unit=B||(S.cssNumber[C]?"":"px")},cur:function(){var f=Rn.propHooks[this.prop];return f&&f.get?f.get(this):Rn.propHooks._default.get(this)},run:function(f){var m,C=Rn.propHooks[this.prop];return this.options.duration?this.pos=m=S.easing[this.easing](f,this.options.duration*f,0,1,this.options.duration):this.pos=m=f,this.now=(this.end-this.start)*m+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):Rn.propHooks._default.set(this),this}},Rn.prototype.init.prototype=Rn.prototype,Rn.propHooks={_default:{get:function(f){var m;return f.elem.nodeType!==1||f.elem[f.prop]!=null&&f.elem.style[f.prop]==null?f.elem[f.prop]:(m=S.css(f.elem,f.prop,""),!m||m==="auto"?0:m)},set:function(f){S.fx.step[f.prop]?S.fx.step[f.prop](f):f.elem.nodeType===1&&(S.cssHooks[f.prop]||f.elem.style[gi(f.prop)]!=null)?S.style(f.elem,f.prop,f.now+f.unit):f.elem[f.prop]=f.now}}},Rn.propHooks.scrollTop=Rn.propHooks.scrollLeft={set:function(f){f.elem.nodeType&&f.elem.parentNode&&(f.elem[f.prop]=f.now)}},S.easing={linear:function(f){return f},swing:function(f){return .5-Math.cos(f*Math.PI)/2},_default:"swing"},S.fx=Rn.prototype.init,S.fx.step={};var Sr,cr,Io=/^(?:toggle|show|hide)$/,Yi=/queueHooks$/;function Lr(){cr&&(R.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Lr):t.setTimeout(Lr,S.fx.interval),S.fx.tick())}function E(){return t.setTimeout(function(){Sr=void 0}),Sr=Date.now()}function j(f,m){var C,O=0,N={height:f};for(m=m?1:0;O<4;O+=2-m)C=Wn[O],N["margin"+C]=N["padding"+C]=f;return m&&(N.opacity=N.width=f),N}function q(f,m,C){for(var O,N=(be.tweeners[m]||[]).concat(be.tweeners["*"]),B=0,H=N.length;B<H;B++)if(O=N[B].call(C,m,f))return O}function re(f,m,C){var O,N,B,H,ue,oe,we,Le,je="width"in m||"height"in m,ke=this,Xe={},ft=f.style,Dt=f.nodeType&&Kr(f),Rt=mt.get(f,"fxshow");C.queue||(H=S._queueHooks(f,"fx"),H.unqueued==null&&(H.unqueued=0,ue=H.empty.fire,H.empty.fire=function(){H.unqueued||ue()}),H.unqueued++,ke.always(function(){ke.always(function(){H.unqueued--,S.queue(f,"fx").length||H.empty.fire()})}));for(O in m)if(N=m[O],Io.test(N)){if(delete m[O],B=B||N==="toggle",N===(Dt?"hide":"show"))if(N==="show"&&Rt&&Rt[O]!==void 0)Dt=!0;else continue;Xe[O]=Rt&&Rt[O]||S.style(f,O)}if(oe=!S.isEmptyObject(m),!(!oe&&S.isEmptyObject(Xe))){je&&f.nodeType===1&&(C.overflow=[ft.overflow,ft.overflowX,ft.overflowY],we=Rt&&Rt.display,we==null&&(we=mt.get(f,"display")),Le=S.css(f,"display"),Le==="none"&&(we?Le=we:(ir([f],!0),we=f.style.display||we,Le=S.css(f,"display"),ir([f]))),(Le==="inline"||Le==="inline-block"&&we!=null)&&S.css(f,"float")==="none"&&(oe||(ke.done(function(){ft.display=we}),we==null&&(Le=ft.display,we=Le==="none"?"":Le)),ft.display="inline-block")),C.overflow&&(ft.overflow="hidden",ke.always(function(){ft.overflow=C.overflow[0],ft.overflowX=C.overflow[1],ft.overflowY=C.overflow[2]})),oe=!1;for(O in Xe)oe||(Rt?"hidden"in Rt&&(Dt=Rt.hidden):Rt=mt.access(f,"fxshow",{display:we}),B&&(Rt.hidden=!Dt),Dt&&ir([f],!0),ke.done(function(){Dt||ir([f]),mt.remove(f,"fxshow");for(O in Xe)S.style(f,O,Xe[O])})),oe=q(Dt?Rt[O]:0,O,ke),O in Rt||(Rt[O]=oe.start,Dt&&(oe.end=oe.start,oe.start=0))}}function De(f,m){var C,O,N,B,H;for(C in f)if(O=cn(C),N=m[O],B=f[C],Array.isArray(B)&&(N=B[1],B=f[C]=B[0]),C!==O&&(f[O]=B,delete f[C]),H=S.cssHooks[O],H&&"expand"in H){B=H.expand(B),delete f[O];for(C in B)C in f||(f[C]=B[C],m[C]=N)}else m[O]=N}function be(f,m,C){var O,N,B=0,H=be.prefilters.length,ue=S.Deferred().always(function(){delete oe.elem}),oe=function(){if(N)return!1;for(var je=Sr||E(),ke=Math.max(0,we.startTime+we.duration-je),Xe=ke/we.duration||0,ft=1-Xe,Dt=0,Rt=we.tweens.length;Dt<Rt;Dt++)we.tweens[Dt].run(ft);return ue.notifyWith(f,[we,ft,ke]),ft<1&&Rt?ke:(Rt||ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we]),!1)},we=ue.promise({elem:f,props:S.extend({},m),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},C),originalProperties:m,originalOptions:C,startTime:Sr||E(),duration:C.duration,tweens:[],createTween:function(je,ke){var Xe=S.Tween(f,we.opts,je,ke,we.opts.specialEasing[je]||we.opts.easing);return we.tweens.push(Xe),Xe},stop:function(je){var ke=0,Xe=je?we.tweens.length:0;if(N)return this;for(N=!0;ke<Xe;ke++)we.tweens[ke].run(1);return je?(ue.notifyWith(f,[we,1,0]),ue.resolveWith(f,[we,je])):ue.rejectWith(f,[we,je]),this}}),Le=we.props;for(De(Le,we.opts.specialEasing);B<H;B++)if(O=be.prefilters[B].call(we,f,Le,we.opts),O)return I(O.stop)&&(S._queueHooks(we.elem,we.opts.queue).stop=O.stop.bind(O)),O;return S.map(Le,q,we),I(we.opts.start)&&we.opts.start.call(f,we),we.progress(we.opts.progress).done(we.opts.done,we.opts.complete).fail(we.opts.fail).always(we.opts.always),S.fx.timer(S.extend(oe,{elem:f,anim:we,queue:we.opts.queue})),we}S.Animation=S.extend(be,{tweeners:{"*":[function(f,m){var C=this.createTween(f,m);return Po(C.elem,f,Dr.exec(m),C),C}]},tweener:function(f,m){I(f)?(m=f,f=["*"]):f=f.match(dt);for(var C,O=0,N=f.length;O<N;O++)C=f[O],be.tweeners[C]=be.tweeners[C]||[],be.tweeners[C].unshift(m)},prefilters:[re],prefilter:function(f,m){m?be.prefilters.unshift(f):be.prefilters.push(f)}}),S.speed=function(f,m,C){var O=f&&typeof f=="object"?S.extend({},f):{complete:C||!C&&m||I(f)&&f,duration:f,easing:C&&m||m&&!I(m)&&m};return S.fx.off?O.duration=0:typeof O.duration!="number"&&(O.duration in S.fx.speeds?O.duration=S.fx.speeds[O.duration]:O.duration=S.fx.speeds._default),(O.queue==null||O.queue===!0)&&(O.queue="fx"),O.old=O.complete,O.complete=function(){I(O.old)&&O.old.call(this),O.queue&&S.dequeue(this,O.queue)},O},S.fn.extend({fadeTo:function(f,m,C,O){return this.filter(Kr).css("opacity",0).show().end().animate({opacity:m},f,C,O)},animate:function(f,m,C,O){var N=S.isEmptyObject(f),B=S.speed(m,C,O),H=function(){var ue=be(this,S.extend({},f),B);(N||mt.get(this,"finish"))&&ue.stop(!0)};return H.finish=H,N||B.queue===!1?this.each(H):this.queue(B.queue,H)},stop:function(f,m,C){var O=function(N){var B=N.stop;delete N.stop,B(C)};return typeof f!="string"&&(C=m,m=f,f=void 0),m&&this.queue(f||"fx",[]),this.each(function(){var N=!0,B=f!=null&&f+"queueHooks",H=S.timers,ue=mt.get(this);if(B)ue[B]&&ue[B].stop&&O(ue[B]);else for(B in ue)ue[B]&&ue[B].stop&&Yi.test(B)&&O(ue[B]);for(B=H.length;B--;)H[B].elem===this&&(f==null||H[B].queue===f)&&(H[B].anim.stop(C),N=!1,H.splice(B,1));(N||!C)&&S.dequeue(this,f)})},finish:function(f){return f!==!1&&(f=f||"fx"),this.each(function(){var m,C=mt.get(this),O=C[f+"queue"],N=C[f+"queueHooks"],B=S.timers,H=O?O.length:0;for(C.finish=!0,S.queue(this,f,[]),N&&N.stop&&N.stop.call(this,!0),m=B.length;m--;)B[m].elem===this&&B[m].queue===f&&(B[m].anim.stop(!0),B.splice(m,1));for(m=0;m<H;m++)O[m]&&O[m].finish&&O[m].finish.call(this);delete C.finish})}}),S.each(["toggle","show","hide"],function(f,m){var C=S.fn[m];S.fn[m]=function(O,N,B){return O==null||typeof O=="boolean"?C.apply(this,arguments):this.animate(j(m,!0),O,N,B)}}),S.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(f,m){S.fn[f]=function(C,O,N){return this.animate(m,C,O,N)}}),S.timers=[],S.fx.tick=function(){var f,m=0,C=S.timers;for(Sr=Date.now();m<C.length;m++)f=C[m],!f()&&C[m]===f&&C.splice(m--,1);C.length||S.fx.stop(),Sr=void 0},S.fx.timer=function(f){S.timers.push(f),S.fx.start()},S.fx.interval=13,S.fx.start=function(){cr||(cr=!0,Lr())},S.fx.stop=function(){cr=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(f,m){return f=S.fx&&S.fx.speeds[f]||f,m=m||"fx",this.queue(m,function(C,O){var N=t.setTimeout(C,f);O.stop=function(){t.clearTimeout(N)}})},function(){var f=R.createElement("input"),m=R.createElement("select"),C=m.appendChild(R.createElement("option"));f.type="checkbox",_.checkOn=f.value!=="",_.optSelected=C.selected,f=R.createElement("input"),f.value="t",f.type="radio",_.radioValue=f.value==="t"}();var Me,tt=S.expr.attrHandle;S.fn.extend({attr:function(f,m){return Dn(this,S.attr,f,m,arguments.length>1)},removeAttr:function(f){return this.each(function(){S.removeAttr(this,f)})}}),S.extend({attr:function(f,m,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2)){if(typeof f.getAttribute>"u")return S.prop(f,m,C);if((B!==1||!S.isXMLDoc(f))&&(N=S.attrHooks[m.toLowerCase()]||(S.expr.match.bool.test(m)?Me:void 0)),C!==void 0){if(C===null){S.removeAttr(f,m);return}return N&&"set"in N&&(O=N.set(f,C,m))!==void 0?O:(f.setAttribute(m,C+""),C)}return N&&"get"in N&&(O=N.get(f,m))!==null?O:(O=S.find.attr(f,m),O??void 0)}},attrHooks:{type:{set:function(f,m){if(!_.radioValue&&m==="radio"&&ae(f,"input")){var C=f.value;return f.setAttribute("type",m),C&&(f.value=C),m}}}},removeAttr:function(f,m){var C,O=0,N=m&&m.match(dt);if(N&&f.nodeType===1)for(;C=N[O++];)f.removeAttribute(C)}}),Me={set:function(f,m,C){return m===!1?S.removeAttr(f,C):f.setAttribute(C,C),C}},S.each(S.expr.match.bool.source.match(/\w+/g),function(f,m){var C=tt[m]||S.find.attr;tt[m]=function(O,N,B){var H,ue,oe=N.toLowerCase();return B||(ue=tt[oe],tt[oe]=H,H=C(O,N,B)!=null?oe:null,tt[oe]=ue),H}});var bt=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;S.fn.extend({prop:function(f,m){return Dn(this,S.prop,f,m,arguments.length>1)},removeProp:function(f){return this.each(function(){delete this[S.propFix[f]||f]})}}),S.extend({prop:function(f,m,C){var O,N,B=f.nodeType;if(!(B===3||B===8||B===2))return(B!==1||!S.isXMLDoc(f))&&(m=S.propFix[m]||m,N=S.propHooks[m]),C!==void 0?N&&"set"in N&&(O=N.set(f,C,m))!==void 0?O:f[m]=C:N&&"get"in N&&(O=N.get(f,m))!==null?O:f[m]},propHooks:{tabIndex:{get:function(f){var m=S.find.attr(f,"tabindex");return m?parseInt(m,10):bt.test(f.nodeName)||Ct.test(f.nodeName)&&f.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(S.propHooks.selected={get:function(f){var m=f.parentNode;return m&&m.parentNode&&m.parentNode.selectedIndex,null},set:function(f){var m=f.parentNode;m&&(m.selectedIndex,m.parentNode&&m.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function wt(f){var m=f.match(dt)||[];return m.join(" ")}function Ut(f){return f.getAttribute&&f.getAttribute("class")||""}function Qn(f){return Array.isArray(f)?f:typeof f=="string"?f.match(dt)||[]:[]}S.fn.extend({addClass:function(f){var m,C,O,N,B,H;return I(f)?this.each(function(ue){S(this).addClass(f.call(this,ue,Ut(this)))}):(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+wt(O)+" ",C){for(B=0;B<m.length;B++)N=m[B],C.indexOf(" "+N+" ")<0&&(C+=N+" ");H=wt(C),O!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(f){var m,C,O,N,B,H;return I(f)?this.each(function(ue){S(this).removeClass(f.call(this,ue,Ut(this)))}):arguments.length?(m=Qn(f),m.length?this.each(function(){if(O=Ut(this),C=this.nodeType===1&&" "+wt(O)+" ",C){for(B=0;B<m.length;B++)for(N=m[B];C.indexOf(" "+N+" ")>-1;)C=C.replace(" "+N+" "," ");H=wt(C),O!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(f,m){var C,O,N,B,H=typeof f,ue=H==="string"||Array.isArray(f);return I(f)?this.each(function(oe){S(this).toggleClass(f.call(this,oe,Ut(this),m),m)}):typeof m=="boolean"&&ue?m?this.addClass(f):this.removeClass(f):(C=Qn(f),this.each(function(){if(ue)for(B=S(this),N=0;N<C.length;N++)O=C[N],B.hasClass(O)?B.removeClass(O):B.addClass(O);else(f===void 0||H==="boolean")&&(O=Ut(this),O&&mt.set(this,"__className__",O),this.setAttribute&&this.setAttribute("class",O||f===!1?"":mt.get(this,"__className__")||""))}))},hasClass:function(f){var m,C,O=0;for(m=" "+f+" ";C=this[O++];)if(C.nodeType===1&&(" "+wt(Ut(C))+" ").indexOf(m)>-1)return!0;return!1}});var Yn=/\r/g;S.fn.extend({val:function(f){var m,C,O,N=this[0];return arguments.length?(O=I(f),this.each(function(B){var H;this.nodeType===1&&(O?H=f.call(this,B,S(this).val()):H=f,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=S.map(H,function(ue){return ue==null?"":ue+""})),m=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!m||!("set"in m)||m.set(this,H,"value")===void 0)&&(this.value=H))})):N?(m=S.valHooks[N.type]||S.valHooks[N.nodeName.toLowerCase()],m&&"get"in m&&(C=m.get(N,"value"))!==void 0?C:(C=N.value,typeof C=="string"?C.replace(Yn,""):C??"")):void 0}}),S.extend({valHooks:{option:{get:function(f){var m=S.find.attr(f,"value");return m??wt(S.text(f))}},select:{get:function(f){var m,C,O,N=f.options,B=f.selectedIndex,H=f.type==="select-one",ue=H?null:[],oe=H?B+1:N.length;for(B<0?O=oe:O=H?B:0;O<oe;O++)if(C=N[O],(C.selected||O===B)&&!C.disabled&&(!C.parentNode.disabled||!ae(C.parentNode,"optgroup"))){if(m=S(C).val(),H)return m;ue.push(m)}return ue},set:function(f,m){for(var C,O,N=f.options,B=S.makeArray(m),H=N.length;H--;)O=N[H],(O.selected=S.inArray(S.valHooks.option.get(O),B)>-1)&&(C=!0);return C||(f.selectedIndex=-1),B}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(f,m){if(Array.isArray(m))return f.checked=S.inArray(S(f).val(),m)>-1}},_.checkOn||(S.valHooks[this].get=function(f){return f.getAttribute("value")===null?"on":f.value})});var Pn=t.location,Fr={guid:Date.now()},or=/\?/;S.parseXML=function(f){var m,C;if(!f||typeof f!="string")return null;try{m=new t.DOMParser().parseFromString(f,"text/xml")}catch{}return C=m&&m.getElementsByTagName("parsererror")[0],(!m||C)&&S.error("Invalid XML: "+(C?S.map(C.childNodes,function(O){return O.textContent}).join(`
|
|
180
|
-
`):f)),m};var Gi=/^(?:focusinfocus|focusoutblur)$/,vi=function(f){f.stopPropagation()};S.extend(S.event,{trigger:function(f,m,C,O){var N,B,H,ue,oe,we,Le,je,ke=[C||R],Xe=p.call(f,"type")?f.type:f,ft=p.call(f,"namespace")?f.namespace.split("."):[];if(B=je=H=C=C||R,!(C.nodeType===3||C.nodeType===8)&&!Gi.test(Xe+S.event.triggered)&&(Xe.indexOf(".")>-1&&(ft=Xe.split("."),Xe=ft.shift(),ft.sort()),oe=Xe.indexOf(":")<0&&"on"+Xe,f=f[S.expando]?f:new S.Event(Xe,typeof f=="object"&&f),f.isTrigger=O?2:3,f.namespace=ft.join("."),f.rnamespace=f.namespace?new RegExp("(^|\\.)"+ft.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f.result=void 0,f.target||(f.target=C),m=m==null?[f]:S.makeArray(m,[f]),Le=S.event.special[Xe]||{},!(!O&&Le.trigger&&Le.trigger.apply(C,m)===!1))){if(!O&&!Le.noBubble&&!L(C)){for(ue=Le.delegateType||Xe,Gi.test(ue+Xe)||(B=B.parentNode);B;B=B.parentNode)ke.push(B),H=B;H===(C.ownerDocument||R)&&ke.push(H.defaultView||H.parentWindow||t)}for(N=0;(B=ke[N++])&&!f.isPropagationStopped();)je=B,f.type=N>1?ue:Le.bindType||Xe,we=(mt.get(B,"events")||Object.create(null))[f.type]&&mt.get(B,"handle"),we&&we.apply(B,m),we=oe&&B[oe],we&&we.apply&&hn(B)&&(f.result=we.apply(B,m),f.result===!1&&f.preventDefault());return f.type=Xe,!O&&!f.isDefaultPrevented()&&(!Le._default||Le._default.apply(ke.pop(),m)===!1)&&hn(C)&&oe&&I(C[Xe])&&!L(C)&&(H=C[oe],H&&(C[oe]=null),S.event.triggered=Xe,f.isPropagationStopped()&&je.addEventListener(Xe,vi),C[Xe](),f.isPropagationStopped()&&je.removeEventListener(Xe,vi),S.event.triggered=void 0,H&&(C[oe]=H)),f.result}},simulate:function(f,m,C){var O=S.extend(new S.Event,C,{type:f,isSimulated:!0});S.event.trigger(O,null,m)}}),S.fn.extend({trigger:function(f,m){return this.each(function(){S.event.trigger(f,m,this)})},triggerHandler:function(f,m){var C=this[0];if(C)return S.event.trigger(f,m,C,!0)}});var qi=/\[\]$/,Nr=/\r?\n/g,Ao=/^(?:submit|button|image|reset|file)$/i,Ys=/^(?:input|select|textarea|keygen)/i;function Aa(f,m,C,O){var N;if(Array.isArray(m))S.each(m,function(B,H){C||qi.test(f)?O(f,H):Aa(f+"["+(typeof H=="object"&&H!=null?B:"")+"]",H,C,O)});else if(!C&&te(m)==="object")for(N in m)Aa(f+"["+N+"]",m[N],C,O);else O(f,m)}S.param=function(f,m){var C,O=[],N=function(B,H){var ue=I(H)?H():H;O[O.length]=encodeURIComponent(B)+"="+encodeURIComponent(ue??"")};if(f==null)return"";if(Array.isArray(f)||f.jquery&&!S.isPlainObject(f))S.each(f,function(){N(this.name,this.value)});else for(C in f)Aa(C,f[C],m,N);return O.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var f=S.prop(this,"elements");return f?S.makeArray(f):this}).filter(function(){var f=this.type;return this.name&&!S(this).is(":disabled")&&Ys.test(this.nodeName)&&!Ao.test(f)&&(this.checked||!Zt.test(f))}).map(function(f,m){var C=S(this).val();return C==null?null:Array.isArray(C)?S.map(C,function(O){return{name:m.name,value:O.replace(Nr,`\r
|
|
181
|
-
`)}}):{name:m.name,value:C.replace(Nr,`\r
|
|
182
|
-
`)}}).get()}});var Ma=/%20/g,La=/#.*$/,Fa=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Mo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,sn=/^\/\//,Qt={},Vt={},Di="*/".concat("*"),ii=R.createElement("a");ii.href=Pn.href;function Lo(f){return function(m,C){typeof m!="string"&&(C=m,m="*");var O,N=0,B=m.toLowerCase().match(dt)||[];if(I(C))for(;O=B[N++];)O[0]==="+"?(O=O.slice(1)||"*",(f[O]=f[O]||[]).unshift(C)):(f[O]=f[O]||[]).push(C)}}function yi(f,m,C,O){var N={},B=f===Vt;function H(ue){var oe;return N[ue]=!0,S.each(f[ue]||[],function(we,Le){var je=Le(m,C,O);if(typeof je=="string"&&!B&&!N[je])return m.dataTypes.unshift(je),H(je),!1;if(B)return!(oe=je)}),oe}return H(m.dataTypes[0])||!N["*"]&&H("*")}function fr(f,m){var C,O,N=S.ajaxSettings.flatOptions||{};for(C in m)m[C]!==void 0&&((N[C]?f:O||(O={}))[C]=m[C]);return O&&S.extend(!0,f,O),f}function Na(f,m,C){for(var O,N,B,H,ue=f.contents,oe=f.dataTypes;oe[0]==="*";)oe.shift(),O===void 0&&(O=f.mimeType||m.getResponseHeader("Content-Type"));if(O){for(N in ue)if(ue[N]&&ue[N].test(O)){oe.unshift(N);break}}if(oe[0]in C)B=oe[0];else{for(N in C){if(!oe[0]||f.converters[N+" "+oe[0]]){B=N;break}H||(H=N)}B=B||H}if(B)return B!==oe[0]&&oe.unshift(B),C[B]}function ia(f,m,C,O){var N,B,H,ue,oe,we={},Le=f.dataTypes.slice();if(Le[1])for(H in f.converters)we[H.toLowerCase()]=f.converters[H];for(B=Le.shift();B;)if(f.responseFields[B]&&(C[f.responseFields[B]]=m),!oe&&O&&f.dataFilter&&(m=f.dataFilter(m,f.dataType)),oe=B,B=Le.shift(),B){if(B==="*")B=oe;else if(oe!=="*"&&oe!==B){if(H=we[oe+" "+B]||we["* "+B],!H){for(N in we)if(ue=N.split(" "),ue[1]===B&&(H=we[oe+" "+ue[0]]||we["* "+ue[0]],H)){H===!0?H=we[N]:we[N]!==!0&&(B=ue[0],Le.unshift(ue[1]));break}}if(H!==!0)if(H&&f.throws)m=H(m);else try{m=H(m)}catch(je){return{state:"parsererror",error:H?je:"No conversion from "+oe+" to "+B}}}}return{state:"success",data:m}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pn.href,type:"GET",isLocal:Mo.test(Pn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Di,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(f,m){return m?fr(fr(f,S.ajaxSettings),m):fr(S.ajaxSettings,f)},ajaxPrefilter:Lo(Qt),ajaxTransport:Lo(Vt),ajax:function(f,m){typeof f=="object"&&(m=f,f=void 0),m=m||{};var C,O,N,B,H,ue,oe,we,Le,je,ke=S.ajaxSetup({},m),Xe=ke.context||ke,ft=ke.context&&(Xe.nodeType||Xe.jquery)?S(Xe):S.event,Dt=S.Deferred(),Rt=S.Callbacks("once memory"),Ln=ke.statusCode||{},dn={},jr={},Br="canceled",Wt={readyState:0,getResponseHeader:function(zt){var on;if(oe){if(!B)for(B={};on=mi.exec(N);)B[on[1].toLowerCase()+" "]=(B[on[1].toLowerCase()+" "]||[]).concat(on[2]);on=B[zt.toLowerCase()+" "]}return on==null?null:on.join(", ")},getAllResponseHeaders:function(){return oe?N:null},setRequestHeader:function(zt,on){return oe==null&&(zt=jr[zt.toLowerCase()]=jr[zt.toLowerCase()]||zt,dn[zt]=on),this},overrideMimeType:function(zt){return oe==null&&(ke.mimeType=zt),this},statusCode:function(zt){var on;if(zt)if(oe)Wt.always(zt[Wt.status]);else for(on in zt)Ln[on]=[Ln[on],zt[on]];return this},abort:function(zt){var on=zt||Br;return C&&C.abort(on),$r(0,on),this}};if(Dt.promise(Wt),ke.url=((f||ke.url||Pn.href)+"").replace(sn,Pn.protocol+"//"),ke.type=m.method||m.type||ke.method||ke.type,ke.dataTypes=(ke.dataType||"*").toLowerCase().match(dt)||[""],ke.crossDomain==null){ue=R.createElement("a");try{ue.href=ke.url,ue.href=ue.href,ke.crossDomain=ii.protocol+"//"+ii.host!=ue.protocol+"//"+ue.host}catch{ke.crossDomain=!0}}if(ke.data&&ke.processData&&typeof ke.data!="string"&&(ke.data=S.param(ke.data,ke.traditional)),yi(Qt,ke,m,Wt),oe)return Wt;we=S.event&&ke.global,we&&S.active++===0&&S.event.trigger("ajaxStart"),ke.type=ke.type.toUpperCase(),ke.hasContent=!ra.test(ke.type),O=ke.url.replace(La,""),ke.hasContent?ke.data&&ke.processData&&(ke.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ke.data=ke.data.replace(Ma,"+")):(je=ke.url.slice(O.length),ke.data&&(ke.processData||typeof ke.data=="string")&&(O+=(or.test(O)?"&":"?")+ke.data,delete ke.data),ke.cache===!1&&(O=O.replace(Fa,"$1"),je=(or.test(O)?"&":"?")+"_="+Fr.guid+++je),ke.url=O+je),ke.ifModified&&(S.lastModified[O]&&Wt.setRequestHeader("If-Modified-Since",S.lastModified[O]),S.etag[O]&&Wt.setRequestHeader("If-None-Match",S.etag[O])),(ke.data&&ke.hasContent&&ke.contentType!==!1||m.contentType)&&Wt.setRequestHeader("Content-Type",ke.contentType),Wt.setRequestHeader("Accept",ke.dataTypes[0]&&ke.accepts[ke.dataTypes[0]]?ke.accepts[ke.dataTypes[0]]+(ke.dataTypes[0]!=="*"?", "+Di+"; q=0.01":""):ke.accepts["*"]);for(Le in ke.headers)Wt.setRequestHeader(Le,ke.headers[Le]);if(ke.beforeSend&&(ke.beforeSend.call(Xe,Wt,ke)===!1||oe))return Wt.abort();if(Br="abort",Rt.add(ke.complete),Wt.done(ke.success),Wt.fail(ke.error),C=yi(Vt,ke,m,Wt),!C)$r(-1,"No Transport");else{if(Wt.readyState=1,we&&ft.trigger("ajaxSend",[Wt,ke]),oe)return Wt;ke.async&&ke.timeout>0&&(H=t.setTimeout(function(){Wt.abort("timeout")},ke.timeout));try{oe=!1,C.send(dn,$r)}catch(zt){if(oe)throw zt;$r(-1,zt)}}function $r(zt,on,go,vo){var Tr,k,F,z,ne,Te=on;oe||(oe=!0,H&&t.clearTimeout(H),C=void 0,N=vo||"",Wt.readyState=zt>0?4:0,Tr=zt>=200&&zt<300||zt===304,go&&(z=Na(ke,Wt,go)),!Tr&&S.inArray("script",ke.dataTypes)>-1&&S.inArray("json",ke.dataTypes)<0&&(ke.converters["text script"]=function(){}),z=ia(ke,z,Wt,Tr),Tr?(ke.ifModified&&(ne=Wt.getResponseHeader("Last-Modified"),ne&&(S.lastModified[O]=ne),ne=Wt.getResponseHeader("etag"),ne&&(S.etag[O]=ne)),zt===204||ke.type==="HEAD"?Te="nocontent":zt===304?Te="notmodified":(Te=z.state,k=z.data,F=z.error,Tr=!F)):(F=Te,(zt||!Te)&&(Te="error",zt<0&&(zt=0))),Wt.status=zt,Wt.statusText=(on||Te)+"",Tr?Dt.resolveWith(Xe,[k,Te,Wt]):Dt.rejectWith(Xe,[Wt,Te,F]),Wt.statusCode(Ln),Ln=void 0,we&&ft.trigger(Tr?"ajaxSuccess":"ajaxError",[Wt,ke,Tr?k:F]),Rt.fireWith(Xe,[Wt,Te]),we&&(ft.trigger("ajaxComplete",[Wt,ke]),--S.active||S.event.trigger("ajaxStop")))}return Wt},getJSON:function(f,m,C){return S.get(f,m,C,"json")},getScript:function(f,m){return S.get(f,void 0,m,"script")}}),S.each(["get","post"],function(f,m){S[m]=function(C,O,N,B){return I(O)&&(B=B||N,N=O,O=void 0),S.ajax(S.extend({url:C,type:m,dataType:B,data:O,success:N},S.isPlainObject(C)&&C))}}),S.ajaxPrefilter(function(f){var m;for(m in f.headers)m.toLowerCase()==="content-type"&&(f.contentType=f.headers[m]||"")}),S._evalUrl=function(f,m,C){return S.ajax({url:f,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(O){S.globalEval(O,m,C)}})},S.fn.extend({wrapAll:function(f){var m;return this[0]&&(I(f)&&(f=f.call(this[0])),m=S(f,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&m.insertBefore(this[0]),m.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(f){return I(f)?this.each(function(m){S(this).wrapInner(f.call(this,m))}):this.each(function(){var m=S(this),C=m.contents();C.length?C.wrapAll(f):m.append(f)})},wrap:function(f){var m=I(f);return this.each(function(C){S(this).wrapAll(m?f.call(this,C):f)})},unwrap:function(f){return this.parent(f).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(f){return!S.expr.pseudos.visible(f)},S.expr.pseudos.visible=function(f){return!!(f.offsetWidth||f.offsetHeight||f.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var us={0:200,1223:204},yn=S.ajaxSettings.xhr();_.cors=!!yn&&"withCredentials"in yn,_.ajax=yn=!!yn,S.ajaxTransport(function(f){var m,C;if(_.cors||yn&&!f.crossDomain)return{send:function(O,N){var B,H=f.xhr();if(H.open(f.type,f.url,f.async,f.username,f.password),f.xhrFields)for(B in f.xhrFields)H[B]=f.xhrFields[B];f.mimeType&&H.overrideMimeType&&H.overrideMimeType(f.mimeType),!f.crossDomain&&!O["X-Requested-With"]&&(O["X-Requested-With"]="XMLHttpRequest");for(B in O)H.setRequestHeader(B,O[B]);m=function(ue){return function(){m&&(m=C=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,ue==="abort"?H.abort():ue==="error"?typeof H.status!="number"?N(0,"error"):N(H.status,H.statusText):N(us[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=m(),C=H.onerror=H.ontimeout=m("error"),H.onabort!==void 0?H.onabort=C:H.onreadystatechange=function(){H.readyState===4&&t.setTimeout(function(){m&&C()})},m=m("abort");try{H.send(f.hasContent&&f.data||null)}catch(ue){if(m)throw ue}},abort:function(){m&&m()}}}),S.ajaxPrefilter(function(f){f.crossDomain&&(f.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(f){return S.globalEval(f),f}}}),S.ajaxPrefilter("script",function(f){f.cache===void 0&&(f.cache=!1),f.crossDomain&&(f.type="GET")}),S.ajaxTransport("script",function(f){if(f.crossDomain||f.scriptAttrs){var m,C;return{send:function(O,N){m=S("<script>").attr(f.scriptAttrs||{}).prop({charset:f.scriptCharset,src:f.url}).on("load error",C=function(B){m.remove(),C=null,B&&N(B.type==="error"?404:200,B.type)}),R.head.appendChild(m[0])},abort:function(){C&&C()}}}});var Fo=[],bi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var f=Fo.pop()||S.expando+"_"+Fr.guid++;return this[f]=!0,f}}),S.ajaxPrefilter("json jsonp",function(f,m,C){var O,N,B,H=f.jsonp!==!1&&(bi.test(f.url)?"url":typeof f.data=="string"&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&bi.test(f.data)&&"data");if(H||f.dataTypes[0]==="jsonp")return O=f.jsonpCallback=I(f.jsonpCallback)?f.jsonpCallback():f.jsonpCallback,H?f[H]=f[H].replace(bi,"$1"+O):f.jsonp!==!1&&(f.url+=(or.test(f.url)?"&":"?")+f.jsonp+"="+O),f.converters["script json"]=function(){return B||S.error(O+" was not called"),B[0]},f.dataTypes[0]="json",N=t[O],t[O]=function(){B=arguments},C.always(function(){N===void 0?S(t).removeProp(O):t[O]=N,f[O]&&(f.jsonpCallback=m.jsonpCallback,Fo.push(O)),B&&I(N)&&N(B[0]),B=N=void 0}),"script"}),_.createHTMLDocument=function(){var f=R.implementation.createHTMLDocument("").body;return f.innerHTML="<form></form><form></form>",f.childNodes.length===2}(),S.parseHTML=function(f,m,C){if(typeof f!="string")return[];typeof m=="boolean"&&(C=m,m=!1);var O,N,B;return m||(_.createHTMLDocument?(m=R.implementation.createHTMLDocument(""),O=m.createElement("base"),O.href=R.location.href,m.head.appendChild(O)):m=R),N=Ye.exec(f),B=!C&&[],N?[m.createElement(N[1])]:(N=mn([f],m,B),B&&B.length&&S(B).remove(),S.merge([],N.childNodes))},S.fn.load=function(f,m,C){var O,N,B,H=this,ue=f.indexOf(" ");return ue>-1&&(O=wt(f.slice(ue)),f=f.slice(0,ue)),I(m)?(C=m,m=void 0):m&&typeof m=="object"&&(N="POST"),H.length>0&&S.ajax({url:f,type:N||"GET",dataType:"html",data:m}).done(function(oe){B=arguments,H.html(O?S("<div>").append(S.parseHTML(oe)).find(O):oe)}).always(C&&function(oe,we){H.each(function(){C.apply(this,B||[oe.responseText,we,oe])})}),this},S.expr.pseudos.animated=function(f){return S.grep(S.timers,function(m){return f===m.elem}).length},S.offset={setOffset:function(f,m,C){var O,N,B,H,ue,oe,we,Le=S.css(f,"position"),je=S(f),ke={};Le==="static"&&(f.style.position="relative"),ue=je.offset(),B=S.css(f,"top"),oe=S.css(f,"left"),we=(Le==="absolute"||Le==="fixed")&&(B+oe).indexOf("auto")>-1,we?(O=je.position(),H=O.top,N=O.left):(H=parseFloat(B)||0,N=parseFloat(oe)||0),I(m)&&(m=m.call(f,C,S.extend({},ue))),m.top!=null&&(ke.top=m.top-ue.top+H),m.left!=null&&(ke.left=m.left-ue.left+N),"using"in m?m.using.call(f,ke):je.css(ke)}},S.fn.extend({offset:function(f){if(arguments.length)return f===void 0?this:this.each(function(N){S.offset.setOffset(this,f,N)});var m,C,O=this[0];if(O)return O.getClientRects().length?(m=O.getBoundingClientRect(),C=O.ownerDocument.defaultView,{top:m.top+C.pageYOffset,left:m.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var f,m,C,O=this[0],N={top:0,left:0};if(S.css(O,"position")==="fixed")m=O.getBoundingClientRect();else{for(m=this.offset(),C=O.ownerDocument,f=O.offsetParent||C.documentElement;f&&(f===C.body||f===C.documentElement)&&S.css(f,"position")==="static";)f=f.parentNode;f&&f!==O&&f.nodeType===1&&(N=S(f).offset(),N.top+=S.css(f,"borderTopWidth",!0),N.left+=S.css(f,"borderLeftWidth",!0))}return{top:m.top-N.top-S.css(O,"marginTop",!0),left:m.left-N.left-S.css(O,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent;f&&S.css(f,"position")==="static";)f=f.offsetParent;return f||Pr})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(f,m){var C=m==="pageYOffset";S.fn[f]=function(O){return Dn(this,function(N,B,H){var ue;if(L(N)?ue=N:N.nodeType===9&&(ue=N.defaultView),H===void 0)return ue?ue[m]:N[B];ue?ue.scrollTo(C?ue.pageXOffset:H,C?H:ue.pageYOffset):N[B]=H},f,O,arguments.length)}}),S.each(["top","left"],function(f,m){S.cssHooks[m]=zn(_.pixelPosition,function(C,O){if(O)return O=Ir(C,m),_i.test(O)?S(C).position()[m]+"px":O})}),S.each({Height:"height",Width:"width"},function(f,m){S.each({padding:"inner"+f,content:m,"":"outer"+f},function(C,O){S.fn[O]=function(N,B){var H=arguments.length&&(C||typeof N!="boolean"),ue=C||(N===!0||B===!0?"margin":"border");return Dn(this,function(oe,we,Le){var je;return L(oe)?O.indexOf("outer")===0?oe["inner"+f]:oe.document.documentElement["client"+f]:oe.nodeType===9?(je=oe.documentElement,Math.max(oe.body["scroll"+f],je["scroll"+f],oe.body["offset"+f],je["offset"+f],je["client"+f])):Le===void 0?S.css(oe,we,ue):S.style(oe,we,Le,ue)},m,H?N:void 0,H)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(f,m){S.fn[m]=function(C){return this.on(m,C)}}),S.fn.extend({bind:function(f,m,C){return this.on(f,null,m,C)},unbind:function(f,m){return this.off(f,null,m)},delegate:function(f,m,C,O){return this.on(m,f,C,O)},undelegate:function(f,m,C){return arguments.length===1?this.off(f,"**"):this.off(m,f||"**",C)},hover:function(f,m){return this.on("mouseenter",f).on("mouseleave",m||f)}}),S.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(f,m){S.fn[m]=function(C,O){return arguments.length>0?this.on(m,null,C,O):this.trigger(m)}});var cs=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(f,m){var C,O,N;if(typeof m=="string"&&(C=f[m],m=f,f=C),!!I(f))return O=o.call(arguments,2),N=function(){return f.apply(m||this,O.concat(o.call(arguments)))},N.guid=f.guid=f.guid||S.guid++,N},S.holdReady=function(f){f?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=ae,S.isFunction=I,S.isWindow=L,S.camelCase=cn,S.type=te,S.now=Date.now,S.isNumeric=function(f){var m=S.type(f);return(m==="number"||m==="string")&&!isNaN(f-parseFloat(f))},S.trim=function(f){return f==null?"":(f+"").replace(cs,"$1")};var po=t.jQuery,er=t.$;return S.noConflict=function(f){return t.$===S&&(t.$=er),f&&t.jQuery===S&&(t.jQuery=po),S},typeof n>"u"&&(t.jQuery=t.$=S),S})})(DO);var PO=DO.exports;const d6=Mu(PO);var h6={exports:{}};/**
|
|
183
|
-
* @version: 3.1
|
|
184
|
-
* @author: Dan Grossman http://www.dangrossman.info/
|
|
185
|
-
* @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
|
|
186
|
-
* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
|
|
187
|
-
* @website: http://www.daterangepicker.com/
|
|
188
|
-
*/(function(e){(function(t,n){if(e.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=PO,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:VI;e.exports=n(i,r)}else t.daterangepicker=n(t.moment,t.jQuery)})(Ci,function(t,n){var r=function(i,o,s){if(this.parentEl="body",this.element=n(i),this.startDate=t().startOf("day"),this.endDate=t().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=t().subtract(100,"year").format("YYYY"),this.maxYear=t().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:t.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:t.weekdaysMin(),monthNames:t.monthsShort(),firstDay:t.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 l=document.createElement("textarea");l.innerHTML=o.locale.customRangeLabel;var c=l.value;this.locale.customRangeLabel=c}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=t(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=t(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=t(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=t(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=t(o.startDate)),typeof o.endDate=="object"&&(this.endDate=t(o.endDate)),typeof o.minDate=="object"&&(this.minDate=t(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=t(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 d=this.locale.firstDay;d>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),d--;var v,p,x;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var T=n(this.element).val(),_=T.split(this.locale.separator);v=p=null,_.length==2?(v=t(_[0],this.locale.format),p=t(_[1],this.locale.format)):this.singleDatePicker&&T!==""&&(v=t(T,this.locale.format),p=t(T,this.locale.format)),v!==null&&p!==null&&(this.setStartDate(v),this.setEndDate(p))}if(typeof o.ranges=="object"){for(x in o.ranges){typeof o.ranges[x][0]=="string"?v=t(o.ranges[x][0],this.locale.format):v=t(o.ranges[x][0]),typeof o.ranges[x][1]=="string"?p=t(o.ranges[x][1],this.locale.format):p=t(o.ranges[x][1]),this.minDate&&v.isBefore(this.minDate)&&(v=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&v.clone().add(this.maxSpan).isAfter(I)&&(I=v.clone().add(this.maxSpan)),I&&p.isAfter(I)&&(p=I.clone()),!(this.minDate&&p.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&v.isAfter(I,this.timepicker?"minute":"day"))){var l=document.createElement("textarea");l.innerHTML=x;var c=l.value;this.ranges[c]=[v,p]}}var L="<ul>";for(x in this.ranges)L+='<li data-range-key="'+x+'">'+x+"</li>";this.showCustomRangeLabel&&(L+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),L+="</ul>",this.container.find(".ranges").prepend(L)}typeof s=="function"&&(this.callback=s),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=t(i,this.locale.format)),typeof i=="object"&&(this.startDate=t(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=t(i,this.locale.format)),typeof i=="object"&&(this.endDate=t(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,s;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)),s=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var l=this.container.find(".left .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="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)),s=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var l=this.container.find(".right .ampmselect").val();l==="PM"&&i<12&&(i+=12),l==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(s),this.rightCalendar.month.hour(i).minute(o).second(s)}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(),s=R.month.year(),l=R.month.hour(),c=R.month.minute(),d=R.month.second(),v=t([s,o]).daysInMonth(),p=t([s,o,1]),x=t([s,o,v]),T=t(p).subtract(1,"month").month(),_=t(p).subtract(1,"month").year(),I=t([_,T]).daysInMonth(),L=p.day(),R=[];R.firstDay=p,R.lastDay=x;for(var U=0;U<6;U++)R[U]=[];var W=I-L+this.locale.firstDay+1;W>I&&(W-=7),L==this.locale.firstDay&&(W=I-6);for(var te=t([_,T,W,12,c,d]),J,pe,U=0,J=0,pe=0;U<42;U++,J++,te=t(te).add(24,"hour"))U>0&&J%7===0&&(J=0,pe++),R[pe][J]=te.clone().hour(l).minute(c).second(d),te.hour(12),this.minDate&&R[pe][J].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&R[pe][J].isBefore(this.minDate)&&i=="left"&&(R[pe][J]=this.minDate.clone()),this.maxDate&&R[pe][J].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&R[pe][J].isAfter(this.maxDate)&&i=="right"&&(R[pe][J]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=R:this.rightCalendar.calendar=R;var S=i=="left"?this.minDate:this.startDate,ce=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>"),(!S||S.isBefore(R.firstDay))&&(!this.linkedCalendars||i=="left")?ae+='<th class="prev available"><span></span></th>':ae+="<th></th>";var Ne=this.locale.monthNames[R[1][1].month()]+R[1][1].format(" YYYY");if(this.showDropdowns){for(var Ge=R[1][1].month(),qe=R[1][1].year(),it=ce&&ce.year()||this.maxYear,nt=S&&S.year()||this.minYear,me=qe==nt,Se=qe==it,Ve='<select class="monthselect">',Qe=0;Qe<12;Qe++)(!me||S&&Qe>=S.month())&&(!Se||ce&&Qe<=ce.month())?Ve+="<option value='"+Qe+"'"+(Qe===Ge?" selected='selected'":"")+">"+this.locale.monthNames[Qe]+"</option>":Ve+="<option value='"+Qe+"'"+(Qe===Ge?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Qe]+"</option>";Ve+="</select>";for(var at='<select class="yearselect">',Ee=nt;Ee<=it;Ee++)at+='<option value="'+Ee+'"'+(Ee===qe?' selected="selected"':"")+">"+Ee+"</option>";at+="</select>",Ne=Ve+at}if(ae+='<th colspan="5" class="month">'+Ne+"</th>",(!ce||ce.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(He,lt){ae+="<th>"+lt+"</th>"}),ae+="</tr>",ae+="</thead>",ae+="<tbody>",this.endDate==null&&this.maxSpan){var _e=this.startDate.clone().add(this.maxSpan).endOf("day");(!ce||_e.isBefore(ce))&&(ce=_e)}for(var pe=0;pe<6;pe++){ae+="<tr>",this.showWeekNumbers?ae+='<td class="week">'+R[pe][0].week()+"</td>":this.showISOWeekNumbers&&(ae+='<td class="week">'+R[pe][0].isoWeek()+"</td>");for(var J=0;J<7;J++){var Ye=[];R[pe][J].isSame(new Date,"day")&&Ye.push("today"),R[pe][J].isoWeekday()>5&&Ye.push("weekend"),R[pe][J].month()!=R[1][1].month()&&Ye.push("off","ends"),this.minDate&&R[pe][J].isBefore(this.minDate,"day")&&Ye.push("off","disabled"),ce&&R[pe][J].isAfter(ce,"day")&&Ye.push("off","disabled"),this.isInvalidDate(R[pe][J])&&Ye.push("off","disabled"),R[pe][J].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ye.push("active","start-date"),this.endDate!=null&&R[pe][J].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ye.push("active","end-date"),this.endDate!=null&&R[pe][J]>this.startDate&&R[pe][J]<this.endDate&&Ye.push("in-range");var We=this.isCustomDate(R[pe][J]);We!==!1&&(typeof We=="string"?Ye.push(We):Array.prototype.push.apply(Ye,We));for(var Re="",Fe=!1,U=0;U<Ye.length;U++)Re+=Ye[U]+" ",Ye[U]=="disabled"&&(Fe=!0);Fe||(Re+="available"),ae+='<td class="'+Re.replace(/^\s+|\s+$/g,"")+'" data-title="r'+pe+"c"+J+'">'+R[pe][J].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,s,l,c=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(c=this.startDate.clone().add(this.maxSpan)),i=="left")s=this.startDate.clone(),l=this.minDate;else if(i=="right"){s=this.endDate.clone(),l=this.startDate;var d=this.container.find(".drp-calendar.right .calendar-time");if(d.html()!=""&&(s.hour(isNaN(s.hour())?d.find(".hourselect option:selected").val():s.hour()),s.minute(isNaN(s.minute())?d.find(".minuteselect option:selected").val():s.minute()),s.second(isNaN(s.second())?d.find(".secondselect option:selected").val():s.second()),!this.timePicker24Hour)){var v=d.find(".ampmselect option:selected").val();v==="PM"&&s.hour()<12&&s.hour(s.hour()+12),v==="AM"&&s.hour()===12&&s.hour(0)}s.isBefore(this.startDate)&&(s=this.startDate.clone()),c&&s.isAfter(c)&&(s=c.clone())}o='<select class="hourselect">';for(var p=this.timePicker24Hour?0:1,x=this.timePicker24Hour?23:12,T=p;T<=x;T++){var _=T;this.timePicker24Hour||(_=s.hour()>=12?T==12?12:T+12:T==12?0:T);var I=s.clone().hour(_),L=!1;l&&I.minute(59).isBefore(l)&&(L=!0),c&&I.minute(0).isAfter(c)&&(L=!0),_==s.hour()&&!L?o+='<option value="'+T+'" selected="selected">'+T+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+T+"</option>":o+='<option value="'+T+'">'+T+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var T=0;T<60;T+=this.timePickerIncrement){var R=T<10?"0"+T:T,I=s.clone().minute(T),L=!1;l&&I.second(59).isBefore(l)&&(L=!0),c&&I.second(0).isAfter(c)&&(L=!0),s.minute()==T&&!L?o+='<option value="'+T+'" selected="selected">'+R+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+T+'">'+R+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var T=0;T<60;T++){var R=T<10?"0"+T:T,I=s.clone().second(T),L=!1;l&&I.isBefore(l)&&(L=!0),c&&I.isAfter(c)&&(L=!0),s.second()==T&&!L?o+='<option value="'+T+'" selected="selected">'+R+"</option>":L?o+='<option value="'+T+'" disabled="disabled" class="disabled">'+R+"</option>":o+='<option value="'+T+'">'+R+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var U="",W="";l&&s.clone().hour(12).minute(0).second(0).isBefore(l)&&(U=' disabled="disabled" class="disabled"'),c&&s.clone().hour(0).minute(0).second(0).isAfter(c)&&(W=' disabled="disabled" class="disabled"'),s.hour()>=12?o+='<option value="AM"'+U+'>AM</option><option value="PM" selected="selected"'+W+">PM</option>":o+='<option value="AM" selected="selected"'+U+'>AM</option><option value="PM"'+W+">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,s=this.drops,l=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()},l=this.parentEl[0].clientWidth+this.parentEl.offset().left),s){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,s="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 c=this.container.outerWidth();if(this.container.toggleClass("drop-up",s=="up"),this.opens=="left"){var d=l-this.element.offset().left-this.element.outerWidth();c+d>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:d,left:"auto"})}else if(this.opens=="center"){var v=this.element.offset().left-i.left+this.element.outerWidth()/2-c/2;v<0?this.container.css({top:o,right:"auto",left:9}):v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,right:"auto"})}else{var v=this.element.offset().left-i.left;v+c>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:v,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 s=this.ranges[o];this.startDate=s[0],this.endDate=s[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"),s=o.substr(1,1),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l],v=this.leftCalendar,p=this.rightCalendar,x=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(T,_){if(!n(_).hasClass("week")){var I=n(_).attr("data-title"),L=I.substr(1,1),R=I.substr(3,1),U=n(_).parents(".drp-calendar"),W=U.hasClass("left")?v.calendar[L][R]:p.calendar[L][R];W.isAfter(x)&&W.isBefore(d)||W.isSame(d,"day")?n(_).addClass("in-range"):n(_).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),s=o.substr(1,1),l=o.substr(3,1),c=n(i.target).parents(".drp-calendar"),d=c.hasClass("left")?this.leftCalendar.calendar[s][l]:this.rightCalendar.calendar[s][l];if(this.endDate||d.isBefore(this.startDate,"day")){if(this.timePicker){var v=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".left .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=0)}var x=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;d=d.clone().hour(v).minute(x).second(T)}this.endDate=null,this.setStartDate(d.clone())}else if(!this.endDate&&d.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var v=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var p=this.container.find(".right .ampmselect").val();p==="PM"&&v<12&&(v+=12),p==="AM"&&v===12&&(v=0)}var x=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(x)&&(x=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var T=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;d=d.clone().hour(v).minute(x).second(T)}this.setEndDate(d.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 s in this.ranges){if(this.timePicker){var l=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(l)==this.ranges[s][0].format(l)&&this.endDate.format(l)==this.ranges[s][1].format(l)){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[s][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[s][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"),s=o?"left":"right",l=this.container.find(".drp-calendar."+s),c=parseInt(l.find(".monthselect").val(),10),d=l.find(".yearselect").val();o||(d<this.startDate.year()||d==this.startDate.year()&&c<this.startDate.month())&&(c=this.startDate.month(),d=this.startDate.year()),this.minDate&&(d<this.minDate.year()||d==this.minDate.year()&&c<this.minDate.month())&&(c=this.minDate.month(),d=this.minDate.year()),this.maxDate&&(d>this.maxDate.year()||d==this.maxDate.year()&&c>this.maxDate.month())&&(c=this.maxDate.month(),d=this.maxDate.year()),o?(this.leftCalendar.month.month(c).year(d),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(c).year(d),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"),s=o.hasClass("left"),l=parseInt(o.find(".hourselect").val(),10),c=parseInt(o.find(".minuteselect").val(),10);isNaN(c)&&(c=parseInt(o.find(".minuteselect option:last").val(),10));var d=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var v=o.find(".ampmselect").val();v==="PM"&&l<12&&(l+=12),v==="AM"&&l===12&&(l=0)}if(s){var p=this.startDate.clone();p.hour(l),p.minute(c),p.second(d),this.setStartDate(p),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==p.format("YYYY-MM-DD")&&this.endDate.isBefore(p)&&this.setEndDate(p.clone())}else if(this.endDate){var x=this.endDate.clone();x.hour(l),x.minute(c),x.second(d),this.setEndDate(x)}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,s=null;i.length===2&&(o=t(i[0],this.locale.format),s=t(i[1],this.locale.format)),(this.singleDatePicker||o===null||s===null)&&(o=t(this.element.val(),this.locale.format),s=o),!(!o.isValid()||!s.isValid())&&(this.setStartDate(o),this.setEndDate(s),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 s=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var l=n(this);l.data("daterangepicker")&&l.data("daterangepicker").remove(),l.data("daterangepicker",new r(l,s,o))}),this},r})})(h6);var Fm=function(e,t){return Fm=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])},Fm(e,t)};function p6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var g6=function(e){p6(t,e);function t(n){var r=e.call(this,n)||this;return r.ref=null,r.$picker=null,r}return t.prototype.componentDidMount=function(){var n=this;this.$picker=d6(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))})},t.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()},t.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)},t.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,s){typeof i=="function"&&i(o,s),typeof r.props[n]=="function"&&r.props[n](o,s)}},t.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)},t.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)},t.prototype.render=function(){var n=this,r=Tn.Children.only(this.props.children);return Tn.cloneElement(r,{ref:function(i){return n.ref=i}})},t}(Tn.Component);ss.styled(e=>Ue.jsx(ss.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>({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:Gr.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:e.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}}));/**
|
|
189
|
-
* @license
|
|
190
|
-
* Copyright 2017 Google LLC
|
|
191
|
-
*
|
|
192
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
-
* you may not use this file except in compliance with the License.
|
|
194
|
-
* You may obtain a copy of the License at
|
|
195
|
-
*
|
|
196
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
-
*
|
|
198
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
199
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
-
* See the License for the specific language governing permissions and
|
|
202
|
-
* limitations under the License.
|
|
203
|
-
*//**
|
|
204
|
-
* @license
|
|
205
|
-
* Copyright 2017 Google LLC
|
|
206
|
-
*
|
|
207
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
208
|
-
* you may not use this file except in compliance with the License.
|
|
209
|
-
* You may obtain a copy of the License at
|
|
210
|
-
*
|
|
211
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
212
|
-
*
|
|
213
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
214
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
215
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
216
|
-
* See the License for the specific language governing permissions and
|
|
217
|
-
* limitations under the License.
|
|
218
|
-
*/const RO=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},v6=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],l=e[n++],c=((i&7)<<18|(o&63)<<12|(s&63)<<6|l&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},IO={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,l=s?e[i+1]:0,c=i+2<e.length,d=c?e[i+2]:0,v=o>>2,p=(o&3)<<4|l>>4;let x=(l&15)<<2|d>>6,T=d&63;c||(T=64,s||(x=64)),r.push(n[v],n[p],n[x],n[T])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(RO(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):v6(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],l=i<e.length?n[e.charAt(i)]:0;++i;const d=i<e.length?n[e.charAt(i)]:64;++i;const p=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||l==null||d==null||p==null)throw new m6;const x=o<<2|l>>4;if(r.push(x),d!==64){const T=l<<4&240|d>>2;if(r.push(T),p!==64){const _=d<<6&192|p;r.push(_)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class m6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const y6=function(e){const t=RO(e);return IO.encodeByteArray(t,!0)},AO=function(e){return y6(e).replace(/\./g,"")},b6=function(e){try{return IO.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
|
219
|
-
* @license
|
|
220
|
-
* Copyright 2022 Google LLC
|
|
221
|
-
*
|
|
222
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
223
|
-
* you may not use this file except in compliance with the License.
|
|
224
|
-
* You may obtain a copy of the License at
|
|
225
|
-
*
|
|
226
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
227
|
-
*
|
|
228
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
229
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
230
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
231
|
-
* See the License for the specific language governing permissions and
|
|
232
|
-
* limitations under the License.
|
|
233
|
-
*/function w6(){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.")}/**
|
|
234
|
-
* @license
|
|
235
|
-
* Copyright 2022 Google LLC
|
|
236
|
-
*
|
|
237
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
238
|
-
* you may not use this file except in compliance with the License.
|
|
239
|
-
* You may obtain a copy of the License at
|
|
240
|
-
*
|
|
241
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
242
|
-
*
|
|
243
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
244
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
245
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
246
|
-
* See the License for the specific language governing permissions and
|
|
247
|
-
* limitations under the License.
|
|
248
|
-
*/const x6=()=>w6().__FIREBASE_DEFAULTS__,S6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},T6=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&b6(e[1]);return t&&JSON.parse(t)},C6=()=>{try{return x6()||S6()||T6()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},MO=()=>{var e;return(e=C6())===null||e===void 0?void 0:e.config};/**
|
|
249
|
-
* @license
|
|
250
|
-
* Copyright 2017 Google LLC
|
|
251
|
-
*
|
|
252
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
253
|
-
* you may not use this file except in compliance with the License.
|
|
254
|
-
* You may obtain a copy of the License at
|
|
255
|
-
*
|
|
256
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
257
|
-
*
|
|
258
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
259
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
260
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
261
|
-
* See the License for the specific language governing permissions and
|
|
262
|
-
* limitations under the License.
|
|
263
|
-
*/class E6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function LO(){try{return typeof indexedDB=="object"}catch{return!1}}function FO(){return new Promise((e,t)=>{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),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function k6(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
|
264
|
-
* @license
|
|
265
|
-
* Copyright 2017 Google LLC
|
|
266
|
-
*
|
|
267
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
268
|
-
* you may not use this file except in compliance with the License.
|
|
269
|
-
* You may obtain a copy of the License at
|
|
270
|
-
*
|
|
271
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
272
|
-
*
|
|
273
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
274
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
275
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
276
|
-
* See the License for the specific language governing permissions and
|
|
277
|
-
* limitations under the License.
|
|
278
|
-
*/const O6="FirebaseError";class $f extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=O6,Object.setPrototypeOf(this,$f.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,rg.prototype.create)}}class rg{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?_6(o,r):"Error",l=`${this.serviceName}: ${s} (${i}).`;return new $f(i,l,r)}}function _6(e,t){return e.replace(D6,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const D6=/\{\$([^}]+)}/g;function Nm(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(d1(o)&&d1(s)){if(!Nm(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function d1(e){return e!==null&&typeof e=="object"}/**
|
|
279
|
-
* @license
|
|
280
|
-
* Copyright 2021 Google LLC
|
|
281
|
-
*
|
|
282
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
283
|
-
* you may not use this file except in compliance with the License.
|
|
284
|
-
* You may obtain a copy of the License at
|
|
285
|
-
*
|
|
286
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
287
|
-
*
|
|
288
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
289
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
290
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
291
|
-
* See the License for the specific language governing permissions and
|
|
292
|
-
* limitations under the License.
|
|
293
|
-
*/function e0(e){return e&&e._delegate?e._delegate:e}class Au{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
|
|
294
|
-
* @license
|
|
295
|
-
* Copyright 2019 Google LLC
|
|
296
|
-
*
|
|
297
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
298
|
-
* you may not use this file except in compliance with the License.
|
|
299
|
-
* You may obtain a copy of the License at
|
|
300
|
-
*
|
|
301
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
302
|
-
*
|
|
303
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
304
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
305
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
306
|
-
* See the License for the specific language governing permissions and
|
|
307
|
-
* limitations under the License.
|
|
308
|
-
*/const Ec="[DEFAULT]";/**
|
|
309
|
-
* @license
|
|
310
|
-
* Copyright 2019 Google LLC
|
|
311
|
-
*
|
|
312
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
313
|
-
* you may not use this file except in compliance with the License.
|
|
314
|
-
* You may obtain a copy of the License at
|
|
315
|
-
*
|
|
316
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
317
|
-
*
|
|
318
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
319
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
320
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
321
|
-
* See the License for the specific language governing permissions and
|
|
322
|
-
* limitations under the License.
|
|
323
|
-
*/class P6{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new E6;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(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.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(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(I6(t))try{this.getOrInitializeService({instanceIdentifier:Ec})}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(t=Ec){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ec){return this.instances.has(t)}getOptions(t=Ec){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.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,s]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(o);r===l&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:R6(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ec){return this.component?this.component.multipleInstances?t:Ec:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function R6(e){return e===Ec?void 0:e}function I6(e){return e.instantiationMode==="EAGER"}/**
|
|
324
|
-
* @license
|
|
325
|
-
* Copyright 2019 Google LLC
|
|
326
|
-
*
|
|
327
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
328
|
-
* you may not use this file except in compliance with the License.
|
|
329
|
-
* You may obtain a copy of the License at
|
|
330
|
-
*
|
|
331
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
332
|
-
*
|
|
333
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
334
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
335
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
336
|
-
* See the License for the specific language governing permissions and
|
|
337
|
-
* limitations under the License.
|
|
338
|
-
*/class A6{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new P6(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
|
339
|
-
* @license
|
|
340
|
-
* Copyright 2017 Google LLC
|
|
341
|
-
*
|
|
342
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
343
|
-
* you may not use this file except in compliance with the License.
|
|
344
|
-
* You may obtain a copy of the License at
|
|
345
|
-
*
|
|
346
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
347
|
-
*
|
|
348
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
349
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
350
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
351
|
-
* See the License for the specific language governing permissions and
|
|
352
|
-
* limitations under the License.
|
|
353
|
-
*/var Hn;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Hn||(Hn={}));const M6={debug:Hn.DEBUG,verbose:Hn.VERBOSE,info:Hn.INFO,warn:Hn.WARN,error:Hn.ERROR,silent:Hn.SILENT},L6=Hn.INFO,F6={[Hn.DEBUG]:"log",[Hn.VERBOSE]:"log",[Hn.INFO]:"info",[Hn.WARN]:"warn",[Hn.ERROR]:"error"},N6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=F6[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class j6{constructor(t){this.name=t,this._logLevel=L6,this._logHandler=N6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Hn))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?M6[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Hn.DEBUG,...t),this._logHandler(this,Hn.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Hn.VERBOSE,...t),this._logHandler(this,Hn.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Hn.INFO,...t),this._logHandler(this,Hn.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Hn.WARN,...t),this._logHandler(this,Hn.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Hn.ERROR,...t),this._logHandler(this,Hn.ERROR,...t)}}const B6=(e,t)=>t.some(n=>e instanceof n);let h1,p1;function $6(){return h1||(h1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function V6(){return p1||(p1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const NO=new WeakMap,jm=new WeakMap,jO=new WeakMap,Dv=new WeakMap,t0=new WeakMap;function H6(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(Al(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&NO.set(n,e)}).catch(()=>{}),t0.set(t,e),t}function U6(e){if(jm.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});jm.set(e,t)}let Bm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return jm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||jO.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Al(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function W6(e){Bm=e(Bm)}function z6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Pv(this),t,...n);return jO.set(r,t.sort?t.sort():[t]),Al(r)}:V6().includes(e)?function(...t){return e.apply(Pv(this),t),Al(NO.get(this))}:function(...t){return Al(e.apply(Pv(this),t))}}function Y6(e){return typeof e=="function"?z6(e):(e instanceof IDBTransaction&&U6(e),B6(e,$6())?new Proxy(e,Bm):e)}function Al(e){if(e instanceof IDBRequest)return H6(e);if(Dv.has(e))return Dv.get(e);const t=Y6(e);return t!==e&&(Dv.set(e,t),t0.set(t,e)),t}const Pv=e=>t0.get(e);function ig(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),l=Al(s);return r&&s.addEventListener("upgradeneeded",c=>{r(Al(s.result),c.oldVersion,c.newVersion,Al(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),l.then(c=>{o&&c.addEventListener("close",()=>o()),i&&c.addEventListener("versionchange",d=>i(d.oldVersion,d.newVersion,d))}).catch(()=>{}),l}function Rv(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),Al(n).then(()=>{})}const G6=["get","getKey","getAll","getAllKeys","count"],q6=["put","add","delete","clear"],Iv=new Map;function g1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Iv.get(t))return Iv.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=q6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||G6.includes(n)))return;const o=async function(s,...l){const c=this.transaction(s,i?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(l.shift())),(await Promise.all([d[n](...l),i&&c.done]))[0]};return Iv.set(t,o),o}W6(e=>({...e,get:(t,n,r)=>g1(t,n)||e.get(t,n,r),has:(t,n)=>!!g1(t,n)||e.has(t,n)}));/**
|
|
354
|
-
* @license
|
|
355
|
-
* Copyright 2019 Google LLC
|
|
356
|
-
*
|
|
357
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
358
|
-
* you may not use this file except in compliance with the License.
|
|
359
|
-
* You may obtain a copy of the License at
|
|
360
|
-
*
|
|
361
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
362
|
-
*
|
|
363
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
364
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
365
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
366
|
-
* See the License for the specific language governing permissions and
|
|
367
|
-
* limitations under the License.
|
|
368
|
-
*/class X6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(K6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function K6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const $m="@firebase/app",v1="0.10.13";/**
|
|
369
|
-
* @license
|
|
370
|
-
* Copyright 2019 Google LLC
|
|
371
|
-
*
|
|
372
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
373
|
-
* you may not use this file except in compliance with the License.
|
|
374
|
-
* You may obtain a copy of the License at
|
|
375
|
-
*
|
|
376
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
377
|
-
*
|
|
378
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
379
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
380
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
381
|
-
* See the License for the specific language governing permissions and
|
|
382
|
-
* limitations under the License.
|
|
383
|
-
*/const jl=new j6("@firebase/app"),Z6="@firebase/app-compat",J6="@firebase/analytics-compat",Q6="@firebase/analytics",e8="@firebase/app-check-compat",t8="@firebase/app-check",n8="@firebase/auth",r8="@firebase/auth-compat",i8="@firebase/database",o8="@firebase/data-connect",a8="@firebase/database-compat",s8="@firebase/functions",l8="@firebase/functions-compat",u8="@firebase/installations",c8="@firebase/installations-compat",f8="@firebase/messaging",d8="@firebase/messaging-compat",h8="@firebase/performance",p8="@firebase/performance-compat",g8="@firebase/remote-config",v8="@firebase/remote-config-compat",m8="@firebase/storage",y8="@firebase/storage-compat",b8="@firebase/firestore",w8="@firebase/vertexai-preview",x8="@firebase/firestore-compat",S8="firebase";/**
|
|
384
|
-
* @license
|
|
385
|
-
* Copyright 2019 Google LLC
|
|
386
|
-
*
|
|
387
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
388
|
-
* you may not use this file except in compliance with the License.
|
|
389
|
-
* You may obtain a copy of the License at
|
|
390
|
-
*
|
|
391
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
392
|
-
*
|
|
393
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
394
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
395
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
396
|
-
* See the License for the specific language governing permissions and
|
|
397
|
-
* limitations under the License.
|
|
398
|
-
*/const Vm="[DEFAULT]",T8={[$m]:"fire-core",[Z6]:"fire-core-compat",[Q6]:"fire-analytics",[J6]:"fire-analytics-compat",[t8]:"fire-app-check",[e8]:"fire-app-check-compat",[n8]:"fire-auth",[r8]:"fire-auth-compat",[i8]:"fire-rtdb",[o8]:"fire-data-connect",[a8]:"fire-rtdb-compat",[s8]:"fire-fn",[l8]:"fire-fn-compat",[u8]:"fire-iid",[c8]:"fire-iid-compat",[f8]:"fire-fcm",[d8]:"fire-fcm-compat",[h8]:"fire-perf",[p8]:"fire-perf-compat",[g8]:"fire-rc",[v8]:"fire-rc-compat",[m8]:"fire-gcs",[y8]:"fire-gcs-compat",[b8]:"fire-fst",[x8]:"fire-fst-compat",[w8]:"fire-vertex","fire-js":"fire-js",[S8]:"fire-js-all"};/**
|
|
399
|
-
* @license
|
|
400
|
-
* Copyright 2019 Google LLC
|
|
401
|
-
*
|
|
402
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
403
|
-
* you may not use this file except in compliance with the License.
|
|
404
|
-
* You may obtain a copy of the License at
|
|
405
|
-
*
|
|
406
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
407
|
-
*
|
|
408
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
409
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
410
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
411
|
-
* See the License for the specific language governing permissions and
|
|
412
|
-
* limitations under the License.
|
|
413
|
-
*/const kp=new Map,C8=new Map,Hm=new Map;function m1(e,t){try{e.container.addComponent(t)}catch(n){jl.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Lc(e){const t=e.name;if(Hm.has(t))return jl.debug(`There were multiple attempts to register component ${t}.`),!1;Hm.set(t,e);for(const n of kp.values())m1(n,e);for(const n of C8.values())m1(n,e);return!0}function n0(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
|
414
|
-
* @license
|
|
415
|
-
* Copyright 2019 Google LLC
|
|
416
|
-
*
|
|
417
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
418
|
-
* you may not use this file except in compliance with the License.
|
|
419
|
-
* You may obtain a copy of the License at
|
|
420
|
-
*
|
|
421
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
422
|
-
*
|
|
423
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
424
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
425
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
426
|
-
* See the License for the specific language governing permissions and
|
|
427
|
-
* limitations under the License.
|
|
428
|
-
*/const E8={"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."},Ou=new rg("app","Firebase",E8);/**
|
|
429
|
-
* @license
|
|
430
|
-
* Copyright 2019 Google LLC
|
|
431
|
-
*
|
|
432
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
433
|
-
* you may not use this file except in compliance with the License.
|
|
434
|
-
* You may obtain a copy of the License at
|
|
435
|
-
*
|
|
436
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
437
|
-
*
|
|
438
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
439
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
440
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
441
|
-
* See the License for the specific language governing permissions and
|
|
442
|
-
* limitations under the License.
|
|
443
|
-
*/class k8{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Au("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ou.create("app-deleted",{appName:this._name})}}function BO(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Vm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw Ou.create("bad-app-name",{appName:String(i)});if(n||(n=MO()),!n)throw Ou.create("no-options");const o=kp.get(i);if(o){if(Nm(n,o.options)&&Nm(r,o.config))return o;throw Ou.create("duplicate-app",{appName:i})}const s=new A6(i);for(const c of Hm.values())s.addComponent(c);const l=new k8(n,r,s);return kp.set(i,l),l}function O8(e=Vm){const t=kp.get(e);if(!t&&e===Vm&&MO())return BO();if(!t)throw Ou.create("no-app",{appName:e});return t}function _u(e,t,n){var r;let i=(r=T8[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const l=[`Unable to register library "${i}" with version "${t}":`];o&&l.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&l.push("and"),s&&l.push(`version name "${t}" contains illegal characters (whitespace or "/")`),jl.warn(l.join(" "));return}Lc(new Au(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
|
|
444
|
-
* @license
|
|
445
|
-
* Copyright 2021 Google LLC
|
|
446
|
-
*
|
|
447
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
448
|
-
* you may not use this file except in compliance with the License.
|
|
449
|
-
* You may obtain a copy of the License at
|
|
450
|
-
*
|
|
451
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
452
|
-
*
|
|
453
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
454
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
455
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
456
|
-
* See the License for the specific language governing permissions and
|
|
457
|
-
* limitations under the License.
|
|
458
|
-
*/const _8="firebase-heartbeat-database",D8=1,$d="firebase-heartbeat-store";let Av=null;function $O(){return Av||(Av=ig(_8,D8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore($d)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ou.create("idb-open",{originalErrorMessage:e.message})})),Av}async function P8(e){try{const n=(await $O()).transaction($d),r=await n.objectStore($d).get(VO(e));return await n.done,r}catch(t){if(t instanceof $f)jl.warn(t.message);else{const n=Ou.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});jl.warn(n.message)}}}async function y1(e,t){try{const r=(await $O()).transaction($d,"readwrite");await r.objectStore($d).put(t,VO(e)),await r.done}catch(n){if(n instanceof $f)jl.warn(n.message);else{const r=Ou.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});jl.warn(r.message)}}}function VO(e){return`${e.name}!${e.options.appId}`}/**
|
|
459
|
-
* @license
|
|
460
|
-
* Copyright 2021 Google LLC
|
|
461
|
-
*
|
|
462
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
463
|
-
* you may not use this file except in compliance with the License.
|
|
464
|
-
* You may obtain a copy of the License at
|
|
465
|
-
*
|
|
466
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
467
|
-
*
|
|
468
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
469
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
470
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
471
|
-
* See the License for the specific language governing permissions and
|
|
472
|
-
* limitations under the License.
|
|
473
|
-
*/const R8=1024,I8=30*24*60*60*1e3;class A8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new L8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=b1();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.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(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const l=new Date(s.date).valueOf();return Date.now()-l<=I8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){jl.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=b1(),{heartbeatsToSend:r,unsentEntries:i}=M8(this._heartbeatsCache.heartbeats),o=AO(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 jl.warn(n),""}}}function b1(){return new Date().toISOString().substring(0,10)}function M8(e,t=R8){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),w1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),w1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class L8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return LO()?FO().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await P8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return y1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return y1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function w1(e){return AO(JSON.stringify({version:2,heartbeats:e})).length}/**
|
|
474
|
-
* @license
|
|
475
|
-
* Copyright 2019 Google LLC
|
|
476
|
-
*
|
|
477
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
478
|
-
* you may not use this file except in compliance with the License.
|
|
479
|
-
* You may obtain a copy of the License at
|
|
480
|
-
*
|
|
481
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
482
|
-
*
|
|
483
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
484
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
485
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
486
|
-
* See the License for the specific language governing permissions and
|
|
487
|
-
* limitations under the License.
|
|
488
|
-
*/function F8(e){Lc(new Au("platform-logger",t=>new X6(t),"PRIVATE")),Lc(new Au("heartbeat",t=>new A8(t),"PRIVATE")),_u($m,v1,e),_u($m,v1,"esm2017"),_u("fire-js","")}F8("");var N8="firebase",j8="10.14.1";/**
|
|
489
|
-
* @license
|
|
490
|
-
* Copyright 2020 Google LLC
|
|
491
|
-
*
|
|
492
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
493
|
-
* you may not use this file except in compliance with the License.
|
|
494
|
-
* You may obtain a copy of the License at
|
|
495
|
-
*
|
|
496
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
497
|
-
*
|
|
498
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
499
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
500
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
501
|
-
* See the License for the specific language governing permissions and
|
|
502
|
-
* limitations under the License.
|
|
503
|
-
*/_u(N8,j8,"app");const HO="@firebase/installations",r0="0.6.9";/**
|
|
504
|
-
* @license
|
|
505
|
-
* Copyright 2019 Google LLC
|
|
506
|
-
*
|
|
507
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
508
|
-
* you may not use this file except in compliance with the License.
|
|
509
|
-
* You may obtain a copy of the License at
|
|
510
|
-
*
|
|
511
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
512
|
-
*
|
|
513
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
514
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
515
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
516
|
-
* See the License for the specific language governing permissions and
|
|
517
|
-
* limitations under the License.
|
|
518
|
-
*/const UO=1e4,WO=`w:${r0}`,zO="FIS_v2",B8="https://firebaseinstallations.googleapis.com/v1",$8=60*60*1e3,V8="installations",H8="Installations";/**
|
|
519
|
-
* @license
|
|
520
|
-
* Copyright 2019 Google LLC
|
|
521
|
-
*
|
|
522
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
523
|
-
* you may not use this file except in compliance with the License.
|
|
524
|
-
* You may obtain a copy of the License at
|
|
525
|
-
*
|
|
526
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
527
|
-
*
|
|
528
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
529
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
530
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
531
|
-
* See the License for the specific language governing permissions and
|
|
532
|
-
* limitations under the License.
|
|
533
|
-
*/const U8={"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."},Fc=new rg(V8,H8,U8);function YO(e){return e instanceof $f&&e.code.includes("request-failed")}/**
|
|
534
|
-
* @license
|
|
535
|
-
* Copyright 2019 Google LLC
|
|
536
|
-
*
|
|
537
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
538
|
-
* you may not use this file except in compliance with the License.
|
|
539
|
-
* You may obtain a copy of the License at
|
|
540
|
-
*
|
|
541
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
542
|
-
*
|
|
543
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
544
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
545
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
546
|
-
* See the License for the specific language governing permissions and
|
|
547
|
-
* limitations under the License.
|
|
548
|
-
*/function GO({projectId:e}){return`${B8}/projects/${e}/installations`}function qO(e){return{token:e.token,requestStatus:2,expiresIn:z8(e.expiresIn),creationTime:Date.now()}}async function XO(e,t){const r=(await t.json()).error;return Fc.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function KO({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function W8(e,{refreshToken:t}){const n=KO(e);return n.append("Authorization",Y8(t)),n}async function ZO(e){const t=await e();return t.status>=500&&t.status<600?e():t}function z8(e){return Number(e.replace("s","000"))}function Y8(e){return`${zO} ${e}`}/**
|
|
549
|
-
* @license
|
|
550
|
-
* Copyright 2019 Google LLC
|
|
551
|
-
*
|
|
552
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
553
|
-
* you may not use this file except in compliance with the License.
|
|
554
|
-
* You may obtain a copy of the License at
|
|
555
|
-
*
|
|
556
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
557
|
-
*
|
|
558
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
559
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
560
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
561
|
-
* See the License for the specific language governing permissions and
|
|
562
|
-
* limitations under the License.
|
|
563
|
-
*/async function G8({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=GO(e),i=KO(e),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={fid:n,authVersion:zO,appId:e.appId,sdkVersion:WO},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await ZO(()=>fetch(r,l));if(c.ok){const d=await c.json();return{fid:d.fid||n,registrationStatus:2,refreshToken:d.refreshToken,authToken:qO(d.authToken)}}else throw await XO("Create Installation",c)}/**
|
|
564
|
-
* @license
|
|
565
|
-
* Copyright 2019 Google LLC
|
|
566
|
-
*
|
|
567
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
568
|
-
* you may not use this file except in compliance with the License.
|
|
569
|
-
* You may obtain a copy of the License at
|
|
570
|
-
*
|
|
571
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
572
|
-
*
|
|
573
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
574
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
575
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
576
|
-
* See the License for the specific language governing permissions and
|
|
577
|
-
* limitations under the License.
|
|
578
|
-
*/function JO(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
|
579
|
-
* @license
|
|
580
|
-
* Copyright 2019 Google LLC
|
|
581
|
-
*
|
|
582
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
583
|
-
* you may not use this file except in compliance with the License.
|
|
584
|
-
* You may obtain a copy of the License at
|
|
585
|
-
*
|
|
586
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
587
|
-
*
|
|
588
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
589
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
590
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
591
|
-
* See the License for the specific language governing permissions and
|
|
592
|
-
* limitations under the License.
|
|
593
|
-
*/function q8(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
|
594
|
-
* @license
|
|
595
|
-
* Copyright 2019 Google LLC
|
|
596
|
-
*
|
|
597
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
598
|
-
* you may not use this file except in compliance with the License.
|
|
599
|
-
* You may obtain a copy of the License at
|
|
600
|
-
*
|
|
601
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
602
|
-
*
|
|
603
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
604
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
605
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
606
|
-
* See the License for the specific language governing permissions and
|
|
607
|
-
* limitations under the License.
|
|
608
|
-
*/const X8=/^[cdef][\w-]{21}$/,Um="";function K8(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=Z8(e);return X8.test(n)?n:Um}catch{return Um}}function Z8(e){return q8(e).substr(0,22)}/**
|
|
609
|
-
* @license
|
|
610
|
-
* Copyright 2019 Google LLC
|
|
611
|
-
*
|
|
612
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
613
|
-
* you may not use this file except in compliance with the License.
|
|
614
|
-
* You may obtain a copy of the License at
|
|
615
|
-
*
|
|
616
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
617
|
-
*
|
|
618
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
619
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
620
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
621
|
-
* See the License for the specific language governing permissions and
|
|
622
|
-
* limitations under the License.
|
|
623
|
-
*/function og(e){return`${e.appName}!${e.appId}`}/**
|
|
624
|
-
* @license
|
|
625
|
-
* Copyright 2019 Google LLC
|
|
626
|
-
*
|
|
627
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
628
|
-
* you may not use this file except in compliance with the License.
|
|
629
|
-
* You may obtain a copy of the License at
|
|
630
|
-
*
|
|
631
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
632
|
-
*
|
|
633
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
634
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
635
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
636
|
-
* See the License for the specific language governing permissions and
|
|
637
|
-
* limitations under the License.
|
|
638
|
-
*/const QO=new Map;function e_(e,t){const n=og(e);t_(n,t),J8(n,t)}function t_(e,t){const n=QO.get(e);if(n)for(const r of n)r(t)}function J8(e,t){const n=Q8();n&&n.postMessage({key:e,fid:t}),e9()}let _c=null;function Q8(){return!_c&&"BroadcastChannel"in self&&(_c=new BroadcastChannel("[Firebase] FID Change"),_c.onmessage=e=>{t_(e.data.key,e.data.fid)}),_c}function e9(){QO.size===0&&_c&&(_c.close(),_c=null)}/**
|
|
639
|
-
* @license
|
|
640
|
-
* Copyright 2019 Google LLC
|
|
641
|
-
*
|
|
642
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
643
|
-
* you may not use this file except in compliance with the License.
|
|
644
|
-
* You may obtain a copy of the License at
|
|
645
|
-
*
|
|
646
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
647
|
-
*
|
|
648
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
649
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
650
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
651
|
-
* See the License for the specific language governing permissions and
|
|
652
|
-
* limitations under the License.
|
|
653
|
-
*/const t9="firebase-installations-database",n9=1,Nc="firebase-installations-store";let Mv=null;function i0(){return Mv||(Mv=ig(t9,n9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Nc)}}})),Mv}async function Op(e,t){const n=og(e),i=(await i0()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n);return await o.put(t,n),await i.done,(!s||s.fid!==t.fid)&&e_(e,t.fid),t}async function n_(e){const t=og(e),r=(await i0()).transaction(Nc,"readwrite");await r.objectStore(Nc).delete(t),await r.done}async function ag(e,t){const n=og(e),i=(await i0()).transaction(Nc,"readwrite"),o=i.objectStore(Nc),s=await o.get(n),l=t(s);return l===void 0?await o.delete(n):await o.put(l,n),await i.done,l&&(!s||s.fid!==l.fid)&&e_(e,l.fid),l}/**
|
|
654
|
-
* @license
|
|
655
|
-
* Copyright 2019 Google LLC
|
|
656
|
-
*
|
|
657
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
658
|
-
* you may not use this file except in compliance with the License.
|
|
659
|
-
* You may obtain a copy of the License at
|
|
660
|
-
*
|
|
661
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
662
|
-
*
|
|
663
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
664
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
665
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
666
|
-
* See the License for the specific language governing permissions and
|
|
667
|
-
* limitations under the License.
|
|
668
|
-
*/async function o0(e){let t;const n=await ag(e.appConfig,r=>{const i=r9(r),o=i9(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===Um?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function r9(e){const t=e||{fid:K8(),registrationStatus:0};return r_(t)}function i9(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(Fc.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=o9(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:a9(e)}:{installationEntry:t}}async function o9(e,t){try{const n=await G8(e,t);return Op(e.appConfig,n)}catch(n){throw YO(n)&&n.customData.serverCode===409?await n_(e.appConfig):await Op(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function a9(e){let t=await x1(e.appConfig);for(;t.registrationStatus===1;)await JO(100),t=await x1(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await o0(e);return r||n}return t}function x1(e){return ag(e,t=>{if(!t)throw Fc.create("installation-not-found");return r_(t)})}function r_(e){return s9(e)?{fid:e.fid,registrationStatus:0}:e}function s9(e){return e.registrationStatus===1&&e.registrationTime+UO<Date.now()}/**
|
|
669
|
-
* @license
|
|
670
|
-
* Copyright 2019 Google LLC
|
|
671
|
-
*
|
|
672
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
673
|
-
* you may not use this file except in compliance with the License.
|
|
674
|
-
* You may obtain a copy of the License at
|
|
675
|
-
*
|
|
676
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
677
|
-
*
|
|
678
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
679
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
680
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
681
|
-
* See the License for the specific language governing permissions and
|
|
682
|
-
* limitations under the License.
|
|
683
|
-
*/async function l9({appConfig:e,heartbeatServiceProvider:t},n){const r=u9(e,n),i=W8(e,n),o=t.getImmediate({optional:!0});if(o){const d=await o.getHeartbeatsHeader();d&&i.append("x-firebase-client",d)}const s={installation:{sdkVersion:WO,appId:e.appId}},l={method:"POST",headers:i,body:JSON.stringify(s)},c=await ZO(()=>fetch(r,l));if(c.ok){const d=await c.json();return qO(d)}else throw await XO("Generate Auth Token",c)}function u9(e,{fid:t}){return`${GO(e)}/${t}/authTokens:generate`}/**
|
|
684
|
-
* @license
|
|
685
|
-
* Copyright 2019 Google LLC
|
|
686
|
-
*
|
|
687
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
688
|
-
* you may not use this file except in compliance with the License.
|
|
689
|
-
* You may obtain a copy of the License at
|
|
690
|
-
*
|
|
691
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
692
|
-
*
|
|
693
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
694
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
695
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
696
|
-
* See the License for the specific language governing permissions and
|
|
697
|
-
* limitations under the License.
|
|
698
|
-
*/async function a0(e,t=!1){let n;const r=await ag(e.appConfig,o=>{if(!i_(o))throw Fc.create("not-registered");const s=o.authToken;if(!t&&d9(s))return o;if(s.requestStatus===1)return n=c9(e,t),o;{if(!navigator.onLine)throw Fc.create("app-offline");const l=p9(o);return n=f9(e,l),l}});return n?await n:r.authToken}async function c9(e,t){let n=await S1(e.appConfig);for(;n.authToken.requestStatus===1;)await JO(100),n=await S1(e.appConfig);const r=n.authToken;return r.requestStatus===0?a0(e,t):r}function S1(e){return ag(e,t=>{if(!i_(t))throw Fc.create("not-registered");const n=t.authToken;return g9(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function f9(e,t){try{const n=await l9(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await Op(e.appConfig,r),n}catch(n){if(YO(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await n_(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await Op(e.appConfig,r)}throw n}}function i_(e){return e!==void 0&&e.registrationStatus===2}function d9(e){return e.requestStatus===2&&!h9(e)}function h9(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+$8}function p9(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function g9(e){return e.requestStatus===1&&e.requestTime+UO<Date.now()}/**
|
|
699
|
-
* @license
|
|
700
|
-
* Copyright 2019 Google LLC
|
|
701
|
-
*
|
|
702
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
703
|
-
* you may not use this file except in compliance with the License.
|
|
704
|
-
* You may obtain a copy of the License at
|
|
705
|
-
*
|
|
706
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
707
|
-
*
|
|
708
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
709
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
710
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
711
|
-
* See the License for the specific language governing permissions and
|
|
712
|
-
* limitations under the License.
|
|
713
|
-
*/async function v9(e){const t=e,{installationEntry:n,registrationPromise:r}=await o0(t);return r?r.catch(console.error):a0(t).catch(console.error),n.fid}/**
|
|
714
|
-
* @license
|
|
715
|
-
* Copyright 2019 Google LLC
|
|
716
|
-
*
|
|
717
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
718
|
-
* you may not use this file except in compliance with the License.
|
|
719
|
-
* You may obtain a copy of the License at
|
|
720
|
-
*
|
|
721
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
722
|
-
*
|
|
723
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
724
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
725
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
726
|
-
* See the License for the specific language governing permissions and
|
|
727
|
-
* limitations under the License.
|
|
728
|
-
*/async function m9(e,t=!1){const n=e;return await y9(n),(await a0(n,t)).token}async function y9(e){const{registrationPromise:t}=await o0(e);t&&await t}/**
|
|
729
|
-
* @license
|
|
730
|
-
* Copyright 2019 Google LLC
|
|
731
|
-
*
|
|
732
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
733
|
-
* you may not use this file except in compliance with the License.
|
|
734
|
-
* You may obtain a copy of the License at
|
|
735
|
-
*
|
|
736
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
737
|
-
*
|
|
738
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
739
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
740
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
741
|
-
* See the License for the specific language governing permissions and
|
|
742
|
-
* limitations under the License.
|
|
743
|
-
*/function b9(e){if(!e||!e.options)throw Lv("App Configuration");if(!e.name)throw Lv("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Lv(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Lv(e){return Fc.create("missing-app-config-values",{valueName:e})}/**
|
|
744
|
-
* @license
|
|
745
|
-
* Copyright 2020 Google LLC
|
|
746
|
-
*
|
|
747
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
748
|
-
* you may not use this file except in compliance with the License.
|
|
749
|
-
* You may obtain a copy of the License at
|
|
750
|
-
*
|
|
751
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
752
|
-
*
|
|
753
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
754
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
755
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
756
|
-
* See the License for the specific language governing permissions and
|
|
757
|
-
* limitations under the License.
|
|
758
|
-
*/const o_="installations",w9="installations-internal",x9=e=>{const t=e.getProvider("app").getImmediate(),n=b9(t),r=n0(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},S9=e=>{const t=e.getProvider("app").getImmediate(),n=n0(t,o_).getImmediate();return{getId:()=>v9(n),getToken:i=>m9(n,i)}};function T9(){Lc(new Au(o_,x9,"PUBLIC")),Lc(new Au(w9,S9,"PRIVATE"))}T9();_u(HO,r0);_u(HO,r0,"esm2017");/**
|
|
759
|
-
* @license
|
|
760
|
-
* Copyright 2019 Google LLC
|
|
761
|
-
*
|
|
762
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
763
|
-
* you may not use this file except in compliance with the License.
|
|
764
|
-
* You may obtain a copy of the License at
|
|
765
|
-
*
|
|
766
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
767
|
-
*
|
|
768
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
769
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
770
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
771
|
-
* See the License for the specific language governing permissions and
|
|
772
|
-
* limitations under the License.
|
|
773
|
-
*/const C9="/firebase-messaging-sw.js",E9="/firebase-cloud-messaging-push-scope",a_="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",k9="https://fcmregistrations.googleapis.com/v1",s_="google.c.a.c_id",O9="google.c.a.c_l",_9="google.c.a.ts",D9="google.c.a.e";var T1;(function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(T1||(T1={}));/**
|
|
774
|
-
* @license
|
|
775
|
-
* Copyright 2018 Google LLC
|
|
776
|
-
*
|
|
777
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
778
|
-
* in compliance with the License. You may obtain a copy of the License at
|
|
779
|
-
*
|
|
780
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
781
|
-
*
|
|
782
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
783
|
-
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
784
|
-
* or implied. See the License for the specific language governing permissions and limitations under
|
|
785
|
-
* the License.
|
|
786
|
-
*/var Vd;(function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"})(Vd||(Vd={}));/**
|
|
787
|
-
* @license
|
|
788
|
-
* Copyright 2017 Google LLC
|
|
789
|
-
*
|
|
790
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
791
|
-
* you may not use this file except in compliance with the License.
|
|
792
|
-
* You may obtain a copy of the License at
|
|
793
|
-
*
|
|
794
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
795
|
-
*
|
|
796
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
797
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
798
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
799
|
-
* See the License for the specific language governing permissions and
|
|
800
|
-
* limitations under the License.
|
|
801
|
-
*/function kl(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function P9(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).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}/**
|
|
802
|
-
* @license
|
|
803
|
-
* Copyright 2019 Google LLC
|
|
804
|
-
*
|
|
805
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
806
|
-
* you may not use this file except in compliance with the License.
|
|
807
|
-
* You may obtain a copy of the License at
|
|
808
|
-
*
|
|
809
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
810
|
-
*
|
|
811
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
812
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
813
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
814
|
-
* See the License for the specific language governing permissions and
|
|
815
|
-
* limitations under the License.
|
|
816
|
-
*/const Fv="fcm_token_details_db",R9=5,C1="fcm_token_object_Store";async function I9(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(Fv))return null;let t=null;return(await ig(Fv,R9,{upgrade:async(r,i,o,s)=>{var l;if(i<2||!r.objectStoreNames.contains(C1))return;const c=s.objectStore(C1),d=await c.index("fcmSenderId").get(e);if(await c.clear(),!!d){if(i===2){const v=d;if(!v.auth||!v.p256dh||!v.endpoint)return;t={token:v.fcmToken,createTime:(l=v.createTime)!==null&&l!==void 0?l:Date.now(),subscriptionOptions:{auth:v.auth,p256dh:v.p256dh,endpoint:v.endpoint,swScope:v.swScope,vapidKey:typeof v.vapidKey=="string"?v.vapidKey:kl(v.vapidKey)}}}else if(i===3){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:kl(v.auth),p256dh:kl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:kl(v.vapidKey)}}}else if(i===4){const v=d;t={token:v.fcmToken,createTime:v.createTime,subscriptionOptions:{auth:kl(v.auth),p256dh:kl(v.p256dh),endpoint:v.endpoint,swScope:v.swScope,vapidKey:kl(v.vapidKey)}}}}}})).close(),await Rv(Fv),await Rv("fcm_vapid_details_db"),await Rv("undefined"),A9(t)?t:null}function A9(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>0&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}/**
|
|
817
|
-
* @license
|
|
818
|
-
* Copyright 2019 Google LLC
|
|
819
|
-
*
|
|
820
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
821
|
-
* you may not use this file except in compliance with the License.
|
|
822
|
-
* You may obtain a copy of the License at
|
|
823
|
-
*
|
|
824
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
825
|
-
*
|
|
826
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
827
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
828
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
829
|
-
* See the License for the specific language governing permissions and
|
|
830
|
-
* limitations under the License.
|
|
831
|
-
*/const M9="firebase-messaging-database",L9=1,Hd="firebase-messaging-store";let Nv=null;function l_(){return Nv||(Nv=ig(M9,L9,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Hd)}}})),Nv}async function F9(e){const t=u_(e),r=await(await l_()).transaction(Hd).objectStore(Hd).get(t);if(r)return r;{const i=await I9(e.appConfig.senderId);if(i)return await s0(e,i),i}}async function s0(e,t){const n=u_(e),i=(await l_()).transaction(Hd,"readwrite");return await i.objectStore(Hd).put(t,n),await i.done,t}function u_({appConfig:e}){return e.appId}/**
|
|
832
|
-
* @license
|
|
833
|
-
* Copyright 2017 Google LLC
|
|
834
|
-
*
|
|
835
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
836
|
-
* you may not use this file except in compliance with the License.
|
|
837
|
-
* You may obtain a copy of the License at
|
|
838
|
-
*
|
|
839
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
840
|
-
*
|
|
841
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
842
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
843
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
844
|
-
* See the License for the specific language governing permissions and
|
|
845
|
-
* limitations under the License.
|
|
846
|
-
*/const N9={"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 rg("messaging","Messaging",N9);/**
|
|
847
|
-
* @license
|
|
848
|
-
* Copyright 2019 Google LLC
|
|
849
|
-
*
|
|
850
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
851
|
-
* you may not use this file except in compliance with the License.
|
|
852
|
-
* You may obtain a copy of the License at
|
|
853
|
-
*
|
|
854
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
855
|
-
*
|
|
856
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
857
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
858
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
859
|
-
* See the License for the specific language governing permissions and
|
|
860
|
-
* limitations under the License.
|
|
861
|
-
*/async function j9(e,t){const n=await u0(e),r=c_(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(l0(e.appConfig),i)).json()}catch(s){throw Bi.create("token-subscribe-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Bi.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw Bi.create("token-subscribe-no-token");return o.token}async function B9(e,t){const n=await u0(e),r=c_(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${l0(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw Bi.create("token-update-failed",{errorInfo:s==null?void 0:s.toString()})}if(o.error){const s=o.error.message;throw Bi.create("token-update-failed",{errorInfo:s})}if(!o.token)throw Bi.create("token-update-no-token");return o.token}async function $9(e,t){const r={method:"DELETE",headers:await u0(e)};try{const o=await(await fetch(`${l0(e.appConfig)}/${t}`,r)).json();if(o.error){const s=o.error.message;throw Bi.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw Bi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function l0({projectId:e}){return`${k9}/projects/${e}/registrations`}async function u0({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function c_({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==a_&&(i.web.applicationPubKey=r),i}/**
|
|
862
|
-
* @license
|
|
863
|
-
* Copyright 2019 Google LLC
|
|
864
|
-
*
|
|
865
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
866
|
-
* you may not use this file except in compliance with the License.
|
|
867
|
-
* You may obtain a copy of the License at
|
|
868
|
-
*
|
|
869
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
870
|
-
*
|
|
871
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
872
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
873
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
874
|
-
* See the License for the specific language governing permissions and
|
|
875
|
-
* limitations under the License.
|
|
876
|
-
*/const V9=7*24*60*60*1e3;async function H9(e){const t=await W9(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:kl(t.getKey("auth")),p256dh:kl(t.getKey("p256dh"))},r=await F9(e.firebaseDependencies);if(r){if(z9(r.subscriptionOptions,n))return Date.now()>=r.createTime+V9?U9(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await $9(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return E1(e.firebaseDependencies,n)}else return E1(e.firebaseDependencies,n)}async function U9(e,t){try{const n=await B9(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await s0(e.firebaseDependencies,r),n}catch(n){throw n}}async function E1(e,t){const r={token:await j9(e,t),createTime:Date.now(),subscriptionOptions:t};return await s0(e,r),r.token}async function W9(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:P9(t)})}function z9(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}/**
|
|
877
|
-
* @license
|
|
878
|
-
* Copyright 2020 Google LLC
|
|
879
|
-
*
|
|
880
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
881
|
-
* you may not use this file except in compliance with the License.
|
|
882
|
-
* You may obtain a copy of the License at
|
|
883
|
-
*
|
|
884
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
885
|
-
*
|
|
886
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
887
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
888
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
889
|
-
* See the License for the specific language governing permissions and
|
|
890
|
-
* limitations under the License.
|
|
891
|
-
*/function k1(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return Y9(t,e),G9(t,e),q9(t,e),t}function Y9(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const i=t.notification.image;i&&(e.notification.image=i);const o=t.notification.icon;o&&(e.notification.icon=o)}function G9(e,t){t.data&&(e.data=t.data)}function q9(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};const l=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;l&&(e.fcmOptions.link=l);const c=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}/**
|
|
892
|
-
* @license
|
|
893
|
-
* Copyright 2019 Google LLC
|
|
894
|
-
*
|
|
895
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
896
|
-
* you may not use this file except in compliance with the License.
|
|
897
|
-
* You may obtain a copy of the License at
|
|
898
|
-
*
|
|
899
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
900
|
-
*
|
|
901
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
902
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
903
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
904
|
-
* See the License for the specific language governing permissions and
|
|
905
|
-
* limitations under the License.
|
|
906
|
-
*/function X9(e){return typeof e=="object"&&!!e&&s_ in e}/**
|
|
907
|
-
* @license
|
|
908
|
-
* Copyright 2019 Google LLC
|
|
909
|
-
*
|
|
910
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
911
|
-
* you may not use this file except in compliance with the License.
|
|
912
|
-
* You may obtain a copy of the License at
|
|
913
|
-
*
|
|
914
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
915
|
-
*
|
|
916
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
917
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
918
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
919
|
-
* See the License for the specific language governing permissions and
|
|
920
|
-
* limitations under the License.
|
|
921
|
-
*/K9("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function K9(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}/**
|
|
922
|
-
* @license
|
|
923
|
-
* Copyright 2019 Google LLC
|
|
924
|
-
*
|
|
925
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
926
|
-
* you may not use this file except in compliance with the License.
|
|
927
|
-
* You may obtain a copy of the License at
|
|
928
|
-
*
|
|
929
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
930
|
-
*
|
|
931
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
932
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
933
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
934
|
-
* See the License for the specific language governing permissions and
|
|
935
|
-
* limitations under the License.
|
|
936
|
-
*/function Z9(e){if(!e||!e.options)throw jv("App Configuration Object");if(!e.name)throw jv("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const r of t)if(!n[r])throw jv(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function jv(e){return Bi.create("missing-app-config-values",{valueName:e})}/**
|
|
937
|
-
* @license
|
|
938
|
-
* Copyright 2020 Google LLC
|
|
939
|
-
*
|
|
940
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
941
|
-
* you may not use this file except in compliance with the License.
|
|
942
|
-
* You may obtain a copy of the License at
|
|
943
|
-
*
|
|
944
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
945
|
-
*
|
|
946
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
947
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
948
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
949
|
-
* See the License for the specific language governing permissions and
|
|
950
|
-
* limitations under the License.
|
|
951
|
-
*/class J9{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=Z9(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
|
|
952
|
-
* @license
|
|
953
|
-
* Copyright 2020 Google LLC
|
|
954
|
-
*
|
|
955
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
956
|
-
* you may not use this file except in compliance with the License.
|
|
957
|
-
* You may obtain a copy of the License at
|
|
958
|
-
*
|
|
959
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
960
|
-
*
|
|
961
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
962
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
963
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
964
|
-
* See the License for the specific language governing permissions and
|
|
965
|
-
* limitations under the License.
|
|
966
|
-
*/async function Q9(e){try{e.swRegistration=await navigator.serviceWorker.register(C9,{scope:E9}),e.swRegistration.update().catch(()=>{})}catch(t){throw Bi.create("failed-service-worker-registration",{browserErrorMessage:t==null?void 0:t.message})}}/**
|
|
967
|
-
* @license
|
|
968
|
-
* Copyright 2020 Google LLC
|
|
969
|
-
*
|
|
970
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
971
|
-
* you may not use this file except in compliance with the License.
|
|
972
|
-
* You may obtain a copy of the License at
|
|
973
|
-
*
|
|
974
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
975
|
-
*
|
|
976
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
977
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
978
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
979
|
-
* See the License for the specific language governing permissions and
|
|
980
|
-
* limitations under the License.
|
|
981
|
-
*/async function eY(e,t){if(!t&&!e.swRegistration&&await Q9(e),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw Bi.create("invalid-sw-registration");e.swRegistration=t}}/**
|
|
982
|
-
* @license
|
|
983
|
-
* Copyright 2020 Google LLC
|
|
984
|
-
*
|
|
985
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
986
|
-
* you may not use this file except in compliance with the License.
|
|
987
|
-
* You may obtain a copy of the License at
|
|
988
|
-
*
|
|
989
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
990
|
-
*
|
|
991
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
992
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
993
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
994
|
-
* See the License for the specific language governing permissions and
|
|
995
|
-
* limitations under the License.
|
|
996
|
-
*/async function tY(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=a_)}/**
|
|
997
|
-
* @license
|
|
998
|
-
* Copyright 2020 Google LLC
|
|
999
|
-
*
|
|
1000
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1001
|
-
* you may not use this file except in compliance with the License.
|
|
1002
|
-
* You may obtain a copy of the License at
|
|
1003
|
-
*
|
|
1004
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1005
|
-
*
|
|
1006
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1007
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1008
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1009
|
-
* See the License for the specific language governing permissions and
|
|
1010
|
-
* limitations under the License.
|
|
1011
|
-
*/async function f_(e,t){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 tY(e,t==null?void 0:t.vapidKey),await eY(e,t==null?void 0:t.serviceWorkerRegistration),H9(e)}/**
|
|
1012
|
-
* @license
|
|
1013
|
-
* Copyright 2019 Google LLC
|
|
1014
|
-
*
|
|
1015
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1016
|
-
* you may not use this file except in compliance with the License.
|
|
1017
|
-
* You may obtain a copy of the License at
|
|
1018
|
-
*
|
|
1019
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1020
|
-
*
|
|
1021
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1022
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1023
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1024
|
-
* See the License for the specific language governing permissions and
|
|
1025
|
-
* limitations under the License.
|
|
1026
|
-
*/async function nY(e,t,n){const r=rY(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[s_],message_name:n[O9],message_time:n[_9],message_device_time:Math.floor(Date.now()/1e3)})}function rY(e){switch(e){case Vd.NOTIFICATION_CLICKED:return"notification_open";case Vd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
|
|
1027
|
-
* @license
|
|
1028
|
-
* Copyright 2017 Google LLC
|
|
1029
|
-
*
|
|
1030
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1031
|
-
* you may not use this file except in compliance with the License.
|
|
1032
|
-
* You may obtain a copy of the License at
|
|
1033
|
-
*
|
|
1034
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1035
|
-
*
|
|
1036
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1037
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1038
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1039
|
-
* See the License for the specific language governing permissions and
|
|
1040
|
-
* limitations under the License.
|
|
1041
|
-
*/async function iY(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Vd.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(k1(n)):e.onMessageHandler.next(k1(n)));const r=n.data;X9(r)&&r[D9]==="1"&&await nY(e,n.messageType,r)}const O1="@firebase/messaging",_1="0.12.12";/**
|
|
1042
|
-
* @license
|
|
1043
|
-
* Copyright 2020 Google LLC
|
|
1044
|
-
*
|
|
1045
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1046
|
-
* you may not use this file except in compliance with the License.
|
|
1047
|
-
* You may obtain a copy of the License at
|
|
1048
|
-
*
|
|
1049
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1050
|
-
*
|
|
1051
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1052
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1053
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1054
|
-
* See the License for the specific language governing permissions and
|
|
1055
|
-
* limitations under the License.
|
|
1056
|
-
*/const oY=e=>{const t=new J9(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>iY(t,n)),t},aY=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:r=>f_(t,r)}};function sY(){Lc(new Au("messaging",oY,"PUBLIC")),Lc(new Au("messaging-internal",aY,"PRIVATE")),_u(O1,_1),_u(O1,_1,"esm2017")}/**
|
|
1057
|
-
* @license
|
|
1058
|
-
* Copyright 2020 Google LLC
|
|
1059
|
-
*
|
|
1060
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1061
|
-
* you may not use this file except in compliance with the License.
|
|
1062
|
-
* You may obtain a copy of the License at
|
|
1063
|
-
*
|
|
1064
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1065
|
-
*
|
|
1066
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1067
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1068
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1069
|
-
* See the License for the specific language governing permissions and
|
|
1070
|
-
* limitations under the License.
|
|
1071
|
-
*/async function lY(){try{await FO()}catch{return!1}return typeof window<"u"&&LO()&&k6()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
|
|
1072
|
-
* @license
|
|
1073
|
-
* Copyright 2020 Google LLC
|
|
1074
|
-
*
|
|
1075
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1076
|
-
* you may not use this file except in compliance with the License.
|
|
1077
|
-
* You may obtain a copy of the License at
|
|
1078
|
-
*
|
|
1079
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1080
|
-
*
|
|
1081
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1082
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1083
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1084
|
-
* See the License for the specific language governing permissions and
|
|
1085
|
-
* limitations under the License.
|
|
1086
|
-
*/function uY(e,t){if(!navigator)throw Bi.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}/**
|
|
1087
|
-
* @license
|
|
1088
|
-
* Copyright 2017 Google LLC
|
|
1089
|
-
*
|
|
1090
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1091
|
-
* you may not use this file except in compliance with the License.
|
|
1092
|
-
* You may obtain a copy of the License at
|
|
1093
|
-
*
|
|
1094
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1095
|
-
*
|
|
1096
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1097
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1098
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1099
|
-
* See the License for the specific language governing permissions and
|
|
1100
|
-
* limitations under the License.
|
|
1101
|
-
*/function cY(e=O8()){return lY().then(t=>{if(!t)throw Bi.create("unsupported-browser")},t=>{throw Bi.create("indexed-db-unsupported")}),n0(e0(e),"messaging").getImmediate()}async function fY(e,t){return e=e0(e),f_(e,t)}function dY(e,t){return e=e0(e),uY(e,t)}sY();exports.AuthContext=Ym;exports.AuthProvider=BA;exports.CustomOpenList=V1;exports.CustomOpenListProvider=CA;exports.DateRangePicker=g6;exports.ERROR_MESSAGE=N1;exports.FavoriteMenu=U4;exports.GlobalMenu=r6;exports.IconComponent=vO;exports.InfiniteLoader=f6;exports.Language=qm;exports.LogoutConfirmModal=D1;exports.PropTypes=Oa;exports.Q=f2;exports.SaasThemeProvider=FA;exports.StyleWrapper=Xm;exports.TranslationProvider=zM;exports._=o6;exports._assertThisInitialized=Dl;exports._extends=Ff;exports._extends$1=U5;exports._inheritsLoose=fO;exports._objectWithoutPropertiesLoose=Gm;exports.activeStyles=Zy;exports.axiosInstance=as;exports.clsx=Ol;exports.color=Gr;exports.commonjsGlobal=Ci;exports.createCustomTheme=z1;exports.getAugmentedNamespace=nM;exports.getMessagingInWindow=cY;exports.getToken=fY;exports.handleErrorAxios=$1;exports.initializeApp=BO;exports.lodashExports=_O;exports.login=j1;exports.logout=B1;exports.notify=m2;exports.objectWithoutPropertiesLoose=tM;exports.onMessage=dY;exports.pushError=Wd;exports.pushSuccess=Qm;exports.pushWarning=v2;exports.responseInterceptor=TA;exports.search=VA;exports.setFavicon=Y1;exports.styles=i6;exports.translate=UM;exports.translationConfig=HM;exports.updateFavoriteItems=Qy;exports.useAuth=$A;exports.useCustomTranslation=VM;exports.useTheme=LA;exports.useTranslation=tT;exports.useTranslation$1=WM;
|