fastapi-rtk 0.0.59 → 0.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fastapi-rtk.es.js +1098 -1114
- package/dist/fastapi-rtk.umd.js +49 -49
- package/package.json +1 -1
package/dist/fastapi-rtk.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(P,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-router-dom"),require("@mantine/hooks"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@jsonforms/core"),require("@jsonforms/react"),require("@emotion/react")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","@mantine/hooks","@mantine/core","@mantine/form","@mantine/dates","@jsonforms/core","@jsonforms/react","@emotion/react"],_):(P=typeof globalThis<"u"?globalThis:P||self,_(P["fastapi-rtk"]={},P.React$1,P.reactRouterDom,P.hooks,P.core,P.form,P.dates,P.core$1,P.react,P.react$1))})(this,function(P,_,Ft,At,b,vi,Xt,H,_e,yo){"use strict";var
|
|
1
|
+
(function(P,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-router-dom"),require("@mantine/hooks"),require("@mantine/core"),require("@mantine/form"),require("@mantine/dates"),require("@jsonforms/core"),require("@jsonforms/react"),require("@emotion/react")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","@mantine/hooks","@mantine/core","@mantine/form","@mantine/dates","@jsonforms/core","@jsonforms/react","@emotion/react"],_):(P=typeof globalThis<"u"?globalThis:P||self,_(P["fastapi-rtk"]={},P.React$1,P.reactRouterDom,P.hooks,P.core,P.form,P.dates,P.core$1,P.react,P.react$1))})(this,function(P,_,Ft,At,b,vi,Xt,H,_e,yo){"use strict";var KA=Object.defineProperty;var XA=(P,_,Ft)=>_ in P?KA(P,_,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):P[_]=Ft;var Of=(P,_,Ft)=>XA(P,typeof _!="symbol"?_+"":_,Ft);function kf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Ze=kf(_);var Ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bi={exports:{}},Tr={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -30,113 +30,113 @@ React keys must be passed directly to JSX without using spread:
|
|
|
30
30
|
<%s key={someKey} {...props} />`,Je,Ee,Kt,Ee),hi[Ee+Je]=!0}}return g===n?pi($):di($),$}}function xr(g,w,z){return rt(g,w,z,!0)}function mi(g,w,z){return rt(g,w,z,!1)}var gi=mi,yi=xr;_r.Fragment=n,_r.jsx=gi,_r.jsxs=yi}()),_r}process.env.NODE_ENV==="production"?bi.exports=Pf():bi.exports=jf();var d=bi.exports;function Be({path:e,method:t,body:r=void 0,queryParams:n=void 0}){const i=Object.entries(n||{}).reduce((s,[l,u])=>((Array.isArray(u)||typeof u=="object")&&(u=JSON.stringify(u)),s[l]=u,s),{}),a=new Ft.createSearchParams(i);e=e+"?"+a;const o={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:r?JSON.stringify(r):null};return{fetchPath:e,options:o}}function If(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let i=0;i<e.length;i++){let a=e[i];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(i>0&&(a=a.replace(/^[\/]+/,"")),i<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}let r=t.join("/");r=r.replace(/\/(\?|&|#[^!])/g,"$1");const n=r.split("?");return r=n.shift()+(n.length>0?"?":"")+n.join("&"),r}function De(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return If(t)}function Xr(e,{autoInvoke:t=!0,initialLoading:r=!1,clearDataOnRefetch:n=!1,...i}={}){const[a,o]=_.useState(null),[s,l]=_.useState(r),[u,f]=_.useState(null),c=_.useRef(null),p=_.useCallback(()=>{if(e)return n&&o(null),f(null),c.current&&c.current.abort(),c.current=new AbortController,l(!0),fetch(e,{signal:c.current.signal,...i}).then(async m=>{const y=await m.json();if(!m.ok){const T=typeof y.detail=="string"?y.detail:JSON.stringify(y.detail,null,2);throw new Error(T)}return o(y),l(!1),y}).catch(m=>(m&&m.name!=="AbortError"&&(f(m),l(!1)),m))},[e]),v=_.useCallback(()=>{var m;c.current&&((m=c.current)==null||m.abort(""),l(!1))},[]);return _.useEffect(()=>(t&&p(),()=>{c.current&&c.current.abort("")}),[p,t]),{data:a,loading:s,error:u,refetch:p,abort:v}}function xo({path:e,autoInvoke:t=!0,initialLoading:r=!0}){const{fetchPath:n,options:i}=_.useMemo(()=>Be({path:De(e,"auth/user"),method:"GET"}),[e]),{data:a,loading:o,refetch:s,error:l}=Xr(n,{autoInvoke:t,initialLoading:r,...i});return{user:a,loading:o,refetch:s,error:l}}function To({path:e,queryParams:t,autoInvoke:r=!0,clearDataOnRefetch:n=!1}){const{fetchPath:i,options:a}=_.useMemo(()=>Be({path:De(e,"/"),method:"GET",queryParams:t}),[e,t]),{data:o,loading:s,refetch:l,error:u}=Xr(i,{autoInvoke:r,clearDataOnRefetch:n,...a});return{data:_.useMemo(()=>{if(!o)return null;const c=o.result.map((p,v)=>{const m=o.ids[v];return typeof m=="object"?{...p,...m}:{...p,id:m}});return{...o,result:c}},[o]),loading:s,refetch:l,error:u}}const Df=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:De(e,"/"),method:"POST",body:t}),i=await fetch(r,n);let a=null;try{a=await i.json()}catch{a=await i.text()}if(!i.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},$f=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:De(e,t.toString()),method:"DELETE"}),i=await fetch(r,n);let a=null;try{a=await i.json()}catch{a=await i.text()}if(!i.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Mf=async(e,t)=>{const{fetchPath:r,options:n}=Be({path:De(e,t.toString()),method:"GET"}),i=await fetch(r,n);let a=null;try{a=await i.json()}catch{a=await i.text()}if(!i.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Rf=async(e,t,r)=>{const{fetchPath:n,options:i}=Be({path:De(e,t.toString()),method:"PUT",body:r}),a=await fetch(n,i);let o=null;try{o=await a.json()}catch{o=await a.text()}if(!a.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},Fe=e=>e&&typeof e=="object"?JSON.stringify(e):e;function Jr(e,t){const r=e||{columns:[],filters:[],page:0,page_size:25};return t.hasOwnProperty("columns")&&(r.columns=t.columns),t.hasOwnProperty("filters")&&(r.filters=t.filters),t.hasOwnProperty("order_column")&&(r.order_column=t.order_column),t.hasOwnProperty("order_direction")&&(r.order_direction=t.order_direction),t.hasOwnProperty("page")&&(r.page=t.page),t.hasOwnProperty("page_size")&&(r.page_size=t.page_size),r}const _o=e=>{const t={};for(const r of e)switch(r.type){case"RelatedList":t[r.name]=[];break;case"Boolean":t[r.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[r.name]=void 0;break;default:t[r.name]=""}return t};function Lt(e){this._maxSize=e,this.clear()}Lt.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Lt.prototype.get=function(e){return this._values[e]},Lt.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Nf=/[^.^\]^[]+|(?=\[\]|\.\.)/g,So=/^\d+$/,Ff=/^\d/,Lf=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,zf=/^\s*(['"]?)(.*?)(\1)\s*$/,xi=512,Eo=new Lt(xi),Co=new Lt(xi),wo=new Lt(xi),zt={Cache:Lt,split:_i,normalizePath:Ti,setter:function(e){var t=Ti(e);return Co.get(e)||Co.set(e,function(n,i){for(var a=0,o=t.length,s=n;a<o-1;){var l=t[a];if(l==="__proto__"||l==="constructor"||l==="prototype")return n;s=s[t[a++]]}s[t[a]]=i})},getter:function(e,t){var r=Ti(e);return wo.get(e)||wo.set(e,function(i){for(var a=0,o=r.length;a<o;)if(i!=null||!t)i=i[r[a++]];else return;return i})},join:function(e){return e.reduce(function(t,r){return t+(Si(r)||So.test(r)?"["+r+"]":(t?".":"")+r)},"")},forEach:function(e,t,r){Bf(Array.isArray(e)?e:_i(e),t,r)}};function Ti(e){return Eo.get(e)||Eo.set(e,_i(e).map(function(t){return t.replace(zf,"$2")}))}function _i(e){return e.match(Nf)||[""]}function Bf(e,t,r){var n=e.length,i,a,o,s;for(a=0;a<n;a++)i=e[a],i&&(Wf(i)&&(i='"'+i+'"'),s=Si(i),o=!s&&/^\d+$/.test(i),t.call(r,i,s,o,a,e))}function Si(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Uf(e){return e.match(Ff)&&!e.match(So)}function Vf(e){return Lf.test(e)}function Wf(e){return!Si(e)&&(Uf(e)||Vf(e))}const Hf=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Zr=e=>e.match(Hf)||[],Qr=e=>e[0].toUpperCase()+e.slice(1),Ei=(e,t)=>Zr(e).join(t).toLowerCase(),Ao=e=>Zr(e).reduce((t,r)=>`${t}${t?r[0].toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()}`,"");var Ci={words:Zr,upperFirst:Qr,camelCase:Ao,pascalCase:e=>Qr(Ao(e)),snakeCase:e=>Ei(e,"_"),kebabCase:e=>Ei(e,"-"),sentenceCase:e=>Qr(Ei(e," ")),titleCase:e=>Zr(e).map(Qr).join(" ")},wi={exports:{}};wi.exports=function(e){return Oo(Gf(e),e)},wi.exports.array=Oo;function Oo(e,t){var r=e.length,n=new Array(r),i={},a=r,o=Yf(t),s=qf(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)i[a]||l(e[a],a,new Set);return n;function l(u,f,c){if(c.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[f]){i[f]=!0;var v=o.get(u)||new Set;if(v=Array.from(v),f=v.length){c.add(u);do{var m=v[--f];l(m,s.get(m),c)}while(f);c.delete(u)}n[--r]=u}}}function Gf(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var i=e[r];t.add(i[0]),t.add(i[1])}return Array.from(t)}function Yf(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var i=e[r];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function qf(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}var Kf=wi.exports;const Xf=yt(Kf),Jf=Object.prototype.toString,Zf=Error.prototype.toString,Qf=RegExp.prototype.toString,ed=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",td=/^Symbol\((.*)\)(.*)$/;function rd(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ko(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const r=typeof e;if(r==="number")return rd(e);if(r==="string")return t?`"${e}"`:e;if(r==="function")return"[Function "+(e.name||"anonymous")+"]";if(r==="symbol")return ed.call(e).replace(td,"Symbol($1)");const n=Jf.call(e).slice(8,-1);return n==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):n==="Error"||e instanceof Error?"["+Zf.call(e)+"]":n==="RegExp"?Qf.call(e):null}function dt(e,t){let r=ko(e,t);return r!==null?r:JSON.stringify(e,function(n,i){let a=ko(this[n],t);return a!==null?a:i},2)}function Po(e){return e==null?[]:[].concat(e)}let jo,Io,Do,nd=/\$\{\s*(\w+)\s*\}/g;jo=Symbol.toStringTag;class $o{constructor(t,r,n,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[jo]="Error",this.name="ValidationError",this.value=r,this.path=n,this.type=i,this.errors=[],this.inner=[],Po(t).forEach(a=>{if(Le.isError(a)){this.errors.push(...a.errors);const o=a.inner.length?a.inner:[a];this.inner.push(...o)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Io=Symbol.hasInstance,Do=Symbol.toStringTag;class Le extends Error{static formatError(t,r){const n=r.label||r.path||"this";return n!==r.path&&(r=Object.assign({},r,{path:n})),typeof t=="string"?t.replace(nd,(i,a)=>dt(r[a])):typeof t=="function"?t(r):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,r,n,i,a){const o=new $o(t,r,n,i);if(a)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Do]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Le)}static[Io](t){return $o[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let pt={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{const i=n!=null&&n!==r?` (cast from the value \`${dt(n,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${dt(r,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${dt(r,!0)}\``+i}},qe={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ot={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ai={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Oi={isValue:"${path} field must be ${value}"},ki={noUnknown:"${path} field has unspecified keys: ${unknown}"},en={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Mo={notType:e=>{const{path:t,value:r,spec:n}=e,i=n.types.length;if(Array.isArray(r)){if(r.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${r.length} for value: \`${dt(r,!0)}\``;if(r.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${r.length} for value: \`${dt(r,!0)}\``}return Le.formatError(pt.notType,e)}};var Ro=Object.assign(Object.create(null),{mixed:pt,string:qe,number:Ot,date:Ai,object:ki,array:en,boolean:Oi,tuple:Mo});const Bt=e=>e&&e.__isYupSchema__;class tn{static fromOptions(t,r){if(!r.then&&!r.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:i,otherwise:a}=r,o=typeof n=="function"?n:(...s)=>s.every(l=>l===n);return new tn(t,(s,l)=>{var u;let f=o(...s)?i:a;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(t,r){this.fn=void 0,this.refs=t,this.refs=t,this.fn=r}resolve(t,r){let n=this.refs.map(a=>a.getValue(r==null?void 0:r.value,r==null?void 0:r.parent,r==null?void 0:r.context)),i=this.fn(n,t,r);if(i===void 0||i===t)return t;if(!Bt(i))throw new TypeError("conditions must return a schema object");return i.resolve(r)}}const rn={context:"$",value:"."};function id(e,t){return new kt(e,t)}class kt{constructor(t,r={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===rn.context,this.isValue=this.key[0]===rn.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?rn.context:this.isValue?rn.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&zt.getter(this.path,!0),this.map=r.map}getValue(t,r,n){let i=this.isContext?n:this.isValue?t:r;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,r){return this.getValue(t,r==null?void 0:r.parent,r==null?void 0:r.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}kt.prototype.__isYupRef=!0;const st=e=>e==null;function Jt(e){function t({value:r,path:n="",options:i,originalValue:a,schema:o},s,l){const{name:u,test:f,params:c,message:p,skipAbsent:v}=e;let{parent:m,context:y,abortEarly:T=o.spec.abortEarly,disableStackTrace:j=o.spec.disableStackTrace}=i;function R(L){return kt.isRef(L)?L.getValue(r,m,y):L}function A(L={}){const V=Object.assign({value:r,originalValue:a,label:o.spec.label,path:L.path||n,spec:o.spec,disableStackTrace:L.disableStackTrace||j},c,L.params);for(const le of Object.keys(V))V[le]=R(V[le]);const re=new Le(Le.formatError(L.message||p,V),r,V.path,L.type||u,V.disableStackTrace);return re.params=V,re}const N=T?s:l;let S={path:n,parent:m,type:u,from:i.from,createError:A,resolve:R,options:i,originalValue:a,schema:o};const D=L=>{Le.isError(L)?N(L):L?l(null):N(A())},G=L=>{Le.isError(L)?N(L):s(L)};if(v&&st(r))return D(!0);let h;try{var F;if(h=f.call(S,r,S),typeof((F=h)==null?void 0:F.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${S.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(h).then(D,G)}}catch(L){G(L);return}D(h)}return t.OPTIONS=e,t}function Pi(e,t,r,n=r){let i,a,o;return t?(zt.forEach(t,(s,l,u)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:n,parent:i,value:r});let c=e.type==="tuple",p=u?parseInt(f,10):0;if(e.innerType||c){if(c&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(r&&p>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=r,r=r&&r[p],e=c?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=r,r=r&&r[f],e=e.fields[f]}a=f,o=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:a}):{parent:i,parentPath:t,schema:e}}function ad(e,t,r,n){return Pi(e,t,r,n).schema}class nn extends Set{describe(){const t=[];for(const r of this.values())t.push(kt.isRef(r)?r.describe():r);return t}resolveAll(t){let r=[];for(const n of this.values())r.push(t(n));return r}clone(){return new nn(this.values())}merge(t,r){const n=this.clone();return t.forEach(i=>n.add(i)),r.forEach(i=>n.delete(i)),n}}function Zt(e,t=new Map){if(Bt(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let r;if(e instanceof Date)r=new Date(e.getTime()),t.set(e,r);else if(e instanceof RegExp)r=new RegExp(e),t.set(e,r);else if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=Zt(e[n],t)}else if(e instanceof Map){r=new Map,t.set(e,r);for(const[n,i]of e.entries())r.set(n,Zt(i,t))}else if(e instanceof Set){r=new Set,t.set(e,r);for(const n of e)r.add(Zt(n,t))}else if(e instanceof Object){r={},t.set(e,r);for(const[n,i]of Object.entries(e))r[n]=Zt(i,t)}else throw Error(`Unable to clone ${e}`);return r}class ze{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new nn,this._blacklist=new nn,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(pt.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(r=>{r.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const r=Object.create(Object.getPrototypeOf(this));return r.type=this.type,r._typeCheck=this._typeCheck,r._whitelist=this._whitelist.clone(),r._blacklist=this._blacklist.clone(),r.internalTests=Object.assign({},this.internalTests),r.exclusiveTests=Object.assign({},this.exclusiveTests),r.deps=[...this.deps],r.conditions=[...this.conditions],r.tests=[...this.tests],r.transforms=[...this.transforms],r.spec=Zt(Object.assign({},this.spec,t)),r}label(t){let r=this.clone();return r.spec.label=t,r}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}withMutation(t){let r=this._mutate;this._mutate=!0;let n=t(this);return this._mutate=r,n}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let r=this,n=t.clone();const i=Object.assign({},r.spec,n.spec);return n.spec=i,n.internalTests=Object.assign({},r.internalTests,n.internalTests),n._whitelist=r._whitelist.merge(t._whitelist,t._blacklist),n._blacklist=r._blacklist.merge(t._blacklist,t._whitelist),n.tests=r.tests,n.exclusiveTests=r.exclusiveTests,n.withMutation(a=>{t.tests.forEach(o=>{a.test(o.OPTIONS)})}),n.transforms=[...r.transforms,...n.transforms],n}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let r=this;if(r.conditions.length){let n=r.conditions;r=r.clone(),r.conditions=[],r=n.reduce((i,a)=>a.resolve(i,t),r),r=r.resolve(t)}return r}resolveOptions(t){var r,n,i,a;return Object.assign({},t,{from:t.from||[],strict:(r=t.strict)!=null?r:this.spec.strict,abortEarly:(n=t.abortEarly)!=null?n:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,r={}){let n=this.resolve(Object.assign({value:t},r)),i=r.assert==="ignore-optionality",a=n._cast(t,r);if(r.assert!==!1&&!n.isType(a)){if(i&&st(a))return a;let o=dt(t),s=dt(a);throw new TypeError(`The value of ${r.path||"field"} could not be cast to a value that satisfies the schema type: "${n.type}".
|
|
31
31
|
|
|
32
32
|
attempted value: ${o}
|
|
33
|
-
`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:a,originalValue:o=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:a,value:l,originalValue:o,options:r,tests:u},n,f=>{if(f.length)return i(f,l);this.runTests({path:a,value:l,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:u}=t,f=y=>{i||(i=!0,r(y,o))},c=y=>{i||(i=!0,n(y,o))},p=a.length,v=[];if(!p)return c([]);let m={value:o,originalValue:s,path:l,options:u,schema:this};for(let y=0;y<a.length;y++){const T=a[y];T(m,f,function(R){R&&(Array.isArray(R)?v.push(...R):v.push(R)),--p<=0&&c(v)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:a,options:o}){const s=t??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const f=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(c,p,v)=>this.resolve(f)._validate(u,f,p,v)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,s)=>i._validate(t,r,(l,u)=>{Le.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new Le(l,u,void 0,void 0,a)):o(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw Le.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Le(s,t,void 0,void 0,o);a=l}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Le.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Le.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Zt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Jt({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Jt({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=pt.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=pt.notNull){return this.nullability(!1,t)}required(t=pt.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=pt.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=Jt(r),a=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=Po(t).map(a=>new kt(a));return i.forEach(a=>{a.isSibling&&n.deps.push(a.key)}),n.conditions.push(typeof r=="function"?new tn(i,r):tn.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Jt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=pt.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=Jt({message:r,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),n}notOneOf(t,r=pt.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=Jt({message:r,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:a,nullable:o}=r.spec;return{meta:i,label:n,optional:a,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(c=>c.name===l.name)===u)}}}ze.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ze.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:a,schema:o}=Pi(this,t,r,n.context);return o[e](i&&i[a],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])ze.prototype[e]=ze.prototype.oneOf;for(const e of["not","nope"])ze.prototype[e]=ze.prototype.notOneOf;const od=()=>!0;function an(e){return new ji(e)}class ji extends ze{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:od},t))}}an.prototype=ji.prototype;function Ii(){return new Di}class Di extends ze{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Oi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return st(r)||r===!0}})}isFalse(t=Oi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return st(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Ii.prototype=Di.prototype;const sd=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ld(e){const t=$i(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $i(e){var t,r;const n=sd.exec(e);return n?{year:vt(n[1]),month:vt(n[2],1)-1,day:vt(n[3],1),hour:vt(n[4]),minute:vt(n[5]),second:vt(n[6]),millisecond:n[7]?vt(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:vt(n[10]),minuteOffset:vt(n[11])}:null}function vt(e,t=0){return Number(e)||t}let ud=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cd=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dd="^\\d{4}-\\d{2}-\\d{2}",pd="\\d{2}:\\d{2}:\\d{2}",hd="(([+-]\\d{2}(:?\\d{2})?)|Z)",md=new RegExp(`${dd}T${pd}(\\.\\d+)?${hd}$`),gd=e=>st(e)||e===e.trim(),yd={}.toString();function on(){return new Mi}class Mi extends ze{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===yd?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||pt.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=qe.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=qe.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=qe.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,a;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:a}=r:i=r),this.test({name:a||"matches",message:i||qe.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=qe.email){return this.matches(ud,{name:"email",message:t,excludeEmptyString:!0})}url(t=qe.url){return this.matches(cd,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=qe.uuid){return this.matches(fd,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,i;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=t:r=t),this.matches(md,{name:"datetime",message:r||qe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||qe.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:a=>{if(!a||n)return!0;const o=$i(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||qe.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=$i(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=qe.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:gd})}lowercase(t=qe.lowercase){return this.transform(r=>st(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>st(r)||r===r.toLowerCase()})}uppercase(t=qe.uppercase){return this.transform(r=>st(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>st(r)||r===r.toUpperCase()})}}on.prototype=Mi.prototype;let vd=e=>e!=+e;function No(){return new Ri}class Ri extends ze{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!vd(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=Ot.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Ot.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Ot.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=Ot.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=Ot.positive){return this.moreThan(0,t)}negative(t=Ot.negative){return this.lessThan(0,t)}integer(t=Ot.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>st(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>st(i)?i:Math[t](i))}}No.prototype=Ri.prototype;let Fo=new Date(""),bd=e=>Object.prototype.toString.call(e)==="[object Date]";function Ni(){return new Qt}class Qt extends ze{constructor(){super({type:"date",check(t){return bd(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=ld(t),isNaN(t)?Qt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(kt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Ai.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Ai.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}Qt.INVALID_DATE=Fo,Ni.prototype=Qt.prototype,Ni.INVALID_DATE=Fo;function xd(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=zt.split(o)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const o of Object.keys(e)){let s=e[o];n.add(o),kt.isRef(s)&&s.isSibling?a(s.path,o):Bt(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return Xf.array(Array.from(n),r).reverse()}function Lo(e,t){let r=1/0;return e.some((n,i)=>{var a;if((a=t.path)!=null&&a.includes(n))return r=i,!0}),r}function zo(e){return(t,r)=>Lo(e,t)-Lo(e,r)}const Bo=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function sn(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=sn(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=sn(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(sn)}):"optional"in e?e.optional():e}const Td=(e,t)=>{const r=[...zt.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=zt.getter(zt.join(r),!0)(e);return!!(i&&n in i)};let Uo=e=>Object.prototype.toString.call(e)==="[object Object]";function _d(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Sd=zo([]);function Sr(e){return new Fi(e)}class Fi extends ze{constructor(t){super({type:"object",check(r){return Uo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Sd,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let a=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(c=>!this._nodes.includes(c))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const c of s){let p=a[c],v=c in i;if(p){let m,y=i[c];u.path=(r.path?`${r.path}.`:"")+c,p=p.resolve({value:y,context:r.context,parent:l});let T=p instanceof ze?p.spec:void 0,j=T==null?void 0:T.strict;if(T!=null&&T.strip){f=f||c in i;continue}m=!r.__validating||!j?p.cast(i[c],u):i[c],m!==void 0&&(l[c]=m)}else v&&!o&&(l[c]=i[c]);(v!==c in l||l[c]!==i[c])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:o},...a],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(l,u)=>{if(!s||!Uo(u)){i(l,u);return}o=o||u;let f=[];for(let c of this._nodes){let p=this.fields[c];!p||kt.isRef(p)||f.push(p.asNestedTest({options:r,key:c,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:f,value:u,originalValue:o,options:r},n,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,a]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?a:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const a=this.fields[n];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xd(t,r),n._sortErrors=zo(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return sn(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=zt.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return Td(a,t)&&(o=Object.assign({},a),n||delete o[t],o[r]=i(a)),o})}json(){return this.transform(Bo)}noUnknown(t=!0,r=ki.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const a=_d(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=ki.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(Ci.camelCase)}snakeCase(){return this.transformKeys(Ci.snakeCase)}constantCase(){return this.transformKeys(t=>Ci.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[a,o]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),n.fields[a]=o.describe(s)}return n}}Sr.prototype=Fi.prototype;function Li(e){return new zi(e)}class zi extends ze{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const a=n.map((o,s)=>{const l=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==o&&(i=!0),l});return i?a:n}_validate(t,r={},n,i){var a;let o=this.innerType,s=(a=r.recursive)!=null?a:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,u)=>{var f;if(!s||!o||!this._typeCheck(u)){i(l,u);return}let c=new Array(u.length);for(let v=0;v<u.length;v++){var p;c[v]=o.asNestedTest({options:r,index:v,parent:u,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:u,tests:c,originalValue:(f=r.originalValue)!=null?f:t,options:r},n,v=>i(v.concat(l),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Bo)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Bt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+dt(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=en.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||en.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||en.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,a)=>!t(n,i,a):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),n.innerType=r.innerType.describe(a)}return n}}Li.prototype=zi.prototype;function Vo(e){return new Bi(e)}class Bi extends ze{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(Mo.notType)})}_cast(t,r){const{types:n}=this.spec,i=super._cast(t,r);if(!this._typeCheck(i))return i;let a=!1;const o=n.map((s,l)=>{const u=s.cast(i[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==i[l]&&(a=!0),u});return a?o:i}_validate(t,r={},n,i){let a=this.spec.types;super._validate(t,r,n,(o,s)=>{var l;if(!this._typeCheck(s)){i(o,s);return}let u=[];for(let[c,p]of a.entries()){var f;u[c]=p.asNestedTest({options:r,index:c,parent:s,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:t})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:t,options:r},n,c=>i(c.concat(o),s))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((i,a)=>{var o;let s=t;return(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),i.describe(s)}),n}}Vo.prototype=Bi.prototype;function Ed(e){return new Ui(e)}class Ui{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let i=this.builder(r,n);if(!Bt(i))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(i=i.optional()),i.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new Ui(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:i,options:a}=t,o=i[n??r];return this._resolve(o,Object.assign({},a,{value:o,parent:i})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function Cd(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{Ro[t][r]=e[t][r]})})}function wd(e,t,r){if(!e||!Bt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const Wo=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:zi,BooleanSchema:Di,DateSchema:Qt,MixedSchema:ji,NumberSchema:Ri,ObjectSchema:Fi,Schema:ze,StringSchema:Mi,TupleSchema:Bi,ValidationError:Le,addMethod:wd,array:Li,bool:Ii,boolean:Ii,date:Ni,defaultLocale:Ro,getIn:Pi,isSchema:Bt,lazy:Ed,mixed:an,number:No,object:Sr,printValue:dt,reach:ad,ref:id,setLocale:Cd,string:on,tuple:Vo},Symbol.toStringTag,{value:"Module"})),Ho=e=>{const t=e.reduce((r,n)=>{let{name:i,required:a,type:o}=n;switch(o){case"RelatedList":o="array";break;case"Related":o="object";break;case"Integer":case"Float":o="number";break;case"Geometry":case"Raw":o="mixed";break;default:o="string"}let s;try{a?s=Wo[o]().typeError(`Field must be of type ${o}`).required("Field is required"):s=Wo[o]().typeError(`Field must be of type ${o}`).nullable(!0)}catch(l){console.log(l)}return r[i]=s,r},{});return Sr().shape(t)};function Go({path:e,autoInvoke:t=!0,clearDataOnRefetch:r=!1}){const{fetchPath:n,options:i}=_.useMemo(()=>Be({path:De(e,"_info"),method:"GET"}),[e]),{data:a,loading:o,refetch:s,error:l}=Xr(n,{autoInvoke:t,clearDataOnRefetch:r,...i});return{info:_.useMemo(()=>a?{...a,add:{columns:a.add_columns,title:a.add_title,schema:Ho(a.add_columns),defaultValues:_o(a.add_columns)},edit:{columns:a.edit_columns,title:a.edit_title,schema:Ho(a.edit_columns),defaultValues:_o(a.edit_columns)}}:null,[a]),loading:o,refetch:s,error:l}}const Yo={user:null,loading:!0,error:null};function Ad(e,t){switch(t.type){case"initCall":return{...Yo,user:e.user};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Od(e){const[t,r]=_.useReducer(Ad,Yo),{user:n,refetch:i,loading:a}=xo({path:e});_.useEffect(()=>{r({type:"setLoading",payload:a})},[a]),_.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const o=_.useCallback(async({username:c,password:p})=>{r({type:"initCall"});try{const v=new FormData;v.append("username",c),v.append("password",p);const{fetchPath:m,options:y}=Be({path:De(e,"auth/login"),method:"POST"}),T=await fetch(m,{...y,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(v)});T.ok||(T.status===400?r({type:"setError",payload:"Username or password wrong."}):r({type:"setError",payload:"Couldn't sign in user"})),i()}catch(v){console.error("signin error",v),r({type:"setError",payload:"Failed to fetch"})}},[e,i]),s=_.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:c,options:p}=Be({path:De(e,"auth/logout"),method:"POST"});(await fetch(c,p)).ok||r({type:"setError",payload:"Couldn't sign out user"}),r({type:"setUser",payload:null})}catch(c){console.error("signout error",c),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),l=_.useCallback(async c=>{r({type:"initCall"});try{const{fetchPath:p,options:v}=Be({path:De(e,"auth/user"),method:"PUT",body:c});(await fetch(p,v)).ok||r({type:"setError",payload:"Couldn't update user data"}),i()}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,i]),u=_.useCallback(async c=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:v}=Be({path:De(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),m=await fetch(p,v);if(!m.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const y=await m.json(),{token:T}=y,{fetchPath:j,options:R}=Be({path:De(e,"auth/reset-password"),method:"POST",body:{token:T,password:c}});if(!(await fetch(j,R)).ok){r({type:"setError",payload:"Couldn't reset password"});return}i()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,i,n==null?void 0:n.email]),f=_.useCallback((c,p)=>{const v=De(e,"auth/login",c);if(p){const T=window.screenLeft+window.outerWidth/2-250,j=window.screenTop+window.outerHeight/2-500/2,R=window.open(v+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${j}, left=${T}`),A=window.setInterval(function(){R.closed!==!1&&(window.clearInterval(A),i())},200);return}window.location.href=De(e,"auth/login",c)},[e,i]);return{user:t.user,loading:t.loading,error:t.error,signin:o,signout:s,update:l,resetPassword:u,oauth_signin:f}}function kd(e,t){const{user:r}=t,[n,i]=_.useState(null),[a,o]=_.useState(!0),[s,l]=_.useState({error:"401 Not authorized",message:"User is not logged in."});_.useEffect(()=>{r&&u(e)},[r]);const u=async f=>{o(!0);try{const{fetchPath:c,options:p}=Be({path:De(f,"info/"),method:"GET"}),v=await fetch(c,p);if(v.ok){const m=await v.json();i(m)}else l({error:"404 Not Found",message:"Couldn't fetch info"})}catch{l({error:"Network error",message:"Failed to fetch"})}finally{o(!1)}};return{info:n,loading:a,error:s}}const Vi=_.createContext({auth:{user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null},info:{info:null,loading:!1,error:null}});function qo(){return _.useContext(Vi).auth}function Ko(){return _.useContext(Vi).info}function Pd(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},i=Od(r),a={baseUrl:r,...kd(r,i)};return d.jsx(Vi.Provider,{value:{auth:i,info:a},children:n})}const jd=async(e,t,r)=>{const{fetchPath:n,options:i}=Be({path:De(t,"/download"),method:"POST"}),a=await fetch(n,{...i,body:JSON.stringify(r)});let o=null;try{o=await a.blob()}catch{try{o=await a.json()}catch{o=await a.text()}}if(!a.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);const s=document.createElement("a"),l=URL.createObjectURL(o);s.href=l,s.download=e.toLowerCase()+".csv",s.click()};function Id({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0,clearInfoOnRefetch:i=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:o=!0,streaming:s=!1}){const[l,u]=_.useState(t?Jr(null,t):null),f=_.useMemo(()=>r?{...l,filters:[...l.filters,{col:r.foreign_key,opr:r.type,value:Fe(r.id)}]}:l,[r,l]),c=_.useCallback(Y=>u(te=>{if(!te)return Jr(null,Y);const ce=Jr({...te},Y);if(JSON.stringify(ce)===JSON.stringify(te))return te;if(s){if(Y.page&&Y.page!==te.page&&!Y.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(Y.page_size&&Y.page_size!==te.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead");(Y.filters||Y.order_column||Y.order_direction)&&(ce.page=0)}return ce}),[s]),[p,v]=_.useState(null),m=_.useMemo(()=>p,[p]),y=_.useCallback(()=>v(null),[]),{info:T,loading:j,refetch:R,error:A}=Go({path:e,autoInvoke:n,clearDataOnRefetch:i}),{data:N,loading:S,refetch:D,error:G}=To({path:e,queryParams:f,autoInvoke:!1,clearDataOnRefetch:a});_.useEffect(()=>{f&&D()},[D,f]),_.useEffect(()=>{if(A){v({message:"Couldn't fetch info",originalError:A});return}if(G){v({message:"Couldn't fetch list",originalError:G});return}y()},[A,G,y]);const se=_.useMemo(()=>j||S,[j,S]);At.useDidUpdate(()=>{o&&c(Jr(null,t||{}))},[e]);const h=_.useCallback(async Y=>{try{const te=await Mf(e,Fe(Y));return y(),te}catch(te){v({message:`Couldn't fetch item with id ${Y}`,originalError:te})}},[e,y]),F=_.useCallback(async(Y,te)=>{try{const ce=await Df(e,Y);return te||(R(),D()),y(),ce}catch(ce){v({message:"Couldn't add item",originalError:ce})}},[D,R,e,y]),L=_.useCallback(async(Y,te,ce)=>{try{const Ge=await Rf(e,Fe(Y),te);return ce||(R(),D()),y(),Ge}catch(Ge){v({message:`Couldn't update item with id ${Y}`,originalError:Ge})}},[D,R,e,y]),V=_.useCallback(async(Y,te)=>{try{const ce=await $f(e,Fe(Y));return te||(R(),D()),y(),ce}catch(ce){v({message:`Couldn't delete item with id ${Y}`,originalError:ce})}},[D,R,e,y]),re=_.useCallback(async Y=>{try{await jd(Y,e,f)}catch(te){v({message:"Couldn't download",originalError:te})}},[e,f]),[le,Te]=At.useSetState({data:{},isEnd:!1,fetch:()=>{throw new Error("Streaming mode not enabled, enable it by adding `streaming` prop to ApiProvider")}});return _.useEffect(()=>{s&&Te({fetch:()=>c({page:0,streaming:!0})})},[c,Te,s]),_.useEffect(()=>{s&&N&&Te(Y=>{let te=Object.keys(Y.data).length;const ce={isEnd:!1};return f.page<te?(te=f.page,ce.data={[f.page]:N.result}):ce.data={...Y.data,[f.page]:N.result},N.result.length<f.page_size?(ce.isEnd=!0,ce.fetch=()=>null):ce.fetch=()=>c({page:te+1,streaming:!0}),ce})},[N,c,Te,s]),{path:e,data:N,info:T,queryParams:f,loading:se,error:m,streaming:le,setQueryParams:c,refetch:D,refetchInfo:R,getEntry:h,addEntry:F,updateEntry:L,deleteEntry:V,download:re}}const Dd=async(e,t,r)=>{const{fetchPath:n,options:i}=Be({path:De(e,"/bulk",t),method:"POST",body:r}),a=await fetch(n,i);let o=null;try{o=await a.json()}catch{o=await a.text()}if(!a.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},$d=({Api:e})=>{const[t,r]=_.useState([]),[n,i]=_.useState(null),a=_.useCallback(async(s,l)=>{try{i(null);const u=await Dd(e.path,s,t);return l?void 0:(e.refetch(),u)}catch(u){console.error(u),i({message:"Couldn't perform bulk action",originalError:u})}},[e,t]);return{bulkActions:_.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:a,error:n}},Wi=_.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function $e(){const e=_.useContext(Wi);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Md(){const e=_.useContext(Wi);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function Xo({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:a,resetQueryParamsOnPathChange:o,children:s,streaming:l}){const{baseUrl:u}=Ko(),f=Id({path:De(u,e),initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:a,resetQueryParamsOnPathChange:o,streaming:l}),c=$d({path:De(u,e),Api:f});return d.jsx(Wi.Provider,{value:{Api:f,BulkActions:c},children:s})}function Hi(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Le&&r.inner.forEach(i=>{n[i.path.replaceAll("[",".").replaceAll("]","")]=i.message}),n}}}function Rd({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(Xt.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,i.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Nd({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(Xt.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n);e.setFieldValue(t,i.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}const Fd=/choices=\[([^\]]*)\]/;function Ld({form:e,name:t,items:r,...n}){const i=r[0].match(Fd)[1].replaceAll("'","").split(",").map(a=>(a=a.trim(),{label:a,value:a}));return d.jsx(b.Select,{data:i,searchable:!0,...e.getInputProps(t),...n,value:String(e.getInputProps(t).value)||""})}function ln({form:e,name:t,...r}){const n=e.getInputProps(t).value,i=_.useMemo(()=>n&&typeof n=="object"?JSON.stringify(n):n||"",[n]);return t==="password"?d.jsx(b.PasswordInput,{...e.getInputProps(t),value:i,...r}):d.jsx(b.TextInput,{...e.getInputProps(t),value:i,...r})}function Jo({form:e,name:t,filter:r,...n}){const[i,a]=_.useState(""),o=e.getInputProps(t).value,s=_.useMemo(()=>o?typeof o=="object"?JSON.stringify(o,null,2):o:"",[o]);return _.useEffect(()=>{a(s)},[s]),r?d.jsx(ln,{form:e,name:t,...n}):d.jsx(b.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...n,value:i,onChange:l=>{if(a(l),!l){e.getInputProps(t).onChange(null);return}try{const u=JSON.parse(l);e.getInputProps(t).onChange(u)}catch{}}})}function zd({form:e,name:t,filter:r,...n}){const[i,a]=_.useState(!!r);return d.jsxs(b.InputWrapper,{label:n.label,description:n.description,children:[!r&&d.jsxs(b.Group,{align:"center",gap:"xs",py:"0.25rem",children:[d.jsx(b.Checkbox,{checked:i,onChange:o=>a(o.currentTarget.checked)}),d.jsx(b.Text,{size:"xs",children:"WKT"})]}),i?d.jsx(ln,{form:e,name:t,...n,label:void 0,description:void 0}):d.jsx(Jo,{form:e,name:t,...n,label:void 0,description:void 0})]})}function Bd({form:e,name:t,items:r,...n}){const i=r.map(o=>({value:String(Fe(o.id)),label:o.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(o=>String(typeof o=="object"?Fe(o.id):o)):[];return d.jsx(b.MultiSelect,{data:i,searchable:!0,...e.getInputProps(t),value:a||[],...n})}function Ud({form:e,name:t,items:r,filter:n,...i}){var o;const a=r.map(s=>({value:String(Fe(s.id)),label:s.value}));return d.jsx(b.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:s=>{if(n){e.setFieldValue(t,s);return}const l=r.find(u=>String(Fe(u.id))===s)||null;e.setFieldValue(t,l)},value:n?e.getInputProps(t).value:String(Fe((o=e.getInputProps(t).value)==null?void 0:o.id))||"",...i})}function Zo({form:e,name:t,items:r,...n}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function Gi({form:e,name:t,schema:r,filter:n,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return d.jsx(Zo,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Bd,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(Ud,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(Nd,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(Rd,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Field":return d.jsx(Ld,{form:e,name:t,items:r.validate,...i});case"Geometry":return d.jsx(zd,{form:e,name:t,filter:n,...i});case"Raw":return d.jsx(Jo,{form:e,name:t,filter:n,...i});case"Integer":case"Float":return d.jsx(ln,{form:e,name:t,...i});case"Enum":return d.jsx(Zo,{form:e,name:t,items:r.values,...i});default:return d.jsx(ln,{form:e,name:t,...i})}}function Qo({opened:e,onClose:t,...r}){const{info:n,addEntry:i}=$e(),a={modal:{},stack:{},addButton:{}},{addButton:o,modal:s,stack:l}=b.useProps("AddDialog",a,r),u=vi.useForm({initialValues:n.add.defaultValues,validate:Hi(n.add.schema)}),f=async c=>{await i(c),u.reset(),t()};return _.useEffect(()=>{u.setInitialValues(n.add.defaultValues),u.reset()},[n.add.defaultValues]),d.jsx(b.Modal,{opened:e,onClose:()=>{u.reset(),t()},title:n.add.title,size:"lg",centered:!0,...s,children:d.jsx(b.Box,{component:"form",onSubmit:u.onSubmit(f),children:d.jsx(b.Stack,{spacing:"md",...l,children:d.jsxs(b.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((c,p)=>d.jsx(Gi,{form:u,name:c.name,label:c.label,description:c.description,schema:c,withAsterisk:c.required},p)),d.jsx(b.Group,{position:"right",mt:"xl",children:d.jsx(b.Button,{type:"submit",...o,children:"Add"})})]})})})})}/**
|
|
34
|
-
* @license @tabler/icons-react v3.
|
|
33
|
+
`+(s!==o?`result of cast: ${s}`:""))}return a}_cast(t,r){let n=t===void 0?t:this.transforms.reduce((i,a)=>a.call(this,i,t,this),t);return n===void 0&&(n=this.getDefault(r)),n}_validate(t,r={},n,i){let{path:a,originalValue:o=t,strict:s=this.spec.strict}=r,l=t;s||(l=this._cast(l,Object.assign({assert:!1},r)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:a,value:l,originalValue:o,options:r,tests:u},n,f=>{if(f.length)return i(f,l);this.runTests({path:a,value:l,originalValue:o,options:r,tests:this.tests},n,i)})}runTests(t,r,n){let i=!1,{tests:a,value:o,originalValue:s,path:l,options:u}=t,f=y=>{i||(i=!0,r(y,o))},c=y=>{i||(i=!0,n(y,o))},p=a.length,v=[];if(!p)return c([]);let m={value:o,originalValue:s,path:l,options:u,schema:this};for(let y=0;y<a.length;y++){const T=a[y];T(m,f,function(R){R&&(Array.isArray(R)?v.push(...R):v.push(R)),--p<=0&&c(v)})}}asNestedTest({key:t,index:r,parent:n,parentPath:i,originalParent:a,options:o}){const s=t??r;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=n[s];const f=Object.assign({},o,{strict:!0,parent:n,value:u,originalValue:a[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${l?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(c,p,v)=>this.resolve(f)._validate(u,f,p,v)}validate(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return new Promise((o,s)=>i._validate(t,r,(l,u)=>{Le.isError(l)&&(l.value=u),s(l)},(l,u)=>{l.length?s(new Le(l,u,void 0,void 0,a)):o(u)}))}validateSync(t,r){var n;let i=this.resolve(Object.assign({},r,{value:t})),a,o=(n=r==null?void 0:r.disableStackTrace)!=null?n:i.spec.disableStackTrace;return i._validate(t,Object.assign({},r,{sync:!0}),(s,l)=>{throw Le.isError(s)&&(s.value=l),s},(s,l)=>{if(s.length)throw new Le(s,t,void 0,void 0,o);a=l}),a}isValid(t,r){return this.validate(t,r).then(()=>!0,n=>{if(Le.isError(n))return!1;throw n})}isValidSync(t,r){try{return this.validateSync(t,r),!0}catch(n){if(Le.isError(n))return!1;throw n}}_getDefault(t){let r=this.spec.default;return r==null?r:typeof r=="function"?r.call(this,t):Zt(r)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,r){const n=this.clone({nullable:t});return n.internalTests.nullable=Jt({message:r,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),n}optionality(t,r){const n=this.clone({optional:t});return n.internalTests.optionality=Jt({message:r,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),n}optional(){return this.optionality(!0)}defined(t=pt.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=pt.notNull){return this.nullability(!1,t)}required(t=pt.required){return this.clone().withMutation(r=>r.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let r=this.clone();return r.transforms.push(t),r}test(...t){let r;if(t.length===1?typeof t[0]=="function"?r={test:t[0]}:r=t[0]:t.length===2?r={name:t[0],test:t[1]}:r={name:t[0],message:t[1],test:t[2]},r.message===void 0&&(r.message=pt.default),typeof r.test!="function")throw new TypeError("`test` is a required parameters");let n=this.clone(),i=Jt(r),a=r.exclusive||r.name&&n.exclusiveTests[r.name]===!0;if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return r.name&&(n.exclusiveTests[r.name]=!!r.exclusive),n.tests=n.tests.filter(o=>!(o.OPTIONS.name===r.name&&(a||o.OPTIONS.test===i.OPTIONS.test))),n.tests.push(i),n}when(t,r){!Array.isArray(t)&&typeof t!="string"&&(r=t,t=".");let n=this.clone(),i=Po(t).map(a=>new kt(a));return i.forEach(a=>{a.isSibling&&n.deps.push(a.key)}),n.conditions.push(typeof r=="function"?new tn(i,r):tn.fromOptions(i,r)),n}typeError(t){let r=this.clone();return r.internalTests.typeError=Jt({message:t,name:"typeError",skipAbsent:!0,test(n){return this.schema._typeCheck(n)?!0:this.createError({params:{type:this.schema.type}})}}),r}oneOf(t,r=pt.oneOf){let n=this.clone();return t.forEach(i=>{n._whitelist.add(i),n._blacklist.delete(i)}),n.internalTests.whiteList=Jt({message:r,name:"oneOf",skipAbsent:!0,test(i){let a=this.schema._whitelist,o=a.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:o}})}}),n}notOneOf(t,r=pt.notOneOf){let n=this.clone();return t.forEach(i=>{n._blacklist.add(i),n._whitelist.delete(i)}),n.internalTests.blacklist=Jt({message:r,name:"notOneOf",test(i){let a=this.schema._blacklist,o=a.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(a).join(", "),resolved:o}}):!0}}),n}strip(t=!0){let r=this.clone();return r.spec.strip=t,r}describe(t){const r=(t?this.resolve(t):this).clone(),{label:n,meta:i,optional:a,nullable:o}=r.spec;return{meta:i,label:n,optional:a,nullable:o,default:r.getDefault(t),type:r.type,oneOf:r._whitelist.describe(),notOneOf:r._blacklist.describe(),tests:r.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(c=>c.name===l.name)===u)}}}ze.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ze.prototype[`${e}At`]=function(t,r,n={}){const{parent:i,parentPath:a,schema:o}=Pi(this,t,r,n.context);return o[e](i&&i[a],Object.assign({},n,{parent:i,path:t}))};for(const e of["equals","is"])ze.prototype[e]=ze.prototype.oneOf;for(const e of["not","nope"])ze.prototype[e]=ze.prototype.notOneOf;const od=()=>!0;function an(e){return new ji(e)}class ji extends ze{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:od},t))}}an.prototype=ji.prototype;function Ii(){return new Di}class Di extends ze{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(n.spec.coerce&&!n.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=Oi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(r){return st(r)||r===!0}})}isFalse(t=Oi.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(r){return st(r)||r===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Ii.prototype=Di.prototype;const sd=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ld(e){const t=$i(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let r=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(r=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(r=0-r)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+r,t.second,t.millisecond)}function $i(e){var t,r;const n=sd.exec(e);return n?{year:vt(n[1]),month:vt(n[2],1)-1,day:vt(n[3],1),hour:vt(n[4]),minute:vt(n[5]),second:vt(n[6]),millisecond:n[7]?vt(n[7].substring(0,3)):0,precision:(t=(r=n[7])==null?void 0:r.length)!=null?t:void 0,z:n[8]||void 0,plusMinus:n[9]||void 0,hourOffset:vt(n[10]),minuteOffset:vt(n[11])}:null}function vt(e,t=0){return Number(e)||t}let ud=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cd=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,dd="^\\d{4}-\\d{2}-\\d{2}",pd="\\d{2}:\\d{2}:\\d{2}",hd="(([+-]\\d{2}(:?\\d{2})?)|Z)",md=new RegExp(`${dd}T${pd}(\\.\\d+)?${hd}$`),gd=e=>st(e)||e===e.trim(),yd={}.toString();function on(){return new Mi}class Mi extends ze{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce||n.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===yd?t:i})})}required(t){return super.required(t).withMutation(r=>r.test({message:t||pt.required,name:"required",skipAbsent:!0,test:n=>!!n.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(r=>r.OPTIONS.name!=="required"),t))}length(t,r=qe.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r=qe.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r=qe.max){return this.test({name:"max",exclusive:!0,message:r,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}matches(t,r){let n=!1,i,a;return r&&(typeof r=="object"?{excludeEmptyString:n=!1,message:i,name:a}=r:i=r),this.test({name:a||"matches",message:i||qe.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&n||o.search(t)!==-1})}email(t=qe.email){return this.matches(ud,{name:"email",message:t,excludeEmptyString:!0})}url(t=qe.url){return this.matches(cd,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=qe.uuid){return this.matches(fd,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let r="",n,i;return t&&(typeof t=="object"?{message:r="",allowOffset:n=!1,precision:i=void 0}=t:r=t),this.matches(md,{name:"datetime",message:r||qe.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||qe.datetime_offset,params:{allowOffset:n},skipAbsent:!0,test:a=>{if(!a||n)return!0;const o=$i(a);return o?!!o.z:!1}}).test({name:"datetime_precision",message:r||qe.datetime_precision,params:{precision:i},skipAbsent:!0,test:a=>{if(!a||i==null)return!0;const o=$i(a);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=qe.trim){return this.transform(r=>r!=null?r.trim():r).test({message:t,name:"trim",test:gd})}lowercase(t=qe.lowercase){return this.transform(r=>st(r)?r:r.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>st(r)||r===r.toLowerCase()})}uppercase(t=qe.uppercase){return this.transform(r=>st(r)?r:r.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:r=>st(r)||r===r.toUpperCase()})}}on.prototype=Mi.prototype;let vd=e=>e!=+e;function No(){return new Ri}class Ri extends ze{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!vd(t)}}),this.withMutation(()=>{this.transform((t,r,n)=>{if(!n.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return n.isType(i)||i===null?i:parseFloat(i)})})}min(t,r=Ot.min){return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n>=this.resolve(t)}})}max(t,r=Ot.max){return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n<=this.resolve(t)}})}lessThan(t,r=Ot.lessThan){return this.test({message:r,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(n){return n<this.resolve(t)}})}moreThan(t,r=Ot.moreThan){return this.test({message:r,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(n){return n>this.resolve(t)}})}positive(t=Ot.positive){return this.moreThan(0,t)}negative(t=Ot.negative){return this.lessThan(0,t)}integer(t=Ot.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:r=>Number.isInteger(r)})}truncate(){return this.transform(t=>st(t)?t:t|0)}round(t){var r;let n=["ceil","floor","round","trunc"];if(t=((r=t)==null?void 0:r.toLowerCase())||"round",t==="trunc")return this.truncate();if(n.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(i=>st(i)?i:Math[t](i))}}No.prototype=Ri.prototype;let Fo=new Date(""),bd=e=>Object.prototype.toString.call(e)==="[object Date]";function Ni(){return new Qt}class Qt extends ze{constructor(){super({type:"date",check(t){return bd(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,r,n)=>!n.spec.coerce||n.isType(t)||t===null?t:(t=ld(t),isNaN(t)?Qt.INVALID_DATE:new Date(t)))})}prepareParam(t,r){let n;if(kt.isRef(t))n=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${r}\` must be a Date or a value that can be \`cast()\` to a Date`);n=i}return n}min(t,r=Ai.min){let n=this.prepareParam(t,"min");return this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(n)}})}max(t,r=Ai.max){let n=this.prepareParam(t,"max");return this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(n)}})}}Qt.INVALID_DATE=Fo,Ni.prototype=Qt.prototype,Ni.INVALID_DATE=Fo;function xd(e,t=[]){let r=[],n=new Set,i=new Set(t.map(([o,s])=>`${o}-${s}`));function a(o,s){let l=zt.split(o)[0];n.add(l),i.has(`${s}-${l}`)||r.push([s,l])}for(const o of Object.keys(e)){let s=e[o];n.add(o),kt.isRef(s)&&s.isSibling?a(s.path,o):Bt(s)&&"deps"in s&&s.deps.forEach(l=>a(l,o))}return Xf.array(Array.from(n),r).reverse()}function Lo(e,t){let r=1/0;return e.some((n,i)=>{var a;if((a=t.path)!=null&&a.includes(n))return r=i,!0}),r}function zo(e){return(t,r)=>Lo(e,t)-Lo(e,r)}const Bo=(e,t,r)=>{if(typeof e!="string")return e;let n=e;try{n=JSON.parse(e)}catch{}return r.isType(n)?n:e};function sn(e){if("fields"in e){const t={};for(const[r,n]of Object.entries(e.fields))t[r]=sn(n);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=sn(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(sn)}):"optional"in e?e.optional():e}const Td=(e,t)=>{const r=[...zt.normalizePath(t)];if(r.length===1)return r[0]in e;let n=r.pop(),i=zt.getter(zt.join(r),!0)(e);return!!(i&&n in i)};let Uo=e=>Object.prototype.toString.call(e)==="[object Object]";function _d(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter(n=>r.indexOf(n)===-1)}const Sd=zo([]);function Sr(e){return new Fi(e)}class Fi extends ze{constructor(t){super({type:"object",check(r){return Uo(r)||typeof r=="function"}}),this.fields=Object.create(null),this._sortErrors=Sd,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,r={}){var n;let i=super._cast(t,r);if(i===void 0)return this.getDefault(r);if(!this._typeCheck(i))return i;let a=this.fields,o=(n=r.stripUnknown)!=null?n:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(c=>!this._nodes.includes(c))),l={},u=Object.assign({},r,{parent:l,__validating:r.__validating||!1}),f=!1;for(const c of s){let p=a[c],v=c in i;if(p){let m,y=i[c];u.path=(r.path?`${r.path}.`:"")+c,p=p.resolve({value:y,context:r.context,parent:l});let T=p instanceof ze?p.spec:void 0,j=T==null?void 0:T.strict;if(T!=null&&T.strip){f=f||c in i;continue}m=!r.__validating||!j?p.cast(i[c],u):i[c],m!==void 0&&(l[c]=m)}else v&&!o&&(l[c]=i[c]);(v!==c in l||l[c]!==i[c])&&(f=!0)}return f?l:i}_validate(t,r={},n,i){let{from:a=[],originalValue:o=t,recursive:s=this.spec.recursive}=r;r.from=[{schema:this,value:o},...a],r.__validating=!0,r.originalValue=o,super._validate(t,r,n,(l,u)=>{if(!s||!Uo(u)){i(l,u);return}o=o||u;let f=[];for(let c of this._nodes){let p=this.fields[c];!p||kt.isRef(p)||f.push(p.asNestedTest({options:r,key:c,parent:u,parentPath:r.path,originalParent:o}))}this.runTests({tests:f,value:u,originalValue:o,options:r},n,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}clone(t){const r=super.clone(t);return r.fields=Object.assign({},this.fields),r._nodes=this._nodes,r._excludedEdges=this._excludedEdges,r._sortErrors=this._sortErrors,r}concat(t){let r=super.concat(t),n=r.fields;for(let[i,a]of Object.entries(this.fields)){const o=n[i];n[i]=o===void 0?a:o}return r.withMutation(i=>i.setFields(n,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let r={};return this._nodes.forEach(n=>{var i;const a=this.fields[n];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),r[n]=a&&"getDefault"in a?a.getDefault(o):void 0}),r}setFields(t,r){let n=this.clone();return n.fields=t,n._nodes=xd(t,r),n._sortErrors=zo(Object.keys(t)),r&&(n._excludedEdges=r),n}shape(t,r=[]){return this.clone().withMutation(n=>{let i=n._excludedEdges;return r.length&&(Array.isArray(r[0])||(r=[r]),i=[...n._excludedEdges,...r]),n.setFields(Object.assign(n.fields,t),i)})}partial(){const t={};for(const[r,n]of Object.entries(this.fields))t[r]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(t)}deepPartial(){return sn(this)}pick(t){const r={};for(const n of t)this.fields[n]&&(r[n]=this.fields[n]);return this.setFields(r,this._excludedEdges.filter(([n,i])=>t.includes(n)&&t.includes(i)))}omit(t){const r=[];for(const n of Object.keys(this.fields))t.includes(n)||r.push(n);return this.pick(r)}from(t,r,n){let i=zt.getter(t,!0);return this.transform(a=>{if(!a)return a;let o=a;return Td(a,t)&&(o=Object.assign({},a),n||delete o[t],o[r]=i(a)),o})}json(){return this.transform(Bo)}noUnknown(t=!0,r=ki.noUnknown){typeof t!="boolean"&&(r=t,t=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:r,test(i){if(i==null)return!0;const a=_d(this.schema,i);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return n.spec.noUnknown=t,n}unknown(t=!0,r=ki.noUnknown){return this.noUnknown(!t,r)}transformKeys(t){return this.transform(r=>{if(!r)return r;const n={};for(const i of Object.keys(r))n[t(i)]=r[i];return n})}camelCase(){return this.transformKeys(Ci.camelCase)}snakeCase(){return this.transformKeys(Ci.snakeCase)}constantCase(){return this.transformKeys(t=>Ci.snakeCase(t).toUpperCase())}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);n.fields={};for(const[a,o]of Object.entries(r.fields)){var i;let s=t;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),n.fields[a]=o.describe(s)}return n}}Sr.prototype=Fi.prototype;function Li(e){return new zi(e)}class zi extends ze{constructor(t){super({type:"array",spec:{types:t},check(r){return Array.isArray(r)}}),this.innerType=void 0,this.innerType=t}_cast(t,r){const n=super._cast(t,r);if(!this._typeCheck(n)||!this.innerType)return n;let i=!1;const a=n.map((o,s)=>{const l=this.innerType.cast(o,Object.assign({},r,{path:`${r.path||""}[${s}]`}));return l!==o&&(i=!0),l});return i?a:n}_validate(t,r={},n,i){var a;let o=this.innerType,s=(a=r.recursive)!=null?a:this.spec.recursive;r.originalValue!=null&&r.originalValue,super._validate(t,r,n,(l,u)=>{var f;if(!s||!o||!this._typeCheck(u)){i(l,u);return}let c=new Array(u.length);for(let v=0;v<u.length;v++){var p;c[v]=o.asNestedTest({options:r,index:v,parent:u,parentPath:r.path,originalParent:(p=r.originalValue)!=null?p:t})}this.runTests({value:u,tests:c,originalValue:(f=r.originalValue)!=null?f:t,options:r},n,v=>i(v.concat(l),u))})}clone(t){const r=super.clone(t);return r.innerType=this.innerType,r}json(){return this.transform(Bo)}concat(t){let r=super.concat(t);return r.innerType=this.innerType,t.innerType&&(r.innerType=r.innerType?r.innerType.concat(t.innerType):t.innerType),r}of(t){let r=this.clone();if(!Bt(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+dt(t));return r.innerType=t,r.spec=Object.assign({},r.spec,{types:t}),r}length(t,r=en.length){return this.test({message:r,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(n){return n.length===this.resolve(t)}})}min(t,r){return r=r||en.min,this.test({message:r,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(n){return n.length>=this.resolve(t)}})}max(t,r){return r=r||en.max,this.test({message:r,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(n){return n.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,r)=>this._typeCheck(t)?t:r==null?[]:[].concat(r))}compact(t){let r=t?(n,i,a)=>!t(n,i,a):n=>!!n;return this.transform(n=>n!=null?n.filter(r):n)}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);if(r.innerType){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),n.innerType=r.innerType.describe(a)}return n}}Li.prototype=zi.prototype;function Vo(e){return new Bi(e)}class Bi extends ze{constructor(t){super({type:"tuple",spec:{types:t},check(r){const n=this.spec.types;return Array.isArray(r)&&r.length===n.length}}),this.withMutation(()=>{this.typeError(Mo.notType)})}_cast(t,r){const{types:n}=this.spec,i=super._cast(t,r);if(!this._typeCheck(i))return i;let a=!1;const o=n.map((s,l)=>{const u=s.cast(i[l],Object.assign({},r,{path:`${r.path||""}[${l}]`}));return u!==i[l]&&(a=!0),u});return a?o:i}_validate(t,r={},n,i){let a=this.spec.types;super._validate(t,r,n,(o,s)=>{var l;if(!this._typeCheck(s)){i(o,s);return}let u=[];for(let[c,p]of a.entries()){var f;u[c]=p.asNestedTest({options:r,index:c,parent:s,parentPath:r.path,originalParent:(f=r.originalValue)!=null?f:t})}this.runTests({value:s,tests:u,originalValue:(l=r.originalValue)!=null?l:t,options:r},n,c=>i(c.concat(o),s))})}describe(t){const r=(t?this.resolve(t):this).clone(),n=super.describe(t);return n.innerType=r.spec.types.map((i,a)=>{var o;let s=t;return(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[a]})),i.describe(s)}),n}}Vo.prototype=Bi.prototype;function Ed(e){return new Ui(e)}class Ui{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(r,n={})=>{let i=this.builder(r,n);if(!Bt(i))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(i=i.optional()),i.resolve(n)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const r=new Ui(this.builder);return r.spec=Object.assign({},this.spec,t),r}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,r){return this._resolve(t,r).cast(t,r)}asNestedTest(t){let{key:r,index:n,parent:i,options:a}=t,o=i[n??r];return this._resolve(o,Object.assign({},a,{value:o,parent:i})).asNestedTest(t)}validate(t,r){return this._resolve(t,r).validate(t,r)}validateSync(t,r){return this._resolve(t,r).validateSync(t,r)}validateAt(t,r,n){return this._resolve(r,n).validateAt(t,r,n)}validateSyncAt(t,r,n){return this._resolve(r,n).validateSyncAt(t,r,n)}isValid(t,r){return this._resolve(t,r).isValid(t,r)}isValidSync(t,r){return this._resolve(t,r).isValidSync(t,r)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let r=this.clone();return r.spec.meta=Object.assign(r.spec.meta||{},t[0]),r}}function Cd(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(r=>{Ro[t][r]=e[t][r]})})}function wd(e,t,r){if(!e||!Bt(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof r!="function")throw new TypeError("Method function must be provided");e.prototype[t]=r}const Wo=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:zi,BooleanSchema:Di,DateSchema:Qt,MixedSchema:ji,NumberSchema:Ri,ObjectSchema:Fi,Schema:ze,StringSchema:Mi,TupleSchema:Bi,ValidationError:Le,addMethod:wd,array:Li,bool:Ii,boolean:Ii,date:Ni,defaultLocale:Ro,getIn:Pi,isSchema:Bt,lazy:Ed,mixed:an,number:No,object:Sr,printValue:dt,reach:ad,ref:id,setLocale:Cd,string:on,tuple:Vo},Symbol.toStringTag,{value:"Module"})),Ho=e=>{const t=e.reduce((r,n)=>{let{name:i,required:a,type:o}=n;switch(o){case"RelatedList":o="array";break;case"Related":o="object";break;case"Integer":case"Float":o="number";break;case"Geometry":case"Raw":o="mixed";break;default:o="string"}let s;try{a?s=Wo[o]().typeError(`Field must be of type ${o}`).required("Field is required"):s=Wo[o]().typeError(`Field must be of type ${o}`).nullable(!0)}catch(l){console.log(l)}return r[i]=s,r},{});return Sr().shape(t)};function Go({path:e,autoInvoke:t=!0,clearDataOnRefetch:r=!1}){const{fetchPath:n,options:i}=_.useMemo(()=>Be({path:De(e,"_info"),method:"GET"}),[e]),{data:a,loading:o,refetch:s,error:l}=Xr(n,{autoInvoke:t,clearDataOnRefetch:r,...i});return{info:_.useMemo(()=>a?{...a,add:{columns:a.add_columns,title:a.add_title,schema:Ho(a.add_columns),defaultValues:_o(a.add_columns)},edit:{columns:a.edit_columns,title:a.edit_title,schema:Ho(a.edit_columns),defaultValues:_o(a.edit_columns)}}:null,[a]),loading:o,refetch:s,error:l}}const Yo={user:null,loading:!0,error:null};function Ad(e,t){switch(t.type){case"initCall":return{...Yo,user:e.user};case"setUser":return{...e,user:t.payload,error:null};case"setError":return{...e,loading:!1,error:t.payload};case"setLoading":return{...e,loading:t.payload};default:return e}}function Od(e){const[t,r]=_.useReducer(Ad,Yo),{user:n,refetch:i,loading:a}=xo({path:e});_.useEffect(()=>{r({type:"setLoading",payload:a})},[a]),_.useEffect(()=>{r({type:"setUser",payload:n})},[n]);const o=_.useCallback(async({username:c,password:p})=>{r({type:"initCall"});try{const v=new FormData;v.append("username",c),v.append("password",p);const{fetchPath:m,options:y}=Be({path:De(e,"auth/login"),method:"POST"}),T=await fetch(m,{...y,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(v)});T.ok||(T.status===400?r({type:"setError",payload:"Username or password wrong."}):r({type:"setError",payload:"Couldn't sign in user"})),i()}catch(v){console.error("signin error",v),r({type:"setError",payload:"Failed to fetch"})}},[e,i]),s=_.useCallback(async()=>{r({type:"initCall"});try{const{fetchPath:c,options:p}=Be({path:De(e,"auth/logout"),method:"POST"});(await fetch(c,p)).ok||r({type:"setError",payload:"Couldn't sign out user"}),r({type:"setUser",payload:null})}catch(c){console.error("signout error",c),r({type:"setError",payload:"Failed to fetch"})}finally{r({type:"setLoading",payload:!1})}},[e]),l=_.useCallback(async c=>{r({type:"initCall"});try{const{fetchPath:p,options:v}=Be({path:De(e,"auth/user"),method:"PUT",body:c});(await fetch(p,v)).ok||r({type:"setError",payload:"Couldn't update user data"}),i()}catch(p){console.error("update error",p),r({type:"setError",payload:"Failed to post"})}},[e,i]),u=_.useCallback(async c=>{if(!n.email)return r({type:"setError",payload:"No email found"});try{const{fetchPath:p,options:v}=Be({path:De(e,"auth/forgot-password"),method:"POST",body:{email:n.email}}),m=await fetch(p,v);if(!m.ok){r({type:"setError",payload:"Couldn't request token to reset password"});return}const y=await m.json(),{token:T}=y,{fetchPath:j,options:R}=Be({path:De(e,"auth/reset-password"),method:"POST",body:{token:T,password:c}});if(!(await fetch(j,R)).ok){r({type:"setError",payload:"Couldn't reset password"});return}i()}catch(p){console.error("resetPassword error",p),r({type:"setError",payload:"Failed to post"})}},[e,i,n==null?void 0:n.email]),f=_.useCallback((c,p)=>{const v=De(e,"auth/login",c);if(p){const T=window.screenLeft+window.outerWidth/2-250,j=window.screenTop+window.outerHeight/2-500/2,R=window.open(v+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=500, height=500, top=${j}, left=${T}`),A=window.setInterval(function(){R.closed!==!1&&(window.clearInterval(A),i())},200);return}window.location.href=De(e,"auth/login",c)},[e,i]);return{user:t.user,loading:t.loading,error:t.error,signin:o,signout:s,update:l,resetPassword:u,oauth_signin:f}}function kd(e,t){const{user:r}=t,[n,i]=_.useState(null),[a,o]=_.useState(!0),[s,l]=_.useState({error:"401 Not authorized",message:"User is not logged in."});_.useEffect(()=>{r&&u(e)},[r]);const u=async f=>{o(!0);try{const{fetchPath:c,options:p}=Be({path:De(f,"info/"),method:"GET"}),v=await fetch(c,p);if(v.ok){const m=await v.json();i(m)}else l({error:"404 Not Found",message:"Couldn't fetch info"})}catch{l({error:"Network error",message:"Failed to fetch"})}finally{o(!1)}};return{info:n,loading:a,error:s}}const Vi=_.createContext({auth:{user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null},info:{info:null,loading:!1,error:null}});function qo(){return _.useContext(Vi).auth}function Ko(){return _.useContext(Vi).info}function Pd(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:r,children:n}={...t,...e},i=Od(r),a={baseUrl:r,...kd(r,i)};return d.jsx(Vi.Provider,{value:{auth:i,info:a},children:n})}const jd=async(e,t,r)=>{const{fetchPath:n,options:i}=Be({path:De(t,"/download"),method:"POST"}),a=await fetch(n,{...i,body:JSON.stringify(r)});let o=null;try{o=await a.blob()}catch{try{o=await a.json()}catch{o=await a.text()}}if(!a.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);const s=document.createElement("a"),l=URL.createObjectURL(o);s.href=l,s.download=e.toLowerCase()+".csv",s.click()};function Id({path:e,initialQueryParams:t,relation:r,fetchInfo:n=!0,clearInfoOnRefetch:i=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:o=!0,streaming:s=!1}){const[l,u]=_.useState(t?Jr(null,t):null),f=_.useMemo(()=>r?{...l,filters:[...l.filters,{col:r.foreign_key,opr:r.type,value:Fe(r.id)}]}:l,[r,l]),c=_.useCallback(Y=>u(te=>{if(!te)return Jr(null,Y);const ce=Jr({...te},Y);if(JSON.stringify(ce)===JSON.stringify(te))return te;if(s){if(Y.page&&Y.page!==te.page&&!Y.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(Y.page_size&&Y.page_size!==te.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead");(Y.filters||Y.order_column||Y.order_direction)&&(ce.page=0)}return ce}),[s]),[p,v]=_.useState(null),m=_.useMemo(()=>p,[p]),y=_.useCallback(()=>v(null),[]),{info:T,loading:j,refetch:R,error:A}=Go({path:e,autoInvoke:n,clearDataOnRefetch:i}),{data:N,loading:S,refetch:D,error:G}=To({path:e,queryParams:f,autoInvoke:!1,clearDataOnRefetch:a});_.useEffect(()=>{f&&D()},[D,f]),_.useEffect(()=>{if(A){v({message:"Couldn't fetch info",originalError:A});return}if(G){v({message:"Couldn't fetch list",originalError:G});return}y()},[A,G,y]);const se=_.useMemo(()=>j||S,[j,S]);At.useDidUpdate(()=>{o&&c(Jr(null,t||{}))},[e]);const h=_.useCallback(async Y=>{try{const te=await Mf(e,Fe(Y));return y(),te}catch(te){v({message:`Couldn't fetch item with id ${Y}`,originalError:te})}},[e,y]),F=_.useCallback(async(Y,te)=>{try{const ce=await Df(e,Y);return te||(R(),D()),y(),ce}catch(ce){v({message:"Couldn't add item",originalError:ce})}},[D,R,e,y]),L=_.useCallback(async(Y,te,ce)=>{try{const Ge=await Rf(e,Fe(Y),te);return ce||(R(),D()),y(),Ge}catch(Ge){v({message:`Couldn't update item with id ${Y}`,originalError:Ge})}},[D,R,e,y]),V=_.useCallback(async(Y,te)=>{try{const ce=await $f(e,Fe(Y));return te||(R(),D()),y(),ce}catch(ce){v({message:`Couldn't delete item with id ${Y}`,originalError:ce})}},[D,R,e,y]),re=_.useCallback(async Y=>{try{await jd(Y,e,f)}catch(te){v({message:"Couldn't download",originalError:te})}},[e,f]),[le,Te]=At.useSetState({data:{},isEnd:!1,fetch:()=>{throw new Error("Streaming mode not enabled, enable it by adding `streaming` prop to ApiProvider")}});return _.useEffect(()=>{s&&Te({fetch:()=>c({page:0,streaming:!0})})},[c,Te,s]),_.useEffect(()=>{s&&N&&Te(Y=>{let te=Object.keys(Y.data).length;const ce={isEnd:!1};return f.page<te?(te=f.page,ce.data={[f.page]:N.result}):ce.data={...Y.data,[f.page]:N.result},N.result.length<f.page_size?(ce.isEnd=!0,ce.fetch=()=>null):ce.fetch=()=>c({page:te+1,streaming:!0}),ce})},[N,c,Te,s]),{path:e,data:N,info:T,queryParams:f,loading:se,error:m,streaming:le,setQueryParams:c,refetch:D,refetchInfo:R,getEntry:h,addEntry:F,updateEntry:L,deleteEntry:V,download:re}}const Dd=async(e,t,r)=>{const{fetchPath:n,options:i}=Be({path:De(e,"/bulk",t),method:"POST",body:r}),a=await fetch(n,i);let o=null;try{o=await a.json()}catch{o=await a.text()}if(!a.ok)throw typeof o=="object"?new Error(typeof o.detail=="string"?o.detail:JSON.stringify(o,null,2)):new Error(o);return o},$d=({Api:e})=>{const[t,r]=_.useState([]),[n,i]=_.useState(null),a=_.useCallback(async(s,l)=>{try{i(null);const u=await Dd(e.path,s,t);return l?void 0:(e.refetch(),u)}catch(u){console.error(u),i({message:"Couldn't perform bulk action",originalError:u})}},[e,t]);return{bulkActions:_.useMemo(()=>({selectedIds:t,setSelectedIds:r}),[t,r]),dispatchBulkActions:a,error:n}},Wi=_.createContext({Api:{path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,r)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null},BulkActions:{bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null}});function $e(){const e=_.useContext(Wi);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e.Api}function Md(){const e=_.useContext(Wi);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e.BulkActions}function Xo({resource_name:e="",initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:a,resetQueryParamsOnPathChange:o,children:s,streaming:l}){const{baseUrl:u}=Ko(),f=Id({path:De(u,e),initialQueryParams:t,relation:r,fetchInfo:n,clearInfoOnRefetch:i,clearDataOnRefetch:a,resetQueryParamsOnPathChange:o,streaming:l}),c=$d({path:De(u,e),Api:f});return d.jsx(Wi.Provider,{value:{Api:f,BulkActions:c},children:s})}function Hi(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(r){const n={};return r instanceof Le&&r.inner.forEach(i=>{n[i.path.replaceAll("[",".").replaceAll("]","")]=i.message}),n}}}function Rd({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(Xt.DateInput,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n.getTime()-n.getTimezoneOffset()*6e4);e.setFieldValue(t,i.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function Nd({form:e,name:t,...r}){return d.jsx(d.Fragment,{children:d.jsx(Xt.DateTimePicker,{...e.getInputProps(t),onChange:n=>{if(n instanceof Date){const i=new Date(n);e.setFieldValue(t,i.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...r})})}function ln({form:e,name:t,...r}){const n=e.getInputProps(t).value,i=_.useMemo(()=>n&&typeof n=="object"?JSON.stringify(n):n||"",[n]);return t==="password"?d.jsx(b.PasswordInput,{...e.getInputProps(t),value:i,...r}):d.jsx(b.TextInput,{...e.getInputProps(t),value:i,...r})}function Jo({form:e,name:t,filter:r,...n}){const[i,a]=_.useState(""),o=e.getInputProps(t).value,s=_.useMemo(()=>o?typeof o=="object"?JSON.stringify(o,null,2):o:"",[o]);return _.useEffect(()=>{a(s)},[s]),r?d.jsx(ln,{form:e,name:t,...n}):d.jsx(b.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...n,value:i,onChange:l=>{if(a(l),!l){e.getInputProps(t).onChange(null);return}try{const u=JSON.parse(l);e.getInputProps(t).onChange(u)}catch{}}})}function Fd({form:e,name:t,filter:r,...n}){const[i,a]=_.useState(!!r);return d.jsxs(b.InputWrapper,{label:n.label,description:n.description,children:[!r&&d.jsxs(b.Group,{align:"center",gap:"xs",py:"0.25rem",children:[d.jsx(b.Checkbox,{checked:i,onChange:o=>a(o.currentTarget.checked)}),d.jsx(b.Text,{size:"xs",children:"WKT"})]}),i?d.jsx(ln,{form:e,name:t,...n,label:void 0,description:void 0}):d.jsx(Jo,{form:e,name:t,...n,label:void 0,description:void 0})]})}function Ld({form:e,name:t,items:r,...n}){const i=r.map(o=>({value:String(Fe(o.id)),label:o.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(o=>String(typeof o=="object"?Fe(o.id):o)):[];return d.jsx(b.MultiSelect,{data:i,searchable:!0,...e.getInputProps(t),value:a||[],...n})}function zd({form:e,name:t,items:r,filter:n,...i}){var o;const a=r.map(s=>({value:String(Fe(s.id)),label:s.value}));return d.jsx(b.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:s=>{if(n){e.setFieldValue(t,s);return}const l=r.find(u=>String(Fe(u.id))===s)||null;e.setFieldValue(t,l)},value:n?e.getInputProps(t).value:String(Fe((o=e.getInputProps(t).value)==null?void 0:o.id))||"",...i})}function Zo({form:e,name:t,items:r,...n}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...n})}function Gi({form:e,name:t,schema:r,filter:n,...i}){if(!r.type)return null;switch(r.type){case"Boolean":return d.jsx(Zo,{form:e,name:t,items:[{label:"true",value:n?"1":"true"},{label:"false",value:n?"0":"false"}],...i});case"RelatedList":return d.jsx(Ld,{form:e,name:t,items:r.values,...i});case"Related":return d.jsx(zd,{form:e,name:t,items:r.values,filter:n,...i});case"DateTime":return d.jsx(Nd,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:r,...i});case"Date":return d.jsx(Rd,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:r,...i});case"Geometry":return d.jsx(Fd,{form:e,name:t,filter:n,...i});case"Raw":return d.jsx(Jo,{form:e,name:t,filter:n,...i});case"Integer":case"Float":return d.jsx(ln,{form:e,name:t,...i});case"Enum":return d.jsx(Zo,{form:e,name:t,items:r.values,...i});default:return d.jsx(ln,{form:e,name:t,...i})}}function Qo({opened:e,onClose:t,...r}){const{info:n,addEntry:i}=$e(),a={modal:{},stack:{},addButton:{}},{addButton:o,modal:s,stack:l}=b.useProps("AddDialog",a,r),u=vi.useForm({initialValues:n.add.defaultValues,validate:Hi(n.add.schema)}),f=async c=>{await i(c),u.reset(),t()};return _.useEffect(()=>{u.setInitialValues(n.add.defaultValues),u.reset()},[n.add.defaultValues]),d.jsx(b.Modal,{opened:e,onClose:()=>{u.reset(),t()},title:n.add.title,size:"lg",centered:!0,...s,children:d.jsx(b.Box,{component:"form",onSubmit:u.onSubmit(f),children:d.jsx(b.Stack,{spacing:"md",...l,children:d.jsxs(b.ScrollArea.Autosize,{mah:450,type:"auto",children:[n.add.columns.map((c,p)=>d.jsx(Gi,{form:u,name:c.name,label:c.label,description:c.description,schema:c,withAsterisk:c.required},p)),d.jsx(b.Group,{position:"right",mt:"xl",children:d.jsx(b.Button,{type:"submit",...o,children:"Add"})})]})})})})}/**
|
|
34
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license.
|
|
37
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var
|
|
39
|
-
* @license @tabler/icons-react v3.
|
|
38
|
+
*/var Bd={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
|
|
39
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
40
40
|
*
|
|
41
41
|
* This source code is licensed under the MIT license.
|
|
42
42
|
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/const Ue=(e,t,r,n)=>{const i=_.forwardRef(({color:a="currentColor",size:o=24,stroke:s=2,title:l,className:u,children:f,...c},p)=>_.createElement("svg",{ref:p,...
|
|
44
|
-
* @license @tabler/icons-react v3.
|
|
43
|
+
*/const Ue=(e,t,r,n)=>{const i=_.forwardRef(({color:a="currentColor",size:o=24,stroke:s=2,title:l,className:u,children:f,...c},p)=>_.createElement("svg",{ref:p,...Bd[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),strokeWidth:s,stroke:a,...c},[l&&_.createElement("title",{key:"svg-title"},l),...n.map(([v,m])=>_.createElement(v,m)),...Array.isArray(f)?f:[f]]));return i.displayName=`${r}`,i};/**
|
|
44
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license.
|
|
47
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
49
|
-
* @license @tabler/icons-react v3.
|
|
48
|
+
*/var Ud=Ue("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
|
|
49
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the MIT license.
|
|
52
52
|
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/var
|
|
54
|
-
* @license @tabler/icons-react v3.
|
|
53
|
+
*/var Vd=Ue("outline","app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]);/**
|
|
54
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/var Yi=Ue("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
|
|
59
|
-
* @license @tabler/icons-react v3.
|
|
59
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
60
60
|
*
|
|
61
61
|
* This source code is licensed under the MIT license.
|
|
62
62
|
* See the LICENSE file in the root directory of this source tree.
|
|
63
63
|
*/var es=Ue("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
|
|
64
|
-
* @license @tabler/icons-react v3.
|
|
64
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license.
|
|
67
67
|
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var
|
|
69
|
-
* @license @tabler/icons-react v3.
|
|
68
|
+
*/var Wd=Ue("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
|
|
69
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var
|
|
74
|
-
* @license @tabler/icons-react v3.
|
|
73
|
+
*/var Hd=Ue("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
|
|
74
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var
|
|
79
|
-
* @license @tabler/icons-react v3.
|
|
78
|
+
*/var Gd=Ue("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
|
|
79
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
83
|
*/var ts=Ue("outline","filter","IconFilter",[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]]);/**
|
|
84
|
-
* @license @tabler/icons-react v3.
|
|
84
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the MIT license.
|
|
87
87
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/var
|
|
89
|
-
* @license @tabler/icons-react v3.
|
|
88
|
+
*/var Yd=Ue("outline","id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]);/**
|
|
89
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the MIT license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
93
|
*/var rs=Ue("outline","lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]);/**
|
|
94
|
-
* @license @tabler/icons-react v3.
|
|
94
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
95
95
|
*
|
|
96
96
|
* This source code is licensed under the MIT license.
|
|
97
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/var
|
|
99
|
-
* @license @tabler/icons-react v3.
|
|
98
|
+
*/var qd=Ue("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);/**
|
|
99
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the MIT license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/var
|
|
104
|
-
* @license @tabler/icons-react v3.
|
|
103
|
+
*/var Kd=Ue("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]);/**
|
|
104
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the MIT license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
108
|
*/var qi=Ue("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
|
|
109
|
-
* @license @tabler/icons-react v3.
|
|
109
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the MIT license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
113
|
*/var ns=Ue("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
|
|
114
|
-
* @license @tabler/icons-react v3.
|
|
114
|
+
* @license @tabler/icons-react v3.16.0 - MIT
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the MIT license.
|
|
117
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/var Zd=Ue("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function is(...e){const[t,r]=_.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},i=b.useProps("ActionIcon",n,e);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Add Item",children:d.jsx(b.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{r(!0)},children:d.jsx(qi,{})})}),d.jsx(Qo,{opened:t,onClose:()=>{r(!1)}})]})}function Qd({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function ep({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function tp({form:e,name:t,...r}){const n=b.useCombobox({onDropdownClose:()=>n.resetSelectedOption(),onDropdownOpen:()=>n.updateSelectedOptionIndex("active")}),[i,a]=_.useState([]),[o,s]=_.useState(""),l=c=>{o!==""&&(i.includes(o)||a(p=>[...p,o]),s(""))},u=c=>a(p=>p.filter(v=>v!==c)),f=i.map(c=>d.jsx(b.Pill,{withRemoveButton:!0,onRemove:()=>u(c),children:c},c));return _.useEffect(()=>{const c=e.getInputProps(t).value;if(c)try{a([...c])}catch(p){console.error("Error parsing JSON:",p)}},[]),_.useEffect(()=>{e.getInputProps(t).onChange(i)},[i]),d.jsxs(b.Combobox,{store:n,onOptionSubmit:l,children:[d.jsx(b.Combobox.DropdownTarget,{children:d.jsx(b.PillsInput,{onClick:()=>n.openDropdown(),children:d.jsxs(b.Pill.Group,{children:[f,d.jsx(b.Combobox.EventsTarget,{children:d.jsx(b.PillsInput.Field,{onFocus:()=>n.openDropdown(),onBlur:()=>n.closeDropdown(),value:o,placeholder:"Search values",onChange:c=>{n.updateSelectedOptionIndex(),s(c.currentTarget.value)},onKeyDown:c=>{c.key==="Backspace"&&o.length===0&&(c.preventDefault(),u(i[i.length-1]))}})})]})})}),d.jsx(b.Combobox.Dropdown,{children:d.jsx(b.Combobox.Options,{children:d.jsxs(b.Combobox.Option,{value:"$create",children:["+ Create ",o]})})})]})}function as({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:i,path:a}=$e(),o=vi.useForm({initialValues:{filters:[]},validate:Hi(Sr({filters:Li().of(Sr({col:on().transform(c=>c||void 0).required("Field is required"),opr:on().transform(c=>c||void 0).required("col is required"),value:an().when("col",{is:c=>c&&r.filters[c].schema.required,then:()=>an().required("Value is required")})}))}))}),s={bg:"transparent",size:"sm",c:"gray"},l=b.useProps("ActionIcon",s,t);_.useEffect(()=>{o.setValues({filters:[]}),o.reset()},[a]),_.useEffect(()=>{if(n.filters&&n.filters.length){const c=n.filters.map(p=>({...p,key:At.randomId()}));o.setFieldValue("filters",c)}},[n.filters]);const u=c=>{const p=c.filters.map(({key:m,...y})=>y),v=JSON.parse(JSON.stringify(p));i({filters:v,page:0}),e()},f=o.values.filters.map((c,p)=>d.jsxs(b.Box,{px:"sm",children:[d.jsxs(b.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(b.Box,{style:{width:"192px"},children:r&&r.filters&&d.jsx(Qd,{form:o,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([v,m])=>({label:m.label,value:String(v)})),onChange:v=>{o.setFieldValue(`filters.${p}`,{col:v,opr:"",value:"",key:At.randomId()})}})}),d.jsx(b.Box,{style:{width:"192px"},children:c.col?d.jsx(ep,{form:o,name:`filters.${p}.opr`,items:r.filters[c.col].filters.map(v=>({label:v.name,value:v.operator})),onChange:v=>{o.setFieldValue(`filters.${p}`,{col:o.values.filters[p].col,opr:v,value:"",key:At.randomId()})}}):null}),d.jsx(b.Box,{style:{width:"192px"},children:c.col?c.opr==="in"?d.jsx(tp,{form:o,name:`filters.${p}.value`}):d.jsx(Gi,{form:o,name:`filters.${p}.value`,schema:r.filters[c.col].schema,filter:!0}):null}),d.jsx(b.ActionIcon,{bg:l.bg,size:l.size,c:l.c,onClick:()=>{o.removeListItem("filters",p)},children:d.jsx(ns,{})})]}),o.values.filters.length>1&&p<o.values.filters.length-1?d.jsx(b.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},c.key));return d.jsxs(b.Box,{component:"form",onSubmit:o.onSubmit(u),children:[f.length===0&&d.jsx(b.Box,{style:{width:"642px"},children:d.jsx(b.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(b.ScrollArea.Autosize,{mah:"40vh",mt:20,children:f}),d.jsx(b.Divider,{my:"sm"}),d.jsxs(b.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(b.Button,{variant:"subtle",leftSection:d.jsx(qi,{}),onClick:()=>{o.insertListItem("filters",{col:"",opr:"",value:"",key:At.randomId()})},children:"Add Filter"}),d.jsx(b.Group,{spacing:"md",children:d.jsx(b.Button,{type:"submit",children:"Apply"})})]})]})}function os(...e){const{queryParams:t}=$e(),r={bg:"transparent",size:"sm",c:"gray"},n=b.useProps("ActionIcon",r,e),[i,a]=_.useState(!1);return d.jsxs(b.Popover,{opened:i,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,zIndex:1,children:[d.jsx(b.Popover.Target,{children:d.jsx(b.Tooltip,{opened:i?!1:null,label:"Filter",children:t.filters.length!=0?d.jsx(b.Indicator,{zIndex:20,size:16,label:t.filters.length,children:d.jsx(b.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>a(!0),children:d.jsx(ts,{})})}):d.jsx(b.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>a(!0),children:d.jsx(ts,{})})})}),d.jsxs(b.Popover.Dropdown,{px:"xs",children:[d.jsx(b.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(b.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),d.jsx(as,{onClose:()=>{a(!1)}})]})]})}function rp(...e){const[t,r]=_.useState(!1),{download:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,e);return t?d.jsx(b.Loader,{color:a.c,size:a.size}):d.jsx(b.Tooltip,{label:"Download",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:d.jsx(Gd,{})})})}const ss=_.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:i}=$e(),a=_.useMemo(()=>{const s={};return Object.entries(n).forEach(([l,u])=>{s[l]=u,typeof s[l]=="function"&&(s[l]=s[l]())}),s},[n]),o=i.permissions.includes("can_post");return d.jsxs(b.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(a.download||d.jsx(rp,{})),o&&!e?a.add||d.jsx(is,{}):null,t?null:a.filter||d.jsx(os,{})]})});ss.displayName="Toolbar";const ls={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Ki({column:e,label:t,orderColumn:r,related:n,toggleAll:i,allChecked:a,classNames:o,styles:s,customElement:l,...u}){const{queryParams:f,setQueryParams:c,loading:p}=$e(),v={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},m=b.useStyles({name:"FieldTitle",classes:ls,classNames:o,styles:s,props:u}),y=b.useProps("FieldTitle",v,u),{hovered:T,ref:j}=At.useHover(),R=r&&f.order_column===r,A=m("wrapper");return A.style.cursor=r?A.style.cursor:"auto",d.jsx(b.Table.Th,{className:ls.fieldTitleRoot,...m("root"),onClick:r&&!p?()=>c({order_column:r,order_direction:f.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(b.Box,{ref:j,...A,children:e==="Checkbox"?d.jsx(b.Checkbox,{pb:5,pl:2,onChange:i,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(b.Box,{w:"100%",fw:y.fw,size:"xl",c:T&&r?y.hoverColor:R?y.selectedColor:y.color,children:l||t||e}),n?d.jsx(b.Tooltip,{label:"Related Field",children:d.jsx(b.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(b.Box,{...m("icon"),children:R?f.order_direction==="asc"?d.jsx(Yi,{size:14,strokeWidth:1.5}):d.jsx(es,{size:14,strokeWidth:1.5}):null})})}):d.jsx(b.Box,{...m("icon"),children:R?f.order_direction==="asc"?d.jsx(Yi,{size:14,strokeWidth:1.5}):d.jsx(es,{size:14,strokeWidth:1.5}):null})]})})})}const us=_.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:i,allChecked:a,toggleAll:o,headerCustomizer:s})=>{const l=e.list_columns.includes("actions")?"_actions":"actions";let u=s==null?void 0:s[l];return typeof u=="function"&&(u=u()),d.jsx(b.Table.Thead,{children:d.jsxs(b.Table.Tr,{children:[i?null:d.jsx(Ki,{data:e,column:"Checkbox",allChecked:a,toggleAll:o}),n?null:d.jsx(Ki,{column:"Actions",customElement:u}),e.list_columns.map((f,c)=>{var v;let p=s==null?void 0:s[f];return typeof p=="function"&&(p=p(e.label_columns[f])),p===null?null:d.jsx(Ki,{column:f,label:e.label_columns[f],orderColumn:e.order_columns.find(m=>m===f)||e.order_columns.find(m=>m.startsWith(`${f}.`)),related:((v=t.filters[f])==null?void 0:v.schema.type)==="Nested",customElement:p},f)})]})})});us.displayName="Header";const Xi=(e,t)=>{const r=t.split("."),n=e[r[0]];if(r.length>1&&Array.isArray(n))return n.map(a=>Xi(a,r.slice(1).join("."))).join(", ");const i=t.split(".").reduce((a,o)=>a[o],e);return!i&&typeof i!="boolean"&&typeof i!="number"?null:typeof i=="boolean"?i.toString():Array.isArray(i)?i.map(a=>a.name_||JSON.stringify(a,null,2)).join(", "):typeof i=="object"?i.name_||JSON.stringify(i):i};function cs(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,cs(e[r],t[r])]))}function fs(e,t){if(!e)return e;const r=t.values;if(!r||!r.length)return e;const n=r[0].id;if(!(n instanceof Object))return e;const a=Object.keys(n),o={};return a.forEach(s=>{o[s]=e[s]}),e.id=o,e}function np(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=fs(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(i=>fs(i,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function ip({relatedPath:e,...t}){const{path:r}=$e();return De(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(Xo,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Ta,{hideToolbar:!0,hideDownload:!1})})}const ap=_.memo(ip);function op({item:e,info:t,loading:r,opened:n,onClose:i,...a}){const o={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:s,tabs:l,tabsList:u,tabsPanel:f}=b.useProps("ViewDialog",o,a);return d.jsxs(b.Modal,{opened:n,onClose:i,title:`${e==null?void 0:e.show_title} (#${Fe(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...s,children:[d.jsx(b.LoadingOverlay,{visible:r}),!r&&e?d.jsxs(b.Tabs,{defaultValue:"details",...l,children:[d.jsxs(b.Tabs.List,{...u,children:[d.jsx(b.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((c,p)=>d.jsx(b.Tabs.Tab,{value:c.name,children:c.name},p))]}),d.jsx(b.Tabs.Panel,{pt:"xs",value:"details",...f,children:d.jsx(b.Paper,{p:"xs",withBorder:!0,children:d.jsx(b.Stack,{spacing:"md",children:d.jsx(b.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((c,p)=>d.jsxs(b.Grid,{maw:500,children:[d.jsx(b.Grid.Col,{span:4,children:d.jsx(b.Text,{size:"md",children:e.label_columns[c]})}),d.jsx(b.Grid.Col,{span:1,children:d.jsx(b.Text,{size:"xs",children:":"})}),d.jsx(b.Grid.Col,{span:6,children:d.jsx(b.Text,{size:"md",children:Xi(e.result,c)})})]},p))})})})}),t.relations.map((c,p)=>d.jsx(b.Tabs.Panel,{pt:"xs",value:c.name,children:d.jsx(b.Paper,{withBorder:!0,children:d.jsx(ap,{relatedPath:c.path,id:Fe(e.id),foreign_key:c.foreign_key,type:c.type})})},p))]}):null]})}function sp({id:e,...t}){const{info:r,getEntry:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,t),[o,s]=_.useState(null),[l,u]=_.useState(!1),[f,c]=_.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Details",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(qd,{})})}),d.jsx(op,{item:o,info:r,loading:l,opened:f,onClose:()=>c(!1)})]})}function lp(e,t){return new Promise(r=>{r(np(e,t.edit.columns))})}function ds({item:e,info:t,opened:r,onClose:n,...i}){const{updateEntry:a}=$e(),o={modal:{},stack:{},saveButton:{}},{modal:s,stack:l,saveButton:u}=b.useProps("EditDialog",o,i),f=vi.useForm({initialValues:t.edit.defaultValues,validate:Hi(t.edit.schema)}),c=()=>{const v={};return Object.keys(f.values).forEach(m=>{f.isDirty(m)&&(v[m]=!0)}),v};_.useEffect(()=>{e&&lp(e,t).then(v=>{f.setValues(v),f.resetDirty(v)})},[e,t.edit.columns]);const p=async v=>{v=cs(c(),v),await a(e.id,v),n()};return _.useEffect(()=>{f.setInitialValues(t.edit.defaultValues),f.reset()},[t.edit.defaultValues]),e?d.jsx(b.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...s,children:d.jsx(b.Box,{component:"form",onSubmit:f.onSubmit(p),children:d.jsx(b.Stack,{spacing:"md",...l,children:d.jsxs(b.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((v,m)=>d.jsx(Gi,{form:f,name:v.name,label:v.label,description:v.description,schema:v,withAsterisk:v.required},m)),d.jsx(b.Group,{position:"right",mt:"xl",children:d.jsx(b.Button,{type:"submit",...u,children:"Save"})})]})})})}):null}function ps({id:e,...t}){const{info:r,getEntry:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,t),[o,s]=_.useState(null),[l,u]=_.useState(!1),[f,c]=_.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Edit",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(Jd,{})})}),d.jsx(ds,{item:o,info:r,opened:f,onClose:()=>c(!1)})]})}function up({opened:e,onClose:t,handleAccept:r,handleReject:n}){return d.jsxs(b.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(b.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(b.Button,{onClick:n,variant:"default",children:"Abbrechen"}),d.jsx(b.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function hs({id:e,...t}){const{deleteEntry:r}=$e(),n={bg:"transparent",size:"sm",c:"gray"},i=b.useProps("ActionIcon",n,t),[a,o]=_.useState(!1),s=()=>{o(!1)},l=async()=>{r(e),o(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Delete",children:d.jsx(b.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{o(!0)},children:d.jsx(ns,{})})}),d.jsx(up,{opened:a,onClose:s,handleAccept:l,handleReject:s})]})}function ms({id:e,selected:t}){const{info:r}=$e();return d.jsxs(b.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[r.permissions.includes("can_get")?d.jsx(sp,{id:e}):null,r.permissions.includes("can_put")?d.jsx(ps,{id:e}):null,r.permissions.includes("can_delete")?d.jsx(hs,{id:e}):null]})}var gs={},Ji={},Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=pp;var ys="html",vs="head",un="body",cp=/<([a-zA-Z]+[0-9]?)/,bs=/<head[^]*>/i,xs=/<body[^]*>/i,cn=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Qi=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Ts=typeof window=="object"&&window.DOMParser;if(typeof Ts=="function"){var fp=new Ts,dp="text/html";Qi=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),fp.parseFromString(e,dp)},cn=Qi}if(typeof document=="object"&&document.implementation){var fn=document.implementation.createHTMLDocument();cn=function(e,t){if(t){var r=fn.documentElement.querySelector(t);return r&&(r.innerHTML=e),fn}return fn.documentElement.innerHTML=e,fn}}var dn=typeof document=="object"&&document.createElement("template"),ea;dn&&dn.content&&(ea=function(e){return dn.innerHTML=e,dn.content.childNodes});function pp(e){var t,r,n=e.match(cp),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case ys:{var a=Qi(e);if(!bs.test(e)){var o=a.querySelector(vs);(t=o==null?void 0:o.parentNode)===null||t===void 0||t.removeChild(o)}if(!xs.test(e)){var o=a.querySelector(un);(r=o==null?void 0:o.parentNode)===null||r===void 0||r.removeChild(o)}return a.querySelectorAll(ys)}case vs:case un:{var s=cn(e).querySelectorAll(i);return xs.test(e)&&bs.test(e)?s[0].parentNode.childNodes:s}default:{if(ea)return ea(e);var o=cn(e,un).querySelector(un);return o.childNodes}}}var pn={},ta={},ra={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(ra);var ae={},Pt=Ce&&Ce.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Er=Ce&&Ce.__assign||function(){return Er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Er.apply(this,arguments)};Object.defineProperty(ae,"__esModule",{value:!0}),ae.cloneNode=ae.hasChildren=ae.isDocument=ae.isDirective=ae.isComment=ae.isText=ae.isCDATA=ae.isTag=ae.Element=ae.Document=ae.CDATA=ae.NodeWithChildren=ae.ProcessingInstruction=ae.Comment=ae.Text=ae.DataNode=ae.Node=void 0;var Ke=ra,na=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),ia(this,t)},e}();ae.Node=na;var hn=function(e){Pt(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(na);ae.DataNode=hn;var _s=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(hn);ae.Text=_s;var Ss=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(hn);ae.Comment=Ss;var Es=function(e){Pt(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=Ke.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(hn);ae.ProcessingInstruction=Es;var mn=function(e){Pt(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(na);ae.NodeWithChildren=mn;var Cs=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(mn);ae.CDATA=Cs;var ws=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(mn);ae.Document=ws;var As=function(e){Pt(t,e);function t(r,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=r==="script"?Ke.ElementType.Script:r==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,i)||this;return o.name=r,o.attribs=n,o.type=a,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,a;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),t}(mn);ae.Element=As;function Os(e){return(0,Ke.isTag)(e)}ae.isTag=Os;function ks(e){return e.type===Ke.ElementType.CDATA}ae.isCDATA=ks;function Ps(e){return e.type===Ke.ElementType.Text}ae.isText=Ps;function js(e){return e.type===Ke.ElementType.Comment}ae.isComment=js;function Is(e){return e.type===Ke.ElementType.Directive}ae.isDirective=Is;function Ds(e){return e.type===Ke.ElementType.Root}ae.isDocument=Ds;function hp(e){return Object.prototype.hasOwnProperty.call(e,"children")}ae.hasChildren=hp;function ia(e,t){t===void 0&&(t=!1);var r;if(Ps(e))r=new _s(e.data);else if(js(e))r=new Ss(e.data);else if(Os(e)){var n=t?aa(e.children):[],i=new As(e.name,Er({},e.attribs),n);n.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Er({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Er({},e["x-attribsPrefix"])),r=i}else if(ks(e)){var n=t?aa(e.children):[],a=new Cs(n);n.forEach(function(u){return u.parent=a}),r=a}else if(Ds(e)){var n=t?aa(e.children):[],o=new ws(n);n.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(Is(e)){var s=new Es(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}ae.cloneNode=ia;function aa(e){for(var t=e.map(function(n){return ia(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=Ce&&Ce.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(l,u);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,c)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),r=Ce&&Ce.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=ra,i=ae;r(ae,e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function s(l,u,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(f=u,u=a),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??a,this.elementCB=f??null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var f=this.options.xmlMode?n.ElementType.Tag:void 0,c=new i.Element(l,u,void 0,f);this.addNode(c),this.tagStack.push(c)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var f=new i.Text(l);this.addNode(f),this.lastNode=f}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var f=new i.ProcessingInstruction(l,u);this.addNode(f)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],f=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),f&&(l.prev=f,f.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=o,e.default=o})(ta);var $s={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})($s),Object.defineProperty(pn,"__esModule",{value:!0}),pn.formatAttributes=Ms,pn.formatDOM=Rs;var gn=ta,mp=$s;function gp(e){return mp.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function Ms(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function yp(e){e=e.toLowerCase();var t=gp(e);return t||e}function Rs(e,t,r){t===void 0&&(t=null);for(var n=[],i,a=0,o=e.length;a<o;a++){var s=e[a];switch(s.nodeType){case 1:{var l=yp(s.nodeName);i=new gn.Element(l,Ms(s.attributes)),i.children=Rs(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new gn.Text(s.nodeValue);break;case 8:i=new gn.Comment(s.nodeValue);break;default:continue}var u=n[a-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new gn.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}var vp=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=_p;var bp=vp(Zi),xp=pn,Tp=/<(![a-zA-Z\s]+)>/;function _p(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(Tp),r=t?t[1]:void 0;return(0,xp.formatDOM)((0,bp.default)(e),null,r)}var yn={},lt={},vn={},Sp=0;vn.SAME=Sp;var Ep=1;vn.CAMELCASE=Ep,vn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const Ns=0,jt=1,bn=2,xn=3,oa=4,Fs=5,Ls=6;function Cp(e){return Re.hasOwnProperty(e)?Re[e]:null}function Ve(e,t,r,n,i,a,o){this.acceptsBooleans=t===bn||t===xn||t===oa,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}const Re={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{Re[e]=new Ve(e,Ns,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Re[e]=new Ve(e,jt,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{Re[e]=new Ve(e,bn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Re[e]=new Ve(e,bn,!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"].forEach(e=>{Re[e]=new Ve(e,xn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{Re[e]=new Ve(e,xn,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{Re[e]=new Ve(e,oa,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{Re[e]=new Ve(e,Ls,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{Re[e]=new Ve(e,Fs,!1,e.toLowerCase(),null,!1,!1)});const sa=/[\-\:]([a-z])/g,la=e=>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"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{Re[e]=new Ve(e,jt,!1,e.toLowerCase(),null,!1,!1)});const wp="xlinkHref";Re[wp]=new Ve("xlinkHref",jt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{Re[e]=new Ve(e,jt,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Ap,SAME:Op,possibleStandardNames:zs}=vn,kp=":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",Pp=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+kp+"]*$")),jp=Object.keys(zs).reduce((e,t)=>{const r=zs[t];return r===Op?e[t]=t:r===Ap?e[t.toLowerCase()]=t:e[t]=r,e},{});lt.BOOLEAN=xn,lt.BOOLEANISH_STRING=bn,lt.NUMERIC=Fs,lt.OVERLOADED_BOOLEAN=oa,lt.POSITIVE_NUMERIC=Ls,lt.RESERVED=Ns,lt.STRING=jt,lt.getPropertyInfo=Cp,lt.isCustomAttribute=Pp,lt.possibleStandardNames=jp;var ua={},ca={},Bs=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ip=/\n/g,Dp=/^\s*/,$p=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mp=/^:\s*/,Rp=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Np=/^[;\s]*/,Fp=/^\s+|\s+$/g,Lp=`
|
|
119
|
-
`,Us="/",Vs="*",Ut="",zp="comment",Bp="declaration",Up=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(m){var y=m.match(Ip);y&&(r+=y.length);var T=m.lastIndexOf(Lp);n=~T?m.length-T:n+m.length}function a(){var m={line:r,column:n};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(m){var y=new Error(t.source+":"+r+":"+n+": "+m);if(y.reason=m,y.filename=t.source,y.line=r,y.column=n,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function u(){l(Dp)}function f(m){var y;for(m=m||[];y=c();)y!==!1&&m.push(y);return m}function c(){var m=a();if(!(Us!=e.charAt(0)||Vs!=e.charAt(1))){for(var y=2;Ut!=e.charAt(y)&&(Vs!=e.charAt(y)||Us!=e.charAt(y+1));)++y;if(y+=2,Ut===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return n+=2,i(T),e=e.slice(y),n+=2,m({type:zp,comment:T})}}function p(){var m=a(),y=l($p);if(y){if(c(),!l(Mp))return s("property missing ':'");var T=l(Rp),j=m({type:Bp,property:Ws(y[0].replace(Bs,Ut)),value:T?Ws(T[0].replace(Bs,Ut)):Ut});return l(Np),j}}function v(){var m=[];f(m);for(var y;y=p();)y!==!1&&(m.push(y),f(m));return m}return u(),v()};function Ws(e){return e?e.replace(Fp,Ut):Ut}var Vp=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ca,"__esModule",{value:!0});var Wp=Vp(Up);function Hp(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,Wp.default)(e),i=typeof t=="function";return n.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(r=r||{},r[o]=s)}}),r}ca.default=Hp;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.camelCase=void 0;var Gp=/^--[a-zA-Z0-9-]+$/,Yp=/-([a-z])/g,qp=/^[^-]+$/,Kp=/^-(webkit|moz|ms|o|khtml)-/,Xp=/^-(ms)-/,Jp=function(e){return!e||qp.test(e)||Gp.test(e)},Zp=function(e,t){return t.toUpperCase()},Hs=function(e,t){return"".concat(t,"-")},Qp=function(e,t){return t===void 0&&(t={}),Jp(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Xp,Hs):e=e.replace(Kp,Hs),e.replace(Yp,Zp))};Tn.camelCase=Qp;var eh=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},th=eh(ca),rh=Tn;function fa(e,t){var r={};return!e||typeof e!="string"||(0,th.default)(e,function(n,i){n&&i&&(r[(0,rh.camelCase)(n,t)]=i)}),r}fa.default=fa;var nh=fa;(function(e){var t=Ce&&Ce.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=a,e.setStyleProp=s;var r=_,n=t(nh),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function a(f,c){return f.includes("-")?!i.has(f):!!(c&&typeof c.is=="string")}var o={reactCompat:!0};function s(f,c){if(typeof f=="string"){if(!f.trim()){c.style={};return}try{c.style=(0,n.default)(f,o)}catch{c.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(f){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(f.name)};e.canTextBeChildOfNode=l;var u=function(f){return f};e.returnFirstArg=u})(ua),Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=sh;var Cr=lt,Gs=ua,ih=["checked","value"],ah=["input","select","textarea"],oh={reset:!0,submit:!0};function sh(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&oh[e.type]);for(var i in e){var a=e[i];if((0,Cr.isCustomAttribute)(i)){r[i]=a;continue}var o=i.toLowerCase(),s=Ys(o);if(s){var l=(0,Cr.getPropertyInfo)(s);switch(ih.includes(s)&&ah.includes(t)&&!n&&(s=Ys("default"+o)),r[s]=a,l&&l.type){case Cr.BOOLEAN:r[s]=!0;break;case Cr.OVERLOADED_BOOLEAN:a===""&&(r[s]=!0);break}continue}Gs.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=a)}return(0,Gs.setStyleProp)(e.style,r),r}function Ys(e){return Cr.possibleStandardNames[e]}var da={},lh=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(da,"__esModule",{value:!0}),da.default=qs;var pa=_,uh=lh(yn),wr=ua,ch={cloneElement:pa.cloneElement,createElement:pa.createElement,isValidElement:pa.isValidElement};function qs(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||wr.returnFirstArg,a=t.library||ch,o=a.cloneElement,s=a.createElement,l=a.isValidElement,u=e.length,f=0;f<u;f++){var c=e[f];if(n){var p=t.replace(c,f);if(l(p)){u>1&&(p=o(p,{key:p.key||f})),r.push(i(p,c,f));continue}}if(c.type==="text"){var v=!c.data.trim().length;if(v&&c.parent&&!(0,wr.canTextBeChildOfNode)(c.parent)||t.trim&&v)continue;r.push(i(c.data,c,f));continue}var m=c,y={};fh(m)?((0,wr.setStyleProp)(m.attribs.style,m.attribs),y=m.attribs):m.attribs&&(y=(0,uh.default)(m.attribs,m.name));var T=void 0;switch(c.type){case"script":case"style":c.children[0]&&(y.dangerouslySetInnerHTML={__html:c.children[0].data});break;case"tag":c.name==="textarea"&&c.children[0]?y.defaultValue=c.children[0].data:c.children&&c.children.length&&(T=qs(c.children,t));break;default:continue}u>1&&(y.key=f),r.push(i(s(c.name,y,T),c,f))}return r.length===1?r[0]:r}function fh(e){return wr.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,wr.isCustomComponent)(e.name,e.attribs)}(function(e){var t=Ce&&Ce.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(Ji);e.htmlToDOM=r.default;var n=t(yn);e.attributesToProps=n.default;var i=t(da);e.domToReact=i.default;var a=ta;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(l,u){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,r.default)(l,(u==null?void 0:u.htmlparser2)||o),u):[]}})(gs);const Ks=yt(gs);Ks.default;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Xs,setPrototypeOf:Js,isFrozen:dh,getPrototypeOf:ph,getOwnPropertyDescriptor:hh}=Object;let{freeze:We,seal:nt,create:Zs}=Object,{apply:ha,construct:ma}=typeof Reflect<"u"&&Reflect;We||(We=function(t){return t}),nt||(nt=function(t){return t}),ha||(ha=function(t,r,n){return t.apply(r,n)}),ma||(ma=function(t,r){return new t(...r)});const _n=Qe(Array.prototype.forEach),Qs=Qe(Array.prototype.pop),Ar=Qe(Array.prototype.push),Sn=Qe(String.prototype.toLowerCase),ga=Qe(String.prototype.toString),el=Qe(String.prototype.match),Or=Qe(String.prototype.replace),mh=Qe(String.prototype.indexOf),gh=Qe(String.prototype.trim),ut=Qe(Object.prototype.hasOwnProperty),He=Qe(RegExp.prototype.test),kr=yh(TypeError);function Qe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return ha(e,t,n)}}function yh(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ma(e,r)}}function oe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sn;Js&&Js(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(dh(t)||(t[n]=a),i=a)}e[i]=!0}return e}function vh(e){for(let t=0;t<e.length;t++)ut(e,t)||(e[t]=null);return e}function Vt(e){const t=Zs(null);for(const[r,n]of Xs(e))ut(e,r)&&(Array.isArray(n)?t[r]=vh(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Vt(n):t[r]=n);return t}function Pr(e,t){for(;e!==null;){const n=hh(e,t);if(n){if(n.get)return Qe(n.get);if(typeof n.value=="function")return Qe(n.value)}e=ph(e)}function r(){return null}return r}const tl=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ya=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),va=We(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bh=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ba=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xh=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rl=We(["#text"]),nl=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xa=We(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),il=We(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Th=nt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_h=nt(/<%[\w\W]*|[\w\W]*%>/gm),Sh=nt(/\${[\w\W]*}/gm),Eh=nt(/^data-[\-\w.\u00B7-\uFFFF]/),Ch=nt(/^aria-[\-\w]+$/),al=nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wh=nt(/^(?:\w+script|data):/i),Ah=nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=nt(/^html$/i),Oh=nt(/^[a-z][.\w]*(-[.\w]+)+$/i);var sl=Object.freeze({__proto__:null,MUSTACHE_EXPR:Th,ERB_EXPR:_h,TMPLIT_EXPR:Sh,DATA_ATTR:Eh,ARIA_ATTR:Ch,IS_ALLOWED_URI:al,IS_SCRIPT_OR_DATA:wh,ATTR_WHITESPACE:Ah,DOCTYPE_NAME:ol,CUSTOM_ELEMENT:Oh});const jr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},kh=function(){return typeof window>"u"?null:window},Ph=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function ll(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kh();const t=k=>ll(k);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==jr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,m=l.prototype,y=Pr(m,"cloneNode"),T=Pr(m,"remove"),j=Pr(m,"nextSibling"),R=Pr(m,"childNodes"),A=Pr(m,"parentNode");if(typeof o=="function"){const k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let N,S="";const{implementation:D,createNodeIterator:G,createDocumentFragment:se,getElementsByTagName:h}=r,{importNode:F}=n;let L={};t.isSupported=typeof Xs=="function"&&typeof A=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:re,TMPLIT_EXPR:le,DATA_ATTR:Te,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:te,ATTR_WHITESPACE:ce,CUSTOM_ELEMENT:Ge}=sl;let{IS_ALLOWED_URI:O}=sl,I=null;const Z=oe({},[...tl,...ya,...va,...ba,...rl]);let U=null;const X=oe({},[...nl,...xa,...il,...En]);let W=Object.seal(Zs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,J=null,Q=!0,ne=!0,ee=!1,Ie=!0,M=!1,Me=!0,B=!1,Ye=!1,Xe=!1,ot=!1,Yt=!1,St=!1,ii=!0,ai=!1;const Wr="user-content-";let Hr=!0,qt=!1,Et={},Ct=null;const Mt=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let oi=null;const Gr=oe({},["audio","video","img","source","image","track"]);let mr=null;const gr=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",vr="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Rt=ft,Yr=!1,qr=null;const go=oe({},[yr,vr,ft],ga);let wt=null;const si=["application/xhtml+xml","text/html"],Nt="text/html";let Pe=null,gt=null;const li=r.createElement("form"),ui=function(x){return x instanceof RegExp||x instanceof Function},br=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(gt&>===x)){if((!x||typeof x!="object")&&(x={}),x=Vt(x),wt=si.indexOf(x.PARSER_MEDIA_TYPE)===-1?Nt:x.PARSER_MEDIA_TYPE,Pe=wt==="application/xhtml+xml"?ga:Sn,I=ut(x,"ALLOWED_TAGS")?oe({},x.ALLOWED_TAGS,Pe):Z,U=ut(x,"ALLOWED_ATTR")?oe({},x.ALLOWED_ATTR,Pe):X,qr=ut(x,"ALLOWED_NAMESPACES")?oe({},x.ALLOWED_NAMESPACES,ga):go,mr=ut(x,"ADD_URI_SAFE_ATTR")?oe(Vt(gr),x.ADD_URI_SAFE_ATTR,Pe):gr,oi=ut(x,"ADD_DATA_URI_TAGS")?oe(Vt(Gr),x.ADD_DATA_URI_TAGS,Pe):Gr,Ct=ut(x,"FORBID_CONTENTS")?oe({},x.FORBID_CONTENTS,Pe):Mt,q=ut(x,"FORBID_TAGS")?oe({},x.FORBID_TAGS,Pe):{},J=ut(x,"FORBID_ATTR")?oe({},x.FORBID_ATTR,Pe):{},Et=ut(x,"USE_PROFILES")?x.USE_PROFILES:!1,Q=x.ALLOW_ARIA_ATTR!==!1,ne=x.ALLOW_DATA_ATTR!==!1,ee=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=x.SAFE_FOR_TEMPLATES||!1,Me=x.SAFE_FOR_XML!==!1,B=x.WHOLE_DOCUMENT||!1,ot=x.RETURN_DOM||!1,Yt=x.RETURN_DOM_FRAGMENT||!1,St=x.RETURN_TRUSTED_TYPE||!1,Xe=x.FORCE_BODY||!1,ii=x.SANITIZE_DOM!==!1,ai=x.SANITIZE_NAMED_PROPS||!1,Hr=x.KEEP_CONTENT!==!1,qt=x.IN_PLACE||!1,O=x.ALLOWED_URI_REGEXP||al,Rt=x.NAMESPACE||ft,W=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&ui(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&ui(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(ne=!1),Yt&&(ot=!0),Et&&(I=oe({},rl),U=[],Et.html===!0&&(oe(I,tl),oe(U,nl)),Et.svg===!0&&(oe(I,ya),oe(U,xa),oe(U,En)),Et.svgFilters===!0&&(oe(I,va),oe(U,xa),oe(U,En)),Et.mathMl===!0&&(oe(I,ba),oe(U,il),oe(U,En))),x.ADD_TAGS&&(I===Z&&(I=Vt(I)),oe(I,x.ADD_TAGS,Pe)),x.ADD_ATTR&&(U===X&&(U=Vt(U)),oe(U,x.ADD_ATTR,Pe)),x.ADD_URI_SAFE_ATTR&&oe(mr,x.ADD_URI_SAFE_ATTR,Pe),x.FORBID_CONTENTS&&(Ct===Mt&&(Ct=Vt(Ct)),oe(Ct,x.FORBID_CONTENTS,Pe)),Hr&&(I["#text"]=!0),B&&oe(I,["html","head","body"]),I.table&&(oe(I,["tbody"]),delete q.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw kr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw kr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=x.TRUSTED_TYPES_POLICY,S=N.createHTML("")}else N===void 0&&(N=Ph(v,i)),N!==null&&typeof S=="string"&&(S=N.createHTML(""));We&&We(x),gt=x}},ci=oe({},["mi","mo","mn","ms","mtext"]),Kr=oe({},["foreignobject","annotation-xml"]),fi=oe({},["title","style","font","a","script"]),di=oe({},[...ya,...va,...bh]),pi=oe({},[...ba,...xh]),hi=function(x){let C=A(x);(!C||!C.tagName)&&(C={namespaceURI:Rt,tagName:"template"});const $=Sn(x.tagName),ie=Sn(C.tagName);return qr[x.namespaceURI]?x.namespaceURI===vr?C.namespaceURI===ft?$==="svg":C.namespaceURI===yr?$==="svg"&&(ie==="annotation-xml"||ci[ie]):!!di[$]:x.namespaceURI===yr?C.namespaceURI===ft?$==="math":C.namespaceURI===vr?$==="math"&&Kr[ie]:!!pi[$]:x.namespaceURI===ft?C.namespaceURI===vr&&!Kr[ie]||C.namespaceURI===yr&&!ci[ie]?!1:!pi[$]&&(fi[$]||!di[$]):!!(wt==="application/xhtml+xml"&&qr[x.namespaceURI]):!1},rt=function(x){Ar(t.removed,{element:x});try{A(x).removeChild(x)}catch{T(x)}},xr=function(x,C){try{Ar(t.removed,{attribute:C.getAttributeNode(x),from:C})}catch{Ar(t.removed,{attribute:null,from:C})}if(C.removeAttribute(x),x==="is"&&!U[x])if(ot||Yt)try{rt(C)}catch{}else try{C.setAttribute(x,"")}catch{}},mi=function(x){let C=null,$=null;if(Xe)x="<remove></remove>"+x;else{const Ee=el(x,/^[\r\n\t ]+/);$=Ee&&Ee[0]}wt==="application/xhtml+xml"&&Rt===ft&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const ie=N?N.createHTML(x):x;if(Rt===ft)try{C=new p().parseFromString(ie,wt)}catch{}if(!C||!C.documentElement){C=D.createDocument(Rt,"template",null);try{C.documentElement.innerHTML=Yr?S:ie}catch{}}const Ae=C.body||C.documentElement;return x&&$&&Ae.insertBefore(r.createTextNode($),Ae.childNodes[0]||null),Rt===ft?h.call(C,B?"html":"body")[0]:B?C.documentElement:Ae},gi=function(x){return G.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},yi=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},g=function(x){return typeof s=="function"&&x instanceof s},w=function(x,C,$){L[x]&&_n(L[x],ie=>{ie.call(t,C,$,gt)})},z=function(x){let C=null;if(w("beforeSanitizeElements",x,null),yi(x))return rt(x),!0;const $=Pe(x.nodeName);if(w("uponSanitizeElement",x,{tagName:$,allowedTags:I}),x.hasChildNodes()&&!g(x.firstElementChild)&&He(/<[/\w]/g,x.innerHTML)&&He(/<[/\w]/g,x.textContent)||x.nodeType===jr.progressingInstruction||Me&&x.nodeType===jr.comment&&He(/<[/\w]/g,x.data))return rt(x),!0;if(!I[$]||q[$]){if(!q[$]&&fe($)&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,$)||W.tagNameCheck instanceof Function&&W.tagNameCheck($)))return!1;if(Hr&&!Ct[$]){const ie=A(x)||x.parentNode,Ae=R(x)||x.childNodes;if(Ae&&ie){const Ee=Ae.length;for(let ve=Ee-1;ve>=0;--ve){const Je=y(Ae[ve],!0);Je.__removalCount=(x.__removalCount||0)+1,ie.insertBefore(Je,j(x))}}}return rt(x),!0}return x instanceof l&&!hi(x)||($==="noscript"||$==="noembed"||$==="noframes")&&He(/<\/no(script|embed|frames)/i,x.innerHTML)?(rt(x),!0):(M&&x.nodeType===jr.text&&(C=x.textContent,_n([V,re,le],ie=>{C=Or(C,ie," ")}),x.textContent!==C&&(Ar(t.removed,{element:x.cloneNode()}),x.textContent=C)),w("afterSanitizeElements",x,null),!1)},K=function(x,C,$){if(ii&&(C==="id"||C==="name")&&($ in r||$ in li))return!1;if(!(ne&&!J[C]&&He(Te,C))){if(!(Q&&He(Y,C))){if(!U[C]||J[C]){if(!(fe(x)&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,x)||W.tagNameCheck instanceof Function&&W.tagNameCheck(x))&&(W.attributeNameCheck instanceof RegExp&&He(W.attributeNameCheck,C)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(C))||C==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,$)||W.tagNameCheck instanceof Function&&W.tagNameCheck($))))return!1}else if(!mr[C]){if(!He(O,Or($,ce,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&x!=="script"&&mh($,"data:")===0&&oi[x])){if(!(ee&&!He(te,Or($,ce,"")))){if($)return!1}}}}}}return!0},fe=function(x){return x!=="annotation-xml"&&el(x,Ge)},ye=function(x){w("beforeSanitizeAttributes",x,null);const{attributes:C}=x;if(!C)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};let ie=C.length;for(;ie--;){const Ae=C[ie],{name:Ee,namespaceURI:ve,value:Je}=Ae,Kt=Pe(Ee);let Ne=Ee==="value"?Je:gh(Je);if($.attrName=Kt,$.attrValue=Ne,$.keepAttr=!0,$.forceKeepAttr=void 0,w("uponSanitizeAttribute",x,$),Ne=$.attrValue,Me&&He(/((--!?|])>)|<\/(style|title)/i,Ne)){xr(Ee,x);continue}if($.forceKeepAttr||(xr(Ee,x),!$.keepAttr))continue;if(!Ie&&He(/\/>/i,Ne)){xr(Ee,x);continue}M&&_n([V,re,le],Af=>{Ne=Or(Ne,Af," ")});const wf=Pe(x.nodeName);if(K(wf,Kt,Ne)){if(ai&&(Kt==="id"||Kt==="name")&&(xr(Ee,x),Ne=Wr+Ne),N&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ve)switch(v.getAttributeType(wf,Kt)){case"TrustedHTML":{Ne=N.createHTML(Ne);break}case"TrustedScriptURL":{Ne=N.createScriptURL(Ne);break}}try{ve?x.setAttributeNS(ve,Ee,Ne):x.setAttribute(Ee,Ne),yi(x)?rt(x):Qs(t.removed)}catch{}}}w("afterSanitizeAttributes",x,null)},ue=function k(x){let C=null;const $=gi(x);for(w("beforeSanitizeShadowDOM",x,null);C=$.nextNode();)w("uponSanitizeShadowNode",C,null),!z(C)&&(C.content instanceof a&&k(C.content),ye(C));w("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(k){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,$=null,ie=null,Ae=null;if(Yr=!k,Yr&&(k="<!-->"),typeof k!="string"&&!g(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw kr("dirty is not a string, aborting")}else throw kr("toString is not a function");if(!t.isSupported)return k;if(Ye||br(x),t.removed=[],typeof k=="string"&&(qt=!1),qt){if(k.nodeName){const Je=Pe(k.nodeName);if(!I[Je]||q[Je])throw kr("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof s)C=mi("<!---->"),$=C.ownerDocument.importNode(k,!0),$.nodeType===jr.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?C=$:C.appendChild($);else{if(!ot&&!M&&!B&&k.indexOf("<")===-1)return N&&St?N.createHTML(k):k;if(C=mi(k),!C)return ot?null:St?S:""}C&&Xe&&rt(C.firstChild);const Ee=gi(qt?k:C);for(;ie=Ee.nextNode();)z(ie)||(ie.content instanceof a&&ue(ie.content),ye(ie));if(qt)return k;if(ot){if(Yt)for(Ae=se.call(C.ownerDocument);C.firstChild;)Ae.appendChild(C.firstChild);else Ae=C;return(U.shadowroot||U.shadowrootmode)&&(Ae=F.call(n,Ae,!0)),Ae}let ve=B?C.outerHTML:C.innerHTML;return B&&I["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&He(ol,C.ownerDocument.doctype.name)&&(ve="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
120
|
-
`+ve),M&&_n([V,re,le],Je=>{ve=Or(ve,Je," ")}),N&&St?N.createHTML(ve):ve},t.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(k),Ye=!0},t.clearConfig=function(){gt=null,Ye=!1},t.isValidAttribute=function(k,x,C){gt||br({});const $=Pe(k),ie=Pe(x);return K($,ie,C)},t.addHook=function(k,x){typeof x=="function"&&(L[k]=L[k]||[],Ar(L[k],x))},t.removeHook=function(k){if(L[k])return Qs(L[k])},t.removeHooks=function(k){L[k]&&(L[k]=[])},t.removeAllHooks=function(){L={}},t}var jh=ll();const Ih={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},Cn=_.memo(({id:e,entry:t,loading:r,rightBorder:n,children:i,onClickEntry:a,customElement:o,sanitize:s,...l})=>{const u={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:f}=b.useProps("Field",u,l),c={};Object.entries(f).forEach(([m,y])=>{typeof y=="function"&&(c[m]=y(t))});let p;s&&(p=jh.sanitize(i));const v=b.useStyles({name:"Field",props:l,classes:Ih});return d.jsx(b.Table.Td,{...v("field"),onClick:a?()=>a(e,t):null,...l,children:d.jsx(b.Box,{w:"100%",children:d.jsx(b.Skeleton,{visible:r,children:o||(typeof i!="object"?d.jsx(b.Text,{...f,...c,children:p||i}):p||i)})})})});Cn.displayName="Field";const ul={row:"_row_138r2_1",selected:"_selected_138r2_5"};function Dh({entry:e,selected:t,children:r}){const n=b.useStyles({name:"Row",classes:ul}),i=b.useProps("Row",{},{});Object.entries(i).forEach(([s,l])=>{typeof l=="function"&&(i[s]=l(e))});var{className:a,style:o}=n("row");return a=`${a} ${t?ul.selected:""}`,d.jsx(b.Table.Tr,{className:a,style:{...o},...i,children:r})}function $h({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let i=e==null?void 0:e[t];return typeof i=="function"&&(i=i({id:r,...n})),i===null?null:i||d.jsx(ms,{id:r})}function Mh({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:i,toggleRow:a,onClickEntry:o,bodyCustomizer:s}){const l=e.list_columns.includes("actions")?"_actions":"actions";return d.jsx(b.Table.Tbody,{children:e.result.length?e.result.map((u,f)=>{const c=e.ids[f];return d.jsxs(Dh,{entry:{...u,id:c},children:[n?null:d.jsx(Cn,{loading:t,children:d.jsx(b.Checkbox,{pl:2,checked:i.includes(Fe(c)),onChange:p=>{a(Fe(c))}})},f),r?null:d.jsx(Cn,{loading:t,children:d.jsx($h,{bodyCustomizer:s,actionColumn:l,id:Fe(c),entry:u})}),e.list_columns.map((p,v)=>{let m=s==null?void 0:s[p];return typeof m=="function"&&(m=m({id:c,...u})),m===null?null:d.jsx(Cn,{id:Fe(c),entry:u,loading:t,onClickEntry:o,customElement:m,sanitize:!0,children:Xi(u,p)},v)})]},Fe(c))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:d.jsx(b.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available..."})})})})}const Rh={scrollbar:"_scrollbar_isyo2_1"};function Nh({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:i,hideCheckbox:a,hideDownload:o,headerCustomizer:s,bodyCustomizer:l,...u}){const f=b.useMantineTheme(),c=b.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),p=b.useProps("DatagridTable",c,u),{data:v,info:m}=$e(),[y,T]=_.useState([]),[j,R]=_.useState(!1),A=S=>{T(D=>D.includes(S)?D.filter(G=>G!==S):[...D,S])},N=()=>{T(S=>S.length===v.ids.length?[]:v.ids.map((D,G)=>D))};return _.useEffect(()=>{R(y.length===v.result.length&&y.length>0),n&&n(y),e==null||e.setSelectedIds(y.map(S=>S))},[y]),_.useEffect(()=>{T([]),n&&n([])},[v]),d.jsx(b.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:Rh,children:d.jsxs(b.Table,{stickyHeader:!0,...p,children:[d.jsx(us,{data:v,info:m,hideActions:t,hideCheckbox:a,allChecked:j,setSelection:T,toggleAll:N,headerCustomizer:s}),d.jsx(Mh,{data:v,loading:r,hideActions:t,hideCheckbox:a,selection:y,setSelection:T,toggleRow:A,onClickEntry:i,bodyCustomizer:l})]})})}const cl=_.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=$e(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],a=String(r.page_size),[o,s]=_.useState(r.page);_.useEffect(()=>{s(r.page)},[r.page]);const l=f=>{s(f-1),n({page:f-1})},u=f=>{n({page_size:parseInt(f,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(b.Divider,{}),d.jsxs(b.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(b.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(b.Text,{children:"Rows per page:"}),d.jsx(b.Select,{value:a,defaultValue:a,onChange:f=>u(f),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(b.Pagination,{size:"sm",total:Math.ceil(t.count/a),value:o+1,onChange:l,...e})]})]})});cl.displayName="Pagination";function Fh(){const{error:e}=$e(),[t,r]=_.useState(!1);return _.useEffect(()=>{e&&r(!0)},[e]),d.jsx(b.Modal,{opened:t,onClose:()=>r(!1),title:d.jsxs(b.Group,{children:[d.jsx(Wd,{size:16,color:"red"}),d.jsx(b.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(b.Text,{children:e.message}):null})}const Ta=_.forwardRef((e,t)=>{const{path:r,data:n,loading:i,info:a,setQueryParams:o}=$e(),{hideToolbar:s=!1,hideFilter:l=!1,hideAdd:u=!1,hideSettings:f=!1,hideActions:c=!1,hidePagination:p=!1,hideError:v=!1,hideDownload:m=!0,onSelectCheckbox:y=null,onClickEntry:T=null,fetchOnMount:j=!0,bulkActions:R=null,styles:A,headerCustomizer:N={},bodyCustomizer:S={},toolbarCustomizer:D={}}=e;if(_.useEffect(()=>{!n&&j&&o({})},[n]),!a)return;const G=R===null;return d.jsxs(b.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...A},children:[s?null:d.jsx(ss,{hideFilter:l,hideAdd:u,hideSettings:f,hideDownload:m,toolbarCustomizer:D}),n?d.jsx(Nh,{bulkActions:R,hideActions:c,loading:i,onSelectCheckbox:y,onClickEntry:T,hideCheckbox:G,hideDownload:m,headerCustomizer:N,bodyCustomizer:S}):null,!p&&n?d.jsx(cl,{}):null,v?null:d.jsx(Fh,{})]})});Ta.displayName="DataGrid";function Lh({children:e,fetch:t=!0,loading:r=d.jsx(b.Center,{children:d.jsx(b.Loader,{})}),end:n=d.jsx(b.Center,{children:"End of data"}),fetchWrapper:i=b.Center,fetchWrapperProps:a}){const{streaming:o,loading:s}=$e(),{ref:l,inViewport:u}=At.useInViewport(),f=_.useMemo(()=>Object.values(o.data).flat(),[o.data]),c=_.useMemo(()=>typeof e=="function"?e(f):e,[e,f]);return _.useEffect(()=>{u&&t&&o.fetch()},[u]),d.jsxs(d.Fragment,{children:[c,s&&r,o.isEnd&&n,d.jsx(i,{ref:l,id:"IS-load-trigger",mih:"1%",...a})]})}var zh=Object.prototype;function Bh(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zh;return e===r}var wn=Bh;function Uh(e,t){return function(r){return e(t(r))}}var fl=Uh,Vh=fl,Wh=Vh(Object.keys,Object),Hh=Wh,Gh=wn,Yh=Hh,qh=Object.prototype,Kh=qh.hasOwnProperty;function Xh(e){if(!Gh(e))return Yh(e);var t=[];for(var r in Object(e))Kh.call(e,r)&&r!="constructor"&&t.push(r);return t}var Jh=Xh,Zh=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,dl=Zh,Qh=dl,em=typeof self=="object"&&self&&self.Object===Object&&self,tm=Qh||em||Function("return this")(),ct=tm,rm=ct,nm=rm.Symbol,An=nm,pl=An,hl=Object.prototype,im=hl.hasOwnProperty,am=hl.toString,Ir=pl?pl.toStringTag:void 0;function om(e){var t=im.call(e,Ir),r=e[Ir];try{e[Ir]=void 0;var n=!0}catch{}var i=am.call(e);return n&&(t?e[Ir]=r:delete e[Ir]),i}var sm=om,lm=Object.prototype,um=lm.toString;function cm(e){return um.call(e)}var fm=cm,ml=An,dm=sm,pm=fm,hm="[object Null]",mm="[object Undefined]",gl=ml?ml.toStringTag:void 0;function gm(e){return e==null?e===void 0?mm:hm:gl&&gl in Object(e)?dm(e):pm(e)}var er=gm;function ym(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bt=ym,vm=er,bm=bt,xm="[object AsyncFunction]",Tm="[object Function]",_m="[object GeneratorFunction]",Sm="[object Proxy]";function Em(e){if(!bm(e))return!1;var t=vm(e);return t==Tm||t==_m||t==xm||t==Sm}var _a=Em,Cm=ct,wm=Cm["__core-js_shared__"],Am=wm,Sa=Am,yl=function(){var e=/[^.]+$/.exec(Sa&&Sa.keys&&Sa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Om(e){return!!yl&&yl in e}var km=Om,Pm=Function.prototype,jm=Pm.toString;function Im(e){if(e!=null){try{return jm.call(e)}catch{}try{return e+""}catch{}}return""}var vl=Im,Dm=_a,$m=km,Mm=bt,Rm=vl,Nm=/[\\^$.*+?()[\]{}|]/g,Fm=/^\[object .+?Constructor\]$/,Lm=Function.prototype,zm=Object.prototype,Bm=Lm.toString,Um=zm.hasOwnProperty,Vm=RegExp("^"+Bm.call(Um).replace(Nm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wm(e){if(!Mm(e)||$m(e))return!1;var t=Dm(e)?Vm:Fm;return t.test(Rm(e))}var Hm=Wm;function Gm(e,t){return e==null?void 0:e[t]}var Ym=Gm,qm=Hm,Km=Ym;function Xm(e,t){var r=Km(e,t);return qm(r)?r:void 0}var Wt=Xm,Jm=Wt,Zm=ct,Qm=Jm(Zm,"DataView"),eg=Qm,tg=Wt,rg=ct,ng=tg(rg,"Map"),Ea=ng,ig=Wt,ag=ct,og=ig(ag,"Promise"),sg=og,lg=Wt,ug=ct,cg=lg(ug,"Set"),bl=cg,fg=Wt,dg=ct,pg=fg(dg,"WeakMap"),hg=pg,Ca=eg,wa=Ea,Aa=sg,Oa=bl,ka=hg,xl=er,tr=vl,Tl="[object Map]",mg="[object Object]",_l="[object Promise]",Sl="[object Set]",El="[object WeakMap]",Cl="[object DataView]",gg=tr(Ca),yg=tr(wa),vg=tr(Aa),bg=tr(Oa),xg=tr(ka),Ht=xl;(Ca&&Ht(new Ca(new ArrayBuffer(1)))!=Cl||wa&&Ht(new wa)!=Tl||Aa&&Ht(Aa.resolve())!=_l||Oa&&Ht(new Oa)!=Sl||ka&&Ht(new ka)!=El)&&(Ht=function(e){var t=xl(e),r=t==mg?e.constructor:void 0,n=r?tr(r):"";if(n)switch(n){case gg:return Cl;case yg:return Tl;case vg:return _l;case bg:return Sl;case xg:return El}return t});var Tg=Ht;function _g(e){return e!=null&&typeof e=="object"}var rr=_g,Sg=er,Eg=rr,Cg="[object Arguments]";function wg(e){return Eg(e)&&Sg(e)==Cg}var Ag=wg,wl=Ag,Og=rr,Al=Object.prototype,kg=Al.hasOwnProperty,Pg=Al.propertyIsEnumerable,jg=wl(function(){return arguments}())?wl:function(e){return Og(e)&&kg.call(e,"callee")&&!Pg.call(e,"callee")},On=jg,Ig=Array.isArray,Dr=Ig,Dg=9007199254740991;function $g(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Dg}var Ol=$g,Mg=_a,Rg=Ol;function Ng(e){return e!=null&&Rg(e.length)&&!Mg(e)}var kn=Ng,Pn={exports:{}};function Fg(){return!1}var Lg=Fg;Pn.exports,function(e,t){var r=ct,n=Lg,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Pn,Pn.exports);var Pa=Pn.exports,zg=er,Bg=Ol,Ug=rr,Vg="[object Arguments]",Wg="[object Array]",Hg="[object Boolean]",Gg="[object Date]",Yg="[object Error]",qg="[object Function]",Kg="[object Map]",Xg="[object Number]",Jg="[object Object]",Zg="[object RegExp]",Qg="[object Set]",ey="[object String]",ty="[object WeakMap]",ry="[object ArrayBuffer]",ny="[object DataView]",iy="[object Float32Array]",ay="[object Float64Array]",oy="[object Int8Array]",sy="[object Int16Array]",ly="[object Int32Array]",uy="[object Uint8Array]",cy="[object Uint8ClampedArray]",fy="[object Uint16Array]",dy="[object Uint32Array]",Se={};Se[iy]=Se[ay]=Se[oy]=Se[sy]=Se[ly]=Se[uy]=Se[cy]=Se[fy]=Se[dy]=!0,Se[Vg]=Se[Wg]=Se[ry]=Se[Hg]=Se[ny]=Se[Gg]=Se[Yg]=Se[qg]=Se[Kg]=Se[Xg]=Se[Jg]=Se[Zg]=Se[Qg]=Se[ey]=Se[ty]=!1;function py(e){return Ug(e)&&Bg(e.length)&&!!Se[zg(e)]}var hy=py;function my(e){return function(t){return e(t)}}var gy=my,jn={exports:{}};jn.exports,function(e,t){var r=dl,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(jn,jn.exports);var yy=jn.exports,vy=hy,by=gy,kl=yy,Pl=kl&&kl.isTypedArray,xy=Pl?by(Pl):vy,ja=xy,Ty=Jh,_y=Tg,Sy=On,Ey=Dr,Cy=kn,wy=Pa,Ay=wn,Oy=ja,ky="[object Map]",Py="[object Set]",jy=Object.prototype,Iy=jy.hasOwnProperty;function Dy(e){if(e==null)return!0;if(Cy(e)&&(Ey(e)||typeof e=="string"||typeof e.splice=="function"||wy(e)||Oy(e)||Sy(e)))return!e.length;var t=_y(e);if(t==ky||t==Py)return!e.size;if(Ay(e))return!Ty(e).length;for(var r in e)if(Iy.call(e,r))return!1;return!0}var $y=Dy;const jl=yt($y),Il=(e,t,r,n,i,a,o)=>e.map((s,l)=>d.jsx(b.Grid.Col,{span:i==="row"?12/e.length:12,style:{alignContent:"end"},children:d.jsx(_e.JsonFormsDispatch,{uischema:s,schema:t,path:r,enabled:n,renderers:a,cells:o})},`${r}-${l}`)),My=({elements:e,schema:t,path:r,enabled:n,direction:i,renderers:a,cells:o})=>jl(e)?null:d.jsx(b.Grid,{spacing:i==="row"?2:0,children:Il(e,t,r,n,i,a,o)}),Ia=_.memo(My),Ry=e=>function(r){const n=_e.useJsonForms(),i=H.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var Ny=ct,Fy=function(){return Ny.Date.now()},Ly=Fy,zy=/\s/;function By(e){for(var t=e.length;t--&&zy.test(e.charAt(t)););return t}var Uy=By,Vy=Uy,Wy=/^\s+/;function Hy(e){return e&&e.slice(0,Vy(e)+1).replace(Wy,"")}var Gy=Hy,Yy=er,qy=rr,Ky="[object Symbol]";function Xy(e){return typeof e=="symbol"||qy(e)&&Yy(e)==Ky}var Dl=Xy,Jy=Gy,$l=bt,Zy=Dl,Ml=NaN,Qy=/^[-+]0x[0-9a-f]+$/i,e0=/^0b[01]+$/i,t0=/^0o[0-7]+$/i,r0=parseInt;function n0(e){if(typeof e=="number")return e;if(Zy(e))return Ml;if($l(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$l(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Jy(e);var r=e0.test(e);return r||t0.test(e)?r0(e.slice(2),r?2:8):Qy.test(e)?Ml:+e}var Rl=n0,i0=bt,Da=Ly,Nl=Rl,a0="Expected a function",o0=Math.max,s0=Math.min;function l0(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(a0);t=Nl(t)||0,i0(r)&&(f=!!r.leading,c="maxWait"in r,a=c?o0(Nl(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function v(D){var G=n,se=i;return n=i=void 0,u=D,o=e.apply(se,G),o}function m(D){return u=D,s=setTimeout(j,t),f?v(D):o}function y(D){var G=D-l,se=D-u,h=t-G;return c?s0(h,a-se):h}function T(D){var G=D-l,se=D-u;return l===void 0||G>=t||G<0||c&&se>=a}function j(){var D=Da();if(T(D))return R(D);s=setTimeout(j,y(D))}function R(D){return s=void 0,p&&n?v(D):(n=i=void 0,o)}function A(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function N(){return s===void 0?o:R(Da())}function S(){var D=Da(),G=T(D);if(n=arguments,i=this,l=D,G){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(j,t),v(l)}return s===void 0&&(s=setTimeout(j,t)),o}return S.cancel=A,S.flush=N,S}var u0=l0;const c0=yt(u0),Fl=(e,t,r,n,i,a=300)=>{const[o,s]=_.useState(r??t);_.useEffect(()=>{s(r??t)},[r]);const l=_.useCallback(c0(c=>e(n,c),a),[e,n,a]),u=_.useCallback(c=>{const p=i(c);s(p??t),l(p)},[l,i]),f=_.useCallback(()=>{s(t),e(n,void 0)},[t,e,n]);return[o,u,f]},f0=e=>e===""?void 0:parseFloat(e),d0=e=>f0(e),In=_.memo(function(t){const{allowDecimal:r,className:n,data:i,description:a,errors:o,enabled:s,handleChange:l,label:u,path:f,required:c,hideControls:p}=t,[v,m]=Fl(l,"",i,f,d0);return d.jsx(b.NumberInput,{label:u,description:a,error:o,required:c,value:v,onChange:m,className:n,disabled:!s,allowDecimal:r,hideControls:p,w:"100%"})});function p0(){this.__data__=[],this.size=0}var h0=p0;function m0(e,t){return e===t||e!==e&&t!==t}var Dn=m0,g0=Dn;function y0(e,t){for(var r=e.length;r--;)if(g0(e[r][0],t))return r;return-1}var $n=y0,v0=$n,b0=Array.prototype,x0=b0.splice;function T0(e){var t=this.__data__,r=v0(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():x0.call(t,r,1),--this.size,!0}var _0=T0,S0=$n;function E0(e){var t=this.__data__,r=S0(t,e);return r<0?void 0:t[r][1]}var C0=E0,w0=$n;function A0(e){return w0(this.__data__,e)>-1}var O0=A0,k0=$n;function P0(e,t){var r=this.__data__,n=k0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var j0=P0,I0=h0,D0=_0,$0=C0,M0=O0,R0=j0;function nr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nr.prototype.clear=I0,nr.prototype.delete=D0,nr.prototype.get=$0,nr.prototype.has=M0,nr.prototype.set=R0;var Mn=nr,N0=Mn;function F0(){this.__data__=new N0,this.size=0}var L0=F0;function z0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var B0=z0;function U0(e){return this.__data__.get(e)}var V0=U0;function W0(e){return this.__data__.has(e)}var H0=W0,G0=Wt,Y0=G0(Object,"create"),Rn=Y0,Ll=Rn;function q0(){this.__data__=Ll?Ll(null):{},this.size=0}var K0=q0;function X0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var J0=X0,Z0=Rn,Q0="__lodash_hash_undefined__",ev=Object.prototype,tv=ev.hasOwnProperty;function rv(e){var t=this.__data__;if(Z0){var r=t[e];return r===Q0?void 0:r}return tv.call(t,e)?t[e]:void 0}var nv=rv,iv=Rn,av=Object.prototype,ov=av.hasOwnProperty;function sv(e){var t=this.__data__;return iv?t[e]!==void 0:ov.call(t,e)}var lv=sv,uv=Rn,cv="__lodash_hash_undefined__";function fv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=uv&&t===void 0?cv:t,this}var dv=fv,pv=K0,hv=J0,mv=nv,gv=lv,yv=dv;function ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ir.prototype.clear=pv,ir.prototype.delete=hv,ir.prototype.get=mv,ir.prototype.has=gv,ir.prototype.set=yv;var vv=ir,zl=vv,bv=Mn,xv=Ea;function Tv(){this.size=0,this.__data__={hash:new zl,map:new(xv||bv),string:new zl}}var _v=Tv;function Sv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ev=Sv,Cv=Ev;function wv(e,t){var r=e.__data__;return Cv(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Nn=wv,Av=Nn;function Ov(e){var t=Av(this,e).delete(e);return this.size-=t?1:0,t}var kv=Ov,Pv=Nn;function jv(e){return Pv(this,e).get(e)}var Iv=jv,Dv=Nn;function $v(e){return Dv(this,e).has(e)}var Mv=$v,Rv=Nn;function Nv(e,t){var r=Rv(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Fv=Nv,Lv=_v,zv=kv,Bv=Iv,Uv=Mv,Vv=Fv;function ar(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ar.prototype.clear=Lv,ar.prototype.delete=zv,ar.prototype.get=Bv,ar.prototype.has=Uv,ar.prototype.set=Vv;var Bl=ar,Wv=Mn,Hv=Ea,Gv=Bl,Yv=200;function qv(e,t){var r=this.__data__;if(r instanceof Wv){var n=r.__data__;if(!Hv||n.length<Yv-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gv(n)}return r.set(e,t),this.size=r.size,this}var Kv=qv,Xv=Mn,Jv=L0,Zv=B0,Qv=V0,eb=H0,tb=Kv;function or(e){var t=this.__data__=new Xv(e);this.size=t.size}or.prototype.clear=Jv,or.prototype.delete=Zv,or.prototype.get=Qv,or.prototype.has=eb,or.prototype.set=tb;var rb=or,nb=Wt,ib=function(){try{var e=nb(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ul=ib,Vl=Ul;function ab(e,t,r){t=="__proto__"&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $a=ab,ob=$a,sb=Dn;function lb(e,t,r){(r!==void 0&&!sb(e[t],r)||r===void 0&&!(t in e))&&ob(e,t,r)}var Wl=lb;function ub(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var cb=ub,fb=cb,db=fb(),pb=db,Fn={exports:{}};Fn.exports,function(e,t){var r=ct,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var c=u.length,p=s?s(c):new u.constructor(c);return u.copy(p),p}e.exports=l}(Fn,Fn.exports);var hb=Fn.exports,mb=ct,gb=mb.Uint8Array,yb=gb,Hl=yb;function vb(e){var t=new e.constructor(e.byteLength);return new Hl(t).set(new Hl(e)),t}var bb=vb,xb=bb;function Tb(e,t){var r=t?xb(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var _b=Tb;function Sb(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Eb=Sb,Cb=bt,Gl=Object.create,wb=function(){function e(){}return function(t){if(!Cb(t))return{};if(Gl)return Gl(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Ab=wb,Ob=fl,kb=Ob(Object.getPrototypeOf,Object),Yl=kb,Pb=Ab,jb=Yl,Ib=wn;function Db(e){return typeof e.constructor=="function"&&!Ib(e)?Pb(jb(e)):{}}var $b=Db,Mb=kn,Rb=rr;function Nb(e){return Rb(e)&&Mb(e)}var ql=Nb,Fb=er,Lb=Yl,zb=rr,Bb="[object Object]",Ub=Function.prototype,Vb=Object.prototype,Kl=Ub.toString,Wb=Vb.hasOwnProperty,Hb=Kl.call(Object);function Gb(e){if(!zb(e)||Fb(e)!=Bb)return!1;var t=Lb(e);if(t===null)return!0;var r=Wb.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Kl.call(r)==Hb}var Yb=Gb;function qb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xl=qb,Kb=$a,Xb=Dn,Jb=Object.prototype,Zb=Jb.hasOwnProperty;function Qb(e,t,r){var n=e[t];(!(Zb.call(e,t)&&Xb(n,r))||r===void 0&&!(t in e))&&Kb(e,t,r)}var ex=Qb,tx=ex,rx=$a;function nx(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?rx(r,s,l):tx(r,s,l)}return r}var ix=nx;function ax(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ox=ax,sx=9007199254740991,lx=/^(?:0|[1-9]\d*)$/;function ux(e,t){var r=typeof e;return t=t??sx,!!t&&(r=="number"||r!="symbol"&&lx.test(e))&&e>-1&&e%1==0&&e<t}var Jl=ux,cx=ox,fx=On,dx=Dr,px=Pa,hx=Jl,mx=ja,gx=Object.prototype,yx=gx.hasOwnProperty;function vx(e,t){var r=dx(e),n=!r&&fx(e),i=!r&&!n&&px(e),a=!r&&!n&&!i&&mx(e),o=r||n||i||a,s=o?cx(e.length,String):[],l=s.length;for(var u in e)(t||yx.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||hx(u,l)))&&s.push(u);return s}var bx=vx;function xx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Tx=xx,_x=bt,Sx=wn,Ex=Tx,Cx=Object.prototype,wx=Cx.hasOwnProperty;function Ax(e){if(!_x(e))return Ex(e);var t=Sx(e),r=[];for(var n in e)n=="constructor"&&(t||!wx.call(e,n))||r.push(n);return r}var Ox=Ax,kx=bx,Px=Ox,jx=kn;function Ix(e){return jx(e)?kx(e,!0):Px(e)}var Zl=Ix,Dx=ix,$x=Zl;function Mx(e){return Dx(e,$x(e))}var Rx=Mx,Ql=Wl,Nx=hb,Fx=_b,Lx=Eb,zx=$b,eu=On,tu=Dr,Bx=ql,Ux=Pa,Vx=_a,Wx=bt,Hx=Yb,Gx=ja,ru=Xl,Yx=Rx;function qx(e,t,r,n,i,a,o){var s=ru(e,r),l=ru(t,r),u=o.get(l);if(u){Ql(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var p=tu(l),v=!p&&Ux(l),m=!p&&!v&&Gx(l);f=l,p||v||m?tu(s)?f=s:Bx(s)?f=Lx(s):v?(c=!1,f=Nx(l,!0)):m?(c=!1,f=Fx(l,!0)):f=[]:Hx(l)||eu(l)?(f=s,eu(s)?f=Yx(s):(!Wx(s)||Vx(s))&&(f=zx(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),Ql(e,r,f)}var Kx=qx,Xx=rb,Jx=Wl,Zx=pb,Qx=Kx,eT=bt,tT=Zl,rT=Xl;function nu(e,t,r,n,i){e!==t&&Zx(t,function(a,o){if(i||(i=new Xx),eT(a))Qx(e,t,o,r,nu,n,i);else{var s=n?n(rT(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Jx(e,o,s)}},tT)}var nT=nu;function iT(e){return e}var iu=iT;function aT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var oT=aT,sT=oT,au=Math.max;function lT(e,t,r){return t=au(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=au(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),sT(e,this,s)}}var uT=lT;function cT(e){return function(){return e}}var fT=cT,dT=fT,ou=Ul,pT=iu,hT=ou?function(e,t){return ou(e,"toString",{configurable:!0,enumerable:!1,value:dT(t),writable:!0})}:pT,mT=hT,gT=800,yT=16,vT=Date.now;function bT(e){var t=0,r=0;return function(){var n=vT(),i=yT-(n-r);if(r=n,i>0){if(++t>=gT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xT=bT,TT=mT,_T=xT,ST=_T(TT),ET=ST,CT=iu,wT=uT,AT=ET;function OT(e,t){return AT(wT(e,t,CT),e+"")}var su=OT,kT=Dn,PT=kn,jT=Jl,IT=bt;function DT(e,t,r){if(!IT(r))return!1;var n=typeof t;return(n=="number"?PT(r)&&jT(t,r.length):n=="string"&&t in r)?kT(r[t],e):!1}var lu=DT,$T=su,MT=lu;function RT(e){return $T(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&MT(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var NT=RT,FT=nT,LT=NT,zT=LT(function(e,t,r){FT(e,t,r)}),BT=zT;const uu=yt(BT),cu=_.memo(function(t){const{className:r,config:n,uischema:i,data:a,description:o,errors:s,enabled:l,path:u,handleChange:f,label:c,required:p}=t;return uu({},n,i.options).format==="password"?d.jsx(b.PasswordInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:m=>{f(u,m.currentTarget.value)},className:r,disabled:!l,w:"100%"}):d.jsx(b.TextInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:m=>{f(u,m.currentTarget.value)},className:r,disabled:!l,w:"100%"})}),fu=_.memo(function(t){const{className:r,data:n,description:i,enabled:a,errors:o,handleChange:s,label:l,labelPosition:u,path:f,required:c}=t;return d.jsx(b.Checkbox,{label:l,description:i,error:o,disabled:!a,className:r,labelPosition:u,required:c,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:p=>{s(f,p==="true")}})}),UT=e=>d.jsx(In,{...e}),du=H.rankWith(4,H.isNumberControl),pu=_e.withJsonFormsCellProps(UT),VT=e=>d.jsx(In,{...e}),hu=H.rankWith(3,H.isIntegerControl),mu=_e.withJsonFormsCellProps(VT),WT=e=>d.jsx(cu,{...e}),gu=H.rankWith(2,H.isStringControl),yu=_e.withJsonFormsCellProps(WT),HT=e=>d.jsx(fu,{...e}),vu=H.rankWith(3,H.isBooleanControl),bu=_e.withJsonFormsCellProps(HT),GT=e=>{const{data:t,className:r,enabled:n,path:i,handleChange:a,description:o,errors:s,label:l,required:u}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:o,error:s,required:u,value:t?new Date(t):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);a(i,c.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%"})},xu=H.rankWith(2,H.isDateControl),Tu=_e.withJsonFormsCellProps(GT),YT=e=>{const{description:t,className:r,enabled:n,path:i,handleChange:a,data:o,errors:s,label:l,required:u}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:s,required:u,value:o?new Date(o):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);a(i,c.toISOString().substring(0,10))}},w:"100%"})},_u=H.rankWith(5,H.isDateTimeControl),Su=_e.withJsonFormsControlProps(YT),qT=e=>{const{description:t,data:r,options:n,enabled:i,handleChange:a,className:o,errors:s,label:l,required:u}=e;return d.jsx(b.Select,{data:n,defaultValue:r,label:l,description:t,required:u,error:s,disabled:!i,searchable:!0,onChange:f=>{a(path,f)},className:o,w:"100%"})},Eu=H.rankWith(5,H.isEnumControl),Cu=_e.withJsonFormsEnumProps(_e.withTranslateProps(_.memo(qT)),!1);function KT(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var XT=KT,wu=An,JT=On,ZT=Dr,Au=wu?wu.isConcatSpreadable:void 0;function QT(e){return ZT(e)||JT(e)||!!(Au&&e&&e[Au])}var e1=QT,t1=XT,r1=e1;function Ou(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=r1),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Ou(s,t-1,r,n,i):t1(i,s):n||(i[i.length]=s)}return i}var n1=Ou,i1="__lodash_hash_undefined__";function a1(e){return this.__data__.set(e,i1),this}var o1=a1;function s1(e){return this.__data__.has(e)}var l1=s1,u1=Bl,c1=o1,f1=l1;function Ln(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new u1;++t<r;)this.add(e[t])}Ln.prototype.add=Ln.prototype.push=c1,Ln.prototype.has=f1;var d1=Ln;function p1(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var h1=p1;function m1(e){return e!==e}var g1=m1;function y1(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var v1=y1,b1=h1,x1=g1,T1=v1;function _1(e,t,r){return t===t?T1(e,t,r):b1(e,x1,r)}var S1=_1,E1=S1;function C1(e,t){var r=e==null?0:e.length;return!!r&&E1(e,t,0)>-1}var w1=C1;function A1(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var O1=A1;function k1(e,t){return e.has(t)}var P1=k1;function j1(){}var I1=j1;function D1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ku=D1,Ma=bl,$1=I1,M1=ku,R1=1/0,N1=Ma&&1/M1(new Ma([,-0]))[1]==R1?function(e){return new Ma(e)}:$1,F1=N1,L1=d1,z1=w1,B1=O1,U1=P1,V1=F1,W1=ku,H1=200;function G1(e,t,r){var n=-1,i=z1,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=B1;else if(a>=H1){var u=t?null:V1(e);if(u)return W1(u);o=!1,i=U1,l=new L1}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var p=l.length;p--;)if(l[p]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var Y1=G1,q1=n1,K1=su,X1=Y1,J1=ql,Z1=K1(function(e){return X1(q1(e,1,J1,!0))}),Q1=Z1;const e_=yt(Q1);function t_(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}var r_=t_;function n_(e){return function(t){return e==null?void 0:e[t]}}var i_=n_,a_=i_,o_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},s_=a_(o_),l_=s_;function u_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var c_=u_,Pu=An,f_=c_,d_=Dr,p_=Dl,h_=1/0,ju=Pu?Pu.prototype:void 0,Iu=ju?ju.toString:void 0;function Du(e){if(typeof e=="string")return e;if(d_(e))return f_(e,Du)+"";if(p_(e))return Iu?Iu.call(e):"";var t=e+"";return t=="0"&&1/e==-h_?"-0":t}var m_=Du,g_=m_;function y_(e){return e==null?"":g_(e)}var Ra=y_,v_=l_,b_=Ra,x_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,T_="\\u0300-\\u036f",__="\\ufe20-\\ufe2f",S_="\\u20d0-\\u20ff",E_=T_+__+S_,C_="["+E_+"]",w_=RegExp(C_,"g");function A_(e){return e=b_(e),e&&e.replace(x_,v_).replace(w_,"")}var O_=A_,k_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function P_(e){return e.match(k_)||[]}var j_=P_,I_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function D_(e){return I_.test(e)}var $_=D_,$u="\\ud800-\\udfff",M_="\\u0300-\\u036f",R_="\\ufe20-\\ufe2f",N_="\\u20d0-\\u20ff",F_=M_+R_+N_,Mu="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",L_="\\xac\\xb1\\xd7\\xf7",z_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",B_="\\u2000-\\u206f",U_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nu="A-Z\\xc0-\\xd6\\xd8-\\xde",V_="\\ufe0e\\ufe0f",Fu=L_+z_+B_+U_,Lu="['’]",zu="["+Fu+"]",W_="["+F_+"]",Bu="\\d+",H_="["+Mu+"]",Uu="["+Ru+"]",Vu="[^"+$u+Fu+Bu+Mu+Ru+Nu+"]",G_="\\ud83c[\\udffb-\\udfff]",Y_="(?:"+W_+"|"+G_+")",q_="[^"+$u+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="["+Nu+"]",K_="\\u200d",Gu="(?:"+Uu+"|"+Vu+")",X_="(?:"+sr+"|"+Vu+")",Yu="(?:"+Lu+"(?:d|ll|m|re|s|t|ve))?",qu="(?:"+Lu+"(?:D|LL|M|RE|S|T|VE))?",Ku=Y_+"?",Xu="["+V_+"]?",J_="(?:"+K_+"(?:"+[q_,Wu,Hu].join("|")+")"+Xu+Ku+")*",Z_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",eS=Xu+Ku+J_,tS="(?:"+[H_,Wu,Hu].join("|")+")"+eS,rS=RegExp([sr+"?"+Uu+"+"+Yu+"(?="+[zu,sr,"$"].join("|")+")",X_+"+"+qu+"(?="+[zu,sr+Gu,"$"].join("|")+")",sr+"?"+Gu+"+"+Yu,sr+"+"+qu,Q_,Z_,Bu,tS].join("|"),"g");function nS(e){return e.match(rS)||[]}var iS=nS,aS=j_,oS=$_,sS=Ra,lS=iS;function uS(e,t,r){return e=sS(e),t=r?void 0:t,t===void 0?oS(e)?lS(e):aS(e):e.match(t)||[]}var cS=uS,fS=r_,dS=O_,pS=cS,hS="['’]",mS=RegExp(hS,"g");function gS(e){return function(t){return fS(pS(dS(t).replace(mS,"")),e,"")}}var yS=gS;function vS(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var bS=vS,xS=bS;function TS(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:xS(e,t,r)}var _S=TS,SS="\\ud800-\\udfff",ES="\\u0300-\\u036f",CS="\\ufe20-\\ufe2f",wS="\\u20d0-\\u20ff",AS=ES+CS+wS,OS="\\ufe0e\\ufe0f",kS="\\u200d",PS=RegExp("["+kS+SS+AS+OS+"]");function jS(e){return PS.test(e)}var Ju=jS;function IS(e){return e.split("")}var DS=IS,Zu="\\ud800-\\udfff",$S="\\u0300-\\u036f",MS="\\ufe20-\\ufe2f",RS="\\u20d0-\\u20ff",NS=$S+MS+RS,FS="\\ufe0e\\ufe0f",LS="["+Zu+"]",Na="["+NS+"]",Fa="\\ud83c[\\udffb-\\udfff]",zS="(?:"+Na+"|"+Fa+")",Qu="[^"+Zu+"]",ec="(?:\\ud83c[\\udde6-\\uddff]){2}",tc="[\\ud800-\\udbff][\\udc00-\\udfff]",BS="\\u200d",rc=zS+"?",nc="["+FS+"]?",US="(?:"+BS+"(?:"+[Qu,ec,tc].join("|")+")"+nc+rc+")*",VS=nc+rc+US,WS="(?:"+[Qu+Na+"?",Na,ec,tc,LS].join("|")+")",HS=RegExp(Fa+"(?="+Fa+")|"+WS+VS,"g");function GS(e){return e.match(HS)||[]}var YS=GS,qS=DS,KS=Ju,XS=YS;function JS(e){return KS(e)?XS(e):qS(e)}var ZS=JS,QS=_S,eE=Ju,tE=ZS,rE=Ra;function nE(e){return function(t){t=rE(t);var r=eE(t)?tE(t):void 0,n=r?r[0]:t.charAt(0),i=r?QS(r,1).join(""):t.slice(1);return n[e]()+i}}var iE=nE,aE=iE,oE=aE("toUpperCase"),sE=oE,lE=yS,uE=sE,cE=lE(function(e,t,r){return e+(r?" ":"")+uE(t)}),fE=cE;const dE=yt(fE);var pE=Math.ceil,hE=Math.max;function mE(e,t,r,n){for(var i=-1,a=hE(pE((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var gE=mE,yE=Rl,ic=1/0,vE=17976931348623157e292;function bE(e){if(!e)return e===0?e:0;if(e=yE(e),e===ic||e===-ic){var t=e<0?-1:1;return t*vE}return e===e?e:0}var xE=bE,TE=gE,_E=lu,La=xE;function SE(e){return function(t,r,n){return n&&typeof n!="number"&&_E(t,r,n)&&(r=n=void 0),t=La(t),r===void 0?(r=t,t=0):r=La(r),n=n===void 0?t<r?1:-1:La(n),TE(t,r,n,e)}}var EE=SE,CE=EE,wE=CE(),AE=wE;const OE=yt(AE);function xt(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 ac(e){if(!xt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ac(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return xt(e)&&xt(t)&&Object.keys(t).forEach(i=>{xt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xt(e[i])?n[i]=et(e[i],t[i],r):r.clone?n[i]=xt(t[i])?ac(t[i]):t[i]:n[i]=t[i]}),n}var za={exports:{}},zn={exports:{}},pe={};/** @license React v16.13.1
|
|
118
|
+
*/var Xd=Ue("outline","users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]);function is(...e){const[t,r]=_.useState(!1),n={bg:"transparent",size:"sm",c:"gray"},i=b.useProps("ActionIcon",n,e);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Add Item",children:d.jsx(b.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{r(!0)},children:d.jsx(qi,{})})}),d.jsx(Qo,{opened:t,onClose:()=>{r(!1)}})]})}function Jd({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Zd({form:e,name:t,items:r,onChange:n,...i}){return d.jsx(b.Select,{data:r,searchable:!0,...e.getInputProps(t),onChange:n,...i})}function Qd({form:e,name:t,...r}){const n=b.useCombobox({onDropdownClose:()=>n.resetSelectedOption(),onDropdownOpen:()=>n.updateSelectedOptionIndex("active")}),[i,a]=_.useState([]),[o,s]=_.useState(""),l=c=>{o!==""&&(i.includes(o)||a(p=>[...p,o]),s(""))},u=c=>a(p=>p.filter(v=>v!==c)),f=i.map(c=>d.jsx(b.Pill,{withRemoveButton:!0,onRemove:()=>u(c),children:c},c));return _.useEffect(()=>{const c=e.getInputProps(t).value;if(c)try{a([...c])}catch(p){console.error("Error parsing JSON:",p)}},[]),_.useEffect(()=>{e.getInputProps(t).onChange(i)},[i]),d.jsxs(b.Combobox,{store:n,onOptionSubmit:l,children:[d.jsx(b.Combobox.DropdownTarget,{children:d.jsx(b.PillsInput,{onClick:()=>n.openDropdown(),children:d.jsxs(b.Pill.Group,{children:[f,d.jsx(b.Combobox.EventsTarget,{children:d.jsx(b.PillsInput.Field,{onFocus:()=>n.openDropdown(),onBlur:()=>n.closeDropdown(),value:o,placeholder:"Search values",onChange:c=>{n.updateSelectedOptionIndex(),s(c.currentTarget.value)},onKeyDown:c=>{c.key==="Backspace"&&o.length===0&&(c.preventDefault(),u(i[i.length-1]))}})})]})})}),d.jsx(b.Combobox.Dropdown,{children:d.jsx(b.Combobox.Options,{children:d.jsxs(b.Combobox.Option,{value:"$create",children:["+ Create ",o]})})})]})}function as({onClose:e,...t}){const{info:r,queryParams:n,setQueryParams:i,path:a}=$e(),o=vi.useForm({initialValues:{filters:[]},validate:Hi(Sr({filters:Li().of(Sr({col:on().transform(c=>c||void 0).required("Field is required"),opr:on().transform(c=>c||void 0).required("col is required"),value:an().when("col",{is:c=>c&&r.filters[c].schema.required,then:()=>an().required("Value is required")})}))}))}),s={bg:"transparent",size:"sm",c:"gray"},l=b.useProps("ActionIcon",s,t);_.useEffect(()=>{o.setValues({filters:[]}),o.reset()},[a]),_.useEffect(()=>{if(n.filters&&n.filters.length){const c=n.filters.map(p=>({...p,key:At.randomId()}));o.setFieldValue("filters",c)}},[n.filters]);const u=c=>{const p=c.filters.map(({key:m,...y})=>y),v=JSON.parse(JSON.stringify(p));i({filters:v,page:0}),e()},f=o.values.filters.map((c,p)=>d.jsxs(b.Box,{px:"sm",children:[d.jsxs(b.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(b.Box,{style:{width:"192px"},children:r&&r.filters&&d.jsx(Jd,{form:o,name:`filters.${p}.col`,items:Object.entries(r.filters).map(([v,m])=>({label:m.label,value:String(v)})),onChange:v=>{o.setFieldValue(`filters.${p}`,{col:v,opr:"",value:"",key:At.randomId()})}})}),d.jsx(b.Box,{style:{width:"192px"},children:c.col?d.jsx(Zd,{form:o,name:`filters.${p}.opr`,items:r.filters[c.col].filters.map(v=>({label:v.name,value:v.operator})),onChange:v=>{o.setFieldValue(`filters.${p}`,{col:o.values.filters[p].col,opr:v,value:"",key:At.randomId()})}}):null}),d.jsx(b.Box,{style:{width:"192px"},children:c.col?c.opr==="in"?d.jsx(Qd,{form:o,name:`filters.${p}.value`}):d.jsx(Gi,{form:o,name:`filters.${p}.value`,schema:r.filters[c.col].schema,filter:!0}):null}),d.jsx(b.ActionIcon,{bg:l.bg,size:l.size,c:l.c,onClick:()=>{o.removeListItem("filters",p)},children:d.jsx(ns,{})})]}),o.values.filters.length>1&&p<o.values.filters.length-1?d.jsx(b.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},c.key));return d.jsxs(b.Box,{component:"form",onSubmit:o.onSubmit(u),children:[f.length===0&&d.jsx(b.Box,{style:{width:"642px"},children:d.jsx(b.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(b.ScrollArea.Autosize,{mah:"40vh",mt:20,children:f}),d.jsx(b.Divider,{my:"sm"}),d.jsxs(b.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(b.Button,{variant:"subtle",leftSection:d.jsx(qi,{}),onClick:()=>{o.insertListItem("filters",{col:"",opr:"",value:"",key:At.randomId()})},children:"Add Filter"}),d.jsx(b.Group,{spacing:"md",children:d.jsx(b.Button,{type:"submit",children:"Apply"})})]})]})}function os(...e){const{queryParams:t}=$e(),r={bg:"transparent",size:"sm",c:"gray"},n=b.useProps("ActionIcon",r,e),[i,a]=_.useState(!1);return d.jsxs(b.Popover,{opened:i,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,zIndex:1,children:[d.jsx(b.Popover.Target,{children:d.jsx(b.Tooltip,{opened:i?!1:null,label:"Filter",children:t.filters.length!=0?d.jsx(b.Indicator,{zIndex:20,size:16,label:t.filters.length,children:d.jsx(b.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>a(!0),children:d.jsx(ts,{})})}):d.jsx(b.ActionIcon,{bg:n.bg,size:n.size,c:n.c,onClick:()=>a(!0),children:d.jsx(ts,{})})})}),d.jsxs(b.Popover.Dropdown,{px:"xs",children:[d.jsx(b.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(b.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),d.jsx(as,{onClose:()=>{a(!1)}})]})]})}function ep(...e){const[t,r]=_.useState(!1),{download:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,e);return t?d.jsx(b.Loader,{color:a.c,size:a.size}):d.jsx(b.Tooltip,{label:"Download",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:()=>{r(!0),n("download").then(()=>r(!1))},children:d.jsx(Wd,{})})})}const ss=_.memo(({hideAdd:e,hideFilter:t,hideDownload:r,toolbarCustomizer:n})=>{const{info:i}=$e(),a=_.useMemo(()=>{const s={};return Object.entries(n).forEach(([l,u])=>{s[l]=u,typeof s[l]=="function"&&(s[l]=s[l]())}),s},[n]),o=i.permissions.includes("can_post");return d.jsxs(b.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!r&&(a.download||d.jsx(ep,{})),o&&!e?a.add||d.jsx(is,{}):null,t?null:a.filter||d.jsx(os,{})]})});ss.displayName="Toolbar";const ls={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Ki({column:e,label:t,orderColumn:r,related:n,toggleAll:i,allChecked:a,classNames:o,styles:s,customElement:l,...u}){const{queryParams:f,setQueryParams:c,loading:p}=$e(),v={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},m=b.useStyles({name:"FieldTitle",classes:ls,classNames:o,styles:s,props:u}),y=b.useProps("FieldTitle",v,u),{hovered:T,ref:j}=At.useHover(),R=r&&f.order_column===r,A=m("wrapper");return A.style.cursor=r?A.style.cursor:"auto",d.jsx(b.Table.Th,{className:ls.fieldTitleRoot,...m("root"),onClick:r&&!p?()=>c({order_column:r,order_direction:f.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(b.Box,{ref:j,...A,children:e==="Checkbox"?d.jsx(b.Checkbox,{pb:5,pl:2,onChange:i,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(b.Box,{w:"100%",fw:y.fw,size:"xl",c:T&&r?y.hoverColor:R?y.selectedColor:y.color,children:l||t||e}),n?d.jsx(b.Tooltip,{label:"Related Field",children:d.jsx(b.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(b.Box,{...m("icon"),children:R?f.order_direction==="asc"?d.jsx(Yi,{size:14,strokeWidth:1.5}):d.jsx(es,{size:14,strokeWidth:1.5}):null})})}):d.jsx(b.Box,{...m("icon"),children:R?f.order_direction==="asc"?d.jsx(Yi,{size:14,strokeWidth:1.5}):d.jsx(es,{size:14,strokeWidth:1.5}):null})]})})})}const us=_.memo(({data:e,info:t,settings:r,hideActions:n,hideCheckbox:i,allChecked:a,toggleAll:o,headerCustomizer:s})=>{const l=e.list_columns.includes("actions")?"_actions":"actions";let u=s==null?void 0:s[l];return typeof u=="function"&&(u=u()),d.jsx(b.Table.Thead,{children:d.jsxs(b.Table.Tr,{children:[i?null:d.jsx(Ki,{data:e,column:"Checkbox",allChecked:a,toggleAll:o}),n?null:d.jsx(Ki,{column:"Actions",customElement:u}),e.list_columns.map((f,c)=>{var v;let p=s==null?void 0:s[f];return typeof p=="function"&&(p=p(e.label_columns[f])),p===null?null:d.jsx(Ki,{column:f,label:e.label_columns[f],orderColumn:e.order_columns.find(m=>m===f)||e.order_columns.find(m=>m.startsWith(`${f}.`)),related:((v=t.filters[f])==null?void 0:v.schema.type)==="Nested",customElement:p},f)})]})})});us.displayName="Header";const Xi=(e,t)=>{const r=t.split("."),n=e[r[0]];if(r.length>1&&Array.isArray(n))return n.map(a=>Xi(a,r.slice(1).join("."))).join(", ");const i=t.split(".").reduce((a,o)=>a[o],e);return!i&&typeof i!="boolean"&&typeof i!="number"?null:typeof i=="boolean"?i.toString():Array.isArray(i)?i.map(a=>a.name_||JSON.stringify(a,null,2)).join(", "):typeof i=="object"?i.name_||JSON.stringify(i):i};function cs(e,t){return e===!0||Array.isArray(e)?t:Object.fromEntries(Object.keys(e).map(r=>[r,cs(e[r],t[r])]))}function fs(e,t){if(!e)return e;const r=t.values;if(!r||!r.length)return e;const n=r[0].id;if(!(n instanceof Object))return e;const a=Object.keys(n),o={};return a.forEach(s=>{o[s]=e[s]}),e.id=o,e}function tp(e,t){const r={};return t.forEach(n=>{if(n.type==="Related"){r[n.name]=fs(e.result[n.name],n);return}if(n.type==="RelatedList"){r[n.name]=e.result[n.name].map(i=>fs(i,n));return}r[n.name]=typeof e.result[n.name]=="boolean"?String(e.result[n.name]):e.result[n.name]}),r}function rp({relatedPath:e,...t}){const{path:r}=$e();return De(r?r.substring(0,r.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(Xo,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Ta,{hideToolbar:!0,hideDownload:!1})})}const np=_.memo(rp);function ip({item:e,info:t,loading:r,opened:n,onClose:i,...a}){const o={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:s,tabs:l,tabsList:u,tabsPanel:f}=b.useProps("ViewDialog",o,a);return d.jsxs(b.Modal,{opened:n,onClose:i,title:`${e==null?void 0:e.show_title} (#${Fe(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...s,children:[d.jsx(b.LoadingOverlay,{visible:r}),!r&&e?d.jsxs(b.Tabs,{defaultValue:"details",...l,children:[d.jsxs(b.Tabs.List,{...u,children:[d.jsx(b.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((c,p)=>d.jsx(b.Tabs.Tab,{value:c.name,children:c.name},p))]}),d.jsx(b.Tabs.Panel,{pt:"xs",value:"details",...f,children:d.jsx(b.Paper,{p:"xs",withBorder:!0,children:d.jsx(b.Stack,{spacing:"md",children:d.jsx(b.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((c,p)=>d.jsxs(b.Grid,{maw:500,children:[d.jsx(b.Grid.Col,{span:4,children:d.jsx(b.Text,{size:"md",children:e.label_columns[c]})}),d.jsx(b.Grid.Col,{span:1,children:d.jsx(b.Text,{size:"xs",children:":"})}),d.jsx(b.Grid.Col,{span:6,children:d.jsx(b.Text,{size:"md",children:Xi(e.result,c)})})]},p))})})})}),t.relations.map((c,p)=>d.jsx(b.Tabs.Panel,{pt:"xs",value:c.name,children:d.jsx(b.Paper,{withBorder:!0,children:d.jsx(np,{relatedPath:c.path,id:Fe(e.id),foreign_key:c.foreign_key,type:c.type})})},p))]}):null]})}function ap({id:e,...t}){const{info:r,getEntry:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,t),[o,s]=_.useState(null),[l,u]=_.useState(!1),[f,c]=_.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Details",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(Gd,{})})}),d.jsx(ip,{item:o,info:r,loading:l,opened:f,onClose:()=>c(!1)})]})}function op(e,t){return new Promise(r=>{r(tp(e,t.edit.columns))})}function ds({item:e,info:t,opened:r,onClose:n,...i}){const{updateEntry:a}=$e(),o={modal:{},stack:{},saveButton:{}},{modal:s,stack:l,saveButton:u}=b.useProps("EditDialog",o,i),f=vi.useForm({initialValues:t.edit.defaultValues,validate:Hi(t.edit.schema)}),c=()=>{const v={};return Object.keys(f.values).forEach(m=>{f.isDirty(m)&&(v[m]=!0)}),v};_.useEffect(()=>{e&&op(e,t).then(v=>{f.setValues(v),f.resetDirty(v)})},[e,t.edit.columns]);const p=async v=>{v=cs(c(),v),await a(e.id,v),n()};return _.useEffect(()=>{f.setInitialValues(t.edit.defaultValues),f.reset()},[t.edit.defaultValues]),e?d.jsx(b.Modal,{opened:r,onClose:()=>{n()},title:t.edit.title,size:"lg",centered:!0,...s,children:d.jsx(b.Box,{component:"form",onSubmit:f.onSubmit(p),children:d.jsx(b.Stack,{spacing:"md",...l,children:d.jsxs(b.ScrollArea.Autosize,{mah:450,type:"auto",children:[t.edit.columns.map((v,m)=>d.jsx(Gi,{form:f,name:v.name,label:v.label,description:v.description,schema:v,withAsterisk:v.required},m)),d.jsx(b.Group,{position:"right",mt:"xl",children:d.jsx(b.Button,{type:"submit",...u,children:"Save"})})]})})})}):null}function ps({id:e,...t}){const{info:r,getEntry:n}=$e(),i={bg:"transparent",size:"sm",c:"gray"},a=b.useProps("ActionIcon",i,t),[o,s]=_.useState(null),[l,u]=_.useState(!1),[f,c]=_.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Edit",children:d.jsx(b.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{u(!0);const p=await n(e);p&&(s(p),u(!1),c(!0))},children:d.jsx(Kd,{})})}),d.jsx(ds,{item:o,info:r,opened:f,onClose:()=>c(!1)})]})}function sp({opened:e,onClose:t,handleAccept:r,handleReject:n}){return d.jsxs(b.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(b.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(b.Button,{onClick:n,variant:"default",children:"Abbrechen"}),d.jsx(b.Button,{onClick:r,color:"red",children:"Löschen"})]})]})}function hs({id:e,...t}){const{deleteEntry:r}=$e(),n={bg:"transparent",size:"sm",c:"gray"},i=b.useProps("ActionIcon",n,t),[a,o]=_.useState(!1),s=()=>{o(!1)},l=async()=>{r(e),o(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(b.Tooltip,{label:"Delete",children:d.jsx(b.ActionIcon,{bg:i.bg,size:i.size,c:i.c,onClick:()=>{o(!0)},children:d.jsx(ns,{})})}),d.jsx(sp,{opened:a,onClose:s,handleAccept:l,handleReject:s})]})}function ms({id:e,selected:t}){const{info:r}=$e();return d.jsxs(b.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[r.permissions.includes("can_get")?d.jsx(ap,{id:e}):null,r.permissions.includes("can_put")?d.jsx(ps,{id:e}):null,r.permissions.includes("can_delete")?d.jsx(hs,{id:e}):null]})}var gs={},Ji={},Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.default=fp;var ys="html",vs="head",un="body",lp=/<([a-zA-Z]+[0-9]?)/,bs=/<head[^]*>/i,xs=/<body[^]*>/i,cn=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Qi=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Ts=typeof window=="object"&&window.DOMParser;if(typeof Ts=="function"){var up=new Ts,cp="text/html";Qi=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),up.parseFromString(e,cp)},cn=Qi}if(typeof document=="object"&&document.implementation){var fn=document.implementation.createHTMLDocument();cn=function(e,t){if(t){var r=fn.documentElement.querySelector(t);return r&&(r.innerHTML=e),fn}return fn.documentElement.innerHTML=e,fn}}var dn=typeof document=="object"&&document.createElement("template"),ea;dn&&dn.content&&(ea=function(e){return dn.innerHTML=e,dn.content.childNodes});function fp(e){var t,r,n=e.match(lp),i=n&&n[1]?n[1].toLowerCase():"";switch(i){case ys:{var a=Qi(e);if(!bs.test(e)){var o=a.querySelector(vs);(t=o==null?void 0:o.parentNode)===null||t===void 0||t.removeChild(o)}if(!xs.test(e)){var o=a.querySelector(un);(r=o==null?void 0:o.parentNode)===null||r===void 0||r.removeChild(o)}return a.querySelectorAll(ys)}case vs:case un:{var s=cn(e).querySelectorAll(i);return xs.test(e)&&bs.test(e)?s[0].parentNode.childNodes:s}default:{if(ea)return ea(e);var o=cn(e,un).querySelector(un);return o.childNodes}}}var pn={},ta={},ra={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(ra);var ae={},Pt=Ce&&Ce.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Er=Ce&&Ce.__assign||function(){return Er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Er.apply(this,arguments)};Object.defineProperty(ae,"__esModule",{value:!0}),ae.cloneNode=ae.hasChildren=ae.isDocument=ae.isDirective=ae.isComment=ae.isText=ae.isCDATA=ae.isTag=ae.Element=ae.Document=ae.CDATA=ae.NodeWithChildren=ae.ProcessingInstruction=ae.Comment=ae.Text=ae.DataNode=ae.Node=void 0;var Ke=ra,na=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),ia(this,t)},e}();ae.Node=na;var hn=function(e){Pt(t,e);function t(r){var n=e.call(this)||this;return n.data=r,n}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),t}(na);ae.DataNode=hn;var _s=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Text,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(hn);ae.Text=_s;var Ss=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Comment,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(hn);ae.Comment=Ss;var Es=function(e){Pt(t,e);function t(r,n){var i=e.call(this,n)||this;return i.name=r,i.type=Ke.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(hn);ae.ProcessingInstruction=Es;var mn=function(e){Pt(t,e);function t(r){var n=e.call(this)||this;return n.children=r,n}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),t}(na);ae.NodeWithChildren=mn;var Cs=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.CDATA,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(mn);ae.CDATA=Cs;var ws=function(e){Pt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Ke.ElementType.Root,r}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(mn);ae.Document=ws;var As=function(e){Pt(t,e);function t(r,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=r==="script"?Ke.ElementType.Script:r==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,i)||this;return o.name=r,o.attribs=n,o.type=a,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,a;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),t}(mn);ae.Element=As;function Os(e){return(0,Ke.isTag)(e)}ae.isTag=Os;function ks(e){return e.type===Ke.ElementType.CDATA}ae.isCDATA=ks;function Ps(e){return e.type===Ke.ElementType.Text}ae.isText=Ps;function js(e){return e.type===Ke.ElementType.Comment}ae.isComment=js;function Is(e){return e.type===Ke.ElementType.Directive}ae.isDirective=Is;function Ds(e){return e.type===Ke.ElementType.Root}ae.isDocument=Ds;function dp(e){return Object.prototype.hasOwnProperty.call(e,"children")}ae.hasChildren=dp;function ia(e,t){t===void 0&&(t=!1);var r;if(Ps(e))r=new _s(e.data);else if(js(e))r=new Ss(e.data);else if(Os(e)){var n=t?aa(e.children):[],i=new As(e.name,Er({},e.attribs),n);n.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Er({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Er({},e["x-attribsPrefix"])),r=i}else if(ks(e)){var n=t?aa(e.children):[],a=new Cs(n);n.forEach(function(u){return u.parent=a}),r=a}else if(Ds(e)){var n=t?aa(e.children):[],o=new ws(n);n.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),r=o}else if(Is(e)){var s=new Es(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(e.type));return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}ae.cloneNode=ia;function aa(e){for(var t=e.map(function(n){return ia(n,!0)}),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}(function(e){var t=Ce&&Ce.__createBinding||(Object.create?function(s,l,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(l,u);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,f,c)}:function(s,l,u,f){f===void 0&&(f=u),s[f]=l[u]}),r=Ce&&Ce.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=ra,i=ae;r(ae,e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function s(l,u,f){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(f=u,u=a),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??a,this.elementCB=f??null}return s.prototype.onparserinit=function(l){this.parser=l},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(l){this.handleCallback(l)},s.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},s.prototype.onopentag=function(l,u){var f=this.options.xmlMode?n.ElementType.Tag:void 0,c=new i.Element(l,u,void 0,f);this.addNode(c),this.tagStack.push(c)},s.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===n.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var f=new i.Text(l);this.addNode(f),this.lastNode=f}},s.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(l,u){var f=new i.ProcessingInstruction(l,u);this.addNode(f)},s.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},s.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],f=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),f&&(l.prev=f,f.next=l),l.parent=u,this.lastNode=null},s}();e.DomHandler=o,e.default=o})(ta);var $s={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{})})($s),Object.defineProperty(pn,"__esModule",{value:!0}),pn.formatAttributes=Ms,pn.formatDOM=Rs;var gn=ta,pp=$s;function hp(e){return pp.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function Ms(e){for(var t={},r=0,n=e.length;r<n;r++){var i=e[r];t[i.name]=i.value}return t}function mp(e){e=e.toLowerCase();var t=hp(e);return t||e}function Rs(e,t,r){t===void 0&&(t=null);for(var n=[],i,a=0,o=e.length;a<o;a++){var s=e[a];switch(s.nodeType){case 1:{var l=mp(s.nodeName);i=new gn.Element(l,Ms(s.attributes)),i.children=Rs(l==="template"?s.content.childNodes:s.childNodes,i);break}case 3:i=new gn.Text(s.nodeValue);break;case 8:i=new gn.Comment(s.nodeValue);break;default:continue}var u=n[a-1]||null;u&&(u.next=i),i.parent=t,i.prev=u,i.next=null,n.push(i)}return r&&(i=new gn.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),i.next=n[0]||null,i.parent=t,n.unshift(i),n[1]&&(n[1].prev=n[0])),n}var gp=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=xp;var yp=gp(Zi),vp=pn,bp=/<(![a-zA-Z\s]+)>/;function xp(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(bp),r=t?t[1]:void 0;return(0,vp.formatDOM)((0,yp.default)(e),null,r)}var yn={},lt={},vn={},Tp=0;vn.SAME=Tp;var _p=1;vn.CAMELCASE=_p,vn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};const Ns=0,jt=1,bn=2,xn=3,oa=4,Fs=5,Ls=6;function Sp(e){return Re.hasOwnProperty(e)?Re[e]:null}function Ve(e,t,r,n,i,a,o){this.acceptsBooleans=t===bn||t===xn||t===oa,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}const Re={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{Re[e]=new Ve(e,Ns,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{Re[e]=new Ve(e,jt,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{Re[e]=new Ve(e,bn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{Re[e]=new Ve(e,bn,!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"].forEach(e=>{Re[e]=new Ve(e,xn,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{Re[e]=new Ve(e,xn,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{Re[e]=new Ve(e,oa,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{Re[e]=new Ve(e,Ls,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{Re[e]=new Ve(e,Fs,!1,e.toLowerCase(),null,!1,!1)});const sa=/[\-\:]([a-z])/g,la=e=>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"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(sa,la);Re[t]=new Ve(t,jt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{Re[e]=new Ve(e,jt,!1,e.toLowerCase(),null,!1,!1)});const Ep="xlinkHref";Re[Ep]=new Ve("xlinkHref",jt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{Re[e]=new Ve(e,jt,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:Cp,SAME:wp,possibleStandardNames:zs}=vn,Ap=":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",Op=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+Ap+"]*$")),kp=Object.keys(zs).reduce((e,t)=>{const r=zs[t];return r===wp?e[t]=t:r===Cp?e[t.toLowerCase()]=t:e[t]=r,e},{});lt.BOOLEAN=xn,lt.BOOLEANISH_STRING=bn,lt.NUMERIC=Fs,lt.OVERLOADED_BOOLEAN=oa,lt.POSITIVE_NUMERIC=Ls,lt.RESERVED=Ns,lt.STRING=jt,lt.getPropertyInfo=Sp,lt.isCustomAttribute=Op,lt.possibleStandardNames=kp;var ua={},ca={},Bs=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Pp=/\n/g,jp=/^\s*/,Ip=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dp=/^:\s*/,$p=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Mp=/^[;\s]*/,Rp=/^\s+|\s+$/g,Np=`
|
|
119
|
+
`,Us="/",Vs="*",Ut="",Fp="comment",Lp="declaration",zp=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(m){var y=m.match(Pp);y&&(r+=y.length);var T=m.lastIndexOf(Np);n=~T?m.length-T:n+m.length}function a(){var m={line:r,column:n};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(m){var y=new Error(t.source+":"+r+":"+n+": "+m);if(y.reason=m,y.filename=t.source,y.line=r,y.column=n,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var T=y[0];return i(T),e=e.slice(T.length),y}}function u(){l(jp)}function f(m){var y;for(m=m||[];y=c();)y!==!1&&m.push(y);return m}function c(){var m=a();if(!(Us!=e.charAt(0)||Vs!=e.charAt(1))){for(var y=2;Ut!=e.charAt(y)&&(Vs!=e.charAt(y)||Us!=e.charAt(y+1));)++y;if(y+=2,Ut===e.charAt(y-1))return s("End of comment missing");var T=e.slice(2,y-2);return n+=2,i(T),e=e.slice(y),n+=2,m({type:Fp,comment:T})}}function p(){var m=a(),y=l(Ip);if(y){if(c(),!l(Dp))return s("property missing ':'");var T=l($p),j=m({type:Lp,property:Ws(y[0].replace(Bs,Ut)),value:T?Ws(T[0].replace(Bs,Ut)):Ut});return l(Mp),j}}function v(){var m=[];f(m);for(var y;y=p();)y!==!1&&(m.push(y),f(m));return m}return u(),v()};function Ws(e){return e?e.replace(Rp,Ut):Ut}var Bp=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ca,"__esModule",{value:!0});var Up=Bp(zp);function Vp(e,t){var r=null;if(!e||typeof e!="string")return r;var n=(0,Up.default)(e),i=typeof t=="function";return n.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(r=r||{},r[o]=s)}}),r}ca.default=Vp;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.camelCase=void 0;var Wp=/^--[a-zA-Z0-9-]+$/,Hp=/-([a-z])/g,Gp=/^[^-]+$/,Yp=/^-(webkit|moz|ms|o|khtml)-/,qp=/^-(ms)-/,Kp=function(e){return!e||Gp.test(e)||Wp.test(e)},Xp=function(e,t){return t.toUpperCase()},Hs=function(e,t){return"".concat(t,"-")},Jp=function(e,t){return t===void 0&&(t={}),Kp(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(qp,Hs):e=e.replace(Yp,Hs),e.replace(Hp,Xp))};Tn.camelCase=Jp;var Zp=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Qp=Zp(ca),eh=Tn;function fa(e,t){var r={};return!e||typeof e!="string"||(0,Qp.default)(e,function(n,i){n&&i&&(r[(0,eh.camelCase)(n,t)]=i)}),r}fa.default=fa;var th=fa;(function(e){var t=Ce&&Ce.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=a,e.setStyleProp=s;var r=_,n=t(th),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function a(f,c){return f.includes("-")?!i.has(f):!!(c&&typeof c.is=="string")}var o={reactCompat:!0};function s(f,c){if(typeof f=="string"){if(!f.trim()){c.style={};return}try{c.style=(0,n.default)(f,o)}catch{c.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var l=function(f){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(f.name)};e.canTextBeChildOfNode=l;var u=function(f){return f};e.returnFirstArg=u})(ua),Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=ah;var Cr=lt,Gs=ua,rh=["checked","value"],nh=["input","select","textarea"],ih={reset:!0,submit:!0};function ah(e,t){e===void 0&&(e={});var r={},n=!!(e.type&&ih[e.type]);for(var i in e){var a=e[i];if((0,Cr.isCustomAttribute)(i)){r[i]=a;continue}var o=i.toLowerCase(),s=Ys(o);if(s){var l=(0,Cr.getPropertyInfo)(s);switch(rh.includes(s)&&nh.includes(t)&&!n&&(s=Ys("default"+o)),r[s]=a,l&&l.type){case Cr.BOOLEAN:r[s]=!0;break;case Cr.OVERLOADED_BOOLEAN:a===""&&(r[s]=!0);break}continue}Gs.PRESERVE_CUSTOM_ATTRIBUTES&&(r[i]=a)}return(0,Gs.setStyleProp)(e.style,r),r}function Ys(e){return Cr.possibleStandardNames[e]}var da={},oh=Ce&&Ce.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(da,"__esModule",{value:!0}),da.default=qs;var pa=_,sh=oh(yn),wr=ua,lh={cloneElement:pa.cloneElement,createElement:pa.createElement,isValidElement:pa.isValidElement};function qs(e,t){t===void 0&&(t={});for(var r=[],n=typeof t.replace=="function",i=t.transform||wr.returnFirstArg,a=t.library||lh,o=a.cloneElement,s=a.createElement,l=a.isValidElement,u=e.length,f=0;f<u;f++){var c=e[f];if(n){var p=t.replace(c,f);if(l(p)){u>1&&(p=o(p,{key:p.key||f})),r.push(i(p,c,f));continue}}if(c.type==="text"){var v=!c.data.trim().length;if(v&&c.parent&&!(0,wr.canTextBeChildOfNode)(c.parent)||t.trim&&v)continue;r.push(i(c.data,c,f));continue}var m=c,y={};uh(m)?((0,wr.setStyleProp)(m.attribs.style,m.attribs),y=m.attribs):m.attribs&&(y=(0,sh.default)(m.attribs,m.name));var T=void 0;switch(c.type){case"script":case"style":c.children[0]&&(y.dangerouslySetInnerHTML={__html:c.children[0].data});break;case"tag":c.name==="textarea"&&c.children[0]?y.defaultValue=c.children[0].data:c.children&&c.children.length&&(T=qs(c.children,t));break;default:continue}u>1&&(y.key=f),r.push(i(s(c.name,y,T),c,f))}return r.length===1?r[0]:r}function uh(e){return wr.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&(0,wr.isCustomComponent)(e.name,e.attribs)}(function(e){var t=Ce&&Ce.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(Ji);e.htmlToDOM=r.default;var n=t(yn);e.attributesToProps=n.default;var i=t(da);e.domToReact=i.default;var a=ta;Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(l,u){if(typeof l!="string")throw new TypeError("First argument must be a string");return l?(0,i.default)((0,r.default)(l,(u==null?void 0:u.htmlparser2)||o),u):[]}})(gs);const Ks=yt(gs);Ks.default;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:Xs,setPrototypeOf:Js,isFrozen:ch,getPrototypeOf:fh,getOwnPropertyDescriptor:dh}=Object;let{freeze:We,seal:nt,create:Zs}=Object,{apply:ha,construct:ma}=typeof Reflect<"u"&&Reflect;We||(We=function(t){return t}),nt||(nt=function(t){return t}),ha||(ha=function(t,r,n){return t.apply(r,n)}),ma||(ma=function(t,r){return new t(...r)});const _n=Qe(Array.prototype.forEach),Qs=Qe(Array.prototype.pop),Ar=Qe(Array.prototype.push),Sn=Qe(String.prototype.toLowerCase),ga=Qe(String.prototype.toString),el=Qe(String.prototype.match),Or=Qe(String.prototype.replace),ph=Qe(String.prototype.indexOf),hh=Qe(String.prototype.trim),ut=Qe(Object.prototype.hasOwnProperty),He=Qe(RegExp.prototype.test),kr=mh(TypeError);function Qe(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return ha(e,t,n)}}function mh(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ma(e,r)}}function oe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sn;Js&&Js(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(ch(t)||(t[n]=a),i=a)}e[i]=!0}return e}function gh(e){for(let t=0;t<e.length;t++)ut(e,t)||(e[t]=null);return e}function Vt(e){const t=Zs(null);for(const[r,n]of Xs(e))ut(e,r)&&(Array.isArray(n)?t[r]=gh(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Vt(n):t[r]=n);return t}function Pr(e,t){for(;e!==null;){const n=dh(e,t);if(n){if(n.get)return Qe(n.get);if(typeof n.value=="function")return Qe(n.value)}e=fh(e)}function r(){return null}return r}const tl=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ya=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),va=We(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yh=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ba=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vh=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rl=We(["#text"]),nl=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xa=We(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),il=We(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bh=nt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xh=nt(/<%[\w\W]*|[\w\W]*%>/gm),Th=nt(/\${[\w\W]*}/gm),_h=nt(/^data-[\-\w.\u00B7-\uFFFF]/),Sh=nt(/^aria-[\-\w]+$/),al=nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Eh=nt(/^(?:\w+script|data):/i),Ch=nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=nt(/^html$/i),wh=nt(/^[a-z][.\w]*(-[.\w]+)+$/i);var sl=Object.freeze({__proto__:null,MUSTACHE_EXPR:bh,ERB_EXPR:xh,TMPLIT_EXPR:Th,DATA_ATTR:_h,ARIA_ATTR:Sh,IS_ALLOWED_URI:al,IS_SCRIPT_OR_DATA:Eh,ATTR_WHITESPACE:Ch,DOCTYPE_NAME:ol,CUSTOM_ELEMENT:wh});const jr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ah=function(){return typeof window>"u"?null:window},Oh=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function ll(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ah();const t=k=>ll(k);if(t.version="3.1.6",t.removed=[],!e||!e.document||e.document.nodeType!==jr.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:p,trustedTypes:v}=e,m=l.prototype,y=Pr(m,"cloneNode"),T=Pr(m,"remove"),j=Pr(m,"nextSibling"),R=Pr(m,"childNodes"),A=Pr(m,"parentNode");if(typeof o=="function"){const k=r.createElement("template");k.content&&k.content.ownerDocument&&(r=k.content.ownerDocument)}let N,S="";const{implementation:D,createNodeIterator:G,createDocumentFragment:se,getElementsByTagName:h}=r,{importNode:F}=n;let L={};t.isSupported=typeof Xs=="function"&&typeof A=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:re,TMPLIT_EXPR:le,DATA_ATTR:Te,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:te,ATTR_WHITESPACE:ce,CUSTOM_ELEMENT:Ge}=sl;let{IS_ALLOWED_URI:O}=sl,I=null;const Z=oe({},[...tl,...ya,...va,...ba,...rl]);let U=null;const X=oe({},[...nl,...xa,...il,...En]);let W=Object.seal(Zs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,J=null,Q=!0,ne=!0,ee=!1,Ie=!0,M=!1,Me=!0,B=!1,Ye=!1,Xe=!1,ot=!1,Yt=!1,St=!1,ii=!0,ai=!1;const Wr="user-content-";let Hr=!0,qt=!1,Et={},Ct=null;const Mt=oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let oi=null;const Gr=oe({},["audio","video","img","source","image","track"]);let mr=null;const gr=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",vr="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Rt=ft,Yr=!1,qr=null;const go=oe({},[yr,vr,ft],ga);let wt=null;const si=["application/xhtml+xml","text/html"],Nt="text/html";let Pe=null,gt=null;const li=r.createElement("form"),ui=function(x){return x instanceof RegExp||x instanceof Function},br=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(gt&>===x)){if((!x||typeof x!="object")&&(x={}),x=Vt(x),wt=si.indexOf(x.PARSER_MEDIA_TYPE)===-1?Nt:x.PARSER_MEDIA_TYPE,Pe=wt==="application/xhtml+xml"?ga:Sn,I=ut(x,"ALLOWED_TAGS")?oe({},x.ALLOWED_TAGS,Pe):Z,U=ut(x,"ALLOWED_ATTR")?oe({},x.ALLOWED_ATTR,Pe):X,qr=ut(x,"ALLOWED_NAMESPACES")?oe({},x.ALLOWED_NAMESPACES,ga):go,mr=ut(x,"ADD_URI_SAFE_ATTR")?oe(Vt(gr),x.ADD_URI_SAFE_ATTR,Pe):gr,oi=ut(x,"ADD_DATA_URI_TAGS")?oe(Vt(Gr),x.ADD_DATA_URI_TAGS,Pe):Gr,Ct=ut(x,"FORBID_CONTENTS")?oe({},x.FORBID_CONTENTS,Pe):Mt,q=ut(x,"FORBID_TAGS")?oe({},x.FORBID_TAGS,Pe):{},J=ut(x,"FORBID_ATTR")?oe({},x.FORBID_ATTR,Pe):{},Et=ut(x,"USE_PROFILES")?x.USE_PROFILES:!1,Q=x.ALLOW_ARIA_ATTR!==!1,ne=x.ALLOW_DATA_ATTR!==!1,ee=x.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=x.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=x.SAFE_FOR_TEMPLATES||!1,Me=x.SAFE_FOR_XML!==!1,B=x.WHOLE_DOCUMENT||!1,ot=x.RETURN_DOM||!1,Yt=x.RETURN_DOM_FRAGMENT||!1,St=x.RETURN_TRUSTED_TYPE||!1,Xe=x.FORCE_BODY||!1,ii=x.SANITIZE_DOM!==!1,ai=x.SANITIZE_NAMED_PROPS||!1,Hr=x.KEEP_CONTENT!==!1,qt=x.IN_PLACE||!1,O=x.ALLOWED_URI_REGEXP||al,Rt=x.NAMESPACE||ft,W=x.CUSTOM_ELEMENT_HANDLING||{},x.CUSTOM_ELEMENT_HANDLING&&ui(x.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=x.CUSTOM_ELEMENT_HANDLING.tagNameCheck),x.CUSTOM_ELEMENT_HANDLING&&ui(x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=x.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),x.CUSTOM_ELEMENT_HANDLING&&typeof x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=x.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(ne=!1),Yt&&(ot=!0),Et&&(I=oe({},rl),U=[],Et.html===!0&&(oe(I,tl),oe(U,nl)),Et.svg===!0&&(oe(I,ya),oe(U,xa),oe(U,En)),Et.svgFilters===!0&&(oe(I,va),oe(U,xa),oe(U,En)),Et.mathMl===!0&&(oe(I,ba),oe(U,il),oe(U,En))),x.ADD_TAGS&&(I===Z&&(I=Vt(I)),oe(I,x.ADD_TAGS,Pe)),x.ADD_ATTR&&(U===X&&(U=Vt(U)),oe(U,x.ADD_ATTR,Pe)),x.ADD_URI_SAFE_ATTR&&oe(mr,x.ADD_URI_SAFE_ATTR,Pe),x.FORBID_CONTENTS&&(Ct===Mt&&(Ct=Vt(Ct)),oe(Ct,x.FORBID_CONTENTS,Pe)),Hr&&(I["#text"]=!0),B&&oe(I,["html","head","body"]),I.table&&(oe(I,["tbody"]),delete q.tbody),x.TRUSTED_TYPES_POLICY){if(typeof x.TRUSTED_TYPES_POLICY.createHTML!="function")throw kr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof x.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw kr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=x.TRUSTED_TYPES_POLICY,S=N.createHTML("")}else N===void 0&&(N=Oh(v,i)),N!==null&&typeof S=="string"&&(S=N.createHTML(""));We&&We(x),gt=x}},ci=oe({},["mi","mo","mn","ms","mtext"]),Kr=oe({},["foreignobject","annotation-xml"]),fi=oe({},["title","style","font","a","script"]),di=oe({},[...ya,...va,...yh]),pi=oe({},[...ba,...vh]),hi=function(x){let C=A(x);(!C||!C.tagName)&&(C={namespaceURI:Rt,tagName:"template"});const $=Sn(x.tagName),ie=Sn(C.tagName);return qr[x.namespaceURI]?x.namespaceURI===vr?C.namespaceURI===ft?$==="svg":C.namespaceURI===yr?$==="svg"&&(ie==="annotation-xml"||ci[ie]):!!di[$]:x.namespaceURI===yr?C.namespaceURI===ft?$==="math":C.namespaceURI===vr?$==="math"&&Kr[ie]:!!pi[$]:x.namespaceURI===ft?C.namespaceURI===vr&&!Kr[ie]||C.namespaceURI===yr&&!ci[ie]?!1:!pi[$]&&(fi[$]||!di[$]):!!(wt==="application/xhtml+xml"&&qr[x.namespaceURI]):!1},rt=function(x){Ar(t.removed,{element:x});try{A(x).removeChild(x)}catch{T(x)}},xr=function(x,C){try{Ar(t.removed,{attribute:C.getAttributeNode(x),from:C})}catch{Ar(t.removed,{attribute:null,from:C})}if(C.removeAttribute(x),x==="is"&&!U[x])if(ot||Yt)try{rt(C)}catch{}else try{C.setAttribute(x,"")}catch{}},mi=function(x){let C=null,$=null;if(Xe)x="<remove></remove>"+x;else{const Ee=el(x,/^[\r\n\t ]+/);$=Ee&&Ee[0]}wt==="application/xhtml+xml"&&Rt===ft&&(x='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+x+"</body></html>");const ie=N?N.createHTML(x):x;if(Rt===ft)try{C=new p().parseFromString(ie,wt)}catch{}if(!C||!C.documentElement){C=D.createDocument(Rt,"template",null);try{C.documentElement.innerHTML=Yr?S:ie}catch{}}const Ae=C.body||C.documentElement;return x&&$&&Ae.insertBefore(r.createTextNode($),Ae.childNodes[0]||null),Rt===ft?h.call(C,B?"html":"body")[0]:B?C.documentElement:Ae},gi=function(x){return G.call(x.ownerDocument||x,x,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},yi=function(x){return x instanceof c&&(typeof x.nodeName!="string"||typeof x.textContent!="string"||typeof x.removeChild!="function"||!(x.attributes instanceof f)||typeof x.removeAttribute!="function"||typeof x.setAttribute!="function"||typeof x.namespaceURI!="string"||typeof x.insertBefore!="function"||typeof x.hasChildNodes!="function")},g=function(x){return typeof s=="function"&&x instanceof s},w=function(x,C,$){L[x]&&_n(L[x],ie=>{ie.call(t,C,$,gt)})},z=function(x){let C=null;if(w("beforeSanitizeElements",x,null),yi(x))return rt(x),!0;const $=Pe(x.nodeName);if(w("uponSanitizeElement",x,{tagName:$,allowedTags:I}),x.hasChildNodes()&&!g(x.firstElementChild)&&He(/<[/\w]/g,x.innerHTML)&&He(/<[/\w]/g,x.textContent)||x.nodeType===jr.progressingInstruction||Me&&x.nodeType===jr.comment&&He(/<[/\w]/g,x.data))return rt(x),!0;if(!I[$]||q[$]){if(!q[$]&&fe($)&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,$)||W.tagNameCheck instanceof Function&&W.tagNameCheck($)))return!1;if(Hr&&!Ct[$]){const ie=A(x)||x.parentNode,Ae=R(x)||x.childNodes;if(Ae&&ie){const Ee=Ae.length;for(let ve=Ee-1;ve>=0;--ve){const Je=y(Ae[ve],!0);Je.__removalCount=(x.__removalCount||0)+1,ie.insertBefore(Je,j(x))}}}return rt(x),!0}return x instanceof l&&!hi(x)||($==="noscript"||$==="noembed"||$==="noframes")&&He(/<\/no(script|embed|frames)/i,x.innerHTML)?(rt(x),!0):(M&&x.nodeType===jr.text&&(C=x.textContent,_n([V,re,le],ie=>{C=Or(C,ie," ")}),x.textContent!==C&&(Ar(t.removed,{element:x.cloneNode()}),x.textContent=C)),w("afterSanitizeElements",x,null),!1)},K=function(x,C,$){if(ii&&(C==="id"||C==="name")&&($ in r||$ in li))return!1;if(!(ne&&!J[C]&&He(Te,C))){if(!(Q&&He(Y,C))){if(!U[C]||J[C]){if(!(fe(x)&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,x)||W.tagNameCheck instanceof Function&&W.tagNameCheck(x))&&(W.attributeNameCheck instanceof RegExp&&He(W.attributeNameCheck,C)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(C))||C==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&He(W.tagNameCheck,$)||W.tagNameCheck instanceof Function&&W.tagNameCheck($))))return!1}else if(!mr[C]){if(!He(O,Or($,ce,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&x!=="script"&&ph($,"data:")===0&&oi[x])){if(!(ee&&!He(te,Or($,ce,"")))){if($)return!1}}}}}}return!0},fe=function(x){return x!=="annotation-xml"&&el(x,Ge)},ye=function(x){w("beforeSanitizeAttributes",x,null);const{attributes:C}=x;if(!C)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};let ie=C.length;for(;ie--;){const Ae=C[ie],{name:Ee,namespaceURI:ve,value:Je}=Ae,Kt=Pe(Ee);let Ne=Ee==="value"?Je:hh(Je);if($.attrName=Kt,$.attrValue=Ne,$.keepAttr=!0,$.forceKeepAttr=void 0,w("uponSanitizeAttribute",x,$),Ne=$.attrValue,Me&&He(/((--!?|])>)|<\/(style|title)/i,Ne)){xr(Ee,x);continue}if($.forceKeepAttr||(xr(Ee,x),!$.keepAttr))continue;if(!Ie&&He(/\/>/i,Ne)){xr(Ee,x);continue}M&&_n([V,re,le],Af=>{Ne=Or(Ne,Af," ")});const wf=Pe(x.nodeName);if(K(wf,Kt,Ne)){if(ai&&(Kt==="id"||Kt==="name")&&(xr(Ee,x),Ne=Wr+Ne),N&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!ve)switch(v.getAttributeType(wf,Kt)){case"TrustedHTML":{Ne=N.createHTML(Ne);break}case"TrustedScriptURL":{Ne=N.createScriptURL(Ne);break}}try{ve?x.setAttributeNS(ve,Ee,Ne):x.setAttribute(Ee,Ne),yi(x)?rt(x):Qs(t.removed)}catch{}}}w("afterSanitizeAttributes",x,null)},ue=function k(x){let C=null;const $=gi(x);for(w("beforeSanitizeShadowDOM",x,null);C=$.nextNode();)w("uponSanitizeShadowNode",C,null),!z(C)&&(C.content instanceof a&&k(C.content),ye(C));w("afterSanitizeShadowDOM",x,null)};return t.sanitize=function(k){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,$=null,ie=null,Ae=null;if(Yr=!k,Yr&&(k="<!-->"),typeof k!="string"&&!g(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw kr("dirty is not a string, aborting")}else throw kr("toString is not a function");if(!t.isSupported)return k;if(Ye||br(x),t.removed=[],typeof k=="string"&&(qt=!1),qt){if(k.nodeName){const Je=Pe(k.nodeName);if(!I[Je]||q[Je])throw kr("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof s)C=mi("<!---->"),$=C.ownerDocument.importNode(k,!0),$.nodeType===jr.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?C=$:C.appendChild($);else{if(!ot&&!M&&!B&&k.indexOf("<")===-1)return N&&St?N.createHTML(k):k;if(C=mi(k),!C)return ot?null:St?S:""}C&&Xe&&rt(C.firstChild);const Ee=gi(qt?k:C);for(;ie=Ee.nextNode();)z(ie)||(ie.content instanceof a&&ue(ie.content),ye(ie));if(qt)return k;if(ot){if(Yt)for(Ae=se.call(C.ownerDocument);C.firstChild;)Ae.appendChild(C.firstChild);else Ae=C;return(U.shadowroot||U.shadowrootmode)&&(Ae=F.call(n,Ae,!0)),Ae}let ve=B?C.outerHTML:C.innerHTML;return B&&I["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&He(ol,C.ownerDocument.doctype.name)&&(ve="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
|
|
120
|
+
`+ve),M&&_n([V,re,le],Je=>{ve=Or(ve,Je," ")}),N&&St?N.createHTML(ve):ve},t.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(k),Ye=!0},t.clearConfig=function(){gt=null,Ye=!1},t.isValidAttribute=function(k,x,C){gt||br({});const $=Pe(k),ie=Pe(x);return K($,ie,C)},t.addHook=function(k,x){typeof x=="function"&&(L[k]=L[k]||[],Ar(L[k],x))},t.removeHook=function(k){if(L[k])return Qs(L[k])},t.removeHooks=function(k){L[k]&&(L[k]=[])},t.removeAllHooks=function(){L={}},t}var kh=ll();const Ph={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},Cn=_.memo(({id:e,entry:t,loading:r,rightBorder:n,children:i,onClickEntry:a,customElement:o,sanitize:s,...l})=>{const u={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:f}=b.useProps("Field",u,l),c={};Object.entries(f).forEach(([m,y])=>{typeof y=="function"&&(c[m]=y(t))});let p;s&&(p=kh.sanitize(i));const v=b.useStyles({name:"Field",props:l,classes:Ph});return d.jsx(b.Table.Td,{...v("field"),onClick:a?()=>a(e,t):null,...l,children:d.jsx(b.Box,{w:"100%",children:d.jsx(b.Skeleton,{visible:r,children:o||(typeof i!="object"?d.jsx(b.Text,{...f,...c,children:p||i}):p||i)})})})});Cn.displayName="Field";const ul={row:"_row_138r2_1",selected:"_selected_138r2_5"};function jh({entry:e,selected:t,children:r}){const n=b.useStyles({name:"Row",classes:ul}),i=b.useProps("Row",{},{});Object.entries(i).forEach(([s,l])=>{typeof l=="function"&&(i[s]=l(e))});var{className:a,style:o}=n("row");return a=`${a} ${t?ul.selected:""}`,d.jsx(b.Table.Tr,{className:a,style:{...o},...i,children:r})}function Ih({bodyCustomizer:e,actionColumn:t,id:r,entry:n}){let i=e==null?void 0:e[t];return typeof i=="function"&&(i=i({id:r,...n})),i===null?null:i||d.jsx(ms,{id:r})}function Dh({data:e,loading:t,hideActions:r,hideCheckbox:n,selection:i,toggleRow:a,onClickEntry:o,bodyCustomizer:s}){const l=e.list_columns.includes("actions")?"_actions":"actions";return d.jsx(b.Table.Tbody,{children:e.result.length?e.result.map((u,f)=>{const c=e.ids[f];return d.jsxs(jh,{entry:{...u,id:c},children:[n?null:d.jsx(Cn,{loading:t,children:d.jsx(b.Checkbox,{pl:2,checked:i.includes(Fe(c)),onChange:p=>{a(Fe(c))}})},f),r?null:d.jsx(Cn,{loading:t,children:d.jsx(Ih,{bodyCustomizer:s,actionColumn:l,id:Fe(c),entry:u})}),e.list_columns.map((p,v)=>{let m=s==null?void 0:s[p];return typeof m=="function"&&(m=m({id:c,...u})),m===null?null:d.jsx(Cn,{id:Fe(c),entry:u,loading:t,onClickEntry:o,customElement:m,sanitize:!0,children:Xi(u,p)},v)})]},Fe(c))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:r?e.list_columns.length:e.list_columns.length+1,children:d.jsx(b.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available..."})})})})}const $h={scrollbar:"_scrollbar_isyo2_1"};function Mh({bulkActions:e,hideActions:t,loading:r,onSelectCheckbox:n,onClickEntry:i,hideCheckbox:a,hideDownload:o,headerCustomizer:s,bodyCustomizer:l,...u}){const f=b.useMantineTheme(),c=b.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),p=b.useProps("DatagridTable",c,u),{data:v,info:m}=$e(),[y,T]=_.useState([]),[j,R]=_.useState(!1),A=S=>{T(D=>D.includes(S)?D.filter(G=>G!==S):[...D,S])},N=()=>{T(S=>S.length===v.ids.length?[]:v.ids.map((D,G)=>D))};return _.useEffect(()=>{R(y.length===v.result.length&&y.length>0),n&&n(y),e==null||e.setSelectedIds(y.map(S=>S))},[y]),_.useEffect(()=>{T([]),n&&n([])},[v]),d.jsx(b.ScrollArea,{options:{className:f.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:$h,children:d.jsxs(b.Table,{stickyHeader:!0,...p,children:[d.jsx(us,{data:v,info:m,hideActions:t,hideCheckbox:a,allChecked:j,setSelection:T,toggleAll:N,headerCustomizer:s}),d.jsx(Dh,{data:v,loading:r,hideActions:t,hideCheckbox:a,selection:y,setSelection:T,toggleRow:A,onClickEntry:i,bodyCustomizer:l})]})})}const cl=_.memo(({...e})=>{const{data:t,queryParams:r,setQueryParams:n}=$e(),i=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],a=String(r.page_size),[o,s]=_.useState(r.page);_.useEffect(()=>{s(r.page)},[r.page]);const l=f=>{s(f-1),n({page:f-1})},u=f=>{n({page_size:parseInt(f,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(b.Divider,{}),d.jsxs(b.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(b.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(b.Text,{children:"Rows per page:"}),d.jsx(b.Select,{value:a,defaultValue:a,onChange:f=>u(f),data:i,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(b.Pagination,{size:"sm",total:Math.ceil(t.count/a),value:o+1,onChange:l,...e})]})]})});cl.displayName="Pagination";function Rh(){const{error:e}=$e(),[t,r]=_.useState(!1);return _.useEffect(()=>{e&&r(!0)},[e]),d.jsx(b.Modal,{opened:t,onClose:()=>r(!1),title:d.jsxs(b.Group,{children:[d.jsx(Ud,{size:16,color:"red"}),d.jsx(b.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(b.Text,{children:e.message}):null})}const Ta=_.forwardRef((e,t)=>{const{path:r,data:n,loading:i,info:a,setQueryParams:o}=$e(),{hideToolbar:s=!1,hideFilter:l=!1,hideAdd:u=!1,hideSettings:f=!1,hideActions:c=!1,hidePagination:p=!1,hideError:v=!1,hideDownload:m=!0,onSelectCheckbox:y=null,onClickEntry:T=null,fetchOnMount:j=!0,bulkActions:R=null,styles:A,headerCustomizer:N={},bodyCustomizer:S={},toolbarCustomizer:D={}}=e;if(_.useEffect(()=>{!n&&j&&o({})},[n]),!a)return;const G=R===null;return d.jsxs(b.Paper,{ref:t,style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",...A},children:[s?null:d.jsx(ss,{hideFilter:l,hideAdd:u,hideSettings:f,hideDownload:m,toolbarCustomizer:D}),n?d.jsx(Mh,{bulkActions:R,hideActions:c,loading:i,onSelectCheckbox:y,onClickEntry:T,hideCheckbox:G,hideDownload:m,headerCustomizer:N,bodyCustomizer:S}):null,!p&&n?d.jsx(cl,{}):null,v?null:d.jsx(Rh,{})]})});Ta.displayName="DataGrid";function Nh({children:e,fetch:t=!0,loading:r=d.jsx(b.Center,{children:d.jsx(b.Loader,{})}),end:n=d.jsx(b.Center,{children:"End of data"}),fetchWrapper:i=b.Center,fetchWrapperProps:a}){const{streaming:o,loading:s}=$e(),{ref:l,inViewport:u}=At.useInViewport(),f=_.useMemo(()=>Object.values(o.data).flat(),[o.data]),c=_.useMemo(()=>typeof e=="function"?e(f):e,[e,f]);return _.useEffect(()=>{u&&t&&o.fetch()},[u]),d.jsxs(d.Fragment,{children:[c,s&&r,o.isEnd&&n,d.jsx(i,{ref:l,id:"IS-load-trigger",mih:"1%",...a})]})}var Fh=Object.prototype;function Lh(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Fh;return e===r}var wn=Lh;function zh(e,t){return function(r){return e(t(r))}}var fl=zh,Bh=fl,Uh=Bh(Object.keys,Object),Vh=Uh,Wh=wn,Hh=Vh,Gh=Object.prototype,Yh=Gh.hasOwnProperty;function qh(e){if(!Wh(e))return Hh(e);var t=[];for(var r in Object(e))Yh.call(e,r)&&r!="constructor"&&t.push(r);return t}var Kh=qh,Xh=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,dl=Xh,Jh=dl,Zh=typeof self=="object"&&self&&self.Object===Object&&self,Qh=Jh||Zh||Function("return this")(),ct=Qh,em=ct,tm=em.Symbol,An=tm,pl=An,hl=Object.prototype,rm=hl.hasOwnProperty,nm=hl.toString,Ir=pl?pl.toStringTag:void 0;function im(e){var t=rm.call(e,Ir),r=e[Ir];try{e[Ir]=void 0;var n=!0}catch{}var i=nm.call(e);return n&&(t?e[Ir]=r:delete e[Ir]),i}var am=im,om=Object.prototype,sm=om.toString;function lm(e){return sm.call(e)}var um=lm,ml=An,cm=am,fm=um,dm="[object Null]",pm="[object Undefined]",gl=ml?ml.toStringTag:void 0;function hm(e){return e==null?e===void 0?pm:dm:gl&&gl in Object(e)?cm(e):fm(e)}var er=hm;function mm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bt=mm,gm=er,ym=bt,vm="[object AsyncFunction]",bm="[object Function]",xm="[object GeneratorFunction]",Tm="[object Proxy]";function _m(e){if(!ym(e))return!1;var t=gm(e);return t==bm||t==xm||t==vm||t==Tm}var _a=_m,Sm=ct,Em=Sm["__core-js_shared__"],Cm=Em,Sa=Cm,yl=function(){var e=/[^.]+$/.exec(Sa&&Sa.keys&&Sa.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wm(e){return!!yl&&yl in e}var Am=wm,Om=Function.prototype,km=Om.toString;function Pm(e){if(e!=null){try{return km.call(e)}catch{}try{return e+""}catch{}}return""}var vl=Pm,jm=_a,Im=Am,Dm=bt,$m=vl,Mm=/[\\^$.*+?()[\]{}|]/g,Rm=/^\[object .+?Constructor\]$/,Nm=Function.prototype,Fm=Object.prototype,Lm=Nm.toString,zm=Fm.hasOwnProperty,Bm=RegExp("^"+Lm.call(zm).replace(Mm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Um(e){if(!Dm(e)||Im(e))return!1;var t=jm(e)?Bm:Rm;return t.test($m(e))}var Vm=Um;function Wm(e,t){return e==null?void 0:e[t]}var Hm=Wm,Gm=Vm,Ym=Hm;function qm(e,t){var r=Ym(e,t);return Gm(r)?r:void 0}var Wt=qm,Km=Wt,Xm=ct,Jm=Km(Xm,"DataView"),Zm=Jm,Qm=Wt,eg=ct,tg=Qm(eg,"Map"),Ea=tg,rg=Wt,ng=ct,ig=rg(ng,"Promise"),ag=ig,og=Wt,sg=ct,lg=og(sg,"Set"),bl=lg,ug=Wt,cg=ct,fg=ug(cg,"WeakMap"),dg=fg,Ca=Zm,wa=Ea,Aa=ag,Oa=bl,ka=dg,xl=er,tr=vl,Tl="[object Map]",pg="[object Object]",_l="[object Promise]",Sl="[object Set]",El="[object WeakMap]",Cl="[object DataView]",hg=tr(Ca),mg=tr(wa),gg=tr(Aa),yg=tr(Oa),vg=tr(ka),Ht=xl;(Ca&&Ht(new Ca(new ArrayBuffer(1)))!=Cl||wa&&Ht(new wa)!=Tl||Aa&&Ht(Aa.resolve())!=_l||Oa&&Ht(new Oa)!=Sl||ka&&Ht(new ka)!=El)&&(Ht=function(e){var t=xl(e),r=t==pg?e.constructor:void 0,n=r?tr(r):"";if(n)switch(n){case hg:return Cl;case mg:return Tl;case gg:return _l;case yg:return Sl;case vg:return El}return t});var bg=Ht;function xg(e){return e!=null&&typeof e=="object"}var rr=xg,Tg=er,_g=rr,Sg="[object Arguments]";function Eg(e){return _g(e)&&Tg(e)==Sg}var Cg=Eg,wl=Cg,wg=rr,Al=Object.prototype,Ag=Al.hasOwnProperty,Og=Al.propertyIsEnumerable,kg=wl(function(){return arguments}())?wl:function(e){return wg(e)&&Ag.call(e,"callee")&&!Og.call(e,"callee")},On=kg,Pg=Array.isArray,Dr=Pg,jg=9007199254740991;function Ig(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=jg}var Ol=Ig,Dg=_a,$g=Ol;function Mg(e){return e!=null&&$g(e.length)&&!Dg(e)}var kn=Mg,Pn={exports:{}};function Rg(){return!1}var Ng=Rg;Pn.exports,function(e,t){var r=ct,n=Ng,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u}(Pn,Pn.exports);var Pa=Pn.exports,Fg=er,Lg=Ol,zg=rr,Bg="[object Arguments]",Ug="[object Array]",Vg="[object Boolean]",Wg="[object Date]",Hg="[object Error]",Gg="[object Function]",Yg="[object Map]",qg="[object Number]",Kg="[object Object]",Xg="[object RegExp]",Jg="[object Set]",Zg="[object String]",Qg="[object WeakMap]",ey="[object ArrayBuffer]",ty="[object DataView]",ry="[object Float32Array]",ny="[object Float64Array]",iy="[object Int8Array]",ay="[object Int16Array]",oy="[object Int32Array]",sy="[object Uint8Array]",ly="[object Uint8ClampedArray]",uy="[object Uint16Array]",cy="[object Uint32Array]",Se={};Se[ry]=Se[ny]=Se[iy]=Se[ay]=Se[oy]=Se[sy]=Se[ly]=Se[uy]=Se[cy]=!0,Se[Bg]=Se[Ug]=Se[ey]=Se[Vg]=Se[ty]=Se[Wg]=Se[Hg]=Se[Gg]=Se[Yg]=Se[qg]=Se[Kg]=Se[Xg]=Se[Jg]=Se[Zg]=Se[Qg]=!1;function fy(e){return zg(e)&&Lg(e.length)&&!!Se[Fg(e)]}var dy=fy;function py(e){return function(t){return e(t)}}var hy=py,jn={exports:{}};jn.exports,function(e,t){var r=dl,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(jn,jn.exports);var my=jn.exports,gy=dy,yy=hy,kl=my,Pl=kl&&kl.isTypedArray,vy=Pl?yy(Pl):gy,ja=vy,by=Kh,xy=bg,Ty=On,_y=Dr,Sy=kn,Ey=Pa,Cy=wn,wy=ja,Ay="[object Map]",Oy="[object Set]",ky=Object.prototype,Py=ky.hasOwnProperty;function jy(e){if(e==null)return!0;if(Sy(e)&&(_y(e)||typeof e=="string"||typeof e.splice=="function"||Ey(e)||wy(e)||Ty(e)))return!e.length;var t=xy(e);if(t==Ay||t==Oy)return!e.size;if(Cy(e))return!by(e).length;for(var r in e)if(Py.call(e,r))return!1;return!0}var Iy=jy;const jl=yt(Iy),Il=(e,t,r,n,i,a,o)=>e.map((s,l)=>d.jsx(b.Grid.Col,{span:i==="row"?12/e.length:12,style:{alignContent:"end"},children:d.jsx(_e.JsonFormsDispatch,{uischema:s,schema:t,path:r,enabled:n,renderers:a,cells:o})},`${r}-${l}`)),Dy=({elements:e,schema:t,path:r,enabled:n,direction:i,renderers:a,cells:o})=>jl(e)?null:d.jsx(b.Grid,{spacing:i==="row"?2:0,children:Il(e,t,r,n,i,a,o)}),Ia=_.memo(Dy),$y=e=>function(r){const n=_e.useJsonForms(),i=H.getAjv({jsonforms:{...n}});return d.jsx(e,{...r,ajv:i})};var My=ct,Ry=function(){return My.Date.now()},Ny=Ry,Fy=/\s/;function Ly(e){for(var t=e.length;t--&&Fy.test(e.charAt(t)););return t}var zy=Ly,By=zy,Uy=/^\s+/;function Vy(e){return e&&e.slice(0,By(e)+1).replace(Uy,"")}var Wy=Vy,Hy=er,Gy=rr,Yy="[object Symbol]";function qy(e){return typeof e=="symbol"||Gy(e)&&Hy(e)==Yy}var Dl=qy,Ky=Wy,$l=bt,Xy=Dl,Ml=NaN,Jy=/^[-+]0x[0-9a-f]+$/i,Zy=/^0b[01]+$/i,Qy=/^0o[0-7]+$/i,e0=parseInt;function t0(e){if(typeof e=="number")return e;if(Xy(e))return Ml;if($l(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$l(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ky(e);var r=Zy.test(e);return r||Qy.test(e)?e0(e.slice(2),r?2:8):Jy.test(e)?Ml:+e}var Rl=t0,r0=bt,Da=Ny,Nl=Rl,n0="Expected a function",i0=Math.max,a0=Math.min;function o0(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,p=!0;if(typeof e!="function")throw new TypeError(n0);t=Nl(t)||0,r0(r)&&(f=!!r.leading,c="maxWait"in r,a=c?i0(Nl(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function v(D){var G=n,se=i;return n=i=void 0,u=D,o=e.apply(se,G),o}function m(D){return u=D,s=setTimeout(j,t),f?v(D):o}function y(D){var G=D-l,se=D-u,h=t-G;return c?a0(h,a-se):h}function T(D){var G=D-l,se=D-u;return l===void 0||G>=t||G<0||c&&se>=a}function j(){var D=Da();if(T(D))return R(D);s=setTimeout(j,y(D))}function R(D){return s=void 0,p&&n?v(D):(n=i=void 0,o)}function A(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function N(){return s===void 0?o:R(Da())}function S(){var D=Da(),G=T(D);if(n=arguments,i=this,l=D,G){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(j,t),v(l)}return s===void 0&&(s=setTimeout(j,t)),o}return S.cancel=A,S.flush=N,S}var s0=o0;const l0=yt(s0),Fl=(e,t,r,n,i,a=300)=>{const[o,s]=_.useState(r??t);_.useEffect(()=>{s(r??t)},[r]);const l=_.useCallback(l0(c=>e(n,c),a),[e,n,a]),u=_.useCallback(c=>{const p=i(c);s(p??t),l(p)},[l,i]),f=_.useCallback(()=>{s(t),e(n,void 0)},[t,e,n]);return[o,u,f]},u0=e=>e===""?void 0:parseFloat(e),c0=e=>u0(e),In=_.memo(function(t){const{allowDecimal:r,className:n,data:i,description:a,errors:o,enabled:s,handleChange:l,label:u,path:f,required:c,hideControls:p}=t,[v,m]=Fl(l,"",i,f,c0);return d.jsx(b.NumberInput,{label:u,description:a,error:o,required:c,value:v,onChange:m,className:n,disabled:!s,allowDecimal:r,hideControls:p,w:"100%"})});function f0(){this.__data__=[],this.size=0}var d0=f0;function p0(e,t){return e===t||e!==e&&t!==t}var Dn=p0,h0=Dn;function m0(e,t){for(var r=e.length;r--;)if(h0(e[r][0],t))return r;return-1}var $n=m0,g0=$n,y0=Array.prototype,v0=y0.splice;function b0(e){var t=this.__data__,r=g0(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():v0.call(t,r,1),--this.size,!0}var x0=b0,T0=$n;function _0(e){var t=this.__data__,r=T0(t,e);return r<0?void 0:t[r][1]}var S0=_0,E0=$n;function C0(e){return E0(this.__data__,e)>-1}var w0=C0,A0=$n;function O0(e,t){var r=this.__data__,n=A0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var k0=O0,P0=d0,j0=x0,I0=S0,D0=w0,$0=k0;function nr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}nr.prototype.clear=P0,nr.prototype.delete=j0,nr.prototype.get=I0,nr.prototype.has=D0,nr.prototype.set=$0;var Mn=nr,M0=Mn;function R0(){this.__data__=new M0,this.size=0}var N0=R0;function F0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var L0=F0;function z0(e){return this.__data__.get(e)}var B0=z0;function U0(e){return this.__data__.has(e)}var V0=U0,W0=Wt,H0=W0(Object,"create"),Rn=H0,Ll=Rn;function G0(){this.__data__=Ll?Ll(null):{},this.size=0}var Y0=G0;function q0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var K0=q0,X0=Rn,J0="__lodash_hash_undefined__",Z0=Object.prototype,Q0=Z0.hasOwnProperty;function ev(e){var t=this.__data__;if(X0){var r=t[e];return r===J0?void 0:r}return Q0.call(t,e)?t[e]:void 0}var tv=ev,rv=Rn,nv=Object.prototype,iv=nv.hasOwnProperty;function av(e){var t=this.__data__;return rv?t[e]!==void 0:iv.call(t,e)}var ov=av,sv=Rn,lv="__lodash_hash_undefined__";function uv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=sv&&t===void 0?lv:t,this}var cv=uv,fv=Y0,dv=K0,pv=tv,hv=ov,mv=cv;function ir(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ir.prototype.clear=fv,ir.prototype.delete=dv,ir.prototype.get=pv,ir.prototype.has=hv,ir.prototype.set=mv;var gv=ir,zl=gv,yv=Mn,vv=Ea;function bv(){this.size=0,this.__data__={hash:new zl,map:new(vv||yv),string:new zl}}var xv=bv;function Tv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _v=Tv,Sv=_v;function Ev(e,t){var r=e.__data__;return Sv(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Nn=Ev,Cv=Nn;function wv(e){var t=Cv(this,e).delete(e);return this.size-=t?1:0,t}var Av=wv,Ov=Nn;function kv(e){return Ov(this,e).get(e)}var Pv=kv,jv=Nn;function Iv(e){return jv(this,e).has(e)}var Dv=Iv,$v=Nn;function Mv(e,t){var r=$v(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Rv=Mv,Nv=xv,Fv=Av,Lv=Pv,zv=Dv,Bv=Rv;function ar(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ar.prototype.clear=Nv,ar.prototype.delete=Fv,ar.prototype.get=Lv,ar.prototype.has=zv,ar.prototype.set=Bv;var Bl=ar,Uv=Mn,Vv=Ea,Wv=Bl,Hv=200;function Gv(e,t){var r=this.__data__;if(r instanceof Uv){var n=r.__data__;if(!Vv||n.length<Hv-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Wv(n)}return r.set(e,t),this.size=r.size,this}var Yv=Gv,qv=Mn,Kv=N0,Xv=L0,Jv=B0,Zv=V0,Qv=Yv;function or(e){var t=this.__data__=new qv(e);this.size=t.size}or.prototype.clear=Kv,or.prototype.delete=Xv,or.prototype.get=Jv,or.prototype.has=Zv,or.prototype.set=Qv;var eb=or,tb=Wt,rb=function(){try{var e=tb(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ul=rb,Vl=Ul;function nb(e,t,r){t=="__proto__"&&Vl?Vl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $a=nb,ib=$a,ab=Dn;function ob(e,t,r){(r!==void 0&&!ab(e[t],r)||r===void 0&&!(t in e))&&ib(e,t,r)}var Wl=ob;function sb(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var lb=sb,ub=lb,cb=ub(),fb=cb,Fn={exports:{}};Fn.exports,function(e,t){var r=ct,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var c=u.length,p=s?s(c):new u.constructor(c);return u.copy(p),p}e.exports=l}(Fn,Fn.exports);var db=Fn.exports,pb=ct,hb=pb.Uint8Array,mb=hb,Hl=mb;function gb(e){var t=new e.constructor(e.byteLength);return new Hl(t).set(new Hl(e)),t}var yb=gb,vb=yb;function bb(e,t){var r=t?vb(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var xb=bb;function Tb(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _b=Tb,Sb=bt,Gl=Object.create,Eb=function(){function e(){}return function(t){if(!Sb(t))return{};if(Gl)return Gl(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Cb=Eb,wb=fl,Ab=wb(Object.getPrototypeOf,Object),Yl=Ab,Ob=Cb,kb=Yl,Pb=wn;function jb(e){return typeof e.constructor=="function"&&!Pb(e)?Ob(kb(e)):{}}var Ib=jb,Db=kn,$b=rr;function Mb(e){return $b(e)&&Db(e)}var ql=Mb,Rb=er,Nb=Yl,Fb=rr,Lb="[object Object]",zb=Function.prototype,Bb=Object.prototype,Kl=zb.toString,Ub=Bb.hasOwnProperty,Vb=Kl.call(Object);function Wb(e){if(!Fb(e)||Rb(e)!=Lb)return!1;var t=Nb(e);if(t===null)return!0;var r=Ub.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Kl.call(r)==Vb}var Hb=Wb;function Gb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xl=Gb,Yb=$a,qb=Dn,Kb=Object.prototype,Xb=Kb.hasOwnProperty;function Jb(e,t,r){var n=e[t];(!(Xb.call(e,t)&&qb(n,r))||r===void 0&&!(t in e))&&Yb(e,t,r)}var Zb=Jb,Qb=Zb,ex=$a;function tx(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?ex(r,s,l):Qb(r,s,l)}return r}var rx=tx;function nx(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ix=nx,ax=9007199254740991,ox=/^(?:0|[1-9]\d*)$/;function sx(e,t){var r=typeof e;return t=t??ax,!!t&&(r=="number"||r!="symbol"&&ox.test(e))&&e>-1&&e%1==0&&e<t}var Jl=sx,lx=ix,ux=On,cx=Dr,fx=Pa,dx=Jl,px=ja,hx=Object.prototype,mx=hx.hasOwnProperty;function gx(e,t){var r=cx(e),n=!r&&ux(e),i=!r&&!n&&fx(e),a=!r&&!n&&!i&&px(e),o=r||n||i||a,s=o?lx(e.length,String):[],l=s.length;for(var u in e)(t||mx.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dx(u,l)))&&s.push(u);return s}var yx=gx;function vx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var bx=vx,xx=bt,Tx=wn,_x=bx,Sx=Object.prototype,Ex=Sx.hasOwnProperty;function Cx(e){if(!xx(e))return _x(e);var t=Tx(e),r=[];for(var n in e)n=="constructor"&&(t||!Ex.call(e,n))||r.push(n);return r}var wx=Cx,Ax=yx,Ox=wx,kx=kn;function Px(e){return kx(e)?Ax(e,!0):Ox(e)}var Zl=Px,jx=rx,Ix=Zl;function Dx(e){return jx(e,Ix(e))}var $x=Dx,Ql=Wl,Mx=db,Rx=xb,Nx=_b,Fx=Ib,eu=On,tu=Dr,Lx=ql,zx=Pa,Bx=_a,Ux=bt,Vx=Hb,Wx=ja,ru=Xl,Hx=$x;function Gx(e,t,r,n,i,a,o){var s=ru(e,r),l=ru(t,r),u=o.get(l);if(u){Ql(e,r,u);return}var f=a?a(s,l,r+"",e,t,o):void 0,c=f===void 0;if(c){var p=tu(l),v=!p&&zx(l),m=!p&&!v&&Wx(l);f=l,p||v||m?tu(s)?f=s:Lx(s)?f=Nx(s):v?(c=!1,f=Mx(l,!0)):m?(c=!1,f=Rx(l,!0)):f=[]:Vx(l)||eu(l)?(f=s,eu(s)?f=Hx(s):(!Ux(s)||Bx(s))&&(f=Fx(l))):c=!1}c&&(o.set(l,f),i(f,l,n,a,o),o.delete(l)),Ql(e,r,f)}var Yx=Gx,qx=eb,Kx=Wl,Xx=fb,Jx=Yx,Zx=bt,Qx=Zl,eT=Xl;function nu(e,t,r,n,i){e!==t&&Xx(t,function(a,o){if(i||(i=new qx),Zx(a))Jx(e,t,o,r,nu,n,i);else{var s=n?n(eT(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),Kx(e,o,s)}},Qx)}var tT=nu;function rT(e){return e}var iu=rT;function nT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var iT=nT,aT=iT,au=Math.max;function oT(e,t,r){return t=au(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=au(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),aT(e,this,s)}}var sT=oT;function lT(e){return function(){return e}}var uT=lT,cT=uT,ou=Ul,fT=iu,dT=ou?function(e,t){return ou(e,"toString",{configurable:!0,enumerable:!1,value:cT(t),writable:!0})}:fT,pT=dT,hT=800,mT=16,gT=Date.now;function yT(e){var t=0,r=0;return function(){var n=gT(),i=mT-(n-r);if(r=n,i>0){if(++t>=hT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var vT=yT,bT=pT,xT=vT,TT=xT(bT),_T=TT,ST=iu,ET=sT,CT=_T;function wT(e,t){return CT(ET(e,t,ST),e+"")}var su=wT,AT=Dn,OT=kn,kT=Jl,PT=bt;function jT(e,t,r){if(!PT(r))return!1;var n=typeof t;return(n=="number"?OT(r)&&kT(t,r.length):n=="string"&&t in r)?AT(r[t],e):!1}var lu=jT,IT=su,DT=lu;function $T(e){return IT(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&DT(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var MT=$T,RT=tT,NT=MT,FT=NT(function(e,t,r){RT(e,t,r)}),LT=FT;const uu=yt(LT),cu=_.memo(function(t){const{className:r,config:n,uischema:i,data:a,description:o,errors:s,enabled:l,path:u,handleChange:f,label:c,required:p}=t;return uu({},n,i.options).format==="password"?d.jsx(b.PasswordInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:m=>{f(u,m.currentTarget.value)},className:r,disabled:!l,w:"100%"}):d.jsx(b.TextInput,{label:c,description:o,error:s,required:p,value:a||"",onChange:m=>{f(u,m.currentTarget.value)},className:r,disabled:!l,w:"100%"})}),fu=_.memo(function(t){const{className:r,data:n,description:i,enabled:a,errors:o,handleChange:s,label:l,labelPosition:u,path:f,required:c}=t;return d.jsx(b.Checkbox,{label:l,description:i,error:o,disabled:!a,className:r,labelPosition:u,required:c,data:[{label:"true",value:"true"},{label:"false",value:"false"}],value:String(n)||"",onChange:p=>{s(f,p==="true")}})}),zT=e=>d.jsx(In,{...e}),du=H.rankWith(4,H.isNumberControl),pu=_e.withJsonFormsCellProps(zT),BT=e=>d.jsx(In,{...e}),hu=H.rankWith(3,H.isIntegerControl),mu=_e.withJsonFormsCellProps(BT),UT=e=>d.jsx(cu,{...e}),gu=H.rankWith(2,H.isStringControl),yu=_e.withJsonFormsCellProps(UT),VT=e=>d.jsx(fu,{...e}),vu=H.rankWith(3,H.isBooleanControl),bu=_e.withJsonFormsCellProps(VT),WT=e=>{const{data:t,className:r,enabled:n,path:i,handleChange:a,description:o,errors:s,label:l,required:u}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",label:l,description:o,error:s,required:u,value:t?new Date(t):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);a(i,c.toISOString().substring(0,10))}},className:r,disabled:!n,w:"100%"})},xu=H.rankWith(2,H.isDateControl),Tu=_e.withJsonFormsCellProps(WT),HT=e=>{const{description:t,className:r,enabled:n,path:i,handleChange:a,data:o,errors:s,label:l,required:u}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",className:r,disabled:!n,label:l,description:t,error:s,required:u,value:o?new Date(o):null,onChange:f=>{if(f instanceof Date){const c=new Date(f.getTime()-f.getTimezoneOffset()*6e4);a(i,c.toISOString().substring(0,10))}},w:"100%"})},_u=H.rankWith(5,H.isDateTimeControl),Su=_e.withJsonFormsControlProps(HT),GT=e=>{const{description:t,data:r,options:n,enabled:i,handleChange:a,className:o,errors:s,label:l,required:u}=e;return d.jsx(b.Select,{data:n,defaultValue:r,label:l,description:t,required:u,error:s,disabled:!i,searchable:!0,onChange:f=>{a(path,f)},className:o,w:"100%"})},Eu=H.rankWith(5,H.isEnumControl),Cu=_e.withJsonFormsEnumProps(_e.withTranslateProps(_.memo(GT)),!1);function YT(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var qT=YT,wu=An,KT=On,XT=Dr,Au=wu?wu.isConcatSpreadable:void 0;function JT(e){return XT(e)||KT(e)||!!(Au&&e&&e[Au])}var ZT=JT,QT=qT,e1=ZT;function Ou(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=e1),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Ou(s,t-1,r,n,i):QT(i,s):n||(i[i.length]=s)}return i}var t1=Ou,r1="__lodash_hash_undefined__";function n1(e){return this.__data__.set(e,r1),this}var i1=n1;function a1(e){return this.__data__.has(e)}var o1=a1,s1=Bl,l1=i1,u1=o1;function Ln(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new s1;++t<r;)this.add(e[t])}Ln.prototype.add=Ln.prototype.push=l1,Ln.prototype.has=u1;var c1=Ln;function f1(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var d1=f1;function p1(e){return e!==e}var h1=p1;function m1(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var g1=m1,y1=d1,v1=h1,b1=g1;function x1(e,t,r){return t===t?b1(e,t,r):y1(e,v1,r)}var T1=x1,_1=T1;function S1(e,t){var r=e==null?0:e.length;return!!r&&_1(e,t,0)>-1}var E1=S1;function C1(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var w1=C1;function A1(e,t){return e.has(t)}var O1=A1;function k1(){}var P1=k1;function j1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ku=j1,Ma=bl,I1=P1,D1=ku,$1=1/0,M1=Ma&&1/D1(new Ma([,-0]))[1]==$1?function(e){return new Ma(e)}:I1,R1=M1,N1=c1,F1=E1,L1=w1,z1=O1,B1=R1,U1=ku,V1=200;function W1(e,t,r){var n=-1,i=F1,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=L1;else if(a>=V1){var u=t?null:B1(e);if(u)return U1(u);o=!1,i=z1,l=new N1}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var p=l.length;p--;)if(l[p]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var H1=W1,G1=t1,Y1=su,q1=H1,K1=ql,X1=Y1(function(e){return q1(G1(e,1,K1,!0))}),J1=X1;const Z1=yt(J1);function Q1(e,t,r,n){var i=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}var e_=Q1;function t_(e){return function(t){return e==null?void 0:e[t]}}var r_=t_,n_=r_,i_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},a_=n_(i_),o_=a_;function s_(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var l_=s_,Pu=An,u_=l_,c_=Dr,f_=Dl,d_=1/0,ju=Pu?Pu.prototype:void 0,Iu=ju?ju.toString:void 0;function Du(e){if(typeof e=="string")return e;if(c_(e))return u_(e,Du)+"";if(f_(e))return Iu?Iu.call(e):"";var t=e+"";return t=="0"&&1/e==-d_?"-0":t}var p_=Du,h_=p_;function m_(e){return e==null?"":h_(e)}var Ra=m_,g_=o_,y_=Ra,v_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b_="\\u0300-\\u036f",x_="\\ufe20-\\ufe2f",T_="\\u20d0-\\u20ff",__=b_+x_+T_,S_="["+__+"]",E_=RegExp(S_,"g");function C_(e){return e=y_(e),e&&e.replace(v_,g_).replace(E_,"")}var w_=C_,A_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function O_(e){return e.match(A_)||[]}var k_=O_,P_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function j_(e){return P_.test(e)}var I_=j_,$u="\\ud800-\\udfff",D_="\\u0300-\\u036f",$_="\\ufe20-\\ufe2f",M_="\\u20d0-\\u20ff",R_=D_+$_+M_,Mu="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",N_="\\xac\\xb1\\xd7\\xf7",F_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",L_="\\u2000-\\u206f",z_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nu="A-Z\\xc0-\\xd6\\xd8-\\xde",B_="\\ufe0e\\ufe0f",Fu=N_+F_+L_+z_,Lu="['’]",zu="["+Fu+"]",U_="["+R_+"]",Bu="\\d+",V_="["+Mu+"]",Uu="["+Ru+"]",Vu="[^"+$u+Fu+Bu+Mu+Ru+Nu+"]",W_="\\ud83c[\\udffb-\\udfff]",H_="(?:"+U_+"|"+W_+")",G_="[^"+$u+"]",Wu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="["+Nu+"]",Y_="\\u200d",Gu="(?:"+Uu+"|"+Vu+")",q_="(?:"+sr+"|"+Vu+")",Yu="(?:"+Lu+"(?:d|ll|m|re|s|t|ve))?",qu="(?:"+Lu+"(?:D|LL|M|RE|S|T|VE))?",Ku=H_+"?",Xu="["+B_+"]?",K_="(?:"+Y_+"(?:"+[G_,Wu,Hu].join("|")+")"+Xu+Ku+")*",X_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",J_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Z_=Xu+Ku+K_,Q_="(?:"+[V_,Wu,Hu].join("|")+")"+Z_,eS=RegExp([sr+"?"+Uu+"+"+Yu+"(?="+[zu,sr,"$"].join("|")+")",q_+"+"+qu+"(?="+[zu,sr+Gu,"$"].join("|")+")",sr+"?"+Gu+"+"+Yu,sr+"+"+qu,J_,X_,Bu,Q_].join("|"),"g");function tS(e){return e.match(eS)||[]}var rS=tS,nS=k_,iS=I_,aS=Ra,oS=rS;function sS(e,t,r){return e=aS(e),t=r?void 0:t,t===void 0?iS(e)?oS(e):nS(e):e.match(t)||[]}var lS=sS,uS=e_,cS=w_,fS=lS,dS="['’]",pS=RegExp(dS,"g");function hS(e){return function(t){return uS(fS(cS(t).replace(pS,"")),e,"")}}var mS=hS;function gS(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var yS=gS,vS=yS;function bS(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:vS(e,t,r)}var xS=bS,TS="\\ud800-\\udfff",_S="\\u0300-\\u036f",SS="\\ufe20-\\ufe2f",ES="\\u20d0-\\u20ff",CS=_S+SS+ES,wS="\\ufe0e\\ufe0f",AS="\\u200d",OS=RegExp("["+AS+TS+CS+wS+"]");function kS(e){return OS.test(e)}var Ju=kS;function PS(e){return e.split("")}var jS=PS,Zu="\\ud800-\\udfff",IS="\\u0300-\\u036f",DS="\\ufe20-\\ufe2f",$S="\\u20d0-\\u20ff",MS=IS+DS+$S,RS="\\ufe0e\\ufe0f",NS="["+Zu+"]",Na="["+MS+"]",Fa="\\ud83c[\\udffb-\\udfff]",FS="(?:"+Na+"|"+Fa+")",Qu="[^"+Zu+"]",ec="(?:\\ud83c[\\udde6-\\uddff]){2}",tc="[\\ud800-\\udbff][\\udc00-\\udfff]",LS="\\u200d",rc=FS+"?",nc="["+RS+"]?",zS="(?:"+LS+"(?:"+[Qu,ec,tc].join("|")+")"+nc+rc+")*",BS=nc+rc+zS,US="(?:"+[Qu+Na+"?",Na,ec,tc,NS].join("|")+")",VS=RegExp(Fa+"(?="+Fa+")|"+US+BS,"g");function WS(e){return e.match(VS)||[]}var HS=WS,GS=jS,YS=Ju,qS=HS;function KS(e){return YS(e)?qS(e):GS(e)}var XS=KS,JS=xS,ZS=Ju,QS=XS,eE=Ra;function tE(e){return function(t){t=eE(t);var r=ZS(t)?QS(t):void 0,n=r?r[0]:t.charAt(0),i=r?JS(r,1).join(""):t.slice(1);return n[e]()+i}}var rE=tE,nE=rE,iE=nE("toUpperCase"),aE=iE,oE=mS,sE=aE,lE=oE(function(e,t,r){return e+(r?" ":"")+sE(t)}),uE=lE;const cE=yt(uE);var fE=Math.ceil,dE=Math.max;function pE(e,t,r,n){for(var i=-1,a=dE(fE((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var hE=pE,mE=Rl,ic=1/0,gE=17976931348623157e292;function yE(e){if(!e)return e===0?e:0;if(e=mE(e),e===ic||e===-ic){var t=e<0?-1:1;return t*gE}return e===e?e:0}var vE=yE,bE=hE,xE=lu,La=vE;function TE(e){return function(t,r,n){return n&&typeof n!="number"&&xE(t,r,n)&&(r=n=void 0),t=La(t),r===void 0?(r=t,t=0):r=La(r),n=n===void 0?t<r?1:-1:La(n),bE(t,r,n,e)}}var _E=TE,SE=_E,EE=SE(),CE=EE;const wE=yt(CE);function xt(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 ac(e){if(!xt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ac(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return xt(e)&&xt(t)&&Object.keys(t).forEach(i=>{xt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xt(e[i])?n[i]=et(e[i],t[i],r):r.clone?n[i]=xt(t[i])?ac(t[i]):t[i]:n[i]=t[i]}),n}var za={exports:{}},zn={exports:{}},pe={};/** @license React v16.13.1
|
|
121
121
|
* react-is.production.min.js
|
|
122
122
|
*
|
|
123
123
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
124
124
|
*
|
|
125
125
|
* This source code is licensed under the MIT license found in the
|
|
126
126
|
* LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/var oc;function
|
|
127
|
+
*/var oc;function AE(){if(oc)return pe;oc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A(S){if(typeof S=="object"&&S!==null){var D=S.$$typeof;switch(D){case t:switch(S=S.type,S){case l:case u:case n:case a:case i:case c:return S;default:switch(S=S&&S.$$typeof,S){case s:case f:case m:case v:case o:return S;default:return D}}case r:return D}}}function N(S){return A(S)===u}return pe.AsyncMode=l,pe.ConcurrentMode=u,pe.ContextConsumer=s,pe.ContextProvider=o,pe.Element=t,pe.ForwardRef=f,pe.Fragment=n,pe.Lazy=m,pe.Memo=v,pe.Portal=r,pe.Profiler=a,pe.StrictMode=i,pe.Suspense=c,pe.isAsyncMode=function(S){return N(S)||A(S)===l},pe.isConcurrentMode=N,pe.isContextConsumer=function(S){return A(S)===s},pe.isContextProvider=function(S){return A(S)===o},pe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},pe.isForwardRef=function(S){return A(S)===f},pe.isFragment=function(S){return A(S)===n},pe.isLazy=function(S){return A(S)===m},pe.isMemo=function(S){return A(S)===v},pe.isPortal=function(S){return A(S)===r},pe.isProfiler=function(S){return A(S)===a},pe.isStrictMode=function(S){return A(S)===i},pe.isSuspense=function(S){return A(S)===c},pe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===u||S===a||S===i||S===c||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===v||S.$$typeof===o||S.$$typeof===s||S.$$typeof===f||S.$$typeof===T||S.$$typeof===j||S.$$typeof===R||S.$$typeof===y)},pe.typeOf=A,pe}var he={};/** @license React v16.13.1
|
|
128
128
|
* react-is.development.js
|
|
129
129
|
*
|
|
130
130
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
131
|
*
|
|
132
132
|
* This source code is licensed under the MIT license found in the
|
|
133
133
|
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var sc;function
|
|
134
|
+
*/var sc;function OE(){return sc||(sc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,c=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,j=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function A(M){return typeof M=="string"||typeof M=="function"||M===n||M===u||M===a||M===i||M===c||M===p||typeof M=="object"&&M!==null&&(M.$$typeof===m||M.$$typeof===v||M.$$typeof===o||M.$$typeof===s||M.$$typeof===f||M.$$typeof===T||M.$$typeof===j||M.$$typeof===R||M.$$typeof===y)}function N(M){if(typeof M=="object"&&M!==null){var Me=M.$$typeof;switch(Me){case t:var B=M.type;switch(B){case l:case u:case n:case a:case i:case c:return B;default:var Ye=B&&B.$$typeof;switch(Ye){case s:case f:case m:case v:case o:return Ye;default:return Me}}case r:return Me}}}var S=l,D=u,G=s,se=o,h=t,F=f,L=n,V=m,re=v,le=r,Te=a,Y=i,te=c,ce=!1;function Ge(M){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(M)||N(M)===l}function O(M){return N(M)===u}function I(M){return N(M)===s}function Z(M){return N(M)===o}function U(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function X(M){return N(M)===f}function W(M){return N(M)===n}function q(M){return N(M)===m}function J(M){return N(M)===v}function Q(M){return N(M)===r}function ne(M){return N(M)===a}function ee(M){return N(M)===i}function Ie(M){return N(M)===c}he.AsyncMode=S,he.ConcurrentMode=D,he.ContextConsumer=G,he.ContextProvider=se,he.Element=h,he.ForwardRef=F,he.Fragment=L,he.Lazy=V,he.Memo=re,he.Portal=le,he.Profiler=Te,he.StrictMode=Y,he.Suspense=te,he.isAsyncMode=Ge,he.isConcurrentMode=O,he.isContextConsumer=I,he.isContextProvider=Z,he.isElement=U,he.isForwardRef=X,he.isFragment=W,he.isLazy=q,he.isMemo=J,he.isPortal=Q,he.isProfiler=ne,he.isStrictMode=ee,he.isSuspense=Ie,he.isValidElementType=A,he.typeOf=N}()),he}var lc;function uc(){return lc||(lc=1,process.env.NODE_ENV==="production"?zn.exports=AE():zn.exports=OE()),zn.exports}/*
|
|
135
135
|
object-assign
|
|
136
136
|
(c) Sindre Sorhus
|
|
137
137
|
@license MIT
|
|
138
|
-
*/var Ba,cc;function
|
|
139
|
-
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var M=Ie(J,ee,X,W,q+"."+ee,r);if(M)return M}return null}return T(I)}function le(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(le);if(O===null||s(O))return!0;var I=c(O);if(I){var Z=I.call(O),U;if(I!==O.entries){for(;!(U=Z.next()).done;)if(!le(U.value))return!1}else for(;!(U=Z.next()).done;){var X=U.value;if(X&&!le(X[1]))return!1}}else return!1;return!0;default:return!1}}function Te(O,I){return O==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function Y(O){var I=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":Te(I,O)?"symbol":I}function te(O){if(typeof O>"u"||O===null)return""+O;var I=Y(O);if(I==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return I}function ce(O){var I=te(O);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Ge(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Ga}var Ya,gc;function
|
|
138
|
+
*/var Ba,cc;function kE(){if(cc)return Ba;cc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(f){u[f]=f}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ba=i()?Object.assign:function(a,o){for(var s,l=n(a),u,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var c in s)t.call(s,c)&&(l[c]=s[c]);if(e){u=e(s);for(var p=0;p<u.length;p++)r.call(s,u[p])&&(l[u[p]]=s[u[p]])}}return l},Ba}var Ua,fc;function Va(){if(fc)return Ua;fc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ua=e,Ua}var Wa,dc;function pc(){return dc||(dc=1,Wa=Function.call.bind(Object.prototype.hasOwnProperty)),Wa}var Ha,hc;function PE(){if(hc)return Ha;hc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Va(),r={},n=pc();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var f in a)if(n(a,f)){var c;try{if(typeof a[f]!="function"){var p=Error((l||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=a[f](o,f,l,s,null,t)}catch(m){c=m}if(c&&!(c instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var v=u?u():"";e("Failed "+s+" type: "+c.message+(v??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ha=i,Ha}var Ga,mc;function jE(){if(mc)return Ga;mc=1;var e=uc(),t=kE(),r=Va(),n=pc(),i=PE(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Ga=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function c(O){var I=O&&(u&&O[u]||O[f]);if(typeof I=="function")return I}var p="<<anonymous>>",v={array:j("array"),bigint:j("bigint"),bool:j("boolean"),func:j("function"),number:j("number"),object:j("object"),string:j("string"),symbol:j("symbol"),any:R(),arrayOf:A,element:N(),elementType:S(),instanceOf:D,node:F(),objectOf:se,oneOf:G,oneOfType:h,shape:V,exact:re};function m(O,I){return O===I?O!==0||1/O===1/I:O!==O&&I!==I}function y(O,I){this.message=O,this.data=I&&typeof I=="object"?I:{},this.stack=""}y.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var I={},Z=0;function U(W,q,J,Q,ne,ee,Ie){if(Q=Q||p,ee=ee||J,Ie!==r){if(l){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Me=Q+":"+J;!I[Me]&&Z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[Me]=!0,Z++)}}return q[J]==null?W?q[J]===null?new y("The "+ne+" `"+ee+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new y("The "+ne+" `"+ee+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:O(q,J,Q,ne,ee)}var X=U.bind(null,!1);return X.isRequired=U.bind(null,!0),X}function j(O){function I(Z,U,X,W,q,J){var Q=Z[U],ne=Y(Q);if(ne!==O){var ee=te(Q);return new y("Invalid "+W+" `"+q+"` of type "+("`"+ee+"` supplied to `"+X+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(I)}function R(){return T(o)}function A(O){function I(Z,U,X,W,q){if(typeof O!="function")return new y("Property `"+q+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var J=Z[U];if(!Array.isArray(J)){var Q=Y(J);return new y("Invalid "+W+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var ee=O(J,ne,X,W,q+"["+ne+"]",r);if(ee instanceof Error)return ee}return null}return T(I)}function N(){function O(I,Z,U,X,W){var q=I[Z];if(!s(q)){var J=Y(q);return new y("Invalid "+X+" `"+W+"` of type "+("`"+J+"` supplied to `"+U+"`, expected a single ReactElement."))}return null}return T(O)}function S(){function O(I,Z,U,X,W){var q=I[Z];if(!e.isValidElementType(q)){var J=Y(q);return new y("Invalid "+X+" `"+W+"` of type "+("`"+J+"` supplied to `"+U+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function I(Z,U,X,W,q){if(!(Z[U]instanceof O)){var J=O.name||p,Q=Ge(Z[U]);return new y("Invalid "+W+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected ")+("instance of `"+J+"`."))}return null}return T(I)}function G(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function I(Z,U,X,W,q){for(var J=Z[U],Q=0;Q<O.length;Q++)if(m(J,O[Q]))return null;var ne=JSON.stringify(O,function(Ie,M){var Me=te(M);return Me==="symbol"?String(M):M});return new y("Invalid "+W+" `"+q+"` of value `"+String(J)+"` "+("supplied to `"+X+"`, expected one of "+ne+"."))}return T(I)}function se(O){function I(Z,U,X,W,q){if(typeof O!="function")return new y("Property `"+q+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var J=Z[U],Q=Y(J);if(Q!=="object")return new y("Invalid "+W+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an object."));for(var ne in J)if(n(J,ne)){var ee=O(J,ne,X,W,q+"."+ne,r);if(ee instanceof Error)return ee}return null}return T(I)}function h(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var I=0;I<O.length;I++){var Z=O[I];if(typeof Z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ce(Z)+" at index "+I+"."),o}function U(X,W,q,J,Q){for(var ne=[],ee=0;ee<O.length;ee++){var Ie=O[ee],M=Ie(X,W,q,J,Q,r);if(M==null)return null;M.data&&n(M.data,"expectedType")&&ne.push(M.data.expectedType)}var Me=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new y("Invalid "+J+" `"+Q+"` supplied to "+("`"+q+"`"+Me+"."))}return T(U)}function F(){function O(I,Z,U,X,W){return le(I[Z])?null:new y("Invalid "+X+" `"+W+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return T(O)}function L(O,I,Z,U,X){return new y((O||"React class")+": "+I+" type `"+Z+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function V(O){function I(Z,U,X,W,q){var J=Z[U],Q=Y(J);if(Q!=="object")return new y("Invalid "+W+" `"+q+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));for(var ne in O){var ee=O[ne];if(typeof ee!="function")return L(X,W,q,ne,te(ee));var Ie=ee(J,ne,X,W,q+"."+ne,r);if(Ie)return Ie}return null}return T(I)}function re(O){function I(Z,U,X,W,q){var J=Z[U],Q=Y(J);if(Q!=="object")return new y("Invalid "+W+" `"+q+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));var ne=t({},Z[U],O);for(var ee in ne){var Ie=O[ee];if(n(O,ee)&&typeof Ie!="function")return L(X,W,q,ee,te(Ie));if(!Ie)return new y("Invalid "+W+" `"+q+"` key `"+ee+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(Z[U],null," ")+`
|
|
139
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var M=Ie(J,ee,X,W,q+"."+ee,r);if(M)return M}return null}return T(I)}function le(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(le);if(O===null||s(O))return!0;var I=c(O);if(I){var Z=I.call(O),U;if(I!==O.entries){for(;!(U=Z.next()).done;)if(!le(U.value))return!1}else for(;!(U=Z.next()).done;){var X=U.value;if(X&&!le(X[1]))return!1}}else return!1;return!0;default:return!1}}function Te(O,I){return O==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function Y(O){var I=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":Te(I,O)?"symbol":I}function te(O){if(typeof O>"u"||O===null)return""+O;var I=Y(O);if(I==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return I}function ce(O){var I=te(O);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Ge(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Ga}var Ya,gc;function IE(){if(gc)return Ya;gc=1;var e=Va();function t(){}function r(){}return r.resetWarningCache=t,Ya=function(){function n(o,s,l,u,f,c){if(c!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Ya}if(process.env.NODE_ENV!=="production"){var DE=uc(),$E=!0;za.exports=jE()(DE.isElement,$E)}else za.exports=IE()();var ME=za.exports;const de=yt(ME);function It(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var qa={exports:{}},me={};/**
|
|
140
140
|
* @license React
|
|
141
141
|
* react-is.production.min.js
|
|
142
142
|
*
|
|
@@ -144,7 +144,7 @@ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var M=Ie(J,ee,X,W,q+"."+
|
|
|
144
144
|
*
|
|
145
145
|
* This source code is licensed under the MIT license found in the
|
|
146
146
|
* LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/var yc;function
|
|
147
|
+
*/var yc;function RE(){if(yc)return me;yc=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(T){if(typeof T=="object"&&T!==null){var j=T.$$typeof;switch(j){case e:switch(T=T.type,T){case r:case i:case n:case u:case f:return T;default:switch(T=T&&T.$$typeof,T){case s:case o:case l:case p:case c:case a:return T;default:return j}}case t:return j}}}return me.ContextConsumer=o,me.ContextProvider=a,me.Element=e,me.ForwardRef=l,me.Fragment=r,me.Lazy=p,me.Memo=c,me.Portal=t,me.Profiler=i,me.StrictMode=n,me.Suspense=u,me.SuspenseList=f,me.isAsyncMode=function(){return!1},me.isConcurrentMode=function(){return!1},me.isContextConsumer=function(T){return y(T)===o},me.isContextProvider=function(T){return y(T)===a},me.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===e},me.isForwardRef=function(T){return y(T)===l},me.isFragment=function(T){return y(T)===r},me.isLazy=function(T){return y(T)===p},me.isMemo=function(T){return y(T)===c},me.isPortal=function(T){return y(T)===t},me.isProfiler=function(T){return y(T)===i},me.isStrictMode=function(T){return y(T)===n},me.isSuspense=function(T){return y(T)===u},me.isSuspenseList=function(T){return y(T)===f},me.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===i||T===n||T===u||T===f||T===v||typeof T=="object"&&T!==null&&(T.$$typeof===p||T.$$typeof===c||T.$$typeof===a||T.$$typeof===o||T.$$typeof===l||T.$$typeof===m||T.getModuleId!==void 0)},me.typeOf=y,me}var ge={};/**
|
|
148
148
|
* @license React
|
|
149
149
|
* react-is.development.js
|
|
150
150
|
*
|
|
@@ -152,20 +152,20 @@ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var M=Ie(J,ee,X,W,q+"."+
|
|
|
152
152
|
*
|
|
153
153
|
* This source code is licensed under the MIT license found in the
|
|
154
154
|
* LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/var vc;function
|
|
156
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:It(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function
|
|
155
|
+
*/var vc;function NE(){return vc||(vc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m=!1,y=!1,T=!1,j=!1,R=!1,A;A=Symbol.for("react.module.reference");function N(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===i||R||B===n||B===u||B===f||j||B===v||m||y||T||typeof B=="object"&&B!==null&&(B.$$typeof===p||B.$$typeof===c||B.$$typeof===a||B.$$typeof===o||B.$$typeof===l||B.$$typeof===A||B.getModuleId!==void 0))}function S(B){if(typeof B=="object"&&B!==null){var Ye=B.$$typeof;switch(Ye){case e:var Xe=B.type;switch(Xe){case r:case i:case n:case u:case f:return Xe;default:var ot=Xe&&Xe.$$typeof;switch(ot){case s:case o:case l:case p:case c:case a:return ot;default:return Ye}}case t:return Ye}}}var D=o,G=a,se=e,h=l,F=r,L=p,V=c,re=t,le=i,Te=n,Y=u,te=f,ce=!1,Ge=!1;function O(B){return ce||(ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(B){return Ge||(Ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(B){return S(B)===o}function U(B){return S(B)===a}function X(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function W(B){return S(B)===l}function q(B){return S(B)===r}function J(B){return S(B)===p}function Q(B){return S(B)===c}function ne(B){return S(B)===t}function ee(B){return S(B)===i}function Ie(B){return S(B)===n}function M(B){return S(B)===u}function Me(B){return S(B)===f}ge.ContextConsumer=D,ge.ContextProvider=G,ge.Element=se,ge.ForwardRef=h,ge.Fragment=F,ge.Lazy=L,ge.Memo=V,ge.Portal=re,ge.Profiler=le,ge.StrictMode=Te,ge.Suspense=Y,ge.SuspenseList=te,ge.isAsyncMode=O,ge.isConcurrentMode=I,ge.isContextConsumer=Z,ge.isContextProvider=U,ge.isElement=X,ge.isForwardRef=W,ge.isFragment=q,ge.isLazy=J,ge.isMemo=Q,ge.isPortal=ne,ge.isProfiler=ee,ge.isStrictMode=Ie,ge.isSuspense=M,ge.isSuspenseList=Me,ge.isValidElementType=N,ge.typeOf=S}()),ge}process.env.NODE_ENV==="production"?qa.exports=RE():qa.exports=NE();var bc=qa.exports;function xc(e,t=""){return e.displayName||e.name||t}function Tc(e,t,r){const n=xc(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function FE(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return xc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case bc.ForwardRef:return Tc(e,e.render,"ForwardRef");case bc.Memo:return Tc(e,e.type,"memo");default:return}}}function Gt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":It(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ka(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],o=t[i];if(!o)r[i]=a||{};else if(!a)r[i]=o;else{r[i]={...o};for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const l=s;r[i][l]=Ka(a[l],o[l])}}}else r[i]===void 0&&(r[i]=e[i])}return r}function LE(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",s=!0;for(let l=0;l<a.length;l+=1){const u=a[l];u&&(o+=(s===!0?"":" ")+t(u),s=!1,r&&r[u]&&(o+=" "+r[u]))}n[i]=o}return n}const _c=e=>e,zE=(()=>{let e=_c;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_c}}})(),BE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Xa(e,t,r="Mui"){const n=BE[t];return n?`${r}-${n}`:`${zE.generate(e)}-${t}`}function UE(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Xa(e,i,r)}),n}function VE(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Sc(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Sc(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function WE(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Sc(e))&&(n&&(n+=" "),n+=t);return n}function $r(e,t){return t?et(e,t,{clone:!1}):e}const Dt=process.env.NODE_ENV!=="production"?de.oneOfType([de.number,de.string,de.object,de.array]):{};function HE(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var o,s;const a=/min-width:\s*([0-9.]+)/;return+(((o=n.match(a))==null?void 0:o[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function GE(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function YE(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
156
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:It(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function qE(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...s)=>t(e.breakpoints.up(...s),o),a.down=(...s)=>t(e.breakpoints.down(...s),o),a.between=(...s)=>t(e.breakpoints.between(...s),o),a.only=(...s)=>t(e.breakpoints.only(...s),o),a.not=(...s)=>{const l=t(e.breakpoints.not(...s),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const Bn={xs:0,sm:600,md:900,lg:1200,xl:1536},Ec={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bn[e]}px)`},KE={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Bn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Tt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Ec;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||Ec;return Object.keys(t).reduce((o,s)=>{if(GE(a.keys,s)){const l=YE(n.containerQueries?n:KE,s);l&&(o[l]=r(t[s],s))}else if(Object.keys(a.values||Bn).includes(s)){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function XE(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function JE(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function Un(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Vn(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Un(e,r)||n,t&&(i=t(i,n,e)),i}function je(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=Un(l,n)||{};return Tt(o,s,c=>{let p=Vn(u,i,c);return c===p&&typeof c=="string"&&(p=Vn(u,i,`${t}${c==="default"?"":Gt(c)}`,c)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function ZE(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const QE={m:"margin",p:"padding"},eC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tC=ZE(e=>{if(e.length>2)if(Cc[e])e=Cc[e];else return[e];const[t,r]=e.split(""),n=QE[t],i=eC[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Wn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rC=[...Wn,...Hn];function Mr(e,t,r,n){const i=Un(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const o=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>i.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${o} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
157
157
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
158
158
|
`)));const s=i[o];return a>=0?s:typeof s=="number"?-s:`-${s}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
159
|
-
`)),()=>{})}function Ja(e){return Mr(e,"spacing",8,"spacing")}function Rr(e,t){return typeof t=="string"||t==null?t:e(t)}function aC(e,t){return r=>e.reduce((n,i)=>(n[i]=Rr(t,r),n),{})}function oC(e,t,r,n){if(!t.includes(r))return null;const i=nC(r),a=aC(i,n),o=e[r];return Tt(e,o,a)}function wc(e,t){const r=Ja(e.theme);return Object.keys(e).map(n=>oC(e,t,n,r)).reduce($r,{})}function Oe(e){return wc(e,Wn)}Oe.propTypes=process.env.NODE_ENV!=="production"?Wn.reduce((e,t)=>(e[t]=Dt,e),{}):{},Oe.filterProps=Wn;function ke(e){return wc(e,Hn)}ke.propTypes=process.env.NODE_ENV!=="production"?Hn.reduce((e,t)=>(e[t]=Dt,e),{}):{},ke.filterProps=Hn,process.env.NODE_ENV!=="production"&&iC.reduce((e,t)=>(e[t]=Dt,e),{});function Gn(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?$r(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function it(e){return typeof e!="number"?e:`${e}px solid`}function at(e,t){return je({prop:e,themeKey:"borders",transform:t})}const sC=at("border",it),lC=at("borderTop",it),uC=at("borderRight",it),cC=at("borderBottom",it),fC=at("borderLeft",it),dC=at("borderColor"),pC=at("borderTopColor"),hC=at("borderRightColor"),mC=at("borderBottomColor"),gC=at("borderLeftColor"),yC=at("outline",it),vC=at("outlineColor"),Yn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Rr(t,n)});return Tt(e,e.borderRadius,r)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{},Yn.filterProps=["borderRadius"],Gn(sC,lC,uC,cC,fC,dC,pC,hC,mC,gC,Yn,yC,vC);const qn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mr(e.theme,"spacing",8,"gap"),r=n=>({gap:Rr(t,n)});return Tt(e,e.gap,r)}return null};qn.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{},qn.filterProps=["gap"];const Kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Rr(t,n)});return Tt(e,e.columnGap,r)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{},Kn.filterProps=["columnGap"];const Xn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Rr(t,n)});return Tt(e,e.rowGap,r)}return null};Xn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{},Xn.filterProps=["rowGap"];const bC=je({prop:"gridColumn"}),xC=je({prop:"gridRow"}),TC=je({prop:"gridAutoFlow"}),_C=je({prop:"gridAutoColumns"}),SC=je({prop:"gridAutoRows"}),EC=je({prop:"gridTemplateColumns"}),CC=je({prop:"gridTemplateRows"}),wC=je({prop:"gridTemplateAreas"}),AC=je({prop:"gridArea"});Gn(qn,Kn,Xn,bC,xC,TC,_C,SC,EC,CC,wC,AC);function lr(e,t){return t==="grey"?t:e}const OC=je({prop:"color",themeKey:"palette",transform:lr}),kC=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lr}),PC=je({prop:"backgroundColor",themeKey:"palette",transform:lr});Gn(OC,kC,PC);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const jC=je({prop:"width",transform:tt}),Za=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,s,l;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||Bn[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:tt(r)}};return Tt(e,e.maxWidth,t)}return null};Za.filterProps=["maxWidth"];const IC=je({prop:"minWidth",transform:tt}),DC=je({prop:"height",transform:tt}),$C=je({prop:"maxHeight",transform:tt}),MC=je({prop:"minHeight",transform:tt});je({prop:"size",cssProperty:"width",transform:tt}),je({prop:"size",cssProperty:"height",transform:tt});const RC=je({prop:"boxSizing"});Gn(jC,Za,IC,DC,$C,MC,RC);const Jn={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yn},color:{themeKey:"palette",transform:lr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lr},backgroundColor:{themeKey:"palette",transform:lr},p:{style:ke},pt:{style:ke},pr:{style:ke},pb:{style:ke},pl:{style:ke},px:{style:ke},py:{style:ke},padding:{style:ke},paddingTop:{style:ke},paddingRight:{style:ke},paddingBottom:{style:ke},paddingLeft:{style:ke},paddingX:{style:ke},paddingY:{style:ke},paddingInline:{style:ke},paddingInlineStart:{style:ke},paddingInlineEnd:{style:ke},paddingBlock:{style:ke},paddingBlockStart:{style:ke},paddingBlockEnd:{style:ke},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qn},rowGap:{style:Xn},columnGap:{style:Kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Za},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function NC(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function FC(e,t){return typeof e=="function"?e(t):e}function LC(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:f,style:c}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=Un(i,u)||{};return c?c(o):Tt(o,n,m=>{let y=Vn(p,f,m);return m===y&&typeof m=="string"&&(y=Vn(p,f,`${r}${m==="default"?"":Gt(m)}`,m)),l===!1?y:{[l]:y}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??Jn;function o(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const u=ZE(i.breakpoints),f=Object.keys(u);let c=u;return Object.keys(l).forEach(p=>{const v=FC(l[p],i);if(v!=null)if(typeof v=="object")if(a[p])c=$r(c,e(p,v,i,a));else{const m=Tt({theme:i},v,y=>({[p]:y}));NC(m,v)?c[p]=t({sx:v,theme:i}):c=$r(c,m)}else c=$r(c,e(p,v,i,a))}),YE(i,QE(f,c))}return Array.isArray(n)?n.map(o):o(n)}return t}const Nr=LC();Nr.filterProps=["sx"];function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qa.apply(null,arguments)}function Ac(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var zC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,BC=Ac(function(e){return zC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),UC=!0;function VC(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Oc=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||UC===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},WC=function(t,r,n){Oc(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function HC(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 GC={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,scale: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},YC=!1,qC=/[A-Z]|^ms/g,KC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kc=function(t){return t.charCodeAt(1)===45},Pc=function(t){return t!=null&&typeof t!="boolean"},eo=Ac(function(e){return kc(e)?e:e.replace(qC,"-$&").toLowerCase()}),jc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(KC,function(n,i,a){return ht={name:i,styles:a,next:ht},i})}return GC[t]!==1&&!kc(t)&&typeof r=="number"&&r!==0?r+"px":r},XC="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return ht={name:i.name,styles:i.styles,next:ht},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ht={name:o.name,styles:o.styles,next:ht},o=o.next;var s=a.styles+";";return s}return JC(e,t,r)}case"function":{if(e!==void 0){var l=ht,u=r(e);return ht=l,Fr(e,t,u)}break}}var f=r;if(t==null)return f;var c=t[f];return c!==void 0?c:f}function JC(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Fr(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":Pc(s)&&(n+=eo(a)+":"+jc(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&YC)throw new Error(XC);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)Pc(o[l])&&(n+=eo(a)+":"+jc(a,o[l])+";");else{var u=Fr(e,t,o);switch(a){case"animation":case"animationName":{n+=eo(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var Ic=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ht;function ZC(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";ht=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Fr(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Fr(r,t,e[s]),n){var l=a;i+=l[s]}Ic.lastIndex=0;for(var u="",f;(f=Ic.exec(i))!==null;)u+="-"+f[1];var c=HC(i)+u;return{name:c,styles:i,next:ht}}var QC=function(t){return t()},ew=Ze.useInsertionEffect?Ze.useInsertionEffect:!1,tw=ew||QC,rw=BC,nw=function(t){return t!=="theme"},Dc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?rw:nw},$c=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},iw=!1,aw=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Oc(r,n,i),tw(function(){return WC(r,n,i)}),null},ow=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=$c(t,r,n),l=s||Dc(i),u=!l("as");return function(){var f=arguments,c=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var p=f.length,v=1;v<p;v++)c.push(f[v],f[0][v])}var m=yo.withEmotionCache(function(y,T,j){var R=u&&y.as||i,A="",N=[],S=y;if(y.theme==null){S={};for(var D in y)S[D]=y[D];S.theme=Ze.useContext(yo.ThemeContext)}typeof y.className=="string"?A=VC(T.registered,N,y.className):y.className!=null&&(A=y.className+" ");var G=ZC(c.concat(N),T.registered,S);A+=T.key+"-"+G.name,o!==void 0&&(A+=" "+o);var se=u&&s===void 0?Dc(R):l,h={};for(var F in y)u&&F==="as"||se(F)&&(h[F]=y[F]);return h.className=A,j&&(h.ref=j),Ze.createElement(Ze.Fragment,null,Ze.createElement(aw,{cache:T,serialized:G,isStringTag:typeof R=="string"}),Ze.createElement(R,h))});return m.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=c,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&iw?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(y,T){return e(y,Qa({},r,T,{shouldForwardProp:$c(m,T,!0)})).apply(void 0,c)},m}},sw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],to=ow.bind();sw.forEach(function(e){to[e]=to(e)});/**
|
|
159
|
+
`)),()=>{})}function Ja(e){return Mr(e,"spacing",8,"spacing")}function Rr(e,t){return typeof t=="string"||t==null?t:e(t)}function nC(e,t){return r=>e.reduce((n,i)=>(n[i]=Rr(t,r),n),{})}function iC(e,t,r,n){if(!t.includes(r))return null;const i=tC(r),a=nC(i,n),o=e[r];return Tt(e,o,a)}function wc(e,t){const r=Ja(e.theme);return Object.keys(e).map(n=>iC(e,t,n,r)).reduce($r,{})}function Oe(e){return wc(e,Wn)}Oe.propTypes=process.env.NODE_ENV!=="production"?Wn.reduce((e,t)=>(e[t]=Dt,e),{}):{},Oe.filterProps=Wn;function ke(e){return wc(e,Hn)}ke.propTypes=process.env.NODE_ENV!=="production"?Hn.reduce((e,t)=>(e[t]=Dt,e),{}):{},ke.filterProps=Hn,process.env.NODE_ENV!=="production"&&rC.reduce((e,t)=>(e[t]=Dt,e),{});function Gn(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?$r(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function it(e){return typeof e!="number"?e:`${e}px solid`}function at(e,t){return je({prop:e,themeKey:"borders",transform:t})}const aC=at("border",it),oC=at("borderTop",it),sC=at("borderRight",it),lC=at("borderBottom",it),uC=at("borderLeft",it),cC=at("borderColor"),fC=at("borderTopColor"),dC=at("borderRightColor"),pC=at("borderBottomColor"),hC=at("borderLeftColor"),mC=at("outline",it),gC=at("outlineColor"),Yn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Rr(t,n)});return Tt(e,e.borderRadius,r)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{},Yn.filterProps=["borderRadius"],Gn(aC,oC,sC,lC,uC,cC,fC,dC,pC,hC,Yn,mC,gC);const qn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mr(e.theme,"spacing",8,"gap"),r=n=>({gap:Rr(t,n)});return Tt(e,e.gap,r)}return null};qn.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{},qn.filterProps=["gap"];const Kn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Rr(t,n)});return Tt(e,e.columnGap,r)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{},Kn.filterProps=["columnGap"];const Xn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Rr(t,n)});return Tt(e,e.rowGap,r)}return null};Xn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{},Xn.filterProps=["rowGap"];const yC=je({prop:"gridColumn"}),vC=je({prop:"gridRow"}),bC=je({prop:"gridAutoFlow"}),xC=je({prop:"gridAutoColumns"}),TC=je({prop:"gridAutoRows"}),_C=je({prop:"gridTemplateColumns"}),SC=je({prop:"gridTemplateRows"}),EC=je({prop:"gridTemplateAreas"}),CC=je({prop:"gridArea"});Gn(qn,Kn,Xn,yC,vC,bC,xC,TC,_C,SC,EC,CC);function lr(e,t){return t==="grey"?t:e}const wC=je({prop:"color",themeKey:"palette",transform:lr}),AC=je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lr}),OC=je({prop:"backgroundColor",themeKey:"palette",transform:lr});Gn(wC,AC,OC);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const kC=je({prop:"width",transform:tt}),Za=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,s,l;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||Bn[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:tt(r)}};return Tt(e,e.maxWidth,t)}return null};Za.filterProps=["maxWidth"];const PC=je({prop:"minWidth",transform:tt}),jC=je({prop:"height",transform:tt}),IC=je({prop:"maxHeight",transform:tt}),DC=je({prop:"minHeight",transform:tt});je({prop:"size",cssProperty:"width",transform:tt}),je({prop:"size",cssProperty:"height",transform:tt});const $C=je({prop:"boxSizing"});Gn(kC,Za,PC,jC,IC,DC,$C);const Jn={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yn},color:{themeKey:"palette",transform:lr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lr},backgroundColor:{themeKey:"palette",transform:lr},p:{style:ke},pt:{style:ke},pr:{style:ke},pb:{style:ke},pl:{style:ke},px:{style:ke},py:{style:ke},padding:{style:ke},paddingTop:{style:ke},paddingRight:{style:ke},paddingBottom:{style:ke},paddingLeft:{style:ke},paddingX:{style:ke},paddingY:{style:ke},paddingInline:{style:ke},paddingInlineStart:{style:ke},paddingInlineEnd:{style:ke},paddingBlock:{style:ke},paddingBlockStart:{style:ke},paddingBlockEnd:{style:ke},m:{style:Oe},mt:{style:Oe},mr:{style:Oe},mb:{style:Oe},ml:{style:Oe},mx:{style:Oe},my:{style:Oe},margin:{style:Oe},marginTop:{style:Oe},marginRight:{style:Oe},marginBottom:{style:Oe},marginLeft:{style:Oe},marginX:{style:Oe},marginY:{style:Oe},marginInline:{style:Oe},marginInlineStart:{style:Oe},marginInlineEnd:{style:Oe},marginBlock:{style:Oe},marginBlockStart:{style:Oe},marginBlockEnd:{style:Oe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:qn},rowGap:{style:Xn},columnGap:{style:Kn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Za},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function MC(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function RC(e,t){return typeof e=="function"?e(t):e}function NC(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:f,style:c}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const p=Un(i,u)||{};return c?c(o):Tt(o,n,m=>{let y=Vn(p,f,m);return m===y&&typeof m=="string"&&(y=Vn(p,f,`${r}${m==="default"?"":Gt(m)}`,m)),l===!1?y:{[l]:y}})}function t(r){const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=i.unstable_sxConfig??Jn;function o(s){let l=s;if(typeof s=="function")l=s(i);else if(typeof s!="object")return s;if(!l)return null;const u=XE(i.breakpoints),f=Object.keys(u);let c=u;return Object.keys(l).forEach(p=>{const v=RC(l[p],i);if(v!=null)if(typeof v=="object")if(a[p])c=$r(c,e(p,v,i,a));else{const m=Tt({theme:i},v,y=>({[p]:y}));MC(m,v)?c[p]=t({sx:v,theme:i}):c=$r(c,m)}else c=$r(c,e(p,v,i,a))}),HE(i,JE(f,c))}return Array.isArray(n)?n.map(o):o(n)}return t}const Nr=NC();Nr.filterProps=["sx"];function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qa.apply(null,arguments)}function Ac(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var FC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LC=Ac(function(e){return FC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),zC=!0;function BC(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var Oc=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||zC===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},UC=function(t,r,n){Oc(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function VC(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 WC={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,scale: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},HC=!1,GC=/[A-Z]|^ms/g,YC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kc=function(t){return t.charCodeAt(1)===45},Pc=function(t){return t!=null&&typeof t!="boolean"},eo=Ac(function(e){return kc(e)?e:e.replace(GC,"-$&").toLowerCase()}),jc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(YC,function(n,i,a){return ht={name:i,styles:a,next:ht},i})}return WC[t]!==1&&!kc(t)&&typeof r=="number"&&r!==0?r+"px":r},qC="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return ht={name:i.name,styles:i.styles,next:ht},i.name;var a=r;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ht={name:o.name,styles:o.styles,next:ht},o=o.next;var s=a.styles+";";return s}return KC(e,t,r)}case"function":{if(e!==void 0){var l=ht,u=r(e);return ht=l,Fr(e,t,u)}break}}var f=r;if(t==null)return f;var c=t[f];return c!==void 0?c:f}function KC(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Fr(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=a+"{"+t[s]+"}":Pc(s)&&(n+=eo(a)+":"+jc(a,s)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&HC)throw new Error(qC);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)Pc(o[l])&&(n+=eo(a)+":"+jc(a,o[l])+";");else{var u=Fr(e,t,o);switch(a){case"animation":case"animationName":{n+=eo(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}}return n}var Ic=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ht;function XC(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";ht=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Fr(r,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=Fr(r,t,e[s]),n){var l=a;i+=l[s]}Ic.lastIndex=0;for(var u="",f;(f=Ic.exec(i))!==null;)u+="-"+f[1];var c=VC(i)+u;return{name:c,styles:i,next:ht}}var JC=function(t){return t()},ZC=Ze.useInsertionEffect?Ze.useInsertionEffect:!1,QC=ZC||JC,ew=LC,tw=function(t){return t!=="theme"},Dc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ew:tw},$c=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},rw=!1,nw=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Oc(r,n,i),QC(function(){return UC(r,n,i)}),null},iw=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=$c(t,r,n),l=s||Dc(i),u=!l("as");return function(){var f=arguments,c=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var p=f.length,v=1;v<p;v++)c.push(f[v],f[0][v])}var m=yo.withEmotionCache(function(y,T,j){var R=u&&y.as||i,A="",N=[],S=y;if(y.theme==null){S={};for(var D in y)S[D]=y[D];S.theme=Ze.useContext(yo.ThemeContext)}typeof y.className=="string"?A=BC(T.registered,N,y.className):y.className!=null&&(A=y.className+" ");var G=XC(c.concat(N),T.registered,S);A+=T.key+"-"+G.name,o!==void 0&&(A+=" "+o);var se=u&&s===void 0?Dc(R):l,h={};for(var F in y)u&&F==="as"||se(F)&&(h[F]=y[F]);return h.className=A,j&&(h.ref=j),Ze.createElement(Ze.Fragment,null,Ze.createElement(nw,{cache:T,serialized:G,isStringTag:typeof R=="string"}),Ze.createElement(R,h))});return m.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=c,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&rw?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(y,T){return e(y,Qa({},r,T,{shouldForwardProp:$c(m,T,!0)})).apply(void 0,c)},m}},aw=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],to=iw.bind();aw.forEach(function(e){to[e]=to(e)});/**
|
|
160
160
|
* @mui/styled-engine v6.0.2
|
|
161
161
|
*
|
|
162
162
|
* @license MIT
|
|
163
163
|
* This source code is licensed under the MIT license found in the
|
|
164
164
|
* LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/function
|
|
166
|
-
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
165
|
+
*/function ow(e,t){const r=to(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
166
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}const sw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},lw=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function uw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=lw(t),o=Object.keys(a);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function u(p,v){const m=o.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:v)-n/100}${r})`}function f(p){return o.indexOf(p)+1<o.length?u(p,o[o.indexOf(p)+1]):s(p)}function c(p){const v=o.indexOf(p);return v===0?s(o[1]):v===o.length-1?l(o[v]):u(p,o[o.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:s,down:l,between:u,only:f,not:c,unit:r,...i}}const cw={borderRadius:4};function Mc(e=8,t=Ja({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function fw(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return(i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t}}return r.palette.mode===e?t:{}}function Rc(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...o}=e,s=uw(r),l=Mc(i);let u=et({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...cw,...a}},o);return u=qE(u),u.applyStyles=fw,u=t.reduce((f,c)=>et(f,c),u),u.unstable_sxConfig={...Jn,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(c){return Nr({sx:c,theme:this})},u}const dw=Rc();function ro(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function no(e,t,r){return mw(t)?r:t[e]||t}const Zn=Symbol("mui.processed_props");function Qn(e,t,r){if(Zn in e)return e[Zn];const n={...e,theme:no(t,e.theme,r)};return e[Zn]=n,n[Zn]=n,n}function pw(e){return e?(t,r)=>r[e]:null}function ei(e,t){var n;const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(i=>ei(i,t));if(Array.isArray(r==null?void 0:r.variants)){const{variants:i,...a}=r;let o=a,s;e:for(let l=0;l<i.length;l+=1){const u=i[l];if(typeof u.props=="function"){if(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),!u.props(s))continue}else for(const f in u.props)if(t[f]!==u.props[f]&&((n=t.ownerState)==null?void 0:n[f])!==u.props[f])continue e;Array.isArray(o)||(o=[o]),typeof u.style=="function"?(s??(s={...t,...t.ownerState,ownerState:t.ownerState}),o.push(u.style(s))):o.push(u.style)}return o}return r}function hw(e={}){const{themeId:t,defaultTheme:r=dw,rootShouldForwardProp:n=ro,slotShouldForwardProp:i=ro}=e,a=s=>Nr(Qn(s,t,r));return a.__mui_systemSx=!0,(s,l={})=>{sw(s,D=>D.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:u,slot:f,skipVariantsResolver:c,skipSx:p,overridesResolver:v=pw(Nc(f)),...m}=l,y=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,T=p||!1;let j;process.env.NODE_ENV!=="production"&&u&&(j=`${u}-${Nc(f||"Root")}`);let R=ro;f==="Root"||f==="root"?R=n:f?R=i:gw(s)&&(R=void 0);const A=ow(s,{shouldForwardProp:R,label:j,...m}),N=D=>typeof D=="function"&&D.__emotion_real!==D||xt(D)?G=>ei(D,Qn(G,t,r)):D,S=(D,...G)=>{let se=N(D);const h=G?G.map(N):[];u&&v&&h.push(V=>{const re=no(t,V.theme,r);if(!re.components||!re.components[u]||!re.components[u].styleOverrides)return null;const le=re.components[u].styleOverrides,Te={},Y=Qn(V,t,r);for(const te in le)Te[te]=ei(le[te],Y);return v(V,Te)}),u&&!y&&h.push(V=>{var Te,Y;const re=no(t,V.theme,r),le=(Y=(Te=re==null?void 0:re.components)==null?void 0:Te[u])==null?void 0:Y.variants;return le?ei({variants:le},Qn(V,t,r)):null}),T||h.push(a);const F=h.length-G.length;if(Array.isArray(D)&&F>0){const V=new Array(F).fill("");se=[...D,...V],se.raw=[...D.raw,...V]}const L=A(se,...h);if(process.env.NODE_ENV!=="production"){let V;u&&(V=`${u}${Gt(f||"")}`),V===void 0&&(V=`Styled(${FE(s)})`),L.displayName=V}return s.muiName&&(L.muiName=s.muiName),L};return A.withConfig&&(S.withConfig=A.withConfig),S}}function mw(e){for(const t in e)return!1;return!0}function gw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function io(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),VE(e,t,r)}function yw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function $t(e){if(e.type)return e;if(e.charAt(0)==="#")return $t(yw(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
167
167
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:It(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
168
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:It(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const
|
|
168
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:It(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const vw=e=>{const t=$t(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Lr=(e,t)=>{try{return vw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ti(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Fc(e){e=$t(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,f=(u+r/30)%12)=>i-a*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),ti({type:s,values:l})}function ao(e){e=$t(e);let t=e.type==="hsl"||e.type==="hsla"?$t(Fc(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lc(e,t){const r=ao(e),n=ao(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function bw(e,t){return e=$t(e),t=io(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ti(e)}function ri(e,t,r){try{return bw(e,t)}catch{return e}}function oo(e,t){if(e=$t(e),t=io(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ti(e)}function be(e,t,r){try{return oo(e,t)}catch{return e}}function so(e,t){if(e=$t(e),t=io(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ti(e)}function xe(e,t,r){try{return so(e,t)}catch{return e}}function xw(e,t=.15){return ao(e)>.5?oo(e,t):so(e,t)}function ni(e,t,r){try{return xw(e,t)}catch{return e}}const Tw=Ze.createContext(void 0);process.env.NODE_ENV!=="production"&&(de.node,de.object);function _w(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Ka(i.defaultProps,n):!i.styleOverrides&&!i.variants?Ka(i,n):n}function Sw({props:e,name:t}){const r=Ze.useContext(Tw);return _w({props:e,name:t,theme:{components:r}})}function Ew(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const zc=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},Cw=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,l])=>{(!r||r&&!r([...a,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...a,s],Array.isArray(l)?[...o,s]:o):t([...a,s],l,o))})}n(e)},ww=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function lo(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return Cw(e,(s,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const f=`--${r?`${r}-`:""}${s.join("-")}`,c=ww(s,l);Object.assign(i,{[f]:c}),zc(a,s,`var(${f})`,u),zc(o,s,`var(${f}, ${c})`,u)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function Aw(e,t={}){const{getSelector:r=T,disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:o,defaultColorScheme:s="light",...l}=e,{vars:u,css:f,varsWithDefaults:c}=lo(l,t);let p=c;const v={},{[s]:m,...y}=a;if(Object.entries(y||{}).forEach(([A,N])=>{const{vars:S,css:D,varsWithDefaults:G}=lo(N,t);p=et(p,G),v[A]={css:D,vars:S}}),m){const{css:A,vars:N,varsWithDefaults:S}=lo(m,t);p=et(p,S),v[s]={css:A,vars:N}}function T(A,N){var D,G;let S=i;if(i==="class"&&(S=".%s"),i==="data"&&(S="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(S=`[${i}="%s"]`),A){if(S==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((G=(D=a[A])==null?void 0:D.palette)==null?void 0:G.mode)||A})`]:{":root":N}};if(S)return e.defaultColorScheme===A?`:root, ${S.replace("%s",String(A))}`:S.replace("%s",String(A))}return":root"}return{vars:p,generateThemeVars:()=>{let A={...u};return Object.entries(v).forEach(([,{vars:N}])=>{A=et(A,N)}),A},generateStyleSheets:()=>{var se,h;const A=[],N=e.defaultColorScheme||"light";function S(F,L){Object.keys(L).length&&A.push(typeof F=="string"?{[F]:{...L}}:F)}S(r(void 0,{...f}),f);const{[N]:D,...G}=v;if(D){const{css:F}=D,L=(h=(se=a[N])==null?void 0:se.palette)==null?void 0:h.mode,V=!n&&L?{colorScheme:L,...F}:{...F};S(r(N,{...V}),V)}return Object.entries(G).forEach(([F,{css:L}])=>{var le,Te;const V=(Te=(le=a[F])==null?void 0:le.palette)==null?void 0:Te.mode,re=!n&&V?{colorScheme:V,...L}:{...L};S(r(F,{...re}),re)}),A}}}function Ow(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const zr={black:"#000",white:"#fff"},kw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ur={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Br={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},fr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},dr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},pr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Bc={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zr.white,default:zr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uo={text:{primary:zr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Uc(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=so(e.main,i):t==="dark"&&(e.dark=oo(e.main,a)))}function Pw(e="light"){return e==="dark"?{main:fr[200],light:fr[50],dark:fr[400]}:{main:fr[700],light:fr[400],dark:fr[800]}}function jw(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[500],light:ur[300],dark:ur[700]}}function Iw(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function Dw(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function $w(e="light"){return e==="dark"?{main:pr[400],light:pr[300],dark:pr[700]}:{main:pr[800],light:pr[500],dark:pr[900]}}function Mw(e="light"){return e==="dark"?{main:Br[400],light:Br[300],dark:Br[700]}:{main:"#ed6c02",light:Br[500],dark:Br[900]}}function co(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...i}=e,a=e.primary||Pw(t),o=e.secondary||jw(t),s=e.error||Iw(t),l=e.info||Dw(t),u=e.success||$w(t),f=e.warning||Mw(t);function c(y){const T=Lc(y,uo.text.primary)>=r?uo.text.primary:Bc.text.primary;if(process.env.NODE_ENV!=="production"){const j=Lc(y,T);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${T} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
169
169
|
`))}return T}const p=({color:y,name:T,mainShade:j=500,lightShade:R=300,darkShade:A=700})=>{if(y={...y},!y.main&&y[j]&&(y.main=y[j]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
170
170
|
The color object needs to have a \`main\` property or a \`${j}\` property.`:It(11,T?` (${T})`:"",j));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
171
171
|
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
@@ -180,15 +180,15 @@ const theme1 = createTheme({ palette: {
|
|
|
180
180
|
|
|
181
181
|
const theme2 = createTheme({ palette: {
|
|
182
182
|
primary: { main: green[500] },
|
|
183
|
-
} });`:It(12,T?` (${T})`:"",JSON.stringify(y.main)));return Uc(y,"light",R,n),Uc(y,"dark",A,n),y.contrastText||(y.contrastText=c(y.main)),y},v={dark:uo,light:Bc};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et({common:{...zr},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:
|
|
184
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof o=="string"?o:Hc(o)} ${s} ${typeof l=="string"?l:Hc(l)}`).join(",")},...e,easing:t,duration:r}}const
|
|
185
|
-
`))}y[j]={}}}};Object.keys(p.components).forEach(y=>{const T=p.components[y].styleOverrides;T&&y.startsWith("Mui")&&m(T,y)})}return p.unstable_sxConfig={...Jn,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(m){return Nr({sx:m,theme:this})},p}function
|
|
183
|
+
} });`:It(12,T?` (${T})`:"",JSON.stringify(y.main)));return Uc(y,"light",R,n),Uc(y,"dark",A,n),y.contrastText||(y.contrastText=c(y.main)),y},v={dark:uo,light:Bc};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et({common:{...zr},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:kw,contrastThreshold:r,getContrastText:c,augmentColor:p,tonalOffset:n,...v[t]},i)}function Rw(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Nw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fw(e){return Math.round(e*1e5)/1e5}const Vc={textTransform:"uppercase"},Wc='"Roboto", "Helvetica", "Arial", sans-serif';function Lw(e,t){const{fontFamily:r=Wc,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:u,pxToRem:f,...c}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,v=f||(T=>`${T/l*p}rem`),m=(T,j,R,A,N)=>({fontFamily:r,fontWeight:T,fontSize:v(j),lineHeight:R,...r===Wc?{letterSpacing:`${Fw(A/j)}em`}:{},...N,...u}),y={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Vc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Vc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,...y},c,{clone:!1})}const zw=.2,Bw=.14,Uw=.12;function we(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${zw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Uw})`].join(",")}const Vw=["none",we(0,2,1,-1,0,1,1,0,0,1,3,0),we(0,3,1,-2,0,2,2,0,0,1,5,0),we(0,3,3,-2,0,3,4,0,0,1,8,0),we(0,2,4,-1,0,4,5,0,0,1,10,0),we(0,3,5,-1,0,5,8,0,0,1,14,0),we(0,3,5,-1,0,6,10,0,0,1,18,0),we(0,4,5,-2,0,7,10,1,0,2,16,1),we(0,5,5,-3,0,8,10,1,0,3,14,2),we(0,5,6,-3,0,9,12,1,0,3,16,2),we(0,6,6,-3,0,10,14,1,0,4,18,3),we(0,6,7,-4,0,11,15,1,0,4,20,3),we(0,7,8,-4,0,12,17,2,0,5,22,4),we(0,7,8,-4,0,13,19,2,0,5,24,4),we(0,7,9,-4,0,14,21,2,0,5,26,4),we(0,8,9,-5,0,15,22,2,0,6,28,5),we(0,8,10,-5,0,16,24,2,0,6,30,5),we(0,8,11,-5,0,17,26,2,0,6,32,5),we(0,9,11,-5,0,18,28,2,0,7,34,6),we(0,9,12,-6,0,19,29,2,0,7,36,6),we(0,10,13,-6,0,20,31,3,0,8,38,7),we(0,10,13,-6,0,21,33,3,0,8,40,7),we(0,10,14,-6,0,22,35,3,0,8,42,7),we(0,11,14,-7,0,23,36,3,0,9,44,8),we(0,11,15,-7,0,24,38,3,0,9,46,8)],Ww={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Hw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hc(e){return`${Math.round(e)}ms`}function Gw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Yw(e){const t={...Ww,...e.easing},r={...Hw,...e.duration};return{getAutoHeightDuration:Gw,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0,...u}=a;if(process.env.NODE_ENV!=="production"){const f=p=>typeof p=="string",c=p=>!Number.isNaN(parseFloat(p));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!c(o)&&!f(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!c(l)&&!f(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
184
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof o=="string"?o:Hc(o)} ${s} ${typeof l=="string"?l:Hc(l)}`).join(",")},...e,easing:t,duration:r}}const qw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fo(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:l,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":It(20));const f=co(a),c=Rc(e);let p=et(c,{mixins:Nw(c.breakpoints,n),palette:f,shadows:Vw.slice(),typography:Lw(f,s),transitions:Yw(o),zIndex:{...qw}});if(p=et(p,u),p=t.reduce((v,m)=>et(v,m),p),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(y,T)=>{let j;for(j in y){const R=y[j];if(v.includes(j)&&Object.keys(R).length>0){if(process.env.NODE_ENV!=="production"){const A=Xa("",j);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${j}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${A}' syntax:`,JSON.stringify({root:{[`&.${A}`]:R}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
185
|
+
`))}y[j]={}}}};Object.keys(p.components).forEach(y=>{const T=p.components[y].styleOverrides;T&&y.startsWith("Mui")&&m(T,y)})}return p.unstable_sxConfig={...Jn,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(m){return Nr({sx:m,theme:this})},p}function Kw(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Xw=[...Array(25)].map((e,t)=>{if(t===0)return;const r=Kw(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Gc(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Yc(e){return e==="dark"?Xw:[]}function Jw(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...i}=e,a=co(t);return{palette:a,opacity:{...Gc(a.mode),...r},overlays:n||Yc(a.mode),...i}}function Zw(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Qw=e=>[...[...Array(24)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],eA=e=>(t,r)=>{const n=e.colorSchemeSelector;let i=n;if(n==="class"&&(i=".%s"),n==="data"&&(i="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(i=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Qw(e.cssVarPrefix).forEach(o=>{a[o]=r[o],delete r[o]}),i==="media"?{":root":r,"@media (prefers-color-scheme: dark)":{":root":a}}:i?{[i.replace("%s",t)]:a,[`:root, ${i.replace("%s",t)}`]:r}:{":root":{...r,...a}}}if(i&&i!=="media")return`:root, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{":root":r}};if(i)return i.replace("%s",String(t))}return":root"};function tA(e){return xt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rA(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!tA(s)||o.startsWith("unstable_")?delete n[o]:xt(s)&&(n[o]={...s},r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
186
186
|
|
|
187
187
|
const theme = ${JSON.stringify(t,null,2)};
|
|
188
188
|
|
|
189
189
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
190
190
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
191
191
|
|
|
192
|
-
export default theme;`}function
|
|
193
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function oA(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mt=e=>{try{return e()}catch{}},sA=(e="mui")=>ww(e);function po(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=Qw({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...o}=fo({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Gc(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Yc(i)},o}function lA(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=eA,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,...l}=e,u=Object.keys(r)[0],f=n||(r.light&&u!=="light"?"light":u),c=sA(a),{[f]:p,light:v,dark:m,...y}=r,T={...y};let j=p;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:It(21,f));const R=po(T,j,l,f);v&&!T.light&&po(T,v,void 0,"light"),m&&!T.dark&&po(T,m,void 0,"dark");let A={defaultColorScheme:f,...R,cssVarPrefix:a,colorSchemeSelector:s,getCssVar:c,colorSchemes:T,font:{...Fw(R.typography),...R.font},spacing:oA(l.spacing)};Object.keys(A.colorSchemes).forEach(se=>{const h=A.colorSchemes[se].palette,F=L=>{const V=L.split("-"),re=V[1],le=V[2];return c(L,h[re][le])};if(h.mode==="light"&&(E(h.common,"background","#fff"),E(h.common,"onBackground","#000")),h.mode==="dark"&&(E(h.common,"background","#000"),E(h.common,"onBackground","#fff")),aA(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){E(h.Alert,"errorColor",be(h.error.light,.6)),E(h.Alert,"infoColor",be(h.info.light,.6)),E(h.Alert,"successColor",be(h.success.light,.6)),E(h.Alert,"warningColor",be(h.warning.light,.6)),E(h.Alert,"errorFilledBg",F("palette-error-main")),E(h.Alert,"infoFilledBg",F("palette-info-main")),E(h.Alert,"successFilledBg",F("palette-success-main")),E(h.Alert,"warningFilledBg",F("palette-warning-main")),E(h.Alert,"errorFilledColor",mt(()=>h.getContrastText(h.error.main))),E(h.Alert,"infoFilledColor",mt(()=>h.getContrastText(h.info.main))),E(h.Alert,"successFilledColor",mt(()=>h.getContrastText(h.success.main))),E(h.Alert,"warningFilledColor",mt(()=>h.getContrastText(h.warning.main))),E(h.Alert,"errorStandardBg",xe(h.error.light,.9)),E(h.Alert,"infoStandardBg",xe(h.info.light,.9)),E(h.Alert,"successStandardBg",xe(h.success.light,.9)),E(h.Alert,"warningStandardBg",xe(h.warning.light,.9)),E(h.Alert,"errorIconColor",F("palette-error-main")),E(h.Alert,"infoIconColor",F("palette-info-main")),E(h.Alert,"successIconColor",F("palette-success-main")),E(h.Alert,"warningIconColor",F("palette-warning-main")),E(h.AppBar,"defaultBg",F("palette-grey-100")),E(h.Avatar,"defaultBg",F("palette-grey-400")),E(h.Button,"inheritContainedBg",F("palette-grey-300")),E(h.Button,"inheritContainedHoverBg",F("palette-grey-A100")),E(h.Chip,"defaultBorder",F("palette-grey-400")),E(h.Chip,"defaultAvatarColor",F("palette-grey-700")),E(h.Chip,"defaultIconColor",F("palette-grey-700")),E(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),E(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),E(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),E(h.LinearProgress,"primaryBg",xe(h.primary.main,.62)),E(h.LinearProgress,"secondaryBg",xe(h.secondary.main,.62)),E(h.LinearProgress,"errorBg",xe(h.error.main,.62)),E(h.LinearProgress,"infoBg",xe(h.info.main,.62)),E(h.LinearProgress,"successBg",xe(h.success.main,.62)),E(h.LinearProgress,"warningBg",xe(h.warning.main,.62)),E(h.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),E(h.Slider,"primaryTrack",xe(h.primary.main,.62)),E(h.Slider,"secondaryTrack",xe(h.secondary.main,.62)),E(h.Slider,"errorTrack",xe(h.error.main,.62)),E(h.Slider,"infoTrack",xe(h.info.main,.62)),E(h.Slider,"successTrack",xe(h.success.main,.62)),E(h.Slider,"warningTrack",xe(h.warning.main,.62));const L=ni(h.background.default,.8);E(h.SnackbarContent,"bg",L),E(h.SnackbarContent,"color",mt(()=>h.getContrastText(L))),E(h.SpeedDialAction,"fabHoverBg",ni(h.background.paper,.15)),E(h.StepConnector,"border",F("palette-grey-400")),E(h.StepContent,"border",F("palette-grey-400")),E(h.Switch,"defaultColor",F("palette-common-white")),E(h.Switch,"defaultDisabledColor",F("palette-grey-100")),E(h.Switch,"primaryDisabledColor",xe(h.primary.main,.62)),E(h.Switch,"secondaryDisabledColor",xe(h.secondary.main,.62)),E(h.Switch,"errorDisabledColor",xe(h.error.main,.62)),E(h.Switch,"infoDisabledColor",xe(h.info.main,.62)),E(h.Switch,"successDisabledColor",xe(h.success.main,.62)),E(h.Switch,"warningDisabledColor",xe(h.warning.main,.62)),E(h.TableCell,"border",xe(ri(h.divider,1),.88)),E(h.Tooltip,"bg",ri(h.grey[700],.92))}if(h.mode==="dark"){E(h.Alert,"errorColor",xe(h.error.light,.6)),E(h.Alert,"infoColor",xe(h.info.light,.6)),E(h.Alert,"successColor",xe(h.success.light,.6)),E(h.Alert,"warningColor",xe(h.warning.light,.6)),E(h.Alert,"errorFilledBg",F("palette-error-dark")),E(h.Alert,"infoFilledBg",F("palette-info-dark")),E(h.Alert,"successFilledBg",F("palette-success-dark")),E(h.Alert,"warningFilledBg",F("palette-warning-dark")),E(h.Alert,"errorFilledColor",mt(()=>h.getContrastText(h.error.dark))),E(h.Alert,"infoFilledColor",mt(()=>h.getContrastText(h.info.dark))),E(h.Alert,"successFilledColor",mt(()=>h.getContrastText(h.success.dark))),E(h.Alert,"warningFilledColor",mt(()=>h.getContrastText(h.warning.dark))),E(h.Alert,"errorStandardBg",be(h.error.light,.9)),E(h.Alert,"infoStandardBg",be(h.info.light,.9)),E(h.Alert,"successStandardBg",be(h.success.light,.9)),E(h.Alert,"warningStandardBg",be(h.warning.light,.9)),E(h.Alert,"errorIconColor",F("palette-error-main")),E(h.Alert,"infoIconColor",F("palette-info-main")),E(h.Alert,"successIconColor",F("palette-success-main")),E(h.Alert,"warningIconColor",F("palette-warning-main")),E(h.AppBar,"defaultBg",F("palette-grey-900")),E(h.AppBar,"darkBg",F("palette-background-paper")),E(h.AppBar,"darkColor",F("palette-text-primary")),E(h.Avatar,"defaultBg",F("palette-grey-600")),E(h.Button,"inheritContainedBg",F("palette-grey-800")),E(h.Button,"inheritContainedHoverBg",F("palette-grey-700")),E(h.Chip,"defaultBorder",F("palette-grey-700")),E(h.Chip,"defaultAvatarColor",F("palette-grey-300")),E(h.Chip,"defaultIconColor",F("palette-grey-300")),E(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),E(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),E(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),E(h.LinearProgress,"primaryBg",be(h.primary.main,.5)),E(h.LinearProgress,"secondaryBg",be(h.secondary.main,.5)),E(h.LinearProgress,"errorBg",be(h.error.main,.5)),E(h.LinearProgress,"infoBg",be(h.info.main,.5)),E(h.LinearProgress,"successBg",be(h.success.main,.5)),E(h.LinearProgress,"warningBg",be(h.warning.main,.5)),E(h.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),E(h.Slider,"primaryTrack",be(h.primary.main,.5)),E(h.Slider,"secondaryTrack",be(h.secondary.main,.5)),E(h.Slider,"errorTrack",be(h.error.main,.5)),E(h.Slider,"infoTrack",be(h.info.main,.5)),E(h.Slider,"successTrack",be(h.success.main,.5)),E(h.Slider,"warningTrack",be(h.warning.main,.5));const L=ni(h.background.default,.98);E(h.SnackbarContent,"bg",L),E(h.SnackbarContent,"color",mt(()=>h.getContrastText(L))),E(h.SpeedDialAction,"fabHoverBg",ni(h.background.paper,.15)),E(h.StepConnector,"border",F("palette-grey-600")),E(h.StepContent,"border",F("palette-grey-600")),E(h.Switch,"defaultColor",F("palette-grey-300")),E(h.Switch,"defaultDisabledColor",F("palette-grey-600")),E(h.Switch,"primaryDisabledColor",be(h.primary.main,.55)),E(h.Switch,"secondaryDisabledColor",be(h.secondary.main,.55)),E(h.Switch,"errorDisabledColor",be(h.error.main,.55)),E(h.Switch,"infoDisabledColor",be(h.info.main,.55)),E(h.Switch,"successDisabledColor",be(h.success.main,.55)),E(h.Switch,"warningDisabledColor",be(h.warning.main,.55)),E(h.TableCell,"border",be(ri(h.divider,1),.68)),E(h.Tooltip,"bg",ri(h.grey[700],.92))}_t(h.background,"default"),_t(h.background,"paper"),_t(h.common,"background"),_t(h.common,"onBackground"),_t(h,"divider"),Object.keys(h).forEach(L=>{const V=h[L];V&&typeof V=="object"&&(V.main&&E(h[L],"mainChannel",Lr(Ur(V.main))),V.light&&E(h[L],"lightChannel",Lr(Ur(V.light))),V.dark&&E(h[L],"darkChannel",Lr(Ur(V.dark))),V.contrastText&&E(h[L],"contrastTextChannel",Lr(Ur(V.contrastText))),L==="text"&&(_t(h[L],"primary"),_t(h[L],"secondary")),L==="action"&&(V.active&&_t(h[L],"active"),V.selected&&_t(h[L],"selected")))})}),A=t.reduce((se,h)=>et(se,h),A);const N={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:rA(A)},{vars:S,generateThemeVars:D,generateStyleSheets:G}=kw(A,N);return A.vars=S,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([se,h])=>{A[se]=h}),A.generateThemeVars=D,A.generateStyleSheets=G,A.generateSpacing=function(){return Mc(l.spacing,Ja(this))},A.getColorSchemeSelector=Pw(s),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=o,A.unstable_sxConfig={...Jn,...l==null?void 0:l.unstable_sxConfig},A.unstable_sx=function(h){return Nr({sx:h,theme:this})},A.toRuntimeSource=iA,A}function qc(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:co({...r===!0?{}:r.palette,mode:t})})}function uA(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...o}=e,s=a||"light",l=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return fo(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const c=fo({...e,palette:f},...t);return c.defaultColorScheme=s,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={...u.light!==!0&&u.light,palette:c.palette},qc(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:c.palette},qc(c,"light",u.light)),c}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),lA({...o,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const cA=uA(),fA="$$material";function dA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pA=gw({themeId:fA,defaultTheme:cA,rootShouldForwardProp:e=>dA(e)&&e!=="classes"}),Kc={theme:void 0};function hA(e){let t,r;return n=>{let i=t;return(i===void 0||n.theme!==r)&&(Kc.theme=n.theme,i=e(Kc),t=i,r=n.theme),i}}process.env.NODE_ENV!=="production"&&(de.node,de.object.isRequired);function mA(e){return Cw(e)}function gA(e){return Xa("MuiSvgIcon",e)}WE("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yA=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Gt(t)}`,`fontSize${Gt(r)}`]};return BE(i,gA,n)},vA=pA("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Gt(r.color)}`],t[`fontSize${Gt(r.fontSize)}`]]}})(hA(({theme:e})=>{var t,r,n,i,a,o,s,l,u,f,c,p,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var T,j;return{props:{color:y},style:{color:(j=(T=(e.vars??e).palette)==null?void 0:T[y])==null?void 0:j.main}}}),{props:{color:"action"},style:{color:(p=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Vr=Ze.forwardRef(function(t,r){const n=mA({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:p="0 0 24 24",...v}=n,m=Ze.isValidElement(i)&&i.type==="svg",y={...n,color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:m},T={};f||(T.viewBox=p);const j=yA(y);return d.jsxs(vA,{as:s,className:GE(j.root,a),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r,...T,...v,...m&&i.props,ownerState:y,children:[m?i.props.children:i,c?d.jsx("title",{children:c}):null]})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:de.node,classes:de.object,className:de.string,color:de.oneOfType([de.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),de.string]),component:de.elementType,fontSize:de.oneOfType([de.oneOf(["inherit","large","medium","small"]),de.string]),htmlColor:de.string,inheritViewBox:de.bool,shapeRendering:de.string,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),titleAccess:de.string,viewBox:de.string}),Vr&&(Vr.muiName="SvgIcon");function ho(e,t){function r(n,i){return d.jsx(Vr,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vr.muiName,Ze.memo(Ze.forwardRef(r))}const bA=ho(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xA=ho(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),TA=ho(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),hr=({children:e,...t})=>d.jsx(b.Table.Td,{...t,children:e}),_A=({errorMessages:e,id:t})=>d.jsx(b.Tooltip,{id:t,title:e,children:d.jsx(b.Indicator,{label:e.split(`
|
|
194
|
-
`).length,children:d.jsx(Yd,{})})}),SA={paddingLeft:0,paddingRight:0},EA=_.memo(function({numColumns:t,errors:r,label:n,description:i,path:a,addItem:o,schema:s,enabled:l,translations:u,rootSchema:f}){const c={bg:"transparent",size:"sm",c:"gray"},p=b.useProps("ActionIcon",c,{});return d.jsxs(b.Table.Tr,{children:[d.jsx(hr,{colSpan:t,children:d.jsxs(b.Stack,{children:[d.jsxs(b.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Text,{children:n})}),d.jsx(b.Grid.Col,{span:"content",children:r.length!==0?d.jsx(b.Grid.Col,{span:"content",children:d.jsx(_A,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(b.Text,{size:"sm",children:i})]})}),l?d.jsx(hr,{align:"right",style:SA,children:d.jsx(b.Tooltip,{id:"tooltip-add",title:u.addTooltip,position:"bottom",children:d.jsx(b.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:o(a,H.createDefaultValue(s,f)),children:d.jsx(qi,{})})})}):null]})}),Xc={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Jc=(e,t,r,n,i)=>{if(t.type==="object")return Zc(t).map(a=>{var l,u;const o=H.Paths.compose(r,a),s={propName:a,schema:t,title:((u=(l=t.properties)==null?void 0:l[a])==null?void 0:u.title)??dE(a),rowPath:r,cellPath:o,enabled:n,cells:i};return d.jsx(e,{...s},o)});{const a={schema:t,rowPath:r,cellPath:r,enabled:n};return d.jsx(e,{...a},r)}},Zc=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],CA=({numColumns:e,translations:t})=>d.jsx(b.Table.Tr,{children:d.jsx(hr,{colSpan:e,children:d.jsx(b.Text,{align:"center",children:t.noDataMessage})})}),wA=_.memo(function({title:t}){return d.jsx(b.Table.Th,{children:t})}),AA=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=H.formatErrorMessage(e_(H.errorsAt(r,t.schema,i=>i===r)(e.core.errors).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},Qc=e=>({type:"Control",scope:e,label:!1}),OA=_.memo(function({path:t,propName:r,schema:n,rootSchema:i,errors:a,enabled:o,renderers:s,cells:l,isValid:u}){return d.jsxs(hr,{children:[n.properties?d.jsx(_e.DispatchCell,{schema:H.Resolve.schema(n,`#/properties/${H.encode(r)}`,i),uischema:Qc(`#/properties/${H.encode(r)}`),path:t,enabled:o,renderers:s,cells:l}):d.jsx(_e.DispatchCell,{schema:n,uischema:Qc("#"),path:t,enabled:o,renderers:s,cells:l}),d.jsx(b.Text,{size:"xs",children:u?"":a})]})}),kA=e=>{const t=_e.useJsonForms(),r=AA(t,e),n=jl(r.errors);return d.jsx(OA,{...r,isValid:n})},PA=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:o,enableDown:s,showSortButtons:l,enabled:u,cells:f,path:c,translations:p})=>{const v={bg:"transparent",size:"sm",c:"gray"},m=b.useProps("ActionIcon",v,{}),y=_.useMemo(()=>i(c,r),[i,c,r]),T=_.useMemo(()=>a(c,r),[a,c,r]);return d.jsxs(b.Table.Tr,{children:[Jc(kA,t,e,u,f),u?d.jsx(hr,{style:l?Xc.fixedCell:Xc.fixedCellSmall,children:d.jsxs(b.Grid,{justify:"flex-end",align:"center",children:[l?d.jsxs(_.Fragment,{children:[d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:o?void 0:!1,children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.upAriaLabel,onClick:y,disabled:!o,children:d.jsx(xA,{})})})}),d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:s?void 0:!1,children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.downAriaLabel,onClick:T,disabled:!s,children:d.jsx(bA,{})})})})]}):null,d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:d.jsx(TA,{})})})})]})}):null]},e)},ef=_.memo(PA),jA=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:i,moveDown:a,uischema:o,config:s,enabled:l,cells:u,translations:f})=>{if(e===0)return d.jsx(CA,{numColumns:Zc(r).length+1,translations:f});const p=uu({},s,o.options);return d.jsx(_.Fragment,{children:OE(e).map(v=>{const m=H.Paths.compose(t,`${v}`);return d.jsx(ef,{childPath:m,rowIndex:v,schema:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:v!==0,enableDown:v!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:u,path:t,translations:f},m)})})};class tf extends _.Component{constructor(){super(...arguments);Of(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:i,schema:a,rootSchema:o,uischema:s,errors:l,openDeleteDialog:u,visible:f,enabled:c,cells:p,translations:v}=this.props,m=s,y=a.type==="object",T=y?Jc(wA,a,i,c,p):void 0;return f?d.jsxs(b.Table,{children:[d.jsxs(b.Table.Thead,{children:[d.jsx(EA,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:y?T.length:1,path:i,uischema:m,schema:a,rootSchema:o,enabled:c,translations:v}),y&&d.jsxs(b.Table.Tr,{children:[T,c?d.jsx(b.Table.Th,{}):null]})]}),d.jsx(b.Table.Tbody,{children:d.jsx(jA,{openDeleteDialog:u,translations:v,...this.props})})]}):null}}const rf=_.memo(function({open:t,onClose:r,onConfirm:n,onCancel:i,title:a,message:o,acceptText:s,declineText:l}){return d.jsxs(b.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:r,children:[o,d.jsxs(b.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(b.Button,{onClick:i,children:l}),d.jsx(b.Button,{onClick:n,children:s})]})]})}),IA=e=>{const[t,r]=_.useState(!1),[n,i]=_.useState(void 0),[a,o]=_.useState(void 0),{removeItems:s,visible:l}=e,u=_.useCallback((v,m)=>{r(!0),i(v),o(m)},[r,i,o]),f=_.useCallback(()=>r(!1),[r]),c=_.useCallback(()=>{const v=n.substring(0,n.lastIndexOf("."));s(v,[a])(),r(!1)},[r,n,a]),p=_.useCallback(()=>r(!1),[r]);return l?d.jsxs(d.Fragment,{children:[d.jsx(tf,{...e,openDeleteDialog:u}),d.jsx(rf,{open:t,onCancel:f,onConfirm:c,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},nf=H.rankWith(3,H.or(H.isObjectArrayControl,H.isPrimitiveArrayControl)),af=_e.withJsonFormsArrayLayoutProps(IA),DA=({errors:e,description:t,label:r,required:n,path:i,options:a,data:o,enabled:s,handleChange:l})=>d.jsx(b.MultiSelect,{disabled:!s,data:a,defaultValue:o,label:r,description:t,required:n,error:e,onChange:u=>{l(i,u)}}),$A=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),MA=e=>e.type==="string"&&e.enum!==void 0,of=H.rankWith(6,H.and(H.uiTypeIs("Control"),H.and(H.schemaMatches(e=>H.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),H.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?H.resolveSchema(t,e.$ref,t):e;return $A(r)||MA(r)})))),sf=_e.withJsonFormsMultiEnumProps(DA),RA=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:o,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u.getTime()-u.getTimezoneOffset()*6e4);i(a,f.toISOString().substring(0,10))}}})},lf=H.rankWith(5,H.isDateControl),uf=_e.withJsonFormsControlProps(RA),NA=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(Xt.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:o,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u);i(a,f.toISOString())}}})},cf=H.rankWith(5,H.isDateTimeControl),ff=_e.withJsonFormsControlProps(NA),FA=e=>d.jsx(In,{...e}),df=H.rankWith(3,H.isNumberControl),pf=_e.withJsonFormsControlProps(FA),LA=e=>d.jsx(In,{...e}),hf=H.rankWith(3,H.isIntegerControl),mf=_e.withJsonFormsControlProps(LA),zA=e=>d.jsx(cu,{...e}),gf=H.rankWith(3,H.isStringControl),yf=_e.withJsonFormsControlProps(zA),BA=e=>d.jsx(fu,{...e}),vf=H.rankWith(3,H.isBooleanControl),bf=_e.withJsonFormsControlProps(BA),UA=({data:e,options:t,handleChange:r,path:n,...i})=>{const{description:a,errors:o,label:s,required:l,enabled:u}=i;return d.jsx(b.Select,{disabled:!u,data:t,value:e||null,label:s,description:a,required:l,error:o,searchable:!0,onChange:f=>{r(n,f)}})},xf=H.rankWith(5,H.isEnumControl),Tf=_e.withJsonFormsEnumProps(_e.withTranslateProps(_.memo(UA)),!1),VA=e=>{const{text:t,visible:r}=e;return r?d.jsx(b.Title,{fw:"bold",size:"xl",children:t}):null},WA=H.rankWith(3,H.isLabelable),HA=_e.withJsonFormsLabelProps(VA),_f=H.rankWith(5,H.uiTypeIs("HorizontalLayout")),GA=({uischema:e,renderers:t,cells:r,schema:n,path:i,enabled:a})=>{const s={elements:e.elements,schema:n,path:i,enabled:a,direction:"row"};return d.jsx(Ia,{...s,renderers:t,cells:r})},Sf=_e.withJsonFormsLayoutProps(GA),Ef=H.rankWith(5,H.uiTypeIs("VerticalLayout")),YA=({uischema:e,schema:t,path:r,enabled:n,renderers:i,cells:a})=>{const s={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return d.jsx(Ia,{...s,renderers:i,cells:a})},Cf=_e.withJsonFormsLayoutProps(YA),qA=[{tester:lf,renderer:uf},{tester:cf,renderer:ff},{tester:df,renderer:pf},{tester:hf,renderer:mf},{tester:gf,renderer:yf},{tester:vf,renderer:bf},{tester:xf,renderer:Tf},{tester:nf,renderer:af},{tester:of,renderer:sf},{tester:_f,renderer:Sf},{tester:Ef,renderer:Cf},{tester:WA,renderer:HA}],KA=[{tester:gu,cell:yu},{tester:du,cell:pu},{tester:hu,cell:mu},{tester:vu,cell:bu},{tester:xu,cell:Tu},{tester:_u,cell:Su},{tester:Eu,cell:Cu}],mo={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function XA({basePath:e="/security",Target:t,children:r}){const n=Ft.useNavigate(),{user:i,signout:a}=qo(),[o,s]=_.useState(!1),u=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:Zd},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:Kd},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:rs},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:rs},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:Hd}].filter(f=>i.permissions.includes(f.name));return d.jsxs(b.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:o,onClose:()=>s(!1),onOpen:()=>s(!0),children:[d.jsx(b.Menu.Target,{children:t||d.jsx(b.UnstyledButton,{className:mo.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(b.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(b.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${i.first_name} ${i.last_name}`}),d.jsx(Yi,{size:12})]})})}),d.jsxs(b.Menu.Dropdown,{children:[u.length?d.jsxs(d.Fragment,{children:[d.jsx(b.Menu.Label,{children:"Security"}),u.map((f,c)=>d.jsx(b.Menu.Item,{p:12,leftSection:d.jsx(f.Icon,{className:mo.iconSmall}),onClick:()=>n(f.resource_name),children:f.label},c)),d.jsx(b.Menu.Divider,{})]}):null,r,d.jsx(b.Menu.Item,{leftSection:d.jsx(Xd,{p:12,className:mo.iconSmall}),onClick:a,children:"Logout"})]})]})}P.Actions=ms,P.Add=is,P.AddDialog=Qo,P.ApiProvider=Xo,P.DataGrid=Ta,P.Delete=hs,P.DeleteDialog=rf,P.Edit=ps,P.EditDialog=ds,P.Filter=os,P.FilterMenu=as,P.InfiniteScroll=Lh,P.MantineArrayControlRenderer=af,P.MantineBooleanCell=bu,P.MantineBooleanControl=bf,P.MantineDateCell=Tu,P.MantineDateControl=uf,P.MantineDateTimeCell=Su,P.MantineDateTimeControl=ff,P.MantineEnumArrayRenderer=sf,P.MantineEnumCell=Cu,P.MantineEnumControl=Tf,P.MantineHorizontalLayoutRenderer=Sf,P.MantineIntegerCell=mu,P.MantineIntegerControl=mf,P.MantineLayoutRenderer=Ia,P.MantineNumberCell=pu,P.MantineNumberControl=pf,P.MantineTableControl=tf,P.MantineTextCell=yu,P.MantineTextControl=yf,P.MantineVerticalLayoutRenderer=Cf,P.NoBorderTableCell=hr,P.NonEmptyRow=ef,P.Provider=Pd,P.UserMenu=XA,P.mantineArrayControlTester=nf,P.mantineBooleanCellTester=vu,P.mantineBooleanControlTester=vf,P.mantineCells=KA,P.mantineDateCellTester=xu,P.mantineDateControlTester=lf,P.mantineDateTimeCellTester=_u,P.mantineDateTimeControlTester=cf,P.mantineEnumArrayRendererTester=of,P.mantineEnumCellTester=Eu,P.mantineEnumControlTester=xf,P.mantineHorizontalLayoutTester=_f,P.mantineIntegerCellTester=hu,P.mantineIntegerControlTester=hf,P.mantineNumberCellTester=du,P.mantineNumberControlTester=df,P.mantineRenderers=qA,P.mantineTextCellTester=gu,P.mantineTextControlTester=gf,P.mantineVerticalLayoutTester=Ef,P.renderLayoutElements=Il,P.useApi=$e,P.useAuth=qo,P.useAuthenticate=xo,P.useBulkActions=Md,P.useCustomFetch=Xr,P.useDebouncedChange=Fl,P.useGetList=To,P.useInfo=Ko,P.useInfo_=Go,P.withAjvProps=Ry,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|
|
192
|
+
export default theme;`}function nA(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function E(e,t,r){!e[t]&&r&&(e[t]=r)}function Ur(e){return!e||!e.startsWith("hsl")?e:Fc(e)}function _t(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Lr(Ur(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
193
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function iA(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mt=e=>{try{return e()}catch{}},aA=(e="mui")=>Ew(e);function po(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=Jw({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...o}=fo({...r,palette:{mode:i,...t==null?void 0:t.palette}});return e[n]={...t,palette:a,opacity:{...Gc(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Yc(i)},o}function oA(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=Zw,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,...l}=e,u=Object.keys(r)[0],f=n||(r.light&&u!=="light"?"light":u),c=aA(a),{[f]:p,light:v,dark:m,...y}=r,T={...y};let j=p;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(j=!0),!j)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:It(21,f));const R=po(T,j,l,f);v&&!T.light&&po(T,v,void 0,"light"),m&&!T.dark&&po(T,m,void 0,"dark");let A={defaultColorScheme:f,...R,cssVarPrefix:a,colorSchemeSelector:s,getCssVar:c,colorSchemes:T,font:{...Rw(R.typography),...R.font},spacing:iA(l.spacing)};Object.keys(A.colorSchemes).forEach(se=>{const h=A.colorSchemes[se].palette,F=L=>{const V=L.split("-"),re=V[1],le=V[2];return c(L,h[re][le])};if(h.mode==="light"&&(E(h.common,"background","#fff"),E(h.common,"onBackground","#000")),h.mode==="dark"&&(E(h.common,"background","#000"),E(h.common,"onBackground","#fff")),nA(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){E(h.Alert,"errorColor",be(h.error.light,.6)),E(h.Alert,"infoColor",be(h.info.light,.6)),E(h.Alert,"successColor",be(h.success.light,.6)),E(h.Alert,"warningColor",be(h.warning.light,.6)),E(h.Alert,"errorFilledBg",F("palette-error-main")),E(h.Alert,"infoFilledBg",F("palette-info-main")),E(h.Alert,"successFilledBg",F("palette-success-main")),E(h.Alert,"warningFilledBg",F("palette-warning-main")),E(h.Alert,"errorFilledColor",mt(()=>h.getContrastText(h.error.main))),E(h.Alert,"infoFilledColor",mt(()=>h.getContrastText(h.info.main))),E(h.Alert,"successFilledColor",mt(()=>h.getContrastText(h.success.main))),E(h.Alert,"warningFilledColor",mt(()=>h.getContrastText(h.warning.main))),E(h.Alert,"errorStandardBg",xe(h.error.light,.9)),E(h.Alert,"infoStandardBg",xe(h.info.light,.9)),E(h.Alert,"successStandardBg",xe(h.success.light,.9)),E(h.Alert,"warningStandardBg",xe(h.warning.light,.9)),E(h.Alert,"errorIconColor",F("palette-error-main")),E(h.Alert,"infoIconColor",F("palette-info-main")),E(h.Alert,"successIconColor",F("palette-success-main")),E(h.Alert,"warningIconColor",F("palette-warning-main")),E(h.AppBar,"defaultBg",F("palette-grey-100")),E(h.Avatar,"defaultBg",F("palette-grey-400")),E(h.Button,"inheritContainedBg",F("palette-grey-300")),E(h.Button,"inheritContainedHoverBg",F("palette-grey-A100")),E(h.Chip,"defaultBorder",F("palette-grey-400")),E(h.Chip,"defaultAvatarColor",F("palette-grey-700")),E(h.Chip,"defaultIconColor",F("palette-grey-700")),E(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),E(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),E(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),E(h.LinearProgress,"primaryBg",xe(h.primary.main,.62)),E(h.LinearProgress,"secondaryBg",xe(h.secondary.main,.62)),E(h.LinearProgress,"errorBg",xe(h.error.main,.62)),E(h.LinearProgress,"infoBg",xe(h.info.main,.62)),E(h.LinearProgress,"successBg",xe(h.success.main,.62)),E(h.LinearProgress,"warningBg",xe(h.warning.main,.62)),E(h.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),E(h.Slider,"primaryTrack",xe(h.primary.main,.62)),E(h.Slider,"secondaryTrack",xe(h.secondary.main,.62)),E(h.Slider,"errorTrack",xe(h.error.main,.62)),E(h.Slider,"infoTrack",xe(h.info.main,.62)),E(h.Slider,"successTrack",xe(h.success.main,.62)),E(h.Slider,"warningTrack",xe(h.warning.main,.62));const L=ni(h.background.default,.8);E(h.SnackbarContent,"bg",L),E(h.SnackbarContent,"color",mt(()=>h.getContrastText(L))),E(h.SpeedDialAction,"fabHoverBg",ni(h.background.paper,.15)),E(h.StepConnector,"border",F("palette-grey-400")),E(h.StepContent,"border",F("palette-grey-400")),E(h.Switch,"defaultColor",F("palette-common-white")),E(h.Switch,"defaultDisabledColor",F("palette-grey-100")),E(h.Switch,"primaryDisabledColor",xe(h.primary.main,.62)),E(h.Switch,"secondaryDisabledColor",xe(h.secondary.main,.62)),E(h.Switch,"errorDisabledColor",xe(h.error.main,.62)),E(h.Switch,"infoDisabledColor",xe(h.info.main,.62)),E(h.Switch,"successDisabledColor",xe(h.success.main,.62)),E(h.Switch,"warningDisabledColor",xe(h.warning.main,.62)),E(h.TableCell,"border",xe(ri(h.divider,1),.88)),E(h.Tooltip,"bg",ri(h.grey[700],.92))}if(h.mode==="dark"){E(h.Alert,"errorColor",xe(h.error.light,.6)),E(h.Alert,"infoColor",xe(h.info.light,.6)),E(h.Alert,"successColor",xe(h.success.light,.6)),E(h.Alert,"warningColor",xe(h.warning.light,.6)),E(h.Alert,"errorFilledBg",F("palette-error-dark")),E(h.Alert,"infoFilledBg",F("palette-info-dark")),E(h.Alert,"successFilledBg",F("palette-success-dark")),E(h.Alert,"warningFilledBg",F("palette-warning-dark")),E(h.Alert,"errorFilledColor",mt(()=>h.getContrastText(h.error.dark))),E(h.Alert,"infoFilledColor",mt(()=>h.getContrastText(h.info.dark))),E(h.Alert,"successFilledColor",mt(()=>h.getContrastText(h.success.dark))),E(h.Alert,"warningFilledColor",mt(()=>h.getContrastText(h.warning.dark))),E(h.Alert,"errorStandardBg",be(h.error.light,.9)),E(h.Alert,"infoStandardBg",be(h.info.light,.9)),E(h.Alert,"successStandardBg",be(h.success.light,.9)),E(h.Alert,"warningStandardBg",be(h.warning.light,.9)),E(h.Alert,"errorIconColor",F("palette-error-main")),E(h.Alert,"infoIconColor",F("palette-info-main")),E(h.Alert,"successIconColor",F("palette-success-main")),E(h.Alert,"warningIconColor",F("palette-warning-main")),E(h.AppBar,"defaultBg",F("palette-grey-900")),E(h.AppBar,"darkBg",F("palette-background-paper")),E(h.AppBar,"darkColor",F("palette-text-primary")),E(h.Avatar,"defaultBg",F("palette-grey-600")),E(h.Button,"inheritContainedBg",F("palette-grey-800")),E(h.Button,"inheritContainedHoverBg",F("palette-grey-700")),E(h.Chip,"defaultBorder",F("palette-grey-700")),E(h.Chip,"defaultAvatarColor",F("palette-grey-300")),E(h.Chip,"defaultIconColor",F("palette-grey-300")),E(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),E(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),E(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),E(h.LinearProgress,"primaryBg",be(h.primary.main,.5)),E(h.LinearProgress,"secondaryBg",be(h.secondary.main,.5)),E(h.LinearProgress,"errorBg",be(h.error.main,.5)),E(h.LinearProgress,"infoBg",be(h.info.main,.5)),E(h.LinearProgress,"successBg",be(h.success.main,.5)),E(h.LinearProgress,"warningBg",be(h.warning.main,.5)),E(h.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),E(h.Slider,"primaryTrack",be(h.primary.main,.5)),E(h.Slider,"secondaryTrack",be(h.secondary.main,.5)),E(h.Slider,"errorTrack",be(h.error.main,.5)),E(h.Slider,"infoTrack",be(h.info.main,.5)),E(h.Slider,"successTrack",be(h.success.main,.5)),E(h.Slider,"warningTrack",be(h.warning.main,.5));const L=ni(h.background.default,.98);E(h.SnackbarContent,"bg",L),E(h.SnackbarContent,"color",mt(()=>h.getContrastText(L))),E(h.SpeedDialAction,"fabHoverBg",ni(h.background.paper,.15)),E(h.StepConnector,"border",F("palette-grey-600")),E(h.StepContent,"border",F("palette-grey-600")),E(h.Switch,"defaultColor",F("palette-grey-300")),E(h.Switch,"defaultDisabledColor",F("palette-grey-600")),E(h.Switch,"primaryDisabledColor",be(h.primary.main,.55)),E(h.Switch,"secondaryDisabledColor",be(h.secondary.main,.55)),E(h.Switch,"errorDisabledColor",be(h.error.main,.55)),E(h.Switch,"infoDisabledColor",be(h.info.main,.55)),E(h.Switch,"successDisabledColor",be(h.success.main,.55)),E(h.Switch,"warningDisabledColor",be(h.warning.main,.55)),E(h.TableCell,"border",be(ri(h.divider,1),.68)),E(h.Tooltip,"bg",ri(h.grey[700],.92))}_t(h.background,"default"),_t(h.background,"paper"),_t(h.common,"background"),_t(h.common,"onBackground"),_t(h,"divider"),Object.keys(h).forEach(L=>{const V=h[L];V&&typeof V=="object"&&(V.main&&E(h[L],"mainChannel",Lr(Ur(V.main))),V.light&&E(h[L],"lightChannel",Lr(Ur(V.light))),V.dark&&E(h[L],"darkChannel",Lr(Ur(V.dark))),V.contrastText&&E(h[L],"contrastTextChannel",Lr(Ur(V.contrastText))),L==="text"&&(_t(h[L],"primary"),_t(h[L],"secondary")),L==="action"&&(V.active&&_t(h[L],"active"),V.selected&&_t(h[L],"selected")))})}),A=t.reduce((se,h)=>et(se,h),A);const N={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:eA(A)},{vars:S,generateThemeVars:D,generateStyleSheets:G}=Aw(A,N);return A.vars=S,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([se,h])=>{A[se]=h}),A.generateThemeVars=D,A.generateStyleSheets=G,A.generateSpacing=function(){return Mc(l.spacing,Ja(this))},A.getColorSchemeSelector=Ow(s),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=o,A.unstable_sxConfig={...Jn,...l==null?void 0:l.unstable_sxConfig},A.unstable_sx=function(h){return Nr({sx:h,theme:this})},A.toRuntimeSource=rA,A}function qc(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:co({...r===!0?{}:r.palette,mode:t})})}function sA(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode,...o}=e,s=a||"light",l=i==null?void 0:i[s],u={...i,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return fo(e,...t);let f=r;"palette"in e||u[s]&&(u[s]!==!0?f=u[s].palette:s==="dark"&&(f={mode:"dark"}));const c=fo({...e,palette:f},...t);return c.defaultColorScheme=s,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={...u.light!==!0&&u.light,palette:c.palette},qc(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:c.palette},qc(c,"light",u.light)),c}return!r&&!("light"in u)&&s==="light"&&(u.light=!0),oA({...o,colorSchemes:u,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const lA=sA(),uA="$$material";function cA(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fA=hw({themeId:uA,defaultTheme:lA,rootShouldForwardProp:e=>cA(e)&&e!=="classes"}),Kc={theme:void 0};function dA(e){let t,r;return n=>{let i=t;return(i===void 0||n.theme!==r)&&(Kc.theme=n.theme,i=e(Kc),t=i,r=n.theme),i}}process.env.NODE_ENV!=="production"&&(de.node,de.object.isRequired);function pA(e){return Sw(e)}function hA(e){return Xa("MuiSvgIcon",e)}UE("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mA=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Gt(t)}`,`fontSize${Gt(r)}`]};return LE(i,hA,n)},gA=fA("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Gt(r.color)}`],t[`fontSize${Gt(r.fontSize)}`]]}})(dA(({theme:e})=>{var t,r,n,i,a,o,s,l,u,f,c,p,v,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var T,j;return{props:{color:y},style:{color:(j=(T=(e.vars??e).palette)==null?void 0:T[y])==null?void 0:j.main}}}),{props:{color:"action"},style:{color:(p=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Vr=Ze.forwardRef(function(t,r){const n=pA({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:p="0 0 24 24",...v}=n,m=Ze.isValidElement(i)&&i.type==="svg",y={...n,color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:m},T={};f||(T.viewBox=p);const j=mA(y);return d.jsxs(gA,{as:s,className:WE(j.root,a),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:r,...T,...v,...m&&i.props,ownerState:y,children:[m?i.props.children:i,c?d.jsx("title",{children:c}):null]})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:de.node,classes:de.object,className:de.string,color:de.oneOfType([de.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),de.string]),component:de.elementType,fontSize:de.oneOfType([de.oneOf(["inherit","large","medium","small"]),de.string]),htmlColor:de.string,inheritViewBox:de.bool,shapeRendering:de.string,sx:de.oneOfType([de.arrayOf(de.oneOfType([de.func,de.object,de.bool])),de.func,de.object]),titleAccess:de.string,viewBox:de.string}),Vr&&(Vr.muiName="SvgIcon");function ho(e,t){function r(n,i){return d.jsx(Vr,{"data-testid":`${t}Icon`,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vr.muiName,Ze.memo(Ze.forwardRef(r))}const yA=ho(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),vA=ho(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),bA=ho(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),hr=({children:e,...t})=>d.jsx(b.Table.Td,{...t,children:e}),xA=({errorMessages:e,id:t})=>d.jsx(b.Tooltip,{id:t,title:e,children:d.jsx(b.Indicator,{label:e.split(`
|
|
194
|
+
`).length,children:d.jsx(Hd,{})})}),TA={paddingLeft:0,paddingRight:0},_A=_.memo(function({numColumns:t,errors:r,label:n,description:i,path:a,addItem:o,schema:s,enabled:l,translations:u,rootSchema:f}){const c={bg:"transparent",size:"sm",c:"gray"},p=b.useProps("ActionIcon",c,{});return d.jsxs(b.Table.Tr,{children:[d.jsx(hr,{colSpan:t,children:d.jsxs(b.Stack,{children:[d.jsxs(b.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Text,{children:n})}),d.jsx(b.Grid.Col,{span:"content",children:r.length!==0?d.jsx(b.Grid.Col,{span:"content",children:d.jsx(xA,{id:"tooltip-validation",errorMessages:r})}):null})]}),i&&d.jsx(b.Text,{size:"sm",children:i})]})}),l?d.jsx(hr,{align:"right",style:TA,children:d.jsx(b.Tooltip,{id:"tooltip-add",title:u.addTooltip,position:"bottom",children:d.jsx(b.ActionIcon,{bg:p.bg,size:p.size,c:p.c,onClick:o(a,H.createDefaultValue(s,f)),children:d.jsx(qi,{})})})}):null]})}),Xc={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Jc=(e,t,r,n,i)=>{if(t.type==="object")return Zc(t).map(a=>{var l,u;const o=H.Paths.compose(r,a),s={propName:a,schema:t,title:((u=(l=t.properties)==null?void 0:l[a])==null?void 0:u.title)??cE(a),rowPath:r,cellPath:o,enabled:n,cells:i};return d.jsx(e,{...s},o)});{const a={schema:t,rowPath:r,cellPath:r,enabled:n};return d.jsx(e,{...a},r)}},Zc=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],SA=({numColumns:e,translations:t})=>d.jsx(b.Table.Tr,{children:d.jsx(hr,{colSpan:e,children:d.jsx(b.Text,{align:"center",children:t.noDataMessage})})}),EA=_.memo(function({title:t}){return d.jsx(b.Table.Th,{children:t})}),CA=(e,t)=>{const r=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),n=H.formatErrorMessage(Z1(H.errorsAt(r,t.schema,i=>i===r)(e.core.errors).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:n,path:r,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},Qc=e=>({type:"Control",scope:e,label:!1}),wA=_.memo(function({path:t,propName:r,schema:n,rootSchema:i,errors:a,enabled:o,renderers:s,cells:l,isValid:u}){return d.jsxs(hr,{children:[n.properties?d.jsx(_e.DispatchCell,{schema:H.Resolve.schema(n,`#/properties/${H.encode(r)}`,i),uischema:Qc(`#/properties/${H.encode(r)}`),path:t,enabled:o,renderers:s,cells:l}):d.jsx(_e.DispatchCell,{schema:n,uischema:Qc("#"),path:t,enabled:o,renderers:s,cells:l}),d.jsx(b.Text,{size:"xs",children:u?"":a})]})}),AA=e=>{const t=_e.useJsonForms(),r=CA(t,e),n=jl(r.errors);return d.jsx(wA,{...r,isValid:n})},OA=({childPath:e,schema:t,rowIndex:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:o,enableDown:s,showSortButtons:l,enabled:u,cells:f,path:c,translations:p})=>{const v={bg:"transparent",size:"sm",c:"gray"},m=b.useProps("ActionIcon",v,{}),y=_.useMemo(()=>i(c,r),[i,c,r]),T=_.useMemo(()=>a(c,r),[a,c,r]);return d.jsxs(b.Table.Tr,{children:[Jc(AA,t,e,u,f),u?d.jsx(hr,{style:l?Xc.fixedCell:Xc.fixedCellSmall,children:d.jsxs(b.Grid,{justify:"flex-end",align:"center",children:[l?d.jsxs(_.Fragment,{children:[d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-up",title:p.up,position:"bottom",opened:o?void 0:!1,children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.upAriaLabel,onClick:y,disabled:!o,children:d.jsx(vA,{})})})}),d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-down",title:p.down,position:"bottom",opened:s?void 0:!1,children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.downAriaLabel,onClick:T,disabled:!s,children:d.jsx(yA,{})})})})]}):null,d.jsx(b.Grid.Col,{span:"content",children:d.jsx(b.Tooltip,{id:"tooltip-remove",title:p.removeTooltip,position:"bottom",children:d.jsx(b.ActionIcon,{bg:m.bg,size:m.size,c:m.c,"aria-label":p.removeAriaLabel,onClick:()=>n(e,r),children:d.jsx(bA,{})})})})]})}):null]},e)},ef=_.memo(OA),kA=({data:e,path:t,schema:r,openDeleteDialog:n,moveUp:i,moveDown:a,uischema:o,config:s,enabled:l,cells:u,translations:f})=>{if(e===0)return d.jsx(SA,{numColumns:Zc(r).length+1,translations:f});const p=uu({},s,o.options);return d.jsx(_.Fragment,{children:wE(e).map(v=>{const m=H.Paths.compose(t,`${v}`);return d.jsx(ef,{childPath:m,rowIndex:v,schema:r,openDeleteDialog:n,moveUpCreator:i,moveDownCreator:a,enableUp:v!==0,enableDown:v!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:l,cells:u,path:t,translations:f},m)})})};class tf extends _.Component{constructor(){super(...arguments);Of(this,"addItem",(r,n)=>this.props.addItem(r,n))}render(){const{label:r,description:n,path:i,schema:a,rootSchema:o,uischema:s,errors:l,openDeleteDialog:u,visible:f,enabled:c,cells:p,translations:v}=this.props,m=s,y=a.type==="object",T=y?Jc(EA,a,i,c,p):void 0;return f?d.jsxs(b.Table,{children:[d.jsxs(b.Table.Thead,{children:[d.jsx(_A,{errors:l,label:r,description:n,addItem:this.addItem,numColumns:y?T.length:1,path:i,uischema:m,schema:a,rootSchema:o,enabled:c,translations:v}),y&&d.jsxs(b.Table.Tr,{children:[T,c?d.jsx(b.Table.Th,{}):null]})]}),d.jsx(b.Table.Tbody,{children:d.jsx(kA,{openDeleteDialog:u,translations:v,...this.props})})]}):null}}const rf=_.memo(function({open:t,onClose:r,onConfirm:n,onCancel:i,title:a,message:o,acceptText:s,declineText:l}){return d.jsxs(b.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:r,children:[o,d.jsxs(b.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(b.Button,{onClick:i,children:l}),d.jsx(b.Button,{onClick:n,children:s})]})]})}),PA=e=>{const[t,r]=_.useState(!1),[n,i]=_.useState(void 0),[a,o]=_.useState(void 0),{removeItems:s,visible:l}=e,u=_.useCallback((v,m)=>{r(!0),i(v),o(m)},[r,i,o]),f=_.useCallback(()=>r(!1),[r]),c=_.useCallback(()=>{const v=n.substring(0,n.lastIndexOf("."));s(v,[a])(),r(!1)},[r,n,a]),p=_.useCallback(()=>r(!1),[r]);return l?d.jsxs(d.Fragment,{children:[d.jsx(tf,{...e,openDeleteDialog:u}),d.jsx(rf,{open:t,onCancel:f,onConfirm:c,onClose:p,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},nf=H.rankWith(3,H.or(H.isObjectArrayControl,H.isPrimitiveArrayControl)),af=_e.withJsonFormsArrayLayoutProps(PA),jA=({errors:e,description:t,label:r,required:n,path:i,options:a,data:o,enabled:s,handleChange:l})=>d.jsx(b.MultiSelect,{disabled:!s,data:a,defaultValue:o,label:r,description:t,required:n,error:e,onChange:u=>{l(i,u)}}),IA=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),DA=e=>e.type==="string"&&e.enum!==void 0,of=H.rankWith(6,H.and(H.uiTypeIs("Control"),H.and(H.schemaMatches(e=>H.hasType(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),H.schemaSubPathMatches("items",(e,t)=>{const r=e.$ref?H.resolveSchema(t,e.$ref,t):e;return IA(r)||DA(r)})))),sf=_e.withJsonFormsMultiEnumProps(jA),$A=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(Xt.DateInput,{valueFormat:"DD.MM.YYYY",disabled:!l,label:o,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u.getTime()-u.getTimezoneOffset()*6e4);i(a,f.toISOString().substring(0,10))}}})},lf=H.rankWith(5,H.isDateControl),uf=_e.withJsonFormsControlProps($A),MA=e=>{const{description:t,errors:r,data:n,handleChange:i,path:a,label:o,required:s,enabled:l}=e;return d.jsx(Xt.DateTimePicker,{valueFormat:"DD.MM.YYYY HH:mm",disabled:!l,label:o,description:t,error:r,required:s,value:n?new Date(n):null,onChange:u=>{if(u instanceof Date){const f=new Date(u);i(a,f.toISOString())}}})},cf=H.rankWith(5,H.isDateTimeControl),ff=_e.withJsonFormsControlProps(MA),RA=e=>d.jsx(In,{...e}),df=H.rankWith(3,H.isNumberControl),pf=_e.withJsonFormsControlProps(RA),NA=e=>d.jsx(In,{...e}),hf=H.rankWith(3,H.isIntegerControl),mf=_e.withJsonFormsControlProps(NA),FA=e=>d.jsx(cu,{...e}),gf=H.rankWith(3,H.isStringControl),yf=_e.withJsonFormsControlProps(FA),LA=e=>d.jsx(fu,{...e}),vf=H.rankWith(3,H.isBooleanControl),bf=_e.withJsonFormsControlProps(LA),zA=({data:e,options:t,handleChange:r,path:n,...i})=>{const{description:a,errors:o,label:s,required:l,enabled:u}=i;return d.jsx(b.Select,{disabled:!u,data:t,value:e||null,label:s,description:a,required:l,error:o,searchable:!0,onChange:f=>{r(n,f)}})},xf=H.rankWith(5,H.isEnumControl),Tf=_e.withJsonFormsEnumProps(_e.withTranslateProps(_.memo(zA)),!1),BA=e=>{const{text:t,visible:r}=e;return r?d.jsx(b.Title,{fw:"bold",size:"xl",children:t}):null},UA=H.rankWith(3,H.isLabelable),VA=_e.withJsonFormsLabelProps(BA),_f=H.rankWith(5,H.uiTypeIs("HorizontalLayout")),WA=({uischema:e,renderers:t,cells:r,schema:n,path:i,enabled:a})=>{const s={elements:e.elements,schema:n,path:i,enabled:a,direction:"row"};return d.jsx(Ia,{...s,renderers:t,cells:r})},Sf=_e.withJsonFormsLayoutProps(WA),Ef=H.rankWith(5,H.uiTypeIs("VerticalLayout")),HA=({uischema:e,schema:t,path:r,enabled:n,renderers:i,cells:a})=>{const s={elements:e.elements,schema:t,path:r,enabled:n,direction:"column"};return d.jsx(Ia,{...s,renderers:i,cells:a})},Cf=_e.withJsonFormsLayoutProps(HA),GA=[{tester:lf,renderer:uf},{tester:cf,renderer:ff},{tester:df,renderer:pf},{tester:hf,renderer:mf},{tester:gf,renderer:yf},{tester:vf,renderer:bf},{tester:xf,renderer:Tf},{tester:nf,renderer:af},{tester:of,renderer:sf},{tester:_f,renderer:Sf},{tester:Ef,renderer:Cf},{tester:UA,renderer:VA}],YA=[{tester:gu,cell:yu},{tester:du,cell:pu},{tester:hu,cell:mu},{tester:vu,cell:bu},{tester:xu,cell:Tu},{tester:_u,cell:Su},{tester:Eu,cell:Cu}],mo={iconSmall:"_iconSmall_sxv3z_1",iconLarge:"_iconLarge_sxv3z_6",btn:"_btn_sxv3z_17"};function qA({basePath:e="/security",Target:t,children:r}){const n=Ft.useNavigate(),{user:i,signout:a}=qo(),[o,s]=_.useState(!1),u=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:Xd},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:Yd},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:rs},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:rs},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:Vd}].filter(f=>i.permissions.includes(f.name));return d.jsxs(b.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:o,onClose:()=>s(!1),onOpen:()=>s(!0),children:[d.jsx(b.Menu.Target,{children:t||d.jsx(b.UnstyledButton,{className:mo.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(b.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(b.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${i.first_name} ${i.last_name}`}),d.jsx(Yi,{size:12})]})})}),d.jsxs(b.Menu.Dropdown,{children:[u.length?d.jsxs(d.Fragment,{children:[d.jsx(b.Menu.Label,{children:"Security"}),u.map((f,c)=>d.jsx(b.Menu.Item,{p:12,leftSection:d.jsx(f.Icon,{className:mo.iconSmall}),onClick:()=>n(f.resource_name),children:f.label},c)),d.jsx(b.Menu.Divider,{})]}):null,r,d.jsx(b.Menu.Item,{leftSection:d.jsx(qd,{p:12,className:mo.iconSmall}),onClick:a,children:"Logout"})]})]})}P.Actions=ms,P.Add=is,P.AddDialog=Qo,P.ApiProvider=Xo,P.DataGrid=Ta,P.Delete=hs,P.DeleteDialog=rf,P.Edit=ps,P.EditDialog=ds,P.Filter=os,P.FilterMenu=as,P.InfiniteScroll=Nh,P.MantineArrayControlRenderer=af,P.MantineBooleanCell=bu,P.MantineBooleanControl=bf,P.MantineDateCell=Tu,P.MantineDateControl=uf,P.MantineDateTimeCell=Su,P.MantineDateTimeControl=ff,P.MantineEnumArrayRenderer=sf,P.MantineEnumCell=Cu,P.MantineEnumControl=Tf,P.MantineHorizontalLayoutRenderer=Sf,P.MantineIntegerCell=mu,P.MantineIntegerControl=mf,P.MantineLayoutRenderer=Ia,P.MantineNumberCell=pu,P.MantineNumberControl=pf,P.MantineTableControl=tf,P.MantineTextCell=yu,P.MantineTextControl=yf,P.MantineVerticalLayoutRenderer=Cf,P.NoBorderTableCell=hr,P.NonEmptyRow=ef,P.Provider=Pd,P.UserMenu=qA,P.mantineArrayControlTester=nf,P.mantineBooleanCellTester=vu,P.mantineBooleanControlTester=vf,P.mantineCells=YA,P.mantineDateCellTester=xu,P.mantineDateControlTester=lf,P.mantineDateTimeCellTester=_u,P.mantineDateTimeControlTester=cf,P.mantineEnumArrayRendererTester=of,P.mantineEnumCellTester=Eu,P.mantineEnumControlTester=xf,P.mantineHorizontalLayoutTester=_f,P.mantineIntegerCellTester=hu,P.mantineIntegerControlTester=hf,P.mantineNumberCellTester=du,P.mantineNumberControlTester=df,P.mantineRenderers=GA,P.mantineTextCellTester=gu,P.mantineTextControlTester=gf,P.mantineVerticalLayoutTester=Ef,P.renderLayoutElements=Il,P.useApi=$e,P.useAuth=qo,P.useAuthenticate=xo,P.useBulkActions=Md,P.useCustomFetch=Xr,P.useDebouncedChange=Fl,P.useGetList=To,P.useInfo=Ko,P.useInfo_=Go,P.withAjvProps=$y,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|