Addded bew Web Gui:
1. Monitroings overview 2. Monitoringfiles 3. Download files
This commit is contained in:
1 parent
e124141d0b
commit
edf032152c
7 files changed
+536
-530
No files matched your search
Vendored
+75
-75
@@ -1,4 +1,4 @@
|
||||
var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa)=>{function PB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var l_={exports:{}},Dv={},s_={exports:{}},ht={};/**
|
||||
var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa)=>{function PB(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Go(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var s_={exports:{}},Dv={},u_={exports:{}},ht={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
@@ -6,7 +6,7 @@ var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Ap=Symbol.for("react.element"),kB=Symbol.for("react.portal"),$B=Symbol.for("react.fragment"),IB=Symbol.for("react.strict_mode"),OB=Symbol.for("react.profiler"),MB=Symbol.for("react.provider"),RB=Symbol.for("react.context"),TB=Symbol.for("react.forward_ref"),_B=Symbol.for("react.suspense"),FB=Symbol.for("react.memo"),AB=Symbol.for("react.lazy"),r$=Symbol.iterator;function LB(e){return e===null||typeof e!="object"?null:(e=r$&&e[r$]||e["@@iterator"],typeof e=="function"?e:null)}var u_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},c_=Object.assign,d_={};function ld(e,t,n){this.props=e,this.context=t,this.refs=d_,this.updater=n||u_}ld.prototype.isReactComponent={};ld.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function f_(){}f_.prototype=ld.prototype;function $C(e,t,n){this.props=e,this.context=t,this.refs=d_,this.updater=n||u_}var IC=$C.prototype=new f_;IC.constructor=$C;c_(IC,ld.prototype);IC.isPureReactComponent=!0;var o$=Array.isArray,p_=Object.prototype.hasOwnProperty,OC={current:null},m_={key:!0,ref:!0,__self:!0,__source:!0};function h_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)p_.call(t,r)&&!m_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ap,type:e,key:i,ref:a,props:o,_owner:OC.current}}function DB(e,t){return{$$typeof:Ap,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function MC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ap}function NB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var i$=/\/+/g;function nb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NB(""+e.key):t.toString(36)}function Nh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ap:case kB:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+nb(a,0):r,o$(o)?(n="",e!=null&&(n=e.replace(i$,"$&/")+"/"),Nh(o,t,n,"",function(u){return u})):o!=null&&(MC(o)&&(o=DB(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(i$,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",o$(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+nb(i,l);a+=Nh(i,t,n,s,o)}else if(s=LB(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+nb(i,l++),a+=Nh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Lm(e,t,n){if(e==null)return e;var r=[],o=0;return Nh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function jB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Or={current:null},jh={transition:null},zB={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:jh,ReactCurrentOwner:OC};ht.Children={map:Lm,forEach:function(e,t,n){Lm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lm(e,function(){t++}),t},toArray:function(e){return Lm(e,function(t){return t})||[]},only:function(e){if(!MC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=ld;ht.Fragment=$B;ht.Profiler=OB;ht.PureComponent=$C;ht.StrictMode=IB;ht.Suspense=_B;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zB;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=c_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=OC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)p_.call(t,s)&&!m_.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ap,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:RB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MB,_conLine truncated
|
||||
*/var Ap=Symbol.for("react.element"),kB=Symbol.for("react.portal"),$B=Symbol.for("react.fragment"),IB=Symbol.for("react.strict_mode"),OB=Symbol.for("react.profiler"),MB=Symbol.for("react.provider"),RB=Symbol.for("react.context"),TB=Symbol.for("react.forward_ref"),_B=Symbol.for("react.suspense"),FB=Symbol.for("react.memo"),AB=Symbol.for("react.lazy"),o$=Symbol.iterator;function LB(e){return e===null||typeof e!="object"?null:(e=o$&&e[o$]||e["@@iterator"],typeof e=="function"?e:null)}var c_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d_=Object.assign,f_={};function ld(e,t,n){this.props=e,this.context=t,this.refs=f_,this.updater=n||c_}ld.prototype.isReactComponent={};ld.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p_(){}p_.prototype=ld.prototype;function $C(e,t,n){this.props=e,this.context=t,this.refs=f_,this.updater=n||c_}var IC=$C.prototype=new p_;IC.constructor=$C;d_(IC,ld.prototype);IC.isPureReactComponent=!0;var i$=Array.isArray,m_=Object.prototype.hasOwnProperty,OC={current:null},h_={key:!0,ref:!0,__self:!0,__source:!0};function g_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)m_.call(t,r)&&!h_.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Ap,type:e,key:i,ref:a,props:o,_owner:OC.current}}function DB(e,t){return{$$typeof:Ap,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function MC(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ap}function NB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var a$=/\/+/g;function nb(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NB(""+e.key):t.toString(36)}function Nh(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ap:case kB:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+nb(a,0):r,i$(o)?(n="",e!=null&&(n=e.replace(a$,"$&/")+"/"),Nh(o,t,n,"",function(u){return u})):o!=null&&(MC(o)&&(o=DB(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(a$,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",i$(e))for(var l=0;l<e.length;l++){i=e[l];var s=r+nb(i,l);a+=Nh(i,t,n,s,o)}else if(s=LB(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=r+nb(i,l++),a+=Nh(i,t,n,s,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Lm(e,t,n){if(e==null)return e;var r=[],o=0;return Nh(e,r,"","",function(i){return t.call(n,i,o++)}),r}function jB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Or={current:null},jh={transition:null},zB={ReactCurrentDispatcher:Or,ReactCurrentBatchConfig:jh,ReactCurrentOwner:OC};ht.Children={map:Lm,forEach:function(e,t,n){Lm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lm(e,function(){t++}),t},toArray:function(e){return Lm(e,function(t){return t})||[]},only:function(e){if(!MC(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ht.Component=ld;ht.Fragment=$B;ht.Profiler=OB;ht.PureComponent=$C;ht.StrictMode=IB;ht.Suspense=_B;ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zB;ht.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=d_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=OC.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)m_.call(t,s)&&!h_.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ap,type:e.type,key:o,ref:i,props:r,_owner:a}};ht.createContext=function(e){return e={$$typeof:RB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MB,_conLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
@@ -14,7 +14,7 @@ var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var BB=v,HB=Symbol.for("react.element"),VB=Symbol.for("react.fragment"),UB=Object.prototype.hasOwnProperty,WB=BB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GB={key:!0,ref:!0,__self:!0,__source:!0};function g_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)UB.call(t,r)&&!GB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:HB,type:e,key:i,ref:a,props:o,_owner:WB.current}}Dv.Fragment=VB;Dv.jsx=g_;Dv.jsxs=g_;l_.exports=Dv;var N=l_.exports,v_={exports:{}},mo={},y_={exports:{}},b_={};/**
|
||||
*/var BB=v,HB=Symbol.for("react.element"),VB=Symbol.for("react.fragment"),UB=Object.prototype.hasOwnProperty,WB=BB.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GB={key:!0,ref:!0,__self:!0,__source:!0};function v_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)UB.call(t,r)&&!GB.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:HB,type:e,key:i,ref:a,props:o,_owner:WB.current}}Dv.Fragment=VB;Dv.jsx=v_;Dv.jsxs=v_;s_.exports=Dv;var N=s_.exports,y_={exports:{}},mo={},b_={exports:{}},x_={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
@@ -22,7 +22,7 @@ var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/(function(e){function t(L,z){var B=L.length;L.push(z);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,z))L[A]=z,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],B=L.pop();if(B!==z){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var U=2*(A+1)-1,G=L[U],Y=U+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[U]=B,A=U);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return z}function o(L,z){var B=L.sortIndex-z.sortIndex;return B!==0?B:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,j(P);else{var z=n(u);z!==null&&$(w,z.startTime-L)}}function P(L,z){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(z),d=n(s);d!==null&&(!(d.expirationTime>z)||L&&!R());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(z)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var U=n(u);U!==null&&$(w,U.startTime-z),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,M=5,O=-1;function R(){return!(e.unstable_now()-O<M)}function _(){if(E!==null){var L=e.unstable_now();O=L;var z=!0;try{z=E(!0,L)}finally{z?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function j(L){E=L,C||(C=!0,D())}function $(L,z){S=y(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,j(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var B=f;f=z;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return z()}finally{f=B}},e.unstable_scheduleCallback=function(L,z,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:z,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,$(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,j(P))),L},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(L){var z=f;return function(){var B=f;f=z;try{return L.apply(this,arguments)}finally{f=B}}}})(b_);y_.exports=b_;var qB=y_.exports;/**
|
||||
*/(function(e){function t(L,z){var B=L.length;L.push(z);e:for(;0<B;){var A=B-1>>>1,H=L[A];if(0<o(H,z))L[A]=z,L[B]=H,B=A;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],B=L.pop();if(B!==z){L[0]=B;e:for(var A=0,H=L.length,q=H>>>1;A<q;){var U=2*(A+1)-1,G=L[U],Y=U+1,re=L[Y];if(0>o(G,B))Y<H&&0>o(re,G)?(L[A]=re,L[Y]=B,A=Y):(L[A]=G,L[U]=B,A=U);else if(Y<H&&0>o(re,B))L[A]=re,L[Y]=B,A=Y;else break e}}return z}function o(L,z){var B=L.sortIndex-z.sortIndex;return B!==0?B:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(L){if(h=!1,x(L),!p)if(n(s)!==null)p=!0,j(P);else{var z=n(u);z!==null&&$(w,z.startTime-L)}}function P(L,z){p=!1,h&&(h=!1,b(S),S=-1),m=!0;var B=f;try{for(x(z),d=n(s);d!==null&&(!(d.expirationTime>z)||L&&!R());){var A=d.callback;if(typeof A=="function"){d.callback=null,f=d.priorityLevel;var H=A(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),x(z)}else r(s);d=n(s)}if(d!==null)var q=!0;else{var U=n(u);U!==null&&$(w,U.startTime-z),q=!1}return q}finally{d=null,f=B,m=!1}}var C=!1,E=null,S=-1,M=5,O=-1;function R(){return!(e.unstable_now()-O<M)}function _(){if(E!==null){var L=e.unstable_now();O=L;var z=!0;try{z=E(!0,L)}finally{z?D():(C=!1,E=null)}}else C=!1}var D;if(typeof g=="function")D=function(){g(_)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,F=T.port2;T.port1.onmessage=_,D=function(){F.postMessage(null)}}else D=function(){y(_,0)};function j(L){E=L,C||(C=!0,D())}function $(L,z){S=y(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){p||m||(p=!0,j(P))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(L){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var B=f;f=z;try{return L()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var B=f;f=L;try{return z()}finally{f=B}},e.unstable_scheduleCallback=function(L,z,B){var A=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?A+B:A):B=A,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,L={id:c++,callback:z,priorityLevel:L,startTime:B,expirationTime:H,sortIndex:-1},B>A?(L.sortIndex=B,t(u,L),n(s)===null&&L===n(u)&&(h?(b(S),S=-1):h=!0,$(w,B-A))):(L.sortIndex=H,t(s,L),p||m||(p=!0,j(P))),L},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(L){var z=f;return function(){var B=f;f=z;try{return L.apply(this,arguments)}finally{f=B}}}})(x_);b_.exports=x_;var qB=b_.exports;/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
@@ -30,14 +30,14 @@ var EB=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var aje=EB((_a,Fa
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var x_=v,co=qB;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var w_=new Set,Kf={};function gu(e,t){Ac(e,t),Ac(e+"Capture",t)}function Ac(e,t){for(Kf[e]=t,e=0;e<t.length;e++)w_.add(t[e])}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ux=Object.prototype.hasOwnProperty,KB=/^[: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]*$/,a$={},l$={};function QB(e){return ux.call(l$,e)?!0:ux.call(a$,e)?!1:KB.test(e)?l$[e]=!0:(a$[e]=!0,!1)}function YB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XB(e,t,n,r){if(t===null||typeof t>"u"||YB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new Mr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new Mr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Mr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new Mr(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){rr[e]=new Mr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Mr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Mr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Mr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Mr(e,5,!1,e.toLowerCase(),null,!1,!1)});var RC=/[\-:]([a-z])/g;function TC(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 t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Mr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!0,!0)});function _C(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
|
||||
*/var w_=v,co=qB;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C_=new Set,Kf={};function gu(e,t){Ac(e,t),Ac(e+"Capture",t)}function Ac(e,t){for(Kf[e]=t,e=0;e<t.length;e++)C_.add(t[e])}var Ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ux=Object.prototype.hasOwnProperty,KB=/^[: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]*$/,l$={},s$={};function QB(e){return ux.call(s$,e)?!0:ux.call(l$,e)?!1:KB.test(e)?s$[e]=!0:(l$[e]=!0,!1)}function YB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function XB(e,t,n,r){if(t===null||typeof t>"u"||YB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mr(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var rr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rr[e]=new Mr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rr[t]=new Mr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rr[e]=new Mr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rr[e]=new Mr(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){rr[e]=new Mr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rr[e]=new Mr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rr[e]=new Mr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rr[e]=new Mr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rr[e]=new Mr(e,5,!1,e.toLowerCase(),null,!1,!1)});var RC=/[\-:]([a-z])/g;function TC(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 t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(RC,TC);rr[t]=new Mr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!1,!1)});rr.xlinkHref=new Mr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rr[e]=new Mr(e,1,!1,e.toLowerCase(),null,!0,!0)});function _C(e,t,n,r){var o=rr.hasOwnProperty(t)?rr[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!==
Line truncated
|
||||
`+rb+e}var ob=!1;function ib(e,t){if(!e||ob)return"";ob=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
||||
`),i=r.stack.split(`
|
||||
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var s=`
|
||||
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ob=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pf(e):""}function ZB(e){switch(e.tag){case 5:return pf(e.type);case 16:return pf("Lazy");case 13:return pf("Suspense");case 19:return pf("SuspenseList");case 0:case 2:case 15:return e=ib(e.type,!1),e;case 11:return e=ib(e.type.render,!1),e;case 1:return e=ib(e.type,!0),e;default:return""}}function px(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 oc:return"Fragment";case rc:return"Portal";case cx:return"Profiler";case FC:return"StrictMode";case dx:return"Suspense";case fx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S_:return(e.displayName||"Context")+".Consumer";case C_:return(e._context.displayName||"Context")+".Provider";case AC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LC:return t=e.displayName||null,t!==null?t:px(e.type)||"Memo";case wl:t=e._payload,e=e._init;try{return px(e(t))}catch{}}return null}function JB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return px(t);case 8:return t===FC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e6(e){var t=P_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nm(e){e._valueTracker||(e._valueTracker=e6(e))}function k_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=P_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mx(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function $_(e,t){t=t.checked,t!=null&&_C(e,"checked",t,!1)}function hx(e,t){$_(e,t);var n=Jl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gx(e,t.type,n):t.hasOwnProperty("defaultValue")&&gx(e,t.type,Jl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function c$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gx(e,t,n){(t!=="number"||bg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mf=Array.isArray;function xc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function vx(e,t){if(t.dan
Line truncated
|
||||
`).replace(cH,"")}function Gm(e,t,n){if(t=_$(t),_$(e)!==t&&n)throw Error(Me(425))}function $g(){}var Mx=null,Rx=null;function Tx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _x=typeof setTimeout=="function"?setTimeout:void 0,dH=typeof clearTimeout=="function"?clearTimeout:void 0,F$=typeof Promise=="function"?Promise:void 0,fH=typeof queueMicrotask=="function"?queueMicrotask:typeof F$<"u"?function(e){return F$.resolve(null).then(e).catch(pH)}:_x;function pH(e){setTimeout(function(){throw e})}function yb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Jf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Jf(t)}function Vl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function A$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ud=Math.random().toString(36).slice(2),ji="__reactFiber$"+ud,op="__reactProps$"+ud,Ha="__reactContainer$"+ud,Fx="__reactEvents$"+ud,mH="__reactListeners$"+ud,hH="__reactHandles$"+ud;function Fs(e){var t=e[ji];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ha]||n[ji]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=A$(e);e!==null;){if(n=e[ji])return n;e=A$(e)}return t}e=n,n=e.parentNode}return null}function Np(e){return e=e[ji]||e[Ha],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function Hv(e){return e[op]||null}var Ax=[],uc=-1;function as(e){return{current:e}}function Zt(e){0>uc||(e.current=Ax[uc],Ax[uc]=null,uc--)}function Ut(e,t){uc++,Ax[uc]=e.current,e.current=t}var es={},fr=as(es),jr=as(!1),Js=es;function Lc(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zr(e){return e=e.childContextTypes,e!=null}function Ig(){Zt(jr),Zt(fr)}function L$(e,t,n){if(fr.current!==es)throw Error(Me(168));Ut(fr,t),Ut(jr,n)}function hF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,JB(e)||"Unknown",o));return cn({},n,r)}function Og(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Js=fr.current,Ut(fr,e),Ut(jr,jr.current),!0}function D$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=hF(e,t,Js),r.__reactInternalMemoizedMergedChildContext=e,Zt(jr),Zt(fr),Ut(fr,e)):Zt(jr),Ut(jr,n)}var $a=null,Vv=!1,bb=!1;function gF(e){$a===null?$a=[e]:$a.push(e)}function gH(e){Vv=!0,gF(e)}function ls(){if(!bb&&$a!==null){bb=!0;var e=0,t=Ft;try{var n=$a;for(Ft=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$a=null,Vv=!1}catch(o){throw $a!==null&&($a=$a.slice(e+1)),B_(NC,ls),o}finally{Ft=t,bb=!1}}return null}var cc=[],dc=0,Mg=null,Rg=0,Oo=[],Mo=0,eu=null,Oa=1,Ma="";function Ss(e,t){cc[dc++]=Rg,cc[dc++]=Mg,Mg=e,Rg=t}function vF(e,t,n){Oo[Mo++]=Oa,Oo[Mo++]=Ma,Oo[Mo++]=eu,eu=e;var r=Oa;e=Ma;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Oa=1<<32-hi(t)+o|n<<o|r,Ma=i+e}else Oa=1<<i|n<<o|r,Ma=e}function qC(e){e.return!==null&&(Ss(e,1),vF(e,1,0))}function KC(e){for(;e===Mg;)Mg=cc[--dc],cc[dc]=null,Rg=cc[--dc],cc[dc]=null;for(;e===eu;)eu=Oo[--Mo],Oo[Mo]=null,Ma=Oo[--Mo],Oo[Mo]=null,Oa=Oo[--Mo],Oo[Mo]=null}var lo=null,ao=null,on=!1,ci=null;function yF(e,t){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function N$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lo=e,ao=Vl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lo=e,ao=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=eu!==null?{id:Oa,overflow:Ma}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lo=e,ao=null,!0):!1;default:return!1}}function Lx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dx(e){if(on){var t=ao;if(t){var n=t;if(!N$(e,t)){if(Lx(e))throw Error(Me(418));t=Vl(n.nextSibling);var r=lo;t&&N$(e,t)?yF(r,n):(e.flags=e.flags&-4097|2,on=!1,lo=e)}}else{if(Lx(e))throw Error(Me(418));e.flags=e.flags&-4097|2,on=!1,lo=e}}}function j$(e){
Line truncated
|
||||
`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ob=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pf(e):""}function ZB(e){switch(e.tag){case 5:return pf(e.type);case 16:return pf("Lazy");case 13:return pf("Suspense");case 19:return pf("SuspenseList");case 0:case 2:case 15:return e=ib(e.type,!1),e;case 11:return e=ib(e.type.render,!1),e;case 1:return e=ib(e.type,!0),e;default:return""}}function px(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 oc:return"Fragment";case rc:return"Portal";case cx:return"Profiler";case FC:return"StrictMode";case dx:return"Suspense";case fx:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E_:return(e.displayName||"Context")+".Consumer";case S_:return(e._context.displayName||"Context")+".Provider";case AC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LC:return t=e.displayName||null,t!==null?t:px(e.type)||"Memo";case wl:t=e._payload,e=e._init;try{return px(e(t))}catch{}}return null}function JB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return px(t);case 8:return t===FC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function k_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e6(e){var t=k_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nm(e){e._valueTracker||(e._valueTracker=e6(e))}function $_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=k_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mx(e,t){var n=t.checked;return cn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function c$(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function I_(e,t){t=t.checked,t!=null&&_C(e,"checked",t,!1)}function hx(e,t){I_(e,t);var n=Jl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gx(e,t.type,n):t.hasOwnProperty("defaultValue")&&gx(e,t.type,Jl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d$(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gx(e,t,n){(t!=="number"||bg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mf=Array.isArray;function xc(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jl(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function vx(e,t){if(t.dan
Line truncated
|
||||
`).replace(cH,"")}function Gm(e,t,n){if(t=F$(t),F$(e)!==t&&n)throw Error(Me(425))}function $g(){}var Mx=null,Rx=null;function Tx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _x=typeof setTimeout=="function"?setTimeout:void 0,dH=typeof clearTimeout=="function"?clearTimeout:void 0,A$=typeof Promise=="function"?Promise:void 0,fH=typeof queueMicrotask=="function"?queueMicrotask:typeof A$<"u"?function(e){return A$.resolve(null).then(e).catch(pH)}:_x;function pH(e){setTimeout(function(){throw e})}function yb(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Jf(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Jf(t)}function Vl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function L$(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ud=Math.random().toString(36).slice(2),ji="__reactFiber$"+ud,op="__reactProps$"+ud,Ha="__reactContainer$"+ud,Fx="__reactEvents$"+ud,mH="__reactListeners$"+ud,hH="__reactHandles$"+ud;function Fs(e){var t=e[ji];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ha]||n[ji]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=L$(e);e!==null;){if(n=e[ji])return n;e=L$(e)}return t}e=n,n=e.parentNode}return null}function Np(e){return e=e[ji]||e[Ha],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Me(33))}function Hv(e){return e[op]||null}var Ax=[],uc=-1;function as(e){return{current:e}}function Zt(e){0>uc||(e.current=Ax[uc],Ax[uc]=null,uc--)}function Ut(e,t){uc++,Ax[uc]=e.current,e.current=t}var es={},fr=as(es),jr=as(!1),Js=es;function Lc(e,t){var n=e.type.contextTypes;if(!n)return es;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function zr(e){return e=e.childContextTypes,e!=null}function Ig(){Zt(jr),Zt(fr)}function D$(e,t,n){if(fr.current!==es)throw Error(Me(168));Ut(fr,t),Ut(jr,n)}function gF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Me(108,JB(e)||"Unknown",o));return cn({},n,r)}function Og(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||es,Js=fr.current,Ut(fr,e),Ut(jr,jr.current),!0}function N$(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=gF(e,t,Js),r.__reactInternalMemoizedMergedChildContext=e,Zt(jr),Zt(fr),Ut(fr,e)):Zt(jr),Ut(jr,n)}var $a=null,Vv=!1,bb=!1;function vF(e){$a===null?$a=[e]:$a.push(e)}function gH(e){Vv=!0,vF(e)}function ls(){if(!bb&&$a!==null){bb=!0;var e=0,t=Ft;try{var n=$a;for(Ft=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$a=null,Vv=!1}catch(o){throw $a!==null&&($a=$a.slice(e+1)),H_(NC,ls),o}finally{Ft=t,bb=!1}}return null}var cc=[],dc=0,Mg=null,Rg=0,Oo=[],Mo=0,eu=null,Oa=1,Ma="";function Ss(e,t){cc[dc++]=Rg,cc[dc++]=Mg,Mg=e,Rg=t}function yF(e,t,n){Oo[Mo++]=Oa,Oo[Mo++]=Ma,Oo[Mo++]=eu,eu=e;var r=Oa;e=Ma;var o=32-hi(r)-1;r&=~(1<<o),n+=1;var i=32-hi(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Oa=1<<32-hi(t)+o|n<<o|r,Ma=i+e}else Oa=1<<i|n<<o|r,Ma=e}function qC(e){e.return!==null&&(Ss(e,1),yF(e,1,0))}function KC(e){for(;e===Mg;)Mg=cc[--dc],cc[dc]=null,Rg=cc[--dc],cc[dc]=null;for(;e===eu;)eu=Oo[--Mo],Oo[Mo]=null,Ma=Oo[--Mo],Oo[Mo]=null,Oa=Oo[--Mo],Oo[Mo]=null}var lo=null,ao=null,on=!1,ci=null;function bF(e,t){var n=Fo(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function j$(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lo=e,ao=Vl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lo=e,ao=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=eu!==null?{id:Oa,overflow:Ma}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,lo=e,ao=null,!0):!1;default:return!1}}function Lx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dx(e){if(on){var t=ao;if(t){var n=t;if(!j$(e,t)){if(Lx(e))throw Error(Me(418));t=Vl(n.nextSibling);var r=lo;t&&j$(e,t)?bF(r,n):(e.flags=e.flags&-4097|2,on=!1,lo=e)}}else{if(Lx(e))throw Error(Me(418));e.flags=e.flags&-4097|2,on=!1,lo=e}}}function z$(e){
Line truncated
|
||||
Error generating stack: `+i.message+`
|
||||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Eb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PH=typeof WeakMap=="function"?WeakMap:Map;function GF(e,t,n){n=Aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jg||(jg=!0,Xx=r),Bx(e,t)},n}function qF(e,t,n){n=Aa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bx(e,t),typeof r!="function"&&(Wl===null?Wl=new Set([this]):Wl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function q$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PH;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jH.bind(null,e,t,n),t.then(e,e))}function K$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Q$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Aa(-1,1),t.tag=2,Ul(n,t,1))),n.lanes|=1),e)}var kH=Xa.ReactCurrentOwner,Nr=!1;function xr(e,t,n,r){t.child=e===null?PF(t,null,n,r):Nc(t,e.child,n,r)}function Y$(e,t,n,r,o){n=n.render;var i=t.ref;return Ec(t,o),r=iS(e,t,n,r,i,o),n=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&n&&qC(t),t.flags|=1,xr(e,t,r,o),t.child)}function X$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,KF(e,t,i,r,o)):(e=Qh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:tp,n(a,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,e=ql(i,r),e.ref=t.ref,e.return=t,t.child=e}function KF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(tp(i,r)&&e.ref===t.ref)if(Nr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Nr=!0);else return t.lanes=e.lanes,Ua(e,t,o)}return Hx(e,t,n,r,o)}function QF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(mc,eo),eo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ut(mc,eo),eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ut(mc,eo),eo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ut(mc,eo),eo|=r;return xr(e,t,o,n),t.child}function YF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hx(e,t,n,r,o){var i=zr(n)?Js:fr.current;return i=Lc(t,i),Ec(t,o),n=iS(e,t,n,r,i,o),r=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&r&&qC(t),t.flags|=1,xr(e,t,n,o),t.child)}function Z$(e,t,n,r,o){if(zr(n)){var i=!0;Og(t)}else i=!1;if(Ec(t,o),t.stateNode===null)Gh(e,t),SF(t,n,r),zx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=zr(n)?Js:fr.current,u=Lc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&V$(t,a,r,u),Cl=!1;var f=t.memoizedState;a.state=f,Fg(t,r,a,o),s=t.memoizedState,l!==r||f!==s||jr.current||Cl?(typeof c=="function"&&(jx(t,n,c,r),s=t.memoizedState),(l=Cl||H$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ai(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=zo(s):(s=zr(n)?Js:fr.current,s=Lc(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&V$(t,a,r,s),Cl=!1,f=t.memoizedState,a.state=f,Fg(t,r,a,o);var p=t.memoizedS
Line truncated
|
||||
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Eb(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var PH=typeof WeakMap=="function"?WeakMap:Map;function qF(e,t,n){n=Aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){jg||(jg=!0,Xx=r),Bx(e,t)},n}function KF(e,t,n){n=Aa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bx(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bx(e,t),typeof r!="function"&&(Wl===null?Wl=new Set([this]):Wl.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function K$(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new PH;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=jH.bind(null,e,t,n),t.then(e,e))}function Q$(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Y$(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Aa(-1,1),t.tag=2,Ul(n,t,1))),n.lanes|=1),e)}var kH=Xa.ReactCurrentOwner,Nr=!1;function xr(e,t,n,r){t.child=e===null?kF(t,null,n,r):Nc(t,e.child,n,r)}function X$(e,t,n,r,o){n=n.render;var i=t.ref;return Ec(t,o),r=iS(e,t,n,r,i,o),n=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&n&&qC(t),t.flags|=1,xr(e,t,r,o),t.child)}function Z$(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!gS(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,QF(e,t,i,r,o)):(e=Qh(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:tp,n(a,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,e=ql(i,r),e.ref=t.ref,e.return=t,t.child=e}function QF(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(tp(i,r)&&e.ref===t.ref)if(Nr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Nr=!0);else return t.lanes=e.lanes,Ua(e,t,o)}return Hx(e,t,n,r,o)}function YF(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(mc,eo),eo|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ut(mc,eo),eo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Ut(mc,eo),eo|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ut(mc,eo),eo|=r;return xr(e,t,o,n),t.child}function XF(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hx(e,t,n,r,o){var i=zr(n)?Js:fr.current;return i=Lc(t,i),Ec(t,o),n=iS(e,t,n,r,i,o),r=aS(),e!==null&&!Nr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o)):(on&&r&&qC(t),t.flags|=1,xr(e,t,n,o),t.child)}function J$(e,t,n,r,o){if(zr(n)){var i=!0;Og(t)}else i=!1;if(Ec(t,o),t.stateNode===null)Gh(e,t),EF(t,n,r),zx(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=zo(u):(u=zr(n)?Js:fr.current,u=Lc(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&U$(t,a,r,u),Cl=!1;var f=t.memoizedState;a.state=f,Fg(t,r,a,o),s=t.memoizedState,l!==r||f!==s||jr.current||Cl?(typeof c=="function"&&(jx(t,n,c,r),s=t.memoizedState),(l=Cl||V$(t,n,l,r,f,s,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,CF(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ai(t.type,l),a.props=u,d=t.pendingProps,f=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=zo(s):(s=zr(n)?Js:fr.current,s=Lc(t,s));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==d||f!==s)&&U$(t,a,r,s),Cl=!1,f=t.memoizedState,a.state=f,Fg(t,r,a,o);var p=t.memoizedS
Line truncated
|
||||
* @license React
|
||||
* use-sync-external-store-shim.production.min.js
|
||||
*
|
||||
@@ -45,7 +45,7 @@ Error generating stack: `+i.message+`
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Hc=v;function mV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hV=typeof Object.is=="function"?Object.is:mV,gV=Hc.useState,vV=Hc.useEffect,yV=Hc.useLayoutEffect,bV=Hc.useDebugValue;function xV(e,t){var n=t(),r=gV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return yV(function(){o.value=n,o.getSnapshot=t,Ib(o)&&i({inst:o})},[e,n,t]),vV(function(){return Ib(o)&&i({inst:o}),e(function(){Ib(o)&&i({inst:o})})},[e]),bV(n),n}function Ib(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hV(e,n)}catch{return!0}}function wV(e,t){return t()}var CV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wV:xV;TA.useSyncExternalStore=Hc.useSyncExternalStore!==void 0?Hc.useSyncExternalStore:CV;RA.exports=TA;var SV=RA.exports;const _A=SV.useSyncExternalStore,wI=v.createContext(void 0),FA=v.createContext(!1);function AA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=wI),window.ReactQueryClientContext):wI)}const oa=({context:e}={})=>{const t=v.useContext(AA(e,v.useContext(FA)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},EV=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=AA(n,r);return v.createElement(FA.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},LA=v.createContext(!1),PV=()=>v.useContext(LA);LA.Provider;function kV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $V=v.createContext(kV()),IV=()=>v.useContext($V);function DA(e,t){return typeof e=="function"?e(...t):!!e}const OV=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},MV=e=>{v.useEffect(()=>{e.clearReset()},[e])},RV=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&DA(n,[e.error,r]),TV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},_V=(e,t)=>e.isLoading&&e.isFetching&&!t,FV=(e,t,n)=>(e==null?void 0:e.suspense)&&_V(t,n),AV=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function NA(e,t){const n=oa({context:e.context}),r=PV(),o=IV(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=gn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=gn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=gn.batchCalls(i.onSettled)),TV(i),OV(i,o),MV(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(_A(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(gn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),FV(i,l,r))throw AV(i,a,o);if(RV({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Ho(e,t,n){const r=hc(e,t,n);return NA(r,MA)}function wn(e,t,n){const r=XH(e,t,n),o=oa({context:r.context}),[i]=v.useState(()=>new pV(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=_A(v.useCallback(s=>i.subscribe(gn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(LV)},[i]);if(a.error&&DA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function LV(){}function DV(e,t,n){const r=hc(e,t,n);return NA(r,fV)}var NV={exports:{}},Ob={exports:{}},CI;function jV(){return CI||(CI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)vaLine truncated
|
||||
*/var Hc=v;function mV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hV=typeof Object.is=="function"?Object.is:mV,gV=Hc.useState,vV=Hc.useEffect,yV=Hc.useLayoutEffect,bV=Hc.useDebugValue;function xV(e,t){var n=t(),r=gV({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return yV(function(){o.value=n,o.getSnapshot=t,Ib(o)&&i({inst:o})},[e,n,t]),vV(function(){return Ib(o)&&i({inst:o}),e(function(){Ib(o)&&i({inst:o})})},[e]),bV(n),n}function Ib(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hV(e,n)}catch{return!0}}function wV(e,t){return t()}var CV=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wV:xV;_A.useSyncExternalStore=Hc.useSyncExternalStore!==void 0?Hc.useSyncExternalStore:CV;TA.exports=_A;var SV=TA.exports;const FA=SV.useSyncExternalStore,CI=v.createContext(void 0),AA=v.createContext(!1);function LA(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=CI),window.ReactQueryClientContext):CI)}const oa=({context:e}={})=>{const t=v.useContext(LA(e,v.useContext(AA)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},EV=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=LA(n,r);return v.createElement(AA.Provider,{value:!n&&r},v.createElement(o.Provider,{value:e},t))},DA=v.createContext(!1),PV=()=>v.useContext(DA);DA.Provider;function kV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $V=v.createContext(kV()),IV=()=>v.useContext($V);function NA(e,t){return typeof e=="function"?e(...t):!!e}const OV=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},MV=e=>{v.useEffect(()=>{e.clearReset()},[e])},RV=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&NA(n,[e.error,r]),TV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},_V=(e,t)=>e.isLoading&&e.isFetching&&!t,FV=(e,t,n)=>(e==null?void 0:e.suspense)&&_V(t,n),AV=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function jA(e,t){const n=oa({context:e.context}),r=PV(),o=IV(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=gn.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=gn.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=gn.batchCalls(i.onSettled)),TV(i),OV(i,o),MV(o);const[a]=v.useState(()=>new t(n,i)),l=a.getOptimisticResult(i);if(FA(v.useCallback(s=>{const u=r?()=>{}:a.subscribe(gn.batchCalls(s));return a.updateResult(),u},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),v.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),FV(i,l,r))throw AV(i,a,o);if(RV({result:l,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:a.trackResult(l)}function Ho(e,t,n){const r=hc(e,t,n);return jA(r,RA)}function Cn(e,t,n){const r=XH(e,t,n),o=oa({context:r.context}),[i]=v.useState(()=>new pV(o,r));v.useEffect(()=>{i.setOptions(r)},[i,r]);const a=FA(v.useCallback(s=>i.subscribe(gn.batchCalls(s)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=v.useCallback((s,u)=>{i.mutate(s,u).catch(LV)},[i]);if(a.error&&NA(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}function LV(){}function DV(e,t,n){const r=hc(e,t,n);return jA(r,fV)}var NV={exports:{}},Ob={exports:{}},SI;function jV(){return SI||(SI=1,function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(h){return!isNaN(parseFloat(h))&&isFinite(h)}function r(h){return h.charAt(0).toUpperCase()+h.substring(1)}function o(h){return function(){return this[h]}}var i=["isConstructor","isEval","isNative","isToplevel"],a=["columnNumber","lineNumber"],l=["fileName","functionName","source"],s=["args"],u=["evalOrigin"],c=i.concat(a,l,s,u);function d(h){if(h)for(var y=0;y<c.length;y++)h[c[y]]!==void 0&&this["set"+r(c[y])](h[c[y]])}d.prototype={getArgs:function(){return this.args},setArgs:function(h){if(Object.prototype.toString.call(h)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=h},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(h){if(h instanceof d)this.evalOrigin=h;else if(h instanceof Object)this.evalOrigin=new d(h);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var h=this.getFileName()||"",y=this.getLineNumber()||"",b=this.getColumnNumber()||"",g=this.getFunctionName()||"";return this.getIsEval()?h?"[eval] ("+h+":"+y+":"+b+")":"[eval]:"+y+":"+b:g?g+" ("+h+":"+y+":"+b+")":h+":"+y+":"+b}},d.fromString=function(y){var b=y.indexOf("("),g=y.lastIndexOf(")"),x=y.substring(0,b),w=y.substring(b+1,g).split(","),P=y.substring(g+1);if(P.indexOf("@")===0)vaLine truncated
|
||||
`).filter(function(c){return!!c.match(i)},this);return u.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var d=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),f=d.match(/ (\(.+\)$)/);d=f?d.replace(f[0],""):d;var m=this.extractLocation(f?f[1]:d),p=f&&d||void 0,h=["eval","<anonymous>"].indexOf(m[0])>-1?void 0:m[0];return new r({functionName:p,fileName:h,lineNumber:m[1],columnNumber:m[2],source:c})},this)},parseFFOrSafari:function(s){var u=s.stack.split(`
|
||||
`).filter(function(c){return!c.match(a)},this);return u.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var d=/((.*".+"[^@]*)?[^@]*)(?:@)/,f=c.match(d),m=f&&f[1]?f[1]:void 0,p=this.extractLocation(c.replace(d,""));return new r({functionName:m,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(s){return!s.stacktrace||s.message.indexOf(`
|
||||
`)>-1&&s.message.split(`
|
||||
@@ -53,10 +53,10 @@ Error generating stack: `+i.message+`
|
||||
`).length?this.parseOpera9(s):s.stack?this.parseOpera11(s):this.parseOpera10(s)},parseOpera9:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)/i,c=s.message.split(`
|
||||
`),d=[],f=2,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera10:function(s){for(var u=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,c=s.stacktrace.split(`
|
||||
`),d=[],f=0,m=c.length;f<m;f+=2){var p=u.exec(c[f]);p&&d.push(new r({functionName:p[3]||void 0,fileName:p[2],lineNumber:p[1],source:c[f]}))}return d},parseOpera11:function(s){var u=s.stack.split(`
|
||||
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(NV);function xt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var zV=Error,BV=EvalError,HV=RangeError,VV=ReferenceError,jA=SyntaxError,Bp=TypeError,UV=URIError,WV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},SI=typeof Symbol<"u"&&Symbol,GV=WV,qV=function(){return typeof SI!="function"||typeof Symbol!="function"||typeof SI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GV()},Mb={__proto__:null,foo:{}},KV=Object,QV=function(){return{__proto__:Mb}.foo===Mb.foo&&!(Mb instanceof KV)},YV="Function.prototype.bind called on incompatible ",XV=Object.prototype.toString,ZV=Math.max,JV="[object Function]",EI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},eU=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},tU=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},nU=function(t){var n=this;if(typeof n!="function"||XV.apply(n)!==JV)throw new TypeError(YV+n);for(var r=eU(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,EI(r,arguments));return Object(c)===c?c:this}return n.apply(t,EI(r,arguments))},a=ZV(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+tU(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},rU=nU,ES=Function.prototype.bind||rU,oU=Function.prototype.call,iU=Object.prototype.hasOwnProperty,aU=ES,lU=aU.call(oU,iU),mt,sU=zV,uU=BV,cU=HV,dU=VV,Vc=jA,kc=Bp,fU=UV,zA=Function,Rb=function(e){try{return zA('"use strict"; return ('+e+").constructor;")()}catch{}},Us=Object.getOwnPropertyDescriptor;if(Us)try{Us({},"")}catch{Us=null}var Tb=function(){throw new kc},pU=Us?function(){try{return arguments.callee,Tb}catch{try{return Us(arguments,"callee").get}catch{return Tb}}}():Tb,Mu=qV(),mU=QV(),Vn=Object.getPrototypeOf||(mU?function(e){return e.__proto__}:null),Qu={},hU=typeof Uint8Array>"u"||!Vn?mt:Vn(Uint8Array),Ws={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Mu&&Vn?Vn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":Qu,"%AsyncGenerator%":Qu,"%AsyncGeneratorFunction%":Qu,"%AsyncIteratorPrototype%":Qu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":sU,"%eval%":eval,"%EvalError%":uU,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":zA,"%GeneratorFunction%":Qu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mu&&Vn?Vn(Vn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mu||!Vn?mt:Vn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":cU,"%ReferenceError%":dU,"%Reflect%":typeof Reflect>"u"?mt:Re
Line truncated
|
||||
`).filter(function(c){return!!c.match(o)&&!c.match(/^Error created at/)},this);return u.map(function(c){var d=c.split("@"),f=this.extractLocation(d.pop()),m=d.shift()||"",p=m.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,h;m.match(/\(([^)]*)\)/)&&(h=m.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var y=h===void 0||h==="[arguments not available]"?void 0:h.split(",");return new r({functionName:p,args:y,fileName:f[0],lineNumber:f[1],columnNumber:f[2],source:c})},this)}}})})(NV);function xt(e,t){return{hookName:"",trace:[],resourcePath:null,legacyKey:!1}}var zV=Error,BV=EvalError,HV=RangeError,VV=ReferenceError,zA=SyntaxError,Bp=TypeError,UV=URIError,WV=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},EI=typeof Symbol<"u"&&Symbol,GV=WV,qV=function(){return typeof EI!="function"||typeof Symbol!="function"||typeof EI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GV()},Mb={__proto__:null,foo:{}},KV=Object,QV=function(){return{__proto__:Mb}.foo===Mb.foo&&!(Mb instanceof KV)},YV="Function.prototype.bind called on incompatible ",XV=Object.prototype.toString,ZV=Math.max,JV="[object Function]",PI=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},eU=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},tU=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},nU=function(t){var n=this;if(typeof n!="function"||XV.apply(n)!==JV)throw new TypeError(YV+n);for(var r=eU(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,PI(r,arguments));return Object(c)===c?c:this}return n.apply(t,PI(r,arguments))},a=ZV(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+tU(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,o.prototype=new u,u.prototype=null}return o},rU=nU,ES=Function.prototype.bind||rU,oU=Function.prototype.call,iU=Object.prototype.hasOwnProperty,aU=ES,lU=aU.call(oU,iU),mt,sU=zV,uU=BV,cU=HV,dU=VV,Vc=zA,kc=Bp,fU=UV,BA=Function,Rb=function(e){try{return BA('"use strict"; return ('+e+").constructor;")()}catch{}},Us=Object.getOwnPropertyDescriptor;if(Us)try{Us({},"")}catch{Us=null}var Tb=function(){throw new kc},pU=Us?function(){try{return arguments.callee,Tb}catch{try{return Us(arguments,"callee").get}catch{return Tb}}}():Tb,Mu=qV(),mU=QV(),Vn=Object.getPrototypeOf||(mU?function(e){return e.__proto__}:null),Qu={},hU=typeof Uint8Array>"u"||!Vn?mt:Vn(Uint8Array),Ws={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mt:ArrayBuffer,"%ArrayIteratorPrototype%":Mu&&Vn?Vn([][Symbol.iterator]()):mt,"%AsyncFromSyncIteratorPrototype%":mt,"%AsyncFunction%":Qu,"%AsyncGenerator%":Qu,"%AsyncGeneratorFunction%":Qu,"%AsyncIteratorPrototype%":Qu,"%Atomics%":typeof Atomics>"u"?mt:Atomics,"%BigInt%":typeof BigInt>"u"?mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":sU,"%eval%":eval,"%EvalError%":uU,"%Float32Array%":typeof Float32Array>"u"?mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mt:FinalizationRegistry,"%Function%":BA,"%GeneratorFunction%":Qu,"%Int8Array%":typeof Int8Array>"u"?mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mu&&Vn?Vn(Vn([][Symbol.iterator]())):mt,"%JSON%":typeof JSON=="object"?JSON:mt,"%Map%":typeof Map>"u"?mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mu||!Vn?mt:Vn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mt:Promise,"%Proxy%":typeof Proxy>"u"?mt:Proxy,"%RangeError%":cU,"%ReferenceError%":dU,"%Reflect%":typeof Reflect>"u"?mt:Re
Line truncated
|
||||
`)>=0)return!1;return!0}function f8(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ai.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ai.call(Array(t+1),n)}}function fw(e,t){if(e.length===0)return"";var n=`
|
||||
`+t.prev+t.base;return n+Ai.call(e,","+n)+`
|
||||
`+t.prev}function eh(e,t){var n=dw(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=El(e,o)?t(e[o],e):""}var i=typeof Lb=="function"?Lb(e):[],a;if(Uc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)El(e,s)&&(n&&String(Number(s))===s&&s<e.length||Uc&&a["$"+s]instanceof Symbol||(GA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Lb=="function")for(var u=0;u<i.length;u++)qA.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var ZA=dd,fd=AU,p8=KU,m8=Bp,th=ZA("%WeakMap%",!0),nh=ZA("%Map%",!0),h8=fd("WeakMap.prototype.get",!0),g8=fd("WeakMap.prototype.set",!0),v8=fd("WeakMap.prototype.has",!0),y8=fd("Map.prototype.get",!0),b8=fd("Map.prototype.set",!0),x8=fd("Map.prototype.has",!0),OS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},w8=function(e,t){var n=OS(e,t);return n&&n.value},C8=function(e,t,n){var r=OS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},S8=function(e,t){return!!OS(e,t)},E8=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new m8("Side channel does not contain "+p8(i))},get:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return h8(t,i)}else if(nh){if(n)return y8(n,i)}else if(r)return w8(r,i)},has:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return v8(t,i)}else if(nh){if(n)return x8(n,i)}else if(r)return S8(r,i);return!1},set:function(i,a){th&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new th),g8(t,i,a)):nh?(n||(n=new nh),b8(n,i,a)):(r||(r={key:{},next:null}),C8(r,i,a))}};return o},P8=String.prototype.replace,k8=/%20/g,Nb={RFC1738:"RFC1738",RFC3986:"RFC3986"},MS={default:Nb.RFC3986,formatters:{RFC1738:function(e){return P8.call(e,k8,"+")},RFC3986:function(e){return String(e)}},RFC1738:Nb.RFC1738,RFC3986:Nb.RFC3986},$8=MS,jb=Object.prototype.hasOwnProperty,Ms=Array.isArray,Ii=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),I8=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ms(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},JA=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},O8=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ms(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!jb.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Ms(t)&&!Ms(n)&&(o=JA(t,r)),Ms(t)&&Ms(n)?(n.forEach(function(i,a){if(jb.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return jb.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},M8=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},R8=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},T8=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===$8.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+Ii[u];continue}if(u<2048){l=l+(Ii[192|u>>6]+Ii[128|u&63]);continue}if(u<55296||u>=57344){l=l+(Ii[224|u>>12]+Ii[128|u>>6&63]+Ii[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=Ii[240|u>>18]+Ii[128|u>>12&63]+Ii[128|u>>6&63]+Ii[128|u&63]}return l},_8=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return I8(n),t},F8=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},A8=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},L8=function(t,n){return[].concat(t,n)},D8=function(t,n){if(Ms(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},eL={arrayToObject:JA,assign:M8,combine:L8,compact:_8,decode:R8,encode:T8,isBuffer:A8,isRegExp:F8,maybeMap:D8,merge:O8},tL=E8,Zh=eL,_f=MS,N8=Object.prototype.hasOwnProperty,nL={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Fi=Array.isArray,j8=Array.prototype.push,rL=function(e,t){j8.apply(e,Fi(t)?t:[t])},z8=Date.prototype.toISOString,WI=_f.default,An={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",
Line truncated
|
||||
`+t.prev}function eh(e,t){var n=dw(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=El(e,o)?t(e[o],e):""}var i=typeof Lb=="function"?Lb(e):[],a;if(Uc){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)El(e,s)&&(n&&String(Number(s))===s&&s<e.length||Uc&&a["$"+s]instanceof Symbol||(qA.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Lb=="function")for(var u=0;u<i.length;u++)KA.call(e,i[u])&&r.push("["+t(i[u])+"]: "+t(e[i[u]],e));return r}var JA=dd,fd=AU,p8=KU,m8=Bp,th=JA("%WeakMap%",!0),nh=JA("%Map%",!0),h8=fd("WeakMap.prototype.get",!0),g8=fd("WeakMap.prototype.set",!0),v8=fd("WeakMap.prototype.has",!0),y8=fd("Map.prototype.get",!0),b8=fd("Map.prototype.set",!0),x8=fd("Map.prototype.has",!0),OS=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},w8=function(e,t){var n=OS(e,t);return n&&n.value},C8=function(e,t,n){var r=OS(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},S8=function(e,t){return!!OS(e,t)},E8=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new m8("Side channel does not contain "+p8(i))},get:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return h8(t,i)}else if(nh){if(n)return y8(n,i)}else if(r)return w8(r,i)},has:function(i){if(th&&i&&(typeof i=="object"||typeof i=="function")){if(t)return v8(t,i)}else if(nh){if(n)return x8(n,i)}else if(r)return S8(r,i);return!1},set:function(i,a){th&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new th),g8(t,i,a)):nh?(n||(n=new nh),b8(n,i,a)):(r||(r={key:{},next:null}),C8(r,i,a))}};return o},P8=String.prototype.replace,k8=/%20/g,Nb={RFC1738:"RFC1738",RFC3986:"RFC3986"},MS={default:Nb.RFC3986,formatters:{RFC1738:function(e){return P8.call(e,k8,"+")},RFC3986:function(e){return String(e)}},RFC1738:Nb.RFC1738,RFC3986:Nb.RFC3986},$8=MS,jb=Object.prototype.hasOwnProperty,Ms=Array.isArray,Ii=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),I8=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Ms(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},eL=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},O8=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Ms(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!jb.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Ms(t)&&!Ms(n)&&(o=eL(t,r)),Ms(t)&&Ms(n)?(n.forEach(function(i,a){if(jb.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return jb.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},M8=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},R8=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},T8=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;++s){var u=a.charCodeAt(s);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===$8.RFC1738&&(u===40||u===41)){l+=a.charAt(s);continue}if(u<128){l=l+Ii[u];continue}if(u<2048){l=l+(Ii[192|u>>6]+Ii[128|u&63]);continue}if(u<55296||u>=57344){l=l+(Ii[224|u>>12]+Ii[128|u>>6&63]+Ii[128|u&63]);continue}s+=1,u=65536+((u&1023)<<10|a.charCodeAt(s)&1023),l+=Ii[240|u>>18]+Ii[128|u>>12&63]+Ii[128|u>>6&63]+Ii[128|u&63]}return l},_8=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var u=l[s],c=a[u];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:a,prop:u}),r.push(c))}return I8(n),t},F8=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},A8=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},L8=function(t,n){return[].concat(t,n)},D8=function(t,n){if(Ms(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},tL={arrayToObject:eL,assign:M8,combine:L8,compact:_8,decode:R8,encode:T8,isBuffer:A8,isRegExp:F8,maybeMap:D8,merge:O8},nL=E8,Zh=tL,_f=MS,N8=Object.prototype.hasOwnProperty,rL={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},Fi=Array.isArray,j8=Array.prototype.push,oL=function(e,t){j8.apply(e,Fi(t)?t:[t])},z8=Date.prototype.toISOString,GI=_f.default,An={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",
Line truncated
|
||||
Papa Parse
|
||||
v5.4.1
|
||||
https://github.com/mholt/PapaParse
|
||||
@@ -70,25 +70,25 @@ License: MIT
|
||||
`:"\r"}(J,ve)),R=!1,S.delimiter)E(S.delimiter)&&(S.delimiter=S.delimiter(J),H.meta.delimiter=S.delimiter);else{var me=function(be,ie,ye,V,Q){var Z,ae,te,K;Q=Q||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var ee=0;ee<Q.length;ee++){var se=Q[ee],Ce=0,_e=0,$e=0;te=void 0;for(var X=new b({comments:V,delimiter:se,newline:ie,preview:10}).parse(be),Ee=0;Ee<X.data.length;Ee++)if(ye&&U(X.data[Ee]))$e++;else{var De=X.data[Ee].length;_e+=De,te!==void 0?0<De&&(Ce+=Math.abs(De-te),te=De):te=De}0<X.data.length&&(_e/=X.data.length-$e),(ae===void 0||Ce<=ae)&&(K===void 0||K<_e)&&1.99<_e&&(ae=Ce,Z=se,K=_e)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}}(J,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess);me.successful?S.delimiter=me.bestDelimiter:(R=!0,S.delimiter=s.DefaultDelimiter),H.meta.delimiter=S.delimiter}var ke=P(S);return S.preview&&S.header&&ke.preview++,M=J,O=new b(ke),H=O.parse(M,oe,ce),G(),z?{meta:{paused:!0}}:H||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,O.abort(),M=E(S.chunk)?"":M.substring(O.getCharIndex())},this.resume=function(){j.streamer._halted?(z=!1,j.streamer.parseChunk(M,!0)):setTimeout(j.resume,3)},this.aborted=function(){return B},this.abort=function(){B=!0,O.abort(),H.meta.aborted=!0,E(S.complete)&&S.complete(H),M=""}}function y(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function b(S){var M,O=(S=S||{}).delimiter,R=S.newline,_=S.comments,D=S.step,T=S.preview,F=S.fastMode,j=M=S.quoteChar===void 0||S.quoteChar===null?'"':S.quoteChar;if(S.escapeChar!==void 0&&(j=S.escapeChar),(typeof O!="string"||-1<s.BAD_DELIMITERS.indexOf(O))&&(O=","),_===O)throw new Error("Comment character same as delimiter");_===!0?_="#":(typeof _!="string"||-1<s.BAD_DELIMITERS.indexOf(_))&&(_=!1),R!==`
|
||||
`&&R!=="\r"&&R!==`\r
|
||||
`&&(R=`
|
||||
`);var $=0,L=!1;this.parse=function(z,B,A){if(typeof z!="string")throw new Error("Input must be a string");var H=z.length,q=O.length,U=R.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=$=0;if(!z)return Te();if(S.header&&!B){var ce=z.split(R)[0].split(O),ve=[],me={},ke=!1;for(var be in ce){var ie=ce[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,V=me[ie]||0;for(0<V&&(ke=!0,ye=ie+"_"+V),me[ie]=V+1;ve.includes(ye);)ye=ye+"_"+V;ve.push(ye)}if(ke){var Q=z.split(R);Q[0]=ve.join(O),z=Q.join(R)}}if(F||F!==!1&&z.indexOf(M)===-1){for(var Z=z.split(R),ae=0;ae<Z.length;ae++){if(J=Z[ae],$+=J.length,ae!==Z.length-1)$+=R.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(O)),Pe(),L)return Te()}else $e(J.split(O));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=z.indexOf(O,$),K=z.indexOf(R,$),ee=new RegExp(y(j)+y(M),"g"),se=z.indexOf(M,$);;)if(z[$]!==M)if(_&&J.length===0&&z.substring($,$+G)===_){if(K===-1)return Te();$=K+U,K=z.indexOf(R,$),te=z.indexOf(O,$)}else if(te!==-1&&(te<K||K===-1))J.push(z.substring($,te)),$=te+q,te=z.indexOf(O,$);else{if(K===-1)break;if(J.push(z.substring($,K)),De(K+U),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=$,$++;;){if((se=z.indexOf(M,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:$}),Ee();if(se===H-1)return Ee(z.substring($,se).replace(ee,M));if(M!==j||z[se+1]!==j){if(M===j||se===0||z[se-1]!==j){te!==-1&&te<se+1&&(te=z.indexOf(O,se+1)),K!==-1&&K<se+1&&(K=z.indexOf(R,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(z.substr(se+1+Ce,q)===O){J.push(z.substring($,se).replace(ee,M)),z[$=se+1+Ce+q]!==M&&(se=z.indexOf(M,$)),te=z.indexOf(O,$),K=z.indexOf(R,$);break}var _e=X(K);if(z.substring(se+1+_e,se+1+_e+U)===R){if(J.push(z.substring($,se).replace(ee,M)),De(se+1+_e+U),te=z.indexOf(O,$),se=z.indexOf(M,$),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:$}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=$}function X(Re){var Ge=0;if(Re!==-1){var at=z.substring(se+1,Re);at&&at.trim()===""&&(Ge=at.length)}return Ge}function Ee(Re){return A||(Re===void 0&&(Re=z.substring($)),J.push(Re),$=H,$e(J),Y&&Pe()),Te()}function De(Re){$=Re,$e(J),J=[],K=z.indexOf(R,$)}function Te(Re){return{data:re,errors:le,meta:{delimiter:O,linebreak:R,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return $}}function g(S){var M=S.data,O=a[M.workerId],R=!1;if(M.error)O.userError(M.error,M.file);else if(M.results&&M.results.data){var _={abort:function(){R=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(O.userStep)){for(var D=0;D<M.results.data.length&&(O.userStep({data:M.results.data[D],errors:M.results.errors,meta:M.results.meta},_),!R);D++);delete M.results}else E(O.userChunk)&&(O.userChunk(M.results,_,M.file),delete M.results)}M.finished&&!R&&x(M.workerId,M.results)}function x(S,M){var O=a[S];E(O.userComplete)&&O.userComplete(M),O.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var M=Array.isArray(S)?[]:{};for(var O in S)M[O]=P(S[O]);return M}function C(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var M=S.data;if(s.WORKER_ID===void 0&&M&&(s.WORKER_ID=M.workerId),typeof M.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(M.input,M.config),finished:!0});else if(r.File&&M.input instanceof File||M.input instanceof Object){var O=s.parse(M.input,M.config);O&&r.postMessage({workerId:s.WORKER_ID,results:O,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(EL);var PL=EL.exports,_G=function(){return ia.Date.now()};const Ub=_G;var FG=/\s/;function AG(e){for(var t=e.length;t--&&FG.test(e.charAt(t)););return t}var LG=/^\s+/;function DG(e){return e&&e.slice(0,AG(e)+1).replace(LG,"")}var NG="[object Symbol]";function ry(e){return typeof e=="symbol"||iu(e)&&pd(e)==NG}var hO=0/0,jG=/^[-+]0x[0-9a-f]+$/i,zG=/^0b[01]+$/i,BG=/^0o[0-7]+$/i,HG=parseInt;function yw(e){if(typeof e=="number")return e;if(ry(e))return hO;if(au(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=au(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DG(e);var n=zG.test(e);return n||BG.test(e)?HG(e.slice(2),n?2:8):jG.test(e)?hO:+e}var VG="Expected a function",UG=Math.max,WG=Math.min;function kL(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(VG);t=yw(t)||0,au(n)&&(c=!!n.leading,d="maxWait"in n,i=d?UG(yw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing
Line truncated
|
||||
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),zS(e,t,n,eD).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),SO=W((e,t)=>zS(e,t,tD).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),EO=W((e,t)=>[...Al(t,e,eD),...e],"setInitialFilters"),PO=W((e,t)=>[...Al(t,e,tD),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Wt=W(()=>{let{options:{useNewQueryKeys:e}}=dn();return{keys:ks,preferLegacyKeys:!e}},"useKeys");function Yq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=qo(),{getPermissions:o}=wi(),{keys:i,preferLegacyKeys:a}=Wt(),l=Ho({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...xt()}}),s=Ho({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?s:l}W(Yq,"usePermissions");function md({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=qo(),{getIdentity:r}=wi(),{keys:o,preferLegacyKeys:i}=Wt(),a=Ho({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),l=Ho({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?l:a}W(md,"useGetIdentity");var qS=W(()=>{let e=oa(),{keys:t,preferLegacyKeys:n}=Wt();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Kc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{push:i}=Cn(),{open:a,close:l}=wu(),{logout:s}=qo(),{logout:u}=wi(),{keys:c,preferLegacyKeys:d}=Wt(),f=wn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(Xq(x)))),(b||!y)&&(a==null||a(qb(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(qb(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),m=wn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(qb(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?m:f}W(Kc,"useLogout");var qb=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),Xq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function Vp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{replace:i}=Cn(),a=Qo(),{useLocation:l}=Bt(),{search:s}=l(),{close:u,open:c}=wu(),{login:d}=qo(),{login:f}=wi(),{keys:m,preferLegacyKeys:p}=Wt(),h=k.useMemo(()=>{var g;return r==="legacy"?ou.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=wn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(Zq(P)))),(w||!g)&&(c==null||c(Kb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(Kb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),b=wn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null
Line truncated
|
||||
`);var $=0,L=!1;this.parse=function(z,B,A){if(typeof z!="string")throw new Error("Input must be a string");var H=z.length,q=O.length,U=R.length,G=_.length,Y=E(D),re=[],le=[],J=[],oe=$=0;if(!z)return Te();if(S.header&&!B){var ce=z.split(R)[0].split(O),ve=[],me={},ke=!1;for(var be in ce){var ie=ce[be];E(S.transformHeader)&&(ie=S.transformHeader(ie,be));var ye=ie,V=me[ie]||0;for(0<V&&(ke=!0,ye=ie+"_"+V),me[ie]=V+1;ve.includes(ye);)ye=ye+"_"+V;ve.push(ye)}if(ke){var Q=z.split(R);Q[0]=ve.join(O),z=Q.join(R)}}if(F||F!==!1&&z.indexOf(M)===-1){for(var Z=z.split(R),ae=0;ae<Z.length;ae++){if(J=Z[ae],$+=J.length,ae!==Z.length-1)$+=R.length;else if(A)return Te();if(!_||J.substring(0,G)!==_){if(Y){if(re=[],$e(J.split(O)),Pe(),L)return Te()}else $e(J.split(O));if(T&&T<=ae)return re=re.slice(0,T),Te(!0)}}return Te()}for(var te=z.indexOf(O,$),K=z.indexOf(R,$),ee=new RegExp(y(j)+y(M),"g"),se=z.indexOf(M,$);;)if(z[$]!==M)if(_&&J.length===0&&z.substring($,$+G)===_){if(K===-1)return Te();$=K+U,K=z.indexOf(R,$),te=z.indexOf(O,$)}else if(te!==-1&&(te<K||K===-1))J.push(z.substring($,te)),$=te+q,te=z.indexOf(O,$);else{if(K===-1)break;if(J.push(z.substring($,K)),De(K+U),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0)}else for(se=$,$++;;){if((se=z.indexOf(M,se+1))===-1)return A||le.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:$}),Ee();if(se===H-1)return Ee(z.substring($,se).replace(ee,M));if(M!==j||z[se+1]!==j){if(M===j||se===0||z[se-1]!==j){te!==-1&&te<se+1&&(te=z.indexOf(O,se+1)),K!==-1&&K<se+1&&(K=z.indexOf(R,se+1));var Ce=X(K===-1?te:Math.min(te,K));if(z.substr(se+1+Ce,q)===O){J.push(z.substring($,se).replace(ee,M)),z[$=se+1+Ce+q]!==M&&(se=z.indexOf(M,$)),te=z.indexOf(O,$),K=z.indexOf(R,$);break}var _e=X(K);if(z.substring(se+1+_e,se+1+_e+U)===R){if(J.push(z.substring($,se).replace(ee,M)),De(se+1+_e+U),te=z.indexOf(O,$),se=z.indexOf(M,$),Y&&(Pe(),L))return Te();if(T&&re.length>=T)return Te(!0);break}le.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:$}),se++}}else se++}return Ee();function $e(Re){re.push(Re),oe=$}function X(Re){var Ge=0;if(Re!==-1){var at=z.substring(se+1,Re);at&&at.trim()===""&&(Ge=at.length)}return Ge}function Ee(Re){return A||(Re===void 0&&(Re=z.substring($)),J.push(Re),$=H,$e(J),Y&&Pe()),Te()}function De(Re){$=Re,$e(J),J=[],K=z.indexOf(R,$)}function Te(Re){return{data:re,errors:le,meta:{delimiter:O,linebreak:R,aborted:L,truncated:!!Re,cursor:oe+(B||0)}}}function Pe(){D(Te()),re=[],le=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return $}}function g(S){var M=S.data,O=a[M.workerId],R=!1;if(M.error)O.userError(M.error,M.file);else if(M.results&&M.results.data){var _={abort:function(){R=!0,x(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:w,resume:w};if(E(O.userStep)){for(var D=0;D<M.results.data.length&&(O.userStep({data:M.results.data[D],errors:M.results.errors,meta:M.results.meta},_),!R);D++);delete M.results}else E(O.userChunk)&&(O.userChunk(M.results,_,M.file),delete M.results)}M.finished&&!R&&x(M.workerId,M.results)}function x(S,M){var O=a[S];E(O.userComplete)&&O.userComplete(M),O.terminate(),delete a[S]}function w(){throw new Error("Not implemented.")}function P(S){if(typeof S!="object"||S===null)return S;var M=Array.isArray(S)?[]:{};for(var O in S)M[O]=P(S[O]);return M}function C(S,M){return function(){S.apply(M,arguments)}}function E(S){return typeof S=="function"}return i&&(r.onmessage=function(S){var M=S.data;if(s.WORKER_ID===void 0&&M&&(s.WORKER_ID=M.workerId),typeof M.input=="string")r.postMessage({workerId:s.WORKER_ID,results:s.parse(M.input,M.config),finished:!0});else if(r.File&&M.input instanceof File||M.input instanceof Object){var O=s.parse(M.input,M.config);O&&r.postMessage({workerId:s.WORKER_ID,results:O,finished:!0})}}),(d.prototype=Object.create(c.prototype)).constructor=d,(f.prototype=Object.create(c.prototype)).constructor=f,(m.prototype=Object.create(m.prototype)).constructor=m,(p.prototype=Object.create(c.prototype)).constructor=p,s})})(PL);var kL=PL.exports,_G=function(){return ia.Date.now()};const Ub=_G;var FG=/\s/;function AG(e){for(var t=e.length;t--&&FG.test(e.charAt(t)););return t}var LG=/^\s+/;function DG(e){return e&&e.slice(0,AG(e)+1).replace(LG,"")}var NG="[object Symbol]";function ry(e){return typeof e=="symbol"||iu(e)&&pd(e)==NG}var gO=0/0,jG=/^[-+]0x[0-9a-f]+$/i,zG=/^0b[01]+$/i,BG=/^0o[0-7]+$/i,HG=parseInt;function yw(e){if(typeof e=="number")return e;if(ry(e))return gO;if(au(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=au(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DG(e);var n=zG.test(e);return n||BG.test(e)?HG(e.slice(2),n?2:8):jG.test(e)?gO:+e}var VG="Expected a function",UG=Math.max,WG=Math.min;function $L(e,t,n){var r,o,i,a,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(VG);t=yw(t)||0,au(n)&&(c=!!n.leading,d="maxWait"in n,i=d?UG(yw(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing
Line truncated
|
||||
For more information, see https://refine.dev/docs/advanced-tutorials/data-provider/handling-filters/#top-level-multiple-conditional-filters-usage`),zS(e,t,n,tD).filter(r=>r.value!==void 0&&r.value!==null&&(r.operator!=="or"||r.operator==="or"&&r.value.length!==0)&&(r.operator!=="and"||r.operator==="and"&&r.value.length!==0))),"unionFilters"),EO=W((e,t)=>zS(e,t,nD).filter(n=>n.order!==void 0&&n.order!==null),"unionSorters"),PO=W((e,t)=>[...Al(t,e,tD),...e],"setInitialFilters"),kO=W((e,t)=>[...Al(t,e,nD),...e],"setInitialSorters");W((e,t)=>{if(!t)return;let n=t.find(r=>r.field===e);if(n)return n.order},"getDefaultSortOrder");W((e,t,n="eq")=>{let r=t==null?void 0:t.find(o=>{if(o.operator!=="or"&&o.operator!=="and"&&"field"in o){let{operator:i,field:a}=o;return a===e&&i===n}});if(r)return r.value||[]},"getDefaultFilter");W(e=>new Promise((t,n)=>{let r=new FileReader,o=W(()=>{r.result&&(r.removeEventListener("load",o,!1),t(r.result))},"resultHandler");r.addEventListener("load",o,!1),r.readAsDataURL(e.originFileObj),r.onerror=i=>(r.removeEventListener("load",o,!1),n(i))}),"file2Base64");var Wt=W(()=>{let{options:{useNewQueryKeys:e}}=dn();return{keys:ks,preferLegacyKeys:!e}},"useKeys");function Yq({v3LegacyAuthProviderCompatible:e=!1,options:t,params:n}={}){let{getPermissions:r}=qo(),{getPermissions:o}=wi(),{keys:i,preferLegacyKeys:a}=Wt(),l=Ho({queryKey:i().auth().action("permissions").get(a),queryFn:o?()=>o(n):()=>Promise.resolve(void 0),enabled:!e&&!!o,...e?{}:t,meta:{...e?{}:t==null?void 0:t.meta,...xt()}}),s=Ho({queryKey:[...i().auth().action("permissions").get(a),"v3LegacyAuthProviderCompatible"],queryFn:r?()=>r(n):()=>Promise.resolve(void 0),enabled:e&&!!r,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?s:l}W(Yq,"usePermissions");function md({v3LegacyAuthProviderCompatible:e=!1,queryOptions:t}={}){let{getUserIdentity:n}=qo(),{getIdentity:r}=wi(),{keys:o,preferLegacyKeys:i}=Wt(),a=Ho({queryKey:o().auth().action("identity").get(i),queryFn:r??(()=>Promise.resolve({})),enabled:!e&&!!r,retry:!1,...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),l=Ho({queryKey:[...o().auth().action("identity").get(i),"v3LegacyAuthProviderCompatible"],queryFn:n??(()=>Promise.resolve({})),enabled:e&&!!n,retry:!1,...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?l:a}W(md,"useGetIdentity");var qS=W(()=>{let e=oa(),{keys:t,preferLegacyKeys:n}=Wt();return W(async()=>{await Promise.all(["check","identity","permissions"].map(r=>e.invalidateQueries(t().auth().action(r).get(n))))},"invalidate")},"useInvalidateAuthStore");function Kc({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{push:i}=Sn(),{open:a,close:l}=wu(),{logout:s}=qo(),{logout:u}=wi(),{keys:c,preferLegacyKeys:d}=Wt(),f=Cn({mutationKey:c().auth().action("logout").get(d),mutationFn:u,onSuccess:async(p,h)=>{let{success:y,error:b,redirectTo:g,successNotification:x}=p,{redirectPath:w}=h??{},P=w??g;y&&(l==null||l("useLogout-error"),x&&(a==null||a(Xq(x)))),(b||!y)&&(a==null||a(qb(b))),P!==!1&&(r==="legacy"?i(P??"/login"):P&&o({to:P})),await n()},onError:p=>{a==null||a(qb(p))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),m=Cn({mutationKey:[...c().auth().action("logout").get(d),"v3LegacyAuthProviderCompatible"],mutationFn:s,onSuccess:async(p,h)=>{let y=(h==null?void 0:h.redirectPath)??p;if(y!==!1){if(y){r==="legacy"?i(y):o({to:y});return}r==="legacy"?i("/login"):o({to:"/login"}),await n()}},onError:p=>{a==null||a(qb(p))},...e?t:{},meta:{...e?t==null?void 0:t.meta:{},...xt()}});return e?m:f}W(Kc,"useLogout");var qb=W(e=>({key:"useLogout-error",type:"error",message:(e==null?void 0:e.name)||"Logout Error",description:(e==null?void 0:e.message)||"Something went wrong during logout"}),"buildNotification"),Xq=W(e=>({message:e.message,description:e.description,key:"logout-success",type:"success"}),"buildSuccessNotification");function Vp({v3LegacyAuthProviderCompatible:e,mutationOptions:t}={}){let n=qS(),r=st(),o=hr(),{replace:i}=Sn(),a=Qo(),{useLocation:l}=Bt(),{search:s}=l(),{close:u,open:c}=wu(),{login:d}=qo(),{login:f}=wi(),{keys:m,preferLegacyKeys:p}=Wt(),h=k.useMemo(()=>{var g;return r==="legacy"?ou.parse(s,{ignoreQueryPrefix:!0}).to:(g=a.params)==null?void 0:g.to},[r,a.params,s]),y=Cn({mutationKey:m().auth().action("login").get(p),mutationFn:f,onSuccess:async({success:g,redirectTo:x,error:w,successNotification:P})=>{g&&(u==null||u("login-error"),P&&(c==null||c(Zq(P)))),(w||!g)&&(c==null||c(Kb(w))),h&&g?r==="legacy"?i(h):o({to:h,type:"replace"}):x?r==="legacy"?i(x):o({to:x,type:"replace"}):r==="legacy"&&i("/"),await n()},onError:g=>{c==null||c(Kb(g))},...e===!0?{}:t,meta:{...e===!0?{}:t==null?void 0:t.meta,...xt()}}),b=Cn({mutationKey:[...m().auth().action("login").get(p),"v3LegacyAuthProviderCompatible"],mutationFn:d,onSuccess:async g=>{h&&i(h),g!==!1&&!h&&(typeof g=="string"?r==="legacy"?i(g):o({to:g,type:"replace"}):r==="legacy"?i("/"):o({to:"/",type:"replace"})),await n(),u==null
Line truncated
|
||||
|
||||
Both \`unparseConfig\` and \`exportOptions\` are set, \`unparseConfig\` will take precedence`);let D={filename:C,useKeysAsHeaders:!0,useBom:!0,title:"My Generated Report",quoteStrings:'"',...s};su((s==null?void 0:s.decimalSeparator)!==void 0,`[useExport]: resource: "${P}"
|
||||
|
||||
Use of \`decimalSeparator\` no longer supported, please use \`mapData\` instead.
|
||||
|
||||
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=PL.unparse(M.map(l),u);if(D.showTitle&&(T=`${D.title}\r
|
||||
See https://refine.dev/docs/api-reference/core/hooks/import-export/useExport/`),_?u={quotes:!0,...u}:u={columns:D.useKeysAsHeaders?void 0:D.headers,delimiter:D.fieldSeparator,header:D.showLabels||D.useKeysAsHeaders,quoteChar:D.quoteStrings,quotes:!0};let T=kL.unparse(M.map(l),u);if(D.showTitle&&(T=`${D.title}\r
|
||||
|
||||
${T}`),typeof window<"u"&&T.length>0&&(p??!0)){let F=D.useTextFile?".txt":".csv",j=`text/${D.useTextFile?"plain":"csv"};charset=utf8;`,$=`${(D.filename??"download").replace(/ /g,"_")}${F}`;Qq($,`${D!=null&&D.useBom?"\uFEFF":""}${T}`,j)}return y(!1),T},"triggerExport")}},"useExport");var yK=W(({resource:e,action:t,id:n,onMutationSuccess:r,onMutationError:o,redirect:i,successNotification:a,errorNotification:l,meta:s,metaData:u,queryMeta:c,mutationMeta:d,mutationMode:f,liveMode:m,onLiveEvent:p,liveParams:h,undoableTimeout:y,dataProviderName:b,invalidates:g,queryOptions:x,createMutationOptions:w,updateMutationOptions:P,overtimeOptions:C,autoSave:E,optimisticUpdateMap:S}={})=>{let M=la(),{options:O}=dn(),R=qn(),{resource:_,id:D,action:T,identifier:F}=Je(e),{identifier:j}=Je(),$=W(()=>e&&e!==j?n:n??D,"getDefaultId")(),[L,z]=k.useState($);k.useEffect(()=>{z($)},[$]);let B=W(()=>t||(T==="edit"||T==="clone"?T:"create"),"getAction")(),A=R({resource:_,meta:Ae(s,u)}),{mutationMode:H}=xu(),q=f??H,U=B==="create",G=B==="edit",Y=B==="clone";su((Y||G)&&!!e&&!n&&(x==null?void 0:x.enabled)!==!1,`[useForm]: action: "${B}", resource: "${F}", id: ${L}
|
||||
|
||||
If you don't use the \`setId\` method to set the \`id\`, you should pass the \`id\` prop to \`useForm\`. Otherwise, \`useForm\` will not be able to infer the \`id\` from the current URL.
|
||||
|
||||
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=Nq({redirectFromProps:i,action:B,redirectOptions:O.redirect}),le=oD({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=aD({mutationOptions:w}),{mutate:ce,isLoading:ve}=oe,me=ev({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=ev({}),{setWarnWhen:ye}=tl(),V=bK(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{V({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ce({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var De;r&&r($e,ee,Ee);let Te=(De=$e==null?void 0:$e.data)==null?void 0:De.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");k.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&M({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=kL(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=U||Y?{formLoading:J||ve,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{V({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,De)=>{r&&r(X,ee,De),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,De)=>{if(o)return o(X,ee,De);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=mr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:z,redirect:(ee,se)=>{V({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),bK=W(()=>{let{show:e,edit:t,list:n,create:r}=Cn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),Kp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Qo();return k.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Jr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?wo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),hr=W(()=>{let e=v.useContext(Gp),{select:t}=Je(),n=Kp(),r=k.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);xK(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),xK=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),uy=W(()=>{let e=v.useContext(Gp);return k.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),Cn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=Bt(),r=n(),o=Qo(),i=hr(),a=uy(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,x=Jr(g,e,!0).find(w=>w.action==="create");return x?wo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?ur(m,e)??{name:m}:m,b=(h=Jr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:wo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,P=Jr(w,e,!0).find(C=>C.action==="edit");return P?wo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}
Line truncated
|
||||
See https://refine.dev/docs/api-reference/core/hooks/useForm/#resource`);let re=Nq({redirectFromProps:i,action:B,redirectOptions:O.redirect}),le=iD({resource:F,id:L??"",queryOptions:{enabled:L!==void 0&&(G||Y),...x},liveMode:m,onLiveEvent:p,liveParams:h,meta:{...A,...c},metaData:{...A,...c},dataProviderName:b}),{isFetching:J}=le,oe=lD({mutationOptions:w}),{mutate:ce,isLoading:ve}=oe,me=ev({mutationOptions:P}),{mutate:ke,isLoading:be}=me,ie=ev({}),{setWarnWhen:ye}=tl(),V=bK(),Q=W(async ee=>{ye(!1);let se=W(Ce=>{V({redirect:re,resource:_,id:Ce,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{se()}),new Promise((Ce,_e)=>{if(q!=="pessimistic"&&Ce(),!!_)return ce({values:ee,resource:F??_.name,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g},{onSuccess:($e,X,Ee)=>{var De;r&&r($e,ee,Ee);let Te=(De=$e==null?void 0:$e.data)==null?void 0:De.id;se(Te),Ce($e)},onError:($e,X,Ee)=>{if(o)return o($e,ee,Ee);_e()}})})},"onFinishCreate");k.useEffect(()=>()=>{E!=null&&E.invalidateOnUnmount&&ie.status==="success"&&M({id:L,invalidates:g||["list","many","detail"],dataProviderName:b,resource:F})},[E==null?void 0:E.invalidateOnUnmount,ie.status]);let Z=W(ee=>{if(!_||!G)return;let se={id:L??"",values:ee,resource:F??_.name,successNotification:!1,errorNotification:!1,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:[],mutationMode:"pessimistic"};return ie.mutate(se,{onSuccess:(Ce,_e,$e)=>{r&&r(Ce,ee,$e,!0)},onError:(Ce,_e,$e)=>{if(o)return o(Ce,ee,$e,!0)}})},"onFinishAutoSaveMutation"),ae=$L(ee=>Z(ee),(E==null?void 0:E.debounce)||1e3),te=U||Y?{formLoading:J||ve,mutationResult:oe,onFinish:Q}:{formLoading:J||be,mutationResult:me,onFinish:W(async ee=>{if(ye(!1),!_)return;let se={id:L??"",values:ee,resource:F??_.name,mutationMode:q,undoableTimeout:y,successNotification:a,errorNotification:l,meta:{...A,...d},metaData:{...A,...d},dataProviderName:b,invalidates:g,optimisticUpdateMap:S},Ce=W(()=>{V({redirect:re,resource:_,id:L,meta:Ae(s,u)})},"onSuccess");return q!=="pessimistic"&&setTimeout(()=>{Ce()}),new Promise((_e,$e)=>(q!=="pessimistic"&&_e(),setTimeout(()=>{ke(se,{onSuccess:(X,Ee,De)=>{r&&r(X,ee,De),q==="pessimistic"&&Ce(),_e(X)},onError:(X,Ee,De)=>{if(o)return o(X,ee,De);$e()}})})))},"onFinishUpdate")},{elapsedTime:K}=mr({isLoading:te.mutationResult.isLoading||le.isFetching,interval:C==null?void 0:C.interval,onInterval:C==null?void 0:C.onInterval});return{...te,queryResult:le,onFinishAutoSave:ae,autoSaveProps:{status:ie.status,data:ie.data,error:ie.error},id:L,setId:z,redirect:(ee,se)=>{V({redirect:ee!==void 0?ee:G?"list":"edit",resource:_,id:se??L,meta:Ae(s,u)})},overtime:{elapsedTime:K}}},"useForm"),bK=W(()=>{let{show:e,edit:t,list:n,create:r}=Sn();return v.useCallback(({redirect:o,resource:i,id:a,meta:l={}})=>{if(o&&i)return i.show&&o==="show"&&a?e(i,a,void 0,l):i.edit&&o==="edit"&&a?t(i,a,void 0,l):i.create&&o==="create"?r(i,void 0,l):n(i,"push",l)},[])},"useRedirectionAfterSubmission"),Kp=W(()=>{let e=st(),{resource:t,resources:n}=Je(),r=Qo();return k.useCallback(({resource:o,action:i,meta:a})=>{var l;let s=o||t;if(!s)return;let u=(l=Jr(s,n,e==="legacy").find(c=>c.action===i))==null?void 0:l.route;return u?wo(u,s==null?void 0:s.meta,r,a):void 0},[n,t,r])},"useGetToPath"),hr=W(()=>{let e=v.useContext(Gp),{select:t}=Je(),n=Kp(),r=k.useMemo(()=>(e==null?void 0:e.go)??(()=>()=>{}),[e==null?void 0:e.go])();return v.useCallback(o=>{if(typeof o.to!="object")return r({...o,to:o.to});let{resource:i}=t(o.to.resource);xK(o.to,i);let a=n({resource:i,action:o.to.action,meta:{id:o.to.id,...o.to.meta}});return r({...o,to:a})},[t,r])},"useGo"),xK=W((e,t)=>{if(!(e!=null&&e.action)||!(e!=null&&e.resource))throw new Error('[useGo]: "action" or "resource" is required.');if(["edit","show","clone"].includes(e==null?void 0:e.action)&&!e.id)throw new Error(`[useGo]: [action: ${e.action}] requires an "id" for resource [resource: ${e.resource}]`);if(!t[e.action])throw new Error(`[useGo]: [action: ${e.action}] is not defined for [resource: ${e.resource}]`)},"handleResourceErrors"),uy=W(()=>{let e=v.useContext(Gp);return k.useMemo(()=>(e==null?void 0:e.back)??(()=>()=>{}),[e==null?void 0:e.back])()},"useBack"),Sn=W(()=>{let{resources:e}=Je(),t=st(),{useHistory:n}=Bt(),r=n(),o=Qo(),i=hr(),a=uy(),l=W((m,p="push")=>{t==="legacy"?r[p](m):i({to:m,type:p})},"handleUrl"),s=W((m,p={})=>{var h;if(t==="legacy"){let g=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,x=Jr(g,e,!0).find(w=>w.action==="create");return x?wo(x.route,g==null?void 0:g.meta,o,p):""}let y=typeof m=="string"?ur(m,e)??{name:m}:m,b=(h=Jr(y,e).find(g=>g.action==="create"))==null?void 0:h.route;return b?i({to:wo(b,y==null?void 0:y.meta,o,p),type:"path"}):""},"createUrl"),u=W((m,p,h={})=>{var y;let b=encodeURIComponent(p);if(t==="legacy"){let w=typeof m=="string"?ur(m,e,!0)??{name:m,route:m}:m,P=Jr(w,e,!0).find(C=>C.action==="edit");return P?wo(P.route,w==null?void 0:w.meta,o,{...h,id:b}):""}
Line truncated
|
||||
|
||||
If you don't use the \`setShowId\` method to set the \`showId\`, you should pass the \`id\` prop to \`useShow\`. Otherwise, \`useShow\` will not be able to infer the \`id\` from the current URL.
|
||||
|
||||
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=oD({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=mr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=qn(),x=aK(),w=aD(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(O=>{let R={succeeded:O.filter(_=>_.type==="success"),errored:O.filter(_=>_.type==="error")};i==null||i(R),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let M=W(({file:O})=>(E(),new Promise(R=>{h(!0),PL.parse(O,{complete:async({data:_})=>{let D=$q(_,n);if(m(D.length),o===1){let T=D.map(j=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:j,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:j}),"fn")),F=await bO(T,({response:j,value:$})=>(d(L=>L+1),{response:[j.data],type:"success",request:[$]}),(j,$)=>({response:[j],type:"error",request:[D[$]]}));R(F)}else{let T=JG(D,o),F=T.map($=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:$,currentBatchLength:$.length}),"fn")),j=await bO(F,({response:$,currentBatchLength:L,value:z})=>(d(B=>B+L),{response:$.data,type:"success",request:z}),($,L)=>({response:[$],type:"error",request:T[L]}));R(j)}},...r})}).then(R=>(S(R),R))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:O=>{O.target.files&&O.target.files.length>0&&M({file:O.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:M}},"useImport");var wK=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),mD=W(({resource:e,action:t,meta:n,legacy:r})=>Kp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Gn=W(()=>{let e=v.useContext(Gp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>k.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Pl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},CK=k.createContext(Pl),JS=CK,SK=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>k.createElement(JS.Provider,{value:{useHistory:t??Pl.useHistory,useLocation:n??Pl.useLocation,useParams:r??Pl.useParams,Prompt:o??Pl.Prompt,Link:i??Pl.Link,routes:a??Pl.routes}},e),"LegacyRouterContextProvider"),Bt=W(()=>{let e=v.useContext(JS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??Pl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),sa=k.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),EK=W(({can:e,children:t,options:n})=>k.createElement(sa.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),eE=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),Cu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(sa),{keys:a,preferLegacyKeys:l}=Wt(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=eE(c),m=Ho({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...xt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),PK=W(()=>{let{can:e}=k.useContext(sa);return{can:k.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?eE(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),kK=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:M,liveParams:O,meta:R,metaData:_,dataProviderN
Line truncated
|
||||
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),eg=W((e,t,n=!1)=>{let r=[],o=ts(e,t);for(;o;)r.push(o),o=ts(o,t);return r.reverse(),`/${[...r,e].map(i=>Wa((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),OK=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=ts(o,e);for(;a;)i.push(a),a=ts(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=eg(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),IO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),tE=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=Kp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Qo(),{useLocation:s}=Bt(),{pathname:u}=s(),c=aa(),d=`/${((o==="legacy"?IO(u):l?IO(l):void 0)??"").replace(/^\//,"")}`,f=i?eg(i,a,o==="legacy"):d??"",m=k.useMemo(()=>{if(!i)return[];let y=ts(i,a),b=[eg(i,a)];for(;y;)b.push(eg(y,a)),y=ts(y,a);return b},[]),p=k.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=k.useMemo(()=>{let y=OK(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),qn=W(()=>{let{params:e}=Qo();return W(({resource:t,meta:n}={})=>{let{meta:r}=eE(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=Cn(),o=hr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),k.createElement(k.Fragment,null,k.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&k.createElement("p",null,e),k.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var MK=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=zt(),{mutate:a}=Vp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return k.createElement(k.Fragment,null,k.createElement("h1",null,o("pages.login.title","Sign in your account")),k.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},k.createElement("table",null,k.createElement("tbody",null,k.createElement("tr",null,k.createElement("td",null,o("pages.login.username",void 0,"username"),":"),k.createElement("td",null,k.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),k.createElement("tr",null,k.createElement("td",null,o("pages.login.password",void 0,"password"),":"),k.createElement("td",null,k.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),k.createElement("br",null),k.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),RK=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Gn(),{Link:f}=Bt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=zt(),{mutate:C}=Vp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((O,R)=>k.createElement(m,{to:O},R),"renderLink"),S=W(()=>e?e.map(O=>k.createElement("div",{key:O.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},k.createElement("button",{onClick:()=>C({providerName:O.name}),style:{display:"flex",alignItems:"center"}},O==null?void 0:O.icon,O.label??k.createElement("label",null,O.label)))):null,"renderProviders"),M=k.createElement("div",{...o},k.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&k.createElement(k.Fragment,null,k.creat
Line truncated
|
||||
See https://refine.dev/docs/api-reference/core/hooks/show/useShow/#resource`);let w=iD({resource:m,id:b??"",queryOptions:{enabled:b!==void 0,...u},successNotification:n,errorNotification:r,meta:x,metaData:x,liveMode:a,onLiveEvent:l,dataProviderName:s}),{elapsedTime:P}=mr({isLoading:w.isFetching,interval:c==null?void 0:c.interval,onInterval:c==null?void 0:c.onInterval});return{queryResult:w,showId:b,setShowId:g,overtime:{elapsedTime:P}}},"useShow");W(({resourceName:e,resource:t,mapData:n=W(c=>c,"mapData"),paparseOptions:r,batchSize:o=Number.MAX_SAFE_INTEGER,onFinish:i,meta:a,metaData:l,onProgress:s,dataProviderName:u}={})=>{let[c,d]=v.useState(0),[f,m]=v.useState(0),[p,h]=v.useState(!1),{resource:y,identifier:b}=Je(t??e),g=qn(),x=aK(),w=lD(),P=g({resource:y,meta:Ae(a,l)}),C;o===1?C=w:C=x;let E=W(()=>{m(0),d(0),h(!1)},"handleCleanup"),S=W(O=>{let R={succeeded:O.filter(_=>_.type==="success"),errored:O.filter(_=>_.type==="error")};i==null||i(R),h(!1)},"handleFinish");v.useEffect(()=>{s==null||s({totalAmount:f,processedAmount:c})},[f,c]);let M=W(({file:O})=>(E(),new Promise(R=>{h(!0),kL.parse(O,{complete:async({data:_})=>{let D=$q(_,n);if(m(D.length),o===1){let T=D.map(j=>W(async()=>({response:await w.mutateAsync({resource:b??"",values:j,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:j}),"fn")),F=await xO(T,({response:j,value:$})=>(d(L=>L+1),{response:[j.data],type:"success",request:[$]}),(j,$)=>({response:[j],type:"error",request:[D[$]]}));R(F)}else{let T=JG(D,o),F=T.map($=>W(async()=>({response:await x.mutateAsync({resource:b??"",values:$,successNotification:!1,errorNotification:!1,dataProviderName:u,meta:P,metaData:P}),value:$,currentBatchLength:$.length}),"fn")),j=await xO(F,({response:$,currentBatchLength:L,value:z})=>(d(B=>B+L),{response:$.data,type:"success",request:z}),($,L)=>({response:[$],type:"error",request:T[L]}));R(j)}},...r})}).then(R=>(S(R),R))),"handleChange");return{inputProps:{type:"file",accept:".csv",onChange:O=>{O.target.files&&O.target.files.length>0&&M({file:O.target.files[0]})}},mutationResult:C,isLoading:p,handleChange:M}},"useImport");var wK=W(({defaultVisible:e=!1}={})=>{let[t,n]=v.useState(e),r=v.useCallback(()=>n(!0),[t]),o=v.useCallback(()=>n(!1),[t]);return{visible:t,show:r,close:o}},"useModal"),hD=W(({resource:e,action:t,meta:n,legacy:r})=>Kp()({resource:e,action:t,meta:n,legacy:r}),"useToPath"),Gn=W(()=>{let e=v.useContext(Gp);return e!=null&&e.Link?e.Link:W(({to:t,...n})=>k.createElement("a",{href:t,...n}),"FallbackLink")},"useLink"),Pl={useHistory:()=>!1,useLocation:()=>!1,useParams:()=>({}),Prompt:()=>null,Link:()=>null},CK=k.createContext(Pl),JS=CK,SK=W(({children:e,useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a})=>k.createElement(JS.Provider,{value:{useHistory:t??Pl.useHistory,useLocation:n??Pl.useLocation,useParams:r??Pl.useParams,Prompt:o??Pl.Prompt,Link:i??Pl.Link,routes:a??Pl.routes}},e),"LegacyRouterContextProvider"),Bt=W(()=>{let e=v.useContext(JS),{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}=e??Pl;return{useHistory:t,useLocation:n,useParams:r,Prompt:o,Link:i,routes:a}},"useRouterContext"),sa=k.createContext({options:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1}}}),EK=W(({can:e,children:t,options:n})=>k.createElement(sa.Provider,{value:{can:e,options:n?{...n,buttons:{enableAccessControl:!0,hideIfUnauthorized:!1,...n.buttons}}:{buttons:{enableAccessControl:!0,hideIfUnauthorized:!1},queryOptions:void 0}}},t),"AccessControlContextProvider"),eE=W(e=>{if(!e)return;let{icon:t,list:n,edit:r,create:o,show:i,clone:a,children:l,meta:s,options:u,...c}=e,{icon:d,...f}=s??{},{icon:m,...p}=u??{};return{...c,...s?{meta:f}:{},...u?{options:p}:{}}},"sanitizeResource"),Cu=W(({action:e,resource:t,params:n,queryOptions:r})=>{let{can:o,options:i}=v.useContext(sa),{keys:a,preferLegacyKeys:l}=Wt(),{queryOptions:s}=i||{},u={...s,...r},{resource:c,...d}=n??{},f=eE(c),m=Ho({queryKey:a().access().resource(t).action(e).params({params:{...d,resource:f},enabled:u==null?void 0:u.enabled}).get(l),queryFn:()=>(o==null?void 0:o({action:e,resource:t,params:{...d,resource:f}}))??Promise.resolve({can:!0}),enabled:typeof o<"u",...u,meta:{...u==null?void 0:u.meta,...xt()},retry:!1});return typeof o>"u"?{data:{can:!0}}:m},"useCan"),PK=W(()=>{let{can:e}=k.useContext(sa);return{can:k.useMemo(()=>e?W(async({params:t,...n})=>{let r=t!=null&&t.resource?eE(t.resource):void 0;return e({...n,...t?{params:{...t,resource:r}}:{}})},"canWithSanitizedResource"):void 0,[e])}},"useCanWithoutCache"),kK=W(e=>{let[t,n]=v.useState([]),[r,o]=v.useState([]),[i,a]=v.useState([]),{resource:l,sort:s,sorters:u,filters:c=[],optionLabel:d="title",optionValue:f="id",searchField:m=typeof d=="string"?d:"title",debounce:p=300,successNotification:h,errorNotification:y,defaultValueQueryOptions:b,queryOptions:g,fetchSize:x,pagination:w,hasPagination:P=!1,liveMode:C,defaultValue:E=[],onLiveEvent:S,onSearch:M,liveParams:O,meta:R,metaData:_,dataProviderN
Line truncated
|
||||
For more information, see https://refine.dev/docs/api-reference/core/hooks/useBreadcrumb/#i18n-support`),u.push({label:o(`buttons.${l}`,s.humanize(l))})):u.push({label:o(d,s.humanize(l))})}return{breadcrumbs:u}},"useBreadcrumb"),eg=W((e,t,n=!1)=>{let r=[],o=ts(e,t);for(;o;)r.push(o),o=ts(o,t);return r.reverse(),`/${[...r,e].map(i=>Wa((n?i.route:void 0)??i.identifier??i.name)).join("/").replace(/^\//,"")}`},"createResourceKey"),OK=W((e,t=!1)=>{let n={item:{name:"__root__"},children:{}};e.forEach(o=>{let i=[],a=ts(o,e);for(;a;)i.push(a),a=ts(a,e);i.reverse();let l=n;i.forEach(u=>{let c=(t?u.route:void 0)??u.identifier??u.name;l.children[c]||(l.children[c]={item:u,children:{}}),l=l.children[c]});let s=(t?o.route:void 0)??o.identifier??o.name;l.children[s]||(l.children[s]={item:o,children:{}})});let r=W(o=>{let i=[];return Object.keys(o.children).forEach(a=>{let l=eg(o.children[a].item,e,t),s={...o.children[a].item,key:l,children:r(o.children[a])};i.push(s)}),i},"flatten");return r(n)},"createTree"),OO=W(e=>e.split("?")[0].split("#")[0].replace(/(.+)(\/$)/,"$1"),"getCleanPath"),tE=W(({meta:e,hideOnMissingParameter:t}={hideOnMissingParameter:!0})=>{let n=Qe(),r=Kp(),o=st(),{resource:i,resources:a}=Je(),{pathname:l}=Qo(),{useLocation:s}=Bt(),{pathname:u}=s(),c=aa(),d=`/${((o==="legacy"?OO(u):l?OO(l):void 0)??"").replace(/^\//,"")}`,f=i?eg(i,a,o==="legacy"):d??"",m=k.useMemo(()=>{if(!i)return[];let y=ts(i,a),b=[eg(i,a)];for(;y;)b.push(eg(y,a)),y=ts(y,a);return b},[]),p=k.useCallback(y=>{var b,g,x,w,P,C;if((((b=y==null?void 0:y.meta)==null?void 0:b.hide)??((g=y==null?void 0:y.options)==null?void 0:g.hide))||!(y!=null&&y.list)&&y.children.length===0)return;let E=y.list?r({resource:y,action:"list",legacy:o==="legacy",meta:e}):void 0;if(!(t&&E&&E.match(/(\/|^):(.+?)(\/|$){1}/)))return{...y,route:E,icon:Ae((x=y.meta)==null?void 0:x.icon,(w=y.options)==null?void 0:w.icon,y.icon),label:Ae((P=y==null?void 0:y.meta)==null?void 0:P.label,(C=y==null?void 0:y.options)==null?void 0:C.label)??n(`${y.name}.${y.name}`,c(y.name,"plural"))}},[o,e,r,n,t]),h=k.useMemo(()=>{let y=OK(a,o==="legacy"),b=W(g=>g.flatMap(x=>{let w=b(x.children),P=p({...x,children:w});return P?[P]:[]}),"prepare");return b(y)},[a,o,p]);return{defaultOpenKeys:m,selectedKey:f,menuItems:h}},"useMenu"),qn=W(()=>{let{params:e}=Qo();return W(({resource:t,meta:n}={})=>{let{meta:r}=eE(t)??{meta:{}},{filters:o,sorters:i,current:a,pageSize:l,...s}=e??{};return{...r,...s,...n}},"getMetaFn")},"useMeta");W(()=>{let[e,t]=v.useState(),n=Qe(),{push:r}=Sn(),o=hr(),i=st(),{resource:a,action:l}=Je();return v.useEffect(()=>{a&&l&&t(n("pages.error.info",{action:l,resource:a.name},`You may have forgotten to add the "${l}" component to "${a.name}" resource.`))},[a,l]),k.createElement(k.Fragment,null,k.createElement("h1",null,n("pages.error.404",void 0,"Sorry, the page you visited does not exist.")),e&&k.createElement("p",null,e),k.createElement("button",{onClick:()=>{i==="legacy"?r("/"):o({to:"/"})}},n("pages.error.backHome",void 0,"Back Home")))},"ErrorComponent");var MK=W(()=>{let[e,t]=v.useState(""),[n,r]=v.useState(""),o=Qe(),i=zt(),{mutate:a}=Vp({v3LegacyAuthProviderCompatible:!!(i!=null&&i.isLegacy)});return k.createElement(k.Fragment,null,k.createElement("h1",null,o("pages.login.title","Sign in your account")),k.createElement("form",{onSubmit:l=>{l.preventDefault(),a({username:e,password:n})}},k.createElement("table",null,k.createElement("tbody",null,k.createElement("tr",null,k.createElement("td",null,o("pages.login.username",void 0,"username"),":"),k.createElement("td",null,k.createElement("input",{type:"text",size:20,autoCorrect:"off",spellCheck:!1,autoCapitalize:"off",autoFocus:!0,required:!0,value:e,onChange:l=>t(l.target.value)}))),k.createElement("tr",null,k.createElement("td",null,o("pages.login.password",void 0,"password"),":"),k.createElement("td",null,k.createElement("input",{type:"password",required:!0,size:20,value:n,onChange:l=>r(l.target.value)}))))),k.createElement("br",null),k.createElement("input",{type:"submit",value:"login"})))},"LoginPage"),RK=W(({providers:e,registerLink:t,forgotPasswordLink:n,rememberMe:r,contentProps:o,wrapperProps:i,renderContent:a,formProps:l,title:s=void 0,hideForm:u})=>{let c=st(),d=Gn(),{Link:f}=Bt(),m=c==="legacy"?f:d,[p,h]=v.useState(""),[y,b]=v.useState(""),[g,x]=v.useState(!1),w=Qe(),P=zt(),{mutate:C}=Vp({v3LegacyAuthProviderCompatible:!!(P!=null&&P.isLegacy)}),E=W((O,R)=>k.createElement(m,{to:O},R),"renderLink"),S=W(()=>e?e.map(O=>k.createElement("div",{key:O.name,style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"1rem"}},k.createElement("button",{onClick:()=>C({providerName:O.name}),style:{display:"flex",alignItems:"center"}},O==null?void 0:O.icon,O.label??k.createElement("label",null,O.label)))):null,"renderProviders"),M=k.createElement("div",{...o},k.createElement("h1",{style:{textAlign:"center"}},w("pages.login.title","Sign in to your account")),S(),!u&&k.createElement(k.Fragment,null,k.creat
Line truncated
|
||||
`,`
|
||||
`,k.createElement("span",{style:{color:"#FF7B72"}},"export")," ",k.createElement("span",{style:{color:"#FF7B72"}},"default")," ",k.createElement("span",null,k.createElement("span",{style:{color:"#FF7B72"}},"function")," ",k.createElement("span",{style:{color:"#FFA657"}},"App"),"(",k.createElement("span",{style:{color:"rgb(222, 147, 95)"}}),")"," "),"{",`
|
||||
`," ",k.createElement("span",{style:{color:"#FF7B72"}},"return")," (",`
|
||||
@@ -100,7 +100,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
`," ",k.createElement("span",{style:{opacity:.6}},"{","/* ... */","}"),`
|
||||
`," ",k.createElement("span",{style:{color:"#79C0FF"}},"</",k.createElement("span",{style:{color:"#79C0FF"}},"Refine"),">")),`
|
||||
`," ",");",`
|
||||
`,"}"),"ExampleImplementation"),BK=W(e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},k.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),k.createElement("defs",null,k.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userS
Line truncated
|
||||
`,"}"),"ExampleImplementation"),BK=W(e=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:204,height:56,viewBox:"0 0 204 56",fill:"none",...e},k.createElement("path",{fill:"url(#welcome-page-error-gradient-a)",d:"M12 0H0v12L12 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-b)",d:"M28 0h-8L0 20v8L28 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-c)",d:"M36 0h8L0 44v-8L36 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-d)",d:"M60 0h-8L0 52v4h4L60 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-e)",d:"M68 0h8L20 56h-8L68 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-f)",d:"M92 0h-8L28 56h8L92 0Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-g)",d:"M100 0h8L52 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-h)",d:"M124 0h-8L60 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-i)",d:"M140 0h-8L76 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-j)",d:"M132 0h8L84 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-k)",d:"M156 0h-8L92 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-l)",d:"M164 0h8l-56 56h-8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-m)",d:"M188 0h-8l-56 56h8l56-56Z"}),k.createElement("path",{fill:"url(#welcome-page-error-gradient-n)",d:"M204 0h-8l-56 56h8l56-56Z"}),k.createElement("defs",null,k.createElement("radialGradient",{id:"welcome-page-error-gradient-a",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-b",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-c",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-d",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-e",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-f",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-g",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-h",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-i",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-j",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-k",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-l",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#FF4C4D",stopOpacity:.1}),k.createElement("stop",{offset:1,stopColor:"#FF4C4D",stopOpacity:0})),k.createElement("radialGradient",{id:"welcome-page-error-gradient-m",cx:0,cy:0,r:1,gradientTransform:"scale(124)",gradientUnits:"userS
Line truncated
|
||||
.bg-top-announcement {
|
||||
border-bottom: 1px solid rgba(71, 235, 235, 0.15);
|
||||
background: radial-gradient(
|
||||
@@ -139,20 +139,20 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
`],aQ="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),iQ.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),k.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},k.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),k.createElement(ih,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),k.createElement(OO,{style:{position:"absolute",right:"10px"},id:"3"})),k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),k.createElement(ih,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),k.createElement(OO,{style:{position:"absolute",right:"-70px"},id:"6"})))),k.createElement(lQ,{text:aQ})))),"GitHubBanner");var lQ=W(({text:e})=>k.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},k.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),k.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),ih=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),OO=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),sQ=W(({status:e,elements:{success:t=k.createElement(ah,{key:"autoSave.success",defaultMessage:"saved"}),error:n=k.createElement(ah,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=k.createElement(ah,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=k.createElement(ah,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return k.createElement(k.Fragment,null,t);case"error":return k.createElement(k.Fragment,null,n);case"loading":return k.createElement(k.Fragment,null,r);default:return k.createElement(k.Fragment,null,o)}},"AutoSaveIndicator"),ah=W(({key:e,defaultMessage:t})=>{let n=Qe();return k.createElement("span",null,n(e,t))},"Message"),Zn={},kt={},xw=we&&we.__assign||function(){return xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xw.apply(this,arguments)},uQ=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cQ=we&&we.__setModuleDefault||(Object.create?function(e,t){O
Line truncated
|
||||
`],aQ="If you find Refine useful, you can contribute to its growth by giving it a star on GitHub";W(()=>(v.useEffect(()=>{let e=document.createElement("style");document.head.appendChild(e),iQ.forEach(t=>{var n;return(n=e.sheet)==null?void 0:n.insertRule(t,e.sheet.cssRules.length)})},[]),k.createElement("div",{className:"banner bg-top-announcement",style:{width:"100%",height:"48px"}},k.createElement("div",{style:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",paddingLeft:"200px",width:"100%",maxWidth:"100vw",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{className:"top-announcement-mask",style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",borderBottom:"1px solid #47ebeb26"}},k.createElement("div",{style:{position:"relative",width:"960px",height:"100%",display:"flex",justifyContent:"space-between",margin:"0 auto"}},k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"1.5s",position:"absolute",top:"2px",right:"220px"},id:"1"}),k.createElement(ih,{style:{animationDelay:"1s",position:"absolute",top:"8px",right:"100px",transform:"rotate(180deg)"},id:"2"}),k.createElement(MO,{style:{position:"absolute",right:"10px"},id:"3"})),k.createElement("div",{style:{width:"calc(50% - 300px)",height:"100%",position:"relative"}},k.createElement(ih,{style:{animationDelay:"2s",position:"absolute",top:"6px",right:"180px",transform:"rotate(180deg)"},id:"4"}),k.createElement(ih,{style:{animationDelay:"0.5s",transitionDelay:"1.3s",position:"absolute",top:"2px",right:"40px"},id:"5"}),k.createElement(MO,{style:{position:"absolute",right:"-70px"},id:"6"})))),k.createElement(lQ,{text:aQ})))),"GitHubBanner");var lQ=W(({text:e})=>k.createElement("a",{className:"gh-link",href:"https://s.refine.dev/github-support",target:"_blank",rel:"noreferrer",style:{position:"absolute",height:"100%",padding:"0 60px",display:"flex",flexWrap:"nowrap",whiteSpace:"nowrap",justifyContent:"center",alignItems:"center",backgroundImage:"linear-gradient(90deg, rgba(31, 63, 72, 0.00) 0%, #1F3F48 10%, #1F3F48 90%, rgba(31, 63, 72, 0.00) 100%)"}},k.createElement("div",{style:{color:"#fff",display:"flex",flexDirection:"row",gap:"8px"}},k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"),k.createElement("span",{className:"text",style:{fontSize:"16px",lineHeight:"24px"}},e),k.createElement("span",{style:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"}},"⭐️"))),"Text"),ih=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:80,height:40,fill:"none",style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:40,r:40,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 40 -40 0 40 0)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowSmall"),MO=W(({style:e,...t})=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:120,height:48,fill:"none",...t,style:{opacity:1,animation:"top-announcement-glow 1s ease-in-out infinite alternate",...e}},k.createElement("circle",{cx:60,cy:24,r:60,fill:`url(#${t.id}-a)`,fillOpacity:.5}),k.createElement("defs",null,k.createElement("radialGradient",{id:`${t.id}-a`,cx:0,cy:0,r:1,gradientTransform:"matrix(0 60 -60 0 60 24)",gradientUnits:"userSpaceOnUse"},k.createElement("stop",{stopColor:"#47EBEB"}),k.createElement("stop",{offset:1,stopColor:"#47EBEB",stopOpacity:0})))),"GlowBig"),sQ=W(({status:e,elements:{success:t=k.createElement(ah,{key:"autoSave.success",defaultMessage:"saved"}),error:n=k.createElement(ah,{key:"autoSave.error",defaultMessage:"auto save failure"}),loading:r=k.createElement(ah,{key:"autoSave.loading",defaultMessage:"saving..."}),idle:o=k.createElement(ah,{key:"autoSave.idle",defaultMessage:"waiting for changes"})}={}})=>{switch(e){case"success":return k.createElement(k.Fragment,null,t);case"error":return k.createElement(k.Fragment,null,n);case"loading":return k.createElement(k.Fragment,null,r);default:return k.createElement(k.Fragment,null,o)}},"AutoSaveIndicator"),ah=W(({key:e,defaultMessage:t})=>{let n=Qe();return k.createElement("span",null,n(e,t))},"Message"),Zn={},kt={},xw=we&&we.__assign||function(){return xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},xw.apply(this,arguments)},uQ=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),cQ=we&&we.__setModuleDefault||(Object.create?function(e,t){O
Line truncated
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var Kn=typeof Symbol=="function"&&Symbol.for,dE=Kn?Symbol.for("react.element"):60103,fE=Kn?Symbol.for("react.portal"):60106,Sy=Kn?Symbol.for("react.fragment"):60107,Ey=Kn?Symbol.for("react.strict_mode"):60108,Py=Kn?Symbol.for("react.profiler"):60114,ky=Kn?Symbol.for("react.provider"):60109,$y=Kn?Symbol.for("react.context"):60110,pE=Kn?Symbol.for("react.async_mode"):60111,Iy=Kn?Symbol.for("react.concurrent_mode"):60111,Oy=Kn?Symbol.for("react.forward_ref"):60112,My=Kn?Symbol.for("react.suspense"):60113,zZ=Kn?Symbol.for("react.suspense_list"):60120,Ry=Kn?Symbol.for("react.memo"):60115,Ty=Kn?Symbol.for("react.lazy"):60116,BZ=Kn?Symbol.for("react.block"):60121,HZ=Kn?Symbol.for("react.fundamental"):60117,VZ=Kn?Symbol.for("react.responder"):60118,UZ=Kn?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dE:switch(e=e.type,e){case pE:case Iy:case Sy:case Py:case Ey:case My:return e;default:switch(e=e&&e.$$typeof,e){case $y:case Oy:case Ty:case Ry:case ky:return e;default:return t}}case fE:return t}}}function rN(e){return go(e)===Iy}At.AsyncMode=pE;At.ConcurrentMode=Iy;At.ContextConsumer=$y;At.ContextProvider=ky;At.Element=dE;At.ForwardRef=Oy;At.Fragment=Sy;At.Lazy=Ty;At.Memo=Ry;At.Portal=fE;At.Profiler=Py;At.StrictMode=Ey;At.Suspense=My;At.isAsyncMode=function(e){return rN(e)||go(e)===pE};At.isConcurrentMode=rN;At.isContextConsumer=function(e){return go(e)===$y};At.isContextProvider=function(e){return go(e)===ky};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dE};At.isForwardRef=function(e){return go(e)===Oy};At.isFragment=function(e){return go(e)===Sy};At.isLazy=function(e){return go(e)===Ty};At.isMemo=function(e){return go(e)===Ry};At.isPortal=function(e){return go(e)===fE};At.isProfiler=function(e){return go(e)===Py};At.isStrictMode=function(e){return go(e)===Ey};At.isSuspense=function(e){return go(e)===My};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sy||e===Iy||e===Py||e===Ey||e===My||e===zZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ty||e.$$typeof===Ry||e.$$typeof===ky||e.$$typeof===$y||e.$$typeof===Oy||e.$$typeof===HZ||e.$$typeof===VZ||e.$$typeof===UZ||e.$$typeof===BZ)};At.typeOf=go;nN.exports=At;var WZ=nN.exports,oN=WZ,GZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iN={};iN[oN.ForwardRef]=GZ;iN[oN.Memo]=qZ;var KZ=!0;function QZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var aN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||KZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},lN=function(t,n,r){aN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function YZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZZ=/[A-Z]|^ms/g,JZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sN=function(t){return t.charCodeAt(1)===45},qO=function(t){return t!=null&&typeof t!="boolean"},e1=qD(function(e){return sN(e)?e:e.replace(ZZ,"-$&").toLowerCase()}),KO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JZ,function(r,o,i){return Di={name:o,styles:i,next:Di},o})}return XZ[t]!==1&&!sN(t)&&typeof n=="number"&&n!==0?n+"px":n};function bp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Di={name:n.name,styles:n.styles,next:Di},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Di={name:r.name,styles:r.styles,next:Di},r=r.next;var o=n.styles+";";return o}return eJ(e,t,n)}case"function":{if(e!==void 0){var i=Di,a=n(e);return Di=i,bp(e,t,a)}break}}if(t==null)return n;Line truncated
|
||||
*/var Kn=typeof Symbol=="function"&&Symbol.for,dE=Kn?Symbol.for("react.element"):60103,fE=Kn?Symbol.for("react.portal"):60106,Sy=Kn?Symbol.for("react.fragment"):60107,Ey=Kn?Symbol.for("react.strict_mode"):60108,Py=Kn?Symbol.for("react.profiler"):60114,ky=Kn?Symbol.for("react.provider"):60109,$y=Kn?Symbol.for("react.context"):60110,pE=Kn?Symbol.for("react.async_mode"):60111,Iy=Kn?Symbol.for("react.concurrent_mode"):60111,Oy=Kn?Symbol.for("react.forward_ref"):60112,My=Kn?Symbol.for("react.suspense"):60113,zZ=Kn?Symbol.for("react.suspense_list"):60120,Ry=Kn?Symbol.for("react.memo"):60115,Ty=Kn?Symbol.for("react.lazy"):60116,BZ=Kn?Symbol.for("react.block"):60121,HZ=Kn?Symbol.for("react.fundamental"):60117,VZ=Kn?Symbol.for("react.responder"):60118,UZ=Kn?Symbol.for("react.scope"):60119;function go(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dE:switch(e=e.type,e){case pE:case Iy:case Sy:case Py:case Ey:case My:return e;default:switch(e=e&&e.$$typeof,e){case $y:case Oy:case Ty:case Ry:case ky:return e;default:return t}}case fE:return t}}}function oN(e){return go(e)===Iy}At.AsyncMode=pE;At.ConcurrentMode=Iy;At.ContextConsumer=$y;At.ContextProvider=ky;At.Element=dE;At.ForwardRef=Oy;At.Fragment=Sy;At.Lazy=Ty;At.Memo=Ry;At.Portal=fE;At.Profiler=Py;At.StrictMode=Ey;At.Suspense=My;At.isAsyncMode=function(e){return oN(e)||go(e)===pE};At.isConcurrentMode=oN;At.isContextConsumer=function(e){return go(e)===$y};At.isContextProvider=function(e){return go(e)===ky};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dE};At.isForwardRef=function(e){return go(e)===Oy};At.isFragment=function(e){return go(e)===Sy};At.isLazy=function(e){return go(e)===Ty};At.isMemo=function(e){return go(e)===Ry};At.isPortal=function(e){return go(e)===fE};At.isProfiler=function(e){return go(e)===Py};At.isStrictMode=function(e){return go(e)===Ey};At.isSuspense=function(e){return go(e)===My};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sy||e===Iy||e===Py||e===Ey||e===My||e===zZ||typeof e=="object"&&e!==null&&(e.$$typeof===Ty||e.$$typeof===Ry||e.$$typeof===ky||e.$$typeof===$y||e.$$typeof===Oy||e.$$typeof===HZ||e.$$typeof===VZ||e.$$typeof===UZ||e.$$typeof===BZ)};At.typeOf=go;rN.exports=At;var WZ=rN.exports,iN=WZ,GZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qZ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},aN={};aN[iN.ForwardRef]=GZ;aN[iN.Memo]=qZ;var KZ=!0;function QZ(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var lN=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||KZ===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},sN=function(t,n,r){lN(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function YZ(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var XZ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ZZ=/[A-Z]|^ms/g,JZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uN=function(t){return t.charCodeAt(1)===45},KO=function(t){return t!=null&&typeof t!="boolean"},e1=KD(function(e){return uN(e)?e:e.replace(ZZ,"-$&").toLowerCase()}),QO=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JZ,function(r,o,i){return Di={name:o,styles:i,next:Di},o})}return XZ[t]!==1&&!uN(t)&&typeof n=="number"&&n!==0?n+"px":n};function bp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Di={name:n.name,styles:n.styles,next:Di},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Di={name:r.name,styles:r.styles,next:Di},r=r.next;var o=n.styles+";";return o}return eJ(e,t,n)}case"function":{if(e!==void 0){var i=Di,a=n(e);return Di=i,bp(e,t,a)}break}}if(t==null)return n;Line truncated
|
||||
* @mui/styled-engine v5.15.11
|
||||
*
|
||||
* @license MIT
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/function hE(e,t){return Fw(e,t)}const pN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fJ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:fN,StyledEngineProvider:cJ,ThemeContext:Zp,css:Xc,default:hE,internal_processStyles:pN,keyframes:ps},Symbol.toStringTag,{value:"Module"}));function Ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mN(e){if(!Ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=mN(e[n])}),t}function Ir(e,t,n={clone:!0}){const r=n.clone?I({},e):e;return Ia(e)&&Ia(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ia(t[o])&&o in e&&Ia(e[o])?r[o]=Ir(e[o],t[o],n):n.clone?r[o]=Ia(t[o])?mN(t[o]):t[o]:r[o]=t[o])}),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,default:Ir,isPlainObject:Ia},Symbol.toStringTag,{value:"Module"})),mJ=["values","unit","step"],hJ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>I({},n,{[r.key]:r.val}),{})};function hN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,mJ),i=hJ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return I({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const gJ={borderRadius:4},vJ=gJ;function Df(e,t){return t?Ir(e,t,{clone:!1}):e}const gE={xs:0,sm:600,md:900,lg:1200,xl:1536},JO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gE[e]}px)`};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||JO;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||JO;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||gE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function gN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function yJ(e,...t){const n=gN(e),r=[n,...t].reduce((o,i)=>Ir(o,i),{});return vN(Object.keys(n),r)}function bJ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Gs({values:e,breakpoints:t,base:n}){const r=n||bJ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(qa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const xJ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Zc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function av(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Zc(e,n)||r,t&&(o=t(o,r,e)),o}function Sn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Zc(s,r)||{};return Gr(a,l,d=>{let f=av(u,o,d);return d===f&&typeof d=="string"&&(f=av(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function wJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const CJ={m:"margin",p:"padding"},SJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},eM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},EJ=wJ(e=>{if(e.length>2)if(eM[e])e=eM[e];else return[e];const[t,n]=e.split(""),r=CJ[t],o=SJ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...yE];function Jp(e,t,n,Line truncated
|
||||
*/function hE(e,t){return Fw(e,t)}const mN=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fJ=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:pN,StyledEngineProvider:cJ,ThemeContext:Zp,css:Xc,default:hE,internal_processStyles:mN,keyframes:ps},Symbol.toStringTag,{value:"Module"}));function Ia(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function hN(e){if(!Ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=hN(e[n])}),t}function Ir(e,t,n={clone:!0}){const r=n.clone?I({},e):e;return Ia(e)&&Ia(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Ia(t[o])&&o in e&&Ia(e[o])?r[o]=Ir(e[o],t[o],n):n.clone?r[o]=Ia(t[o])?hN(t[o]):t[o]:r[o]=t[o])}),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,default:Ir,isPlainObject:Ia},Symbol.toStringTag,{value:"Module"})),mJ=["values","unit","step"],hJ=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>I({},n,{[r.key]:r.val}),{})};function gN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ue(e,mJ),i=hJ(t),a=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,m){const p=a.indexOf(m);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:m)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function d(f){const m=a.indexOf(f);return m===0?l(a[1]):m===a.length-1?s(a[m]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return I({keys:a,values:i,up:l,down:s,between:u,only:c,not:d,unit:n},o)}const gJ={borderRadius:4},vJ=gJ;function Df(e,t){return t?Ir(e,t,{clone:!1}):e}const gE={xs:0,sm:600,md:900,lg:1200,xl:1536},eM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gE[e]}px)`};function Gr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||eM;return t.reduce((a,l,s)=>(a[i.up(i.keys[s])]=n(t[s]),a),{})}if(typeof t=="object"){const i=r.breakpoints||eM;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||gE).indexOf(l)!==-1){const s=i.up(l);a[s]=n(t[l],l)}else{const s=l;a[s]=t[s]}return a},{})}return n(t)}function vN(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function yN(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function yJ(e,...t){const n=vN(e),r=[n,...t].reduce((o,i)=>Ir(o,i),{});return yN(Object.keys(n),r)}function bJ(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Gs({values:e,breakpoints:t,base:n}){const r=n||bJ(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,s)=>(Array.isArray(e)?(a[l]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function pe(e){if(typeof e!="string")throw new Error(qa(7));return e.charAt(0).toUpperCase()+e.slice(1)}const xJ=Object.freeze(Object.defineProperty({__proto__:null,default:pe},Symbol.toStringTag,{value:"Module"}));function Zc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function av(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Zc(e,n)||r,t&&(o=t(o,r,e)),o}function En(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],s=a.theme,u=Zc(s,r)||{};return Gr(a,l,d=>{let f=av(u,o,d);return d===f&&typeof d=="string"&&(f=av(u,o,`${t}${d==="default"?"":pe(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function wJ(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const CJ={m:"margin",p:"padding"},SJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},EJ=wJ(e=>{if(e.length>2)if(tM[e])e=tM[e];else return[e];const[t,n]=e.split(""),r=CJ[t],o=SJ[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),vE=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yE=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...vE,...yE];function Jp(e,t,n,Line truncated
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
@@ -160,11 +160,11 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var CE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),zy=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),Vy=Symbol.for("react.context"),bee=Symbol.for("react.server_context"),Uy=Symbol.for("react.forward_ref"),Wy=Symbol.for("react.suspense"),Gy=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),Ky=Symbol.for("react.lazy"),xee=Symbol.for("react.offscreen"),kN;kN=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CE:switch(e=e.type,e){case jy:case By:case zy:case Wy:case Gy:return e;default:switch(e=e&&e.$$typeof,e){case bee:case Vy:case Uy:case Ky:case qy:case Hy:return e;default:return t}}case SE:return t}}}Lt.ContextConsumer=Vy;Lt.ContextProvider=Hy;Lt.Element=CE;Lt.ForwardRef=Uy;Lt.Fragment=jy;Lt.Lazy=Ky;Lt.Memo=qy;Lt.Portal=SE;Lt.Profiler=By;Lt.StrictMode=zy;Lt.Suspense=Wy;Lt.SuspenseList=Gy;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Zo(e)===Vy};Lt.isContextProvider=function(e){return Zo(e)===Hy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CE};Lt.isForwardRef=function(e){return Zo(e)===Uy};Lt.isFragment=function(e){return Zo(e)===jy};Lt.isLazy=function(e){return Zo(e)===Ky};Lt.isMemo=function(e){return Zo(e)===qy};Lt.isPortal=function(e){return Zo(e)===SE};Lt.isProfiler=function(e){return Zo(e)===By};Lt.isStrictMode=function(e){return Zo(e)===zy};Lt.isSuspense=function(e){return Zo(e)===Wy};Lt.isSuspenseList=function(e){return Zo(e)===Gy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jy||e===By||e===zy||e===Wy||e===Gy||e===xee||typeof e=="object"&&e!==null&&(e.$$typeof===Ky||e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===Vy||e.$$typeof===Uy||e.$$typeof===kN||e.getModuleId!==void 0)};Lt.typeOf=Zo;PN.exports=Lt;var nM=PN.exports;const wee=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function $N(e){const t=`${e}`.match(wee);return t&&t[1]||""}function IN(e,t=""){return e.displayName||e.name||$N(e)||t}function rM(e,t,n){const r=IN(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Cee(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return IN(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nM.ForwardRef:return rM(e,e.render,"ForwardRef");case nM.Memo:return rM(e,e.type,"memo");default:return}}}const See=Object.freeze(Object.defineProperty({__proto__:null,default:Cee,getFunctionName:$N},Symbol.toStringTag,{value:"Module"})),Eee=["ownerState"],Pee=["variants"],kee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $ee(e){return Object.keys(e).length===0}function Iee(e){return typeof e=="string"&&e.charCodeAt(0)>96}function t1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oee=wd(),Mee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ch({defaultTheme:e,theme:t,themeId:n}){return $ee(t)?e:t[n]||t}function Ree(e){return e?(t,n)=>n[e]:null}function og(e,t){let{ownerState:n}=t,r=ue(t,Eee);const o=typeof e=="function"?e(I({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>og(i,I({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,Pee);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(I({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(I({ownerState:n},r,n)):s.style))}),l}return o}function Tee(e={}){const{themeId:t,defaultTheme:n=Oee,rootShouldForwardProp:r=t1,slotShouldForwardProp:o=t1}=e,i=a=>tm(I({},a,{theme:ch(I({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{pN(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Ree(Mee(u))}=l,m=ue(l,kee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=t1;u==="Root"||u==="root"?b=r:u?b=o:Iee(a)&&(b=void 0);const g=hE(a,I({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||Ia(P)?C=>og(P,I({},C,{theme:ch({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(R=>{const _=ch(I({},R,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,j])=>{T[F]=og(j,I({},R,{theme:_}))}),f(R,T)}),s&&!p&&S.push(R=>{var _;const D=ch(I({},R,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return og({variants:T},I({},R,{theme:D}))}),h||S.push(i);const M=S.length-C.length;if(Array.isArray(P)&&M>0){const R=new Array(M).fill("");E=[...P,...R],E.raw=[...P.raw,...R]}const O=g(E,...S);return a.muiName&&(O.muiName=a.muiLine truncated
|
||||
*/var CE=Symbol.for("react.element"),SE=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),zy=Symbol.for("react.strict_mode"),By=Symbol.for("react.profiler"),Hy=Symbol.for("react.provider"),Vy=Symbol.for("react.context"),bee=Symbol.for("react.server_context"),Uy=Symbol.for("react.forward_ref"),Wy=Symbol.for("react.suspense"),Gy=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),Ky=Symbol.for("react.lazy"),xee=Symbol.for("react.offscreen"),$N;$N=Symbol.for("react.module.reference");function Zo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case CE:switch(e=e.type,e){case jy:case By:case zy:case Wy:case Gy:return e;default:switch(e=e&&e.$$typeof,e){case bee:case Vy:case Uy:case Ky:case qy:case Hy:return e;default:return t}}case SE:return t}}}Lt.ContextConsumer=Vy;Lt.ContextProvider=Hy;Lt.Element=CE;Lt.ForwardRef=Uy;Lt.Fragment=jy;Lt.Lazy=Ky;Lt.Memo=qy;Lt.Portal=SE;Lt.Profiler=By;Lt.StrictMode=zy;Lt.Suspense=Wy;Lt.SuspenseList=Gy;Lt.isAsyncMode=function(){return!1};Lt.isConcurrentMode=function(){return!1};Lt.isContextConsumer=function(e){return Zo(e)===Vy};Lt.isContextProvider=function(e){return Zo(e)===Hy};Lt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===CE};Lt.isForwardRef=function(e){return Zo(e)===Uy};Lt.isFragment=function(e){return Zo(e)===jy};Lt.isLazy=function(e){return Zo(e)===Ky};Lt.isMemo=function(e){return Zo(e)===qy};Lt.isPortal=function(e){return Zo(e)===SE};Lt.isProfiler=function(e){return Zo(e)===By};Lt.isStrictMode=function(e){return Zo(e)===zy};Lt.isSuspense=function(e){return Zo(e)===Wy};Lt.isSuspenseList=function(e){return Zo(e)===Gy};Lt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===jy||e===By||e===zy||e===Wy||e===Gy||e===xee||typeof e=="object"&&e!==null&&(e.$$typeof===Ky||e.$$typeof===qy||e.$$typeof===Hy||e.$$typeof===Vy||e.$$typeof===Uy||e.$$typeof===$N||e.getModuleId!==void 0)};Lt.typeOf=Zo;kN.exports=Lt;var rM=kN.exports;const wee=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function IN(e){const t=`${e}`.match(wee);return t&&t[1]||""}function ON(e,t=""){return e.displayName||e.name||IN(e)||t}function oM(e,t,n){const r=ON(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Cee(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ON(e,"Component");if(typeof e=="object")switch(e.$$typeof){case rM.ForwardRef:return oM(e,e.render,"ForwardRef");case rM.Memo:return oM(e,e.type,"memo");default:return}}}const See=Object.freeze(Object.defineProperty({__proto__:null,default:Cee,getFunctionName:IN},Symbol.toStringTag,{value:"Module"})),Eee=["ownerState"],Pee=["variants"],kee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $ee(e){return Object.keys(e).length===0}function Iee(e){return typeof e=="string"&&e.charCodeAt(0)>96}function t1(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oee=wd(),Mee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ch({defaultTheme:e,theme:t,themeId:n}){return $ee(t)?e:t[n]||t}function Ree(e){return e?(t,n)=>n[e]:null}function og(e,t){let{ownerState:n}=t,r=ue(t,Eee);const o=typeof e=="function"?e(I({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>og(i,I({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=ue(o,Pee);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props(I({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof s.style=="function"?s.style(I({ownerState:n},r,n)):s.style))}),l}return o}function Tee(e={}){const{themeId:t,defaultTheme:n=Oee,rootShouldForwardProp:r=t1,slotShouldForwardProp:o=t1}=e,i=a=>tm(I({},a,{theme:ch(I({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{mN(a,P=>P.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Ree(Mee(u))}=l,m=ue(l,kee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=d||!1;let y,b=t1;u==="Root"||u==="root"?b=r:u?b=o:Iee(a)&&(b=void 0);const g=hE(a,I({shouldForwardProp:b,label:y},m)),x=P=>typeof P=="function"&&P.__emotion_real!==P||Ia(P)?C=>og(P,I({},C,{theme:ch({theme:C.theme,defaultTheme:n,themeId:t})})):P,w=(P,...C)=>{let E=x(P);const S=C?C.map(x):[];s&&f&&S.push(R=>{const _=ch(I({},R,{defaultTheme:n,themeId:t}));if(!_.components||!_.components[s]||!_.components[s].styleOverrides)return null;const D=_.components[s].styleOverrides,T={};return Object.entries(D).forEach(([F,j])=>{T[F]=og(j,I({},R,{theme:_}))}),f(R,T)}),s&&!p&&S.push(R=>{var _;const D=ch(I({},R,{defaultTheme:n,themeId:t})),T=D==null||(_=D.components)==null||(_=_[s])==null?void 0:_.variants;return og({variants:T},I({},R,{theme:D}))}),h||S.push(i);const M=S.length-C.length;if(Array.isArray(P)&&M>0){const R=new Array(M).fill("");E=[...P,...R],E.raw=[...P.raw,...R]}const O=g(E,...S);return a.muiName&&(O.muiName=a.muiLine truncated
|
||||
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},bre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},xre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
||||
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
||||
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},wre=function(t){return k.createElement(rs,Object.assign({},t),k.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
||||
0 22,12A10,10 0 0,0 12,2Z`}))},mh={fontSize:20,marginInlineEnd:8},Cre={default:void 0,success:k.createElement(yre,{style:mh}),warning:k.createElement(bre,{style:mh}),error:k.createElement(xre,{style:mh}),info:k.createElement(wre,{style:mh})};function Bf(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var Sre=typeof window<"u"?v.useLayoutEffect:v.useEffect;function EM(e){var t=v.useRef(e);return Sre(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Ere=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Yl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=EM(function(){l&&l.apply(void 0,arguments)}),h=EM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,Ml.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,Ml.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(FE,Xt({onClickAway:w},o),v.createElement("div",Xt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),ba="SnackbarItem",wr={contentRoot:ba+"-contentRoot",lessPadding:ba+"-lessPadding",variantSuccess:ba+"-variantSuccess",variantError:ba+"-variantError",variantInfo:ba+"-variantInfo",variantWarning:ba+"-variantWarning",message:ba+"-message",action:ba+"-action",wrappedRoot:ba+"-wrappedRoot"},Pre=de(Ere)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=zee(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+wr.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+wr.contentRoot]=Xt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+wr.lessPadding]={paddingLeft:8*2.5},t["."+wr.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+wr.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+wr.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+wr.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+wr.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+wr.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),kre=function(t){var n=t.classes,r=Yl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Bf([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,Ml.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Yl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,M=y.className,O=y.variant,R=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,j=y.TransitionComponent,$=y.TransitionProps,L=y.transitionDuration,z=Yl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Xt({},Cre,{},h)[O],A=Xt({"aria-describedby":"notistack-snackbar"},i1(D,f)),H=j||x||zs.TransitionComponent,q=i1(L,P,zs.transitionDuration),U=Xt({direction:vre(T)},i1($,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=R||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Xt({},le,(oe={},oe[J]=Bf([r.snack[J],r[J]],r.snack.key),oe))},{});return k.createElement(e0,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},k.createElement(Pre,Object.assign({},C,z,{open:S,className:hp(n.root,wr.wrappedRoot,n[lg.toAnchorOrigin(T)]),onClose:s}),k.creat
Line truncated
|
||||
0 22,12A10,10 0 0,0 12,2Z`}))},mh={fontSize:20,marginInlineEnd:8},Cre={default:void 0,success:k.createElement(yre,{style:mh}),warning:k.createElement(bre,{style:mh}),error:k.createElement(xre,{style:mh}),info:k.createElement(wre,{style:mh})};function Bf(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var s=[].concat(a);t&&s.indexOf(t)===-1&&s.push(t),n.apply(this,s),r.apply(this,s)}},function(){})}var Sre=typeof window<"u"?v.useLayoutEffect:v.useEffect;function PM(e){var t=v.useRef(e);return Sre(function(){t.current=e}),v.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var Ere=v.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,o=e.ClickAwayListenerProps,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,s=e.onMouseEnter,u=e.onMouseLeave,c=e.open,d=e.resumeHideDuration,f=Yl(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=v.useRef(),p=PM(function(){l&&l.apply(void 0,arguments)}),h=PM(function(P){!l||P==null||(clearTimeout(m.current),m.current=setTimeout(function(){p(null,Ml.TIMEOUT)},P))});v.useEffect(function(){return c&&h(r),function(){clearTimeout(m.current)}},[c,r,h]);var y=function(){clearTimeout(m.current)},b=v.useCallback(function(){r!=null&&h(d??r*.5)},[r,d,h]),g=function(C){s&&s(C),y()},x=function(C){u&&u(C),b()},w=function(C){l&&l(C,Ml.CLICKAWAY)};return v.useEffect(function(){if(!a&&c)return window.addEventListener("focus",b),window.addEventListener("blur",y),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",y)}},[a,b,c]),v.createElement(FE,Xt({onClickAway:w},o),v.createElement("div",Xt({onMouseEnter:g,onMouseLeave:x,ref:t},f),n))}),ba="SnackbarItem",wr={contentRoot:ba+"-contentRoot",lessPadding:ba+"-lessPadding",variantSuccess:ba+"-variantSuccess",variantError:ba+"-variantError",variantInfo:ba+"-variantInfo",variantWarning:ba+"-variantWarning",message:ba+"-message",action:ba+"-action",wrappedRoot:ba+"-wrappedRoot"},Pre=de(Ere)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=zee(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+wr.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+wr.contentRoot]=Xt({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+wr.lessPadding]={paddingLeft:8*2.5},t["."+wr.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+wr.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+wr.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+wr.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+wr.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+wr.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),kre=function(t){var n=t.classes,r=Yl(t,["classes"]),o=v.useRef(),i=v.useState(!0),a=i[0],l=i[1];v.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var s=Bf([r.snack.onClose,r.onClose],r.snack.key),u=function(){r.snack.requestClose&&s(null,Ml.INSTRCUTED)},c=function(){o.current=setTimeout(function(){l(!a)},125)},d=r.style,f=r.ariaAttributes,m=r.className,p=r.hideIconVariant,h=r.iconVariant,y=r.snack,b=r.action,g=r.content,x=r.TransitionComponent,w=r.TransitionProps,P=r.transitionDuration,C=Yl(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),E=y.key,S=y.open,M=y.className,O=y.variant,R=y.content,_=y.action,D=y.ariaAttributes,T=y.anchorOrigin,F=y.message,j=y.TransitionComponent,$=y.TransitionProps,L=y.transitionDuration,z=Yl(y,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=Xt({},Cre,{},h)[O],A=Xt({"aria-describedby":"notistack-snackbar"},i1(D,f)),H=j||x||zs.TransitionComponent,q=i1(L,P,zs.transitionDuration),U=Xt({direction:vre(T)},i1($,w)),G=_||b;typeof G=="function"&&(G=G(E));var Y=R||g;typeof Y=="function"&&(Y=Y(E,y.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,J){var oe;return Xt({},le,(oe={},oe[J]=Bf([r.snack[J],r[J]],r.snack.key),oe))},{});return k.createElement(e0,{unmountOnExit:!0,timeout:175,in:a,onExited:re.onExited},k.createElement(Pre,Object.assign({},C,z,{open:S,className:hp(n.root,wr.wrappedRoot,n[lg.toAnchorOrigin(T)]),onClose:s}),k.creat
Line truncated
|
||||
0% {
|
||||
transform: scale(0);
|
||||
opacity: 0.1;
|
||||
@@ -174,7 +174,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
transform: scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
`)),Boe=ps(MM||(MM=t0`
|
||||
`)),Boe=ps(RM||(RM=t0`
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
@@ -182,7 +182,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
`)),Hoe=ps(RM||(RM=t0`
|
||||
`)),Hoe=ps(TM||(TM=t0`
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
@@ -194,7 +194,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
`)),Voe=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Uoe=de(Loe,{name:"MuiTouchRipple",slot:"Ripple"})(TM||(TM=t0`
|
||||
`)),Voe=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Uoe=de(Loe,{name:"MuiTouchRipple",slot:"Ripple"})(_M||(_M=t0`
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
|
||||
@@ -237,12 +237,12 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
animation-iteration-count: infinite;
|
||||
animation-delay: 200ms;
|
||||
}
|
||||
`),$o.rippleVisible,zoe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,Boe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,Hoe,({theme:e})=>e.transitions.easing.easeInOut),Woe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ue(r,Noe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=js(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:M}=w;u(O=>[...O,N.jsx(Uoe,{classes:{ripple:he(i.ripple,$o.ripple),rippleVisible:he(i.rippleVisible,$o.rippleVisible),ripplePulsate:he(i.ripplePulsate,$o.ripplePulsate),child:he(i.child,$o.child),childLeaving:he(i.childLeaving,$o.childLeaving),childPulsate:he(i.childPulsate,$o.childPulsate)},timeout:jw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:M=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const O=M?null:h.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:F,clientY:j}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-R.left),D=Math.round(j-R.top)}if(S)T=Math.sqrt((2*R.width**2+R.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((O?O.clientWidth:0)-_),_)*2+2,j=Math.max(Math.abs((O?O.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+j**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(joe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),N.jsx(Voe,I({className:he($o.root,i.root,a),ref:h},l,{children:N.jsx(lZ,{component:null,exit:!0,children:s})}))}),Goe=Woe;function qoe(e){return Be("MuiButtonBase",e)}const Koe=He("MuiButtonBase",["root","disabled","focusVisible"]),Qoe=Koe,Yoe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Xoe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},qoe,o);return n&&r&&(a.root+=` ${r}`),a},Zoe=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Joe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:O,onTouchStart:R,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,j=ue(r,Yoe),$=v.useRef(null),L=v.useRef(null),z=vt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Xy(),[U,G]=v.useState(!1);u&&U&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),$.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{U&&f&&!c&&Y&&L.current.pulsate()},[c,f,U,Y]);function J(X,Ee,De=d){return Jt(Te=>(Ee&&Ee(Te),!De&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ce=J("stop",y),ve=J("stop",b),me=J("stop",S),ke=J("stop",X=>{U&&X.preventDefault(),E&&E(X)}),be=J("start",R),ie=J("stop",M),ye=J("stop",O),V=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Jt(X=>{$.current||($.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)),
Line truncated
|
||||
`));return e}const $4=v.createContext(void 0),We=()=>{const e=v.useContext($4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},I4=v.createContext(void 0);function hs(){const e=v.useContext(I4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
||||
`));return e}const GM={};function nP(e,t){const n=v.useRef(GM);return n.current===GM&&(n.current=e(t)),n}const Ase=[];function O4(e){v.useEffect(e,Ase)}const ua=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
||||
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Lse=Object.is;function M4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Lse(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ua(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Dse(e){return e.acceptsApiRef}function qM(e,t){return Dse(t)?t(e):t(e.current.state)}const Nse=Object.is,rP=M4,jse=()=>({state:null,equals:null,selector:null}),Ne=(e,t,n=Nse)=>{const r=nP(jse),o=r.current.selector!==null,[i,a]=v.useState(o?null:qM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,O4(()=>e.current.store.subscribe(()=>{const l=qM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return Be("MuiDataGrid",e)}const ne=He("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var dv="NOT_FOUND";function zse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:dv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Bse(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return dv}function o(l,s){r(l)===dv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Hse=function(t,n){return t===n};function Vse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function c0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Hse:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=Vse(o),u=a===1?zse(s):Bse(a,s);function c(){var d=u.get(arguments);if(d===dv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function Use(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){
Line truncated
|
||||
`))}const hv=(e,t,n)=>{const r=t?t(e):e.id;return vue(r,e,n),r},ug=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=hv(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},j4=({tree:e,rowCountProp:t=0})=>{const n=e[Pr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},z4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},I({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:j4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Pp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uP=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Pp(e[a]))&&o.push(a);const l=uP(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},yue=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=hv(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,I({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:I({},e.updates.idToActionLookup)},s=I({},e.dataRowIdToModelLookup),u=I({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=I({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function B4(e){var t,n;const r=Pd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function H4(e,t){const n=kd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const bue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),xue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),wue=e=>{const{classes:t}=e;return Ie({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function Cue(e){var t,n;const r=dt(),o=We(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Rt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=H4(r,o.rowHeight));const u=wue(I({},e,{classes:o.classes}));return i?N.jsx(bue,{className:he(u.root),overlayType:e.overlayType,children:N.jsx(xue,I({className:he(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function Sue(){const e=dt(),t=We(),n=Ne(e,p0),r=Ne(e,D4),o=Ne(e,Xse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=N.jsx(t.slots.noRowsOverlay,I({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=N.jsx(t.slots.noResultsOverlay,I({},(c=t.slotProps)==null?void 0
Line truncated
|
||||
`&&(x.value+=" ");const w=g.boxSizing,P=xh(g.paddingBottom)+xh(g.paddingTop),C=xh(g.borderBottomWidth)+xh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let M=E;i&&(M=Math.max(Number(i)*S,M)),o&&(M=Math.min(Number(o)*S,M)),M=Math.max(M,S);const O=M+(w==="border-box"?P+C:0),R=Math.abs(M-E)<=1;return{outerHeightStyle:O,overflowing:R}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(Yue(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);Rt(()=>{const y=()=>{p()};let b;const g=bd(y),x=c.current,w=xi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),Rt(()=>{p()});const h=y=>{u||p(),r&&r(y)};return N.jsxs(v.Fragment,{children:[N.jsx("textarea",I({value:l,onChange:h,ref:d,rows:i,style:a},s)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},Que.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function QM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function W4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=QM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=QM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function wh(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Zue=W4(),YM=5,Jue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function ece(e){const{unstable_isActiveElementInListbox:t=Jue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=Zue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var ge;return(ge=xe.label)!=null?ge:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:R=(xe,ge)=>xe===ge,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:j,onOpen:$,open:L,openOnFocus:z=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,U=_t(S);let G=P;G=xe=>{const ge=P(xe);return typeof ge!="string"?String(ge):ge};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ce]=v.useState(null),[ve,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=Ql({controlled:q,default:c,name:u}),[V,Q]=Ql({controlled:O,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,ge)=>{if(!(_?ie.length<ge.length:ge!==null)&&!l)return;let Fe;if(_)Fe="";else if(ge==null)Fe="";else{const Ze=G(ge);Fe=typeof Ze=="string"?Ze:""}V!==Fe&&(Q(Fe),j&&j(xe,Fe,"reset"))},[G,V,_,j,Q,l,ie]),[K,ee]=Ql({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&V===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(ge=>ge!==null&&R(xe,ge)))),{inputValue:_e&&se?"":V,getOptionLabel:G}):[],Ee=$E({filteredOptions:X,value:ie,inputValue:V});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const De=K&&X.length>0&&!A,Te=Jt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ve>ie.length-1&&(me(-1),Te(-1))},[ie,_,ve,Te]);function Pe(xe,ge){if(!J.current||xe<0||xe>=X.length)return-1;let je=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${je}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return je;if(ge==="next"?je=(je+1)%X.length:je=(je-1+X.length)%X.length,je===xe)return-1}}const Re=Jt(({event:xe,index:ge,reason:je="auto"})=>{if(be.current=ge,ge===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${U}-option-${ge}`),F&&F(xe,ge===-1?null:X[ge],je),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(ge===-1){Ze.scrollTop=0;return}const Ve=J.current.querySelector(`[data-option-index="${ge}"]`);if(Ve&&(Ve.classList.add(`${n}-focused`),je==="keyboard"&&Ve.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&je!=="mouse"&&je!=="touch")){const gt=Ve,ki=Ze.clientHeight+Ze.scrollTop,n$=gt.offsetTop+gt.offsetHeight;n$>ki?Ze.scrollTop=n$-Ze.
Line truncated
|
||||
`),$o.rippleVisible,zoe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$o.child,$o.childLeaving,Boe,jw,({theme:e})=>e.transitions.easing.easeInOut,$o.childPulsate,Hoe,({theme:e})=>e.transitions.easing.easeInOut),Woe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,l=ue(r,Noe),[s,u]=v.useState([]),c=v.useRef(0),d=v.useRef(null);v.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=v.useRef(!1),m=js(),p=v.useRef(null),h=v.useRef(null),y=v.useCallback(w=>{const{pulsate:P,rippleX:C,rippleY:E,rippleSize:S,cb:M}=w;u(O=>[...O,N.jsx(Uoe,{classes:{ripple:he(i.ripple,$o.ripple),rippleVisible:he(i.rippleVisible,$o.rippleVisible),ripplePulsate:he(i.ripplePulsate,$o.ripplePulsate),child:he(i.child,$o.child),childLeaving:he(i.childLeaving,$o.childLeaving),childPulsate:he(i.childPulsate,$o.childPulsate)},timeout:jw,pulsate:P,rippleX:C,rippleY:E,rippleSize:S},c.current)]),c.current+=1,d.current=M},[i]),b=v.useCallback((w={},P={},C=()=>{})=>{const{pulsate:E=!1,center:S=o||P.pulsate,fakeElement:M=!1}=P;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const O=M?null:h.current,R=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,D,T;if(S||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)_=Math.round(R.width/2),D=Math.round(R.height/2);else{const{clientX:F,clientY:j}=w.touches&&w.touches.length>0?w.touches[0]:w;_=Math.round(F-R.left),D=Math.round(j-R.top)}if(S)T=Math.sqrt((2*R.width**2+R.height**2)/3),T%2===0&&(T+=1);else{const F=Math.max(Math.abs((O?O.clientWidth:0)-_),_)*2+2,j=Math.max(Math.abs((O?O.clientHeight:0)-D),D)*2+2;T=Math.sqrt(F**2+j**2)}w!=null&&w.touches?p.current===null&&(p.current=()=>{y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},m.start(joe,()=>{p.current&&(p.current(),p.current=null)})):y({pulsate:E,rippleX:_,rippleY:D,rippleSize:T,cb:C})},[o,y,m]),g=v.useCallback(()=>{b({},{pulsate:!0})},[b]),x=v.useCallback((w,P)=>{if(m.clear(),(w==null?void 0:w.type)==="touchend"&&p.current){p.current(),p.current=null,m.start(0,()=>{x(w,P)});return}p.current=null,u(C=>C.length>0?C.slice(1):C),d.current=P},[m]);return v.useImperativeHandle(n,()=>({pulsate:g,start:b,stop:x}),[g,b,x]),N.jsx(Voe,I({className:he($o.root,i.root,a),ref:h},l,{children:N.jsx(lZ,{component:null,exit:!0,children:s})}))}),Goe=Woe;function qoe(e){return Be("MuiButtonBase",e)}const Koe=He("MuiButtonBase",["root","disabled","focusVisible"]),Qoe=Koe,Yoe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Xoe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},qoe,o);return n&&r&&(a.root+=` ${r}`),a},Zoe=de("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Qoe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Joe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:m="a",onBlur:p,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:g,onFocusVisible:x,onKeyDown:w,onKeyUp:P,onMouseDown:C,onMouseLeave:E,onMouseUp:S,onTouchEnd:M,onTouchMove:O,onTouchStart:R,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:T,type:F}=r,j=ue(r,Yoe),$=v.useRef(null),L=v.useRef(null),z=vt(L,T),{isFocusVisibleRef:B,onFocus:A,onBlur:H,ref:q}=Xy(),[U,G]=v.useState(!1);u&&U&&G(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),$.current.focus()}}),[]);const[Y,re]=v.useState(!1);v.useEffect(()=>{re(!0)},[]);const le=Y&&!c&&!u;v.useEffect(()=>{U&&f&&!c&&Y&&L.current.pulsate()},[c,f,U,Y]);function J(X,Ee,De=d){return Jt(Te=>(Ee&&Ee(Te),!De&&L.current&&L.current[X](Te),!0))}const oe=J("start",C),ce=J("stop",y),ve=J("stop",b),me=J("stop",S),ke=J("stop",X=>{U&&X.preventDefault(),E&&E(X)}),be=J("start",R),ie=J("stop",M),ye=J("stop",O),V=J("stop",X=>{H(X),B.current===!1&&G(!1),p&&p(X)},!1),Q=Jt(X=>{$.current||($.current=X.currentTarget),A(X),B.current===!0&&(G(!0),x&&x(X)),
Line truncated
|
||||
`));return e}const I4=v.createContext(void 0),We=()=>{const e=v.useContext(I4);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},O4=v.createContext(void 0);function hs(){const e=v.useContext(O4);if(e===void 0)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join(`
|
||||
`));return e}const qM={};function nP(e,t){const n=v.useRef(qM);return n.current===qM&&(n.current=e(t)),n}const Ase=[];function M4(e){v.useEffect(e,Ase)}const ua=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(`
|
||||
`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}},Lse=Object.is;function R4(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Lse(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}ua(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function Dse(e){return e.acceptsApiRef}function KM(e,t){return Dse(t)?t(e):t(e.current.state)}const Nse=Object.is,rP=R4,jse=()=>({state:null,equals:null,selector:null}),Ne=(e,t,n=Nse)=>{const r=nP(jse),o=r.current.selector!==null,[i,a]=v.useState(o?null:KM(e,t));return r.current.state=i,r.current.equals=n,r.current.selector=t,M4(()=>e.current.store.subscribe(()=>{const l=KM(e,r.current.selector);r.current.equals(r.current.state,l)||(r.current.state=l,a(l))})),i};function ft(e){return Be("MuiDataGrid",e)}const ne=He("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--selectionMode","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]);var dv="NOT_FOUND";function zse(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:dv},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Bse(e,t){var n=[];function r(l){var s=n.findIndex(function(c){return t(l,c.key)});if(s>-1){var u=n[s];return s>0&&(n.splice(s,1),n.unshift(u)),u.value}return dv}function o(l,s){r(l)===dv&&(n.unshift({key:l,value:s}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Hse=function(t,n){return t===n};function Vse(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function c0(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?Hse:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,s=Vse(o),u=a===1?zse(s):Bse(a,s);function c(){var d=u.get(arguments);if(d===dv){if(d=e.apply(null,arguments),l){var f=u.getEntries(),m=f.find(function(p){return l(p.value,d)});m&&(d=m.value)}u.put(arguments,d)}return d}return c.clearCache=function(){return u.clear()},c}function Use(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){
Line truncated
|
||||
`))}const hv=(e,t,n)=>{const r=t?t(e):e.id;return vue(r,e,n),r},ug=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},a={};for(let l=0;l<e.length;l+=1){const s=e[l],u=hv(s,t);i[u]=s,a[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:a,dataRowIdToModelLookup:i}},z4=({tree:e,rowCountProp:t=0})=>{const n=e[Pr];return Math.max(t,n.children.length+(n.footerId==null?0:1))},B4=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o})=>{const i=e.current.caches.rows,{tree:a,treeDepths:l,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:l,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},I({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:z4({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Pp=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uP=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Pp(e[a]))&&o.push(a);const l=uP(e,a,n);for(let s=0;s<l.length;s+=1)o.push(l[s])}return!n&&r.footerId!=null&&o.push(r.footerId),o},yue=({previousCache:e,getRowId:t,updates:n})=>{var r,o,i;if(e.updates.type==="full")throw new Error("MUI: Unable to prepare a partial update if a full update is not applied yet");const a=new Map;n.forEach(f=>{const m=hv(f,t,"A row was provided without id when calling updateRows():");a.has(m)?a.set(m,I({},a.get(m),f)):a.set(m,f)});const l={type:"partial",actions:{insert:[...(r=e.updates.actions.insert)!=null?r:[]],modify:[...(o=e.updates.actions.modify)!=null?o:[]],remove:[...(i=e.updates.actions.remove)!=null?i:[]]},idToActionLookup:I({},e.updates.idToActionLookup)},s=I({},e.dataRowIdToModelLookup),u=I({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};a.forEach((f,m)=>{const p=l.idToActionLookup[m];if(f._action==="delete"){if(p==="remove"||!s[m])return;p!=null&&(c[p][m]=!0),l.actions.remove.push(m),delete s[m],delete u[m];return}const h=s[m];if(h){p==="remove"?(c.remove[m]=!0,l.actions.modify.push(m)):p==null&&l.actions.modify.push(m),s[m]=I({},h,f);return}p==="remove"?(c.remove[m]=!0,l.actions.insert.push(m)):p==null&&l.actions.insert.push(m),s[m]=f,u[m]=m});const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const m=d[f],p=c[m];Object.keys(p).length>0&&(l.actions[m]=l.actions[m].filter(h=>!p[h]))}return{dataRowIdToModelLookup:s,dataRowIdToIdLookup:u,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}};function H4(e){var t,n;const r=Pd(e),o=(r==null||(t=r.top)==null?void 0:t.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0,i=(r==null||(n=r.bottom)==null?void 0:n.reduce((a,l)=>(a+=e.current.unstable_getRowHeight(l.id),a),0))||0;return{top:o,bottom:i}}function V4(e,t){const n=kd(e);return`var(--DataGrid-overlayHeight, ${2*Math.floor(t*n)}px)`}const bue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e})=>({position:"sticky",top:0,left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4})),xue=zn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),wue=e=>{const{classes:t}=e;return Ie({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ft,t)};function Cue(e){var t,n;const r=dt(),o=We(),[i,a]=v.useState(()=>{var c,d;return(c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null}),l=v.useCallback(()=>{var c,d;a((c=(d=r.current.getRootDimensions())==null?void 0:d.viewportInnerSize)!=null?c:null)},[r]);Rt(()=>r.current.subscribeEvent("viewportInnerSizeChange",l),[r,l]);let s=(t=i==null?void 0:i.height)!=null?t:0;o.autoHeight&&s===0&&(s=V4(r,o.rowHeight));const u=wue(I({},e,{classes:o.classes}));return i?N.jsx(bue,{className:he(u.root),overlayType:e.overlayType,children:N.jsx(xue,I({className:he(u.inner),style:{height:s,width:(n=i==null?void 0:i.width)!=null?n:0}},e))}):null}function Sue(){const e=dt(),t=We(),n=Ne(e,p0),r=Ne(e,N4),o=Ne(e,Xse),i=!o&&n===0,a=!o&&n>0&&r===0;let l=null,s="";if(i){var u;l=N.jsx(t.slots.noRowsOverlay,I({},(u=t.slotProps)==null?void 0:u.noRowsOverlay)),s="noRowsOverlay"}if(a){var c;l=N.jsx(t.slots.noResultsOverlay,I({},(c=t.slotProps)==null?void 0
Line truncated
|
||||
`&&(x.value+=" ");const w=g.boxSizing,P=xh(g.paddingBottom)+xh(g.paddingTop),C=xh(g.borderBottomWidth)+xh(g.borderTopWidth),E=x.scrollHeight;x.value="x";const S=x.scrollHeight;let M=E;i&&(M=Math.max(Number(i)*S,M)),o&&(M=Math.min(Number(o)*S,M)),M=Math.max(M,S);const O=M+(w==="border-box"?P+C:0),R=Math.abs(M-E)<=1;return{outerHeightStyle:O,overflowing:R}},[o,i,t.placeholder]),p=v.useCallback(()=>{const y=m();if(Yue(y))return;const b=c.current;b.style.height=`${y.outerHeightStyle}px`,b.style.overflow=y.overflowing?"hidden":""},[m]);Rt(()=>{const y=()=>{p()};let b;const g=bd(y),x=c.current,w=xi(x);w.addEventListener("resize",g);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(y),P.observe(x)),()=>{g.clear(),cancelAnimationFrame(b),w.removeEventListener("resize",g),P&&P.disconnect()}},[m,p]),Rt(()=>{p()});const h=y=>{u||p(),r&&r(y)};return N.jsxs(v.Fragment,{children:[N.jsx("textarea",I({value:l,onChange:h,ref:d,rows:i,style:a},s)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},Que.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function YM(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function G4(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=YM(c));const d=c?l.filter(f=>{let m=(i||u)(f);return n&&(m=m.toLowerCase()),t&&(m=YM(m)),o==="start"?m.indexOf(c)===0:m.indexOf(c)>-1}):l;return typeof r=="number"?d.slice(0,r):d}}function wh(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Zue=G4(),XM=5,Jue=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function ece(e){const{unstable_isActiveElementInListbox:t=Jue,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:m,disabledItemsFocusable:p=!1,disableListWrap:h=!1,filterOptions:y=Zue,filterSelectedOptions:b=!1,freeSolo:g=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:P=xe=>{var ge;return(ge=xe.label)!=null?ge:xe},groupBy:C,handleHomeEndKeys:E=!e.freeSolo,id:S,includeInputInList:M=!1,inputValue:O,isOptionEqualToValue:R=(xe,ge)=>xe===ge,multiple:_=!1,onChange:D,onClose:T,onHighlightChange:F,onInputChange:j,onOpen:$,open:L,openOnFocus:z=!1,options:B,readOnly:A=!1,selectOnFocus:H=!e.freeSolo,value:q}=e,U=_t(S);let G=P;G=xe=>{const ge=P(xe);return typeof ge!="string"?String(ge):ge};const Y=v.useRef(!1),re=v.useRef(!0),le=v.useRef(null),J=v.useRef(null),[oe,ce]=v.useState(null),[ve,me]=v.useState(-1),ke=o?0:-1,be=v.useRef(ke),[ie,ye]=Ql({controlled:q,default:c,name:u}),[V,Q]=Ql({controlled:O,default:"",name:u,state:"inputValue"}),[Z,ae]=v.useState(!1),te=v.useCallback((xe,ge)=>{if(!(_?ie.length<ge.length:ge!==null)&&!l)return;let Fe;if(_)Fe="";else if(ge==null)Fe="";else{const Ze=G(ge);Fe=typeof Ze=="string"?Ze:""}V!==Fe&&(Q(Fe),j&&j(xe,Fe,"reset"))},[G,V,_,j,Q,l,ie]),[K,ee]=Ql({controlled:L,default:!1,name:u,state:"open"}),[se,Ce]=v.useState(!0),_e=!_&&ie!=null&&V===G(ie),$e=K&&!A,X=$e?y(B.filter(xe=>!(b&&(_?ie:[ie]).some(ge=>ge!==null&&R(xe,ge)))),{inputValue:_e&&se?"":V,getOptionLabel:G}):[],Ee=$E({filteredOptions:X,value:ie,inputValue:V});v.useEffect(()=>{const xe=ie!==Ee.value;Z&&!xe||g&&!xe||te(null,ie)},[ie,te,Z,Ee.value,g]);const De=K&&X.length>0&&!A,Te=Jt(xe=>{xe===-1?le.current.focus():oe.querySelector(`[data-tag-index="${xe}"]`).focus()});v.useEffect(()=>{_&&ve>ie.length-1&&(me(-1),Te(-1))},[ie,_,ve,Te]);function Pe(xe,ge){if(!J.current||xe<0||xe>=X.length)return-1;let je=xe;for(;;){const Fe=J.current.querySelector(`[data-option-index="${je}"]`),Ze=p?!1:!Fe||Fe.disabled||Fe.getAttribute("aria-disabled")==="true";if(Fe&&Fe.hasAttribute("tabindex")&&!Ze)return je;if(ge==="next"?je=(je+1)%X.length:je=(je-1+X.length)%X.length,je===xe)return-1}}const Re=Jt(({event:xe,index:ge,reason:je="auto"})=>{if(be.current=ge,ge===-1?le.current.removeAttribute("aria-activedescendant"):le.current.setAttribute("aria-activedescendant",`${U}-option-${ge}`),F&&F(xe,ge===-1?null:X[ge],je),!J.current)return;const Fe=J.current.querySelector(`[role="option"].${n}-focused`);Fe&&(Fe.classList.remove(`${n}-focused`),Fe.classList.remove(`${n}-focusVisible`));let Ze=J.current;if(J.current.getAttribute("role")!=="listbox"&&(Ze=J.current.parentElement.querySelector('[role="listbox"]')),!Ze)return;if(ge===-1){Ze.scrollTop=0;return}const Ve=J.current.querySelector(`[data-option-index="${ge}"]`);if(Ve&&(Ve.classList.add(`${n}-focused`),je==="keyboard"&&Ve.classList.add(`${n}-focusVisible`),Ze.scrollHeight>Ze.clientHeight&&je!=="mouse"&&je!=="touch")){const gt=Ve,ki=Ze.clientHeight+Ze.scrollTop,r$=gt.offsetTop+gt.offsetHeight;r$>ki?Ze.scrollTop=r$-Ze.
Line truncated
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
@@ -254,7 +254,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
`)),nde=ps(t2||(t2=xv`
|
||||
`)),nde=ps(n2||(n2=xv`
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
@@ -267,9 +267,9 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
100% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
`)),rde=de("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=Yne(e.shape.borderRadius)||"px",r=Xne(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Cr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Xc(n2||(n2=xv`
|
||||
`)),rde=de("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=Yne(e.shape.borderRadius)||"px",r=Xne(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Cr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Xc(r2||(r2=xv`
|
||||
animation: ${0} 2s ease-in-out 0.5s infinite;
|
||||
`),tde),({ownerState:e,theme:t})=>e.animation==="wave"&&Xc(r2||(r2=xv`
|
||||
`),tde),({ownerState:e,theme:t})=>e.animation==="wave"&&Xc(o2||(o2=xv`
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -292,11 +292,11 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
`),nde,(t.vars||t).palette.action.hover)),ode=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ue(r,Jce),f=I({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=ede(f);return N.jsx(rde,I({as:a,ref:n,className:he(m.root,i),ownerState:f},d,{style:I({width:c,height:l},s)}))}),ide=ode,ade=["field","align","width","contentWidth"],lde=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Ie(r,ft,n)};function sde(e){const{align:t,width:n,contentWidth:r}=e,o=ue(e,ade),a={classes:We().classes,align:t},l=lde(a);return N.jsx("div",I({className:l.root,style:{width:n}},o,{children:N.jsx(ide,{width:`${r}%`})}))}function ude(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?MN(Cr(e.palette.divider,1),.88):Nf(Cr(e.palette.divider,1),.68)}const o2={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},i2={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},cde=de("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=ude(e),n=e.shape.borderRadius;return I({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackgrou
Line truncated
|
||||
`),nde,(t.vars||t).palette.action.hover)),ode=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:s,variant:u="text",width:c}=r,d=ue(r,Jce),f=I({},r,{animation:o,component:a,variant:u,hasChildren:!!d.children}),m=ede(f);return N.jsx(rde,I({as:a,ref:n,className:he(m.root,i),ownerState:f},d,{style:I({width:c,height:l},s)}))}),ide=ode,ade=["field","align","width","contentWidth"],lde=e=>{const{align:t,classes:n}=e,r={root:["cell","cellSkeleton",`cell--text${pe(t)}`,"withBorderColor"]};return Ie(r,ft,n)};function sde(e){const{align:t,width:n,contentWidth:r}=e,o=ue(e,ade),a={classes:We().classes,align:t},l=lde(a);return N.jsx("div",I({className:l.root,style:{width:n}},o,{children:N.jsx(ide,{width:`${r}%`})}))}function ude(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?RN(Cr(e.palette.divider,1),.88):Nf(Cr(e.palette.divider,1),.68)}const i2={[`.${ne.columnSeparator}, .${ne["columnSeparator--resizing"]}`]:{visibility:"visible",width:"auto"}},a2={[`& .${ne.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ne.menuIcon}`]:{width:"auto",visibility:"visible"}},cde=de("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${ne.autoHeight}`]:t.autoHeight},{[`&.${ne.aggregationColumnHeader}`]:t.aggregationColumnHeader},{[`&.${ne["aggregationColumnHeader--alignLeft"]}`]:t["aggregationColumnHeader--alignLeft"]},{[`&.${ne["aggregationColumnHeader--alignCenter"]}`]:t["aggregationColumnHeader--alignCenter"]},{[`&.${ne["aggregationColumnHeader--alignRight"]}`]:t["aggregationColumnHeader--alignRight"]},{[`&.${ne.aggregationColumnHeaderLabel}`]:t.aggregationColumnHeaderLabel},{[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:t["root--disableUserSelection"]},{[`&.${ne.autosizing}`]:t.autosizing},{[`& .${ne.editBooleanCell}`]:t.editBooleanCell},{[`& .${ne["cell--editing"]}`]:t["cell--editing"]},{[`& .${ne["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ne["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ne["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ne["cell--withRenderer"]}`]:t["cell--withRenderer"]},{[`& .${ne.cell}`]:t.cell},{[`& .${ne["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ne["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ne["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ne["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ne["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ne.cellContent}`]:t.cellContent},{[`& .${ne.cellCheckbox}`]:t.cellCheckbox},{[`& .${ne.cellSkeleton}`]:t.cellSkeleton},{[`& .${ne.checkboxInput}`]:t.checkboxInput},{[`& .${ne["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ne["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ne["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ne["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ne["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ne["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ne["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ne["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ne["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ne.columnHeader}`]:t.columnHeader},{[`& .${ne.headerFilterRow}`]:t.headerFilterRow},{[`& .${ne.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ne.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ne.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ne["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ne["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ne.columnSeparator}`]:t.columnSeparator},{[`& .${ne.filterIcon}`]:t.filterIcon},{[`& .${ne.iconSeparator}`]:t.iconSeparator},{[`& .${ne.menuIcon}`]:t.menuIcon},{[`& .${ne.menuIconButton}`]:t.menuIconButton},{[`& .${ne.menuOpen}`]:t.menuOpen},{[`& .${ne.menuList}`]:t.menuList},{[`& .${ne["row--editable"]}`]:t["row--editable"]},{[`& .${ne["row--editing"]}`]:t["row--editing"]},{[`& .${ne["row--dragging"]}`]:t["row--dragging"]},{[`& .${ne.row}`]:t.row},{[`& .${ne.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ne.rowReorderCell}`]:t.rowReorderCell},{[`& .${ne["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ne.sortIcon}`]:t.sortIcon},{[`& .${ne.withBorderColor}`]:t.withBorderColor},{[`& .${ne.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ne.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ne.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ne["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},t.root]})(({theme:e})=>{const t=ude(e),n=e.shape.borderRadius;return I({"--unstable_DataGrid-radius":typeof n=="number"?`${n}px`:n,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackgrou
Line truncated
|
||||
${e.vars.palette.action.selectedOpacity} +
|
||||
${e.vars.palette.action.hoverOpacity}
|
||||
))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),dde=["children","className"],fde=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Ie(o,ft,r)},pde=v.forwardRef(function(t,n){var r;const o=We(),{children:i,className:a}=t,l=ue(t,dde),s=hs(),u=Ne(s,pue),c=v.useRef(null),d=vt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:_4,m=typeof f=="function"?f():null,p=I({},o,{density:u}),h=fde(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Rt(()=>{b(!0)},[]),y?N.jsx(cde,I({ref:d,className:he(a,h.root),ownerState:p},m,l,{children:i})):null}),mde=["className"],hde=e=>{const{classes:t}=e;return Ie({root:["footerContainer","withBorderColor"]},ft,t)},gde=zn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),vde=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,mde),i=We(),a=hde(i);return N.jsx(gde,I({ref:n,className:he(a.root,r),ownerState:i},o))}),yde=["className"],bde=e=>{const{classes:t}=e;return Ie({root:["overlay"]},ft,t)},xd
Line truncated
|
||||
`))},sj=e=>e.pagination,Io=nt(sj,e=>e.paginationModel),dfe=nt(Io,e=>e.page),ffe=nt(Io,e=>e.pageSize);nt(Io,h0,(e,t)=>ij(t,e.pageSize));const gP=en(Io,di,m0,gs,L4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),pfe=en(gs,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),uj=en(Wf,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),$p=e=>e.preferencePanel;var mu=function(e){return e.filters="filters",e.columns="columns",e}(mu||{});const Ip=e=>e.rowsMeta,Po=e=>e.rowSelection,mfe=nt(Po,e=>e.length),hfe=en(Po,Ta,(e,t)=>new Map(e.map(n=>[n,t[n]]))),wv=en(Po,e=>e.reduce((t,n)=>(t[n]=n,t),{})),gfe=ua(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),cj=(e,t)=>t&&e.length>1?(gfe(),[e[0]]):e,l2=(e,t)=>n=>I({},n,{sorting:I({},n.sorting,{sortModel:cj(e,t)})}),vfe=e=>e==="desc",yfe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=vfe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},bfe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),xfe=(e,t)=>{const n=e.map(r=>yfe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>bfe(n,o,i)).map(o=>o.node.id)},s2=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},vP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,wfe=new Intl.Collator,Cfe=(e,t)=>{const n=vP(e,t);return n!==null?n:typeof e=="string"?wfe.compare(e.toString(),t.toString()):e-t},dj=(e,t)=>{const n=vP(e,t);return n!==null?n:Number(e)-Number(t)},fj=(e,t)=>{const n=vP(e,t);return n!==null?n:e>t?1:e<t?-1:0},pj=e=>e.headerFiltering,Sfe=nt(pj,e=>e.editing),Efe=nt(pj,e=>e.menuOpen),Pfe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return I({},e,{virtualization:n})};function kfe(e,t){const n=i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabled:i})}))};it(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const mj=e=>e.virtualization,$fe=nt(mj,e=>e.enabled),hj=nt(mj,e=>e.enabledForColumns),Ife=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},ft,t)};function Ofe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=We(),s=I({},e,{classes:l.classes}),u=Ife(s),c=Ne(a,$p),d=_t(),f=_t(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=$p(a.current.state);b&&g===mu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=N.jsx(l.slots.baseIconButton,I({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:N.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return N.jsx(l.slots.baseTooltip,I({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:N.jsxs(ej,{children:[r>1&&N.jsx(J4,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const Mfe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Rfe=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},ft,t)},Tfe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ue(t,Mfe),d=dt(),f=We(),m={classes:f.classes},p=Rfe(m),h=v.useRef(null),y=v.useRef(null),b=vt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{K4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelecta
Line truncated
|
||||
))`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`& .${ne.cell}`]:{display:"flex",alignItems:"center",borderBottom:"1px solid","&.Mui-selected":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity+e.palette.action.hoverOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},[`&.${ne["root--disableUserSelection"]} .${ne.cell}`]:{userSelect:"none"},[`& .${ne.row}:not(.${ne["row--dynamicHeight"]}) > .${ne.cell}`]:{overflow:"hidden",whiteSpace:"nowrap"},[`& .${ne.cellContent}`]:{overflow:"hidden",textOverflow:"ellipsis"},[`& .${ne.cell}.${ne["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ne.cell}.${ne["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`solid ${(e.vars||e).palette.primary.main} 1px`,outlineOffset:"-1px"}},[`& .${ne["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${ne["row--editing"]} .${ne.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${ne.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ne.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${ne.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${ne.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${ne.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${ne.rowReorderCellContainer}`]:{padding:0,alignItems:"stretch"},[`.${ne.withBorderColor}`]:{borderColor:t},[`& .${ne["cell--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["columnHeader--withRightBorder"]}`]:{borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ne["cell--textLeft"]}`]:{justifyContent:"flex-start"},[`& .${ne["cell--textRight"]}`]:{justifyContent:"flex-end"},[`& .${ne["cell--textCenter"]}`]:{justifyContent:"center"},[`& .${ne.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ne.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ne["columnHeader--dragging"]}, & .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${ne["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${ne.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ne.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${ne.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ne.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)}})}),dde=["children","className"],fde=e=>{const{autoHeight:t,density:n,classes:r}=e,o={root:["root",t&&"autoHeight",`root--density${pe(n)}`,"withBorderColor"]};return Ie(o,ft,r)},pde=v.forwardRef(function(t,n){var r;const o=We(),{children:i,className:a}=t,l=ue(t,dde),s=hs(),u=Ne(s,pue),c=v.useRef(null),d=vt(c,n),f=(r=o.experimentalFeatures)!=null&&r.ariaV7?null:F4,m=typeof f=="function"?f():null,p=I({},o,{density:u}),h=fde(p);s.current.register("public",{rootElementRef:c});const[y,b]=v.useState(!1);return Rt(()=>{b(!0)},[]),y?N.jsx(cde,I({ref:d,className:he(a,h.root),ownerState:p},m,l,{children:i})):null}),mde=["className"],hde=e=>{const{classes:t}=e;return Ie({root:["footerContainer","withBorderColor"]},ft,t)},gde=zn("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),vde=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,mde),i=We(),a=hde(i);return N.jsx(gde,I({ref:n,className:he(a.root,r),ownerState:i},o))}),yde=["className"],bde=e=>{const{classes:t}=e;return Ie({root:["overlay"]},ft,t)},xd
Line truncated
|
||||
`))},uj=e=>e.pagination,Io=nt(uj,e=>e.paginationModel),dfe=nt(Io,e=>e.page),ffe=nt(Io,e=>e.pageSize);nt(Io,h0,(e,t)=>aj(t,e.pageSize));const gP=en(Io,di,m0,gs,D4,(e,t,n,r,o)=>{const i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(a===-1||l===-1)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};const s=o[a],u=l-a+1,c=r.findIndex(p=>p.id===s.id);let d=c,f=0;for(;d<r.length&&f<=u;){var m;const p=r[d],h=(m=t[p.id])==null?void 0:m.depth;h===void 0?d+=1:((f<u||h>0)&&(d+=1),h===0&&(f+=1))}return{firstRowIndex:c,lastRowIndex:d-1}}),pfe=en(gs,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),cj=en(Wf,gP,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),$p=e=>e.preferencePanel;var mu=function(e){return e.filters="filters",e.columns="columns",e}(mu||{});const Ip=e=>e.rowsMeta,Po=e=>e.rowSelection,mfe=nt(Po,e=>e.length),hfe=en(Po,Ta,(e,t)=>new Map(e.map(n=>[n,t[n]]))),wv=en(Po,e=>e.reduce((t,n)=>(t[n]=n,t),{})),gfe=ua(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),dj=(e,t)=>t&&e.length>1?(gfe(),[e[0]]):e,s2=(e,t)=>n=>I({},n,{sorting:I({},n.sorting,{sortModel:dj(e,t)})}),vfe=e=>e==="desc",yfe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n)return null;const r=vfe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator;return{getSortCellParams:i=>({id:i,field:n.field,rowNode:t.current.getRowNode(i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}},bfe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),xfe=(e,t)=>{const n=e.map(r=>yfe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>bfe(n,o,i)).map(o=>o.node.id)},u2=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},vP=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,wfe=new Intl.Collator,Cfe=(e,t)=>{const n=vP(e,t);return n!==null?n:typeof e=="string"?wfe.compare(e.toString(),t.toString()):e-t},fj=(e,t)=>{const n=vP(e,t);return n!==null?n:Number(e)-Number(t)},pj=(e,t)=>{const n=vP(e,t);return n!==null?n:e>t?1:e<t?-1:0},mj=e=>e.headerFiltering,Sfe=nt(mj,e=>e.editing),Efe=nt(mj,e=>e.menuOpen),Pfe=(e,t)=>{const n={enabled:!t.disableVirtualization,enabledForColumns:!0};return I({},e,{virtualization:n})};function kfe(e,t){const n=i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabled:i})}))};it(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>I({},a,{virtualization:I({},a.virtualization,{enabledForColumns:i})}))}},"public"),v.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization])}const hj=e=>e.virtualization,$fe=nt(hj,e=>e.enabled),gj=nt(hj,e=>e.enabledForColumns),Ife=e=>{const{classes:t}=e;return Ie({icon:["filterIcon"]},ft,t)};function Ofe(e){var t,n;const{counter:r,field:o,onClick:i}=e,a=dt(),l=We(),s=I({},e,{classes:l.classes}),u=Ife(s),c=Ne(a,$p),d=_t(),f=_t(),m=v.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:b,openedPanelValue:g}=$p(a.current.state);b&&g===mu.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,f,d),i&&i(a.current.getColumnHeaderParams(o),y)},[a,o,i,f,d]);if(!r)return null;const p=c.open&&c.labelId===d,h=N.jsx(l.slots.baseIconButton,I({id:d,onClick:m,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?f:void 0},(t=l.slotProps)==null?void 0:t.baseIconButton,{children:N.jsx(l.slots.columnFilteredIcon,{className:u.icon,fontSize:"small"})}));return N.jsx(l.slots.baseTooltip,I({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},(n=l.slotProps)==null?void 0:n.baseTooltip,{children:N.jsxs(tj,{children:[r>1&&N.jsx(ej,{badgeContent:r,color:"default",children:h}),r===1&&h]})}))}const Mfe=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],Rfe=e=>{const{classes:t}=e;return Ie({root:["checkboxInput"]},ft,t)},Tfe=v.forwardRef(function(t,n){var r;const{field:o,id:i,value:a,rowNode:l,hasFocus:s,tabIndex:u}=t,c=ue(t,Mfe),d=dt(),f=We(),m={classes:f.classes},p=Rfe(m),h=v.useRef(null),y=v.useRef(null),b=vt(h,n),g=d.current.getCellElement(i,o),x=E=>{const S={value:E.target.checked,id:i};d.current.publishEvent("rowSelectionCheckboxChange",S,E)};v.useLayoutEffect(()=>{u===0&&g&&(g.tabIndex=-1)},[g,u]),v.useEffect(()=>{if(s){var E;const S=(E=h.current)==null?void 0:E.querySelector("input");S==null||S.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[s]);const w=v.useCallback(E=>{Q4(E.key)&&E.stopPropagation()},[]);if(l.type==="footer"||l.type==="pinnedRow")return null;const P=d.current.isRowSelecta
Line truncated
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
@@ -304,7 +304,7 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`)),gve=ps(T2||(T2=P0`
|
||||
`)),gve=ps(_2||(_2=P0`
|
||||
0% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: 0;
|
||||
@@ -319,12 +319,12 @@ For more information, see https://refine.dev/docs/api-reference/core/hooks/useBr
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -125px;
|
||||
}
|
||||
`)),vve=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Ie(i,pve,t)},yve=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Xc(_2||(_2=P0`
|
||||
`)),vve=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${pe(r)}`],svg:["svg"],circle:["circle",`circle${pe(n)}`,o&&"circleDisableShrink"]};return Ie(i,pve,t)},yve=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pe(n.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Xc(F2||(F2=P0`
|
||||
animation: ${0} 1.4s linear infinite;
|
||||
`),hve)),bve=de("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xve=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xc(F2||(F2=P0`
|
||||
`),hve)),bve=de("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xve=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Xc(A2||(A2=P0`
|
||||
animation: ${0} 1.4s ease-in-out infinite;
|
||||
`),gve)),wve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ue(r,mve),m=I({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=vve(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((gl-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return N.jsx(yve,I({className:he(p.root,o),style:I({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:N.jsx(bve,{className:p.svg,ownerState:m,viewBox:`${gl/2} ${gl/2} ${gl} ${gl}`,children:N.jsx(xve,{className:p.circle,style:h,ownerState:m,cx:gl,cy:gl,r:(gl-u)/2,fill:"none",strokeWidth:u})})}))}),PP=wve,Cve=v.forwardRef(function(t,n){return N.jsx(mP,I({ref:n},t,{children:N.jsx(PP,{})}))}),Sve=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return N.jsx(mP,I({ref:n},t,{children:o}))}),Eve=v.createContext(),Pve=Eve,kve=v.createContext(),$ve=kve;function Ive(e){return Be("MuiTableCell",e)}const Ove=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Mve=Ove,Rve=["align","className","component","padding","scope","size","sortDirection","variant"],Tve=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Ie(l,Ive,t)},_ve=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
||||
${e.palette.mode==="light"?OE(rt(e.palette.divider,1),.88):IE(rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Mve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Fve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ue(r,Rve),m=v.useContext(Pve),p=v.useContext($ve),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=I({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=Tve(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),N.jsx(_ve,I({as:y,ref:n,className:he(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),qw=Fve,Ave=tt(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lve=tt(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Dve=tt(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Nve=tt(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),jve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],zve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ue(t,jve),S=Zy(),M=J=>{y(J,0)},O=J=>{y(J,b-1)},R=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:Nn,T=(o=P.lastButton)!=null?o:Nn,F=(i=P.nextButton)!=null?i:Nn,j=(a=P.previousButton)!=null?a:Nn,$=(l=P.firstButtonIcon)!=null?l:Nve,L=(s=P.lastButtonIcon)!=null?s:Dve,z=(u=P.nextButtonIcon)!=null?u:Lve,B=(c=P.previousButtonIcon)!=null?c:Ave,A=S?T:D,H=S?F:j,q=S?j:F,U=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return N.jsxs("div",I({ref:n},E,{children:[x&&N.jsx(A,I({onClick:M,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?N.jsx(L,I({},C.lastButtonIcon)):N.jsx($,I({},C.firstButtonIcon))})),N.jsx(H,I({onClick:O,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?N.jsx(z,I({},C.nextButtonIcon)):N.jsx(B,I({},C.previousButtonIcon))})),N.jsx(q,I({onClick:R,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?N.jsx(B,I({},C.previousButtonIcon)):N.jsx(z,I({},C.nextButtonIcon))})),w&&N.jsx(U,I({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?N.jsx($,I({},C.firstButtonIcon)):N.jsx(L,I({},C.lastButtonIcon))}))]}))}),Bve=zve;function Hve(e){return Be("MuiTablePagination",e)}const Vve=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Xs=Vve;var A2;const Uve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Wve=de(qw,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Gve=de(sm,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>I({[`& .${Xs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Xs.actions}`]:{flexShrink:0,marginLeft:20}})),qve=de("div",{name:"MuiTablePagination",slot:"Spac
Line truncated
|
||||
`),gve)),wve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=ue(r,mve),m=I({},r,{color:i,disableShrink:a,size:l,thickness:u,value:c,variant:d}),p=vve(m),h={},y={},b={};if(d==="determinate"){const g=2*Math.PI*((gl-u)/2);h.strokeDasharray=g.toFixed(3),b["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return N.jsx(yve,I({className:he(p.root,o),style:I({width:l,height:l},y,s),ownerState:m,ref:n,role:"progressbar"},b,f,{children:N.jsx(bve,{className:p.svg,ownerState:m,viewBox:`${gl/2} ${gl/2} ${gl} ${gl}`,children:N.jsx(xve,{className:p.circle,style:h,ownerState:m,cx:gl,cy:gl,r:(gl-u)/2,fill:"none",strokeWidth:u})})}))}),kP=wve,Cve=v.forwardRef(function(t,n){return N.jsx(mP,I({ref:n},t,{children:N.jsx(kP,{})}))}),Sve=v.forwardRef(function(t,n){const o=dt().current.getLocaleText("noRowsLabel");return N.jsx(mP,I({ref:n},t,{children:o}))}),Eve=v.createContext(),Pve=Eve,kve=v.createContext(),$ve=kve;function Ive(e){return Be("MuiTableCell",e)}const Ove=He("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Mve=Ove,Rve=["align","className","component","padding","scope","size","sortDirection","variant"],Tve=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${pe(r)}`,o!=="normal"&&`padding${pe(o)}`,`size${pe(i)}`]};return Ie(l,Ive,t)},_ve=de("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${pe(n.size)}`],n.padding!=="normal"&&t[`padding${pe(n.padding)}`],n.align!=="inherit"&&t[`align${pe(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
||||
${e.palette.mode==="light"?OE(rt(e.palette.divider,1),.88):IE(rt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Mve.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Fve=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:s,size:u,sortDirection:c,variant:d}=r,f=ue(r,Rve),m=v.useContext(Pve),p=v.useContext($ve),h=p&&p.variant==="head";let y;a?y=a:y=h?"th":"td";let b=s;y==="td"?b=void 0:!b&&h&&(b="col");const g=d||p&&p.variant,x=I({},r,{align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:c,stickyHeader:g==="head"&&m&&m.stickyHeader,variant:g}),w=Tve(x);let P=null;return c&&(P=c==="asc"?"ascending":"descending"),N.jsx(_ve,I({as:y,ref:n,className:he(w.root,i),"aria-sort":P,scope:b,ownerState:x},f))}),qw=Fve,Ave=tt(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lve=tt(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Dve=tt(N.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Nve=tt(N.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),jve=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],zve=v.forwardRef(function(t,n){var r,o,i,a,l,s,u,c;const{backIconButtonProps:d,count:f,disabled:m=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:y,page:b,rowsPerPage:g,showFirstButton:x,showLastButton:w,slots:P={},slotProps:C={}}=t,E=ue(t,jve),S=Zy(),M=J=>{y(J,0)},O=J=>{y(J,b-1)},R=J=>{y(J,b+1)},_=J=>{y(J,Math.max(0,Math.ceil(f/g)-1))},D=(r=P.firstButton)!=null?r:Nn,T=(o=P.lastButton)!=null?o:Nn,F=(i=P.nextButton)!=null?i:Nn,j=(a=P.previousButton)!=null?a:Nn,$=(l=P.firstButtonIcon)!=null?l:Nve,L=(s=P.lastButtonIcon)!=null?s:Dve,z=(u=P.nextButtonIcon)!=null?u:Lve,B=(c=P.previousButtonIcon)!=null?c:Ave,A=S?T:D,H=S?F:j,q=S?j:F,U=S?D:T,G=S?C.lastButton:C.firstButton,Y=S?C.nextButton:C.previousButton,re=S?C.previousButton:C.nextButton,le=S?C.firstButton:C.lastButton;return N.jsxs("div",I({ref:n},E,{children:[x&&N.jsx(A,I({onClick:M,disabled:m||b===0,"aria-label":p("first",b),title:p("first",b)},G,{children:S?N.jsx(L,I({},C.lastButtonIcon)):N.jsx($,I({},C.firstButtonIcon))})),N.jsx(H,I({onClick:O,disabled:m||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b)},Y??d,{children:S?N.jsx(z,I({},C.nextButtonIcon)):N.jsx(B,I({},C.previousButtonIcon))})),N.jsx(q,I({onClick:R,disabled:m||(f!==-1?b>=Math.ceil(f/g)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b)},re??h,{children:S?N.jsx(B,I({},C.previousButtonIcon)):N.jsx(z,I({},C.nextButtonIcon))})),w&&N.jsx(U,I({onClick:_,disabled:m||b>=Math.ceil(f/g)-1,"aria-label":p("last",b),title:p("last",b)},le,{children:S?N.jsx($,I({},C.firstButtonIcon)):N.jsx(L,I({},C.lastButtonIcon))}))]}))}),Bve=zve;function Hve(e){return Be("MuiTablePagination",e)}const Vve=He("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Xs=Vve;var L2;const Uve=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],Wve=de(qw,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Gve=de(sm,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>I({[`& .${Xs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Xs.actions}`]:{flexShrink:0,marginLeft:20}})),qve=de("div",{name:"MuiTablePagination",slot:"Spac
Line truncated
|
||||
${o.map((l,s)=>`const shouldApply${s} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
|
||||
`)}
|
||||
|
||||
@@ -335,58 +335,58 @@ ${o.map((l,s)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${s}
|
||||
`)}
|
||||
};
|
||||
|
||||
return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.getRowId,o,l,s)},hye=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?d0(t):Na(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=Dj(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!Sv(m),y=!Sv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Dl(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const M=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(M.value=Dl(M.value)),h[C]=M,E.fn(M)){p[g]=!0;continue e}}}p[g]=!1}return p}},gye=(e,t,n)=>{const r=mye(e,t,n),o=hye(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},N2=e=>e!=null,vye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>jj(r,t)!==null)),e.cleanedFilterItems),yye=(e,t,n,r,o)=>{const i=vye(o,r,n.items),a=e.filter(N2),l=t.filter(N2);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:kp().logicOperator)===er.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:kp().quickFilterLogicOperator)===er.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},j2=fm(e=>{if(!e)return null;const t=new RegExp(cg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Dl(a)),a!=null?t.test(a.toString()):!1}}),bye=(e=!1)=>pm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(cg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ni},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ni},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${cg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${cg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Sj}]),yi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Cfe,type:"string",align:"left",filterOperators:bye(),renderEditCell:vce,getApplyQuickFilterFn:Lj(j2),getApplyQuickFilterFnV7:j2},xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Lme}]);function wye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Cye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},zj=I({},yi,{type:"boolean",align:"center",headerAlign:"center",renderCell:Hue,renderEditCell:Gue,sortComparator:dj,valueFormatter:wye,filterOperators:xye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Cye(e)}),xl="__check__",Id=I({},zj,{field:xl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>wv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>N.jsx(Lfe,I({},e)),renderCell:e=>N.jsx(_fe,I({},e))}),k0="actions",Sye=I({},yi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Nce,getApplyQuickFilterFn:void 0,getApplyQ
Line truncated
|
||||
`))}function Wye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Gye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const qye=I({},yi,{type:"date",sortComparator:fj,valueFormatter:Wye,filterOperators:Hj(),renderEditCell:G4,pastedValueParser:e=>new Date(e)}),Kye=I({},yi,{type:"dateTime",sortComparator:fj,valueFormatter:Gye,filterOperators:Hj(!0),renderEditCell:G4,pastedValueParser:e=>new Date(e)}),kl=e=>e==null?null:Number(e),U2=fm(e=>e==null||Number.isNaN(e)||e===""?null:t=>kl(t)===kl(e)),Qye=()=>pm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)===e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)!==e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Sj,InputComponentProps:{type:"number"}}]),Yye=I({},yi,{type:"number",align:"right",headerAlign:"right",sortComparator:dj,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>rfe(e)?e.toLocaleString():e||"",filterOperators:Qye(),getApplyQuickFilterFn:Lj(U2),getApplyQuickFilterFnV7:U2}),zu=e=>e==null||!hP(e)?e:e.value,Xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)===zu(e.value),InputComponent:y2},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)!==zu(e.value),InputComponent:y2},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(zu);return n=>t.includes(zu(n))},InputComponent:Phe}]),Zye=e=>typeof e[0]=="object",Jye=e=>hP(e)?e.value:e,e0e=e=>hP(e)?e.label:String(e),t0e=I({},yi,{type:"singleSelect",getOptionLabel:e0e,getOptionValue:Jye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Qs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!Zye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:Ice,filterOperators:Xye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Uj="__default__",n0e=()=>({string:yi,number:Yye,date:qye,dateTime:Kye,boolean:zj,singleSelect:t0e,[k0]:Sye,[Uj]:yi});function Yw(e,t){return typeof e=="string"&&[t,`
|
||||
return result$$;`.replaceAll("$$",String(N2)));return N2+=1,(l,s)=>i(t.current.getRowId,o,l,s)},hye=(e,t)=>{var n,r,o;const i=(n=(r=e.quickFilterValues)==null?void 0:r.filter(Boolean))!=null?n:[];if(i.length===0)return null;const l=((o=e.quickFilterExcludeHiddenColumns)!=null?o:!1)?d0(t):Na(t),s=[],{ignoreDiacritics:u}=t.current.rootProps,c=Dj(t);return l.forEach(d=>{const f=t.current.getColumn(d),m=f==null?void 0:f.getApplyQuickFilterFn,p=f==null?void 0:f.getApplyQuickFilterFnV7,h=!Sv(m),y=!Sv(p);p&&!(h&&!y)?s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!0,fn:p(g,f,c)}})}):m&&s.push({column:f,appliers:i.map(b=>{const g=u?Dl(b):b;return{v7:!1,fn:m(g,f,c)}})})}),function(f,m){const p={},h={};e:for(let b=0;b<i.length;b+=1){const g=i[b];for(let x=0;x<s.length;x+=1){const{column:w,appliers:P}=s[x],{field:C}=w;if(m&&!m(C))continue;const E=P[b];let S=t.current.getRowValue(f,w);if(E.fn!==null)if(E.v7){if(u&&(S=Dl(S)),E.fn(S,f,w,c)){p[g]=!0;continue e}}else{var y;const M=(y=h[C])!=null?y:t.current.getCellParams(t.current.getRowId(f),C);if(u&&(M.value=Dl(M.value)),h[C]=M,E.fn(M)){p[g]=!0;continue e}}}p[g]=!1}return p}},gye=(e,t,n)=>{const r=mye(e,t,n),o=hye(e,t);return function(a,l,s){var u,c;s.passingFilterItems=(u=r==null?void 0:r(a,l))!=null?u:null,s.passingQuickFilterValues=(c=o==null?void 0:o(a,l))!=null?c:null}},j2=e=>e!=null,vye=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>jj(r,t)!==null)),e.cleanedFilterItems),yye=(e,t,n,r,o)=>{const i=vye(o,r,n.items),a=e.filter(j2),l=t.filter(j2);if(a.length>0){var s;const c=f=>a.some(m=>m[f.id]);if(((s=n.logicOperator)!=null?s:kp().logicOperator)===er.And){if(!i.every(c))return!1}else if(!i.some(c))return!1}if(l.length>0&&n.quickFilterValues!=null){var u;const c=f=>l.some(m=>m[f]);if(((u=n.quickFilterLogicOperator)!=null?u:kp().quickFilterLogicOperator)===er.And){if(!n.quickFilterValues.every(c))return!1}else if(!n.quickFilterValues.some(c))return!1}return!0},z2=fm(e=>{if(!e)return null;const t=new RegExp(cg(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Dl(a)),a!=null?t.test(a.toString()):!1}}),bye=(e=!1)=>pm([{value:"contains",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(cg(n),"i");return o=>o!=null?r.test(String(o)):!1},InputComponent:Ni},{value:"equals",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?r.compare(n,o.toString())===0:!1},InputComponent:Ni},{value:"startsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${cg(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"endsWith",getApplyFilterFnV7:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${cg(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Ni},{value:"isEmpty",getApplyFilterFnV7:()=>t=>t===""||t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>t=>t!==""&&t!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:Sj}]),yi={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:Cfe,type:"string",align:"left",filterOperators:bye(),renderEditCell:vce,getApplyQuickFilterFn:Lj(z2),getApplyQuickFilterFnV7:z2},xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>{if(!e.value)return null;const t=e.value==="true";return n=>!!n===t},InputComponent:Lme}]);function wye({value:e,api:t}){return e?t.getLocaleText("booleanCellTrueLabel"):t.getLocaleText("booleanCellFalseLabel")}const Cye=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},zj=I({},yi,{type:"boolean",align:"center",headerAlign:"center",renderCell:Hue,renderEditCell:Gue,sortComparator:fj,valueFormatter:wye,filterOperators:xye(),getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,aggregable:!1,pastedValueParser:e=>Cye(e)}),xl="__check__",Id=I({},zj,{field:xl,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,getApplyQuickFilterFnV7:void 0,valueGetter:e=>wv(e.api.state,e.api.instanceId)[e.id]!==void 0,renderHeader:e=>N.jsx(Lfe,I({},e)),renderCell:e=>N.jsx(_fe,I({},e))}),k0="actions",Sye=I({},yi,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:Nce,getApplyQuickFilterFn:void 0,getApplyQ
Line truncated
|
||||
`))}function Wye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"date",rowId:n,field:t}),e.toLocaleDateString()):""}function Gye({value:e,field:t,id:n}){return e?(Vj({value:e,columnType:"dateTime",rowId:n,field:t}),e.toLocaleString()):""}const qye=I({},yi,{type:"date",sortComparator:pj,valueFormatter:Wye,filterOperators:Hj(),renderEditCell:q4,pastedValueParser:e=>new Date(e)}),Kye=I({},yi,{type:"dateTime",sortComparator:pj,valueFormatter:Gye,filterOperators:Hj(!0),renderEditCell:q4,pastedValueParser:e=>new Date(e)}),kl=e=>e==null?null:Number(e),W2=fm(e=>e==null||Number.isNaN(e)||e===""?null:t=>kl(t)===kl(e)),Qye=()=>pm([{value:"=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)===e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>kl(t)!==e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)>=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFnV7:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:kl(t)<=e.value,InputComponent:Ni,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFnV7:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFnV7:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFnV7:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:Sj,InputComponentProps:{type:"number"}}]),Yye=I({},yi,{type:"number",align:"right",headerAlign:"right",sortComparator:fj,valueParser:e=>e===""?null:Number(e),valueFormatter:({value:e})=>rfe(e)?e.toLocaleString():e||"",filterOperators:Qye(),getApplyQuickFilterFn:Lj(W2),getApplyQuickFilterFnV7:W2}),zu=e=>e==null||!hP(e)?e:e.value,Xye=()=>pm([{value:"is",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)===zu(e.value),InputComponent:b2},{value:"not",getApplyFilterFnV7:e=>e.value==null||e.value===""?null:t=>zu(t)!==zu(e.value),InputComponent:b2},{value:"isAnyOf",getApplyFilterFnV7:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(zu);return n=>t.includes(zu(n))},InputComponent:Phe}]),Zye=e=>typeof e[0]=="object",Jye=e=>hP(e)?e.value:e,e0e=e=>hP(e)?e.label:String(e),t0e=I({},yi,{type:"singleSelect",getOptionLabel:e0e,getOptionValue:Jye,valueFormatter(e){const{id:t,field:n,value:r,api:o}=e,i=e.api.getColumn(n);if(!Qs(i))return"";let a;if(typeof i.valueOptions=="function"?a=i.valueOptions({id:t,row:t?o.getRow(t):null,field:n}):a=i.valueOptions,r==null)return"";if(!a)return r;if(!Zye(a))return i.getOptionLabel(r);const l=a.find(s=>i.getOptionValue(s)===r);return l?i.getOptionLabel(l):""},renderEditCell:Ice,filterOperators:Xye(),pastedValueParser:(e,t)=>{const n=t.colDef,r=n.valueOptions,o=typeof r=="function"?r({field:n.field}):r||[],i=n.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Uj="__default__",n0e=()=>({string:yi,number:Yye,date:qye,dateTime:Kye,boolean:zj,singleSelect:t0e,[k0]:Sye,[Uj]:yi});function Yw(e,t){return typeof e=="string"&&[t,`
|
||||
`,"\r",'"'].some(n=>e.includes(n))?`"${e.replace(/"/g,'""')}"`:e}const Wj=(e,t)=>{const{delimiterCharacter:n,ignoreValueFormatter:r}=t;let o;if(r){var i;const l=e.colDef.type;if(l==="number")o=String(e.value);else if(l==="date"||l==="dateTime"){var a;o=(a=e.value)==null?void 0:a.toISOString()}else typeof((i=e.value)==null?void 0:i.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return Yw(o,n)};ua(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);class Xw{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.delimiterCharacter),t==null?this.rowString+="":typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.delimiterCharacter):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const r0e=({id:e,columns:t,getCellParams:n,delimiterCharacter:r,ignoreValueFormatter:o})=>{const i=new Xw({delimiterCharacter:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(Wj(l,{delimiterCharacter:r,ignoreValueFormatter:o}))}),i.getRowString()};function o0e(e){const{columns:t,rowIds:n,delimiterCharacter:r,includeHeaders:o,includeColumnGroupsHeaders:i,ignoreValueFormatter:a,apiRef:l}=e,s=n.reduce((m,p)=>`${m}${r0e({id:p,columns:t,getCellParams:l.current.getCellParams,delimiterCharacter:r,ignoreValueFormatter:a})}\r
|
||||
`,"").trim();if(!o)return s;const u=t.filter(m=>m.field!==Id.field),c=[];if(i){const m=l.current.unstable_getAllGroupDetails();let p=0;const h=u.reduce((y,b)=>{const g=l.current.unstable_getColumnGroupPath(b.field);return y[b.field]=g,p=Math.max(p,g.length),y},{});for(let y=0;y<p;y+=1){const b=new Xw({delimiterCharacter:r,sanitizeCellValue:Yw});c.push(b),u.forEach(g=>{const x=(h[g.field]||[])[y],w=m[x];b.addValue(w?w.headerName||w.groupId:"")})}}const d=new Xw({delimiterCharacter:r,sanitizeCellValue:Yw});return u.forEach(m=>{d.addValue(m.headerName||m.field)}),c.push(d),`${`${c.map(m=>m.getRowString()).join(`\r
|
||||
`)}\r
|
||||
`}${s}`.trim()}function W2(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function i0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{W2(e)}):W2(e)}function a0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const l0e=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||a0e(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=to(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Wj(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(i0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);lfe(e,e.current.rootElementRef,"keydown",i),Qt(e,"clipboardCopy",t.onClipboardCopy)},s0e=e=>I({},e,{columnMenu:{open:!1}}),u0e=e=>{const t=vr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),I({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=Uw(e.current.state);if(a.field){const s=Ed(e),u=mi(e),c=Na(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),I({},s,{columnMenu:I({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=Uw(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);it(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),qe(e,"columnResizeStart",r),qe(e,"virtualScrollerWheel",e.current.hideColumnMenu),qe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Gj=["maxWidth","minWidth","width","flex"];function c0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Zw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=I({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=id(s.width||yi.width,s.minWidth||yi.minWidth,s.maxWidth||yi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=c0e({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return I({},e,{lookup:n})},d0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=I({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=I({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return I({},e,{orderedFields:l,lookup:s})};function G2(e,t){let n=e[Uj];return t&&e[t]&&(n=e[t]),n}const ec=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=mi(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Ks(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:I({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>I({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=I({},G2(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=I({},G2(r,p.type),{field:h}));let b=y.hasBeenResized;Gj.forEach(g=>{p[g]!==vLine truncated
|
||||
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let U=0;U<H.attributes.length;U+=1){const G=H.attributes[U];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}$.push(new Promise(U=>{q.addEventListener("load",()=>U())})),x.head.appendChild(q)}}}Promise.all($).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=mi(e);const h=Ta(e);if(a.current=yf(e).map(b=>h[b]),t.pagination){const b=D4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",dg(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await E0e();const y=P0e(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};it(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:N.jsx(Ohe,{options:h.printOptions}),componentName:"printExport"}]},[]);jn(e,"exportMenu",m)},$0e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:kp();return I({},e,{filter:{filterModel:Nj(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},I0e=e=>e.filteredRowsLookup;function K2(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function O0e(){return c0(Object.values)}const M0e=(e,t)=>{var n,r;const o=vr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(O=>{const R=Xn(O,e.current.instanceId),_=t.filterMode==="client"?gye(R,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:R??kp()}),T=I({},O,{filter:I({},O.filter,D)}),F=K2(e,T);return I({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((O,R)=>R==null||R.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(O=>{const R=Xn(e),_=[...R.items],D=_.findIndex(T=>T.id===O.id);D===-1?_.push(O):_[D]=O,e.current.setFilterModel(I({},R,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(O=>{const R=Xn(e),_=[...R.items];O.forEach(D=>{const T=O.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(I({},R,{items:O}),"upsertFilterItems")},[e]),c=v.useCallback(O=>{const R=Xn(e),_=R.items.filter(D=>D.id!==O.id);_.length!==R.items.length&&e.current.setFilterModel(I({},R,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((O,R,_)=>{if(o.debug("Displaying filter panel"),O){const D=Xn(e),T=D.items.filter(L=>{var z;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(z=e.current.getColumn(L.field).filterOperators)==null?void 0:z.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const j=T.find(L=>L.field===O),$=e.current.getColumn(O);j?F=T:t.disableMultipleColumnsFiltering?F=[Qw({field:O,operator:$.filterOperators[0].value},e)]:F=[...T,Qw({field:O,operator:$.filterOperators[0].value},e)],e.current.setFilterModel(I({},D,{items:F}))}e.current.showPreferences(mu.filters,R,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(O=>{const R=Xn(e);R.logicOperator!==O&&e.current.setFilterModel(I({},R,{logicOperator:O}),"changeLogicOperator")},[e]),p=v.useCallback(O=>{const R=Xn(e);Ys(R.quickFilterValues,O)||e.current.setFilterModel(I({},R,{quickFilterValues:[...O]}))},[e]),h=v.useCallback((O,R)=>{Xn(e)!==O&&(o.debug("Setting filter model"),e.current.updateControlState("filter",L2(O,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilt
Line truncated
|
||||
`));const T=[];D.forEach(j=>{const $=hv(j,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode($);if((L==null?void 0:L.type)==="pinnedRow"){const z=e.current.caches.pinnedRows,B=z.idLookup[$];B&&(z.idLookup[$]=I({},B,j))}else T.push(j)});const F=yue({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=yf(e),T=Ta(e);return new Map(D.map(F=>{var j;return[F,(j=T[F])!=null?j:{}]}))},[e]),p=v.useCallback(()=>p0(e),[e]),h=v.useCallback(()=>yf(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=I({},F,{childrenExpanded:T});e.current.setState($=>I({},$,{rows:I({},$.rows,{tree:I({},$.rows.tree,{[D]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),g=v.useCallback(D=>{var T;return(T=di(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:j})=>{const $=di(e);let L;if(F){const z=$[T];if(!z)return[];const B=iP(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&$[B[H]].depth>z.depth;H+=1){const q=B[H];(!D||!Pp($[q]))&&L.push(q)}}else L=uP($,T,D);if(j){const z=A4(e);L=L.filter(B=>z[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==Pr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const $=di(j,e.current.instanceId)[Pr],L=$.children,z=L.findIndex(A=>A===D);if(z===-1||z===T)return j;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(z,1)[0]),I({},j,{rows:I({},j.rows,{tree:I({},j.rows.tree,{[Pr]:I({},$,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===Ki.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
||||
`));if(T.length===0)return;if(m0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=I({},di(e)),$=I({},Ta(e)),L=I({},fv(e)),z=j[Pr],B=[...z.children],A=new Set;for(let q=0;q<T.length;q+=1){const U=T[q],G=hv(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete $[Y],delete L[Y],delete j[Y]);const re={id:G,depth:0,parent:Pr,type:"leaf",groupingKey:null};$[G]=U,L[G]=G,j[G]=re,A.add(G)}j[Pr]=I({},z,{children:B});const H=B.filter(q=>j[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=$,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>I({},q,{rows:I({},q.rows,{dataRowIdToModelLookup:$,dataRowIdToIdLookup:L,dataRowIds:H,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=I({},e.current.caches.rows,{updates:{type:"full",rows:yf(e)}}):D=ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),O=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Jse(e)&&S()},[e,S]);qe(e,"activeStrategyProcessorChange",M),qe(e,"strategyAvailabilityChange",O);const R=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:di(D,e.current.instanceId),treeDepths:KM(D,e.current.instanceId),dataRowIds:yf(D,e.current.instanceId),dataRowIdToModelLookup:Ta(D,e.current.instanceId),dataRowIdToIdLookup:fv(D,e.current.instanceId)});return I({},D,{rows:I({},D.rows,T,{totalTopLevelRowCount:j4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);IP(e,"hydrateRows",R),it(e,C,"public"),it(e,E,t.signature===Ki.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Q0e=e=>{const t={[Pr]:I({},gue(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Pr,type:"leaf",groupingKey:null}}return{groupingName:hu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Y0e=({previousTree:e,actions:t})=>{const n=I({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Pr,type:"leaf",groupingKey:null}}const o=n[Pr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Pr]=I({},o,{children:i}),{groupingName:hu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},X0e=e=>e.updates.type==="full"?Q0e(e.updates.rows):Y0e({previousTree:e.previousTree,actions:e.updates.actions}),Z0e=e=>{Ev(e,hu,"rowTreeCreation",X0e)},Yj=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],J0e=(e,t)=>{var n;return I({},e,{rowSelection:t.rowSelection?(n=Yj(t.rowSelectionModel))!=null?n:[]:[]})},ebe=(e,t)=>{const n=vr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Yj(t.rowSelectionModel,Po(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Po,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=ku(e,t),f=v.useCallback(T=>{var F;let j=T;const $=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const z=Wf(e),B=z.findIndex(H=>H===$),A=z.findIndex(H=>H===j);if(B===A)return;B>A?j=z[A+1]:j=z[A-1]}i.current=T,e.current.selectRowRange({startId:$,endId:j},!L)},[e]),m=v.useCallback(T=>{if(t.signature===Ki.DataGrid&&!t.checkboxSelection&&Array.isArra
Line truncated
|
||||
`));Po(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(j=>I({},j,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Po(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>hfe(e),[e]),b=v.useCallback((T,F=!0,j=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,j)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Po(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,j=!1)=>{n.debug("Setting selection for several rows");const $=T.filter(B=>e.current.isRowSelectable(B));let L;if(j)L=F?$:[];else{const B=I({},wv(e));$.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},j=!0,$=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Wf(e),z=L.indexOf(T),B=L.indexOf(F),[A,H]=z>B?[B,z]:[z,B],q=L.slice(A,H+1);e.current.selectRows(q,j,$)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};it(e,w,"public"),it(e,P,t.signature===Ki.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Po(e.current.state),F=Ta(e),j=I({},wv(e));let $=!1;T.forEach(L=>{F[L]||(delete j[L],$=!0)}),$&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const j=F.metaKey||F.ctrlKey,$=!a&&!j&&!Cce(F),L=!c||$,z=e.current.isRowSelected(T);L?e.current.selectRow(T,$?!0:!z,!0):e.current.selectRow(T,!z,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var j;if(s)return;const $=(j=F.target.closest(`.${ne.cell}`))==null?void 0:j.getAttribute("data-field");if($===Id.field||$===kP)return;if($){const z=e.current.getColumn($);if((z==null?void 0:z.type)===k0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),M=v.useCallback((T,F)=>{if(c&&F.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[c]),O=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),R=v.useCallback(T=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?uj(e):Wf(e);e.current.selectRows(j,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Tt.Edit&&!cm(F)){if(bv(F.key)&&F.shiftKey){const j=to(e);if(j&&j.id!==T.id){F.preventDefault();const $=e.current.isRowSelected(j.id);if(!c){e.current.selectRow(j.id,!$,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(j.id),z=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>z?$?(B=z,A=L-1):(B=z,A=L):$?(B=L+1,A=z):(B=L,A=z);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!$);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);qe(e,"sortedRowsSet",r(C)),qe(e,"rowClick",r(S)),qe(e,"rowSelectionCheckboxChange",r(O)),qe(e,"headerSelectionCheckboxChange",R),qe(e,"cellMouseDown",r(M)),qe(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Po(e.current.state);if(h){const F=T.filter(j=>h(j));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Po(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},tbe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:
Line truncated
|
||||
`}${s}`.trim()}function G2(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function i0e(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{G2(e)}):G2(e)}function a0e(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const l0e=(e,t)=>{const n=t.unstable_ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=v.useCallback(a=>{if(!((a.ctrlKey||a.metaKey)&&a.key==="c")||a0e(a.target))return;let l="";if(e.current.getSelectedRows().size>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o});else{const u=to(e);if(u){const c=e.current.getCellParams(u.id,u.field);l=Wj(c,{delimiterCharacter:o,ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(i0e(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);lfe(e,e.current.rootElementRef,"keydown",i),Qt(e,"clipboardCopy",t.onClipboardCopy)},s0e=e=>I({},e,{columnMenu:{open:!1}}),u0e=e=>{const t=vr(e,"useGridColumnMenu"),n=v.useCallback(a=>{e.current.setState(s=>s.columnMenu.open&&s.columnMenu.field===a?s:(t.debug("Opening Column Menu"),I({},s,{columnMenu:{open:!0,field:a}})))&&(e.current.hidePreferences(),e.current.forceUpdate())},[e,t]),r=v.useCallback(()=>{const a=Uw(e.current.state);if(a.field){const s=Ed(e),u=mi(e),c=Na(e);let d=a.field;if(s[d]||(d=c[0]),u[d]===!1){const f=c.filter(p=>p===d?!0:u[p]!==!1),m=f.indexOf(d);d=f[m+1]||f[m-1]}e.current.setColumnHeaderFocus(d)}e.current.setState(s=>!s.columnMenu.open&&s.columnMenu.field===void 0?s:(t.debug("Hiding Column Menu"),I({},s,{columnMenu:I({},s.columnMenu,{open:!1,field:void 0})})))&&e.current.forceUpdate()},[e,t]),o=v.useCallback(a=>{t.debug("Toggle Column Menu");const l=Uw(e.current.state);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);it(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),qe(e,"columnResizeStart",r),qe(e,"virtualScrollerWheel",e.current.hideColumnMenu),qe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},Gj=["maxWidth","minWidth","width","flex"];function c0e({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,s=t,u=0;o.frozenFields.forEach(c=>{l-=o.all[c].computedWidth,s-=o.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(o.all[d.field]&&o.all[d.field].frozen===!0)continue;let m=l/s*d.flex;m<d.minWidth?(u+=d.minWidth-m,m=d.minWidth,a.min[d.field]=!0):m>d.maxWidth&&(u+=d.maxWidth-m,m=d.maxWidth,a.max[d.field]=!0),o.all[d.field]={frozen:!1,computedWidth:m,flex:d.flex}}u<0?Object.keys(a.max).forEach(c=>{o.freeze(c)}):u>0?Object.keys(a.min).forEach(c=>{o.freeze(c)}):n.forEach(({field:c})=>{o.freeze(c)}),i()}return i(),o.all}const Zw=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(l=>{const s=I({},e.lookup[l]);if(e.columnVisibilityModel[l]===!1)s.computedWidth=0;else{let u;s.flex&&s.flex>0?(r+=s.flex,u=0,i.push(s)):u=id(s.width||yi.width,s.minWidth||yi.minWidth,s.maxWidth||yi.maxWidth),o+=u,s.computedWidth=u}n[l]=s});const a=Math.max(t-o,0);if(r>0&&t>0){const l=c0e({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach(s=>{n[s].computedWidth=l[s].computedWidth})}return I({},e,{lookup:n})},d0e=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(i[d]=!0,a.push(d))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(c=>!i[c])],s=I({},e.lookup);for(let c=0;c<o.length;c+=1){const d=o[c],f=I({},s[d],{hasBeenResized:!0});Object.entries(r[d]).forEach(([m,p])=>{f[m]=p===-1?1/0:p}),s[d]=f}return I({},e,{orderedFields:l,lookup:s})};function q2(e,t){let n=e[Uj];return t&&e[t]&&(n=e[t]),n}const ec=({apiRef:e,columnsToUpsert:t,initialState:n,columnTypes:r,columnVisibilityModel:o=mi(e),keepOnlyColumnsToUpsert:i=!1})=>{var a,l,s;const u=!e.current.state.columns;let c;if(u)c={orderedFields:[],lookup:{},columnVisibilityModel:o};else{const p=Ks(e.current.state);c={orderedFields:i?[]:[...p.orderedFields],lookup:I({},p.lookup),columnVisibilityModel:o}}let d={};i&&!u&&(d=Object.keys(c.lookup).reduce((p,h)=>I({},p,{[h]:!1}),{})),t.forEach(p=>{const{field:h}=p;d[h]=!0;let y=c.lookup[h];y==null?(y=I({},q2(r,p.type),{field:h,hasBeenResized:!1}),c.orderedFields.push(h)):i&&c.orderedFields.push(h),y&&y.type!==p.type&&(y=I({},q2(r,p.type),{field:h}));let b=y.hasBeenResized;Gj.forEach(g=>{p[g]!==vLine truncated
|
||||
`);q.appendChild(x.createTextNode(G)),x.head.appendChild(q)}}else if(H.getAttribute("href")){const q=x.createElement(H.tagName);for(let U=0;U<H.attributes.length;U+=1){const G=H.attributes[U];G&&q.setAttribute(G.nodeName,G.nodeValue||"")}$.push(new Promise(U=>{q.addEventListener("load",()=>U())})),x.head.appendChild(q)}}}Promise.all($).then(()=>{p.contentWindow.print()})},[e,r,t.columnHeaderHeight]),c=v.useCallback(p=>{var h;r.current.body.removeChild(p),e.current.restoreState(o.current||{}),(h=o.current)!=null&&(h=h.columns)!=null&&h.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.unstable_setVirtualization(!0),e.current.setRows(a.current),o.current=null,i.current={},a.current=[]},[e]),f={exportDataAsPrint:v.useCallback(async p=>{if(n.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI: No grid root element available.");o.current=e.current.exportState(),i.current=mi(e);const h=Ta(e);if(a.current=yf(e).map(b=>h[b]),t.pagination){const b=N4(e),g={page:0,pageSize:b};e.current.updateControlState("pagination",dg(b,"DataGridPro",g)),e.current.forceUpdate()}await l(p==null?void 0:p.fields,p==null?void 0:p.allColumns,p==null?void 0:p.includeCheckboxes),p!=null&&p.getRowsToExport&&s(p.getRowsToExport),e.current.unstable_setVirtualization(!1),await E0e();const y=P0e(p==null?void 0:p.fileName);y.onload=()=>{u(y,p),y.contentWindow.matchMedia("print").addEventListener("change",g=>{g.matches===!1&&c(y)})},r.current.body.appendChild(y)},[t,n,e,u,c,l,s])};it(e,f,"public");const m=v.useCallback((p,h)=>{var y;return(y=h.printOptions)!=null&&y.disableToolbarButton?p:[...p,{component:N.jsx(Ohe,{options:h.printOptions}),componentName:"printExport"}]},[]);jn(e,"exportMenu",m)},$0e=(e,t,n)=>{var r,o,i;const a=(r=(o=t.filterModel)!=null?o:(i=t.initialState)==null||(i=i.filter)==null?void 0:i.filterModel)!=null?r:kp();return I({},e,{filter:{filterModel:Nj(a,t.disableMultipleColumnsFiltering,n),filteredRowsLookup:{},filteredDescendantCountLookup:{}},visibleRowsLookup:{}})},I0e=e=>e.filteredRowsLookup;function Q2(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function O0e(){return c0(Object.values)}const M0e=(e,t)=>{var n,r;const o=vr(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:Xn,changeEvent:"filterModelChange"});const i=v.useCallback(()=>{e.current.setState(O=>{const R=Xn(O,e.current.instanceId),_=t.filterMode==="client"?gye(R,e,t.disableEval):null,D=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:_,filterModel:R??kp()}),T=I({},O,{filter:I({},O.filter,D)}),F=Q2(e,T);return I({},T,{visibleRowsLookup:F})}),e.current.publishEvent("filteredRowsSet")},[e,t.filterMode,t.disableEval]),a=v.useCallback((O,R)=>R==null||R.filterable===!1||t.disableColumnFilter?O:[...O,"columnMenuFilterItem"],[t.disableColumnFilter]),l=v.useCallback(()=>{i(),e.current.forceUpdate()},[e,i]),s=v.useCallback(O=>{const R=Xn(e),_=[...R.items],D=_.findIndex(T=>T.id===O.id);D===-1?_.push(O):_[D]=O,e.current.setFilterModel(I({},R,{items:_}),"upsertFilterItem")},[e]),u=v.useCallback(O=>{const R=Xn(e),_=[...R.items];O.forEach(D=>{const T=O.findIndex(F=>F.id===D.id);T===-1?_.push(D):_[T]=D}),e.current.setFilterModel(I({},R,{items:O}),"upsertFilterItems")},[e]),c=v.useCallback(O=>{const R=Xn(e),_=R.items.filter(D=>D.id!==O.id);_.length!==R.items.length&&e.current.setFilterModel(I({},R,{items:_}),"deleteFilterItem")},[e]),d=v.useCallback((O,R,_)=>{if(o.debug("Displaying filter panel"),O){const D=Xn(e),T=D.items.filter(L=>{var z;if(L.value!==void 0)return!(Array.isArray(L.value)&&L.value.length===0);const A=(z=e.current.getColumn(L.field).filterOperators)==null?void 0:z.find(q=>q.value===L.operator);return!(typeof(A==null?void 0:A.requiresFilterValue)>"u"?!0:A==null?void 0:A.requiresFilterValue)});let F;const j=T.find(L=>L.field===O),$=e.current.getColumn(O);j?F=T:t.disableMultipleColumnsFiltering?F=[Qw({field:O,operator:$.filterOperators[0].value},e)]:F=[...T,Qw({field:O,operator:$.filterOperators[0].value},e)],e.current.setFilterModel(I({},D,{items:F}))}e.current.showPreferences(mu.filters,R,_)},[e,o,t.disableMultipleColumnsFiltering]),f=v.useCallback(()=>{o.debug("Hiding filter panel"),e.current.hidePreferences()},[e,o]),m=v.useCallback(O=>{const R=Xn(e);R.logicOperator!==O&&e.current.setFilterModel(I({},R,{logicOperator:O}),"changeLogicOperator")},[e]),p=v.useCallback(O=>{const R=Xn(e);Ys(R.quickFilterValues,O)||e.current.setFilterModel(I({},R,{quickFilterValues:[...O]}))},[e]),h=v.useCallback((O,R)=>{Xn(e)!==O&&(o.debug("Setting filter model"),e.current.updateControlState("filter",D2(O,t.disableMultipleColumnsFiltering,e),R),e.current.unstable_applyFilters())},[e,o,t.disableMultipleColumnsFiltering]),y={setFilterLogicOperator:m,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:s,upsertFilt
Line truncated
|
||||
`));const T=[];D.forEach(j=>{const $=hv(j,t.getRowId,"A row was provided without id when calling updateRows():"),L=e.current.getRowNode($);if((L==null?void 0:L.type)==="pinnedRow"){const z=e.current.caches.pinnedRows,B=z.idLookup[$];B&&(z.idLookup[$]=I({},B,j))}else T.push(j)});const F=yue({updates:T,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:F,throttle:!0})},[t.signature,t.getRowId,c,e]),m=v.useCallback(()=>{const D=yf(e),T=Ta(e);return new Map(D.map(F=>{var j;return[F,(j=T[F])!=null?j:{}]}))},[e]),p=v.useCallback(()=>p0(e),[e]),h=v.useCallback(()=>yf(e),[e]),y=v.useCallback(D=>u[D],[u]),b=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.type!=="group")throw new Error("MUI: Only group nodes can be expanded or collapsed");const j=I({},F,{childrenExpanded:T});e.current.setState($=>I({},$,{rows:I({},$.rows,{tree:I({},$.rows.tree,{[D]:j})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",j)},[e]),g=v.useCallback(D=>{var T;return(T=di(e)[D])!=null?T:null},[e]),x=v.useCallback(({skipAutoGeneratedRows:D=!0,groupId:T,applySorting:F,applyFiltering:j})=>{const $=di(e);let L;if(F){const z=$[T];if(!z)return[];const B=iP(e);L=[];const A=B.findIndex(H=>H===T)+1;for(let H=A;H<B.length&&$[B[H]].depth>z.depth;H+=1){const q=B[H];(!D||!Pp($[q]))&&L.push(q)}}else L=uP($,T,D);if(j){const z=L4(e);L=L.filter(B=>z[B]!==!1)}return L},[e]),w=v.useCallback((D,T)=>{const F=e.current.getRowNode(D);if(!F)throw new Error(`MUI: No row with id #${D} found`);if(F.parent!==Pr)throw new Error("MUI: The row reordering do not support reordering of grouped rows yet");if(F.type!=="leaf")throw new Error("MUI: The row reordering do not support reordering of footer or grouping rows");e.current.setState(j=>{const $=di(j,e.current.instanceId)[Pr],L=$.children,z=L.findIndex(A=>A===D);if(z===-1||z===T)return j;n.debug(`Moving row ${D} to index ${T}`);const B=[...L];return B.splice(T,0,B.splice(z,1)[0]),I({},j,{rows:I({},j.rows,{tree:I({},j.rows.tree,{[Pr]:I({},$,{children:B})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=v.useCallback((D,T)=>{if(t.signature===Ki.DataGrid&&T.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
|
||||
`));if(T.length===0)return;if(m0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const j=I({},di(e)),$=I({},Ta(e)),L=I({},fv(e)),z=j[Pr],B=[...z.children],A=new Set;for(let q=0;q<T.length;q+=1){const U=T[q],G=hv(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Y]=B.splice(D+q,1,G);A.has(Y)||(delete $[Y],delete L[Y],delete j[Y]);const re={id:G,depth:0,parent:Pr,type:"leaf",groupingKey:null};$[G]=U,L[G]=G,j[G]=re,A.add(G)}j[Pr]=I({},z,{children:B});const H=B.filter(q=>j[q].type==="leaf");e.current.caches.rows.dataRowIdToModelLookup=$,e.current.caches.rows.dataRowIdToIdLookup=L,e.current.setState(q=>I({},q,{rows:I({},q.rows,{dataRowIdToModelLookup:$,dataRowIdToIdLookup:L,dataRowIds:H,tree:j})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),C={getRow:a,getRowId:s,getRowModels:m,getRowsCount:p,getAllRowIds:h,setRows:d,updateRows:f,getRowNode:g,getRowIndexRelativeToVisibleRows:y,unstable_replaceRows:P},E={setRowIndex:w,setRowChildrenExpansion:b,getRowGroupChildren:x},S=v.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=I({},e.current.caches.rows,{updates:{type:"full",rows:yf(e)}}):D=ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),M=v.useCallback(D=>{D==="rowTreeCreation"&&S()},[S]),O=v.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==Jse(e)&&S()},[e,S]);qe(e,"activeStrategyProcessorChange",M),qe(e,"strategyAvailabilityChange",O);const R=v.useCallback(()=>{e.current.setState(D=>{const T=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:di(D,e.current.instanceId),treeDepths:QM(D,e.current.instanceId),dataRowIds:yf(D,e.current.instanceId),dataRowIdToModelLookup:Ta(D,e.current.instanceId),dataRowIdToIdLookup:fv(D,e.current.instanceId)});return I({},D,{rows:I({},D.rows,T,{totalTopLevelRowCount:z4({tree:T.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);OP(e,"hydrateRows",R),it(e,C,"public"),it(e,E,t.signature===Ki.DataGrid?"private":"public");const _=v.useRef(!0);v.useEffect(()=>{if(_.current){_.current=!1;return}const D=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,T=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,F=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;if(D){T||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),F||(e.current.setState(j=>I({},j,{rows:I({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate());return}n.debug(`Updating all rows, new length ${t.rows.length}`),c({cache:ug({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1})},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},Q0e=e=>{const t={[Pr]:I({},gue(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Pr,type:"leaf",groupingKey:null}}return{groupingName:hu,tree:t,treeDepths:{0:e.length},dataRowIds:e}},Y0e=({previousTree:e,actions:t})=>{const n=I({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Pr,type:"leaf",groupingKey:null}}const o=n[Pr];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Pr]=I({},o,{children:i}),{groupingName:hu,tree:n,treeDepths:{0:i.length},dataRowIds:i}},X0e=e=>e.updates.type==="full"?Q0e(e.updates.rows):Y0e({previousTree:e.previousTree,actions:e.updates.actions}),Z0e=e=>{Ev(e,hu,"rowTreeCreation",X0e)},Yj=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],J0e=(e,t)=>{var n;return I({},e,{rowSelection:t.rowSelection?(n=Yj(t.rowSelectionModel))!=null?n:[]:[]})},ebe=(e,t)=>{const n=vr(e,"useGridSelection"),r=T=>(...F)=>{t.rowSelection&&T(...F)},o=v.useMemo(()=>Yj(t.rowSelectionModel,Po(e.current.state)),[e,t.rowSelectionModel]),i=v.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:o,propOnChange:t.onRowSelectionModelChange,stateSelector:Po,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableMultipleRowSelection:l,disableRowSelectionOnClick:s,isRowSelectable:u}=t,c=!l||a,d=ku(e,t),f=v.useCallback(T=>{var F;let j=T;const $=(F=i.current)!=null?F:T,L=e.current.isRowSelected(T);if(L){const z=Wf(e),B=z.findIndex(H=>H===$),A=z.findIndex(H=>H===j);if(B===A)return;B>A?j=z[A+1]:j=z[A-1]}i.current=T,e.current.selectRowRange({startId:$,endId:j},!L)},[e]),m=v.useCallback(T=>{if(t.signature===Ki.DataGrid&&!t.checkboxSelection&&Array.isArra
Line truncated
|
||||
`));Po(e.current.state)!==T&&(n.debug("Setting selection model"),e.current.setState(j=>I({},j,{rowSelection:t.rowSelection?T:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,t.checkboxSelection]),p=v.useCallback(T=>Po(e.current.state).includes(T),[e]),h=v.useCallback(T=>{if(u&&!u(e.current.getRowParams(T)))return!1;const F=e.current.getRowNode(T);return!((F==null?void 0:F.type)==="footer"||(F==null?void 0:F.type)==="pinnedRow")},[e,u]),y=v.useCallback(()=>hfe(e),[e]),b=v.useCallback((T,F=!0,j=!1)=>{if(e.current.isRowSelectable(T))if(i.current=T,j)n.debug(`Setting selection for row ${T}`),e.current.setRowSelectionModel(F?[T]:[]);else{n.debug(`Toggling selection for row ${T}`);const L=Po(e.current.state).filter(B=>B!==T);F&&L.push(T),(L.length<2||c)&&e.current.setRowSelectionModel(L)}},[e,n,c]),g=v.useCallback((T,F=!0,j=!1)=>{n.debug("Setting selection for several rows");const $=T.filter(B=>e.current.isRowSelectable(B));let L;if(j)L=F?$:[];else{const B=I({},wv(e));$.forEach(A=>{F?B[A]=A:delete B[A]}),L=Object.values(B)}(L.length<2||c)&&e.current.setRowSelectionModel(L)},[e,n,c]),x=v.useCallback(({startId:T,endId:F},j=!0,$=!1)=>{if(!e.current.getRow(T)||!e.current.getRow(F))return;n.debug(`Expanding selection from row ${T} to row ${F}`);const L=Wf(e),z=L.indexOf(T),B=L.indexOf(F),[A,H]=z>B?[B,z]:[z,B],q=L.slice(A,H+1);e.current.selectRows(q,j,$)},[e,n]),w={selectRow:b,setRowSelectionModel:m,getSelectedRows:y,isRowSelected:p,isRowSelectable:h},P={selectRows:g,selectRowRange:x};it(e,w,"public"),it(e,P,t.signature===Ki.DataGrid?"private":"public");const C=v.useCallback(()=>{if(t.keepNonExistentRowsSelected)return;const T=Po(e.current.state),F=Ta(e),j=I({},wv(e));let $=!1;T.forEach(L=>{F[L]||(delete j[L],$=!0)}),$&&e.current.setRowSelectionModel(Object.values(j))},[e,t.keepNonExistentRowsSelected]),E=v.useCallback((T,F)=>{const j=F.metaKey||F.ctrlKey,$=!a&&!j&&!Cce(F),L=!c||$,z=e.current.isRowSelected(T);L?e.current.selectRow(T,$?!0:!z,!0):e.current.selectRow(T,!z,!1)},[e,c,a]),S=v.useCallback((T,F)=>{var j;if(s)return;const $=(j=F.target.closest(`.${ne.cell}`))==null?void 0:j.getAttribute("data-field");if($===Id.field||$===$P)return;if($){const z=e.current.getColumn($);if((z==null?void 0:z.type)===k0)return}e.current.getRowNode(T.id).type!=="pinnedRow"&&(F.shiftKey&&(c||a)?f(T.id):E(T.id,F))},[s,c,a,e,f,E]),M=v.useCallback((T,F)=>{if(c&&F.shiftKey){var j;(j=window.getSelection())==null||j.removeAllRanges()}},[c]),O=v.useCallback((T,F)=>{F.nativeEvent.shiftKey?f(T.id):e.current.selectRow(T.id,T.value)},[e,f]),R=v.useCallback(T=>{const j=t.checkboxSelectionVisibleOnly&&t.pagination?cj(e):Wf(e);e.current.selectRows(j,T.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination]),_=v.useCallback((T,F)=>{if(e.current.getCellMode(T.id,T.field)!==Tt.Edit&&!cm(F)){if(bv(F.key)&&F.shiftKey){const j=to(e);if(j&&j.id!==T.id){F.preventDefault();const $=e.current.isRowSelected(j.id);if(!c){e.current.selectRow(j.id,!$,!0);return}const L=e.current.getRowIndexRelativeToVisibleRows(j.id),z=e.current.getRowIndexRelativeToVisibleRows(T.id);let B,A;L>z?$?(B=z,A=L-1):(B=z,A=L):$?(B=L+1,A=z):(B=L,A=z);const H=d.rows.slice(B,A+1).map(q=>q.id);e.current.selectRows(H,!$);return}}if(F.key===" "&&F.shiftKey){F.preventDefault(),E(T.id,F);return}F.key==="a"&&(F.ctrlKey||F.metaKey)&&(F.preventDefault(),g(e.current.getAllRowIds(),!0))}},[e,E,g,d.rows,c]);qe(e,"sortedRowsSet",r(C)),qe(e,"rowClick",r(S)),qe(e,"rowSelectionCheckboxChange",r(O)),qe(e,"headerSelectionCheckboxChange",R),qe(e,"cellMouseDown",r(M)),qe(e,"cellKeyDown",r(_)),v.useEffect(()=>{o!==void 0&&e.current.setRowSelectionModel(o)},[e,o,t.rowSelection]),v.useEffect(()=>{t.rowSelection||e.current.setRowSelectionModel([])},[e,t.rowSelection]);const D=o!=null;v.useEffect(()=>{if(D||!t.rowSelection)return;const T=Po(e.current.state);if(h){const F=T.filter(j=>h(j));F.length<T.length&&e.current.setRowSelectionModel(F)}},[e,h,D,t.rowSelection]),v.useEffect(()=>{if(!t.rowSelection||D)return;const T=Po(e.current.state);!c&&T.length>1&&e.current.setRowSelectionModel([])},[e,c,a,D,t.rowSelection])},tbe={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:
Line truncated
|
||||
`)),r.current=!0),E.width===0&&!r.current&&!S&&(n.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
|
||||
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);Rt(()=>c(),[c]),Qt(e,"sortedRowsSet",c),Qt(e,"paginationModelChange",c),Qt(e,"columnsChange",c),qe(e,"resize",C),Qt(e,"debouncedResize",t.onResize)}const cbe=["style"],dbe=["style"];function Rc(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Rc(e,t,n,o):Rc(e,t,o+1,r)}function fbe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Rc(e,t,Math.floor(n/2),Math.min(n,t.length))}const $l=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[id(e-n,r,o),id(t+n,r,o)],Xj=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,pbe={maxSize:3},mbe=e=>{var t,n;const r=hs(),o=We(),i=Ne(r,tr),a=Ne(r,$fe),l=Ne(r,hj),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Rr(),p=Ne(r,od),h=Ne(r,oP),y=Ne(r,to),b=Ne(r,mv),g=Ne(r,Ip),x=Ne(r,wv),w=ku(r,o),P=v.useRef(null),C=v.useRef(null),E=vt(s,C),[S,M]=v.useState(null),O=v.useRef(S),R=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,j]=v.useState(null),$=v.useRef(Object.create(null)),L=v.useRef(),z=v.useRef(),B=v.useRef(c0((ie,ye,V,Q,Z,ae)=>{let te;const K=ie.slice(ye,V);return ae>-1&&(ye>ae&&ae>=Q||V<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},pbe)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,V;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=id(Q-(((V=w.range)==null?void 0:V.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?Rc(ie,g.positions):fbe(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=R.current,V=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?V+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=$l({firstIndex:V,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=Rc(Math.abs(ye),p),ae=Rc(Math.abs(ye)+_.width,p))}return{firstRowIndex:V,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);Rt(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),Rt(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const U=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);qe(r,"debouncedResize",U);const G=v.useCallback(ie=>{const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=$l({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Jw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:V,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=Ip(r.current.state).positions[ye],K=ae*od(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>O.current,[]),re=v.useCallback(ie=>{if(O.current&&Xj(ie,O.current)){G(ie);return}M(ie),G(ie);const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:V}),O.current=ie},[r,M,O,w.rows.length,o.rowBuffer,G]);Rt(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:V}=R.current,Q={top:ye,left:V,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Jt(ie=>{const{scrollTop:ye,scrollLeft:V}=ie.currentTarget;if(R.current.top=ye,R.current.left=V,!O.current||ye<0||m.direction==="ltr"&&V<0||m.direction==="rtl"&&V>0)return;const Q=a?q():O.current,Z=Math.abs(Q.firstRowIndex-O.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-O.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-O.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-O.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:V,renderContext:ee?Q:O.current},ie),ee&&(ss.flushSync(()=>{re(Q)}),T.current=h)}),J=Jt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Jt(ie=>{r.current.publishEvent("virtualScroller
Line truncated
|
||||
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Jj(i,[...t,r],n)})},eC=e=>{if(!e)return{};const t={};return e.forEach(n=>{Jj(n,[],t)}),t},tC=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>Ys(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},h1e=["groupId","children"],RP=e=>{let t={};return e.forEach(n=>{if(V4(n))return;const{groupId:r,children:o}=n,i=ue(n,h1e);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=I({},i,{groupId:r}),l=RP(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=I({},t,l,{[r]:a})}),I({},t)},g1e=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=Na(n),s=d0(n),u=RP((o=t.columnGroupingModel)!=null?o:[]),c=eC((i=t.columnGroupingModel)!=null?i:[]),d=tC(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return I({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},v1e=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=Qse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>T4(e),[e]);it(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=eC((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=tC(p,u,h);return I({},c,{columnGrouping:I({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=Na(e),h=d0(e),y=RP(s??[]),b=eC(s??[]),g=tC(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>I({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);qe(e,"columnIndexChange",a),qe(e,"columnsChange",()=>{l(t.columnGroupingModel)}),qe(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},y1e=(e,t)=>{const n=Hye(e,t);return rbe(n,t),Z0e(n),_r(J0e,n,t),_r(p0e,n,t),_r(q0e,n,t),_r(W0e,n,t),_r(R0e,n,t),_r(obe,n,t),_r(A0e,n,t),_r($0e,n,t),_r(v0e,n,t),_r(C0e,n,t),_r(d1e,n,t),_r(s0e,n,t),_r(g1e,n,t),_r(Pfe,n,t),F0e(n,t),ebe(n,t),m0e(n,t),K0e(n,t),Mue(n,t),m1e(n),v1e(n,t),G0e(n,t),T0e(n,t),L0e(n,t),M0e(n,t),ibe(n,t),y0e(n,t),S0e(n,t),f1e(n,t),abe(n,t),u0e(n),w0e(n,t),k0e(n,t),l0e(n,t),ube(n,t),lbe(n,t),p1e(n),kfe(n,t),n},b1e=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},ft,t)},x1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),w1e=v.forwardRef(function(t,n){const r=We(),o=b1e(r);return N.jsx(x1e,I({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),C1e=(e,t)=>{const{classes:n}=e;return Ie({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},S1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),E1e=v.forwardRef(function(t,n){var r;const o=We(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=C1e(o,i);return N.jsx(S1e,I({ref:n},t,{ownerState:o,className:he(a.root,t.className)}))}),P1e=["className"],k1e=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},ft,t)},$1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),I1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,P1e),i=We(),a=k1e(i);return N.jsx($1e,I({ref:n,className:he(a.root,r),ownerState:i},o))}),O1e=["className"],M1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,O1e),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=mbe({ref:n});return N.jsxs(w1e,I({className:r},i(o),{children:[N.jsx(Sue,{}),N.jsx(E1e,I({},a(),{children:N.jsx(I1e,I({},l(),{chil
Line truncated
|
||||
`)):null,paginationMode:fe.oneOf(["client","server"]),paginationModel:fe.shape({page:fe.number.isRequired,pageSize:fe.number.isRequired}),processRowUpdate:fe.func,rowBuffer:fe.number,rowCount:fe.number,rowHeight:fe.number,rowModesModel:fe.object,rowPositionsDebounceMs:fe.number,rows:fe.arrayOf(fe.object).isRequired,rowSelection:fe.bool,rowSelectionModel:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.number,fe.string]).isRequired),fe.number,fe.string]),rowSpacingType:fe.oneOf(["border","margin"]),rowThreshold:fe.number,scrollbarSize:fe.number,showCellVerticalBorder:fe.bool,showColumnVerticalBorder:fe.bool,slotProps:fe.object,slots:fe.object,sortingMode:fe.oneOf(["client","server"]),sortingOrder:fe.arrayOf(fe.oneOf(["asc","desc"])),sortModel:fe.arrayOf(fe.shape({field:fe.string.isRequired,sort:fe.oneOf(["asc","desc"])})),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),unstable_ignoreValueFormatterDuringExport:fe.oneOfType([fe.shape({clipboardExport:fe.bool,csvExport:fe.bool}),fe.bool])};var R1e=Object.prototype,T1e=R1e.hasOwnProperty;function _1e(e,t){return e!=null&&T1e.call(e,t)}function F1e(e,t){return e!=null&&TL(e,t,_1e)}var mm=e=>e.type==="checkbox",yc=e=>e instanceof Date,Sr=e=>e==null;const t5=e=>typeof e=="object";var Tn=e=>!Sr(e)&&!Array.isArray(e)&&t5(e)&&!yc(e),n5=e=>Tn(e)&&e.target?mm(e.target)?e.target.checked:e.target.value:e,A1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,r5=(e,t)=>e.has(A1e(t)),L1e=e=>{const t=e.constructor&&e.constructor.prototype;return Tn(t)&&t.hasOwnProperty("isPrototypeOf")},_P=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Lr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_P&&(e instanceof Blob||e instanceof FileList))&&(n||Tn(e)))if(t=n?[]:{},!n&&!L1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Lr(e[r]));else return e;return t}var hm=e=>Array.isArray(e)?e.filter(Boolean):[],hn=e=>e===void 0,Le=(e,t,n)=>{if(!t||!Tn(e))return n;const r=hm(t.split(/[,[\].]+?/)).reduce((o,i)=>Sr(o)?o:o[i],e);return hn(r)||r===e?hn(e[t])?n:e[t]:r},fi=e=>typeof e=="boolean";const Pv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o5=k.createContext(null),FP=()=>k.useContext(o5),D1e=e=>{const{children:t,...n}=e;return k.createElement(o5.Provider,{value:n},t)};var i5=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==pi.all&&(t._proxyFormState[a]=!r||pi.all),n&&(n[a]=!0),e[a]}});return o},ko=e=>Tn(e)&&!Object.keys(e).length,a5=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return ko(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||pi.all))},fg=e=>Array.isArray(e)?e:[e],l5=(e,t,n)=>!e||!t||e===t||fg(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function AP(e){const t=k.useRef(e);t.current=e,k.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function N1e(e){const t=FP(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,l]=k.useState(n._formState),s=k.useRef(!0),u=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=k.useRef(o);return c.current=o,AP({disabled:r,next:d=>s.current&&l5(c.current,d.name,i)&&a5(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),k.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),i5(a,n,u.current,!1)}var Bi=e=>typeof e=="string",s5=(e,t,n,r,o)=>Bi(e)?(r&&t.watch.add(e),Le(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Le(n,i))):(r&&(t.watchAll=!0),n);function j1e(e){const t=FP(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},l=k.useRef(r);l.current=r,AP({disabled:i,subject:n._subjects.values,next:c=>{l5(l.current,c.name,a)&&u(Lr(s5(l.current,n._names,c.values||n._formValues,!1,o)))}});const[s,u]=k.useState(n._getWatch(r,o));return k.useEffect(()=>n._removeUnmounted()),s}var LP=e=>/^\w*$/.test(e),u5=e=>hm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Nt=(e,t,n)=>{let r=-1;const o=LP(t)?[t]:u5(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=Tn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e};function z1e(e){const t=FP(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=r5(o._names.array,n),l=j1e({control:o,name:n,defaultValue:Le(o._formValues,n,Le(o._defaultValues,n,e.defaultValue)),exact:!0}),s=N1e({control:o,name:n}),u=k.useRef(o.register(n,{...e.rules,value:l,...fi(e.disabled)?{disabled:e.disabled}:{}}));return k.useEffect
Line truncated
|
||||
`)),r.current=!0),P.current){f(E),P.current=!1;return}m(E)},[t.autoHeight,m,n]);Rt(()=>c(),[c]),Qt(e,"sortedRowsSet",c),Qt(e,"paginationModelChange",c),Qt(e,"columnsChange",c),qe(e,"resize",C),Qt(e,"debouncedResize",t.onResize)}const cbe=["style"],dbe=["style"];function Rc(e,t,n=0,r=t.length){if(t.length<=0)return-1;if(n>=r)return n;const o=n+Math.floor((r-n)/2),i=t[o];return e<=i?Rc(e,t,n,o):Rc(e,t,o+1,r)}function fbe(e,t,n){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return Rc(e,t,Math.floor(n/2),Math.min(n,t.length))}const $l=({firstIndex:e,lastIndex:t,buffer:n,minFirstIndex:r,maxLastIndex:o})=>[id(e-n,r,o),id(t+n,r,o)],Xj=(e,t)=>e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex,pbe={maxSize:3},mbe=e=>{var t,n;const r=hs(),o=We(),i=Ne(r,tr),a=Ne(r,$fe),l=Ne(r,gj),{ref:s,onRenderZonePositioning:u,renderZoneMinColumnIndex:c=0,renderZoneMaxColumnIndex:d=i.length,getRowProps:f}=e,m=Rr(),p=Ne(r,od),h=Ne(r,oP),y=Ne(r,to),b=Ne(r,mv),g=Ne(r,Ip),x=Ne(r,wv),w=ku(r,o),P=v.useRef(null),C=v.useRef(null),E=vt(s,C),[S,M]=v.useState(null),O=v.useRef(S),R=v.useRef({top:0,left:0}),[_,D]=v.useState({width:null,height:null}),T=v.useRef(h),[F,j]=v.useState(null),$=v.useRef(Object.create(null)),L=v.useRef(),z=v.useRef(),B=v.useRef(c0((ie,ye,V,Q,Z,ae)=>{let te;const K=ie.slice(ye,V);return ae>-1&&(ye>ae&&ae>=Q||V<ae&&ae<Z)&&(te=ae),{focusedCellColumnIndexNotInRange:te,renderedColumns:K}},pbe)),A=v.useMemo(()=>y!==null?i.findIndex(ie=>ie.field===y.field):-1,[y,i]),H=v.useCallback(ie=>{var ye,V;const Q=r.current.getLastMeasuredRowIndex();let Z=Q===1/0;(ye=w.range)!=null&&ye.lastRowIndex&&!Z&&(Z=Q>=w.range.lastRowIndex);const ae=id(Q-(((V=w.range)==null?void 0:V.firstRowIndex)||0),0,g.positions.length);return Z||g.positions[ae]>=ie?Rc(ie,g.positions):fbe(ie,g.positions,ae)},[r,(t=w.range)==null?void 0:t.firstRowIndex,(n=w.range)==null?void 0:n.lastRowIndex,g.positions]),q=v.useCallback(()=>{if(!a)return{firstRowIndex:0,lastRowIndex:w.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};const{top:ie,left:ye}=R.current,V=Math.min(H(ie),g.positions.length-1),Q=o.autoHeight?V+w.rows.length:H(ie+_.height);let Z=0,ae=p.length;if(l){let te=!1;const[K,ee]=$l({firstIndex:V,lastIndex:Q,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});for(let se=K;se<ee&&!te;se+=1){const Ce=w.rows[se];te=r.current.rowHasAutoHeight(Ce.id)}te||(Z=Rc(Math.abs(ye),p),ae=Rc(Math.abs(ye)+_.width,p))}return{firstRowIndex:V,lastRowIndex:Q,firstColumnIndex:Z,lastColumnIndex:ae}},[a,l,H,g.positions.length,o.autoHeight,o.rowBuffer,w.rows,p,i.length,r,_]);Rt(()=>{a?(C.current.scrollLeft=0,C.current.scrollTop=0):P.current.style.transform="translate3d(0px, 0px, 0px)"},[a]),Rt(()=>{D({width:C.current.clientWidth,height:C.current.clientHeight})},[g.currentPageTotalHeight]);const U=v.useCallback(()=>{C.current&&D({width:C.current.clientWidth,height:C.current.clientHeight})},[]);qe(r,"debouncedResize",U);const G=v.useCallback(ie=>{const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer}),[Q]=$l({firstIndex:ie.firstColumnIndex,lastIndex:ie.lastColumnIndex,minFirstIndex:c,maxLastIndex:d,buffer:o.columnBuffer}),Z=Jw({firstColumnToRender:Q,apiRef:r,firstRowToRender:ye,lastRowToRender:V,visibleRows:w.rows}),ae=m.direction==="ltr"?1:-1,te=Ip(r.current.state).positions[ye],K=ae*od(r)[Z];P.current.style.transform=`translate3d(${K}px, ${te}px, 0px)`,typeof u=="function"&&u({top:te,left:K})},[r,w.rows,u,c,d,o.columnBuffer,o.rowBuffer,m.direction]),Y=v.useCallback(()=>O.current,[]),re=v.useCallback(ie=>{if(O.current&&Xj(ie,O.current)){G(ie);return}M(ie),G(ie);const[ye,V]=$l({firstIndex:ie.firstRowIndex,lastIndex:ie.lastRowIndex,minFirstIndex:0,maxLastIndex:w.rows.length,buffer:o.rowBuffer});r.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:ye,lastRowToRender:V}),O.current=ie},[r,M,O,w.rows.length,o.rowBuffer,G]);Rt(()=>{if(_.width==null)return;const ie=q();re(ie);const{top:ye,left:V}=R.current,Q={top:ye,left:V,renderContext:ie};r.current.publishEvent("scrollPositionChange",Q)},[r,q,_.width,re]);const le=Jt(ie=>{const{scrollTop:ye,scrollLeft:V}=ie.currentTarget;if(R.current.top=ye,R.current.left=V,!O.current||ye<0||m.direction==="ltr"&&V<0||m.direction==="rtl"&&V>0)return;const Q=a?q():O.current,Z=Math.abs(Q.firstRowIndex-O.current.firstRowIndex),ae=Math.abs(Q.lastRowIndex-O.current.lastRowIndex),te=Math.abs(Q.firstColumnIndex-O.current.firstColumnIndex),K=Math.abs(Q.lastColumnIndex-O.current.lastColumnIndex),ee=Z>=o.rowThreshold||ae>=o.rowThreshold||te>=o.columnThreshold||K>=o.columnThreshold||T.current!==h;r.current.publishEvent("scrollPositionChange",{top:ye,left:V,renderContext:ee?Q:O.current},ie),ee&&(ss.flushSync(()=>{re(Q)}),T.current=h)}),J=Jt(ie=>{r.current.publishEvent("virtualScrollerWheel",{},ie)}),oe=Jt(ie=>{r.current.publishEvent("virtualScroller
Line truncated
|
||||
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{Jj(i,[...t,r],n)})},eC=e=>{if(!e)return{};const t={};return e.forEach(n=>{Jj(n,[],t)}),t},tC=(e,t,n)=>{const r=s=>{var u;return(u=t[s])!=null?u:[]},o=[],i=Math.max(...e.map(s=>r(s).length)),a=(s,u,c)=>Ys(r(s).slice(0,c+1),r(u).slice(0,c+1)),l=(s,u)=>!!(n!=null&&n.left&&n.left.includes(s)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(s)&&n.right.includes(u));for(let s=0;s<i;s+=1){const u=e.reduce((c,d)=>{var f;const m=(f=r(d)[s])!=null?f:null;if(c.length===0)return[{columnFields:[d],groupId:m}];const p=c[c.length-1],h=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!a(h,d,s)||l(h,d)?[...c,{columnFields:[d],groupId:m}]:[...c.slice(0,c.length-1),{columnFields:[...p.columnFields,d],groupId:m}]},[]);o.push(u)}return o},h1e=["groupId","children"],TP=e=>{let t={};return e.forEach(n=>{if(U4(n))return;const{groupId:r,children:o}=n,i=ue(n,h1e);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn(`MUI: group groupId=${r} has no children.`);const a=I({},i,{groupId:r}),l=TP(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=I({},t,l,{[r]:a})}),I({},t)},g1e=(e,t,n)=>{var r,o,i,a;if(!((r=t.experimentalFeatures)!=null&&r.columnGrouping))return e;const l=Na(n),s=d0(n),u=TP((o=t.columnGroupingModel)!=null?o:[]),c=eC((i=t.columnGroupingModel)!=null?i:[]),d=tC(l,c,(a=n.current.state.pinnedColumns)!=null?a:{}),f=s.length===0?0:Math.max(...s.map(m=>{var p,h;return(p=(h=c[m])==null?void 0:h.length)!=null?p:0}));return I({},e,{columnGrouping:{lookup:u,unwrappedGroupingModel:c,headerStructure:d,maxDepth:f}})},v1e=(e,t)=>{var n;const r=v.useCallback(s=>{var u;return(u=Qse(e)[s])!=null?u:[]},[e]),o=v.useCallback(()=>_4(e),[e]);it(e,{unstable_getColumnGroupPath:r,unstable_getAllGroupDetails:o},"public");const a=v.useCallback(()=>{var s;const u=eC((s=t.columnGroupingModel)!=null?s:[]);e.current.setState(c=>{var d,f,m;const p=(d=(f=c.columns)==null?void 0:f.orderedFields)!=null?d:[],h=(m=c.pinnedColumns)!=null?m:{},y=tC(p,u,h);return I({},c,{columnGrouping:I({},c.columnGrouping,{headerStructure:y})})})},[e,t.columnGroupingModel]),l=v.useCallback(s=>{var u,c,d,f;if(!((u=t.experimentalFeatures)!=null&&u.columnGrouping))return;const m=(c=(d=(f=e.current).getPinnedColumns)==null?void 0:d.call(f))!=null?c:{},p=Na(e),h=d0(e),y=TP(s??[]),b=eC(s??[]),g=tC(p,b,m),x=h.length===0?0:Math.max(...h.map(w=>{var P,C;return(P=(C=b[w])==null?void 0:C.length)!=null?P:0}));e.current.setState(w=>I({},w,{columnGrouping:{lookup:y,unwrappedGroupingModel:b,headerStructure:g,maxDepth:x}}))},[e,(n=t.experimentalFeatures)==null?void 0:n.columnGrouping]);qe(e,"columnIndexChange",a),qe(e,"columnsChange",()=>{l(t.columnGroupingModel)}),qe(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),v.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])},y1e=(e,t)=>{const n=Hye(e,t);return rbe(n,t),Z0e(n),_r(J0e,n,t),_r(p0e,n,t),_r(q0e,n,t),_r(W0e,n,t),_r(R0e,n,t),_r(obe,n,t),_r(A0e,n,t),_r($0e,n,t),_r(v0e,n,t),_r(C0e,n,t),_r(d1e,n,t),_r(s0e,n,t),_r(g1e,n,t),_r(Pfe,n,t),F0e(n,t),ebe(n,t),m0e(n,t),K0e(n,t),Mue(n,t),m1e(n),v1e(n,t),G0e(n,t),T0e(n,t),L0e(n,t),M0e(n,t),ibe(n,t),y0e(n,t),S0e(n,t),f1e(n,t),abe(n,t),u0e(n),w0e(n,t),k0e(n,t),l0e(n,t),ube(n,t),lbe(n,t),p1e(n),kfe(n,t),n},b1e=e=>{const{classes:t}=e;return Ie({root:["virtualScroller"]},ft,t)},x1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>t.virtualScroller})({overflow:"auto",height:"100%",position:"relative","@media print":{overflow:"hidden"},zIndex:0}),w1e=v.forwardRef(function(t,n){const r=We(),o=b1e(r);return N.jsx(x1e,I({ref:n},t,{className:he(o.root,t.className),ownerState:r}))}),C1e=(e,t)=>{const{classes:n}=e;return Ie({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ft,n)},S1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>t.virtualScrollerContent})({}),E1e=v.forwardRef(function(t,n){var r;const o=We(),i=!o.autoHeight&&((r=t.style)==null?void 0:r.minHeight)==="auto",a=C1e(o,i);return N.jsx(S1e,I({ref:n},t,{ownerState:o,className:he(a.root,t.className)}))}),P1e=["className"],k1e=e=>{const{classes:t}=e;return Ie({root:["virtualScrollerRenderZone"]},ft,t)},$1e=zn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),I1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,P1e),i=We(),a=k1e(i);return N.jsx($1e,I({ref:n,className:he(a.root,r),ownerState:i},o))}),O1e=["className"],M1e=v.forwardRef(function(t,n){const{className:r}=t,o=ue(t,O1e),{getRootProps:i,getContentProps:a,getRenderZoneProps:l,getRows:s}=mbe({ref:n});return N.jsxs(w1e,I({className:r},i(o),{children:[N.jsx(Sue,{}),N.jsx(E1e,I({},a(),{children:N.jsx(I1e,I({},l(),{chil
Line truncated
|
||||
`)):null,paginationMode:fe.oneOf(["client","server"]),paginationModel:fe.shape({page:fe.number.isRequired,pageSize:fe.number.isRequired}),processRowUpdate:fe.func,rowBuffer:fe.number,rowCount:fe.number,rowHeight:fe.number,rowModesModel:fe.object,rowPositionsDebounceMs:fe.number,rows:fe.arrayOf(fe.object).isRequired,rowSelection:fe.bool,rowSelectionModel:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.number,fe.string]).isRequired),fe.number,fe.string]),rowSpacingType:fe.oneOf(["border","margin"]),rowThreshold:fe.number,scrollbarSize:fe.number,showCellVerticalBorder:fe.bool,showColumnVerticalBorder:fe.bool,slotProps:fe.object,slots:fe.object,sortingMode:fe.oneOf(["client","server"]),sortingOrder:fe.arrayOf(fe.oneOf(["asc","desc"])),sortModel:fe.arrayOf(fe.shape({field:fe.string.isRequired,sort:fe.oneOf(["asc","desc"])})),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),unstable_ignoreValueFormatterDuringExport:fe.oneOfType([fe.shape({clipboardExport:fe.bool,csvExport:fe.bool}),fe.bool])};var R1e=Object.prototype,T1e=R1e.hasOwnProperty;function _1e(e,t){return e!=null&&T1e.call(e,t)}function F1e(e,t){return e!=null&&_L(e,t,_1e)}var mm=e=>e.type==="checkbox",yc=e=>e instanceof Date,Sr=e=>e==null;const t5=e=>typeof e=="object";var Tn=e=>!Sr(e)&&!Array.isArray(e)&&t5(e)&&!yc(e),n5=e=>Tn(e)&&e.target?mm(e.target)?e.target.checked:e.target.value:e,A1e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,r5=(e,t)=>e.has(A1e(t)),L1e=e=>{const t=e.constructor&&e.constructor.prototype;return Tn(t)&&t.hasOwnProperty("isPrototypeOf")},FP=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Lr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(FP&&(e instanceof Blob||e instanceof FileList))&&(n||Tn(e)))if(t=n?[]:{},!n&&!L1e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Lr(e[r]));else return e;return t}var hm=e=>Array.isArray(e)?e.filter(Boolean):[],hn=e=>e===void 0,Le=(e,t,n)=>{if(!t||!Tn(e))return n;const r=hm(t.split(/[,[\].]+?/)).reduce((o,i)=>Sr(o)?o:o[i],e);return hn(r)||r===e?hn(e[t])?n:e[t]:r},fi=e=>typeof e=="boolean";const Pv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},o5=k.createContext(null),AP=()=>k.useContext(o5),D1e=e=>{const{children:t,...n}=e;return k.createElement(o5.Provider,{value:n},t)};var i5=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==pi.all&&(t._proxyFormState[a]=!r||pi.all),n&&(n[a]=!0),e[a]}});return o},ko=e=>Tn(e)&&!Object.keys(e).length,a5=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return ko(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||pi.all))},fg=e=>Array.isArray(e)?e:[e],l5=(e,t,n)=>!e||!t||e===t||fg(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function LP(e){const t=k.useRef(e);t.current=e,k.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function N1e(e){const t=AP(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,l]=k.useState(n._formState),s=k.useRef(!0),u=k.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=k.useRef(o);return c.current=o,LP({disabled:r,next:d=>s.current&&l5(c.current,d.name,i)&&a5(d,u.current,n._updateFormState)&&l({...n._formState,...d}),subject:n._subjects.state}),k.useEffect(()=>(s.current=!0,u.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),i5(a,n,u.current,!1)}var Bi=e=>typeof e=="string",s5=(e,t,n,r,o)=>Bi(e)?(r&&t.watch.add(e),Le(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Le(n,i))):(r&&(t.watchAll=!0),n);function j1e(e){const t=AP(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},l=k.useRef(r);l.current=r,LP({disabled:i,subject:n._subjects.values,next:c=>{l5(l.current,c.name,a)&&u(Lr(s5(l.current,n._names,c.values||n._formValues,!1,o)))}});const[s,u]=k.useState(n._getWatch(r,o));return k.useEffect(()=>n._removeUnmounted()),s}var DP=e=>/^\w*$/.test(e),u5=e=>hm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Nt=(e,t,n)=>{let r=-1;const o=DP(t)?[t]:u5(t),i=o.length,a=i-1;for(;++r<i;){const l=o[r];let s=n;if(r!==a){const u=e[l];s=Tn(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}e[l]=s,e=e[l]}return e};function z1e(e){const t=AP(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=r5(o._names.array,n),l=j1e({control:o,name:n,defaultValue:Le(o._formValues,n,Le(o._defaultValues,n,e.defaultValue)),exact:!0}),s=N1e({control:o,name:n}),u=k.useRef(o.register(n,{...e.rules,value:l,...fi(e.disabled)?{disabled:e.disabled}:{}}));return k.useEffect
Line truncated
|
||||
* Determine if an object is a Buffer
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var fCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},ta=Od,pCe=I5,mCe=fCe,hCe=Ya,gCe={}.hasOwnProperty,E1=["history","path","basename","stem","extname","dirname"];Ya.prototype.toString=$Ce;Object.defineProperty(Ya.prototype,"path",{get:vCe,set:yCe});Object.defineProperty(Ya.prototype,"dirname",{get:bCe,set:xCe});Object.defineProperty(Ya.prototype,"basename",{get:wCe,set:CCe});Object.defineProperty(Ya.prototype,"extname",{get:SCe,set:ECe});Object.defineProperty(Ya.prototype,"stem",{get:PCe,set:kCe});function Ya(e){var t,n;if(!e)e={};else if(typeof e=="string"||mCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ya))return new Ya(e);for(this.data={},this.messages=[],this.history=[],this.cwd=pCe.cwd(),n=-1;++n<E1.length;)t=E1[n],gCe.call(e,t)&&(this[t]=e[t]);for(t in e)E1.indexOf(t)<0&&(this[t]=e[t])}function vCe(){return this.history[this.history.length-1]}function yCe(e){ek(e,"path"),this.path!==e&&this.history.push(e)}function bCe(){return typeof this.path=="string"?ta.dirname(this.path):void 0}function xCe(e){O5(this.path,"dirname"),this.path=ta.join(e||"",this.basename)}function wCe(){return typeof this.path=="string"?ta.basename(this.path):void 0}function CCe(e){ek(e,"basename"),JP(e,"basename"),this.path=ta.join(this.dirname||"",e)}function SCe(){return typeof this.path=="string"?ta.extname(this.path):void 0}function ECe(e){if(JP(e,"extname"),O5(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ta.join(this.dirname,this.stem+(e||""))}function PCe(){return typeof this.path=="string"?ta.basename(this.path,this.extname):void 0}function kCe(e){ek(e,"stem"),JP(e,"stem"),this.path=ta.join(this.dirname||"",e+(this.extname||""))}function $Ce(e){return(this.contents||"").toString(e)}function JP(e,t){if(e&&e.indexOf(ta.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+ta.sep+"`")}function ek(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function O5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var ICe=rCe,R0=hCe,OCe=R0;R0.prototype.message=MCe;R0.prototype.info=TCe;R0.prototype.fail=RCe;function MCe(e,t,n){var r=new ICe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function RCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function TCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var M5=OCe,_Ce=FCe;function FCe(e){if(e)throw e}/*!
|
||||
*/var fCe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},ta=Od,pCe=I5,mCe=fCe,hCe=Ya,gCe={}.hasOwnProperty,E1=["history","path","basename","stem","extname","dirname"];Ya.prototype.toString=$Ce;Object.defineProperty(Ya.prototype,"path",{get:vCe,set:yCe});Object.defineProperty(Ya.prototype,"dirname",{get:bCe,set:xCe});Object.defineProperty(Ya.prototype,"basename",{get:wCe,set:CCe});Object.defineProperty(Ya.prototype,"extname",{get:SCe,set:ECe});Object.defineProperty(Ya.prototype,"stem",{get:PCe,set:kCe});function Ya(e){var t,n;if(!e)e={};else if(typeof e=="string"||mCe(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ya))return new Ya(e);for(this.data={},this.messages=[],this.history=[],this.cwd=pCe.cwd(),n=-1;++n<E1.length;)t=E1[n],gCe.call(e,t)&&(this[t]=e[t]);for(t in e)E1.indexOf(t)<0&&(this[t]=e[t])}function vCe(){return this.history[this.history.length-1]}function yCe(e){tk(e,"path"),this.path!==e&&this.history.push(e)}function bCe(){return typeof this.path=="string"?ta.dirname(this.path):void 0}function xCe(e){O5(this.path,"dirname"),this.path=ta.join(e||"",this.basename)}function wCe(){return typeof this.path=="string"?ta.basename(this.path):void 0}function CCe(e){tk(e,"basename"),ek(e,"basename"),this.path=ta.join(this.dirname||"",e)}function SCe(){return typeof this.path=="string"?ta.extname(this.path):void 0}function ECe(e){if(ek(e,"extname"),O5(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ta.join(this.dirname,this.stem+(e||""))}function PCe(){return typeof this.path=="string"?ta.basename(this.path,this.extname):void 0}function kCe(e){tk(e,"stem"),ek(e,"stem"),this.path=ta.join(this.dirname||"",e+(this.extname||""))}function $Ce(e){return(this.contents||"").toString(e)}function ek(e,t){if(e&&e.indexOf(ta.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+ta.sep+"`")}function tk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function O5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}var ICe=rCe,R0=hCe,OCe=R0;R0.prototype.message=MCe;R0.prototype.info=TCe;R0.prototype.fail=RCe;function MCe(e,t,n){var r=new ICe(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}function RCe(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function TCe(){var e=this.message.apply(this,arguments);return e.fatal=null,e}var M5=OCe,_Ce=FCe;function FCe(e){if(e)throw e}/*!
|
||||
* Determine if an object is a Buffer
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var ACe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},mg=Object.prototype.hasOwnProperty,R5=Object.prototype.toString,fR=Object.defineProperty,pR=Object.getOwnPropertyDescriptor,mR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):R5.call(t)==="[object Array]"},hR=function(t){if(!t||R5.call(t)!=="[object Object]")return!1;var n=mg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&mg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||mg.call(t,o)},gR=function(t,n){fR&&n.name==="__proto__"?fR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},vR=function(t,n){if(n==="__proto__")if(mg.call(t,n)){if(pR)return pR(t,n).value}else return;return t[n]},LCe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=vR(l,n),o=vR(t,n),l!==o&&(c&&o&&(hR(o)||(i=mR(o)))?(i?(i=!1,a=r&&mR(r)?r:[]):a=r&&hR(r)?r:{},gR(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&gR(l,{name:n,newValue:o}));return l},DCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},NCe=[].slice,jCe=zCe;function zCe(e,t){var n;return r;function r(){var a=NCe.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var T5=jCe,BCe=_5;_5.wrap=T5;var yR=[].slice;function _5(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=yR.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=yR.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?T5(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var bR=_Ce,HCe=ACe,Sh=LCe,xR=DCe,F5=BCe,lf=M5,VCe=A5().freeze(),UCe=[].slice,WCe={}.hasOwnProperty,GCe=F5().use(qCe).use(KCe).use(QCe);function qCe(e,t){t.tree=e.parse(t.file)}function KCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function QCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||HCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function A5(){var e=[],t=F5(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=A5(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(Sh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?($1("data",o),n[y]=b,i):WCe.call(n,y)&&n[y]||null:y?($1("data",o),n=y,i):n}function s(y){var b;if($1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=Sh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=Sh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(xR(S[1])&&xR(E)&&(E=Sh(!0,S[1],E)),S[1]=E):e.push(UCe.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=lf(y),g;return a(),g=i.Parser,P1("parse",g),wR(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(CR(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,lf(b),C);function C(E,S,M){S=S||y,E?P(E):w?w(S):g(null,S,M)}}}function f(y,b){var g,x;return d(y,b,w),SR("runSync","run",x),g;function w(P,C){x=!0,g=C,bR(P)}}function m(y,b){var g=lf(b),x;return a(),x=i.Compiler,k1("stringify",x),CR(y),wR(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),P1("process",i.Parser),k1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=lf(y);GCe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),P1("processSync",i.Parser),k1("processSLine truncated
|
||||
*/var ACe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},mg=Object.prototype.hasOwnProperty,R5=Object.prototype.toString,pR=Object.defineProperty,mR=Object.getOwnPropertyDescriptor,hR=function(t){return typeof Array.isArray=="function"?Array.isArray(t):R5.call(t)==="[object Array]"},gR=function(t){if(!t||R5.call(t)!=="[object Object]")return!1;var n=mg.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&mg.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var o;for(o in t);return typeof o>"u"||mg.call(t,o)},vR=function(t,n){pR&&n.name==="__proto__"?pR(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},yR=function(t,n){if(n==="__proto__")if(mg.call(t,n)){if(mR)return mR(t,n).value}else return;return t[n]},LCe=function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=yR(l,n),o=yR(t,n),l!==o&&(c&&o&&(gR(o)||(i=hR(o)))?(i?(i=!1,a=r&&hR(r)?r:[]):a=r&&gR(r)?r:{},vR(l,{name:n,newValue:e(c,a,o)})):typeof o<"u"&&vR(l,{name:n,newValue:o}));return l},DCe=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype},NCe=[].slice,jCe=zCe;function zCe(e,t){var n;return r;function r(){var a=NCe.call(arguments,0),l=e.length>a.length,s;l&&a.push(o);try{s=e.apply(null,a)}catch(u){if(l&&n)throw u;return o(u)}l||(s&&typeof s.then=="function"?s.then(i,o):s instanceof Error?o(s):i(s))}function o(){n||(n=!0,t.apply(null,arguments))}function i(a){o(null,a)}}var T5=jCe,BCe=_5;_5.wrap=T5;var bR=[].slice;function _5(){var e=[],t={};return t.run=n,t.use=r,t;function n(){var o=-1,i=bR.call(arguments,0,-1),a=arguments[arguments.length-1];if(typeof a!="function")throw new Error("Expected function as last argument, not "+a);l.apply(null,[null].concat(i));function l(s){var u=e[++o],c=bR.call(arguments,0),d=c.slice(1),f=i.length,m=-1;if(s){a(s);return}for(;++m<f;)(d[m]===null||d[m]===void 0)&&(d[m]=i[m]);i=d,u?T5(u,l).apply(null,i):a.apply(null,[null].concat(i))}}function r(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}}var xR=_Ce,HCe=ACe,Sh=LCe,wR=DCe,F5=BCe,lf=M5,VCe=A5().freeze(),UCe=[].slice,WCe={}.hasOwnProperty,GCe=F5().use(qCe).use(KCe).use(QCe);function qCe(e,t){t.tree=e.parse(t.file)}function KCe(e,t,n){e.run(t.tree,t.file,r);function r(o,i,a){o?n(o):(t.tree=i,t.file=a,n())}}function QCe(e,t){var n=e.stringify(t.tree,t.file);n==null||(typeof n=="string"||HCe(n)?("value"in t.file&&(t.file.value=n),t.file.contents=n):t.file.result=n)}function A5(){var e=[],t=F5(),n={},r=-1,o;return i.data=l,i.freeze=a,i.attachers=e,i.use=s,i.parse=c,i.stringify=m,i.run=d,i.runSync=f,i.process=p,i.processSync=h,i;function i(){for(var y=A5(),b=-1;++b<e.length;)y.use.apply(null,e[b]);return y.data(Sh(!0,{},n)),y}function a(){var y,b;if(o)return i;for(;++r<e.length;)y=e[r],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),b=y[0].apply(i,y.slice(1)),typeof b=="function"&&t.use(b));return o=!0,r=1/0,i}function l(y,b){return typeof y=="string"?arguments.length===2?($1("data",o),n[y]=b,i):WCe.call(n,y)&&n[y]||null:y?($1("data",o),n=y,i):n}function s(y){var b;if($1("use",o),y!=null)if(typeof y=="function")P.apply(null,arguments);else if(typeof y=="object")"length"in y?w(y):g(y);else throw new Error("Expected usable value, not `"+y+"`");return b&&(n.settings=Sh(n.settings||{},b)),i;function g(C){w(C.plugins),C.settings&&(b=Sh(b||{},C.settings))}function x(C){if(typeof C=="function")P(C);else if(typeof C=="object")"length"in C?P.apply(null,C):g(C);else throw new Error("Expected usable value, not `"+C+"`")}function w(C){var E=-1;if(C!=null)if(typeof C=="object"&&"length"in C)for(;++E<C.length;)x(C[E]);else throw new Error("Expected a list of plugins, not `"+C+"`")}function P(C,E){var S=u(C);S?(wR(S[1])&&wR(E)&&(E=Sh(!0,S[1],E)),S[1]=E):e.push(UCe.call(arguments))}}function u(y){for(var b=-1;++b<e.length;)if(e[b][0]===y)return e[b]}function c(y){var b=lf(y),g;return a(),g=i.Parser,P1("parse",g),CR(g,"parse")?new g(String(b),b).parse():g(String(b),b)}function d(y,b,g){if(SR(y),a(),!g&&typeof b=="function"&&(g=b,b=null),!g)return new Promise(x);x(null,g);function x(w,P){t.run(y,lf(b),C);function C(E,S,M){S=S||y,E?P(E):w?w(S):g(null,S,M)}}}function f(y,b){var g,x;return d(y,b,w),ER("runSync","run",x),g;function w(P,C){x=!0,g=C,xR(P)}}function m(y,b){var g=lf(b),x;return a(),x=i.Compiler,k1("stringify",x),SR(y),CR(x,"compile")?new x(y,g).compile():x(y,g)}function p(y,b){if(a(),P1("process",i.Parser),k1("process",i.Compiler),!b)return new Promise(g);g(null,b);function g(x,w){var P=lf(y);GCe.run(i,{file:P},C);function C(E){E?w(E):x?x(P):b(null,P)}}}function h(y){var b,g;return a(),P1("processSync",i.Parser),k1("processSLine truncated
|
||||
`;else if(r===-3)o=`\r
|
||||
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=uEe(r);i=r===-2,n.push(o)}return n.join("")}var dEe=cEe;function fEe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var pEe=fEe,mEe=bm,hEe=Fn,gEe=ak,vEe=sl,M1=ik,yEe=F0,bEe=dEe,IR=$u,xEe=pEe;function wEe(e,t,n){var r=n?IR(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(R){return a=gEe(a,R),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=yEe(i,u.events,u),u.events)}function f(R){return bEe(m(R))}function m(R){return xEe(a,R)}function p(){return IR(r)}function h(R){o[R.line]=R.column,O()}function y(){for(var R,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(R){c=c(R)}function g(R){hEe(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,O()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function x(R,_){var D=_||{};return D.type=R,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(R){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(R,_){S(R,_.from)}function C(R,_){_.restore()}function E(R,_){return D;function D(T,F,j){var $,L,z,B;return T.tokenize||"length"in T?H(M1(T)):A;function A(Y){return Y in T||null in T?H(T.null?M1(T[Y]).concat(M1(T.null)):T[Y])(Y):j(Y)}function H(Y){return $=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=M(),z=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?mEe({},u,_):u,s,U,G)(le)}}function U(Y){return R(z,B),F}function G(Y){return B.restore(),++L<$.length?q($[L]):j}}}function S(R,_){R.resolveAll&&i.indexOf(R)<0&&i.push(R),R.resolve&&vEe(u.events,_,u.events.length-_,R.resolve(u.events.slice(_),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function M(){var R=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:j,from:T};function j(){r=R,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,O()}}function O(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var CEe=wEe,da={};function SEe(e){return e<0||e===32}var ul=SEe,EEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,PEe=EEe,kEe=T0;function $Ee(e){return t;function t(n){return e.test(kEe(n))}}var ys=$Ee,IEe=PEe,OEe=ys,MEe=OEe(IEe),lk=MEe,REe=ys,TEe=REe(/\s/),sk=TEe,_Ee=ul,FEe=lk,AEe=sk;function LEe(e){if(e===null||_Ee(e)||AEe(e))return 1;if(FEe(e))return 2}var G5=LEe;function DEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var NEe=DEe,sf=ak,jEe=sl,OR=G5,MR=NEe,zEe=F0,Mi=$u,BEe={name:"attention",tokenize:VEe,resolveAll:HEe};function HEe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1Line truncated
|
||||
`;else if(r===-2)o=" ";else if(r===-1){if(i)continue;o=" "}else o=uEe(r);i=r===-2,n.push(o)}return n.join("")}var dEe=cEe;function fEe(e,t){var n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,a;return n===o?a=[e[n].slice(r,i)]:(a=e.slice(n,o),r>-1&&(a[0]=a[0].slice(r)),i>0&&a.push(e[o].slice(0,i))),a}var pEe=fEe,mEe=bm,hEe=Fn,gEe=lk,vEe=sl,M1=ak,yEe=F0,bEe=dEe,OR=$u,xEe=pEe;function wEe(e,t,n){var r=n?OR(n):{line:1,column:1,offset:0},o={},i=[],a=[],l=[],s={consume:g,enter:x,exit:w,attempt:E(P),check:E(C),interrupt:E(C,{interrupt:!0}),lazy:E(C,{lazy:!0})},u={previous:null,events:[],parser:e,sliceStream:m,sliceSerialize:f,now:p,defineSkip:h,write:d},c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),r._index=0,r._bufferIndex=-1,u;function d(R){return a=gEe(a,R),y(),a[a.length-1]!==null?[]:(S(t,0),u.events=yEe(i,u.events,u),u.events)}function f(R){return bEe(m(R))}function m(R){return xEe(a,R)}function p(){return OR(r)}function h(R){o[R.line]=R.column,O()}function y(){for(var R,_;r._index<a.length;)if(_=a[r._index],typeof _=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<_.length;)b(_.charCodeAt(r._bufferIndex));else b(_)}function b(R){c=c(R)}function g(R){hEe(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,O()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=R}function x(R,_){var D=_||{};return D.type=R,D.start=p(),u.events.push(["enter",D,u]),l.push(D),D}function w(R){var _=l.pop();return _.end=p(),u.events.push(["exit",_,u]),_}function P(R,_){S(R,_.from)}function C(R,_){_.restore()}function E(R,_){return D;function D(T,F,j){var $,L,z,B;return T.tokenize||"length"in T?H(M1(T)):A;function A(Y){return Y in T||null in T?H(T.null?M1(T[Y]).concat(M1(T.null)):T[Y])(Y):j(Y)}function H(Y){return $=Y,L=0,q(Y[L])}function q(Y){return re;function re(le){return B=M(),z=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.indexOf(Y.name)>-1?G():Y.tokenize.call(_?mEe({},u,_):u,s,U,G)(le)}}function U(Y){return R(z,B),F}function G(Y){return B.restore(),++L<$.length?q($[L]):j}}}function S(R,_){R.resolveAll&&i.indexOf(R)<0&&i.push(R),R.resolve&&vEe(u.events,_,u.events.length-_,R.resolve(u.events.slice(_),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function M(){var R=p(),_=u.previous,D=u.currentConstruct,T=u.events.length,F=Array.from(l);return{restore:j,from:T};function j(){r=R,u.previous=_,u.currentConstruct=D,u.events.length=T,l=F,O()}}function O(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}var CEe=wEe,da={};function SEe(e){return e<0||e===32}var ul=SEe,EEe=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,PEe=EEe,kEe=T0;function $Ee(e){return t;function t(n){return e.test(kEe(n))}}var ys=$Ee,IEe=PEe,OEe=ys,MEe=OEe(IEe),sk=MEe,REe=ys,TEe=REe(/\s/),uk=TEe,_Ee=ul,FEe=sk,AEe=uk;function LEe(e){if(e===null||_Ee(e)||AEe(e))return 1;if(FEe(e))return 2}var G5=LEe;function DEe(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}var NEe=DEe,sf=lk,jEe=sl,MR=G5,RR=NEe,zEe=F0,Mi=$u,BEe={name:"attention",tokenize:VEe,resolveAll:HEe};function HEe(e,t){for(var n=-1,r,o,i,a,l,s,u,c;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,a={type:s>1Line truncated
|
||||
`));++r<o;)r&&n.push(B1("text",`
|
||||
`)),n.push(e[r]);return t&&e.length>0&&n.push(B1("text",`
|
||||
`)),n}var Cz=oOe,nOe=Cm,rOe=Kr();function oOe(e,t){var n={},r=t.ordered?"ol":"ul",o,i=-1,a;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start),o=rOe(e,t),a=o.length;++i<a;)if(o[i].properties.className&&o[i].properties.className.indexOf("task-list-item")!==-1){n.className=["contains-task-list"];break}return e(t,r,n,nOe(o,!0))}var iOe=uOe,aOe=wz,lOe=Cz,sOe=Cm;function uOe(e){for(var t=e.footnoteById,n=e.footnoteOrder,r=n.length,o=-1,i=[],a,l,s,u;++o<r;)a=t[n[o].toUpperCase()],a&&(s=a.children.concat(),u=s[s.length-1],l={type:"link",url:"#fnref-"+a.identifier,data:{hProperties:{className:["footnote-backref"]}},children:[{type:"text",value:"↩"}]},(!u||u.type!=="paragraph")&&(u={type:"paragraph",children:[]},s.push(u)),u.children.push(l),i.push({type:"listItem",data:{hProperties:{id:"fn-"+a.identifier}},children:s,position:a.position}));return i.length===0?null:e(null,"div",{className:["footnotes"]},sOe([aOe(e),lOe(e,{type:"list",ordered:!0,children:i})],!0))}var cOe=pOe,dOe=Cm,fOe=Kr();function pOe(e,t){return e(t,"blockquote",dOe(fOe(e,t),!0))}var mOe=gOe,hOe=ei;function gOe(e,t){return[e(t,"br"),hOe("text",`
|
||||
`)]}var vOe=bOe,yOe=ei;function bOe(e,t){var n=t.value?t.value+`
|
||||
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[yOe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var xOe=COe,wOe=Kr();function COe(e,t){return e(t,"del",wOe(e,t))}var SOe=POe,EOe=Kr();function POe(e,t){return e(t,"em",EOe(e,t))}var Sz=$Oe,kOe=ei;function $Oe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[kOe("text",t.label||r)])])}var IOe=MOe,OOe=Sz;function MOe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},OOe(e,{type:"footnoteReference",identifier:o,position:t.position})}var ROe=_Oe,TOe=Kr();function _Oe(e,t){return e(t,"h"+t.depth,TOe(e,t))}var FOe=LOe,AOe=ei;function LOe(e,t){return e.dangerous?e.augment(t,AOe("raw",t.value)):null}var XR={};function DOe(e){var t,n,r=XR[e];if(r)return r;for(r=XR[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function j0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=j0.defaultChars),typeof n>"u"&&(n=!0),l=DOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}j0.defaultChars=";/?:@&=+$,-_.!~*'()#";j0.componentChars="-_.!~*'()";var z0=j0,Ez=jOe,H1=ei,NOe=Kr();function jOe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?H1("text","!["+t.alt+r):(o=NOe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(H1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(H1("text",r)),o)}var zOe=VOe,BOe=z0,HOe=Ez;function VOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:BOe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):HOe(e,t)}var UOe=z0,WOe=GOe;function GOe(e,t){var n={src:UOe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var qOe=QOe,KOe=ei;function QOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[KOe("text",n)])}var YOe=eMe,XOe=z0,ZOe=Ez,JOe=Kr();function eMe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:XOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,JOe(e,t))):ZOe(e,t)}var tMe=z0,nMe=Kr(),rMe=oMe;function oMe(e,t){var n={href:tMe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,nMe(e,t))}var iMe=lMe,V1=ei,aMe=Kr();function lMe(e,t,n){var r=aMe(e,t),o=r[0],i=n?sMe(n):Pz(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(V1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(V1("text",`
|
||||
`:"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={},i;return r&&(o.className=["language-"+r]),i=e(t,"code",o,[yOe("text",n)]),t.meta&&(i.data={meta:t.meta}),e(t.position,"pre",[i])}var xOe=COe,wOe=Kr();function COe(e,t){return e(t,"del",wOe(e,t))}var SOe=POe,EOe=Kr();function POe(e,t){return e(t,"em",EOe(e,t))}var Sz=$Oe,kOe=ei;function $Oe(e,t){var n=e.footnoteOrder,r=String(t.identifier);return n.indexOf(r)===-1&&n.push(r),e(t.position,"sup",{id:"fnref-"+r},[e(t,"a",{href:"#fn-"+r,className:["footnote-ref"]},[kOe("text",t.label||r)])])}var IOe=MOe,OOe=Sz;function MOe(e,t){for(var n=e.footnoteById,r=e.footnoteOrder,o=1;o in n;)o++;return o=String(o),r.push(o),n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},OOe(e,{type:"footnoteReference",identifier:o,position:t.position})}var ROe=_Oe,TOe=Kr();function _Oe(e,t){return e(t,"h"+t.depth,TOe(e,t))}var FOe=LOe,AOe=ei;function LOe(e,t){return e.dangerous?e.augment(t,AOe("raw",t.value)):null}var ZR={};function DOe(e){var t,n,r=ZR[e];if(r)return r;for(r=ZR[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}function j0(e,t,n){var r,o,i,a,l,s="";for(typeof t!="string"&&(n=t,t=j0.defaultChars),typeof n>"u"&&(n=!0),l=DOe(t),r=0,o=e.length;r<o;r++){if(i=e.charCodeAt(r),n&&i===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){s+=e.slice(r,r+3),r+=2;continue}if(i<128){s+=l[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&r+1<o&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[r])}return s}j0.defaultChars=";/?:@&=+$,-_.!~*'()#";j0.componentChars="-_.!~*'()";var z0=j0,Ez=jOe,H1=ei,NOe=Kr();function jOe(e,t){var n=t.referenceType,r="]",o,i,a;return n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference"?H1("text","!["+t.alt+r):(o=NOe(e,t),i=o[0],i&&i.type==="text"?i.value="["+i.value:o.unshift(H1("text","[")),a=o[o.length-1],a&&a.type==="text"?a.value+=r:o.push(H1("text",r)),o)}var zOe=VOe,BOe=z0,HOe=Ez;function VOe(e,t){var n=e.definition(t.identifier),r;return n?(r={src:BOe(n.url||""),alt:t.alt},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"img",r)):HOe(e,t)}var UOe=z0,WOe=GOe;function GOe(e,t){var n={src:UOe(t.url),alt:t.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"img",n)}var qOe=QOe,KOe=ei;function QOe(e,t){var n=t.value.replace(/\r?\n|\r/g," ");return e(t,"code",[KOe("text",n)])}var YOe=eMe,XOe=z0,ZOe=Ez,JOe=Kr();function eMe(e,t){var n=e.definition(t.identifier),r;return n?(r={href:XOe(n.url||"")},n.title!==null&&n.title!==void 0&&(r.title=n.title),e(t,"a",r,JOe(e,t))):ZOe(e,t)}var tMe=z0,nMe=Kr(),rMe=oMe;function oMe(e,t){var n={href:tMe(t.url)};return t.title!==null&&t.title!==void 0&&(n.title=t.title),e(t,"a",n,nMe(e,t))}var iMe=lMe,V1=ei,aMe=Kr();function lMe(e,t,n){var r=aMe(e,t),o=r[0],i=n?sMe(n):Pz(t),a={},l=[],s,u,c;for(typeof t.checked=="boolean"&&((!o||o.tagName!=="p")&&(o=e(null,"p",[]),r.unshift(o)),o.children.length>0&&o.children.unshift(V1("text"," ")),o.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]),s=r.length,u=-1;++u<s;)c=r[u],(i||u!==0||c.tagName!=="p")&&l.push(V1("text",`
|
||||
`)),c.tagName==="p"&&!i?l=l.concat(c.children):l.push(c);return s&&(i||c.tagName!=="p")&&l.push(V1("text",`
|
||||
`)),e(t,"li",a,l)}function sMe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=Pz(n[o]);return t}function Pz(e){var t=e.spread;return t??e.children.length>1}var uMe=dMe,cMe=Kr();function dMe(e,t){return e(t,"p",cMe(e,t))}var fMe=gMe,pMe=ei,mMe=Cm,hMe=Kr();function gMe(e,t){return e.augment(t,pMe("root",mMe(hMe(e,t))))}var vMe=bMe,yMe=Kr();function bMe(e,t){return e(t,"strong",yMe(e,t))}var xMe=CMe,ZR=gz,Mh=Cm,wMe=Kr();function CMe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?wMe(e,d):[]);a[r]=e(n[r],"tr",Mh(u,!0))}return e(t,"table",Mh([e(a[0].position,"thead",Mh([a[0]],!0))].concat(a[1]?e({start:ZR.start(a[1]),end:ZR.end(a[a.length-1])},"tbody",Mh(a.slice(1),!0)):[]),!0))}var SMe=PMe,EMe=ei;function PMe(e,t){return e.augment(t,EMe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var kMe={blockquote:cOe,break:mOe,code:vOe,delete:xOe,emphasis:SOe,footnoteReference:Sz,footnote:IOe,heading:ROe,html:FOe,imageReference:zOe,image:WOe,inlineCode:qOe,linkReference:YOe,link:rMe,listItem:iMe,list:Cz,paragraph:uMe,root:fMe,strong:vMe,table:xMe,text:SMe,thematicBreak:wz,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){return null}var $Me=DMe,IMe=ei,OMe=pk,JR=gz,MMe=qIe,RMe=YIe,TMe=xz(),_Me=iOe,FMe=kMe,AMe={}.hasOwnProperty,eT=!1;function LMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!eT&&(eT=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=RMe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},FMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,OMe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},MMe(d)||(u.position={start:JR.start(d),end:JR.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();AMe.call(o,u)||(o[u]=s)}}function DMe(e,t){var n=LMe(e,t),r=TMe(n,e),o=_Me(n);return o&&(r.children=r.children.concat(IMe("text",`
|
||||
`),o)),r}var NMe=$Me,kz=NMe,jMe=zMe;function zMe(e,t){return e&&!e.process&&(t=e,e=null),e?BMe(e,t):HMe(t)}function BMe(e,t){return n;function n(r,o,i){e.run(kz(r,t),o,a);function a(l){i(l)}}}function HMe(e){return t;function t(n){return kz(n,e)}}var VMe=WMe,UMe=Object.prototype.hasOwnProperty;function WMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)UMe.call(n,r)&&(e[r]=n[r])}return e}var $z=Iz,hk=Iz.prototype;hk.space=null;hk.normal={};hk.property={};function Iz(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var tT=VMe,GMe=$z,Oz=qMe;function qMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new GMe(tT.apply(null,n),tT.apply(null,r),a)}var Mz=KMe;function KMe(e){return e.toLowerCase()}var Rz=Tz,ti=Tz.prototype;ti.space=null;ti.attribute=null;ti.property=null;ti.boolean=!1;ti.booleanish=!1;ti.overloadedBoolean=!1;ti.number=!1;ti.commaSeparated=!1;ti.spaceSeparated=!1;ti.commaOrSpaceSeparated=!1;ti.mustUseProperty=!1;ti.defined=!1;function Tz(e,t){this.property=e,this.attribute=t}var Si={},QMe=0;Si.boolean=Iu();Si.booleanish=Iu();Si.overloadedBoolean=Iu();Si.number=Iu();Si.spaceSeparated=Iu();Si.commaSeparated=Iu();Si.commaOrSpaceSeparated=Iu();function Iu(){return Math.pow(2,++QMe)}var _z=Rz,nT=Si,Fz=gk;gk.prototype=new _z;gk.prototype.defined=!0;var Az=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],YMe=Az.length;function gk(e,t,n,r){var o=-1,i;for(rT(this,"space",r),_z.call(this,e,t);++o<YMe;)i=Az[o],rT(this,i,(n&nT[i])===nT[i])}function rT(e,t,n){n&&(e[t]=n)}var oT=Mz,XMe=$z,ZMe=Fz,Rd=JMe;function JMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new ZMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[oT(s)]=s,l[oT(u.attribute)]=s;return new XMe(a,l,t)}var e2e=Rd,Lz=e2e({space:"xlink",transform:t2e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t2e(e,t){return"xlink:"+t.slice(5).toLowerCase()}var n2e=Rd,Dz=n2e({space:"xml",transform:r2e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function r2e(e,t){return"xml:"+t.slice(3).toLowerCase()}var Nz=o2e;function o2e(e,t){return t in e?e[t]:t}var i2e=Nz,jz=a2e;function a2e(e,t){return i2e(e,t.toLowerCase())}var l2e=Rd,s2e=jz,zz=l2e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:s2e,properties:{xmlns:null,xmlnsXLink:null}}),vk=Si,u2e=Rd,Fr=vk.booleanish,bo=vk.number,xs=vk.spaceSeparated,Bz=u2e({transform:c2e,properties:{ariaActiveDescendant:null,ariaAtomic:Fr,ariaAutoComplete:null,ariaBusy:Fr,ariaChecked:Fr,ariaColCount:bo,ariaColIndex:bo,ariaColSpan:bo,ariaControls:xs,ariaCurrent:null,ariaDescribedBy:xs,ariaDetails:null,ariaDisabled:Fr,ariaDropEffect:xs,ariaErrorMessage:null,ariaExpanded:Fr,ariaFlowTo:xs,ariaGrabbed:Fr,ariaHasPopup:null,ariaHidden:Fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xs,ariaLevel:bo,ariaLive:null,ariaModal:Fr,ariaMultiLine:Fr,ariaMultiSelectable:Fr,ariaOrientation:null,ariaOwns:xs,ariaPlaceholder:null,ariaPosInSet:bo,ariaPressed:Fr,ariaReadOnly:Fr,ariaRelevant:null,ariaRequired:Fr,ariaRoleDescription:xs,ariaRowCount:bo,ariaRowIndex:bo,ariaRowSpan:bo,ariaSelected:Fr,ariaSetSize:bo,ariaSort:null,ariaValueMax:bo,ariaValueMin:bo,ariaValueNow:bo,ariaValueText:null,role:null}});function c2e(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Td=Si,d2e=Rd,f2e=jz,lt=Td.boolean,p2e=Td.overloadedBoolean,df=Td.booleanish,qt=Td.number,yr=Td.spaceSeparated,Th=Td.commaSeparated,m2e=d2e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f2e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Th,acceptCharset:yr,accessKey:yr,action:null,allow:null,allowFullScreen:lt,allowPaymentRequest:lt,allowUserMedia:lt,alt:null,as:null,async:lt,autoCapitalize:null,autoComplete:yr,autoFocus:lt,autoPlay:lt,capture:lt,charSet:null,checked:lt,cite:null,className:yr,cols:qt,colSpan:null,content:null,contentEditable:df,controls:lt,controlsList:yr,coords:qt|Th,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lt,defer:lt,dir:null,dirName:null,disabled:lt,download:p2e,draggable:df,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lt,formTarget:null,headers:yr,height:qt,hidden:lt,high:qt,href:null,hrefLang:null,htmlFor:yr,httpEquiv:yr,id:null,imageSizes:null,imageSrcSet:Th,inputMode:null,integrity:null,is:null,isMap:lt,itemId:null,itemProp:yr,itemRef:yr,itemScope:lt,itemType:yr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lt,low:qt,manifest:null,max:null,maxLength:qt,media:null,method:null,min:null,minLength:qt,multiple:lt,muted:lt,name:null,nonce:null,noModule:lt,noValidate
Line truncated
|
||||
`)),e(t,"li",a,l)}function sMe(e){for(var t=e.spread,n=e.children,r=n.length,o=-1;!t&&++o<r;)t=Pz(n[o]);return t}function Pz(e){var t=e.spread;return t??e.children.length>1}var uMe=dMe,cMe=Kr();function dMe(e,t){return e(t,"p",cMe(e,t))}var fMe=gMe,pMe=ei,mMe=Cm,hMe=Kr();function gMe(e,t){return e.augment(t,pMe("root",mMe(hMe(e,t))))}var vMe=bMe,yMe=Kr();function bMe(e,t){return e(t,"strong",yMe(e,t))}var xMe=CMe,JR=gz,Mh=Cm,wMe=Kr();function CMe(e,t){for(var n=t.children,r=n.length,o=t.align||[],i=o.length,a=[],l,s,u,c,d;r--;){for(s=n[r].children,c=r===0?"th":"td",l=i||s.length,u=[];l--;)d=s[l],u[l]=e(d,c,{align:o[l]},d?wMe(e,d):[]);a[r]=e(n[r],"tr",Mh(u,!0))}return e(t,"table",Mh([e(a[0].position,"thead",Mh([a[0]],!0))].concat(a[1]?e({start:JR.start(a[1]),end:JR.end(a[a.length-1])},"tbody",Mh(a.slice(1),!0)):[]),!0))}var SMe=PMe,EMe=ei;function PMe(e,t){return e.augment(t,EMe("text",String(t.value).replace(/[ \t]*(\r?\n|\r)[ \t]*/g,"$1")))}var kMe={blockquote:cOe,break:mOe,code:vOe,delete:xOe,emphasis:SOe,footnoteReference:Sz,footnote:IOe,heading:ROe,html:FOe,imageReference:zOe,image:WOe,inlineCode:qOe,linkReference:YOe,link:rMe,listItem:iMe,list:Cz,paragraph:uMe,root:fMe,strong:vMe,table:xMe,text:SMe,thematicBreak:wz,toml:Rh,yaml:Rh,definition:Rh,footnoteDefinition:Rh};function Rh(){return null}var $Me=DMe,IMe=ei,OMe=mk,eT=gz,MMe=qIe,RMe=YIe,TMe=xz(),_Me=iOe,FMe=kMe,AMe={}.hasOwnProperty,tT=!1;function LMe(e,t){var n=t||{};n.allowDangerousHTML!==void 0&&!tT&&(tT=!0,console.warn("mdast-util-to-hast: deprecation: `allowDangerousHTML` is nonstandard, use `allowDangerousHtml` instead"));var r=n.allowDangerousHtml||n.allowDangerousHTML,o={};return a.dangerous=r,a.definition=RMe(e),a.footnoteById=o,a.footnoteOrder=[],a.augment=i,a.handlers=Object.assign({},FMe,n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,OMe(e,"footnoteDefinition",l),a;function i(s,u){var c,d;return s&&s.data&&(c=s.data,c.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=c.hName),u.type==="element"&&c.hProperties&&(u.properties=Object.assign({},u.properties,c.hProperties)),u.children&&c.hChildren&&(u.children=c.hChildren)),d=s&&s.position?s:{position:s},MMe(d)||(u.position={start:eT.start(d),end:eT.end(d)}),u}function a(s,u,c,d){return d==null&&typeof c=="object"&&"length"in c&&(d=c,c={}),i(s,{type:"element",tagName:u,properties:c||{},children:d||[]})}function l(s){var u=String(s.identifier).toUpperCase();AMe.call(o,u)||(o[u]=s)}}function DMe(e,t){var n=LMe(e,t),r=TMe(n,e),o=_Me(n);return o&&(r.children=r.children.concat(IMe("text",`
|
||||
`),o)),r}var NMe=$Me,kz=NMe,jMe=zMe;function zMe(e,t){return e&&!e.process&&(t=e,e=null),e?BMe(e,t):HMe(t)}function BMe(e,t){return n;function n(r,o,i){e.run(kz(r,t),o,a);function a(l){i(l)}}}function HMe(e){return t;function t(n){return kz(n,e)}}var VMe=WMe,UMe=Object.prototype.hasOwnProperty;function WMe(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)UMe.call(n,r)&&(e[r]=n[r])}return e}var $z=Iz,gk=Iz.prototype;gk.space=null;gk.normal={};gk.property={};function Iz(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}var nT=VMe,GMe=$z,Oz=qMe;function qMe(e){for(var t=e.length,n=[],r=[],o=-1,i,a;++o<t;)i=e[o],n.push(i.property),r.push(i.normal),a=i.space;return new GMe(nT.apply(null,n),nT.apply(null,r),a)}var Mz=KMe;function KMe(e){return e.toLowerCase()}var Rz=Tz,ti=Tz.prototype;ti.space=null;ti.attribute=null;ti.property=null;ti.boolean=!1;ti.booleanish=!1;ti.overloadedBoolean=!1;ti.number=!1;ti.commaSeparated=!1;ti.spaceSeparated=!1;ti.commaOrSpaceSeparated=!1;ti.mustUseProperty=!1;ti.defined=!1;function Tz(e,t){this.property=e,this.attribute=t}var Si={},QMe=0;Si.boolean=Iu();Si.booleanish=Iu();Si.overloadedBoolean=Iu();Si.number=Iu();Si.spaceSeparated=Iu();Si.commaSeparated=Iu();Si.commaOrSpaceSeparated=Iu();function Iu(){return Math.pow(2,++QMe)}var _z=Rz,rT=Si,Fz=vk;vk.prototype=new _z;vk.prototype.defined=!0;var Az=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],YMe=Az.length;function vk(e,t,n,r){var o=-1,i;for(oT(this,"space",r),_z.call(this,e,t);++o<YMe;)i=Az[o],oT(this,i,(n&rT[i])===rT[i])}function oT(e,t,n){n&&(e[t]=n)}var iT=Mz,XMe=$z,ZMe=Fz,Rd=JMe;function JMe(e){var t=e.space,n=e.mustUseProperty||[],r=e.attributes||{},o=e.properties,i=e.transform,a={},l={},s,u;for(s in o)u=new ZMe(s,i(r,s),o[s],t),n.indexOf(s)!==-1&&(u.mustUseProperty=!0),a[s]=u,l[iT(s)]=s,l[iT(u.attribute)]=s;return new XMe(a,l,t)}var e2e=Rd,Lz=e2e({space:"xlink",transform:t2e,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t2e(e,t){return"xlink:"+t.slice(5).toLowerCase()}var n2e=Rd,Dz=n2e({space:"xml",transform:r2e,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function r2e(e,t){return"xml:"+t.slice(3).toLowerCase()}var Nz=o2e;function o2e(e,t){return t in e?e[t]:t}var i2e=Nz,jz=a2e;function a2e(e,t){return i2e(e,t.toLowerCase())}var l2e=Rd,s2e=jz,zz=l2e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:s2e,properties:{xmlns:null,xmlnsXLink:null}}),yk=Si,u2e=Rd,Fr=yk.booleanish,bo=yk.number,xs=yk.spaceSeparated,Bz=u2e({transform:c2e,properties:{ariaActiveDescendant:null,ariaAtomic:Fr,ariaAutoComplete:null,ariaBusy:Fr,ariaChecked:Fr,ariaColCount:bo,ariaColIndex:bo,ariaColSpan:bo,ariaControls:xs,ariaCurrent:null,ariaDescribedBy:xs,ariaDetails:null,ariaDisabled:Fr,ariaDropEffect:xs,ariaErrorMessage:null,ariaExpanded:Fr,ariaFlowTo:xs,ariaGrabbed:Fr,ariaHasPopup:null,ariaHidden:Fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xs,ariaLevel:bo,ariaLive:null,ariaModal:Fr,ariaMultiLine:Fr,ariaMultiSelectable:Fr,ariaOrientation:null,ariaOwns:xs,ariaPlaceholder:null,ariaPosInSet:bo,ariaPressed:Fr,ariaReadOnly:Fr,ariaRelevant:null,ariaRequired:Fr,ariaRoleDescription:xs,ariaRowCount:bo,ariaRowIndex:bo,ariaRowSpan:bo,ariaSelected:Fr,ariaSetSize:bo,ariaSort:null,ariaValueMax:bo,ariaValueMin:bo,ariaValueNow:bo,ariaValueText:null,role:null}});function c2e(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}var Td=Si,d2e=Rd,f2e=jz,lt=Td.boolean,p2e=Td.overloadedBoolean,df=Td.booleanish,qt=Td.number,yr=Td.spaceSeparated,Th=Td.commaSeparated,m2e=d2e({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:f2e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Th,acceptCharset:yr,accessKey:yr,action:null,allow:null,allowFullScreen:lt,allowPaymentRequest:lt,allowUserMedia:lt,alt:null,as:null,async:lt,autoCapitalize:null,autoComplete:yr,autoFocus:lt,autoPlay:lt,capture:lt,charSet:null,checked:lt,cite:null,className:yr,cols:qt,colSpan:null,content:null,contentEditable:df,controls:lt,controlsList:yr,coords:qt|Th,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lt,defer:lt,dir:null,dirName:null,disabled:lt,download:p2e,draggable:df,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lt,formTarget:null,headers:yr,height:qt,hidden:lt,high:qt,href:null,hrefLang:null,htmlFor:yr,httpEquiv:yr,id:null,imageSizes:null,imageSrcSet:Th,inputMode:null,integrity:null,is:null,isMap:lt,itemId:null,itemProp:yr,itemRef:yr,itemScope:lt,itemType:yr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lt,low:qt,manifest:null,max:null,maxLength:qt,media:null,method:null,min:null,minLength:qt,multiple:lt,muted:lt,name:null,nonce:null,noModule:lt,noValidate
Line truncated
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var B0=60103,H0=60106,Sm=60107,Em=60108,Pm=60114,km=60109,$m=60110,Im=60112,Om=60113,bk=60120,Mm=60115,Rm=60116,Vz=60121,Uz=60122,Wz=60117,Gz=60129,qz=60131;if(typeof Symbol=="function"&&Symbol.for){var Qn=Symbol.for;B0=Qn("react.element"),H0=Qn("react.portal"),Sm=Qn("react.fragment"),Em=Qn("react.strict_mode"),Pm=Qn("react.profiler"),km=Qn("react.provider"),$m=Qn("react.context"),Im=Qn("react.forward_ref"),Om=Qn("react.suspense"),bk=Qn("react.suspense_list"),Mm=Qn("react.memo"),Rm=Qn("react.lazy"),Vz=Qn("react.block"),Uz=Qn("react.server.block"),Wz=Qn("react.fundamental"),Gz=Qn("react.debug_trace_mode"),qz=Qn("react.legacy_hidden")}function Ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case B0:switch(e=e.type,e){case Sm:case Pm:case Em:case Om:case bk:return e;default:switch(e=e&&e.$$typeof,e){case $m:case Im:case Rm:case Mm:case km:return e;default:return t}}case H0:return t}}}var $2e=km,I2e=B0,O2e=Im,M2e=Sm,R2e=Rm,T2e=Mm,_2e=H0,F2e=Pm,A2e=Em,L2e=Om;Ht.ContextConsumer=$m;Ht.ContextProvider=$2e;Ht.Element=I2e;Ht.ForwardRef=O2e;Ht.Fragment=M2e;Ht.Lazy=R2e;Ht.Memo=T2e;Ht.Portal=_2e;Ht.Profiler=F2e;Ht.StrictMode=A2e;Ht.Suspense=L2e;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Ei(e)===$m};Ht.isContextProvider=function(e){return Ei(e)===km};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===B0};Ht.isForwardRef=function(e){return Ei(e)===Im};Ht.isFragment=function(e){return Ei(e)===Sm};Ht.isLazy=function(e){return Ei(e)===Rm};Ht.isMemo=function(e){return Ei(e)===Mm};Ht.isPortal=function(e){return Ei(e)===H0};Ht.isProfiler=function(e){return Ei(e)===Pm};Ht.isStrictMode=function(e){return Ei(e)===Em};Ht.isSuspense=function(e){return Ei(e)===Om};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sm||e===Pm||e===Gz||e===Em||e===Om||e===bk||e===qz||typeof e=="object"&&e!==null&&(e.$$typeof===Rm||e.$$typeof===Mm||e.$$typeof===km||e.$$typeof===$m||e.$$typeof===Im||e.$$typeof===Wz||e.$$typeof===Vz||e[0]===Uz)};Ht.typeOf=Ei;Hz.exports=Ht;var D2e=Hz.exports,Tm=Si,N2e=Rd,j2e=Nz,z2e=Tm.boolean,Ye=Tm.number,aT=Tm.spaceSeparated,U1=Tm.commaSeparated,xo=Tm.commaOrSpaceSeparated,B2e=N2e({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPLine truncated
|
||||
`,cT="/",dT="*",_s="",NRe="comment",jRe="declaration",zRe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(MRe);h&&(n+=h.length);var y=p.lastIndexOf(DRe);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(RRe)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(cT!=e.charAt(0)||dT!=e.charAt(1))){for(var h=2;_s!=e.charAt(h)&&(dT!=e.charAt(h)||cT!=e.charAt(h+1));)++h;if(h+=2,_s===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:NRe,comment:y})}}function f(){var p=i(),h=s(TRe);if(h){if(d(),!s(_Re))return l("property missing ':'");var y=s(FRe),b=p({type:jRe,property:fT(h[0].replace(uT,_s)),value:y?fT(y[0].replace(uT,_s)):_s});return s(ARe),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function fT(e){return e?e.replace(LRe,_s):_s}var BRe=zRe;function HRe(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=BRe(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var VRe=HRe;const W1=v,URe=D2e,WRe=K2e,GRe=Z2e,pT=SRe,qRe=wk,KRe=Ck,QRe=VRe;yk.hastToReact=Yz;yk.hastChildrenToReact=Qz;const pC={}.hasOwnProperty,YRe=new Set(["table","thead","tbody","tfoot","tr"]);function Qz(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(Yz(e,o,r,t)):o.type==="text"?(t.type!=="element"||!YRe.has(t.tagName)||o.value!==`
|
||||
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function Yz(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=WRe,e.schema=s),t.properties)for(u in t.properties)pC.call(t.properties,u)&&ZRe(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=Qz(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&pC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===W1.Fragment;if(!URe.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=XRe(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=G1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=tTe(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=G1(r,t),l.siblingCount=G1(r)),m||(l.node=t),c.length>0?W1.createElement(f,l,c):W1.createElement(f,l)}function XRe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function G1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function ZRe(e,t,n,r){const o=GRe(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?KRe:qRe).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=JRe(i)),o.space&&o.property?e[pC.call(pT,o.property)?pT[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function JRe(e){const t={};try{QRe(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,eTe)]=o}}function eTe(e,t){return t.toUpperCase()}function tTe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const q1=v,mT=M5,nTe=VCe,rTe=RIe,oTe=jMe,pt=WD,iTe=w2e,aTe=S2e,Xz=P2e,lTe=yk.hastChildrenToReact;var sTe=V0;const hT={}.hasOwnProperty,uTe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function V0(e){for(const i in _h)if(hT.call(_h,i)&&hT.call(e,i)){const a=_h[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${uTe}#${a.id}> for more info)`),delete _h[i]}const t=nTe().use(rTe).use(e.remarkPlugins||e.plugins||[]).use(oTe,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(aTe,e);let n;typeof e.children=="string"?n=mT(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=mT());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=q1.createElement(q1.Fragment,{},lTe({options:e,schema:iTe,listDepth:0},r));return e.className&&(o=q1.createElement("div",{className:e.className},o)),o}V0.defaultProps={transformLinkUri:Xz};V0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linLine truncated
|
||||
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var T_e=v3;$k.unsafe=[{character:"~",inConstruct:"phrasing"}];$k.handlers={delete:y3};y3.peek=__e;function y3(e,t,n){var r=n.enter("emphasis"),o=T_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function __e(){return"~"}var F_e=A_e;function A_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var L_e=b3;b3.peek=N_e;var D_e=F_e;function b3(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=D_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function N_e(){return"`"}/*!
|
||||
*/var B0=60103,H0=60106,Sm=60107,Em=60108,Pm=60114,km=60109,$m=60110,Im=60112,Om=60113,xk=60120,Mm=60115,Rm=60116,Vz=60121,Uz=60122,Wz=60117,Gz=60129,qz=60131;if(typeof Symbol=="function"&&Symbol.for){var Qn=Symbol.for;B0=Qn("react.element"),H0=Qn("react.portal"),Sm=Qn("react.fragment"),Em=Qn("react.strict_mode"),Pm=Qn("react.profiler"),km=Qn("react.provider"),$m=Qn("react.context"),Im=Qn("react.forward_ref"),Om=Qn("react.suspense"),xk=Qn("react.suspense_list"),Mm=Qn("react.memo"),Rm=Qn("react.lazy"),Vz=Qn("react.block"),Uz=Qn("react.server.block"),Wz=Qn("react.fundamental"),Gz=Qn("react.debug_trace_mode"),qz=Qn("react.legacy_hidden")}function Ei(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case B0:switch(e=e.type,e){case Sm:case Pm:case Em:case Om:case xk:return e;default:switch(e=e&&e.$$typeof,e){case $m:case Im:case Rm:case Mm:case km:return e;default:return t}}case H0:return t}}}var $2e=km,I2e=B0,O2e=Im,M2e=Sm,R2e=Rm,T2e=Mm,_2e=H0,F2e=Pm,A2e=Em,L2e=Om;Ht.ContextConsumer=$m;Ht.ContextProvider=$2e;Ht.Element=I2e;Ht.ForwardRef=O2e;Ht.Fragment=M2e;Ht.Lazy=R2e;Ht.Memo=T2e;Ht.Portal=_2e;Ht.Profiler=F2e;Ht.StrictMode=A2e;Ht.Suspense=L2e;Ht.isAsyncMode=function(){return!1};Ht.isConcurrentMode=function(){return!1};Ht.isContextConsumer=function(e){return Ei(e)===$m};Ht.isContextProvider=function(e){return Ei(e)===km};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===B0};Ht.isForwardRef=function(e){return Ei(e)===Im};Ht.isFragment=function(e){return Ei(e)===Sm};Ht.isLazy=function(e){return Ei(e)===Rm};Ht.isMemo=function(e){return Ei(e)===Mm};Ht.isPortal=function(e){return Ei(e)===H0};Ht.isProfiler=function(e){return Ei(e)===Pm};Ht.isStrictMode=function(e){return Ei(e)===Em};Ht.isSuspense=function(e){return Ei(e)===Om};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sm||e===Pm||e===Gz||e===Em||e===Om||e===xk||e===qz||typeof e=="object"&&e!==null&&(e.$$typeof===Rm||e.$$typeof===Mm||e.$$typeof===km||e.$$typeof===$m||e.$$typeof===Im||e.$$typeof===Wz||e.$$typeof===Vz||e[0]===Uz)};Ht.typeOf=Ei;Hz.exports=Ht;var D2e=Hz.exports,Tm=Si,N2e=Rd,j2e=Nz,z2e=Tm.boolean,Ye=Tm.number,lT=Tm.spaceSeparated,U1=Tm.commaSeparated,xo=Tm.commaOrSpaceSeparated,B2e=N2e({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPLine truncated
|
||||
`,dT="/",fT="*",_s="",NRe="comment",jRe="declaration",zRe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(p){var h=p.match(MRe);h&&(n+=h.length);var y=p.lastIndexOf(DRe);r=~y?p.length-y:r+p.length}function i(){var p={line:n,column:r};return function(h){return h.position=new a(p),u(),h}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function l(p){var h=new Error(t.source+":"+n+":"+r+": "+p);if(h.reason=p,h.filename=t.source,h.line=n,h.column=r,h.source=e,!t.silent)throw h}function s(p){var h=p.exec(e);if(h){var y=h[0];return o(y),e=e.slice(y.length),h}}function u(){s(RRe)}function c(p){var h;for(p=p||[];h=d();)h!==!1&&p.push(h);return p}function d(){var p=i();if(!(dT!=e.charAt(0)||fT!=e.charAt(1))){for(var h=2;_s!=e.charAt(h)&&(fT!=e.charAt(h)||dT!=e.charAt(h+1));)++h;if(h+=2,_s===e.charAt(h-1))return l("End of comment missing");var y=e.slice(2,h-2);return r+=2,o(y),e=e.slice(h),r+=2,p({type:NRe,comment:y})}}function f(){var p=i(),h=s(TRe);if(h){if(d(),!s(_Re))return l("property missing ':'");var y=s(FRe),b=p({type:jRe,property:pT(h[0].replace(cT,_s)),value:y?pT(y[0].replace(cT,_s)):_s});return s(ARe),b}}function m(){var p=[];c(p);for(var h;h=f();)h!==!1&&(p.push(h),c(p));return p}return u(),m()};function pT(e){return e?e.replace(LRe,_s):_s}var BRe=zRe;function HRe(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,o=BRe(e),i=typeof t=="function",a,l,s=0,u=o.length;s<u;s++)r=o[s],a=r.property,l=r.value,i?t(a,l,r):l&&(n||(n={}),n[a]=l);return n}var VRe=HRe;const W1=v,URe=D2e,WRe=K2e,GRe=Z2e,mT=SRe,qRe=Ck,KRe=Sk,QRe=VRe;bk.hastToReact=Yz;bk.hastChildrenToReact=Qz;const pC={}.hasOwnProperty,YRe=new Set(["table","thead","tbody","tfoot","tr"]);function Qz(e,t){const n=[];let r=-1,o;for(;++r<t.children.length;)o=t.children[r],o.type==="element"?n.push(Yz(e,o,r,t)):o.type==="text"?(t.type!=="element"||!YRe.has(t.tagName)||o.value!==`
|
||||
`)&&n.push(o.value):o.type==="raw"&&!e.options.skipHtml&&n.push(o.value);return n}function Yz(e,t,n,r){const o=e.options,i=e.schema,a=t.tagName,l={};let s=i,u;if(i.space==="html"&&a==="svg"&&(s=WRe,e.schema=s),t.properties)for(u in t.properties)pC.call(t.properties,u)&&ZRe(l,u,t.properties[u],e);(a==="ol"||a==="ul")&&e.listDepth++;const c=Qz(e,t);(a==="ol"||a==="ul")&&e.listDepth--,e.schema=i;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},f=o.components&&pC.call(o.components,a)?o.components[a]:a,m=typeof f=="string"||f===W1.Fragment;if(!URe.isValidElementType(f))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(l.key=[a,d.start.line,d.start.column,n].join("-"),a==="a"&&o.linkTarget&&(l.target=typeof o.linkTarget=="function"?o.linkTarget(l.href,t.children,l.title):o.linkTarget),a==="a"&&o.transformLinkUri&&(l.href=o.transformLinkUri(l.href,t.children,l.title)),!m&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!m&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(l.level=parseInt(a.charAt(1),10)),a==="img"&&o.transformImageUri&&(l.src=o.transformImageUri(l.src,l.alt,l.title)),!m&&a==="li"&&r.type==="element"){const p=XRe(t);l.checked=p&&p.properties?!!p.properties.checked:null,l.index=G1(r,t),l.ordered=r.tagName==="ol"}return!m&&(a==="ol"||a==="ul")&&(l.ordered=a==="ol",l.depth=e.listDepth),(a==="td"||a==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),m||(l.isHeader=a==="th")),!m&&a==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),o.sourcePos&&(l["data-sourcepos"]=tTe(d)),!m&&o.rawSourcePos&&(l.sourcePosition=t.position),!m&&o.includeElementIndex&&(l.index=G1(r,t),l.siblingCount=G1(r)),m||(l.node=t),c.length>0?W1.createElement(f,l,c):W1.createElement(f,l)}function XRe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function G1(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function ZRe(e,t,n,r){const o=GRe(r.schema,t);let i=n;i==null||i!==i||(i&&typeof i=="object"&&"length"in i&&(i=(o.commaSeparated?KRe:qRe).stringify(i)),o.property==="style"&&typeof i=="string"&&(i=JRe(i)),o.space&&o.property?e[pC.call(mT,o.property)?mT[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function JRe(e){const t={};try{QRe(e,n)}catch{}return t;function n(r,o){const i=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[i.replace(/-([a-z])/g,eTe)]=o}}function eTe(e,t){return t.toUpperCase()}function tTe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(t=>String(t)).join("")}const q1=v,hT=M5,nTe=VCe,rTe=RIe,oTe=jMe,pt=GD,iTe=w2e,aTe=S2e,Xz=P2e,lTe=bk.hastChildrenToReact;var sTe=V0;const gT={}.hasOwnProperty,uTe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function V0(e){for(const i in _h)if(gT.call(_h,i)&&gT.call(e,i)){const a=_h[i];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${i}\` (see <${uTe}#${a.id}> for more info)`),delete _h[i]}const t=nTe().use(rTe).use(e.remarkPlugins||e.plugins||[]).use(oTe,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(aTe,e);let n;typeof e.children=="string"?n=hT(e.children):(e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`),n=hT());const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let o=q1.createElement(q1.Fragment,{},lTe({options:e,schema:iTe,listDepth:0},r));return e.className&&(o=q1.createElement("div",{className:e.className},o)),o}V0.defaultProps={transformLinkUri:Xz};V0.propTypes={children:pt.string,className:pt.string,allowElement:pt.func,allowedElements:pt.arrayOf(pt.string),disallowedElements:pt.arrayOf(pt.string),unwrapDisallowed:pt.bool,remarkPlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),rehypePlugins:pt.arrayOf(pt.oneOfType([pt.object,pt.func,pt.arrayOf(pt.oneOfType([pt.object,pt.func]))])),sourcePos:pt.bool,rawSourcePos:pt.bool,skipHtml:pt.bool,includeElementIndex:pt.bool,transformLinkUri:pt.oneOfType([pt.func,pt.bool]),linLine truncated
|
||||
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" "),o.push(t.handle(u,e,t,{before:a,after:l})),a=o[o.length-1].slice(-1);return o.join("")}var T_e=v3;Ik.unsafe=[{character:"~",inConstruct:"phrasing"}];Ik.handlers={delete:y3};y3.peek=__e;function y3(e,t,n){var r=n.enter("emphasis"),o=T_e(e,n,{before:"~",after:"~"});return r(),"~~"+o+"~~"}function __e(){return"~"}var F_e=A_e;function A_e(e){var t,n;return e._compiled||(t=e.before?"(?:"+e.before+")":"",n=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(n||""),"g")),e._compiled}var L_e=b3;b3.peek=N_e;var D_e=F_e;function b3(e,t,n){for(var r=e.value||"",o="`",i=-1,a,l,s,u;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/[ \r\n`]/.test(r.charAt(0))||/[ \r\n`]/.test(r.charAt(r.length-1)))&&(r=" "+r+" ");++i<n.unsafe.length;)if(a=n.unsafe[i],!!a.atBreak)for(l=D_e(a);s=l.exec(r);)u=s.index,r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1);return o+r+o}function N_e(){return"`"}/*!
|
||||
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/var Sa="",ex,Ik=j_e;function j_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(ex!==e||typeof ex>"u")ex=e,Sa="";else if(Sa.length>=n)return Sa.substr(0,n);for(;n>Sa.length&&t>1;)t&1&&(Sa+=e),t>>=1,e+=e;return Sa+=e,Sa=Sa.substr(0,n),Sa}var Ku=Ik,z_e=q_e,B_e=/ +$/,Cs=" ",H_e=`
|
||||
`,V_e="-",Ah=":",PT="|",kT=0,U_e=67,W_e=76,G_e=82,Rv=99,mC=108,Tv=114;function q_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||Q_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,M,O,R,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=K_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=$T(a[x]);else for(_=$T(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],O="",R="",_===mC?O=Ah:_===Tv?R=Ah:_===Rv&&(O=Ah,R=Ah),C=l?Math.max(1,y[x]-O.length-R.length):1,E=O+Ku(V_e,C)+R,l===!0&&(C=O.length+C+R.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,M=[];++x<w;)E=p[x]||"",O="",R="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Tv?O=Ku(Cs,C):_===Rv?C%2===0?(O=Ku(Cs,C/2),R=O):(O=Ku(Cs,C/2+.5),R=Ku(Cs,C/2-.5)):R=Ku(Cs,C)),o===!0&&x===0&&M.push(PT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&M.push(Cs),l===!0&&M.push(O),M.push(E),l===!0&&M.push(R),r===!0&&M.push(Cs),(i===!0||x!==w-1)&&M.push(PT);M=M.join(""),i===!1&&(M=M.replace(B_e,"")),S.push(M)}return S.join(H_e)}function K_e(e){return e==null?"":String(e)}function Q_e(e){return e.length}function $T(e){var t=typeof e=="string"?e.charCodeAt(0):kT;return t===W_e||t===mC?mC:t===G_e||t===Tv?Tv:t===U_e||t===Rv?Rv:kT}var Y_e=v3,X_e=L_e,Z_e=z_e,J_e=eFe;function eFe(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||||
*/var Sa="",ex,Ok=j_e;function j_e(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var n=e.length*t;if(ex!==e||typeof ex>"u")ex=e,Sa="";else if(Sa.length>=n)return Sa.substr(0,n);for(;n>Sa.length&&t>1;)t&1&&(Sa+=e),t>>=1,e+=e;return Sa+=e,Sa=Sa.substr(0,n),Sa}var Ku=Ok,z_e=q_e,B_e=/ +$/,Cs=" ",H_e=`
|
||||
`,V_e="-",Ah=":",kT="|",$T=0,U_e=67,W_e=76,G_e=82,Rv=99,mC=108,Tv=114;function q_e(e,t){for(var n=t||{},r=n.padding!==!1,o=n.delimiterStart!==!1,i=n.delimiterEnd!==!1,a=(n.align||[]).concat(),l=n.alignDelimiters!==!1,s=[],u=n.stringLength||Q_e,c=-1,d=e.length,f=[],m=[],p=[],h=[],y=[],b=0,g,x,w,P,C,E,S,M,O,R,_;++c<d;){for(g=e[c],x=-1,w=g.length,p=[],h=[],w>b&&(b=w);++x<w;)E=K_e(g[x]),l===!0&&(C=u(E),h[x]=C,P=y[x],(P===void 0||C>P)&&(y[x]=C)),p.push(E);f[c]=p,m[c]=h}if(x=-1,w=b,typeof a=="object"&&"length"in a)for(;++x<w;)s[x]=IT(a[x]);else for(_=IT(a);++x<w;)s[x]=_;for(x=-1,w=b,p=[],h=[];++x<w;)_=s[x],O="",R="",_===mC?O=Ah:_===Tv?R=Ah:_===Rv&&(O=Ah,R=Ah),C=l?Math.max(1,y[x]-O.length-R.length):1,E=O+Ku(V_e,C)+R,l===!0&&(C=O.length+C+R.length,C>y[x]&&(y[x]=C),h[x]=C),p[x]=E;for(f.splice(1,0,p),m.splice(1,0,h),c=-1,d=f.length,S=[];++c<d;){for(p=f[c],h=m[c],x=-1,w=b,M=[];++x<w;)E=p[x]||"",O="",R="",l===!0&&(C=y[x]-(h[x]||0),_=s[x],_===Tv?O=Ku(Cs,C):_===Rv?C%2===0?(O=Ku(Cs,C/2),R=O):(O=Ku(Cs,C/2+.5),R=Ku(Cs,C/2-.5)):R=Ku(Cs,C)),o===!0&&x===0&&M.push(kT),r===!0&&!(l===!1&&E==="")&&(o===!0||x!==0)&&M.push(Cs),l===!0&&M.push(O),M.push(E),l===!0&&M.push(R),r===!0&&M.push(Cs),(i===!0||x!==w-1)&&M.push(kT);M=M.join(""),i===!1&&(M=M.replace(B_e,"")),S.push(M)}return S.join(H_e)}function K_e(e){return e==null?"":String(e)}function Q_e(e){return e.length}function IT(e){var t=typeof e=="string"?e.charCodeAt(0):$T;return t===W_e||t===mC?mC:t===G_e||t===Tv?Tv:t===U_e||t===Rv?Rv:$T}var Y_e=v3,X_e=L_e,Z_e=z_e,J_e=eFe;function eFe(e){var t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
||||
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:l,tableCell:s,inlineCode:f}};function a(m,p,h){return u(c(m,h),m.align)}function l(m,p,h){var y=d(m,h),b=u([y]);return b.slice(0,b.indexOf(`
|
||||
`))}function s(m,p,h){var y=h.enter("tableCell"),b=Y_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return Z_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=X_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var Ok={},tFe=nFe;function nFe(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var rFe=oFe;function oFe(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var iFe=lFe,aFe=Ik;function lFe(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
|
||||
`))}function s(m,p,h){var y=h.enter("tableCell"),b=Y_e(m,h,{before:i,after:i});return y(),b}function u(m,p){return Z_e(m,{align:p,alignDelimiters:r,padding:n,stringLength:o})}function c(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("table");++y<b;)g[y]=d(h[y],p);return x(),g}function d(m,p){for(var h=m.children,y=-1,b=h.length,g=[],x=p.enter("tableRow");++y<b;)g[y]=s(h[y],m,p);return x(),g}function f(m,p,h){var y=X_e(m,p,h);return h.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}var Mk={},tFe=nFe;function nFe(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}var rFe=oFe;function oFe(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}var iFe=lFe,aFe=Ok;function lFe(e,t){for(var n=e.children||[],r=[],o=-1,i;++o<n.length;)i=n[o],r.push(t.handle(i,e,t,{before:`
|
||||
`,after:`
|
||||
`})),o+1<n.length&&r.push(a(i,n[o+1]));return r.join("");function a(l,s){for(var u=-1,c;++u<t.join.length&&(c=t.join[u](l,s,e,t),!(c===!0||c===1));){if(typeof c=="number")return aFe(`
|
||||
`,1+Number(c));if(c===!1)return`
|
||||
@@ -395,7 +395,7 @@ return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.g
|
||||
|
||||
`}return`
|
||||
|
||||
`}}var sFe=cFe,uFe=/\r?\n|\r/g;function cFe(e,t){for(var n=[],r=0,o=0,i;i=uFe.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var dFe=gFe,IT=Ik,fFe=tFe,pFe=rFe,mFe=iFe,hFe=sFe;function gFe(e,t,n){var r=fFe(n),o=pFe(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=hFe(mFe(e,n),s),l(),a;function s(u,c,d){return c?(d?"":IT(" ",i))+u:(d?r:r+IT(" ",i-r.length))+u}}var vFe=dFe;Ok.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Ok.handlers={listItem:yFe};function yFe(e,t,n){var r=vFe(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var bFe=x3;function x3(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)x3(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var xFe=g3,wFe=$k,CFe=J_e,SFe=Ok,EFe=bFe,PFe=kFe;function kFe(e){var t=EFe({handlers:{},join:[],unsafe:[],options:{}},{extensions:[xFe,wFe,CFe(e),SFe]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var $Fe=WTe,IFe=I_e,OFe=PFe,OT,MFe=RFe;function RFe(e){var t=this.data();!OT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(OT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",$Fe(e)),n("fromMarkdownExtensions",IFe),n("toMarkdownExtensions",OFe(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const TFe=ra(MFe),_Fe=tt(N.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),FFe=["slots","slotProps"],AFe=de(Zi)(({theme:e})=>I({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":I({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":I({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:uM(e.palette.grey[200],.12)}:{backgroundColor:uM(e.palette.grey[600],.12)})})),LFe=de(_Fe)({width:24,height:16});function DFe(e){const{slots:t={},slotProps:n={}}=e,r=ue(e,FFe),o=e;return N.jsx("li",{children:N.jsx(AFe,I({focusRipple:!0},r,{ownerState:o,children:N.jsx(LFe,I({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function NFe(e){return Be("MuiBreadcrumbs",e)}const jFe=He("MuiBreadcrumbs",["root","ol","li","separator"]),zFe=jFe,BFe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],HFe=e=>{const{classes:t}=e;return Ie({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},NFe,t)},VFe=de(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${zFe.li}`]:t.li},t.root]})({}),UFe=de("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),WFe=de("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function GFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,N.jsx(WFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const qFe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ue(r,BFe),[h,y]=v.useState(!1),b=I({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=HFe(b),x=Xi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+c>=E.length?E:[...E.slice(0,d),N.jsx(DFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>N.jsx("li",{className:g.li,children:E},`child-${S}`));return N.jsx(VFe,I({ref:n,component:a,color:"text.secondary",className:he(g.root,i),ownerState:b},p,{children:N.jsx(UFe,{className:g.ol,ref:w,ow
Line truncated
|
||||
`}}var sFe=cFe,uFe=/\r?\n|\r/g;function cFe(e,t){for(var n=[],r=0,o=0,i;i=uFe.exec(e);)a(e.slice(r,i.index)),n.push(i[0]),r=i.index+i[0].length,o++;return a(e.slice(r)),n.join("");function a(l){n.push(t(l,o,!l))}}var dFe=gFe,OT=Ok,fFe=tFe,pFe=rFe,mFe=iFe,hFe=sFe;function gFe(e,t,n){var r=fFe(n),o=pFe(n),i,a,l;return t&&t.ordered&&(r=(t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),i=r.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4),l=n.enter("listItem"),a=hFe(mFe(e,n),s),l(),a;function s(u,c,d){return c?(d?"":OT(" ",i))+u:(d?r:r+OT(" ",i-r.length))+u}}var vFe=dFe;Mk.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Mk.handlers={listItem:yFe};function yFe(e,t,n){var r=vFe(e,t,n),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(r=r.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,i)),r;function i(a){return a+"["+(e.checked?"x":" ")+"] "}}var bFe=x3;function x3(e,t){var n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)x3(e,t.extensions[n]);for(r in t)r==="extensions"||(r==="unsafe"||r==="join"?e[r]=e[r].concat(t[r]||[]):r==="handlers"?e[r]=Object.assign(e[r],t[r]||{}):e.options[r]=t[r]);return e}var xFe=g3,wFe=Ik,CFe=J_e,SFe=Mk,EFe=bFe,PFe=kFe;function kFe(e){var t=EFe({handlers:{},join:[],unsafe:[],options:{}},{extensions:[xFe,wFe,CFe(e),SFe]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}var $Fe=WTe,IFe=I_e,OFe=PFe,MT,MFe=RFe;function RFe(e){var t=this.data();!MT&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(MT=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",$Fe(e)),n("fromMarkdownExtensions",IFe),n("toMarkdownExtensions",OFe(e));function n(r,o){t[r]?t[r].push(o):t[r]=[o]}}const TFe=ra(MFe),_Fe=tt(N.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),FFe=["slots","slotProps"],AFe=de(Zi)(({theme:e})=>I({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":I({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":I({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:cM(e.palette.grey[200],.12)}:{backgroundColor:cM(e.palette.grey[600],.12)})})),LFe=de(_Fe)({width:24,height:16});function DFe(e){const{slots:t={},slotProps:n={}}=e,r=ue(e,FFe),o=e;return N.jsx("li",{children:N.jsx(AFe,I({focusRipple:!0},r,{ownerState:o,children:N.jsx(LFe,I({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function NFe(e){return Be("MuiBreadcrumbs",e)}const jFe=He("MuiBreadcrumbs",["root","ol","li","separator"]),zFe=jFe,BFe=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],HFe=e=>{const{classes:t}=e;return Ie({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},NFe,t)},VFe=de(Xe,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${zFe.li}`]:t.li},t.root]})({}),UFe=de("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),WFe=de("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function GFe(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,N.jsx(WFe,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const qFe=v.forwardRef(function(t,n){const r=Ue({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:s={},expandText:u="Show path",itemsAfterCollapse:c=1,itemsBeforeCollapse:d=1,maxItems:f=8,separator:m="/"}=r,p=ue(r,BFe),[h,y]=v.useState(!1),b=I({},r,{component:a,expanded:h,expandText:u,itemsAfterCollapse:c,itemsBeforeCollapse:d,maxItems:f,separator:m}),g=HFe(b),x=Xi({elementType:l.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:b}),w=v.useRef(null),P=E=>{const S=()=>{y(!0);const M=w.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return d+c>=E.length?E:[...E.slice(0,d),N.jsx(DFe,{"aria-label":u,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:x},onClick:S},"ellipsis"),...E.slice(E.length-c,E.length)]},C=v.Children.toArray(o).filter(E=>v.isValidElement(E)).map((E,S)=>N.jsx("li",{className:g.li,children:E},`child-${S}`));return N.jsx(VFe,I({ref:n,component:a,color:"text.secondary",className:he(g.root,i),ownerState:b},p,{children:N.jsx(UFe,{className:g.ol,ref:w,ow
Line truncated
|
||||
&.SnackbarItem-contentRoot {
|
||||
background-color: ${e=>e.theme.palette.background.default};
|
||||
color: ${e=>e.theme.palette.primary.main};
|
||||
@@ -425,7 +425,7 @@ return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.g
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tp.apply(this,arguments)}var jl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jl||(jl={}));const FT="popstate";function nLe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return hC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:_v(o)}return oLe(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rLe(){return Math.random().toString(36).substr(2,8)}function AT(e,t){return{usr:e.state,key:e.key,idx:t}}function hC(e,t,n,r){return n===void 0&&(n=null),Tp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_d(t):t,{state:n,key:t&&t.key||r||rLe()})}function _v(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oLe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=jl.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Tp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=jl.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=jl.Push;let g=hC(h.location,y,b);n&&n(g,y),u=c()+1;let x=AT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=jl.Replace;let g=hC(h.location,y,b);n&&n(g,y),u=c();let x=AT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:_v(y);return g=g.replace(/ $/,"%20"),xn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(FT,d),s=y,()=>{o.removeEventListener(FT,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var LT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(LT||(LT={}));function iLe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_d(t):t,o=zk(r.pathname||"/",n);if(o==null)return null;let i=D3(e);aLe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=vLe(o);a=hLe(i[l],s)}return a}function D3(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(xn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Zl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(xn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),D3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:pLe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of N3(i.path))o(i,a,s)}),t}function N3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=N3(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function aLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lLe=/^:[\w-]+$/,sLe=3,uLe=2,cLe=1,dLe=10,fLe=-2,DT=e=>e==="*";function pLe(e,t){let n=e.split("/"),r=n.length;return n.some(DT)&&(r+=fLe),t&&(r+=uLe),n.filter(o=>!DT(o)).reduce((o,i)=>o+(lLe.test(i)?sLe:i===""?cLe:dLe),r)}function mLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hLe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=j3({path:l.relativePath,caseSensitive:lLine truncated
|
||||
*/function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tp.apply(this,arguments)}var jl;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(jl||(jl={}));const AT="popstate";function nLe(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return hC("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:_v(o)}return oLe(t,n,null,e)}function wn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L3(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rLe(){return Math.random().toString(36).substr(2,8)}function LT(e,t){return{usr:e.state,key:e.key,idx:t}}function hC(e,t,n,r){return n===void 0&&(n=null),Tp({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_d(t):t,{state:n,key:t&&t.key||r||rLe()})}function _v(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function oLe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=jl.Pop,s=null,u=c();u==null&&(u=0,a.replaceState(Tp({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){l=jl.Pop;let y=c(),b=y==null?null:y-u;u=y,s&&s({action:l,location:h.location,delta:b})}function f(y,b){l=jl.Push;let g=hC(h.location,y,b);n&&n(g,y),u=c()+1;let x=LT(g,u),w=h.createHref(g);try{a.pushState(x,"",w)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(w)}i&&s&&s({action:l,location:h.location,delta:1})}function m(y,b){l=jl.Replace;let g=hC(h.location,y,b);n&&n(g,y),u=c();let x=LT(g,u),w=h.createHref(g);a.replaceState(x,"",w),i&&s&&s({action:l,location:h.location,delta:0})}function p(y){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof y=="string"?y:_v(y);return g=g.replace(/ $/,"%20"),wn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let h={get action(){return l},get location(){return e(o,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(AT,d),s=y,()=>{o.removeEventListener(AT,d),s=null}},createHref(y){return t(o,y)},createURL:p,encodeLocation(y){let b=p(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:m,go(y){return a.go(y)}};return h}var DT;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(DT||(DT={}));function iLe(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_d(t):t,o=Bk(r.pathname||"/",n);if(o==null)return null;let i=D3(e);aLe(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let s=vLe(o);a=hLe(i[l],s)}return a}function D3(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(wn(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Zl([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(wn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),D3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:pLe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of N3(i.path))o(i,a,s)}),t}function N3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=N3(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function aLe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:mLe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const lLe=/^:[\w-]+$/,sLe=3,uLe=2,cLe=1,dLe=10,fLe=-2,NT=e=>e==="*";function pLe(e,t){let n=e.split("/"),r=n.length;return n.some(NT)&&(r+=fLe),t&&(r+=uLe),n.filter(o=>!NT(o)).reduce((o,i)=>o+(lLe.test(i)?sLe:i===""?cLe:dLe),r)}function mLe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hLe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let l=n[a],s=a===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",c=j3({path:l.relativePath,caseSensitive:lLine truncated
|
||||
* React Router v6.22.3
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
@@ -434,7 +434,7 @@ return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.g
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/function _p(){return _p=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},_p.apply(this,arguments)}const Vk=v.createContext(null),kLe=v.createContext(null),fl=v.createContext(null),Q0=v.createContext(null),pa=v.createContext({outlet:null,matches:[],isDataRoute:!1}),B3=v.createContext(null);function $Le(e,t){let{relative:n}=t===void 0?{}:t;Fd()||xn(!1);let{basename:r,navigator:o}=v.useContext(fl),{hash:i,pathname:a,search:l}=V3(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Zl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Fd(){return v.useContext(Q0)!=null}function na(){return Fd()||xn(!1),v.useContext(Q0).location}function H3(e){v.useContext(fl).static||v.useLayoutEffect(e)}function Fv(){let{isDataRoute:e}=v.useContext(pa);return e?VLe():ILe()}function ILe(){Fd()||xn(!1);let e=v.useContext(Vk),{basename:t,future:n,navigator:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Bk(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return H3(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Hk(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Zl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const OLe=v.createContext(null);function MLe(e){let t=v.useContext(pa).outlet;return t&&v.createElement(OLe.Provider,{value:e},t)}function RLe(){let{matches:e}=v.useContext(pa),t=e[e.length-1];return t?t.params:{}}function V3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Bk(o,r.v7_relativeSplatPath));return v.useMemo(()=>Hk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function TLe(e,t){return _Le(e,t)}function _Le(e,t,n,r){Fd()||xn(!1);let{navigator:o}=v.useContext(fl),{matches:i}=v.useContext(pa),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=na(),c;if(t){var d;let y=typeof t=="string"?_d(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||xn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=iLe(e,{pathname:m}),h=NLe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Zl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Zl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(Q0.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:jl.Pop}},h):h}function FLe(){let e=HLe(),t=ELe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const ALe=v.createElement(FLe,null);class LLe extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(pa.Provider,{value:this.props.routeContext},v.createElement(B3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DLe(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Vk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(pa.Provider,{value:t},r)}function NLe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||xn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;Line truncated
|
||||
*/function _p(){return _p=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},_p.apply(this,arguments)}const Uk=v.createContext(null),kLe=v.createContext(null),fl=v.createContext(null),Q0=v.createContext(null),pa=v.createContext({outlet:null,matches:[],isDataRoute:!1}),B3=v.createContext(null);function $Le(e,t){let{relative:n}=t===void 0?{}:t;Fd()||wn(!1);let{basename:r,navigator:o}=v.useContext(fl),{hash:i,pathname:a,search:l}=V3(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Zl([r,a])),o.createHref({pathname:s,search:l,hash:i})}function Fd(){return v.useContext(Q0)!=null}function na(){return Fd()||wn(!1),v.useContext(Q0).location}function H3(e){v.useContext(fl).static||v.useLayoutEffect(e)}function Fv(){let{isDataRoute:e}=v.useContext(pa);return e?VLe():ILe()}function ILe(){Fd()||wn(!1);let e=v.useContext(Uk),{basename:t,future:n,navigator:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Hk(o,n.v7_relativeSplatPath)),l=v.useRef(!1);return H3(()=>{l.current=!0}),v.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let d=Vk(u,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Zl([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,a,i,e])}const OLe=v.createContext(null);function MLe(e){let t=v.useContext(pa).outlet;return t&&v.createElement(OLe.Provider,{value:e},t)}function RLe(){let{matches:e}=v.useContext(pa),t=e[e.length-1];return t?t.params:{}}function V3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(fl),{matches:o}=v.useContext(pa),{pathname:i}=na(),a=JSON.stringify(Hk(o,r.v7_relativeSplatPath));return v.useMemo(()=>Vk(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function TLe(e,t){return _Le(e,t)}function _Le(e,t,n,r){Fd()||wn(!1);let{navigator:o}=v.useContext(fl),{matches:i}=v.useContext(pa),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let u=na(),c;if(t){var d;let y=typeof t=="string"?_d(t):t;s==="/"||(d=y.pathname)!=null&&d.startsWith(s)||wn(!1),c=y}else c=u;let f=c.pathname||"/",m=f;if(s!=="/"){let y=s.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=iLe(e,{pathname:m}),h=NLe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:Zl([s,o.encodeLocation?o.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Zl([s,o.encodeLocation?o.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&h?v.createElement(Q0.Provider,{value:{location:_p({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:jl.Pop}},h):h}function FLe(){let e=HLe(),t=ELe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,i)}const ALe=v.createElement(FLe,null);class LLe extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(pa.Provider,{value:this.props.routeContext},v.createElement(B3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DLe(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(Uk);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(pa.Provider,{value:t},r)}function NLe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=a.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id]));c>=0||wn(!1),a=a.slice(0,Math.min(a.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<a.length;c++){let d=a[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:m}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!m||m[d.route.id]===void 0);if(d.route.lazy||p){s=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((c,d,f)=>{let m,p=!1,h=null,y=null;Line truncated
|
||||
* React Router DOM v6.22.3
|
||||
*
|
||||
* Copyright (c) Remix Software Inc.
|
||||
@@ -443,9 +443,9 @@ return result$$;`.replaceAll("$$",String(D2)));return D2+=1,(l,s)=>i(t.current.g
|
||||
* LICENSE.md file in the root directory of this source tree.
|
||||
*
|
||||
* @license MIT
|
||||
*/function vC(){return vC=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},vC.apply(this,arguments)}function qLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function KLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QLe(e,t){return e.button===0&&(!t||t==="_self")&&!KLe(e)}const YLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],XLe="6";try{window.__reactRouterVersion=XLe}catch{}const ZLe="startTransition",zT=yg[ZLe];function JLe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=nLe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&zT?zT(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(WLe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const eDe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tDe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nDe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=qLe(t,YLe),{basename:m}=v.useContext(fl),p,h=!1;if(typeof u=="string"&&tDe.test(u)&&(p=u,eDe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=zk(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=$Le(u,{relative:o}),b=rDe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",vC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var BT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(BT||(BT={}));var HT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(HT||(HT={}));function rDe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Fv(),u=na(),c=V3(e,{relative:a});return v.useCallback(d=>{if(QLe(d,n)){d.preventDefault();let f=r!==void 0?r:_v(u)===_v(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var VT=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},oDe={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},iDe={go:()=>{let{search:e,hash:t}=na(),n=Fv();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Jh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Jh.stringify(u,oDe):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Fv();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=RLe(),{pathname:n,search:r}=na(),{resources:o}=v.useContext(Wp),{resource:i,action:a,matchedRoute:l}=k.useMemo(()=>WL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=j3(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Jh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:VT(u.current),pageSize:VT(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:k.forwardRef(function(e,t){return k.createElement(nDe,{...e,ref:t})})},UT=({resource:e,meta:t})=>{let n=Kp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?k.createElement(G3,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function aDe(e,t=!0){let{navigator:n}=k.useContext(fl);k.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function lDe(e,t=!0,n,r=!1){let o=k.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);k.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=k.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);aDe(i,t)}var sDe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=na(),{warnWhen:o,setWarnWhen:i}=tl();k.useEffect(()=>()=>i==nLine truncated
|
||||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&mNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},e_=Symbol("internals");function ff(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(gg):String(e)}function gNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vNe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rx(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function yNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bNe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class eb{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=ff(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=gg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!vNe(t)?a(hNe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return gNe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ff(a),a){const l=Se.findKey(r,a);l&&(!n||rx(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||rx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=gg(o),delete n[i];return}const l=t?yNe(i):String(i).trim();l!==i&&delete n[i],n[l]=gg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[e_]=this[e_]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=ff(a);r[l]||(bNe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}eb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(eb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(eb);const za=eb;function ox(e,t){const n=this||qk,r=t||n,o=za.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function cB(e){return!!(e&&e.__CANCEL__)}function Am(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(Am,yt,{__CANCEL__:!0});function xNe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wNe=Hi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SNe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dB(e,t){return e&&!CNe(t)?SNe(e,t):t}const ENe=Hi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function PNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function t_(e,t){let n=0;const r=kNe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const $Ne=typeof XMLHttpRequest<"u",INe=$Ne&&function(e){return new Promise(function(n,r){let o=e.data;const i=za.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Hi.hasStandardBrowserEnv||Hi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=dB(e.baseURL,e.url);d.open(e.method.toUpperCase(),aB(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=za.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};xNe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new yt("Request aborted",yt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||lB;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new yt(y,b.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,d)),d=null},Hi.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&ENe(f))){const h=e.xsrfHeaderName&&e.
Line truncated
|
||||
`+i.map(n_).join(`
|
||||
`):" "+n_(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:wC};function ix(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Am(null,e)}function r_(e){return ix(e),e.headers=za.from(e.headers),e.data=ox.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fB.getAdapter(e.adapter||qk.adapter)(e).then(function(r){return ix(e),r.data=ox.call(e,e.transformResponse,r),r.headers=za.from(r.headers),r},function(r){return cB(r)||(ix(e),r&&r.response&&(r.response.data=ox.call(e,e.transformResponse,r.response),r.response.headers=za.from(r.response.headers))),Promise.reject(r)})}const o_=e=>e instanceof za?e.toJSON():e;function ad(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(o_(u),o_(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const pB="1.6.7",Kk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const i_={};Kk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+pB+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new yt(o(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!i_[a]&&(i_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function MNe(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new yt("option "+i+" must be "+s,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const CC={assertOptions:MNe,validators:Kk},vl=CC.validators;class Lv{constructor(t){this.defaults=t,this.interceptors={request:new JT,response:new JT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||||
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ad(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&CC.assertOptions(r,{silentJSONParsing:vl.transitional(vl.boolean),forcedJSONParsing:vl.transitional(vl.boolean),clarifyTimeoutError:vl.transitional(vl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:CC.assertOptions(o,{encode:vl.function,serialize:vl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=za.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[r_.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=r_.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ad(this.defaults,t);const n=dB(t.baseURL,t.url);return aB(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){Lv.prototype[t]=function(n,r){return this.request(ad(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(ad(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Lv.prototype[t]=n(),Lv.prototype[t+"Form"]=n(!0)});const vg=Lv;class Qk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Am(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Qk(function(o){t=o}),cancel:t}}}const RNe=Qk;function TNe(e){return function(n){return e.apply(null,n)}}function _Ne(e){return Se.isObject(e)&&e.isAxiosError===!0}const SC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(SC).forEach(([e,t])=>{SC[t]=e});const FNe=SC;function mB(e){const t=new vg(e),n=K3(vg.prototype.request,t);return Se.extend(n,vg.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mB(ad(e,o))},n}const _n=mB(qk);_n.Axios=vg;_n.CanceledError=Am;_n.CancelToken=RNe;_n.isCancel=cB;_n.VERSION=pB;_n.toFormData=J0;_n.AxiosError=yt;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=TNe;_n.isAxiosError=_Ne;_n.mergeConfig=ad;_n.AxiosHeaders=za;_n.formToJSON=e=>uB(Se.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=fB.getAdapter;_n.HttpStatusCode=FNe;_n.default=_n;const ANe=_n,hB=ANe.create();hB.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const ax=(e,t=hB)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSi
Line truncated
|
||||
*/function vC(){return vC=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},vC.apply(this,arguments)}function qLe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function KLe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QLe(e,t){return e.button===0&&(!t||t==="_self")&&!KLe(e)}const YLe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],XLe="6";try{window.__reactRouterVersion=XLe}catch{}const ZLe="startTransition",BT=yg[ZLe];function JLe(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=nLe({window:o,v5Compat:!0}));let a=i.current,[l,s]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=v.useCallback(d=>{u&&BT?BT(()=>s(d)):s(d)},[s,u]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(WLe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const eDe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tDe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nDe=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=qLe(t,YLe),{basename:m}=v.useContext(fl),p,h=!1;if(typeof u=="string"&&tDe.test(u)&&(p=u,eDe))try{let x=new URL(window.location.href),w=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=Bk(w.pathname,m);w.origin===x.origin&&P!=null?u=P+w.search+w.hash:h=!0}catch{}let y=$Le(u,{relative:o}),b=rDe(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(x){r&&r(x),x.defaultPrevented||b(x)}return v.createElement("a",vC({},f,{href:p||y,onClick:h||i?r:g,ref:n,target:s}))});var HT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(HT||(HT={}));var VT;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(VT||(VT={}));function rDe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,s=Fv(),u=na(),c=V3(e,{relative:a});return v.useCallback(d=>{if(QLe(d,n)){d.preventDefault();let f=r!==void 0?r:_v(u)===_v(c);s(e,{replace:f,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[u,s,c,r,o,n,e,i,a,l])}var UT=e=>{if(typeof e>"u")return e;let t=Number(e);return`${t}`===e?t:e},oDe={addQueryPrefix:!0,skipNulls:!0,arrayFormat:"indices",encode:!1,encodeValuesOnly:!0},iDe={go:()=>{let{search:e,hash:t}=na(),n=Fv();return v.useCallback(({to:r,type:o,query:i,hash:a,options:{keepQuery:l,keepHash:s}={}})=>{let u={...l&&e&&Jh.parse(e,{ignoreQueryPrefix:!0}),...i};u.to&&(u.to=encodeURIComponent(`${u.to}`));let c=Object.keys(u).length>0,d=`#${(a||s&&t||"").replace(/^#/,"")}`,f=d.length>1,m=`${r||""}${c?Jh.stringify(u,oDe):""}${f?d:""}`;return o==="path"?m:n(m,{replace:o==="replace"})},[t,e,n])},back:()=>{let e=Fv();return v.useCallback(()=>{e(-1)},[e])},parse:()=>{var e;let t=RLe(),{pathname:n,search:r}=na(),{resources:o}=v.useContext(Wp),{resource:i,action:a,matchedRoute:l}=k.useMemo(()=>GL(n,o),[o,n]);return Object.entries(t).length===0&&l&&(t=((e=j3(l,n))==null?void 0:e.params)||{}),v.useCallback(()=>{let s=Jh.parse(r,{ignoreQueryPrefix:!0}),u={...t,...s};return{...i&&{resource:i},...a&&{action:a},...(t==null?void 0:t.id)&&{id:decodeURIComponent(t.id)},pathname:n,params:{...u,current:UT(u.current),pageSize:UT(u.pageSize),to:u.to?decodeURIComponent(u.to):void 0}}},[n,r,t,i,a])},Link:k.forwardRef(function(e,t){return k.createElement(nDe,{...e,ref:t})})},WT=({resource:e,meta:t})=>{let n=Kp(),{resource:r,resources:o}=Je(e),i=r||o.find(a=>a.list);if(i){let a=n({resource:i,action:"list",meta:t});return a?k.createElement(G3,{to:a}):(console.warn("No resource is found to navigate to."),null)}return console.warn("No resource is found to navigate to."),null};function aDe(e,t=!0){let{navigator:n}=k.useContext(fl);k.useEffect(()=>{if(!t)return;let r=n.go,o=n.push;return n.push=(...i)=>{e()!==!1&&o(...i)},n.go=(...i)=>{e()!==!1&&r(...i)},()=>{n.push=o,n.go=r}},[n,e,t])}function lDe(e,t=!0,n,r=!1){let o=k.useCallback(a=>(a.preventDefault(),a.returnValue=e,a.returnValue),[e]);k.useEffect(()=>(t&&!r&&window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}),[o,t,r]);let i=k.useCallback(()=>{let a=window.confirm(e);return a&&n&&n(),a},[e]);aDe(i,t)}var sDe=({translationKey:e="warnWhenUnsavedChanges",message:t="Are you sure you want to leave? You have unsaved changes."})=>{let n=Qe(),{pathname:r}=na(),{warnWhen:o,setWarnWhen:i}=tl();k.useEffect(()=>()=>i==nLine truncated
|
||||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&mNe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},t_=Symbol("internals");function ff(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:Se.isArray(e)?e.map(gg):String(e)}function gNe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const vNe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rx(e,t,n,r,o){if(Se.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Se.isString(t)){if(Se.isString(r))return t.indexOf(r)!==-1;if(Se.isRegExp(r))return r.test(t)}}function yNe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bNe(e,t){const n=Se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class eb{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,s,u){const c=ff(s);if(!c)throw new Error("header name must be a non-empty string");const d=Se.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=gg(l))}const a=(l,s)=>Se.forEach(l,(u,c)=>i(u,c,s));return Se.isPlainObject(t)||t instanceof this.constructor?a(t,n):Se.isString(t)&&(t=t.trim())&&!vNe(t)?a(hNe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return gNe(o);if(Se.isFunction(n))return n.call(this,o,r);if(Se.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ff(t),t){const r=Se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ff(a),a){const l=Se.findKey(r,a);l&&(!n||rx(r,r[l],l,n))&&(delete r[l],o=!0)}}return Se.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||rx(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Se.forEach(this,(o,i)=>{const a=Se.findKey(r,i);if(a){n[a]=gg(o),delete n[i];return}const l=t?yNe(i):String(i).trim();l!==i&&delete n[i],n[l]=gg(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Se.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[t_]=this[t_]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=ff(a);r[l]||(bNe(o,a),r[l]=!0)}return Se.isArray(t)?t.forEach(i):i(t),this}}eb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Se.reduceDescriptors(eb.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Se.freezeMethods(eb);const za=eb;function ox(e,t){const n=this||Kk,r=t||n,o=za.from(r.headers);let i=r.data;return Se.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function cB(e){return!!(e&&e.__CANCEL__)}function Am(e,t,n){yt.call(this,e??"canceled",yt.ERR_CANCELED,t,n),this.name="CanceledError"}Se.inherits(Am,yt,{__CANCEL__:!0});function xNe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new yt("Request failed with status code "+n.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wNe=Hi.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Se.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Se.isString(r)&&a.push("path="+r),Se.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function CNe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SNe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dB(e,t){return e&&!CNe(t)?SNe(e,t):t}const ENe=Hi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const l=Se.isString(a)?o(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function PNe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kNe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];a||(a=u),n[o]=s,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(f*1e3/m):void 0}}function n_(e,t){let n=0;const r=kNe(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,s=r(l),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&u?(a-i)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const $Ne=typeof XMLHttpRequest<"u",INe=$Ne&&function(e){return new Promise(function(n,r){let o=e.data;const i=za.from(e.headers).normalize();let{responseType:a,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(Se.isFormData(o)){if(Hi.hasStandardBrowserEnv||Hi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=dB(e.baseURL,e.url);d.open(e.method.toUpperCase(),aB(f,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const h=za.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};xNe(function(x){n(x),u()},function(x){r(x),u()},b),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new yt("Request aborted",yt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new yt("Network Error",yt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||lB;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new yt(y,b.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,e,d)),d=null},Hi.hasStandardBrowserEnv&&(l&&Se.isFunction(l)&&(l=l(e)),l||l!==!1&&ENe(f))){const h=e.xsrfHeaderName&&e.
Line truncated
|
||||
`+i.map(r_).join(`
|
||||
`):" "+r_(i[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:wC};function ix(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Am(null,e)}function o_(e){return ix(e),e.headers=za.from(e.headers),e.data=ox.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fB.getAdapter(e.adapter||Kk.adapter)(e).then(function(r){return ix(e),r.data=ox.call(e,e.transformResponse,r),r.headers=za.from(r.headers),r},function(r){return cB(r)||(ix(e),r&&r.response&&(r.response.data=ox.call(e,e.transformResponse,r.response),r.response.headers=za.from(r.response.headers))),Promise.reject(r)})}const i_=e=>e instanceof za?e.toJSON():e;function ad(e,t){t=t||{};const n={};function r(u,c,d){return Se.isPlainObject(u)&&Se.isPlainObject(c)?Se.merge.call({caseless:d},u,c):Se.isPlainObject(c)?Se.merge({},c):Se.isArray(c)?c.slice():c}function o(u,c,d){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!Se.isUndefined(c))return r(void 0,c)}function a(u,c){if(Se.isUndefined(c)){if(!Se.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,c)=>o(i_(u),i_(c),!0)};return Se.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Se.isUndefined(f)&&d!==l||(n[c]=f)}),n}const pB="1.6.7",Qk={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qk[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const a_={};Qk.transitional=function(t,n,r){function o(i,a){return"[Axios v"+pB+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new yt(o(a," has been removed"+(n?" in "+n:"")),yt.ERR_DEPRECATED);return n&&!a_[a]&&(a_[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function MNe(e,t,n){if(typeof e!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],s=l===void 0||a(l,i,e);if(s!==!0)throw new yt("option "+i+" must be "+s,yt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new yt("Unknown option "+i,yt.ERR_BAD_OPTION)}}const CC={assertOptions:MNe,validators:Qk},vl=CC.validators;class Lv{constructor(t){this.defaults=t,this.interceptors={request:new e_,response:new e_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||||
`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ad(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&CC.assertOptions(r,{silentJSONParsing:vl.transitional(vl.boolean),forcedJSONParsing:vl.transitional(vl.boolean),clarifyTimeoutError:vl.transitional(vl.boolean)},!1),o!=null&&(Se.isFunction(o)?n.paramsSerializer={serialize:o}:CC.assertOptions(o,{encode:vl.function,serialize:vl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Se.merge(i.common,i[n.method]);i&&Se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=za.concat(a,i);const l=[];let s=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(s=s&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!s){const p=[o_.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),f=p.length,c=Promise.resolve(n);d<f;)c=c.then(p[d++],p[d++]);return c}f=l.length;let m=n;for(d=0;d<f;){const p=l[d++],h=l[d++];try{m=p(m)}catch(y){h.call(this,y);break}}try{c=o_.call(this,m)}catch(p){return Promise.reject(p)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=ad(this.defaults,t);const n=dB(t.baseURL,t.url);return aB(n,t.params,t.paramsSerializer)}}Se.forEach(["delete","get","head","options"],function(t){Lv.prototype[t]=function(n,r){return this.request(ad(r||{},{method:t,url:n,data:(r||{}).data}))}});Se.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(ad(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Lv.prototype[t]=n(),Lv.prototype[t+"Form"]=n(!0)});const vg=Lv;class Yk{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Am(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Yk(function(o){t=o}),cancel:t}}}const RNe=Yk;function TNe(e){return function(n){return e.apply(null,n)}}function _Ne(e){return Se.isObject(e)&&e.isAxiosError===!0}const SC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(SC).forEach(([e,t])=>{SC[t]=e});const FNe=SC;function mB(e){const t=new vg(e),n=K3(vg.prototype.request,t);return Se.extend(n,vg.prototype,t,{allOwnKeys:!0}),Se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return mB(ad(e,o))},n}const _n=mB(Kk);_n.Axios=vg;_n.CanceledError=Am;_n.CancelToken=RNe;_n.isCancel=cB;_n.VERSION=pB;_n.toFormData=J0;_n.AxiosError=yt;_n.Cancel=_n.CanceledError;_n.all=function(t){return Promise.all(t)};_n.spread=TNe;_n.isAxiosError=_Ne;_n.mergeConfig=ad;_n.AxiosHeaders=za;_n.formToJSON=e=>uB(Se.isHTMLForm(e)?new FormData(e):e);_n.getAdapter=fB.getAdapter;_n.HttpStatusCode=FNe;_n.default=_n;const ANe=_n,hB=ANe.create();hB.interceptors.response.use(e=>e,e=>{var n,r,o;const t={...e,message:(r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message,statusCode:(o=e.response)==null?void 0:o.status};return Promise.reject(t)});const ax=(e,t=hB)=>({getList:async({resource:n,pagination:r,filters:o,sorters:i,meta:a})=>{const l=`${e}/${n}`,{current:s=1,pageSi
Line truncated
|
||||
Vendored
+1
-1
@@ -22,7 +22,7 @@
|
||||
<title>
|
||||
Markus Lehr | VR Predictive Maintenance Device.
|
||||
</title>
|
||||
<script type="module" crossorigin src="/assets/index-530ee5bc.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-6d6c50c2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
||||
Reference in new issue
Block a user