fastapi-rtk 0.0.116 → 0.0.118
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 +6206 -6104
- package/dist/fastapi-rtk.umd.js +78 -58
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/fastapi-rtk.umd.js
CHANGED
|
@@ -1,134 +1,154 @@
|
|
|
1
|
-
(function(I,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("@mantine/core"),require("react"),require("react-router-dom"),require("zustand"),require("@tanstack/react-query"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@mantine/dates"),require("clsx"),require("@emotion/react"),require("@mantine/form"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@mantine/core","react","react-router-dom","zustand","@tanstack/react-query","@mantine/hooks","@jsonforms/react","@jsonforms/core","@mantine/dates","clsx","@emotion/react","@mantine/form","mantine-react-table"],p):(I=typeof globalThis<"u"?globalThis:I||self,p(I["fastapi-rtk"]={},I.jsxRuntime,I.core,I.React,I.reactRouterDom,I.zustand,I.reactQuery,I.hooks,I.react,I.core$1,I.dates,I.clsx,I.react$1,I.form,I.mantineReactTable))})(this,function(I,p,w,A,gf,mf,Ln,nt,De,ue,Vi,Ir,yf,Na,yn){"use strict";var e4=Object.defineProperty;var t4=(I,p,w)=>p in I?e4(I,p,{enumerable:!0,configurable:!0,writable:!0,value:w}):I[p]=w;var Jv=(I,p,w)=>t4(I,typeof p!="symbol"?p+"":p,w);function Zv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ft=Zv(A),La=A.createContext({path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,n)=>({}),deleteEntry:async(e,t)=>({}),download:async e=>null});function Oe(){const e=A.useContext(La);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e}const vf=0,bf=25,rr=250;function Ot({path:e,method:t,body:n=void 0,queryParams:o=void 0}){const s=Object.entries(o||{}).reduce((c,[d,h])=>((Array.isArray(h)||typeof h=="object")&&(h=JSON.stringify(h)),c[d]=h,c),{}),a=new gf.createSearchParams(s);e=e+"?"+a;const u={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:n?JSON.stringify(n):null};return{fetchPath:e,options:u}}function Xv(e){return e&&typeof e=="object"&&!Array.isArray(e)}const zn=(...e)=>{const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{Xv(n[o])&&o!=="ref"&&t[o]?t[o]=zn(t[o],n[o]):t[o]=n[o]})}),t},za=e=>e==null?e:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>za(t)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e,Gi=(e,t,n=!0)=>{const o=t.split(".");let s=e;for(const a of o)Array.isArray(s)?s=s.map(u=>Gi(u,a,!1)):s=s==null?void 0:s[a];return n?za(s):s},Ba=(e,t)=>e===void 0?t:e;function ei(e){return e!=null}const lt=(e,t)=>typeof e=="function"?e(t):e;function _f(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 s=0;s<e.length;s++){let a=e[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),s<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}let n=t.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");const o=n.split("?");return n=o.shift()+(o.length>0?"?":"")+o.join("&"),n}function dt(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return _f(t)}const zo=e=>new Proxy(e,{get(t,n){return t(o=>o[n])}}),wf=(e,t)=>Object.entries(t).reduce((n,[o,s])=>typeof s=="object"&&JSON.stringify(s)===JSON.stringify(e[o])||s===e[o]?n:{...n,[o]:s},{});function Hi(e){const[t]=A.useState(()=>mf.create(()=>({...e}))),[n]=A.useState(()=>zo(t));return A.useEffect(()=>{t.setState(o=>wf(o,e))},[e,t]),n}const Ua=A.createContext({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,refetch:async()=>null});function Pr(){return A.useContext(Ua)}const ja=A.createContext({baseUrl:"",info:null,loading:!1,error:null});function Tf(){return A.useContext(ja)}async function Sf(e,{username:t,password:n}){const o=new FormData;o.append("username",t),o.append("password",n);const{fetchPath:s,options:a}=Ot({path:dt(e,"auth/login"),method:"POST"}),u=await fetch(s,{...a,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o)});if(!u.ok)throw u.status===400?new Error("Username or password wrong."):new Error("Failed to sign in.")}async function Cf(e){const{fetchPath:t,options:n}=Ot({path:dt(e,"auth/logout"),method:"POST"});if(!(await fetch(t,n)).ok)throw new Error("Failed to sign out.")}async function Ef(e,t,{email:n}){const{fetchPath:o,options:s}=Ot({path:dt(e,"auth/forgot-password"),method:"POST",body:{email:n}}),a=await fetch(o,s);if(!a.ok)throw new Error("Couldn't request token to reset password");const u=await a.json(),{token:c}=u,{fetchPath:d,options:h}=Ot({path:dt(e,"auth/reset-password"),method:"POST",body:{token:c,password:t}});if(!(await fetch(d,h)).ok)throw new Error("Couldn't reset password")}async function xf(e,t,n,o){const s=dt(e,"auth/login",t);if(!n){window.location.href=dt(e,"auth/login",t);return}const a=500,u=500,c=window.screenLeft+window.outerWidth/2-a/2,d=window.screenTop+window.outerHeight/2-u/2,h=window.open(s+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${a}, height=${u}, top=${d}, left=${c}`),y=window.setInterval(function(){h.closed!==!1&&(window.clearInterval(y),o==null||o())},200)}async function Af(e,t){const{fetchPath:n,options:o}=Ot({path:dt(e,"info/"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function Of(e,t){const{fetchPath:n,options:o}=Ot({path:dt(e,"auth/user"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function If(e,t){const{fetchPath:n,options:o}=Ot({path:dt(e,"auth/user"),method:"PUT",body:t}),s=await fetch(n,o),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}function Pf(e,t){const n=Ln.useQueryClient(),o=Ln.useQuery({queryKey:["user"],queryFn:({signal:m})=>Of(e,m),retry:!1,...t}),[s,a]=A.useState(null),u=A.useCallback(({username:m,password:b})=>{a(null),Sf(e,{username:m,password:b}).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(C=>a(C))},[e,n]),c=A.useCallback(()=>{a(null),Cf(e).then(()=>n.resetQueries({queryKey:["user"]})).then(()=>n.resetQueries({queryKey:["info"]})).catch(m=>a(m))},[e,n]),d=A.useCallback(m=>{a(null),If(e,m).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(b=>a(b))},[e,n]),h=A.useCallback(m=>{a(null),Ef(e,m,o.data).catch(b=>a(b))},[e,o.data]),y=A.useCallback((m,b)=>xf(e,m,b,()=>n.invalidateQueries({queryKey:["user"]})),[e,n]);return{user:o.isError?null:o.data,loading:o.isFetching,error:s?s.message:null,signin:u,signout:c,update:d,resetPassword:h,oauth_signin:y,refetch:o.refetch}}function $f(e,t){const n=Ln.useQuery({queryKey:["info"],queryFn:({signal:o})=>Af(e,o),enabled:!1});return A.useEffect(()=>{t.user&&!n.data&&n.refetch()},[t.user,n]),{baseUrl:e,info:n.data,loading:n.isFetching,error:n.error}}function Qv(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:n,authQueryProps:o,children:s}={...t,...e},a=Pf(n,o),u=Hi(a),c=$f(n,a),d=Hi(c);return p.jsx(Ua.Provider,{value:u,children:p.jsx(ja.Provider,{value:d,children:s})})}function eb(e){const[t]=A.useState(()=>new Ln.QueryClient);return p.jsx(Ln.QueryClientProvider,{client:t,children:p.jsx(Qv,{...e})})}const Wa=A.createContext({bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null});function tb(){const e=A.useContext(Wa);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e}const Mf={opened:!1,setOpened:()=>{throw new Error("setOpened must be defined in a provider")},view:0,setView:()=>{throw new Error("setView must be defined in a provider")},state:void 0,setState:()=>{throw new Error("setState must be defined in a provider")},reset:()=>{throw new Error("reset must be defined in a provider")},item:void 0,itemLoading:!1,setItem:()=>{throw new Error("setItem must be defined in a provider")},setItemLoading:()=>{throw new Error("setItemLoading must be defined in a provider")}},Bo={errors:[],data:void 0},Va=A.createContext(Mf),Ga=A.createContext(Mf);function Bn(e="add"){const t=A.useContext(e==="add"?Va:Ga);if(t===void 0)throw new Error("useForms must be used within an ApiProvider");return t}const Ff=async(e,t)=>{const{fetchPath:n,options:o}=Ot({path:dt(e,"/"),method:"POST",body:t}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Df=async(e,t)=>{const{fetchPath:n,options:o}=Ot({path:dt(e,t.toString()),method:"DELETE"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},kf=async(e,t)=>{const{fetchPath:n,options:o}=Ot({path:e,method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a},Nf=async(e,t)=>{const{fetchPath:n,options:o}=Ot({path:dt(e,t.toString()),method:"GET"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Lf=async(e,t,n)=>{const{fetchPath:o,options:s}=Ot({path:e,method:"GET",queryParams:t}),a=await fetch(o,{signal:n,...s});let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},zf=async(e,t,n)=>{const{fetchPath:o,options:s}=Ot({path:dt(e,t.toString()),method:"PUT",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Bf=async(e,t,n)=>{const{fetchPath:o,options:s}=Ot({path:dt(e,"/bulk",t),method:"POST",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Et=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,Ha=e=>{const t={};for(const n of e)switch(n.type){case"RelatedList":t[n.name]=[];break;case"Boolean":t[n.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[n.name]=void 0;break;default:t[n.name]=""}return t};var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $r(e){this._maxSize=e,this.clear()}$r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},$r.prototype.get=function(e){return this._values[e]},$r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var nb=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Uf=/^\d+$/,rb=/^\d/,ib=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,ob=/^\s*(['"]?)(.*?)(\1)\s*$/,Ya=512,jf=new $r(Ya),Wf=new $r(Ya),Vf=new $r(Ya),Mr={Cache:$r,split:Ra,normalizePath:qa,setter:function(e){var t=qa(e);return Wf.get(e)||Wf.set(e,function(o,s){for(var a=0,u=t.length,c=o;a<u-1;){var d=t[a];if(d==="__proto__"||d==="constructor"||d==="prototype")return o;c=c[t[a++]]}c[t[a]]=s})},getter:function(e,t){var n=qa(e);return Vf.get(e)||Vf.set(e,function(s){for(var a=0,u=n.length;a<u;)if(s!=null||!t)s=s[n[a++]];else return;return s})},join:function(e){return e.reduce(function(t,n){return t+(Ka(n)||Uf.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){sb(Array.isArray(e)?e:Ra(e),t,n)}};function qa(e){return jf.get(e)||jf.set(e,Ra(e).map(function(t){return t.replace(ob,"$2")}))}function Ra(e){return e.match(nb)||[""]}function sb(e,t,n){var o=e.length,s,a,u,c;for(a=0;a<o;a++)s=e[a],s&&(ub(s)&&(s='"'+s+'"'),c=Ka(s),u=!c&&/^\d+$/.test(s),t.call(n,s,c,u,a,e))}function Ka(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function ab(e){return e.match(rb)&&!e.match(Uf)}function lb(e){return ib.test(e)}function ub(e){return!Ka(e)&&(ab(e)||lb(e))}const cb=/[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,Uo=e=>e.match(cb)||[],jo=e=>e[0].toUpperCase()+e.slice(1),Ja=(e,t)=>Uo(e).join(t).toLowerCase(),Gf=e=>Uo(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var Za={words:Uo,upperFirst:jo,camelCase:Gf,pascalCase:e=>jo(Gf(e)),snakeCase:e=>Ja(e,"_"),kebabCase:e=>Ja(e,"-"),sentenceCase:e=>jo(Ja(e," ")),titleCase:e=>Uo(e).map(jo).join(" ")},Xa={exports:{}};Xa.exports=function(e){return Hf(fb(e),e)},Xa.exports.array=Hf;function Hf(e,t){var n=e.length,o=new Array(n),s={},a=n,u=db(t),c=pb(e);for(t.forEach(function(h){if(!c.has(h[0])||!c.has(h[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)s[a]||d(e[a],a,new Set);return o;function d(h,y,m){if(m.has(h)){var b;try{b=", node was:"+JSON.stringify(h)}catch{b=""}throw new Error("Cyclic dependency"+b)}if(!c.has(h))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(h));if(!s[y]){s[y]=!0;var C=u.get(h)||new Set;if(C=Array.from(C),y=C.length){m.add(h);do{var E=C[--y];d(E,c.get(E),m)}while(y);m.delete(h)}o[--n]=h}}}function fb(e){for(var t=new Set,n=0,o=e.length;n<o;n++){var s=e[n];t.add(s[0]),t.add(s[1])}return Array.from(t)}function db(e){for(var t=new Map,n=0,o=e.length;n<o;n++){var s=e[n];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function pb(e){for(var t=new Map,n=0,o=e.length;n<o;n++)t.set(e[n],n);return t}var hb=Xa.exports;const gb=ir(hb),mb=Object.prototype.toString,yb=Error.prototype.toString,vb=RegExp.prototype.toString,bb=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",_b=/^Symbol\((.*)\)(.*)$/;function wb(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Yf(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return wb(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return bb.call(e).replace(_b,"Symbol($1)");const o=mb.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+yb.call(e)+"]":o==="RegExp"?vb.call(e):null}function An(e,t){let n=Yf(e,t);return n!==null?n:JSON.stringify(e,function(o,s){let a=Yf(this[o],t);return a!==null?a:s},2)}function qf(e){return e==null?[]:[].concat(e)}let Rf,Kf,Jf,Tb=/\$\{\s*(\w+)\s*\}/g;Rf=Symbol.toStringTag;class Zf{constructor(t,n,o,s){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[Rf]="Error",this.name="ValidationError",this.value=n,this.path=o,this.type=s,this.errors=[],this.inner=[],qf(t).forEach(a=>{if(_t.isError(a)){this.errors.push(...a.errors);const u=a.inner.length?a.inner:[a];this.inner.push(...u)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Kf=Symbol.hasInstance,Jf=Symbol.toStringTag;class _t extends Error{static formatError(t,n){const o=n.label||n.path||"this";return n=Object.assign({},n,{path:o,originalPath:n.path}),typeof t=="string"?t.replace(Tb,(s,a)=>An(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,o,s,a){const u=new Zf(t,n,o,s);if(a)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Jf]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,_t)}static[Kf](t){return Zf[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let On={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:n,originalValue:o})=>{const s=o!=null&&o!==n?` (cast from the value \`${An(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${An(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${An(n,!0)}\``+s}},jt={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"},or={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"},Qa={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},el={isValue:"${path} field must be ${value}"},Wo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Vo={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"},Xf={notType:e=>{const{path:t,value:n,spec:o}=e,s=o.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``}return _t.formatError(On.notType,e)}};var Qf=Object.assign(Object.create(null),{mixed:On,string:jt,number:or,date:Qa,object:Wo,array:Vo,boolean:el,tuple:Xf});const Fr=e=>e&&e.__isYupSchema__;class Go{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:s,otherwise:a}=n,u=typeof o=="function"?o:(...c)=>c.every(d=>d===o);return new Go(t,(c,d)=>{var h;let y=u(...c)?s:a;return(h=y==null?void 0:y(d))!=null?h:d})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let o=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(o,t,n);if(s===void 0||s===t)return t;if(!Fr(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const Ho={context:"$",value:"."};function Sb(e,t){return new sr(e,t)}class sr{constructor(t,n={}){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]===Ho.context,this.isValue=this.key[0]===Ho.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Ho.context:this.isValue?Ho.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Mr.getter(this.path,!0),this.map=n.map}getValue(t,n,o){let s=this.isContext?o:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}sr.prototype.__isYupRef=!0;const vn=e=>e==null;function ti(e){function t({value:n,path:o="",options:s,originalValue:a,schema:u},c,d){const{name:h,test:y,params:m,message:b,skipAbsent:C}=e;let{parent:E,context:T,abortEarly:$=u.spec.abortEarly,disableStackTrace:N=u.spec.disableStackTrace}=s;function J(j){return sr.isRef(j)?j.getValue(n,E,T):j}function Y(j={}){const ne=Object.assign({value:n,originalValue:a,label:u.spec.label,path:j.path||o,spec:u.spec,disableStackTrace:j.disableStackTrace||N},m,j.params);for(const ye of Object.keys(ne))ne[ye]=J(ne[ye]);const fe=new _t(_t.formatError(j.message||b,ne),n,ne.path,j.type||h,ne.disableStackTrace);return fe.params=ne,fe}const B=$?c:d;let D={path:o,parent:E,type:h,from:s.from,createError:Y,resolve:J,options:s,originalValue:a,schema:u};const k=j=>{_t.isError(j)?B(j):j?d(null):B(Y())},H=j=>{_t.isError(j)?B(j):c(j)};if(C&&vn(n))return k(!0);let ie;try{var S;if(ie=y.call(D,n,D),typeof((S=ie)==null?void 0:S.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ie).then(k,H)}}catch(j){H(j);return}k(ie)}return t.OPTIONS=e,t}function tl(e,t,n,o=n){let s,a,u;return t?(Mr.forEach(t,(c,d,h)=>{let y=d?c.slice(1,c.length-1):c;e=e.resolve({context:o,parent:s,value:n});let m=e.type==="tuple",b=h?parseInt(y,10):0;if(e.innerType||m){if(m&&!h)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(n&&b>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[b],e=m?e.spec.types[b]:e.innerType}if(!h){if(!e.fields||!e.fields[y])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);s=n,n=n&&n[y],e=e.fields[y]}a=y,u=d?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:a}):{parent:s,parentPath:t,schema:e}}function Cb(e,t,n,o){return tl(e,t,n,o).schema}class Yo extends Set{describe(){const t=[];for(const n of this.values())t.push(sr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const o of this.values())n.push(t(o));return n}clone(){return new Yo(this.values())}merge(t,n){const o=this.clone();return t.forEach(s=>o.add(s)),n.forEach(s=>o.delete(s)),o}}function ni(e,t=new Map){if(Fr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let o=0;o<e.length;o++)n[o]=ni(e[o],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[o,s]of e.entries())n.set(o,ni(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const o of e)n.add(ni(o,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[o,s]of Object.entries(e))n[o]=ni(s,t)}else throw Error(`Unable to clone ${e}`);return n}class It{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 Yo,this._blacklist=new Yo,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(On.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(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ni(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=n,o}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 n=this,o=t.clone();const s=Object.assign({},n.spec,o.spec);return o.spec=s,o.internalTests=Object.assign({},n.internalTests,o.internalTests),o._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),o.tests=n.tests,o.exclusiveTests=n.exclusiveTests,o.withMutation(a=>{t.tests.forEach(u=>{a.test(u.OPTIONS)})}),o.transforms=[...n.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let o=n.conditions;n=n.clone(),n.conditions=[],n=o.reduce((s,a)=>a.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,o,s,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let o=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",a=o._cast(t,n);if(n.assert!==!1&&!o.isType(a)){if(s&&vn(a))return a;let u=An(t),c=An(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
|
|
1
|
+
(function(O,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime"),require("@mantine/core"),require("react"),require("react-router-dom"),require("zustand"),require("@tanstack/react-query"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@mantine/dates"),require("clsx"),require("@emotion/react"),require("@mantine/form"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@mantine/core","react","react-router-dom","zustand","@tanstack/react-query","@mantine/hooks","@jsonforms/react","@jsonforms/core","@mantine/dates","clsx","@emotion/react","@mantine/form","mantine-react-table"],d):(O=typeof globalThis<"u"?globalThis:O||self,d(O["fastapi-rtk"]={},O.jsxRuntime,O.core,O.React,O.reactRouterDom,O.zustand,O.reactQuery,O.hooks,O.react,O.core$1,O.dates,O.clsx,O.react$1,O.form,O.mantineReactTable))})(this,function(O,d,v,x,Tf,wf,Ln,Ze,De,ue,Gi,Pr,Sf,Ba,yn){"use strict";var lz=Object.defineProperty;var uz=(O,d,v)=>d in O?lz(O,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):O[d]=v;var rb=(O,d,v)=>uz(O,typeof d!="symbol"?d+"":d,v);function ib(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ft=ib(x),za=x.createContext({path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,n)=>({}),deleteEntry:async(e,t)=>({}),download:async({label:e,export_mode:t,delimiter:n})=>null,upload:async(e,{delimiter:t})=>null,resetError:()=>null});function Ae(){const e=x.useContext(za);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e}const Cf=0,Ef=25,rr=250,Hi=",",Ua=[{value:",",label:"Comma (,)"},{value:";",label:"Semicolon (;)"},{value:"|",label:"Pipe (|)"},{value:" ",label:"Tab"},{value:" ",label:"Space"}];function Tt({path:e,method:t,body:n=void 0,queryParams:o=void 0}){const s=Object.entries(o||{}).reduce((c,[h,p])=>((Array.isArray(p)||typeof p=="object")&&(p=JSON.stringify(p)),c[h]=p,c),{}),a=new Tf.createSearchParams(s);e=e+"?"+a;const u={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:n?JSON.stringify(n):null};return{fetchPath:e,options:u}}function ob(e){return e&&typeof e=="object"&&!Array.isArray(e)}const Bn=(...e)=>{const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{ob(n[o])&&o!=="ref"&&t[o]?t[o]=Bn(t[o],n[o]):t[o]=n[o]})}),t},ja=e=>e==null?e:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>ja(t)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e,Yi=(e,t,n=!0)=>{const o=t.split(".");let s=e;for(const a of o)Array.isArray(s)?s=s.map(u=>Yi(u,a,!1)):s=s==null?void 0:s[a];return n?ja(s):s},Wa=(e,t)=>e===void 0?t:e;function ti(e){return e!=null}const ft=(e,t)=>typeof e=="function"?e(t):e;function xf(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 s=0;s<e.length;s++){let a=e[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),s<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}let n=t.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");const o=n.split("?");return n=o.shift()+(o.length>0?"?":"")+o.join("&"),n}function it(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return xf(t)}const Uo=e=>new Proxy(e,{get(t,n){return t(o=>o[n])}}),Af=(e,t)=>Object.entries(t).reduce((n,[o,s])=>typeof s=="object"&&JSON.stringify(s)===JSON.stringify(e[o])||s===e[o]?n:{...n,[o]:s},{});function qi(e){const[t]=x.useState(()=>wf.create(()=>({...e}))),[n]=x.useState(()=>Uo(t));return x.useEffect(()=>{t.setState(o=>Af(o,e))},[e,t]),n}const Va=x.createContext({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,refetch:async()=>null});function $r(){return x.useContext(Va)}const Ga=x.createContext({baseUrl:"",info:null,loading:!1,error:null});function Of(){return x.useContext(Ga)}async function If(e,{username:t,password:n}){const o=new FormData;o.append("username",t),o.append("password",n);const{fetchPath:s,options:a}=Tt({path:it(e,"auth/login"),method:"POST"}),u=await fetch(s,{...a,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o)});if(!u.ok)throw u.status===400?new Error("Username or password wrong."):new Error("Failed to sign in.")}async function Pf(e){const{fetchPath:t,options:n}=Tt({path:it(e,"auth/logout"),method:"POST"});if(!(await fetch(t,n)).ok)throw new Error("Failed to sign out.")}async function $f(e,t,{email:n}){const{fetchPath:o,options:s}=Tt({path:it(e,"auth/forgot-password"),method:"POST",body:{email:n}}),a=await fetch(o,s);if(!a.ok)throw new Error("Couldn't request token to reset password");const u=await a.json(),{token:c}=u,{fetchPath:h,options:p}=Tt({path:it(e,"auth/reset-password"),method:"POST",body:{token:c,password:t}});if(!(await fetch(h,p)).ok)throw new Error("Couldn't reset password")}async function Mf(e,t,n,o){const s=it(e,"auth/login",t);if(!n){window.location.href=it(e,"auth/login",t);return}const a=500,u=500,c=window.screenLeft+window.outerWidth/2-a/2,h=window.screenTop+window.outerHeight/2-u/2,p=window.open(s+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${a}, height=${u}, top=${h}, left=${c}`),m=window.setInterval(function(){p.closed!==!1&&(window.clearInterval(m),o==null||o())},200)}async function Ff(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"info/"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function Df(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function kf(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"PUT",body:t}),s=await fetch(n,o),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}function Nf(e,t){const n=Ln.useQueryClient(),o=Ln.useQuery({queryKey:["user"],queryFn:({signal:y})=>Df(e,y),retry:!1,...t}),[s,a]=x.useState(null),u=x.useCallback(({username:y,password:_})=>{a(null),If(e,{username:y,password:_}).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(C=>a(C))},[e,n]),c=x.useCallback(()=>{a(null),Pf(e).then(()=>n.resetQueries({queryKey:["user"]})).then(()=>n.resetQueries({queryKey:["info"]})).catch(y=>a(y))},[e,n]),h=x.useCallback(y=>{a(null),kf(e,y).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(_=>a(_))},[e,n]),p=x.useCallback(y=>{a(null),$f(e,y,o.data).catch(_=>a(_))},[e,o.data]),m=x.useCallback((y,_)=>Mf(e,y,_,()=>n.invalidateQueries({queryKey:["user"]})),[e,n]);return{user:o.isError?null:o.data,loading:o.isFetching,error:s?s.message:null,signin:u,signout:c,update:h,resetPassword:p,oauth_signin:m,refetch:o.refetch}}function Lf(e,t){const n=Ln.useQuery({queryKey:["info"],queryFn:({signal:o})=>Ff(e,o),enabled:!1});return x.useEffect(()=>{t.user&&!n.data&&n.refetch()},[t.user,n]),{baseUrl:e,info:n.data,loading:n.isFetching,error:n.error}}function sb(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:n,authQueryProps:o,children:s}={...t,...e},a=Nf(n,o),u=qi(a),c=Lf(n,a),h=qi(c);return d.jsx(Va.Provider,{value:u,children:d.jsx(Ga.Provider,{value:h,children:s})})}function ab(e){const[t]=x.useState(()=>new Ln.QueryClient);return d.jsx(Ln.QueryClientProvider,{client:t,children:d.jsx(sb,{...e})})}const Ha=x.createContext({bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null});function lb(){const e=x.useContext(Ha);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e}const Bf={opened:!1,setOpened:()=>{throw new Error("setOpened must be defined in a provider")},view:0,setView:()=>{throw new Error("setView must be defined in a provider")},state:void 0,setState:()=>{throw new Error("setState must be defined in a provider")},reset:()=>{throw new Error("reset must be defined in a provider")},item:void 0,itemLoading:!1,setItem:()=>{throw new Error("setItem must be defined in a provider")},setItemLoading:()=>{throw new Error("setItemLoading must be defined in a provider")}},jo={errors:[],data:void 0},Ya=x.createContext(Bf),qa=x.createContext(Bf);function zn(e="add"){const t=x.useContext(e==="add"?Ya:qa);if(t===void 0)throw new Error("useForms must be used within an ApiProvider");return t}const zf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,"/"),method:"POST",body:t}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Uf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"DELETE"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},jf=async(e,t,{label:n="",export_mode:o="",delimiter:s=Hi}={})=>{const a={...t,label:n,export_mode:o,delimiter:s,check_validity:!0},{fetchPath:u,options:c}=Tt({path:it(e,"/download"),method:"GET",queryParams:a});if(!(await fetch(u,c)).ok)throw new Error("Download failed");delete a.check_validity;const{fetchPath:p}=Tt({path:it(e,"/download"),method:"GET",queryParams:a}),m=document.createElement("a");m.href=p,m.download=n,m.style.display="none",document.body.appendChild(m),m.click(),document.body.removeChild(m)},Wf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:e,method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a},Vf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"GET"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Gf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:e,method:"GET",queryParams:t}),a=await fetch(o,{signal:n,...s});let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Hf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,t.toString()),method:"PUT",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Yf=async(e,t,{delimiter:n=","}={})=>{const o=new FormData;o.append("file",t);const{fetchPath:s,options:a}=Tt({path:it(e,"/upload"),method:"POST",queryParams:{delimiter:n}}),u=await fetch(s,{...a,headers:void 0,body:o});if(!u.ok)throw new Error("Upload failed");return await u.json()},qf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,"/bulk",t),method:"POST",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},xt=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,Ka=e=>{const t={};for(const n of e)switch(n.type){case"RelatedList":t[n.name]=[];break;case"Boolean":t[n.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[n.name]=void 0;break;default:t[n.name]=""}return t};var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(e){this._maxSize=e,this.clear()}Mr.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Mr.prototype.get=function(e){return this._values[e]},Mr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ub=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Kf=/^\d+$/,cb=/^\d/,fb=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,db=/^\s*(['"]?)(.*?)(\1)\s*$/,Ja=512,Jf=new Mr(Ja),Rf=new Mr(Ja),Zf=new Mr(Ja),Fr={Cache:Mr,split:Za,normalizePath:Ra,setter:function(e){var t=Ra(e);return Rf.get(e)||Rf.set(e,function(o,s){for(var a=0,u=t.length,c=o;a<u-1;){var h=t[a];if(h==="__proto__"||h==="constructor"||h==="prototype")return o;c=c[t[a++]]}c[t[a]]=s})},getter:function(e,t){var n=Ra(e);return Zf.get(e)||Zf.set(e,function(s){for(var a=0,u=n.length;a<u;)if(s!=null||!t)s=s[n[a++]];else return;return s})},join:function(e){return e.reduce(function(t,n){return t+(Xa(n)||Kf.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){hb(Array.isArray(e)?e:Za(e),t,n)}};function Ra(e){return Jf.get(e)||Jf.set(e,Za(e).map(function(t){return t.replace(db,"$2")}))}function Za(e){return e.match(ub)||[""]}function hb(e,t,n){var o=e.length,s,a,u,c;for(a=0;a<o;a++)s=e[a],s&&(mb(s)&&(s='"'+s+'"'),c=Xa(s),u=!c&&/^\d+$/.test(s),t.call(n,s,c,u,a,e))}function Xa(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function pb(e){return e.match(cb)&&!e.match(Kf)}function gb(e){return fb.test(e)}function mb(e){return!Xa(e)&&(pb(e)||gb(e))}const yb=/[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,Wo=e=>e.match(yb)||[],Vo=e=>e[0].toUpperCase()+e.slice(1),Qa=(e,t)=>Wo(e).join(t).toLowerCase(),Xf=e=>Wo(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var el={words:Wo,upperFirst:Vo,camelCase:Xf,pascalCase:e=>Vo(Xf(e)),snakeCase:e=>Qa(e,"_"),kebabCase:e=>Qa(e,"-"),sentenceCase:e=>Vo(Qa(e," ")),titleCase:e=>Wo(e).map(Vo).join(" ")},tl={exports:{}};tl.exports=function(e){return Qf(vb(e),e)},tl.exports.array=Qf;function Qf(e,t){var n=e.length,o=new Array(n),s={},a=n,u=bb(t),c=_b(e);for(t.forEach(function(p){if(!c.has(p[0])||!c.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)s[a]||h(e[a],a,new Set);return o;function h(p,m,y){if(y.has(p)){var _;try{_=", node was:"+JSON.stringify(p)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!c.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!s[m]){s[m]=!0;var C=u.get(p)||new Set;if(C=Array.from(C),m=C.length){y.add(p);do{var E=C[--m];h(E,c.get(E),y)}while(m);y.delete(p)}o[--n]=p}}}function vb(e){for(var t=new Set,n=0,o=e.length;n<o;n++){var s=e[n];t.add(s[0]),t.add(s[1])}return Array.from(t)}function bb(e){for(var t=new Map,n=0,o=e.length;n<o;n++){var s=e[n];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function _b(e){for(var t=new Map,n=0,o=e.length;n<o;n++)t.set(e[n],n);return t}var Tb=tl.exports;const wb=ir(Tb),Sb=Object.prototype.toString,Cb=Error.prototype.toString,Eb=RegExp.prototype.toString,xb=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Ab=/^Symbol\((.*)\)(.*)$/;function Ob(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ed(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Ob(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return xb.call(e).replace(Ab,"Symbol($1)");const o=Sb.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+Cb.call(e)+"]":o==="RegExp"?Eb.call(e):null}function An(e,t){let n=ed(e,t);return n!==null?n:JSON.stringify(e,function(o,s){let a=ed(this[o],t);return a!==null?a:s},2)}function td(e){return e==null?[]:[].concat(e)}let nd,rd,id,Ib=/\$\{\s*(\w+)\s*\}/g;nd=Symbol.toStringTag;class od{constructor(t,n,o,s){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[nd]="Error",this.name="ValidationError",this.value=n,this.path=o,this.type=s,this.errors=[],this.inner=[],td(t).forEach(a=>{if(wt.isError(a)){this.errors.push(...a.errors);const u=a.inner.length?a.inner:[a];this.inner.push(...u)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rd=Symbol.hasInstance,id=Symbol.toStringTag;class wt extends Error{static formatError(t,n){const o=n.label||n.path||"this";return n=Object.assign({},n,{path:o,originalPath:n.path}),typeof t=="string"?t.replace(Ib,(s,a)=>An(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,o,s,a){const u=new od(t,n,o,s);if(a)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[id]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,wt)}static[rd](t){return od[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let On={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:n,originalValue:o})=>{const s=o!=null&&o!==n?` (cast from the value \`${An(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${An(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${An(n,!0)}\``+s}},jt={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"},or={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"},nl={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},rl={isValue:"${path} field must be ${value}"},Go={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ho={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"},sd={notType:e=>{const{path:t,value:n,spec:o}=e,s=o.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``}return wt.formatError(On.notType,e)}};var ad=Object.assign(Object.create(null),{mixed:On,string:jt,number:or,date:nl,object:Go,array:Ho,boolean:rl,tuple:sd});const Dr=e=>e&&e.__isYupSchema__;class Yo{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:s,otherwise:a}=n,u=typeof o=="function"?o:(...c)=>c.every(h=>h===o);return new Yo(t,(c,h)=>{var p;let m=u(...c)?s:a;return(p=m==null?void 0:m(h))!=null?p:h})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let o=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(o,t,n);if(s===void 0||s===t)return t;if(!Dr(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const qo={context:"$",value:"."};function Pb(e,t){return new sr(e,t)}class sr{constructor(t,n={}){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]===qo.context,this.isValue=this.key[0]===qo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?qo.context:this.isValue?qo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Fr.getter(this.path,!0),this.map=n.map}getValue(t,n,o){let s=this.isContext?o:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}sr.prototype.__isYupRef=!0;const vn=e=>e==null;function ni(e){function t({value:n,path:o="",options:s,originalValue:a,schema:u},c,h){const{name:p,test:m,params:y,message:_,skipAbsent:C}=e;let{parent:E,context:w,abortEarly:$=u.spec.abortEarly,disableStackTrace:N=u.spec.disableStackTrace}=s;function Q(U){return sr.isRef(U)?U.getValue(n,E,w):U}function H(U={}){const ne=Object.assign({value:n,originalValue:a,label:u.spec.label,path:U.path||o,spec:u.spec,disableStackTrace:U.disableStackTrace||N},y,U.params);for(const ye of Object.keys(ne))ne[ye]=Q(ne[ye]);const fe=new wt(wt.formatError(U.message||_,ne),n,ne.path,U.type||p,ne.disableStackTrace);return fe.params=ne,fe}const B=$?c:h;let D={path:o,parent:E,type:p,from:s.from,createError:H,resolve:Q,options:s,originalValue:a,schema:u};const k=U=>{wt.isError(U)?B(U):U?h(null):B(H())},G=U=>{wt.isError(U)?B(U):c(U)};if(C&&vn(n))return k(!0);let ie;try{var S;if(ie=m.call(D,n,D),typeof((S=ie)==null?void 0:S.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ie).then(k,G)}}catch(U){G(U);return}k(ie)}return t.OPTIONS=e,t}function il(e,t,n,o=n){let s,a,u;return t?(Fr.forEach(t,(c,h,p)=>{let m=h?c.slice(1,c.length-1):c;e=e.resolve({context:o,parent:s,value:n});let y=e.type==="tuple",_=p?parseInt(m,10):0;if(e.innerType||y){if(y&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(n&&_>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[_],e=y?e.spec.types[_]:e.innerType}if(!p){if(!e.fields||!e.fields[m])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);s=n,n=n&&n[m],e=e.fields[m]}a=m,u=h?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:a}):{parent:s,parentPath:t,schema:e}}function $b(e,t,n,o){return il(e,t,n,o).schema}class Ko extends Set{describe(){const t=[];for(const n of this.values())t.push(sr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const o of this.values())n.push(t(o));return n}clone(){return new Ko(this.values())}merge(t,n){const o=this.clone();return t.forEach(s=>o.add(s)),n.forEach(s=>o.delete(s)),o}}function ri(e,t=new Map){if(Dr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let o=0;o<e.length;o++)n[o]=ri(e[o],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[o,s]of e.entries())n.set(o,ri(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const o of e)n.add(ri(o,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[o,s]of Object.entries(e))n[o]=ri(s,t)}else throw Error(`Unable to clone ${e}`);return n}class It{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 Ko,this._blacklist=new Ko,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(On.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(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ri(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=n,o}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 n=this,o=t.clone();const s=Object.assign({},n.spec,o.spec);return o.spec=s,o.internalTests=Object.assign({},n.internalTests,o.internalTests),o._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),o.tests=n.tests,o.exclusiveTests=n.exclusiveTests,o.withMutation(a=>{t.tests.forEach(u=>{a.test(u.OPTIONS)})}),o.transforms=[...n.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let o=n.conditions;n=n.clone(),n.conditions=[],n=o.reduce((s,a)=>a.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,o,s,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let o=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",a=o._cast(t,n);if(n.assert!==!1&&!o.isType(a)){if(s&&vn(a))return a;let u=An(t),c=An(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
|
|
2
2
|
|
|
3
3
|
attempted value: ${u}
|
|
4
|
-
`+(c!==u?`result of cast: ${c}`:""))}return a}_cast(t,n){let o=t===void 0?t:this.transforms.reduce((s,a)=>a.call(this,s,t,this),t);return o===void 0&&(o=this.getDefault(n)),o}_validate(t,n={},o,s){let{path:a,originalValue:u=t,strict:c=this.spec.strict}=n,d=t;c||(d=this._cast(d,Object.assign({assert:!1},n)));let h=[];for(let y of Object.values(this.internalTests))y&&h.push(y);this.runTests({path:a,value:d,originalValue:u,options:n,tests:h},o,y=>{if(y.length)return s(y,d);this.runTests({path:a,value:d,originalValue:u,options:n,tests:this.tests},o,s)})}runTests(t,n,o){let s=!1,{tests:a,value:u,originalValue:c,path:d,options:h}=t,y=T=>{s||(s=!0,n(T,u))},m=T=>{s||(s=!0,o(T,u))},b=a.length,C=[];if(!b)return m([]);let E={value:u,originalValue:c,path:d,options:h,schema:this};for(let T=0;T<a.length;T++){const $=a[T];$(E,y,function(J){J&&(Array.isArray(J)?C.push(...J):C.push(J)),--b<=0&&m(C)})}}asNestedTest({key:t,index:n,parent:o,parentPath:s,originalParent:a,options:u}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const d=typeof c=="number";let h=o[c];const y=Object.assign({},u,{strict:!0,parent:o,value:h,originalValue:a[c],key:void 0,[d?"index":"key"]:c,path:d||c.includes(".")?`${s||""}[${d?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(m,b,C)=>this.resolve(y)._validate(h,y,b,C)}validate(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return new Promise((u,c)=>s._validate(t,n,(d,h)=>{_t.isError(d)&&(d.value=h),c(d)},(d,h)=>{d.length?c(new _t(d,h,void 0,void 0,a)):u(h)}))}validateSync(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a,u=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(c,d)=>{throw _t.isError(c)&&(c.value=d),c},(c,d)=>{if(c.length)throw new _t(c,t,void 0,void 0,u);a=d}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,o=>{if(_t.isError(o))return!1;throw o})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(o){if(_t.isError(o))return!1;throw o}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ni(n)}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,n){const o=this.clone({nullable:t});return o.internalTests.nullable=ti({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),o}optionality(t,n){const o=this.clone({optional:t});return o.internalTests.optionality=ti({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=On.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=On.notNull){return this.nullability(!1,t)}required(t=On.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=On.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),s=ti(n),a=n.exclusive||n.name&&o.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(o.exclusiveTests[n.name]=!!n.exclusive),o.tests=o.tests.filter(u=>!(u.OPTIONS.name===n.name&&(a||u.OPTIONS.test===s.OPTIONS.test))),o.tests.push(s),o}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let o=this.clone(),s=qf(t).map(a=>new sr(a));return s.forEach(a=>{a.isSibling&&o.deps.push(a.key)}),o.conditions.push(typeof n=="function"?new Go(s,n):Go.fromOptions(s,n)),o}typeError(t){let n=this.clone();return n.internalTests.typeError=ti({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=On.oneOf){let o=this.clone();return t.forEach(s=>{o._whitelist.add(s),o._blacklist.delete(s)}),o.internalTests.whiteList=ti({message:n,name:"oneOf",skipAbsent:!0,test(s){let a=this.schema._whitelist,u=a.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:u}})}}),o}notOneOf(t,n=On.notOneOf){let o=this.clone();return t.forEach(s=>{o._blacklist.add(s),o._whitelist.delete(s)}),o.internalTests.blacklist=ti({message:n,name:"notOneOf",test(s){let a=this.schema._blacklist,u=a.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:Array.from(a).join(", "),resolved:u}}):!0}}),o}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:o,meta:s,optional:a,nullable:u}=n.spec;return{meta:s,label:o,optional:a,nullable:u,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(d=>({name:d.OPTIONS.name,params:d.OPTIONS.params})).filter((d,h,y)=>y.findIndex(m=>m.name===d.name)===h)}}}It.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])It.prototype[`${e}At`]=function(t,n,o={}){const{parent:s,parentPath:a,schema:u}=tl(this,t,n,o.context);return u[e](s&&s[a],Object.assign({},o,{parent:s,path:t}))};for(const e of["equals","is"])It.prototype[e]=It.prototype.oneOf;for(const e of["not","nope"])It.prototype[e]=It.prototype.notOneOf;const Eb=()=>!0;function qo(e){return new nl(e)}class nl extends It{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Eb},t))}}qo.prototype=nl.prototype;function rl(){return new il}class il extends It{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=el.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return vn(n)||n===!0}})}isFalse(t=el.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return vn(n)||n===!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)}}rl.prototype=il.prototype;const xb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ab(e){const t=ol(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 n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ol(e){var t,n;const o=xb.exec(e);return o?{year:jn(o[1]),month:jn(o[2],1)-1,day:jn(o[3],1),hour:jn(o[4]),minute:jn(o[5]),second:jn(o[6]),millisecond:o[7]?jn(o[7].substring(0,3)):0,precision:(t=(n=o[7])==null?void 0:n.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:jn(o[10]),minuteOffset:jn(o[11])}:null}function jn(e,t=0){return Number(e)||t}let Ob=/^[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])?)*$/,Ib=/^((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,Pb=/^(?:[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,$b="^\\d{4}-\\d{2}-\\d{2}",Mb="\\d{2}:\\d{2}:\\d{2}",Fb="(([+-]\\d{2}(:?\\d{2})?)|Z)",Db=new RegExp(`${$b}T${Mb}(\\.\\d+)?${Fb}$`),kb=e=>vn(e)||e===e.trim(),Nb={}.toString();function Ro(){return new sl}class sl extends It{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Nb?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||On.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,n){let o=!1,s,a;return n&&(typeof n=="object"?{excludeEmptyString:o=!1,message:s,name:a}=n:s=n),this.test({name:a||"matches",message:s||jt.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&o||u.search(t)!==-1})}email(t=jt.email){return this.matches(Ob,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(Ib,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(Pb,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",o,s;return t&&(typeof t=="object"?{message:n="",allowOffset:o=!1,precision:s=void 0}=t:n=t),this.matches(Db,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:a=>{if(!a||o)return!0;const u=ol(a);return u?!!u.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:s},skipAbsent:!0,test:a=>{if(!a||s==null)return!0;const u=ol(a);return u?u.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:kb})}lowercase(t=jt.lowercase){return this.transform(n=>vn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>vn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toUpperCase()})}}Ro.prototype=sl.prototype;let Lb=e=>e!=+e;function ed(){return new al}class al extends It{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Lb(t)}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return o.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=or.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,n=or.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,n=or.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,n=or.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=or.positive){return this.moreThan(0,t)}negative(t=or.negative){return this.lessThan(0,t)}integer(t=or.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>vn(t)?t:t|0)}round(t){var n;let o=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(s=>vn(s)?s:Math[t](s))}}ed.prototype=al.prototype;let td=new Date(""),zb=e=>Object.prototype.toString.call(e)==="[object Date]";function ll(){return new ri}class ri extends It{constructor(){super({type:"date",check(t){return zb(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=Ab(t),isNaN(t)?ri.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let o;if(sr.isRef(t))o=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);o=s}return o}min(t,n=Qa.min){let o=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(o)}})}max(t,n=Qa.max){let o=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(o)}})}}ri.INVALID_DATE=td,ll.prototype=ri.prototype,ll.INVALID_DATE=td;function Bb(e,t=[]){let n=[],o=new Set,s=new Set(t.map(([u,c])=>`${u}-${c}`));function a(u,c){let d=Mr.split(u)[0];o.add(d),s.has(`${c}-${d}`)||n.push([c,d])}for(const u of Object.keys(e)){let c=e[u];o.add(u),sr.isRef(c)&&c.isSibling?a(c.path,u):Fr(c)&&"deps"in c&&c.deps.forEach(d=>a(d,u))}return gb.array(Array.from(o),n).reverse()}function nd(e,t){let n=1/0;return e.some((o,s)=>{var a;if((a=t.path)!=null&&a.includes(o))return n=s,!0}),n}function rd(e){return(t,n)=>nd(e,t)-nd(e,n)}const id=(e,t,n)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch{}return n.isType(o)?o:e};function Ko(e){if("fields"in e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Ko(o);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ko(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ko)}):"optional"in e?e.optional():e}const Ub=(e,t)=>{const n=[...Mr.normalizePath(t)];if(n.length===1)return n[0]in e;let o=n.pop(),s=Mr.getter(Mr.join(n),!0)(e);return!!(s&&o in s)};let od=e=>Object.prototype.toString.call(e)==="[object Object]";function sd(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(o=>n.indexOf(o)===-1)}const jb=rd([]);function Yi(e){return new ul(e)}class ul extends It{constructor(t){super({type:"object",check(n){return od(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=jb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var o;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let a=this.fields,u=(o=n.stripUnknown)!=null?o:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).filter(m=>!this._nodes.includes(m))),d={},h=Object.assign({},n,{parent:d,__validating:n.__validating||!1}),y=!1;for(const m of c){let b=a[m],C=m in s;if(b){let E,T=s[m];h.path=(n.path?`${n.path}.`:"")+m,b=b.resolve({value:T,context:n.context,parent:d});let $=b instanceof It?b.spec:void 0,N=$==null?void 0:$.strict;if($!=null&&$.strip){y=y||m in s;continue}E=!n.__validating||!N?b.cast(s[m],h):s[m],E!==void 0&&(d[m]=E)}else C&&!u&&(d[m]=s[m]);(C!==m in d||d[m]!==s[m])&&(y=!0)}return y?d:s}_validate(t,n={},o,s){let{from:a=[],originalValue:u=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:u},...a],n.__validating=!0,n.originalValue=u,super._validate(t,n,o,(d,h)=>{if(!c||!od(h)){s(d,h);return}u=u||h;let y=[];for(let m of this._nodes){let b=this.fields[m];!b||sr.isRef(b)||y.push(b.asNestedTest({options:n,key:m,parent:h,parentPath:n.path,originalParent:u}))}this.runTests({tests:y,value:h,originalValue:u,options:n},o,m=>{s(m.sort(this._sortErrors).concat(d),h)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),o=n.fields;for(let[s,a]of Object.entries(this.fields)){const u=o[s];o[s]=u===void 0?a:u}return n.withMutation(s=>s.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(o=>{var s;const a=this.fields[o];let u=t;(s=u)!=null&&s.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[o]})),n[o]=a&&"getDefault"in a?a.getDefault(u):void 0}),n}setFields(t,n){let o=this.clone();return o.fields=t,o._nodes=Bb(t,n),o._sortErrors=rd(Object.keys(t)),n&&(o._excludedEdges=n),o}shape(t,n=[]){return this.clone().withMutation(o=>{let s=o._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...o._excludedEdges,...n]),o.setFields(Object.assign(o.fields,t),s)})}partial(){const t={};for(const[n,o]of Object.entries(this.fields))t[n]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Ko(this)}pick(t){const n={};for(const o of t)this.fields[o]&&(n[o]=this.fields[o]);return this.setFields(n,this._excludedEdges.filter(([o,s])=>t.includes(o)&&t.includes(s)))}omit(t){const n=[];for(const o of Object.keys(this.fields))t.includes(o)||n.push(o);return this.pick(n)}from(t,n,o){let s=Mr.getter(t,!0);return this.transform(a=>{if(!a)return a;let u=a;return Ub(a,t)&&(u=Object.assign({},a),o||delete u[t],u[n]=s(a)),u})}json(){return this.transform(id)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Wo.exact,test(n){if(n==null)return!0;const o=sd(this.schema,n);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Wo.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const a=sd(this.schema,s);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,n=Wo.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const o={};for(const s of Object.keys(n))o[t(s)]=n[s];return o})}camelCase(){return this.transformKeys(Za.camelCase)}snakeCase(){return this.transformKeys(Za.snakeCase)}constantCase(){return this.transformKeys(t=>Za.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(const[a,u]of Object.entries(n.fields)){var s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),o.fields[a]=u.describe(c)}return o}}Yi.prototype=ul.prototype;function cl(e){return new fl(e)}class fl extends It{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const o=super._cast(t,n);if(!this._typeCheck(o)||!this.innerType)return o;let s=!1;const a=o.map((u,c)=>{const d=this.innerType.cast(u,Object.assign({},n,{path:`${n.path||""}[${c}]`}));return d!==u&&(s=!0),d});return s?a:o}_validate(t,n={},o,s){var a;let u=this.innerType,c=(a=n.recursive)!=null?a:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,o,(d,h)=>{var y;if(!c||!u||!this._typeCheck(h)){s(d,h);return}let m=new Array(h.length);for(let C=0;C<h.length;C++){var b;m[C]=u.asNestedTest({options:n,index:C,parent:h,parentPath:n.path,originalParent:(b=n.originalValue)!=null?b:t})}this.runTests({value:h,tests:m,originalValue:(y=n.originalValue)!=null?y:t,options:n},o,C=>s(C.concat(d),h))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(id)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Fr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+An(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=Vo.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n){return n=n||Vo.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n){return n=n||Vo.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(o,s,a)=>!t(o,s,a):o=>!!o;return this.transform(o=>o!=null?o.filter(n):o)}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);if(n.innerType){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),o.innerType=n.innerType.describe(a)}return o}}cl.prototype=fl.prototype;function ad(e){return new dl(e)}class dl extends It{constructor(t){super({type:"tuple",spec:{types:t},check(n){const o=this.spec.types;return Array.isArray(n)&&n.length===o.length}}),this.withMutation(()=>{this.typeError(Xf.notType)})}_cast(t,n){const{types:o}=this.spec,s=super._cast(t,n);if(!this._typeCheck(s))return s;let a=!1;const u=o.map((c,d)=>{const h=c.cast(s[d],Object.assign({},n,{path:`${n.path||""}[${d}]`}));return h!==s[d]&&(a=!0),h});return a?u:s}_validate(t,n={},o,s){let a=this.spec.types;super._validate(t,n,o,(u,c)=>{var d;if(!this._typeCheck(c)){s(u,c);return}let h=[];for(let[m,b]of a.entries()){var y;h[m]=b.asNestedTest({options:n,index:m,parent:c,parentPath:n.path,originalParent:(y=n.originalValue)!=null?y:t})}this.runTests({value:c,tests:h,originalValue:(d=n.originalValue)!=null?d:t,options:n},o,m=>s(m.concat(u),c))})}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=n.spec.types.map((s,a)=>{var u;let c=t;return(u=c)!=null&&u.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),s.describe(c)}),o}}ad.prototype=dl.prototype;function Wb(e){return new Jo(e)}function ld(e){try{return e()}catch(t){if(_t.isError(t))return Promise.reject(t);throw t}}class Jo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(n,o={})=>{let s=this.builder(n,o);if(!Fr(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(o)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const n=new Jo(this.builder);return n.spec=Object.assign({},this.spec,t),n}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,n){return this._resolve(t,n).cast(t,n)}asNestedTest(t){let{key:n,index:o,parent:s,options:a}=t,u=s[o??n];return this._resolve(u,Object.assign({},a,{value:u,parent:s})).asNestedTest(t)}validate(t,n){return ld(()=>this._resolve(t,n).validate(t,n))}validateSync(t,n){return this._resolve(t,n).validateSync(t,n)}validateAt(t,n,o){return ld(()=>this._resolve(n,o).validateAt(t,n,o))}validateSyncAt(t,n,o){return this._resolve(n,o).validateSyncAt(t,n,o)}isValid(t,n){try{return this._resolve(t,n).isValid(t,n)}catch(o){if(_t.isError(o))return Promise.resolve(!1);throw o}}isValidSync(t,n){return this._resolve(t,n).isValidSync(t,n)}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 n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}}function Vb(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{Qf[t][n]=e[t][n]})})}function Gb(e,t,n){if(!e||!Fr(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 n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const ud=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:fl,BooleanSchema:il,DateSchema:ri,LazySchema:Jo,MixedSchema:nl,NumberSchema:al,ObjectSchema:ul,Schema:It,StringSchema:sl,TupleSchema:dl,ValidationError:_t,addMethod:Gb,array:cl,bool:rl,boolean:rl,date:ll,defaultLocale:Qf,getIn:tl,isSchema:Fr,lazy:Wb,mixed:qo,number:ed,object:Yi,printValue:An,reach:Cb,ref:Sb,setLocale:Vb,string:Ro,tuple:ad},Symbol.toStringTag,{value:"Module"})),pl=e=>{const t=e.reduce((n,o)=>{let{name:s,required:a,type:u}=o;switch(u){case"RelatedList":u="array";break;case"Integer":case"Float":u="number";break;case"Related":case"Geometry":case"Raw":u="mixed";break;default:u="string"}let c;try{a?c=ud[u]().typeError(`Field must be of type ${u}`).required("Field is required"):c=ud[u]().typeError(`Field must be of type ${u}`).nullable(!0)}catch(d){console.log(d)}return n[s]=c,n},{});return Yi().shape(t)},cd=e=>e?{...e,add:{columns:e.add_columns,title:e.add_title,schema:pl(e.add_columns),defaultValues:Ha(e.add_columns)},edit:{columns:e.edit_columns,title:e.edit_title,schema:pl(e.edit_columns),defaultValues:Ha(e.edit_columns)}}:null,Hb={columns:[],filters:[],page:0,page_size:25};function qi(e,t={}){return Object.entries(t).reduce((n,[o,s])=>s==null?(delete n[o],n):{...n,[o]:s},e||Hb)}const fd=async(e,t,n)=>{const{fetchPath:o,options:s}=Ot({path:dt(t,"/download"),method:"POST"}),a=await fetch(o,{...s,body:JSON.stringify(n)});let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.blob(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);const d=document.createElement("a"),h=URL.createObjectURL(u);d.href=h,d.download=e.toLowerCase()+".csv",d.click()};function dd({path:e,initialQueryParams:t,relation:n,fetchInfo:o=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:u=!0,infoQueryProps:c,dataQueryProps:d,streaming:h=!1}){const[y,m]=A.useState(t?qi(null,t):null),b=A.useRef(e),C=A.useMemo(()=>(b.current=e,n?{...y,filters:[...y.filters,{col:n.foreign_key,opr:n.type,value:Et(n.id)}]}:y),[n,y]),E=A.useCallback(L=>m(te=>{if(typeof L=="function"&&(L=L(te)),!te)return qi(null,L);const Z=qi({...te},L);if(L&&((L.filters||L.order_column||L.order_direction)&&!L.page&&(Z.page=0),h)){if(L.page&&L.page!==te.page&&!L.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(L.page_size&&L.page_size!==te.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return Z}),[h]),[T,$]=A.useState(null),N=A.useMemo(()=>T,[T]),J=A.useCallback(()=>$(null),[]),{data:Y,isFetching:B,refetch:D,error:k}=Ln.useQuery({queryKey:[`info-${e}`],queryFn:({signal:L})=>kf(dt(e,"_info"),L).then(te=>({...cd(te),path:e})),placeholderData:s?null:Ln.keepPreviousData,enabled:o,retry:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...c}),{data:H,isFetching:ae,refetch:ie,error:S}=Ln.useQuery({queryKey:[`data-${b.current}`,JSON.stringify(C)],queryFn:({signal:L})=>C?Lf(dt(b.current,"/"),C,L).then(te=>({...te,result:te.result.map((Z,X)=>({...Z,id:te.ids[X]})),path:b.current})):null,placeholderData:a?null:Ln.keepPreviousData,retry:!1,...d});A.useEffect(()=>{if(k){$({message:"Couldn't fetch info",originalError:k});return}if(S){$({message:"Couldn't fetch list",originalError:S});return}J()},[k,S,J]);const j=A.useMemo(()=>B||ae,[B,ae]);nt.useDidUpdate(()=>{if(!u)return;const L=qi(null,t);y!=null&&y.page_size&&(L.page_size=y.page_size),E(L)},[e]);const ne=A.useCallback(async L=>{try{const te=await Nf(e,Et(L));return J(),te}catch(te){$({message:`Couldn't fetch item with id ${L}`,originalError:te})}},[e,J]),fe=A.useCallback(async(L,te)=>{try{const Z=await Ff(e,L);return te||(D(),ie()),J(),Z}catch(Z){$({message:"Couldn't add item",originalError:Z})}},[ie,D,e,J]),ye=A.useCallback(async(L,te,Z)=>{try{const X=await zf(e,Et(L),te);return Z||(D(),ie()),J(),X}catch(X){$({message:`Couldn't update item with id ${L}`,originalError:X})}},[ie,D,e,J]),Me=A.useCallback(async(L,te)=>{try{const Z=await Df(e,Et(L));return te||(D(),ie()),J(),Z}catch(Z){$({message:`Couldn't delete item with id ${L}`,originalError:Z})}},[ie,D,e,J]),Te=A.useCallback(async L=>{try{await fd(L,e,C)}catch(te){$({message:"Couldn't download",originalError:te})}},[e,C]),[Le,Ce]=nt.useSetState({data:{},isEnd:!1,fetch:()=>null});A.useEffect(()=>{h&&Ce({fetch:()=>E({page:0,streaming:!0})})},[E,Ce,h]),A.useEffect(()=>{h&&H&&Ce(L=>{let te=Object.keys(L.data).length;const Z={isEnd:!1};return C.page<te?(te=C.page,Z.data={[C.page]:H.result}):Z.data={...L.data,[C.page]:H.result},H.result.length<C.page_size?(Z.isEnd=!0,Z.fetch=()=>null):Z.fetch=()=>E({page:te+1,streaming:!0}),Z})},[H,E,Ce,h]);const gt=A.useMemo(()=>{const L={all:"all",actions:"actions"};return H==null||H.list_columns.forEach(te=>{L[te]&&(L[te]=`_${te}`)}),L},[H==null?void 0:H.list_columns]),q=A.useCallback(()=>C?ie():E(),[ie,C,E]);return{path:e,data:H,info:Y,queryParams:C,loading:j,error:N,streaming:Le,specialKey:gt,setQueryParams:E,refetch:q,refetchInfo:D,getEntry:ne,addEntry:fe,updateEntry:ye,deleteEntry:Me,download:Te}}const pd=({path:e,refetch:t})=>{const[n,o]=A.useState([]),[s,a]=A.useState(null),u=A.useCallback(async(d,h)=>{try{a(null);const y=await Bf(e,d,n);return h||t(),y}catch(y){console.error(y),a({message:"Couldn't perform bulk action",originalError:y})}},[e,t,n]);return{bulkActions:A.useMemo(()=>({selectedIds:n,setSelectedIds:o}),[n,o]),dispatchBulkActions:u,error:s}},ht={NORMAL:"normal",FULL_SCREEN:"fullScreen",OVERLAY:"overlay"},hl=()=>{const[e]=A.useState(()=>mf.create(t=>({opened:!1,setOpened:n=>t({opened:n}),view:ht.NORMAL,setView:n=>t({view:n}),state:Bo,setState:n=>t({state:n}),reset:()=>t({state:Bo}),item:void 0,itemLoading:!1,setItem:n=>t({item:n,itemLoading:!1}),setItemLoading:n=>t({itemLoading:n})})));return e};function hd({resource_name:e="",initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:d,children:h,streaming:y}){const{baseUrl:m}=Tf(),b=dd({path:dt(m,e),initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:d,streaming:y}),C=Hi(b),E=pd(C),T=Hi(E),$=hl(),[N]=A.useState(()=>zo($)),J=hl(),[Y]=A.useState(()=>zo(J));return p.jsx(La.Provider,{value:C,children:p.jsx(Wa.Provider,{value:T,children:p.jsx(Va.Provider,{value:N,children:p.jsx(Ga.Provider,{value:Y,children:h})})})})}/**
|
|
4
|
+
`+(c!==u?`result of cast: ${c}`:""))}return a}_cast(t,n){let o=t===void 0?t:this.transforms.reduce((s,a)=>a.call(this,s,t,this),t);return o===void 0&&(o=this.getDefault(n)),o}_validate(t,n={},o,s){let{path:a,originalValue:u=t,strict:c=this.spec.strict}=n,h=t;c||(h=this._cast(h,Object.assign({assert:!1},n)));let p=[];for(let m of Object.values(this.internalTests))m&&p.push(m);this.runTests({path:a,value:h,originalValue:u,options:n,tests:p},o,m=>{if(m.length)return s(m,h);this.runTests({path:a,value:h,originalValue:u,options:n,tests:this.tests},o,s)})}runTests(t,n,o){let s=!1,{tests:a,value:u,originalValue:c,path:h,options:p}=t,m=w=>{s||(s=!0,n(w,u))},y=w=>{s||(s=!0,o(w,u))},_=a.length,C=[];if(!_)return y([]);let E={value:u,originalValue:c,path:h,options:p,schema:this};for(let w=0;w<a.length;w++){const $=a[w];$(E,m,function(Q){Q&&(Array.isArray(Q)?C.push(...Q):C.push(Q)),--_<=0&&y(C)})}}asNestedTest({key:t,index:n,parent:o,parentPath:s,originalParent:a,options:u}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const h=typeof c=="number";let p=o[c];const m=Object.assign({},u,{strict:!0,parent:o,value:p,originalValue:a[c],key:void 0,[h?"index":"key"]:c,path:h||c.includes(".")?`${s||""}[${h?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(y,_,C)=>this.resolve(m)._validate(p,m,_,C)}validate(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return new Promise((u,c)=>s._validate(t,n,(h,p)=>{wt.isError(h)&&(h.value=p),c(h)},(h,p)=>{h.length?c(new wt(h,p,void 0,void 0,a)):u(p)}))}validateSync(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a,u=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(c,h)=>{throw wt.isError(c)&&(c.value=h),c},(c,h)=>{if(c.length)throw new wt(c,t,void 0,void 0,u);a=h}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,o=>{if(wt.isError(o))return!1;throw o})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(o){if(wt.isError(o))return!1;throw o}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ri(n)}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,n){const o=this.clone({nullable:t});return o.internalTests.nullable=ni({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),o}optionality(t,n){const o=this.clone({optional:t});return o.internalTests.optionality=ni({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=On.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=On.notNull){return this.nullability(!1,t)}required(t=On.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=On.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),s=ni(n),a=n.exclusive||n.name&&o.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(o.exclusiveTests[n.name]=!!n.exclusive),o.tests=o.tests.filter(u=>!(u.OPTIONS.name===n.name&&(a||u.OPTIONS.test===s.OPTIONS.test))),o.tests.push(s),o}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let o=this.clone(),s=td(t).map(a=>new sr(a));return s.forEach(a=>{a.isSibling&&o.deps.push(a.key)}),o.conditions.push(typeof n=="function"?new Yo(s,n):Yo.fromOptions(s,n)),o}typeError(t){let n=this.clone();return n.internalTests.typeError=ni({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=On.oneOf){let o=this.clone();return t.forEach(s=>{o._whitelist.add(s),o._blacklist.delete(s)}),o.internalTests.whiteList=ni({message:n,name:"oneOf",skipAbsent:!0,test(s){let a=this.schema._whitelist,u=a.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:u}})}}),o}notOneOf(t,n=On.notOneOf){let o=this.clone();return t.forEach(s=>{o._blacklist.add(s),o._whitelist.delete(s)}),o.internalTests.blacklist=ni({message:n,name:"notOneOf",test(s){let a=this.schema._blacklist,u=a.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:Array.from(a).join(", "),resolved:u}}):!0}}),o}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:o,meta:s,optional:a,nullable:u}=n.spec;return{meta:s,label:o,optional:a,nullable:u,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(h=>({name:h.OPTIONS.name,params:h.OPTIONS.params})).filter((h,p,m)=>m.findIndex(y=>y.name===h.name)===p)}}}It.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])It.prototype[`${e}At`]=function(t,n,o={}){const{parent:s,parentPath:a,schema:u}=il(this,t,n,o.context);return u[e](s&&s[a],Object.assign({},o,{parent:s,path:t}))};for(const e of["equals","is"])It.prototype[e]=It.prototype.oneOf;for(const e of["not","nope"])It.prototype[e]=It.prototype.notOneOf;const Mb=()=>!0;function Jo(e){return new ol(e)}class ol extends It{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Mb},t))}}Jo.prototype=ol.prototype;function sl(){return new al}class al extends It{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=rl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return vn(n)||n===!0}})}isFalse(t=rl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return vn(n)||n===!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)}}sl.prototype=al.prototype;const Fb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Db(e){const t=ll(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 n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ll(e){var t,n;const o=Fb.exec(e);return o?{year:jn(o[1]),month:jn(o[2],1)-1,day:jn(o[3],1),hour:jn(o[4]),minute:jn(o[5]),second:jn(o[6]),millisecond:o[7]?jn(o[7].substring(0,3)):0,precision:(t=(n=o[7])==null?void 0:n.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:jn(o[10]),minuteOffset:jn(o[11])}:null}function jn(e,t=0){return Number(e)||t}let kb=/^[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])?)*$/,Nb=/^((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,Lb=/^(?:[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,Bb="^\\d{4}-\\d{2}-\\d{2}",zb="\\d{2}:\\d{2}:\\d{2}",Ub="(([+-]\\d{2}(:?\\d{2})?)|Z)",jb=new RegExp(`${Bb}T${zb}(\\.\\d+)?${Ub}$`),Wb=e=>vn(e)||e===e.trim(),Vb={}.toString();function Ro(){return new ul}class ul extends It{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Vb?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||On.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,n){let o=!1,s,a;return n&&(typeof n=="object"?{excludeEmptyString:o=!1,message:s,name:a}=n:s=n),this.test({name:a||"matches",message:s||jt.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&o||u.search(t)!==-1})}email(t=jt.email){return this.matches(kb,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(Nb,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(Lb,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",o,s;return t&&(typeof t=="object"?{message:n="",allowOffset:o=!1,precision:s=void 0}=t:n=t),this.matches(jb,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:a=>{if(!a||o)return!0;const u=ll(a);return u?!!u.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:s},skipAbsent:!0,test:a=>{if(!a||s==null)return!0;const u=ll(a);return u?u.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Wb})}lowercase(t=jt.lowercase){return this.transform(n=>vn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>vn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toUpperCase()})}}Ro.prototype=ul.prototype;let Gb=e=>e!=+e;function ld(){return new cl}class cl extends It{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Gb(t)}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return o.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=or.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,n=or.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,n=or.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,n=or.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=or.positive){return this.moreThan(0,t)}negative(t=or.negative){return this.lessThan(0,t)}integer(t=or.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>vn(t)?t:t|0)}round(t){var n;let o=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(s=>vn(s)?s:Math[t](s))}}ld.prototype=cl.prototype;let ud=new Date(""),Hb=e=>Object.prototype.toString.call(e)==="[object Date]";function fl(){return new ii}class ii extends It{constructor(){super({type:"date",check(t){return Hb(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=Db(t),isNaN(t)?ii.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let o;if(sr.isRef(t))o=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);o=s}return o}min(t,n=nl.min){let o=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(o)}})}max(t,n=nl.max){let o=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(o)}})}}ii.INVALID_DATE=ud,fl.prototype=ii.prototype,fl.INVALID_DATE=ud;function Yb(e,t=[]){let n=[],o=new Set,s=new Set(t.map(([u,c])=>`${u}-${c}`));function a(u,c){let h=Fr.split(u)[0];o.add(h),s.has(`${c}-${h}`)||n.push([c,h])}for(const u of Object.keys(e)){let c=e[u];o.add(u),sr.isRef(c)&&c.isSibling?a(c.path,u):Dr(c)&&"deps"in c&&c.deps.forEach(h=>a(h,u))}return wb.array(Array.from(o),n).reverse()}function cd(e,t){let n=1/0;return e.some((o,s)=>{var a;if((a=t.path)!=null&&a.includes(o))return n=s,!0}),n}function fd(e){return(t,n)=>cd(e,t)-cd(e,n)}const dd=(e,t,n)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch{}return n.isType(o)?o:e};function Zo(e){if("fields"in e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Zo(o);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Zo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Zo)}):"optional"in e?e.optional():e}const qb=(e,t)=>{const n=[...Fr.normalizePath(t)];if(n.length===1)return n[0]in e;let o=n.pop(),s=Fr.getter(Fr.join(n),!0)(e);return!!(s&&o in s)};let hd=e=>Object.prototype.toString.call(e)==="[object Object]";function pd(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(o=>n.indexOf(o)===-1)}const Kb=fd([]);function Ki(e){return new dl(e)}class dl extends It{constructor(t){super({type:"object",check(n){return hd(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Kb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var o;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let a=this.fields,u=(o=n.stripUnknown)!=null?o:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).filter(y=>!this._nodes.includes(y))),h={},p=Object.assign({},n,{parent:h,__validating:n.__validating||!1}),m=!1;for(const y of c){let _=a[y],C=y in s;if(_){let E,w=s[y];p.path=(n.path?`${n.path}.`:"")+y,_=_.resolve({value:w,context:n.context,parent:h});let $=_ instanceof It?_.spec:void 0,N=$==null?void 0:$.strict;if($!=null&&$.strip){m=m||y in s;continue}E=!n.__validating||!N?_.cast(s[y],p):s[y],E!==void 0&&(h[y]=E)}else C&&!u&&(h[y]=s[y]);(C!==y in h||h[y]!==s[y])&&(m=!0)}return m?h:s}_validate(t,n={},o,s){let{from:a=[],originalValue:u=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:u},...a],n.__validating=!0,n.originalValue=u,super._validate(t,n,o,(h,p)=>{if(!c||!hd(p)){s(h,p);return}u=u||p;let m=[];for(let y of this._nodes){let _=this.fields[y];!_||sr.isRef(_)||m.push(_.asNestedTest({options:n,key:y,parent:p,parentPath:n.path,originalParent:u}))}this.runTests({tests:m,value:p,originalValue:u,options:n},o,y=>{s(y.sort(this._sortErrors).concat(h),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),o=n.fields;for(let[s,a]of Object.entries(this.fields)){const u=o[s];o[s]=u===void 0?a:u}return n.withMutation(s=>s.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(o=>{var s;const a=this.fields[o];let u=t;(s=u)!=null&&s.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[o]})),n[o]=a&&"getDefault"in a?a.getDefault(u):void 0}),n}setFields(t,n){let o=this.clone();return o.fields=t,o._nodes=Yb(t,n),o._sortErrors=fd(Object.keys(t)),n&&(o._excludedEdges=n),o}shape(t,n=[]){return this.clone().withMutation(o=>{let s=o._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...o._excludedEdges,...n]),o.setFields(Object.assign(o.fields,t),s)})}partial(){const t={};for(const[n,o]of Object.entries(this.fields))t[n]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Zo(this)}pick(t){const n={};for(const o of t)this.fields[o]&&(n[o]=this.fields[o]);return this.setFields(n,this._excludedEdges.filter(([o,s])=>t.includes(o)&&t.includes(s)))}omit(t){const n=[];for(const o of Object.keys(this.fields))t.includes(o)||n.push(o);return this.pick(n)}from(t,n,o){let s=Fr.getter(t,!0);return this.transform(a=>{if(!a)return a;let u=a;return qb(a,t)&&(u=Object.assign({},a),o||delete u[t],u[n]=s(a)),u})}json(){return this.transform(dd)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Go.exact,test(n){if(n==null)return!0;const o=pd(this.schema,n);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Go.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const a=pd(this.schema,s);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,n=Go.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const o={};for(const s of Object.keys(n))o[t(s)]=n[s];return o})}camelCase(){return this.transformKeys(el.camelCase)}snakeCase(){return this.transformKeys(el.snakeCase)}constantCase(){return this.transformKeys(t=>el.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(const[a,u]of Object.entries(n.fields)){var s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),o.fields[a]=u.describe(c)}return o}}Ki.prototype=dl.prototype;function hl(e){return new pl(e)}class pl extends It{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const o=super._cast(t,n);if(!this._typeCheck(o)||!this.innerType)return o;let s=!1;const a=o.map((u,c)=>{const h=this.innerType.cast(u,Object.assign({},n,{path:`${n.path||""}[${c}]`}));return h!==u&&(s=!0),h});return s?a:o}_validate(t,n={},o,s){var a;let u=this.innerType,c=(a=n.recursive)!=null?a:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,o,(h,p)=>{var m;if(!c||!u||!this._typeCheck(p)){s(h,p);return}let y=new Array(p.length);for(let C=0;C<p.length;C++){var _;y[C]=u.asNestedTest({options:n,index:C,parent:p,parentPath:n.path,originalParent:(_=n.originalValue)!=null?_:t})}this.runTests({value:p,tests:y,originalValue:(m=n.originalValue)!=null?m:t,options:n},o,C=>s(C.concat(h),p))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(dd)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Dr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+An(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=Ho.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n){return n=n||Ho.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n){return n=n||Ho.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(o,s,a)=>!t(o,s,a):o=>!!o;return this.transform(o=>o!=null?o.filter(n):o)}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);if(n.innerType){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),o.innerType=n.innerType.describe(a)}return o}}hl.prototype=pl.prototype;function gd(e){return new gl(e)}class gl extends It{constructor(t){super({type:"tuple",spec:{types:t},check(n){const o=this.spec.types;return Array.isArray(n)&&n.length===o.length}}),this.withMutation(()=>{this.typeError(sd.notType)})}_cast(t,n){const{types:o}=this.spec,s=super._cast(t,n);if(!this._typeCheck(s))return s;let a=!1;const u=o.map((c,h)=>{const p=c.cast(s[h],Object.assign({},n,{path:`${n.path||""}[${h}]`}));return p!==s[h]&&(a=!0),p});return a?u:s}_validate(t,n={},o,s){let a=this.spec.types;super._validate(t,n,o,(u,c)=>{var h;if(!this._typeCheck(c)){s(u,c);return}let p=[];for(let[y,_]of a.entries()){var m;p[y]=_.asNestedTest({options:n,index:y,parent:c,parentPath:n.path,originalParent:(m=n.originalValue)!=null?m:t})}this.runTests({value:c,tests:p,originalValue:(h=n.originalValue)!=null?h:t,options:n},o,y=>s(y.concat(u),c))})}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=n.spec.types.map((s,a)=>{var u;let c=t;return(u=c)!=null&&u.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),s.describe(c)}),o}}gd.prototype=gl.prototype;function Jb(e){return new Xo(e)}function md(e){try{return e()}catch(t){if(wt.isError(t))return Promise.reject(t);throw t}}class Xo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(n,o={})=>{let s=this.builder(n,o);if(!Dr(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(o)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const n=new Xo(this.builder);return n.spec=Object.assign({},this.spec,t),n}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,n){return this._resolve(t,n).cast(t,n)}asNestedTest(t){let{key:n,index:o,parent:s,options:a}=t,u=s[o??n];return this._resolve(u,Object.assign({},a,{value:u,parent:s})).asNestedTest(t)}validate(t,n){return md(()=>this._resolve(t,n).validate(t,n))}validateSync(t,n){return this._resolve(t,n).validateSync(t,n)}validateAt(t,n,o){return md(()=>this._resolve(n,o).validateAt(t,n,o))}validateSyncAt(t,n,o){return this._resolve(n,o).validateSyncAt(t,n,o)}isValid(t,n){try{return this._resolve(t,n).isValid(t,n)}catch(o){if(wt.isError(o))return Promise.resolve(!1);throw o}}isValidSync(t,n){return this._resolve(t,n).isValidSync(t,n)}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 n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}}function Rb(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{ad[t][n]=e[t][n]})})}function Zb(e,t,n){if(!e||!Dr(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 n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const yd=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:pl,BooleanSchema:al,DateSchema:ii,LazySchema:Xo,MixedSchema:ol,NumberSchema:cl,ObjectSchema:dl,Schema:It,StringSchema:ul,TupleSchema:gl,ValidationError:wt,addMethod:Zb,array:hl,bool:sl,boolean:sl,date:fl,defaultLocale:ad,getIn:il,isSchema:Dr,lazy:Jb,mixed:Jo,number:ld,object:Ki,printValue:An,reach:$b,ref:Pb,setLocale:Rb,string:Ro,tuple:gd},Symbol.toStringTag,{value:"Module"})),ml=e=>{const t=e.reduce((n,o)=>{let{name:s,required:a,type:u}=o;switch(u){case"RelatedList":u="array";break;case"Integer":case"Float":u="number";break;case"Related":case"Geometry":case"Raw":u="mixed";break;default:u="string"}let c;try{a?c=yd[u]().typeError(`Field must be of type ${u}`).required("Field is required"):c=yd[u]().typeError(`Field must be of type ${u}`).nullable(!0)}catch(h){console.log(h)}return n[s]=c,n},{});return Ki().shape(t)},vd=e=>e?{...e,add:{columns:e.add_columns,title:e.add_title,schema:ml(e.add_columns),defaultValues:Ka(e.add_columns)},edit:{columns:e.edit_columns,title:e.edit_title,schema:ml(e.edit_columns),defaultValues:Ka(e.edit_columns)}}:null,Xb={columns:[],filters:[],page:0,page_size:25};function Ji(e,t={}){return Object.entries(t).reduce((n,[o,s])=>s==null?(delete n[o],n):{...n,[o]:s},e||Xb)}function bd({path:e,initialQueryParams:t,relation:n,fetchInfo:o=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:u=!0,infoQueryProps:c,dataQueryProps:h,streaming:p=!1}){const[m,y]=x.useState(t?Ji(null,t):null),_=x.useRef(e),C=x.useMemo(()=>(_.current=e,n?{...m,filters:[...m.filters,{col:n.foreign_key,opr:n.type,value:xt(n.id)}]}:m),[n,m]),E=x.useCallback(Z=>y(R=>{if(typeof Z=="function"&&(Z=Z(R)),!R)return Ji(null,Z);const Y=Ji({...R},Z);if(Z&&((Z.filters||Z.order_column||Z.order_direction)&&!Z.page&&(Y.page=0),p)){if(Z.page&&Z.page!==R.page&&!Z.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(Z.page_size&&Z.page_size!==R.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return Y}),[p]),[w,$]=x.useState(null),N=x.useMemo(()=>w,[w]),Q=x.useCallback(()=>$(null),[]),{data:H,isFetching:B,refetch:D,error:k}=Ln.useQuery({queryKey:[`info-${e}`],queryFn:({signal:Z})=>Wf(it(e,"_info"),Z).then(R=>({...vd(R),path:e})),placeholderData:s?null:Ln.keepPreviousData,enabled:o,retry:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...c}),{data:G,isFetching:ae,refetch:ie,error:S}=Ln.useQuery({queryKey:[`data-${_.current}`,JSON.stringify(C)],queryFn:({signal:Z})=>C?Gf(it(_.current,"/"),C,Z).then(R=>({...R,result:R.result.map((Y,ee)=>({...Y,id:R.ids[ee]})),path:_.current})):null,placeholderData:a?null:Ln.keepPreviousData,retry:!1,...h});x.useEffect(()=>{if(k){$({message:"Couldn't fetch info",originalError:k});return}if(S){$({message:"Couldn't fetch list",originalError:S});return}Q()},[k,S,Q]);const U=x.useMemo(()=>B||ae,[B,ae]);Ze.useDidUpdate(()=>{if(!u)return;const Z=Ji(null,t);m!=null&&m.page_size&&(Z.page_size=m.page_size),y(Z)},[e]);const ne=x.useCallback(async Z=>{try{const R=await Vf(e,xt(Z));return Q(),R}catch(R){$({message:`Couldn't fetch item with id ${Z}`,originalError:R})}},[e,Q]),fe=x.useCallback(async(Z,R)=>{try{const Y=await zf(e,Z);return R||(D(),ie()),Q(),Y}catch(Y){$({message:"Couldn't add item",originalError:Y})}},[ie,D,e,Q]),ye=x.useCallback(async(Z,R,Y)=>{try{const ee=await Hf(e,xt(Z),R);return Y||(D(),ie()),Q(),ee}catch(ee){$({message:`Couldn't update item with id ${Z}`,originalError:ee})}},[ie,D,e,Q]),Me=x.useCallback(async(Z,R)=>{try{const Y=await Uf(e,xt(Z));return R||(D(),ie()),Q(),Y}catch(Y){$({message:`Couldn't delete item with id ${Z}`,originalError:Y})}},[ie,D,e,Q]),we=x.useCallback(async({label:Z,export_mode:R,delimiter:Y})=>{try{await jf(e,C,{label:Z,export_mode:R,delimiter:Y})}catch(ee){$({message:"Couldn't download",originalError:ee})}},[e,C]),Le=x.useCallback(async(Z,{delimiter:R})=>{try{return await Yf(e,Z,{delimiter:R})}catch(Y){$({message:"Couldn't upload",originalError:Y})}},[e]),[Ie,lt]=Ze.useSetState({data:{},isEnd:!1,fetch:()=>null});x.useEffect(()=>{p&<({fetch:()=>E({page:0,streaming:!0})})},[E,lt,p]),x.useEffect(()=>{p&&G&<(Z=>{let R=Object.keys(Z.data).length;const Y={isEnd:!1};return C.page<R?(R=C.page,Y.data={[C.page]:G.result}):Y.data={...Z.data,[C.page]:G.result},G.result.length<C.page_size?(Y.isEnd=!0,Y.fetch=()=>null):Y.fetch=()=>E({page:R+1,streaming:!0}),Y})},[G,E,lt,p]);const q=x.useMemo(()=>{const Z={all:"all",actions:"actions"};return G==null||G.list_columns.forEach(R=>{Z[R]&&(Z[R]=`_${R}`)}),Z},[G==null?void 0:G.list_columns]),K=x.useCallback(()=>C?ie():E(),[ie,C,E]);return{path:e,data:G,info:H,queryParams:C,loading:U,error:N,streaming:Ie,specialKey:q,setQueryParams:E,refetch:K,refetchInfo:D,getEntry:ne,addEntry:fe,updateEntry:ye,deleteEntry:Me,download:we,upload:Le,resetError:Q}}const _d=({path:e,refetch:t})=>{const[n,o]=x.useState([]),[s,a]=x.useState(null),u=x.useCallback(async(h,p)=>{try{a(null);const m=await qf(e,h,n);return p||t(),m}catch(m){console.error(m),a({message:"Couldn't perform bulk action",originalError:m})}},[e,t,n]);return{bulkActions:x.useMemo(()=>({selectedIds:n,setSelectedIds:o}),[n,o]),dispatchBulkActions:u,error:s}},mt={NORMAL:"normal",FULL_SCREEN:"fullScreen",OVERLAY:"overlay"},yl=()=>{const[e]=x.useState(()=>wf.create(t=>({opened:!1,setOpened:n=>t({opened:n}),view:mt.NORMAL,setView:n=>t({view:n}),state:jo,setState:n=>t({state:n}),reset:()=>t({state:jo}),item:void 0,itemLoading:!1,setItem:n=>t({item:n,itemLoading:!1}),setItemLoading:n=>t({itemLoading:n})})));return e};function Td({resource_name:e="",initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,children:p,streaming:m}){const{baseUrl:y}=Of(),_=bd({path:it(y,e),initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,streaming:m}),C=qi(_),E=_d(C),w=qi(E),$=yl(),[N]=x.useState(()=>Uo($)),Q=yl(),[H]=x.useState(()=>Uo(Q));return d.jsx(za.Provider,{value:C,children:d.jsx(Ha.Provider,{value:w,children:d.jsx(Ya.Provider,{value:N,children:d.jsx(qa.Provider,{value:H,children:p})})})})}/**
|
|
5
5
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Qb={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"}};/**
|
|
10
10
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
11
11
|
*
|
|
12
12
|
* This source code is licensed under the MIT license.
|
|
13
13
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/const
|
|
14
|
+
*/const ot=(e,t,n,o)=>{const s=x.forwardRef(({color:a="currentColor",size:u=24,stroke:c=2,title:h,className:p,children:m,...y},_)=>x.createElement("svg",{ref:_,...Qb[e],width:u,height:u,className:["tabler-icon",`tabler-icon-${t}`,p].join(" "),strokeWidth:c,stroke:a,...y},[h&&x.createElement("title",{key:"svg-title"},h),...o.map(([C,E])=>x.createElement(C,E)),...Array.isArray(m)?m:[m]]));return s.displayName=`${n}`,s};/**
|
|
15
15
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
19
|
+
*/var e1=ot("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"}]]);/**
|
|
20
20
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the MIT license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/var
|
|
24
|
+
*/var t1=ot("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"}]]);/**
|
|
25
25
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license.
|
|
28
28
|
* See the LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var vl=ot("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
|
|
30
30
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
34
|
+
*/var wd=ot("outline","chevron-up","IconChevronUp",[["path",{d:"M6 15l6 -6l6 6",key:"svg-0"}]]);/**
|
|
35
35
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the MIT license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var
|
|
39
|
+
*/var n1=ot("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"}]]);/**
|
|
40
40
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
44
|
+
*/var r1=ot("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"}]]);/**
|
|
45
45
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license.
|
|
48
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
49
|
+
*/var i1=ot("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"}]]);/**
|
|
50
50
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the MIT license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/var
|
|
54
|
+
*/var o1=ot("outline","file-type-csv","IconFileTypeCsv",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4",key:"svg-1"}],["path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0",key:"svg-2"}],["path",{d:"M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75",key:"svg-3"}],["path",{d:"M16 15l2 6l2 -6",key:"svg-4"}]]);/**
|
|
55
55
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the MIT license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var
|
|
59
|
+
*/var s1=ot("outline","filter-cog","IconFilterCog",[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]]);/**
|
|
60
60
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the MIT license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/var
|
|
64
|
+
*/var Sd=ot("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"}]]);/**
|
|
65
65
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var
|
|
69
|
+
*/var a1=ot("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"}]]);/**
|
|
70
70
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the MIT license.
|
|
73
73
|
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/var
|
|
74
|
+
*/var Cd=ot("outline","info-circle","IconInfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);/**
|
|
75
75
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license.
|
|
78
78
|
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var
|
|
79
|
+
*/var Ed=ot("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"}]]);/**
|
|
80
80
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the MIT license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var
|
|
84
|
+
*/var l1=ot("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"}]]);/**
|
|
85
85
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the MIT license.
|
|
88
88
|
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/var
|
|
89
|
+
*/var u1=ot("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"}]]);/**
|
|
90
90
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the MIT license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/var
|
|
94
|
+
*/var bl=ot("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
|
|
95
95
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the MIT license.
|
|
98
98
|
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/var
|
|
99
|
+
*/var c1=ot("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
|
|
100
100
|
* @license @tabler/icons-react v3.31.0 - MIT
|
|
101
101
|
*
|
|
102
102
|
* This source code is licensed under the MIT license.
|
|
103
103
|
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/var _d=wt("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function wd({opened:e,onClose:t,handleAccept:n,handleReject:o}){return p.jsxs(w.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?",p.jsxs(w.Group,{align:"right",mt:"xl",justify:"flex-end",children:[p.jsx(w.Button,{onClick:o,variant:"default",children:"Abbrechen"}),p.jsx(w.Button,{onClick:n,color:"red",children:"Löschen"})]})]})}function Td({id:e,...t}){const{deleteEntry:n}=Oe(),o={bg:"transparent",size:"sm",c:"gray"},s=w.useProps("ActionIcon",o,t),[a,u]=A.useState(!1),c=()=>{u(!1)},d=async()=>{n(e),u(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(w.Tooltip,{label:"Delete",children:p.jsx(w.ActionIcon,{bg:s.bg,size:s.size,c:s.c,onClick:()=>{u(!0)},children:p.jsx(bd,{})})}),p.jsx(wd,{opened:a,onClose:c,handleAccept:d,handleReject:c})]})}function Sd({id:e,...t}){const{getEntry:n}=Oe(),o={variant:"transparent",size:"sm",c:"gray"},s=w.useProps("ActionIcon",o,t),{setOpened:a,setItem:u,setItemLoading:c}=Bn("edit");return p.jsx(p.Fragment,{children:p.jsx(w.Tooltip,{label:"Edit",children:p.jsx(w.ActionIcon,{variant:s.variant,size:s.size,c:s.c,onClick:async()=>{c(!0),a(!0),n(e).then(d=>{d?u(d):c(!1)}).catch(()=>c(!1))},children:p.jsx(e_,{})})})})}const Cd=Object.freeze({left:0,top:0,width:16,height:16}),Zo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yl=Object.freeze({...Cd,...Zo}),vl=Object.freeze({...yl,body:"",hidden:!1});function r_(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Ed(e,t){const n=r_(e,t);for(const o in vl)o in Zo?o in e&&!(o in n)&&(n[o]=Zo[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function i_(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function a(u){if(n[u])return s[u]=[];if(!(u in s)){s[u]=null;const c=o[u]&&o[u].parent,d=c&&a(c);d&&(s[u]=[c].concat(d))}return s[u]}return Object.keys(n).concat(Object.keys(o)).forEach(a),s}function o_(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let a={};function u(c){a=Ed(o[c]||s[c],a)}return u(t),n.forEach(u),Ed(e,a)}function xd(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=i_(e);for(const s in o){const a=o[s];a&&(t(s,o_(e,s,a)),n.push(s))}return n}const s_={provider:"",aliases:{},not_found:{},...Cd};function bl(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ad(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!bl(e,s_))return null;const n=t.icons;for(const s in n){const a=n[s];if(!s||typeof a.body!="string"||!bl(a,vl))return null}const o=t.aliases||Object.create(null);for(const s in o){const a=o[s],u=a.parent;if(!s||typeof u!="string"||!n[u]&&!o[u]||!bl(a,vl))return null}return t}const Od=/^[a-z0-9]+(-[a-z0-9]+)*$/,Xo=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),d=s.pop(),h={provider:s.length>0?s[0]:o,prefix:d,name:c};return t&&!Qo(h)?null:h}const a=s[0],u=a.split("-");if(u.length>1){const c={provider:o,prefix:u.shift(),name:u.join("-")};return t&&!Qo(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:a};return t&&!Qo(c,n)?null:c}return null},Qo=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Id=Object.create(null);function a_(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ii(e,t){const n=Id[e]||(Id[e]=Object.create(null));return n[t]||(n[t]=a_(e,t))}function Pd(e,t){return Ad(t)?xd(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function l_(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ri=!1;function $d(e){return typeof e=="boolean"&&(Ri=e),Ri}function Md(e){const t=typeof e=="string"?Xo(e,!0,Ri):e;if(t){const n=ii(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function u_(e,t){const n=Xo(e,!0,Ri);if(!n)return!1;const o=ii(n.provider,n.prefix);return t?l_(o,n.name,t):(o.missing.add(n.name),!0)}function c_(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ri&&!t&&!e.prefix){let s=!1;return Ad(e)&&(e.prefix="",xd(e,(a,u)=>{u_(a,u)&&(s=!0)})),s}const n=e.prefix;if(!Qo({prefix:n,name:"a"}))return!1;const o=ii(t,n);return!!Pd(o,e)}const Fd=Object.freeze({width:null,height:null}),Dd=Object.freeze({...Fd,...Zo}),f_=/(-?[0-9.]*[0-9]+[0-9.]*)/g,d_=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function kd(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(f_);if(o===null||!o.length)return e;const s=[];let a=o.shift(),u=d_.test(a);for(;;){if(u){const c=parseFloat(a);isNaN(c)?s.push(a):s.push(Math.ceil(c*t*n)/n)}else s.push(a);if(a=o.shift(),a===void 0)return s.join("");u=!u}}function p_(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const s=e.indexOf(">",o),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const u=e.indexOf(">",a);if(u===-1)break;n+=e.slice(s+1,a).trim(),e=e.slice(0,o).trim()+e.slice(u+1)}return{defs:n,content:e}}function h_(e,t){return e?"<defs>"+e+"</defs>"+t:t}function g_(e,t,n){const o=p_(e);return h_(o.defs,t+o.content+n)}const m_=e=>e==="unset"||e==="undefined"||e==="none";function y_(e,t){const n={...yl,...e},o={...Dd,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,o].forEach(T=>{const $=[],N=T.hFlip,J=T.vFlip;let Y=T.rotate;N?J?Y+=2:($.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),$.push("scale(-1 1)"),s.top=s.left=0):J&&($.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),$.push("scale(1 -1)"),s.top=s.left=0);let B;switch(Y<0&&(Y-=Math.floor(Y/4)*4),Y=Y%4,Y){case 1:B=s.height/2+s.top,$.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:$.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:B=s.width/2+s.left,$.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}Y%2===1&&(s.left!==s.top&&(B=s.left,s.left=s.top,s.top=B),s.width!==s.height&&(B=s.width,s.width=s.height,s.height=B)),$.length&&(a=g_(a,'<g transform="'+$.join(" ")+'">',"</g>"))});const u=o.width,c=o.height,d=s.width,h=s.height;let y,m;u===null?(m=c===null?"1em":c==="auto"?h:c,y=kd(m,d/h)):(y=u==="auto"?d:u,m=c===null?kd(y,h/d):c==="auto"?h:c);const b={},C=(T,$)=>{m_($)||(b[T]=$.toString())};C("width",y),C("height",m);const E=[s.left,s.top,d,h];return b.viewBox=E.join(" "),{attributes:b,viewBox:E,body:a}}const v_=/\sid="(\S+)"/g,b_="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let __=0;function w_(e,t=b_){const n=[];let o;for(;o=v_.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const u=typeof t=="function"?t(a):t+(__++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+u+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const _l=Object.create(null);function T_(e,t){_l[e]=t}function wl(e){return _l[e]||_l[""]}function Tl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Sl=Object.create(null),Ki=["https://api.simplesvg.com","https://api.unisvg.com"],es=[];for(;Ki.length>0;)Ki.length===1||Math.random()>.5?es.push(Ki.shift()):es.push(Ki.pop());Sl[""]=Tl({resources:["https://api.iconify.design"].concat(es)});function S_(e,t){const n=Tl(t);return n===null?!1:(Sl[e]=n,!0)}function Cl(e){return Sl[e]}let Nd=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function C_(e,t){const n=Cl(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(u=>{s=Math.max(s,u.length)});const a=t+".json?icons=";o=n.maxURL-s-n.path.length-a.length}return o}function E_(e){return e===404}const x_=(e,t,n)=>{const o=[],s=C_(e,t),a="icons";let u={type:a,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,h)=>{c+=d.length+1,c>=s&&h>0&&(o.push(u),u={type:a,provider:e,prefix:t,icons:[]},c=d.length),u.icons.push(d)}),o.push(u),o};function A_(e){if(typeof e=="string"){const t=Cl(e);if(t)return t.path}return"/"}const O_={prepare:x_,send:(e,t,n)=>{if(!Nd){n("abort",424);return}let o=A_(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});o+=a+".json?"+d.toString();break}case"custom":{const a=t.uri;o+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let s=503;Nd(e+o).then(a=>{const u=a.status;if(u!==200){setTimeout(()=>{n(E_(u)?"abort":"next",u)});return}return s=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",s)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",s)})}};function I_(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,a)=>s.provider!==a.provider?s.provider.localeCompare(a.provider):s.prefix!==a.prefix?s.prefix.localeCompare(a.prefix):s.name.localeCompare(a.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const a=s.provider,u=s.prefix,c=s.name,d=n[a]||(n[a]=Object.create(null)),h=d[u]||(d[u]=ii(a,u));let y;c in h.icons?y=t.loaded:u===""||h.missing.has(c)?y=t.missing:y=t.pending;const m={provider:a,prefix:u,name:c};y.push(m)}),t}function Ld(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function P_(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(a=>{const u=a.icons,c=u.pending.length;u.pending=u.pending.filter(d=>{if(d.prefix!==s)return!0;const h=d.name;if(e.icons[h])u.loaded.push({provider:o,prefix:s,name:h});else if(e.missing.has(h))u.missing.push({provider:o,prefix:s,name:h});else return n=!0,!0;return!1}),u.pending.length!==c&&(n||Ld([e],a.id),a.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),a.abort))})}))}let $_=0;function M_(e,t,n){const o=$_++,s=Ld.bind(null,n,o);if(!t.pending.length)return s;const a={id:o,icons:t,callback:e,abort:s};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(a)}),s}function F_(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const a=typeof s=="string"?Xo(s,t,n):s;a&&o.push(a)}),o}var D_={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function k_(e,t,n,o){const s=e.resources.length,a=e.random?Math.floor(Math.random()*s):e.index;let u;if(e.random){let k=e.resources.slice(0);for(u=[];k.length>1;){const H=Math.floor(Math.random()*k.length);u.push(k[H]),k=k.slice(0,H).concat(k.slice(H+1))}u=u.concat(k)}else u=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let d="pending",h=0,y,m=null,b=[],C=[];typeof o=="function"&&C.push(o);function E(){m&&(clearTimeout(m),m=null)}function T(){d==="pending"&&(d="aborted"),E(),b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function $(k,H){H&&(C=[]),typeof k=="function"&&C.push(k)}function N(){return{startTime:c,payload:t,status:d,queriesSent:h,queriesPending:b.length,subscribe:$,abort:T}}function J(){d="failed",C.forEach(k=>{k(void 0,y)})}function Y(){b.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),b=[]}function B(k,H,ae){const ie=H!=="success";switch(b=b.filter(S=>S!==k),d){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(H==="abort"){y=ae,J();return}if(ie){y=ae,b.length||(u.length?D():J());return}if(E(),Y(),!e.random){const S=e.resources.indexOf(k.resource);S!==-1&&S!==e.index&&(e.index=S)}d="completed",C.forEach(S=>{S(ae)})}function D(){if(d!=="pending")return;E();const k=u.shift();if(k===void 0){if(b.length){m=setTimeout(()=>{E(),d==="pending"&&(Y(),J())},e.timeout);return}J();return}const H={status:"pending",resource:k,callback:(ae,ie)=>{B(H,ae,ie)}};b.push(H),h++,m=setTimeout(D,e.rotate),n(k,t,H.callback)}return setTimeout(D),N}function zd(e){const t={...D_,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,d,h){const y=k_(t,c,d,(m,b)=>{o(),h&&h(m,b)});return n.push(y),y}function a(c){return n.find(d=>c(d))||null}return{query:s,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Bd(){}const El=Object.create(null);function N_(e){if(!El[e]){const t=Cl(e);if(!t)return;const n=zd(t),o={config:t,redundancy:n};El[e]=o}return El[e]}function L_(e,t,n){let o,s;if(typeof e=="string"){const a=wl(e);if(!a)return n(void 0,424),Bd;s=a.send;const u=N_(e);u&&(o=u.redundancy)}else{const a=Tl(e);if(a){o=zd(a);const u=e.resources?e.resources[0]:"",c=wl(u);c&&(s=c.send)}}return!o||!s?(n(void 0,424),Bd):o.query(t,s,n)().abort}function Ud(){}function z_(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,P_(e)}))}function B_(e){const t=[],n=[];return e.forEach(o=>{(o.match(Od)?t:n).push(o)}),{valid:t,invalid:n}}function Ji(e,t,n){function o(){const s=e.pendingIcons;t.forEach(a=>{s&&s.delete(a),e.icons[a]||e.missing.add(a)})}if(n&&typeof n=="object")try{if(!Pd(e,n).length){o();return}}catch(s){console.error(s)}o(),z_(e)}function jd(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function U_(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const a=e.loadIcon;if(e.loadIcons&&(s.length>1||!a)){jd(e.loadIcons(s,o,n),y=>{Ji(e,s,y)});return}if(a){s.forEach(y=>{const m=a(y,o,n);jd(m,b=>{const C=b?{prefix:o,icons:{[y]:b}}:null;Ji(e,[y],C)})});return}const{valid:u,invalid:c}=B_(s);if(c.length&&Ji(e,c,null),!u.length)return;const d=o.match(Od)?wl(n):null;if(!d){Ji(e,u,null);return}d.prepare(n,o,u).forEach(y=>{L_(n,y,m=>{Ji(e,y.icons,m)})})}))}const j_=(e,t)=>{const n=F_(e,!0,$d()),o=I_(n);if(!o.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(o.loaded,o.missing,o.pending,Ud)}),()=>{d=!1}}const s=Object.create(null),a=[];let u,c;return o.pending.forEach(d=>{const{provider:h,prefix:y}=d;if(y===c&&h===u)return;u=h,c=y,a.push(ii(h,y));const m=s[h]||(s[h]=Object.create(null));m[y]||(m[y]=[])}),o.pending.forEach(d=>{const{provider:h,prefix:y,name:m}=d,b=ii(h,y),C=b.pendingIcons||(b.pendingIcons=new Set);C.has(m)||(C.add(m),s[h][y].push(m))}),a.forEach(d=>{const h=s[d.provider][d.prefix];h.length&&U_(d,h)}),t?M_(t,o,a):Ud};function W_(e,t){const n={...e};for(const o in t){const s=t[o],a=typeof s;o in Fd?(s===null||s&&(a==="string"||a==="number"))&&(n[o]=s):a===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const V_=/[\s,]+/;function G_(e,t){t.split(V_).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function H_(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/s,a%1===0?o(a):0)}}return t}function Y_(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function q_(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function R_(e){return"data:image/svg+xml,"+q_(e)}function K_(e){return'url("'+R_(e)+'")'}let Zi;function J_(){try{Zi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Zi=null}}function Z_(e){return Zi===void 0&&J_(),Zi?Zi.createHTML(e):e}const Wd={...Dd,inline:!1},X_={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Q_={display:"inline-block"},xl={backgroundColor:"currentColor"},Vd={backgroundColor:"transparent"},Gd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Hd={WebkitMask:xl,mask:xl,background:Vd};for(const e in Hd){const t=Hd[e];for(const n in Gd)t[e+n]=Gd[n]}const e1={...Wd,inline:!0};function Yd(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const t1=(e,t,n)=>{const o=t.inline?e1:Wd,s=W_(o,t),a=t.mode||"svg",u={},c=t.style||{},d={...a==="svg"?X_:{}};if(n){const $=Xo(n,!1,!0);if($){const N=["iconify"],J=["provider","prefix"];for(const Y of J)$[Y]&&N.push("iconify--"+$[Y]);d.className=N.join(" ")}}for(let $ in t){const N=t[$];if(N!==void 0)switch($){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":d.ref=N;break;case"className":d[$]=(d[$]?d[$]+" ":"")+N;break;case"inline":case"hFlip":case"vFlip":s[$]=N===!0||N==="true"||N===1;break;case"flip":typeof N=="string"&&G_(s,N);break;case"color":u.color=N;break;case"rotate":typeof N=="string"?s[$]=H_(N):typeof N=="number"&&(s[$]=N);break;case"ariaHidden":case"aria-hidden":N!==!0&&N!=="true"&&delete d["aria-hidden"];break;default:o[$]===void 0&&(d[$]=N)}}const h=y_(e,s),y=h.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),a==="svg"){d.style={...u,...c},Object.assign(d,y);let $=0,N=t.id;return typeof N=="string"&&(N=N.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:Z_(w_(h.body,N?()=>N+"ID"+$++:"iconifyReact"))},A.createElement("svg",d)}const{body:m,width:b,height:C}=e,E=a==="mask"||(a==="bg"?!1:m.indexOf("currentColor")!==-1),T=Y_(m,{...y,width:b+"",height:C+""});return d.style={...u,"--svg":K_(T),width:Yd(y.width),height:Yd(y.height),...Q_,...E?xl:Vd,...c},A.createElement("span",d)};if($d(!0),T_("",O_),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!c_(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;S_(n,s)||console.error(o)}catch{console.error(o)}}}}function qd(e){const[t,n]=A.useState(!!e.ssr),[o,s]=A.useState({});function a(C){if(C){const E=e.icon;if(typeof E=="object")return{name:"",data:E};const T=Md(E);if(T)return{name:E,data:T}}return{name:""}}const[u,c]=A.useState(a(!!e.ssr));function d(){const C=o.callback;C&&(C(),s({}))}function h(C){if(JSON.stringify(u)!==JSON.stringify(C))return d(),c(C),!0}function y(){var C;const E=e.icon;if(typeof E=="object"){h({name:"",data:E});return}const T=Md(E);if(h({name:E,data:T}))if(T===void 0){const $=j_([E],y);s({callback:$})}else T&&((C=e.onLoad)===null||C===void 0||C.call(e,E))}A.useEffect(()=>(n(!0),d),[]),A.useEffect(()=>{t&&y()},[e.icon,t]);const{name:m,data:b}=u;return b?t1({...yl,...b},e,m):e.children?e.children:e.fallback?e.fallback:A.createElement("span",{})}const Al=A.forwardRef((e,t)=>qd({...e,_ref:t}));A.forwardRef((e,t)=>qd({inline:!0,...e,_ref:t}));function Rd(e,{data:t,onChange:n}){return e?{checked:t||!1,onChange:o=>n(o.target.checked)}:{data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],value:ei(t)?String(t):null,onChange:o=>n(ei(o)?o===String(!0):void 0)}}function n1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wn=n1,r1=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Kd=r1,i1=Kd,o1=typeof self=="object"&&self&&self.Object===Object&&self,s1=i1||o1||Function("return this")(),bn=s1,a1=bn,l1=function(){return a1.Date.now()},u1=l1,c1=/\s/;function f1(e){for(var t=e.length;t--&&c1.test(e.charAt(t)););return t}var d1=f1,p1=d1,h1=/^\s+/;function g1(e){return e&&e.slice(0,p1(e)+1).replace(h1,"")}var m1=g1,y1=bn,v1=y1.Symbol,ts=v1,Jd=ts,Zd=Object.prototype,b1=Zd.hasOwnProperty,_1=Zd.toString,Xi=Jd?Jd.toStringTag:void 0;function w1(e){var t=b1.call(e,Xi),n=e[Xi];try{e[Xi]=void 0;var o=!0}catch{}var s=_1.call(e);return o&&(t?e[Xi]=n:delete e[Xi]),s}var T1=w1,S1=Object.prototype,C1=S1.toString;function E1(e){return C1.call(e)}var x1=E1,Xd=ts,A1=T1,O1=x1,I1="[object Null]",P1="[object Undefined]",Qd=Xd?Xd.toStringTag:void 0;function $1(e){return e==null?e===void 0?P1:I1:Qd&&Qd in Object(e)?A1(e):O1(e)}var oi=$1;function M1(e){return e!=null&&typeof e=="object"}var si=M1,F1=oi,D1=si,k1="[object Symbol]";function N1(e){return typeof e=="symbol"||D1(e)&&F1(e)==k1}var ep=N1,L1=m1,tp=Wn,z1=ep,np=NaN,B1=/^[-+]0x[0-9a-f]+$/i,U1=/^0b[01]+$/i,j1=/^0o[0-7]+$/i,W1=parseInt;function V1(e){if(typeof e=="number")return e;if(z1(e))return np;if(tp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=L1(e);var n=U1.test(e);return n||j1.test(e)?W1(e.slice(2),n?2:8):B1.test(e)?np:+e}var rp=V1,G1=Wn,Ol=u1,ip=rp,H1="Expected a function",Y1=Math.max,q1=Math.min;function R1(e,t,n){var o,s,a,u,c,d,h=0,y=!1,m=!1,b=!0;if(typeof e!="function")throw new TypeError(H1);t=ip(t)||0,G1(n)&&(y=!!n.leading,m="maxWait"in n,a=m?Y1(ip(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b);function C(k){var H=o,ae=s;return o=s=void 0,h=k,u=e.apply(ae,H),u}function E(k){return h=k,c=setTimeout(N,t),y?C(k):u}function T(k){var H=k-d,ae=k-h,ie=t-H;return m?q1(ie,a-ae):ie}function $(k){var H=k-d,ae=k-h;return d===void 0||H>=t||H<0||m&&ae>=a}function N(){var k=Ol();if($(k))return J(k);c=setTimeout(N,T(k))}function J(k){return c=void 0,b&&o?C(k):(o=s=void 0,u)}function Y(){c!==void 0&&clearTimeout(c),h=0,o=d=s=c=void 0}function B(){return c===void 0?u:J(Ol())}function D(){var k=Ol(),H=$(k);if(o=arguments,s=this,d=k,H){if(c===void 0)return E(d);if(m)return clearTimeout(c),c=setTimeout(N,t),C(d)}return c===void 0&&(c=setTimeout(N,t)),u}return D.cancel=Y,D.flush=B,D}var K1=R1;const J1=ir(K1),Z1=(e,t,n,o,s,a=300)=>{const[u,c]=A.useState(n??t);A.useEffect(()=>{c(n??t)},[n]);const d=A.useCallback(J1(m=>e(o,m),a),[e,o,a]),h=A.useCallback(m=>{const b=s(m);c(b??t),d(b)},[d,s]),y=A.useCallback(()=>{c(t),e(o,void 0)},[t,e,o]);return[u,h,y]};function ar(e,t){return e===t||Array.isArray(e)&&e.includes(t)}var X1=Object.prototype;function Q1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||X1;return e===n}var ns=Q1;function ew(e,t){return function(n){return e(t(n))}}var op=ew,tw=op,nw=tw(Object.keys,Object),rw=nw,iw=ns,ow=rw,sw=Object.prototype,aw=sw.hasOwnProperty;function lw(e){if(!iw(e))return ow(e);var t=[];for(var n in Object(e))aw.call(e,n)&&n!="constructor"&&t.push(n);return t}var uw=lw,cw=oi,fw=Wn,dw="[object AsyncFunction]",pw="[object Function]",hw="[object GeneratorFunction]",gw="[object Proxy]";function mw(e){if(!fw(e))return!1;var t=cw(e);return t==pw||t==hw||t==dw||t==gw}var Il=mw,yw=bn,vw=yw["__core-js_shared__"],bw=vw,Pl=bw,sp=function(){var e=/[^.]+$/.exec(Pl&&Pl.keys&&Pl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _w(e){return!!sp&&sp in e}var ww=_w,Tw=Function.prototype,Sw=Tw.toString;function Cw(e){if(e!=null){try{return Sw.call(e)}catch{}try{return e+""}catch{}}return""}var ap=Cw,Ew=Il,xw=ww,Aw=Wn,Ow=ap,Iw=/[\\^$.*+?()[\]{}|]/g,Pw=/^\[object .+?Constructor\]$/,$w=Function.prototype,Mw=Object.prototype,Fw=$w.toString,Dw=Mw.hasOwnProperty,kw=RegExp("^"+Fw.call(Dw).replace(Iw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nw(e){if(!Aw(e)||xw(e))return!1;var t=Ew(e)?kw:Pw;return t.test(Ow(e))}var Lw=Nw;function zw(e,t){return e==null?void 0:e[t]}var Bw=zw,Uw=Lw,jw=Bw;function Ww(e,t){var n=jw(e,t);return Uw(n)?n:void 0}var Dr=Ww,Vw=Dr,Gw=bn,Hw=Vw(Gw,"DataView"),Yw=Hw,qw=Dr,Rw=bn,Kw=qw(Rw,"Map"),$l=Kw,Jw=Dr,Zw=bn,Xw=Jw(Zw,"Promise"),Qw=Xw,eT=Dr,tT=bn,nT=eT(tT,"Set"),lp=nT,rT=Dr,iT=bn,oT=rT(iT,"WeakMap"),sT=oT,Ml=Yw,Fl=$l,Dl=Qw,kl=lp,Nl=sT,up=oi,ai=ap,cp="[object Map]",aT="[object Object]",fp="[object Promise]",dp="[object Set]",pp="[object WeakMap]",hp="[object DataView]",lT=ai(Ml),uT=ai(Fl),cT=ai(Dl),fT=ai(kl),dT=ai(Nl),kr=up;(Ml&&kr(new Ml(new ArrayBuffer(1)))!=hp||Fl&&kr(new Fl)!=cp||Dl&&kr(Dl.resolve())!=fp||kl&&kr(new kl)!=dp||Nl&&kr(new Nl)!=pp)&&(kr=function(e){var t=up(e),n=t==aT?e.constructor:void 0,o=n?ai(n):"";if(o)switch(o){case lT:return hp;case uT:return cp;case cT:return fp;case fT:return dp;case dT:return pp}return t});var pT=kr,hT=oi,gT=si,mT="[object Arguments]";function yT(e){return gT(e)&&hT(e)==mT}var vT=yT,gp=vT,bT=si,mp=Object.prototype,_T=mp.hasOwnProperty,wT=mp.propertyIsEnumerable,TT=gp(function(){return arguments}())?gp:function(e){return bT(e)&&_T.call(e,"callee")&&!wT.call(e,"callee")},rs=TT,ST=Array.isArray,Qi=ST,CT=9007199254740991;function ET(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=CT}var yp=ET,xT=Il,AT=yp;function OT(e){return e!=null&&AT(e.length)&&!xT(e)}var is=OT,os={exports:{}};function IT(){return!1}var PT=IT;os.exports,function(e,t){var n=bn,o=PT,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===s,c=u?n.Buffer:void 0,d=c?c.isBuffer:void 0,h=d||o;e.exports=h}(os,os.exports);var Ll=os.exports,$T=oi,MT=yp,FT=si,DT="[object Arguments]",kT="[object Array]",NT="[object Boolean]",LT="[object Date]",zT="[object Error]",BT="[object Function]",UT="[object Map]",jT="[object Number]",WT="[object Object]",VT="[object RegExp]",GT="[object Set]",HT="[object String]",YT="[object WeakMap]",qT="[object ArrayBuffer]",RT="[object DataView]",KT="[object Float32Array]",JT="[object Float64Array]",ZT="[object Int8Array]",XT="[object Int16Array]",QT="[object Int32Array]",eS="[object Uint8Array]",tS="[object Uint8ClampedArray]",nS="[object Uint16Array]",rS="[object Uint32Array]",Ze={};Ze[KT]=Ze[JT]=Ze[ZT]=Ze[XT]=Ze[QT]=Ze[eS]=Ze[tS]=Ze[nS]=Ze[rS]=!0,Ze[DT]=Ze[kT]=Ze[qT]=Ze[NT]=Ze[RT]=Ze[LT]=Ze[zT]=Ze[BT]=Ze[UT]=Ze[jT]=Ze[WT]=Ze[VT]=Ze[GT]=Ze[HT]=Ze[YT]=!1;function iS(e){return FT(e)&&MT(e.length)&&!!Ze[$T(e)]}var oS=iS;function sS(e){return function(t){return e(t)}}var aS=sS,ss={exports:{}};ss.exports,function(e,t){var n=Kd,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a&&n.process,c=function(){try{var d=s&&s.require&&s.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}}();e.exports=c}(ss,ss.exports);var lS=ss.exports,uS=oS,cS=aS,vp=lS,bp=vp&&vp.isTypedArray,fS=bp?cS(bp):uS,zl=fS,dS=uw,pS=pT,hS=rs,gS=Qi,mS=is,yS=Ll,vS=ns,bS=zl,_S="[object Map]",wS="[object Set]",TS=Object.prototype,SS=TS.hasOwnProperty;function CS(e){if(e==null)return!0;if(mS(e)&&(gS(e)||typeof e=="string"||typeof e.splice=="function"||yS(e)||bS(e)||hS(e)))return!e.length;var t=pS(e);if(t==_S||t==wS)return!e.size;if(vS(e))return!dS(e).length;for(var n in e)if(SS.call(e,n))return!1;return!0}var ES=CS;const _p=ir(ES),xS=(e,t,n,o,s,a,u)=>e.map((c,d)=>p.jsx(w.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"start"},children:p.jsx(De.JsonFormsDispatch,{uischema:c,schema:t,path:n,enabled:o,renderers:a,cells:u})},`${n}-${d}`)),AS=({elements:e,schema:t,path:n,enabled:o,direction:s,renderers:a,cells:u})=>_p(e)?null:p.jsx(w.Grid,{spacing:s==="row"?2:0,children:xS(e,t,n,o,s,a,u)}),as=A.memo(AS);function Bl(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString()}function wp(e){const t=new Date(e);return new Date(t.getTime()+t.getTimezoneOffset()*6e4)}function In(e={}){const t=w.useProps("__",{},{});let n=null;return ar(e.schema.type,"null")||(ar(e.schema.type,"array")?n=[]:ar(e.schema.type,"object")?n={}:ar(e.schema.type,"string")&&(n="")),{inputWrapperOrder:["label","input","description","error"],label:e.label,description:e.description,required:e.required,disabled:!e.enabled,onChange:o=>e.handleChange(e.path,o??(t.setNull?n:void 0)),error:e.errors?e.errors.split(`
|
|
105
|
-
|
|
104
|
+
*/var xd=ot("outline","separator-vertical","IconSeparatorVertical",[["path",{d:"M12 4l0 16",key:"svg-0"}],["path",{d:"M8 8l-4 4l4 4",key:"svg-1"}],["path",{d:"M16 16l4 -4l-4 -4",key:"svg-2"}]]);/**
|
|
105
|
+
* @license @tabler/icons-react v3.31.0 - MIT
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the MIT license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/var Ad=ot("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"}]]);/**
|
|
110
|
+
* @license @tabler/icons-react v3.31.0 - MIT
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the MIT license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/var f1=ot("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
|
|
115
|
+
* @license @tabler/icons-react v3.31.0 - MIT
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the MIT license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/var d1=ot("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"}]]);/**
|
|
120
|
+
* @license @tabler/icons-react v3.31.0 - MIT
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the MIT license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/var Od=ot("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function ar(e){const t={variant:"transparent",size:"lg",c:"gray",className:"toolbarActionIcon"},n=v.useProps("ActionIcon",t,e);return x.useMemo(()=>({...n,...e}),[n,e])}function h1(e,{autoInvoke:t=!0,initialLoading:n=!1,clearDataOnRefetch:o=!1,...s}={}){const[a,u]=x.useState(null),[c,h]=x.useState(n),[p,m]=x.useState(null),y=x.useRef(null),_=x.useCallback(()=>{if(e)return o&&u(null),m(null),y.current&&y.current.abort(),y.current=new AbortController,h(!0),fetch(e,{signal:y.current.signal,...s}).then(async E=>{const w=await E.json();if(!E.ok){const $=typeof w.detail=="string"?w.detail:JSON.stringify(w.detail,null,2);throw new Error($)}return u(w),h(!1),w}).catch(E=>(E&&E.name!=="AbortError"&&(m(E),h(!1)),E))},[e]),C=x.useCallback(()=>{var E;y.current&&((E=y.current)==null||E.abort(""),h(!1))},[]);return x.useEffect(()=>(t&&_(),()=>{y.current&&y.current.abort("")}),[_,t]),{data:a,loading:c,error:p,refetch:_,abort:C}}function Id(e){const t=x.useRef(!1);return x.useMemo(()=>e&&!t.current?(t.current=!0,!0):t.current,[e])}function Pd({opened:e,onClose:t,handleAccept:n,handleReject:o}){return d.jsxs(v.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(v.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(v.Button,{onClick:o,variant:"default",children:"Abbrechen"}),d.jsx(v.Button,{onClick:n,color:"red",children:"Löschen"})]})]})}function $d({id:e,...t}){const{deleteEntry:n}=Ae(),[o,s]=x.useState(!1),a=ar({onClick:()=>s(!0),size:"sm",...t}),u=()=>{s(!1)},c=async()=>{n(e),s(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Delete",children:d.jsx(v.ActionIcon,{...a,children:d.jsx(Ad,{})})}),d.jsx(Pd,{opened:o,onClose:u,handleAccept:c,handleReject:u})]})}function Md({id:e,...t}){const{getEntry:n}=Ae(),{setOpened:o,setItem:s,setItemLoading:a}=zn("edit"),u=ar({onClick:()=>{a(!0),o(!0),n(e).then(c=>{c?s(c):a(!1)}).catch(()=>a(!1))},size:"sm",...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(u1,{})})})})}const Fd=Object.freeze({left:0,top:0,width:16,height:16}),Qo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_l=Object.freeze({...Fd,...Qo}),Tl=Object.freeze({..._l,body:"",hidden:!1});function p1(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Dd(e,t){const n=p1(e,t);for(const o in Tl)o in Qo?o in e&&!(o in n)&&(n[o]=Qo[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function g1(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function a(u){if(n[u])return s[u]=[];if(!(u in s)){s[u]=null;const c=o[u]&&o[u].parent,h=c&&a(c);h&&(s[u]=[c].concat(h))}return s[u]}return Object.keys(n).concat(Object.keys(o)).forEach(a),s}function m1(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let a={};function u(c){a=Dd(o[c]||s[c],a)}return u(t),n.forEach(u),Dd(e,a)}function kd(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=g1(e);for(const s in o){const a=o[s];a&&(t(s,m1(e,s,a)),n.push(s))}return n}const y1={provider:"",aliases:{},not_found:{},...Fd};function wl(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Nd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!wl(e,y1))return null;const n=t.icons;for(const s in n){const a=n[s];if(!s||typeof a.body!="string"||!wl(a,Tl))return null}const o=t.aliases||Object.create(null);for(const s in o){const a=o[s],u=a.parent;if(!s||typeof u!="string"||!n[u]&&!o[u]||!wl(a,Tl))return null}return t}const Ld=/^[a-z0-9]+(-[a-z0-9]+)*$/,es=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),h=s.pop(),p={provider:s.length>0?s[0]:o,prefix:h,name:c};return t&&!ts(p)?null:p}const a=s[0],u=a.split("-");if(u.length>1){const c={provider:o,prefix:u.shift(),name:u.join("-")};return t&&!ts(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:a};return t&&!ts(c,n)?null:c}return null},ts=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Bd=Object.create(null);function v1(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function oi(e,t){const n=Bd[e]||(Bd[e]=Object.create(null));return n[t]||(n[t]=v1(e,t))}function zd(e,t){return Nd(t)?kd(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function b1(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ri=!1;function Ud(e){return typeof e=="boolean"&&(Ri=e),Ri}function jd(e){const t=typeof e=="string"?es(e,!0,Ri):e;if(t){const n=oi(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function _1(e,t){const n=es(e,!0,Ri);if(!n)return!1;const o=oi(n.provider,n.prefix);return t?b1(o,n.name,t):(o.missing.add(n.name),!0)}function T1(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ri&&!t&&!e.prefix){let s=!1;return Nd(e)&&(e.prefix="",kd(e,(a,u)=>{_1(a,u)&&(s=!0)})),s}const n=e.prefix;if(!ts({prefix:n,name:"a"}))return!1;const o=oi(t,n);return!!zd(o,e)}const Wd=Object.freeze({width:null,height:null}),Vd=Object.freeze({...Wd,...Qo}),w1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,S1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gd(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(w1);if(o===null||!o.length)return e;const s=[];let a=o.shift(),u=S1.test(a);for(;;){if(u){const c=parseFloat(a);isNaN(c)?s.push(a):s.push(Math.ceil(c*t*n)/n)}else s.push(a);if(a=o.shift(),a===void 0)return s.join("");u=!u}}function C1(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const s=e.indexOf(">",o),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const u=e.indexOf(">",a);if(u===-1)break;n+=e.slice(s+1,a).trim(),e=e.slice(0,o).trim()+e.slice(u+1)}return{defs:n,content:e}}function E1(e,t){return e?"<defs>"+e+"</defs>"+t:t}function x1(e,t,n){const o=C1(e);return E1(o.defs,t+o.content+n)}const A1=e=>e==="unset"||e==="undefined"||e==="none";function O1(e,t){const n={..._l,...e},o={...Vd,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,o].forEach(w=>{const $=[],N=w.hFlip,Q=w.vFlip;let H=w.rotate;N?Q?H+=2:($.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),$.push("scale(-1 1)"),s.top=s.left=0):Q&&($.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),$.push("scale(1 -1)"),s.top=s.left=0);let B;switch(H<0&&(H-=Math.floor(H/4)*4),H=H%4,H){case 1:B=s.height/2+s.top,$.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:$.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:B=s.width/2+s.left,$.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}H%2===1&&(s.left!==s.top&&(B=s.left,s.left=s.top,s.top=B),s.width!==s.height&&(B=s.width,s.width=s.height,s.height=B)),$.length&&(a=x1(a,'<g transform="'+$.join(" ")+'">',"</g>"))});const u=o.width,c=o.height,h=s.width,p=s.height;let m,y;u===null?(y=c===null?"1em":c==="auto"?p:c,m=Gd(y,h/p)):(m=u==="auto"?h:u,y=c===null?Gd(m,p/h):c==="auto"?p:c);const _={},C=(w,$)=>{A1($)||(_[w]=$.toString())};C("width",m),C("height",y);const E=[s.left,s.top,h,p];return _.viewBox=E.join(" "),{attributes:_,viewBox:E,body:a}}const I1=/\sid="(\S+)"/g,P1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $1=0;function M1(e,t=P1){const n=[];let o;for(;o=I1.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const u=typeof t=="function"?t(a):t+($1++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+u+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const Sl=Object.create(null);function F1(e,t){Sl[e]=t}function Cl(e){return Sl[e]||Sl[""]}function El(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const xl=Object.create(null),Zi=["https://api.simplesvg.com","https://api.unisvg.com"],ns=[];for(;Zi.length>0;)Zi.length===1||Math.random()>.5?ns.push(Zi.shift()):ns.push(Zi.pop());xl[""]=El({resources:["https://api.iconify.design"].concat(ns)});function D1(e,t){const n=El(t);return n===null?!1:(xl[e]=n,!0)}function Al(e){return xl[e]}let Hd=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function k1(e,t){const n=Al(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(u=>{s=Math.max(s,u.length)});const a=t+".json?icons=";o=n.maxURL-s-n.path.length-a.length}return o}function N1(e){return e===404}const L1=(e,t,n)=>{const o=[],s=k1(e,t),a="icons";let u={type:a,provider:e,prefix:t,icons:[]},c=0;return n.forEach((h,p)=>{c+=h.length+1,c>=s&&p>0&&(o.push(u),u={type:a,provider:e,prefix:t,icons:[]},c=h.length),u.icons.push(h)}),o.push(u),o};function B1(e){if(typeof e=="string"){const t=Al(e);if(t)return t.path}return"/"}const z1={prepare:L1,send:(e,t,n)=>{if(!Hd){n("abort",424);return}let o=B1(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),h=new URLSearchParams({icons:c});o+=a+".json?"+h.toString();break}case"custom":{const a=t.uri;o+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let s=503;Hd(e+o).then(a=>{const u=a.status;if(u!==200){setTimeout(()=>{n(N1(u)?"abort":"next",u)});return}return s=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",s)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",s)})}};function U1(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,a)=>s.provider!==a.provider?s.provider.localeCompare(a.provider):s.prefix!==a.prefix?s.prefix.localeCompare(a.prefix):s.name.localeCompare(a.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const a=s.provider,u=s.prefix,c=s.name,h=n[a]||(n[a]=Object.create(null)),p=h[u]||(h[u]=oi(a,u));let m;c in p.icons?m=t.loaded:u===""||p.missing.has(c)?m=t.missing:m=t.pending;const y={provider:a,prefix:u,name:c};m.push(y)}),t}function Yd(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function j1(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(a=>{const u=a.icons,c=u.pending.length;u.pending=u.pending.filter(h=>{if(h.prefix!==s)return!0;const p=h.name;if(e.icons[p])u.loaded.push({provider:o,prefix:s,name:p});else if(e.missing.has(p))u.missing.push({provider:o,prefix:s,name:p});else return n=!0,!0;return!1}),u.pending.length!==c&&(n||Yd([e],a.id),a.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),a.abort))})}))}let W1=0;function V1(e,t,n){const o=W1++,s=Yd.bind(null,n,o);if(!t.pending.length)return s;const a={id:o,icons:t,callback:e,abort:s};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(a)}),s}function G1(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const a=typeof s=="string"?es(s,t,n):s;a&&o.push(a)}),o}var H1={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y1(e,t,n,o){const s=e.resources.length,a=e.random?Math.floor(Math.random()*s):e.index;let u;if(e.random){let k=e.resources.slice(0);for(u=[];k.length>1;){const G=Math.floor(Math.random()*k.length);u.push(k[G]),k=k.slice(0,G).concat(k.slice(G+1))}u=u.concat(k)}else u=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let h="pending",p=0,m,y=null,_=[],C=[];typeof o=="function"&&C.push(o);function E(){y&&(clearTimeout(y),y=null)}function w(){h==="pending"&&(h="aborted"),E(),_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function $(k,G){G&&(C=[]),typeof k=="function"&&C.push(k)}function N(){return{startTime:c,payload:t,status:h,queriesSent:p,queriesPending:_.length,subscribe:$,abort:w}}function Q(){h="failed",C.forEach(k=>{k(void 0,m)})}function H(){_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function B(k,G,ae){const ie=G!=="success";switch(_=_.filter(S=>S!==k),h){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(G==="abort"){m=ae,Q();return}if(ie){m=ae,_.length||(u.length?D():Q());return}if(E(),H(),!e.random){const S=e.resources.indexOf(k.resource);S!==-1&&S!==e.index&&(e.index=S)}h="completed",C.forEach(S=>{S(ae)})}function D(){if(h!=="pending")return;E();const k=u.shift();if(k===void 0){if(_.length){y=setTimeout(()=>{E(),h==="pending"&&(H(),Q())},e.timeout);return}Q();return}const G={status:"pending",resource:k,callback:(ae,ie)=>{B(G,ae,ie)}};_.push(G),p++,y=setTimeout(D,e.rotate),n(k,t,G.callback)}return setTimeout(D),N}function qd(e){const t={...H1,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,h,p){const m=Y1(t,c,h,(y,_)=>{o(),p&&p(y,_)});return n.push(m),m}function a(c){return n.find(h=>c(h))||null}return{query:s,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Kd(){}const Ol=Object.create(null);function q1(e){if(!Ol[e]){const t=Al(e);if(!t)return;const n=qd(t),o={config:t,redundancy:n};Ol[e]=o}return Ol[e]}function K1(e,t,n){let o,s;if(typeof e=="string"){const a=Cl(e);if(!a)return n(void 0,424),Kd;s=a.send;const u=q1(e);u&&(o=u.redundancy)}else{const a=El(e);if(a){o=qd(a);const u=e.resources?e.resources[0]:"",c=Cl(u);c&&(s=c.send)}}return!o||!s?(n(void 0,424),Kd):o.query(t,s,n)().abort}function Jd(){}function J1(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,j1(e)}))}function R1(e){const t=[],n=[];return e.forEach(o=>{(o.match(Ld)?t:n).push(o)}),{valid:t,invalid:n}}function Xi(e,t,n){function o(){const s=e.pendingIcons;t.forEach(a=>{s&&s.delete(a),e.icons[a]||e.missing.add(a)})}if(n&&typeof n=="object")try{if(!zd(e,n).length){o();return}}catch(s){console.error(s)}o(),J1(e)}function Rd(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Z1(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const a=e.loadIcon;if(e.loadIcons&&(s.length>1||!a)){Rd(e.loadIcons(s,o,n),m=>{Xi(e,s,m)});return}if(a){s.forEach(m=>{const y=a(m,o,n);Rd(y,_=>{const C=_?{prefix:o,icons:{[m]:_}}:null;Xi(e,[m],C)})});return}const{valid:u,invalid:c}=R1(s);if(c.length&&Xi(e,c,null),!u.length)return;const h=o.match(Ld)?Cl(n):null;if(!h){Xi(e,u,null);return}h.prepare(n,o,u).forEach(m=>{K1(n,m,y=>{Xi(e,m.icons,y)})})}))}const X1=(e,t)=>{const n=G1(e,!0,Ud()),o=U1(n);if(!o.pending.length){let h=!0;return t&&setTimeout(()=>{h&&t(o.loaded,o.missing,o.pending,Jd)}),()=>{h=!1}}const s=Object.create(null),a=[];let u,c;return o.pending.forEach(h=>{const{provider:p,prefix:m}=h;if(m===c&&p===u)return;u=p,c=m,a.push(oi(p,m));const y=s[p]||(s[p]=Object.create(null));y[m]||(y[m]=[])}),o.pending.forEach(h=>{const{provider:p,prefix:m,name:y}=h,_=oi(p,m),C=_.pendingIcons||(_.pendingIcons=new Set);C.has(y)||(C.add(y),s[p][m].push(y))}),a.forEach(h=>{const p=s[h.provider][h.prefix];p.length&&Z1(h,p)}),t?V1(t,o,a):Jd};function Q1(e,t){const n={...e};for(const o in t){const s=t[o],a=typeof s;o in Wd?(s===null||s&&(a==="string"||a==="number"))&&(n[o]=s):a===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const e_=/[\s,]+/;function t_(e,t){t.split(e_).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function n_(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/s,a%1===0?o(a):0)}}return t}function r_(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function i_(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function o_(e){return"data:image/svg+xml,"+i_(e)}function s_(e){return'url("'+o_(e)+'")'}let Qi;function a_(){try{Qi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Qi=null}}function l_(e){return Qi===void 0&&a_(),Qi?Qi.createHTML(e):e}const Zd={...Vd,inline:!1},u_={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},c_={display:"inline-block"},Il={backgroundColor:"currentColor"},Xd={backgroundColor:"transparent"},Qd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},eh={WebkitMask:Il,mask:Il,background:Xd};for(const e in eh){const t=eh[e];for(const n in Qd)t[e+n]=Qd[n]}const f_={...Zd,inline:!0};function th(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const d_=(e,t,n)=>{const o=t.inline?f_:Zd,s=Q1(o,t),a=t.mode||"svg",u={},c=t.style||{},h={...a==="svg"?u_:{}};if(n){const $=es(n,!1,!0);if($){const N=["iconify"],Q=["provider","prefix"];for(const H of Q)$[H]&&N.push("iconify--"+$[H]);h.className=N.join(" ")}}for(let $ in t){const N=t[$];if(N!==void 0)switch($){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":h.ref=N;break;case"className":h[$]=(h[$]?h[$]+" ":"")+N;break;case"inline":case"hFlip":case"vFlip":s[$]=N===!0||N==="true"||N===1;break;case"flip":typeof N=="string"&&t_(s,N);break;case"color":u.color=N;break;case"rotate":typeof N=="string"?s[$]=n_(N):typeof N=="number"&&(s[$]=N);break;case"ariaHidden":case"aria-hidden":N!==!0&&N!=="true"&&delete h["aria-hidden"];break;default:o[$]===void 0&&(h[$]=N)}}const p=O1(e,s),m=p.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),a==="svg"){h.style={...u,...c},Object.assign(h,m);let $=0,N=t.id;return typeof N=="string"&&(N=N.replace(/-/g,"_")),h.dangerouslySetInnerHTML={__html:l_(M1(p.body,N?()=>N+"ID"+$++:"iconifyReact"))},x.createElement("svg",h)}const{body:y,width:_,height:C}=e,E=a==="mask"||(a==="bg"?!1:y.indexOf("currentColor")!==-1),w=r_(y,{...m,width:_+"",height:C+""});return h.style={...u,"--svg":s_(w),width:th(m.width),height:th(m.height),...c_,...E?Il:Xd,...c},x.createElement("span",h)};if(Ud(!0),F1("",z1),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!T1(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;D1(n,s)||console.error(o)}catch{console.error(o)}}}}function nh(e){const[t,n]=x.useState(!!e.ssr),[o,s]=x.useState({});function a(C){if(C){const E=e.icon;if(typeof E=="object")return{name:"",data:E};const w=jd(E);if(w)return{name:E,data:w}}return{name:""}}const[u,c]=x.useState(a(!!e.ssr));function h(){const C=o.callback;C&&(C(),s({}))}function p(C){if(JSON.stringify(u)!==JSON.stringify(C))return h(),c(C),!0}function m(){var C;const E=e.icon;if(typeof E=="object"){p({name:"",data:E});return}const w=jd(E);if(p({name:E,data:w}))if(w===void 0){const $=X1([E],m);s({callback:$})}else w&&((C=e.onLoad)===null||C===void 0||C.call(e,E))}x.useEffect(()=>(n(!0),h),[]),x.useEffect(()=>{t&&m()},[e.icon,t]);const{name:y,data:_}=u;return _?d_({..._l,..._},e,y):e.children?e.children:e.fallback?e.fallback:x.createElement("span",{})}const Pl=x.forwardRef((e,t)=>nh({...e,_ref:t}));x.forwardRef((e,t)=>nh({inline:!0,...e,_ref:t}));function rh(e,{data:t,onChange:n}){return e?{checked:t||!1,onChange:o=>n(o.target.checked)}:{data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],value:ti(t)?String(t):null,onChange:o=>n(ti(o)?o===String(!0):void 0)}}function h_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wn=h_,p_=typeof Un=="object"&&Un&&Un.Object===Object&&Un,ih=p_,g_=ih,m_=typeof self=="object"&&self&&self.Object===Object&&self,y_=g_||m_||Function("return this")(),bn=y_,v_=bn,b_=function(){return v_.Date.now()},__=b_,T_=/\s/;function w_(e){for(var t=e.length;t--&&T_.test(e.charAt(t)););return t}var S_=w_,C_=S_,E_=/^\s+/;function x_(e){return e&&e.slice(0,C_(e)+1).replace(E_,"")}var A_=x_,O_=bn,I_=O_.Symbol,rs=I_,oh=rs,sh=Object.prototype,P_=sh.hasOwnProperty,$_=sh.toString,eo=oh?oh.toStringTag:void 0;function M_(e){var t=P_.call(e,eo),n=e[eo];try{e[eo]=void 0;var o=!0}catch{}var s=$_.call(e);return o&&(t?e[eo]=n:delete e[eo]),s}var F_=M_,D_=Object.prototype,k_=D_.toString;function N_(e){return k_.call(e)}var L_=N_,ah=rs,B_=F_,z_=L_,U_="[object Null]",j_="[object Undefined]",lh=ah?ah.toStringTag:void 0;function W_(e){return e==null?e===void 0?j_:U_:lh&&lh in Object(e)?B_(e):z_(e)}var si=W_;function V_(e){return e!=null&&typeof e=="object"}var ai=V_,G_=si,H_=ai,Y_="[object Symbol]";function q_(e){return typeof e=="symbol"||H_(e)&&G_(e)==Y_}var uh=q_,K_=A_,ch=Wn,J_=uh,fh=NaN,R_=/^[-+]0x[0-9a-f]+$/i,Z_=/^0b[01]+$/i,X_=/^0o[0-7]+$/i,Q_=parseInt;function eT(e){if(typeof e=="number")return e;if(J_(e))return fh;if(ch(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ch(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=K_(e);var n=Z_.test(e);return n||X_.test(e)?Q_(e.slice(2),n?2:8):R_.test(e)?fh:+e}var dh=eT,tT=Wn,$l=__,hh=dh,nT="Expected a function",rT=Math.max,iT=Math.min;function oT(e,t,n){var o,s,a,u,c,h,p=0,m=!1,y=!1,_=!0;if(typeof e!="function")throw new TypeError(nT);t=hh(t)||0,tT(n)&&(m=!!n.leading,y="maxWait"in n,a=y?rT(hh(n.maxWait)||0,t):a,_="trailing"in n?!!n.trailing:_);function C(k){var G=o,ae=s;return o=s=void 0,p=k,u=e.apply(ae,G),u}function E(k){return p=k,c=setTimeout(N,t),m?C(k):u}function w(k){var G=k-h,ae=k-p,ie=t-G;return y?iT(ie,a-ae):ie}function $(k){var G=k-h,ae=k-p;return h===void 0||G>=t||G<0||y&&ae>=a}function N(){var k=$l();if($(k))return Q(k);c=setTimeout(N,w(k))}function Q(k){return c=void 0,_&&o?C(k):(o=s=void 0,u)}function H(){c!==void 0&&clearTimeout(c),p=0,o=h=s=c=void 0}function B(){return c===void 0?u:Q($l())}function D(){var k=$l(),G=$(k);if(o=arguments,s=this,h=k,G){if(c===void 0)return E(h);if(y)return clearTimeout(c),c=setTimeout(N,t),C(h)}return c===void 0&&(c=setTimeout(N,t)),u}return D.cancel=H,D.flush=B,D}var sT=oT;const aT=ir(sT),lT=(e,t,n,o,s,a=300)=>{const[u,c]=x.useState(n??t);x.useEffect(()=>{c(n??t)},[n]);const h=x.useCallback(aT(y=>e(o,y),a),[e,o,a]),p=x.useCallback(y=>{const _=s(y);c(_??t),h(_)},[h,s]),m=x.useCallback(()=>{c(t),e(o,void 0)},[t,e,o]);return[u,p,m]};function lr(e,t){return e===t||Array.isArray(e)&&e.includes(t)}var uT=Object.prototype;function cT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uT;return e===n}var is=cT;function fT(e,t){return function(n){return e(t(n))}}var ph=fT,dT=ph,hT=dT(Object.keys,Object),pT=hT,gT=is,mT=pT,yT=Object.prototype,vT=yT.hasOwnProperty;function bT(e){if(!gT(e))return mT(e);var t=[];for(var n in Object(e))vT.call(e,n)&&n!="constructor"&&t.push(n);return t}var _T=bT,TT=si,wT=Wn,ST="[object AsyncFunction]",CT="[object Function]",ET="[object GeneratorFunction]",xT="[object Proxy]";function AT(e){if(!wT(e))return!1;var t=TT(e);return t==CT||t==ET||t==ST||t==xT}var Ml=AT,OT=bn,IT=OT["__core-js_shared__"],PT=IT,Fl=PT,gh=function(){var e=/[^.]+$/.exec(Fl&&Fl.keys&&Fl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $T(e){return!!gh&&gh in e}var MT=$T,FT=Function.prototype,DT=FT.toString;function kT(e){if(e!=null){try{return DT.call(e)}catch{}try{return e+""}catch{}}return""}var mh=kT,NT=Ml,LT=MT,BT=Wn,zT=mh,UT=/[\\^$.*+?()[\]{}|]/g,jT=/^\[object .+?Constructor\]$/,WT=Function.prototype,VT=Object.prototype,GT=WT.toString,HT=VT.hasOwnProperty,YT=RegExp("^"+GT.call(HT).replace(UT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qT(e){if(!BT(e)||LT(e))return!1;var t=NT(e)?YT:jT;return t.test(zT(e))}var KT=qT;function JT(e,t){return e==null?void 0:e[t]}var RT=JT,ZT=KT,XT=RT;function QT(e,t){var n=XT(e,t);return ZT(n)?n:void 0}var kr=QT,ew=kr,tw=bn,nw=ew(tw,"DataView"),rw=nw,iw=kr,ow=bn,sw=iw(ow,"Map"),Dl=sw,aw=kr,lw=bn,uw=aw(lw,"Promise"),cw=uw,fw=kr,dw=bn,hw=fw(dw,"Set"),yh=hw,pw=kr,gw=bn,mw=pw(gw,"WeakMap"),yw=mw,kl=rw,Nl=Dl,Ll=cw,Bl=yh,zl=yw,vh=si,li=mh,bh="[object Map]",vw="[object Object]",_h="[object Promise]",Th="[object Set]",wh="[object WeakMap]",Sh="[object DataView]",bw=li(kl),_w=li(Nl),Tw=li(Ll),ww=li(Bl),Sw=li(zl),Nr=vh;(kl&&Nr(new kl(new ArrayBuffer(1)))!=Sh||Nl&&Nr(new Nl)!=bh||Ll&&Nr(Ll.resolve())!=_h||Bl&&Nr(new Bl)!=Th||zl&&Nr(new zl)!=wh)&&(Nr=function(e){var t=vh(e),n=t==vw?e.constructor:void 0,o=n?li(n):"";if(o)switch(o){case bw:return Sh;case _w:return bh;case Tw:return _h;case ww:return Th;case Sw:return wh}return t});var Cw=Nr,Ew=si,xw=ai,Aw="[object Arguments]";function Ow(e){return xw(e)&&Ew(e)==Aw}var Iw=Ow,Ch=Iw,Pw=ai,Eh=Object.prototype,$w=Eh.hasOwnProperty,Mw=Eh.propertyIsEnumerable,Fw=Ch(function(){return arguments}())?Ch:function(e){return Pw(e)&&$w.call(e,"callee")&&!Mw.call(e,"callee")},os=Fw,Dw=Array.isArray,to=Dw,kw=9007199254740991;function Nw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kw}var xh=Nw,Lw=Ml,Bw=xh;function zw(e){return e!=null&&Bw(e.length)&&!Lw(e)}var ss=zw,as={exports:{}};function Uw(){return!1}var jw=Uw;as.exports,function(e,t){var n=bn,o=jw,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===s,c=u?n.Buffer:void 0,h=c?c.isBuffer:void 0,p=h||o;e.exports=p}(as,as.exports);var Ul=as.exports,Ww=si,Vw=xh,Gw=ai,Hw="[object Arguments]",Yw="[object Array]",qw="[object Boolean]",Kw="[object Date]",Jw="[object Error]",Rw="[object Function]",Zw="[object Map]",Xw="[object Number]",Qw="[object Object]",eS="[object RegExp]",tS="[object Set]",nS="[object String]",rS="[object WeakMap]",iS="[object ArrayBuffer]",oS="[object DataView]",sS="[object Float32Array]",aS="[object Float64Array]",lS="[object Int8Array]",uS="[object Int16Array]",cS="[object Int32Array]",fS="[object Uint8Array]",dS="[object Uint8ClampedArray]",hS="[object Uint16Array]",pS="[object Uint32Array]",Xe={};Xe[sS]=Xe[aS]=Xe[lS]=Xe[uS]=Xe[cS]=Xe[fS]=Xe[dS]=Xe[hS]=Xe[pS]=!0,Xe[Hw]=Xe[Yw]=Xe[iS]=Xe[qw]=Xe[oS]=Xe[Kw]=Xe[Jw]=Xe[Rw]=Xe[Zw]=Xe[Xw]=Xe[Qw]=Xe[eS]=Xe[tS]=Xe[nS]=Xe[rS]=!1;function gS(e){return Gw(e)&&Vw(e.length)&&!!Xe[Ww(e)]}var mS=gS;function yS(e){return function(t){return e(t)}}var vS=yS,ls={exports:{}};ls.exports,function(e,t){var n=ih,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a&&n.process,c=function(){try{var h=s&&s.require&&s.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();e.exports=c}(ls,ls.exports);var bS=ls.exports,_S=mS,TS=vS,Ah=bS,Oh=Ah&&Ah.isTypedArray,wS=Oh?TS(Oh):_S,jl=wS,SS=_T,CS=Cw,ES=os,xS=to,AS=ss,OS=Ul,IS=is,PS=jl,$S="[object Map]",MS="[object Set]",FS=Object.prototype,DS=FS.hasOwnProperty;function kS(e){if(e==null)return!0;if(AS(e)&&(xS(e)||typeof e=="string"||typeof e.splice=="function"||OS(e)||PS(e)||ES(e)))return!e.length;var t=CS(e);if(t==$S||t==MS)return!e.size;if(IS(e))return!SS(e).length;for(var n in e)if(DS.call(e,n))return!1;return!0}var NS=kS;const Ih=ir(NS),LS=(e,t,n,o,s,a,u)=>e.map((c,h)=>d.jsx(v.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"start"},children:d.jsx(De.JsonFormsDispatch,{uischema:c,schema:t,path:n,enabled:o,renderers:a,cells:u})},`${n}-${h}`)),BS=({elements:e,schema:t,path:n,enabled:o,direction:s,renderers:a,cells:u})=>Ih(e)?null:d.jsx(v.Grid,{spacing:s==="row"?2:0,children:LS(e,t,n,o,s,a,u)}),us=x.memo(BS);function Wl(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString()}function Ph(e){const t=new Date(e);return new Date(t.getTime()+t.getTimezoneOffset()*6e4)}function In(e={}){const t=v.useProps("__",{},{});let n=null;return lr(e.schema.type,"null")||(lr(e.schema.type,"array")?n=[]:lr(e.schema.type,"object")?n={}:lr(e.schema.type,"string")&&(n="")),{inputWrapperOrder:["label","input","description","error"],label:e.label,description:e.description,required:e.required,disabled:!e.enabled,onChange:o=>e.handleChange(e.path,o??(t.setNull?n:void 0)),error:e.errors?e.errors.split(`
|
|
125
|
+
`).map(o=>d.jsx("span",{style:{display:"block"},children:o},o)):void 0}}function _n(e,t,n,o){const{specialKey:s}=Ae(),a=v.useProps((s==null?void 0:s.all)||"all",{},{}),u=v.useProps(e,{},{}),c=v.useProps(t,{},{}),{component:h,props:p}=x.useMemo(()=>Bn(a,u,c),[u,a,c]);return[ft(h,{componentProps:n,jsonFormsProps:o}),{...n,...ft(p,{componentProps:n,jsonFormsProps:o})}]}function cs(e,t,{data:n,toggle:o,onChange:s}){const a=v.useMantineTheme(),u={valueFormat:e==="date"?"DD.MM.YYYY":t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",value:n?e==="date"||t?Ph(n):new Date(n):null,clearable:!0,onChange:c=>{c&&(e==="date"?c=Wl(c).split("T")[0]:t?c=Wl(c):c=c.toISOString()),s(c||void 0)}};return e!=="date"&&(u.placeholder=t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",u.rightSection=d.jsxs(v.Group,{gap:"0.25rem",wrap:"nowrap",children:[d.jsx(v.CloseButton,{variant:"transparent",size:"sm",onClick:()=>s(void 0),style:{visibility:n?void 0:"hidden"}}),d.jsx(v.CloseButton,{title:t?"UTC":"Local",variant:"subtle",size:"sm",onClick:()=>{o(),n&&s(void 0)},icon:d.jsx(Pl,{icon:"tabler:timezone",color:t?a.primaryColor:"gray"})})]}),u.rightSectionWidth="3.75rem"),u}function $h({data:e,onChange:t}){const[n,o]=x.useState(""),s=x.useMemo(()=>e?typeof e=="object"?JSON.stringify(e,null,2):e:"",[e]);return x.useEffect(()=>{o(s)},[s]),{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",formatOnBlur:!0,value:n,onBlur:()=>{if(!n){t(void 0);return}try{const a=JSON.parse(n);t(a)}catch{}},onChange:o}}function fs(e,t){return{data:x.useMemo(()=>t.oneOf?t.oneOf.map(o=>({value:o.const,label:o.title})):t.enum,[t.enum,t.oneOf]),value:e||null,searchable:!0}}function Mh(e,t,{onChange:n}){const o=fs(e,t);return{...o,value:o.value||[],onChange:s=>s.length?n(s):n(void 0)}}function Fh(e,{data:t,onChange:n}){return{value:t||"",allowDecimal:e==="number",hideControls:!0,onChange:o=>n(typeof o=="string"?o||void 0:o??void 0)}}function Dh({data:e,onChange:t}){return{value:e||"",onChange:n=>t(n.target.value||void 0)}}function Vl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=x.useMemo(()=>s.format==="checkbox",[s.format]),u=rh(a,{data:o,onChange:t.onChange}),c=x.useMemo(()=>({...t,...u}),[u,t]),[h,p]=_n("Boolean",n,c,e);return h===void 0?a?d.jsx(v.Checkbox,{...p}):d.jsx(v.Select,{...p}):h}function Gl(e){const t=In(e),{path:n,data:o}=e,s=cs("date",!0,{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Date",n,a,e);return u===void 0?d.jsx(Gi.DateInput,{...c}):u}function Hl(e){const t=In(e),{path:n,data:o}=e,s=cs("date-time",!1,{data:o,toggle:()=>null,onChange:t.onChange}),[,{initialUTC:a}]=_n("DateTime",n,{...t,...s},e),[u,{toggle:c}]=Ze.useDisclosure(a),{initialUTC:h,...p}=cs("date-time",u,{data:o,toggle:c,onChange:t.onChange}),m=x.useMemo(()=>({...t,...p}),[t,p]),[y,_]=_n("DateTime",n,m,e);return y===void 0?d.jsx(Gi.DateTimePicker,{..._}):y}function kh(e){const t=In(e),{path:n,data:o}=e,s=Mh(o,e.schema.items,{onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("EnumArray",n,a,e);return u===void 0?d.jsx(v.MultiSelect,{...c}):u}function Yl(e){const t=In(e),{path:n,data:o}=e,s=fs(o,e.schema),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Enum",n,a,e);return u===void 0?d.jsx(v.Select,{...c}):u}function Nh(e){const t=In(e),{path:n,data:o}=e,s=$h({data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Text",n,a,e);return u===void 0?d.jsx(v.JsonInput,{...c}):u}function no(e){const t=In(e),{path:n,data:o}=e,s=Fh("number",{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Number",n,a,e);return u===void 0?d.jsx(v.NumberInput,{...c}):u}var ds={exports:{}};/**
|
|
106
126
|
* @license
|
|
107
127
|
* Lodash <https://lodash.com/>
|
|
108
128
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
109
129
|
* Released under MIT license <https://lodash.com/license>
|
|
110
130
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
111
131
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
112
|
-
*/cs.exports,function(e,t){(function(){var n,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,b=2,C=4,E=1,T=2,$=1,N=2,J=4,Y=8,B=16,D=32,k=64,H=128,ae=256,ie=512,S=30,j="...",ne=800,fe=16,ye=1,Me=2,Te=3,Le=1/0,Ce=9007199254740991,gt=17976931348623157e292,q=NaN,L=4294967295,te=L-1,Z=L>>>1,X=[["ary",H],["bind",$],["bindKey",N],["curry",Y],["curryRight",B],["flip",ie],["partial",D],["partialRight",k],["rearg",ae]],ee="[object Arguments]",oe="[object Array]",ve="[object AsyncFunction]",be="[object Boolean]",he="[object Date]",Ee="[object DOMException]",et="[object Error]",Q="[object Function]",mt="[object GeneratorFunction]",Ke="[object Map]",Lt="[object Number]",fr="[object Null]",yt="[object Object]",ke="[object Promise]",Yn="[object Proxy]",dr="[object RegExp]",Wt="[object Set]",Br="[object String]",pr="[object Symbol]",Ur="[object Undefined]",an="[object WeakMap]",hr="[object WeakSet]",gr="[object ArrayBuffer]",qn="[object DataView]",Si="[object Float32Array]",jr="[object Float64Array]",Ci="[object Int8Array]",mr="[object Int16Array]",yr="[object Int32Array]",Jt="[object Uint8Array]",Fn="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Vr="[object Uint32Array]",Qu=/\b__p \+= '';/g,Ei=/\b(__p \+=) '' \+/g,xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Us=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,ec=RegExp(Us.source),tc=RegExp(vr.source),pt=/<%-([\s\S]+?)%>/g,br=/<%([\s\S]+?)%>/g,js=/<%=([\s\S]+?)%>/g,Ws=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/,Vs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ai=/[\\^$.*+?()[\]{}|]/g,nc=RegExp(Ai.source),Vt=/^\s+/,Oi=/\s/,Gs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Hs=/\{\n\/\* \[wrapped with (.+)\] \*/,bo=/,? & /,Ys=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tn=/[()=,{}\[\]\/\s]/,qs=/\\(\\)?/g,Rs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_o=/\w*$/,Ks=/^[-+]0x[0-9a-f]+$/i,rc=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,K=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,Tt=/['\n\r\u2028\u2029\\]/g,st="\\ud800-\\udfff",Pt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",Gr="\\u20d0-\\u20ff",St=Pt+ln+Gr,wo="\\u2700-\\u27bf",To="a-z\\xdf-\\xf6\\xf8-\\xff",JD="\\xac\\xb1\\xd7\\xf7",ZD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",XD="\\u2000-\\u206f",QD=" \\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",O0="A-Z\\xc0-\\xd6\\xd8-\\xde",I0="\\ufe0e\\ufe0f",P0=JD+ZD+XD+QD,ic="['’]",ek="["+st+"]",$0="["+P0+"]",Js="["+St+"]",M0="\\d+",tk="["+wo+"]",F0="["+To+"]",D0="[^"+st+P0+M0+wo+To+O0+"]",oc="\\ud83c[\\udffb-\\udfff]",nk="(?:"+Js+"|"+oc+")",k0="[^"+st+"]",sc="(?:\\ud83c[\\udde6-\\uddff]){2}",ac="[\\ud800-\\udbff][\\udc00-\\udfff]",Ii="["+O0+"]",N0="\\u200d",L0="(?:"+F0+"|"+D0+")",rk="(?:"+Ii+"|"+D0+")",z0="(?:"+ic+"(?:d|ll|m|re|s|t|ve))?",B0="(?:"+ic+"(?:D|LL|M|RE|S|T|VE))?",U0=nk+"?",j0="["+I0+"]?",ik="(?:"+N0+"(?:"+[k0,sc,ac].join("|")+")"+j0+U0+")*",ok="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",W0=j0+U0+ik,ak="(?:"+[tk,sc,ac].join("|")+")"+W0,lk="(?:"+[k0+Js+"?",Js,sc,ac,ek].join("|")+")",uk=RegExp(ic,"g"),ck=RegExp(Js,"g"),lc=RegExp(oc+"(?="+oc+")|"+lk+W0,"g"),fk=RegExp([Ii+"?"+F0+"+"+z0+"(?="+[$0,Ii,"$"].join("|")+")",rk+"+"+B0+"(?="+[$0,Ii+L0,"$"].join("|")+")",Ii+"?"+L0+"+"+z0,Ii+"+"+B0,sk,ok,M0,ak].join("|"),"g"),dk=RegExp("["+N0+st+St+I0+"]"),pk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gk=-1,Xe={};Xe[Si]=Xe[jr]=Xe[Ci]=Xe[mr]=Xe[yr]=Xe[Jt]=Xe[Fn]=Xe[Wr]=Xe[Vr]=!0,Xe[ee]=Xe[oe]=Xe[gr]=Xe[be]=Xe[qn]=Xe[he]=Xe[et]=Xe[Q]=Xe[Ke]=Xe[Lt]=Xe[yt]=Xe[dr]=Xe[Wt]=Xe[Br]=Xe[an]=!1;var Je={};Je[ee]=Je[oe]=Je[gr]=Je[qn]=Je[be]=Je[he]=Je[Si]=Je[jr]=Je[Ci]=Je[mr]=Je[yr]=Je[Ke]=Je[Lt]=Je[yt]=Je[dr]=Je[Wt]=Je[Br]=Je[pr]=Je[Jt]=Je[Fn]=Je[Wr]=Je[Vr]=!0,Je[et]=Je[Q]=Je[an]=!1;var mk={À:"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"},yk={"&":"&","<":"<",">":">",'"':""","'":"'"},vk={"&":"&","<":"<",">":">",""":'"',"'":"'"},bk={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_k=parseFloat,wk=parseInt,V0=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Tk=typeof self=="object"&&self&&self.Object===Object&&self,xt=V0||Tk||Function("return this")(),uc=t&&!t.nodeType&&t,Hr=uc&&!0&&e&&!e.nodeType&&e,G0=Hr&&Hr.exports===uc,cc=G0&&V0.process,un=function(){try{var M=Hr&&Hr.require&&Hr.require("util").types;return M||cc&&cc.binding&&cc.binding("util")}catch{}}(),H0=un&&un.isArrayBuffer,Y0=un&&un.isDate,q0=un&&un.isMap,R0=un&&un.isRegExp,K0=un&&un.isSet,J0=un&&un.isTypedArray;function Zt(M,W,z){switch(z.length){case 0:return M.call(W);case 1:return M.call(W,z[0]);case 2:return M.call(W,z[0],z[1]);case 3:return M.call(W,z[0],z[1],z[2])}return M.apply(W,z)}function Sk(M,W,z,se){for(var _e=-1,ze=M==null?0:M.length;++_e<ze;){var vt=M[_e];W(se,vt,z(vt),M)}return se}function cn(M,W){for(var z=-1,se=M==null?0:M.length;++z<se&&W(M[z],z,M)!==!1;);return M}function Ck(M,W){for(var z=M==null?0:M.length;z--&&W(M[z],z,M)!==!1;);return M}function Z0(M,W){for(var z=-1,se=M==null?0:M.length;++z<se;)if(!W(M[z],z,M))return!1;return!0}function _r(M,W){for(var z=-1,se=M==null?0:M.length,_e=0,ze=[];++z<se;){var vt=M[z];W(vt,z,M)&&(ze[_e++]=vt)}return ze}function Zs(M,W){var z=M==null?0:M.length;return!!z&&Pi(M,W,0)>-1}function fc(M,W,z){for(var se=-1,_e=M==null?0:M.length;++se<_e;)if(z(W,M[se]))return!0;return!1}function tt(M,W){for(var z=-1,se=M==null?0:M.length,_e=Array(se);++z<se;)_e[z]=W(M[z],z,M);return _e}function wr(M,W){for(var z=-1,se=W.length,_e=M.length;++z<se;)M[_e+z]=W[z];return M}function dc(M,W,z,se){var _e=-1,ze=M==null?0:M.length;for(se&&ze&&(z=M[++_e]);++_e<ze;)z=W(z,M[_e],_e,M);return z}function Ek(M,W,z,se){var _e=M==null?0:M.length;for(se&&_e&&(z=M[--_e]);_e--;)z=W(z,M[_e],_e,M);return z}function pc(M,W){for(var z=-1,se=M==null?0:M.length;++z<se;)if(W(M[z],z,M))return!0;return!1}var xk=hc("length");function Ak(M){return M.split("")}function Ok(M){return M.match(Ys)||[]}function X0(M,W,z){var se;return z(M,function(_e,ze,vt){if(W(_e,ze,vt))return se=ze,!1}),se}function Xs(M,W,z,se){for(var _e=M.length,ze=z+(se?1:-1);se?ze--:++ze<_e;)if(W(M[ze],ze,M))return ze;return-1}function Pi(M,W,z){return W===W?Uk(M,W,z):Xs(M,Q0,z)}function Ik(M,W,z,se){for(var _e=z-1,ze=M.length;++_e<ze;)if(se(M[_e],W))return _e;return-1}function Q0(M){return M!==M}function ey(M,W){var z=M==null?0:M.length;return z?mc(M,W)/z:q}function hc(M){return function(W){return W==null?n:W[M]}}function gc(M){return function(W){return M==null?n:M[W]}}function ty(M,W,z,se,_e){return _e(M,function(ze,vt,Re){z=se?(se=!1,ze):W(z,ze,vt,Re)}),z}function Pk(M,W){var z=M.length;for(M.sort(W);z--;)M[z]=M[z].value;return M}function mc(M,W){for(var z,se=-1,_e=M.length;++se<_e;){var ze=W(M[se]);ze!==n&&(z=z===n?ze:z+ze)}return z}function yc(M,W){for(var z=-1,se=Array(M);++z<M;)se[z]=W(z);return se}function $k(M,W){return tt(W,function(z){return[z,M[z]]})}function ny(M){return M&&M.slice(0,sy(M)+1).replace(Vt,"")}function Xt(M){return function(W){return M(W)}}function vc(M,W){return tt(W,function(z){return M[z]})}function So(M,W){return M.has(W)}function ry(M,W){for(var z=-1,se=M.length;++z<se&&Pi(W,M[z],0)>-1;);return z}function iy(M,W){for(var z=M.length;z--&&Pi(W,M[z],0)>-1;);return z}function Mk(M,W){for(var z=M.length,se=0;z--;)M[z]===W&&++se;return se}var Fk=gc(mk),Dk=gc(yk);function kk(M){return"\\"+bk[M]}function Nk(M,W){return M==null?n:M[W]}function $i(M){return dk.test(M)}function Lk(M){return pk.test(M)}function zk(M){for(var W,z=[];!(W=M.next()).done;)z.push(W.value);return z}function bc(M){var W=-1,z=Array(M.size);return M.forEach(function(se,_e){z[++W]=[_e,se]}),z}function oy(M,W){return function(z){return M(W(z))}}function Tr(M,W){for(var z=-1,se=M.length,_e=0,ze=[];++z<se;){var vt=M[z];(vt===W||vt===y)&&(M[z]=y,ze[_e++]=z)}return ze}function Qs(M){var W=-1,z=Array(M.size);return M.forEach(function(se){z[++W]=se}),z}function Bk(M){var W=-1,z=Array(M.size);return M.forEach(function(se){z[++W]=[se,se]}),z}function Uk(M,W,z){for(var se=z-1,_e=M.length;++se<_e;)if(M[se]===W)return se;return-1}function jk(M,W,z){for(var se=z+1;se--;)if(M[se]===W)return se;return se}function Mi(M){return $i(M)?Vk(M):xk(M)}function Sn(M){return $i(M)?Gk(M):Ak(M)}function sy(M){for(var W=M.length;W--&&Oi.test(M.charAt(W)););return W}var Wk=gc(vk);function Vk(M){for(var W=lc.lastIndex=0;lc.test(M);)++W;return W}function Gk(M){return M.match(lc)||[]}function Hk(M){return M.match(fk)||[]}var Yk=function M(W){W=W==null?xt:Fi.defaults(xt.Object(),W,Fi.pick(xt,hk));var z=W.Array,se=W.Date,_e=W.Error,ze=W.Function,vt=W.Math,Re=W.Object,_c=W.RegExp,qk=W.String,fn=W.TypeError,ea=z.prototype,Rk=ze.prototype,Di=Re.prototype,ta=W["__core-js_shared__"],na=Rk.toString,Ve=Di.hasOwnProperty,Kk=0,ay=function(){var r=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ra=Di.toString,Jk=na.call(Re),Zk=xt._,Xk=_c("^"+na.call(Ve).replace(Ai,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ia=G0?W.Buffer:n,Sr=W.Symbol,oa=W.Uint8Array,ly=ia?ia.allocUnsafe:n,sa=oy(Re.getPrototypeOf,Re),uy=Re.create,cy=Di.propertyIsEnumerable,aa=ea.splice,fy=Sr?Sr.isConcatSpreadable:n,Co=Sr?Sr.iterator:n,Yr=Sr?Sr.toStringTag:n,la=function(){try{var r=Zr(Re,"defineProperty");return r({},"",{}),r}catch{}}(),Qk=W.clearTimeout!==xt.clearTimeout&&W.clearTimeout,eN=se&&se.now!==xt.Date.now&&se.now,tN=W.setTimeout!==xt.setTimeout&&W.setTimeout,ua=vt.ceil,ca=vt.floor,wc=Re.getOwnPropertySymbols,nN=ia?ia.isBuffer:n,dy=W.isFinite,rN=ea.join,iN=oy(Re.keys,Re),bt=vt.max,$t=vt.min,oN=se.now,sN=W.parseInt,py=vt.random,aN=ea.reverse,Tc=Zr(W,"DataView"),Eo=Zr(W,"Map"),Sc=Zr(W,"Promise"),ki=Zr(W,"Set"),xo=Zr(W,"WeakMap"),Ao=Zr(Re,"create"),fa=xo&&new xo,Ni={},lN=Xr(Tc),uN=Xr(Eo),cN=Xr(Sc),fN=Xr(ki),dN=Xr(xo),da=Sr?Sr.prototype:n,Oo=da?da.valueOf:n,hy=da?da.toString:n;function v(r){if(at(r)&&!we(r)&&!(r instanceof $e)){if(r instanceof dn)return r;if(Ve.call(r,"__wrapped__"))return gv(r)}return new dn(r)}var Li=function(){function r(){}return function(i){if(!rt(i))return{};if(uy)return uy(i);r.prototype=i;var l=new r;return r.prototype=n,l}}();function pa(){}function dn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}v.templateSettings={escape:pt,evaluate:br,interpolate:js,variable:"",imports:{_:v}},v.prototype=pa.prototype,v.prototype.constructor=v,dn.prototype=Li(pa.prototype),dn.prototype.constructor=dn;function $e(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function pN(){var r=new $e(this.__wrapped__);return r.__actions__=Gt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Gt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Gt(this.__views__),r}function hN(){if(this.__filtered__){var r=new $e(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function gN(){var r=this.__wrapped__.value(),i=this.__dir__,l=we(r),f=i<0,g=l?r.length:0,_=AL(0,g,this.__views__),x=_.start,O=_.end,F=O-x,V=f?O:x-1,G=this.__iteratees__,R=G.length,re=0,ce=$t(F,this.__takeCount__);if(!l||!f&&g==F&&ce==F)return zy(r,this.__actions__);var ge=[];e:for(;F--&&re<ce;){V+=i;for(var xe=-1,me=r[V];++xe<R;){var Pe=G[xe],Fe=Pe.iteratee,tn=Pe.type,Ut=Fe(me);if(tn==Me)me=Ut;else if(!Ut){if(tn==ye)continue e;break e}}ge[re++]=me}return ge}$e.prototype=Li(pa.prototype),$e.prototype.constructor=$e;function qr(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function mN(){this.__data__=Ao?Ao(null):{},this.size=0}function yN(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function vN(r){var i=this.__data__;if(Ao){var l=i[r];return l===d?n:l}return Ve.call(i,r)?i[r]:n}function bN(r){var i=this.__data__;return Ao?i[r]!==n:Ve.call(i,r)}function _N(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Ao&&i===n?d:i,this}qr.prototype.clear=mN,qr.prototype.delete=yN,qr.prototype.get=vN,qr.prototype.has=bN,qr.prototype.set=_N;function Rn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function wN(){this.__data__=[],this.size=0}function TN(r){var i=this.__data__,l=ha(i,r);if(l<0)return!1;var f=i.length-1;return l==f?i.pop():aa.call(i,l,1),--this.size,!0}function SN(r){var i=this.__data__,l=ha(i,r);return l<0?n:i[l][1]}function CN(r){return ha(this.__data__,r)>-1}function EN(r,i){var l=this.__data__,f=ha(l,r);return f<0?(++this.size,l.push([r,i])):l[f][1]=i,this}Rn.prototype.clear=wN,Rn.prototype.delete=TN,Rn.prototype.get=SN,Rn.prototype.has=CN,Rn.prototype.set=EN;function Kn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function xN(){this.size=0,this.__data__={hash:new qr,map:new(Eo||Rn),string:new qr}}function AN(r){var i=xa(this,r).delete(r);return this.size-=i?1:0,i}function ON(r){return xa(this,r).get(r)}function IN(r){return xa(this,r).has(r)}function PN(r,i){var l=xa(this,r),f=l.size;return l.set(r,i),this.size+=l.size==f?0:1,this}Kn.prototype.clear=xN,Kn.prototype.delete=AN,Kn.prototype.get=ON,Kn.prototype.has=IN,Kn.prototype.set=PN;function Rr(r){var i=-1,l=r==null?0:r.length;for(this.__data__=new Kn;++i<l;)this.add(r[i])}function $N(r){return this.__data__.set(r,d),this}function MN(r){return this.__data__.has(r)}Rr.prototype.add=Rr.prototype.push=$N,Rr.prototype.has=MN;function Cn(r){var i=this.__data__=new Rn(r);this.size=i.size}function FN(){this.__data__=new Rn,this.size=0}function DN(r){var i=this.__data__,l=i.delete(r);return this.size=i.size,l}function kN(r){return this.__data__.get(r)}function NN(r){return this.__data__.has(r)}function LN(r,i){var l=this.__data__;if(l instanceof Rn){var f=l.__data__;if(!Eo||f.length<s-1)return f.push([r,i]),this.size=++l.size,this;l=this.__data__=new Kn(f)}return l.set(r,i),this.size=l.size,this}Cn.prototype.clear=FN,Cn.prototype.delete=DN,Cn.prototype.get=kN,Cn.prototype.has=NN,Cn.prototype.set=LN;function gy(r,i){var l=we(r),f=!l&&Qr(r),g=!l&&!f&&Or(r),_=!l&&!f&&!g&&ji(r),x=l||f||g||_,O=x?yc(r.length,qk):[],F=O.length;for(var V in r)(i||Ve.call(r,V))&&!(x&&(V=="length"||g&&(V=="offset"||V=="parent")||_&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Qn(V,F)))&&O.push(V);return O}function my(r){var i=r.length;return i?r[Dc(0,i-1)]:n}function zN(r,i){return Aa(Gt(r),Kr(i,0,r.length))}function BN(r){return Aa(Gt(r))}function Cc(r,i,l){(l!==n&&!En(r[i],l)||l===n&&!(i in r))&&Jn(r,i,l)}function Io(r,i,l){var f=r[i];(!(Ve.call(r,i)&&En(f,l))||l===n&&!(i in r))&&Jn(r,i,l)}function ha(r,i){for(var l=r.length;l--;)if(En(r[l][0],i))return l;return-1}function UN(r,i,l,f){return Cr(r,function(g,_,x){i(f,g,l(g),x)}),f}function yy(r,i){return r&&kn(i,Ct(i),r)}function jN(r,i){return r&&kn(i,Yt(i),r)}function Jn(r,i,l){i=="__proto__"&&la?la(r,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[i]=l}function Ec(r,i){for(var l=-1,f=i.length,g=z(f),_=r==null;++l<f;)g[l]=_?n:sf(r,i[l]);return g}function Kr(r,i,l){return r===r&&(l!==n&&(r=r<=l?r:l),i!==n&&(r=r>=i?r:i)),r}function pn(r,i,l,f,g,_){var x,O=i&m,F=i&b,V=i&C;if(l&&(x=g?l(r,f,g,_):l(r)),x!==n)return x;if(!rt(r))return r;var G=we(r);if(G){if(x=IL(r),!O)return Gt(r,x)}else{var R=Mt(r),re=R==Q||R==mt;if(Or(r))return jy(r,O);if(R==yt||R==ee||re&&!g){if(x=F||re?{}:sv(r),!O)return F?vL(r,jN(x,r)):yL(r,yy(x,r))}else{if(!Je[R])return g?r:{};x=PL(r,R,O)}}_||(_=new Cn);var ce=_.get(r);if(ce)return ce;_.set(r,x),kv(r)?r.forEach(function(me){x.add(pn(me,i,l,me,r,_))}):Fv(r)&&r.forEach(function(me,Pe){x.set(Pe,pn(me,i,l,Pe,r,_))});var ge=V?F?Hc:Gc:F?Yt:Ct,xe=G?n:ge(r);return cn(xe||r,function(me,Pe){xe&&(Pe=me,me=r[Pe]),Io(x,Pe,pn(me,i,l,Pe,r,_))}),x}function WN(r){var i=Ct(r);return function(l){return vy(l,r,i)}}function vy(r,i,l){var f=l.length;if(r==null)return!f;for(r=Re(r);f--;){var g=l[f],_=i[g],x=r[g];if(x===n&&!(g in r)||!_(x))return!1}return!0}function by(r,i,l){if(typeof r!="function")throw new fn(u);return No(function(){r.apply(n,l)},i)}function Po(r,i,l,f){var g=-1,_=Zs,x=!0,O=r.length,F=[],V=i.length;if(!O)return F;l&&(i=tt(i,Xt(l))),f?(_=fc,x=!1):i.length>=s&&(_=So,x=!1,i=new Rr(i));e:for(;++g<O;){var G=r[g],R=l==null?G:l(G);if(G=f||G!==0?G:0,x&&R===R){for(var re=V;re--;)if(i[re]===R)continue e;F.push(G)}else _(i,R,f)||F.push(G)}return F}var Cr=Yy(Dn),_y=Yy(Ac,!0);function VN(r,i){var l=!0;return Cr(r,function(f,g,_){return l=!!i(f,g,_),l}),l}function ga(r,i,l){for(var f=-1,g=r.length;++f<g;){var _=r[f],x=i(_);if(x!=null&&(O===n?x===x&&!en(x):l(x,O)))var O=x,F=_}return F}function GN(r,i,l,f){var g=r.length;for(l=Se(l),l<0&&(l=-l>g?0:g+l),f=f===n||f>g?g:Se(f),f<0&&(f+=g),f=l>f?0:Lv(f);l<f;)r[l++]=i;return r}function wy(r,i){var l=[];return Cr(r,function(f,g,_){i(f,g,_)&&l.push(f)}),l}function At(r,i,l,f,g){var _=-1,x=r.length;for(l||(l=ML),g||(g=[]);++_<x;){var O=r[_];i>0&&l(O)?i>1?At(O,i-1,l,f,g):wr(g,O):f||(g[g.length]=O)}return g}var xc=qy(),Ty=qy(!0);function Dn(r,i){return r&&xc(r,i,Ct)}function Ac(r,i){return r&&Ty(r,i,Ct)}function ma(r,i){return _r(i,function(l){return er(r[l])})}function Jr(r,i){i=xr(i,r);for(var l=0,f=i.length;r!=null&&l<f;)r=r[Nn(i[l++])];return l&&l==f?r:n}function Sy(r,i,l){var f=i(r);return we(r)?f:wr(f,l(r))}function zt(r){return r==null?r===n?Ur:fr:Yr&&Yr in Re(r)?xL(r):BL(r)}function Oc(r,i){return r>i}function HN(r,i){return r!=null&&Ve.call(r,i)}function YN(r,i){return r!=null&&i in Re(r)}function qN(r,i,l){return r>=$t(i,l)&&r<bt(i,l)}function Ic(r,i,l){for(var f=l?fc:Zs,g=r[0].length,_=r.length,x=_,O=z(_),F=1/0,V=[];x--;){var G=r[x];x&&i&&(G=tt(G,Xt(i))),F=$t(G.length,F),O[x]=!l&&(i||g>=120&&G.length>=120)?new Rr(x&&G):n}G=r[0];var R=-1,re=O[0];e:for(;++R<g&&V.length<F;){var ce=G[R],ge=i?i(ce):ce;if(ce=l||ce!==0?ce:0,!(re?So(re,ge):f(V,ge,l))){for(x=_;--x;){var xe=O[x];if(!(xe?So(xe,ge):f(r[x],ge,l)))continue e}re&&re.push(ge),V.push(ce)}}return V}function RN(r,i,l,f){return Dn(r,function(g,_,x){i(f,l(g),_,x)}),f}function $o(r,i,l){i=xr(i,r),r=cv(r,i);var f=r==null?r:r[Nn(gn(i))];return f==null?n:Zt(f,r,l)}function Cy(r){return at(r)&&zt(r)==ee}function KN(r){return at(r)&&zt(r)==gr}function JN(r){return at(r)&&zt(r)==he}function Mo(r,i,l,f,g){return r===i?!0:r==null||i==null||!at(r)&&!at(i)?r!==r&&i!==i:ZN(r,i,l,f,Mo,g)}function ZN(r,i,l,f,g,_){var x=we(r),O=we(i),F=x?oe:Mt(r),V=O?oe:Mt(i);F=F==ee?yt:F,V=V==ee?yt:V;var G=F==yt,R=V==yt,re=F==V;if(re&&Or(r)){if(!Or(i))return!1;x=!0,G=!1}if(re&&!G)return _||(_=new Cn),x||ji(r)?rv(r,i,l,f,g,_):CL(r,i,F,l,f,g,_);if(!(l&E)){var ce=G&&Ve.call(r,"__wrapped__"),ge=R&&Ve.call(i,"__wrapped__");if(ce||ge){var xe=ce?r.value():r,me=ge?i.value():i;return _||(_=new Cn),g(xe,me,l,f,_)}}return re?(_||(_=new Cn),EL(r,i,l,f,g,_)):!1}function XN(r){return at(r)&&Mt(r)==Ke}function Pc(r,i,l,f){var g=l.length,_=g,x=!f;if(r==null)return!_;for(r=Re(r);g--;){var O=l[g];if(x&&O[2]?O[1]!==r[O[0]]:!(O[0]in r))return!1}for(;++g<_;){O=l[g];var F=O[0],V=r[F],G=O[1];if(x&&O[2]){if(V===n&&!(F in r))return!1}else{var R=new Cn;if(f)var re=f(V,G,F,r,i,R);if(!(re===n?Mo(G,V,E|T,f,R):re))return!1}}return!0}function Ey(r){if(!rt(r)||DL(r))return!1;var i=er(r)?Xk:de;return i.test(Xr(r))}function QN(r){return at(r)&&zt(r)==dr}function eL(r){return at(r)&&Mt(r)==Wt}function tL(r){return at(r)&&Fa(r.length)&&!!Xe[zt(r)]}function xy(r){return typeof r=="function"?r:r==null?qt:typeof r=="object"?we(r)?Iy(r[0],r[1]):Oy(r):Rv(r)}function $c(r){if(!ko(r))return iN(r);var i=[];for(var l in Re(r))Ve.call(r,l)&&l!="constructor"&&i.push(l);return i}function nL(r){if(!rt(r))return zL(r);var i=ko(r),l=[];for(var f in r)f=="constructor"&&(i||!Ve.call(r,f))||l.push(f);return l}function Mc(r,i){return r<i}function Ay(r,i){var l=-1,f=Ht(r)?z(r.length):[];return Cr(r,function(g,_,x){f[++l]=i(g,_,x)}),f}function Oy(r){var i=qc(r);return i.length==1&&i[0][2]?lv(i[0][0],i[0][1]):function(l){return l===r||Pc(l,r,i)}}function Iy(r,i){return Kc(r)&&av(i)?lv(Nn(r),i):function(l){var f=sf(l,r);return f===n&&f===i?af(l,r):Mo(i,f,E|T)}}function ya(r,i,l,f,g){r!==i&&xc(i,function(_,x){if(g||(g=new Cn),rt(_))rL(r,i,x,l,ya,f,g);else{var O=f?f(Zc(r,x),_,x+"",r,i,g):n;O===n&&(O=_),Cc(r,x,O)}},Yt)}function rL(r,i,l,f,g,_,x){var O=Zc(r,l),F=Zc(i,l),V=x.get(F);if(V){Cc(r,l,V);return}var G=_?_(O,F,l+"",r,i,x):n,R=G===n;if(R){var re=we(F),ce=!re&&Or(F),ge=!re&&!ce&&ji(F);G=F,re||ce||ge?we(O)?G=O:ct(O)?G=Gt(O):ce?(R=!1,G=jy(F,!0)):ge?(R=!1,G=Wy(F,!0)):G=[]:Lo(F)||Qr(F)?(G=O,Qr(O)?G=zv(O):(!rt(O)||er(O))&&(G=sv(F))):R=!1}R&&(x.set(F,G),g(G,F,f,_,x),x.delete(F)),Cc(r,l,G)}function Py(r,i){var l=r.length;if(l)return i+=i<0?l:0,Qn(i,l)?r[i]:n}function $y(r,i,l){i.length?i=tt(i,function(_){return we(_)?function(x){return Jr(x,_.length===1?_[0]:_)}:_}):i=[qt];var f=-1;i=tt(i,Xt(pe()));var g=Ay(r,function(_,x,O){var F=tt(i,function(V){return V(_)});return{criteria:F,index:++f,value:_}});return Pk(g,function(_,x){return mL(_,x,l)})}function iL(r,i){return My(r,i,function(l,f){return af(r,f)})}function My(r,i,l){for(var f=-1,g=i.length,_={};++f<g;){var x=i[f],O=Jr(r,x);l(O,x)&&Fo(_,xr(x,r),O)}return _}function oL(r){return function(i){return Jr(i,r)}}function Fc(r,i,l,f){var g=f?Ik:Pi,_=-1,x=i.length,O=r;for(r===i&&(i=Gt(i)),l&&(O=tt(r,Xt(l)));++_<x;)for(var F=0,V=i[_],G=l?l(V):V;(F=g(O,G,F,f))>-1;)O!==r&&aa.call(O,F,1),aa.call(r,F,1);return r}function Fy(r,i){for(var l=r?i.length:0,f=l-1;l--;){var g=i[l];if(l==f||g!==_){var _=g;Qn(g)?aa.call(r,g,1):Lc(r,g)}}return r}function Dc(r,i){return r+ca(py()*(i-r+1))}function sL(r,i,l,f){for(var g=-1,_=bt(ua((i-r)/(l||1)),0),x=z(_);_--;)x[f?_:++g]=r,r+=l;return x}function kc(r,i){var l="";if(!r||i<1||i>Ce)return l;do i%2&&(l+=r),i=ca(i/2),i&&(r+=r);while(i);return l}function Ae(r,i){return Xc(uv(r,i,qt),r+"")}function aL(r){return my(Wi(r))}function lL(r,i){var l=Wi(r);return Aa(l,Kr(i,0,l.length))}function Fo(r,i,l,f){if(!rt(r))return r;i=xr(i,r);for(var g=-1,_=i.length,x=_-1,O=r;O!=null&&++g<_;){var F=Nn(i[g]),V=l;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(g!=x){var G=O[F];V=f?f(G,F,O):n,V===n&&(V=rt(G)?G:Qn(i[g+1])?[]:{})}Io(O,F,V),O=O[F]}return r}var Dy=fa?function(r,i){return fa.set(r,i),r}:qt,uL=la?function(r,i){return la(r,"toString",{configurable:!0,enumerable:!1,value:uf(i),writable:!0})}:qt;function cL(r){return Aa(Wi(r))}function hn(r,i,l){var f=-1,g=r.length;i<0&&(i=-i>g?0:g+i),l=l>g?g:l,l<0&&(l+=g),g=i>l?0:l-i>>>0,i>>>=0;for(var _=z(g);++f<g;)_[f]=r[f+i];return _}function fL(r,i){var l;return Cr(r,function(f,g,_){return l=i(f,g,_),!l}),!!l}function va(r,i,l){var f=0,g=r==null?f:r.length;if(typeof i=="number"&&i===i&&g<=Z){for(;f<g;){var _=f+g>>>1,x=r[_];x!==null&&!en(x)&&(l?x<=i:x<i)?f=_+1:g=_}return g}return Nc(r,i,qt,l)}function Nc(r,i,l,f){var g=0,_=r==null?0:r.length;if(_===0)return 0;i=l(i);for(var x=i!==i,O=i===null,F=en(i),V=i===n;g<_;){var G=ca((g+_)/2),R=l(r[G]),re=R!==n,ce=R===null,ge=R===R,xe=en(R);if(x)var me=f||ge;else V?me=ge&&(f||re):O?me=ge&&re&&(f||!ce):F?me=ge&&re&&!ce&&(f||!xe):ce||xe?me=!1:me=f?R<=i:R<i;me?g=G+1:_=G}return $t(_,te)}function ky(r,i){for(var l=-1,f=r.length,g=0,_=[];++l<f;){var x=r[l],O=i?i(x):x;if(!l||!En(O,F)){var F=O;_[g++]=x===0?0:x}}return _}function Ny(r){return typeof r=="number"?r:en(r)?q:+r}function Qt(r){if(typeof r=="string")return r;if(we(r))return tt(r,Qt)+"";if(en(r))return hy?hy.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function Er(r,i,l){var f=-1,g=Zs,_=r.length,x=!0,O=[],F=O;if(l)x=!1,g=fc;else if(_>=s){var V=i?null:TL(r);if(V)return Qs(V);x=!1,g=So,F=new Rr}else F=i?[]:O;e:for(;++f<_;){var G=r[f],R=i?i(G):G;if(G=l||G!==0?G:0,x&&R===R){for(var re=F.length;re--;)if(F[re]===R)continue e;i&&F.push(R),O.push(G)}else g(F,R,l)||(F!==O&&F.push(R),O.push(G))}return O}function Lc(r,i){return i=xr(i,r),r=cv(r,i),r==null||delete r[Nn(gn(i))]}function Ly(r,i,l,f){return Fo(r,i,l(Jr(r,i)),f)}function ba(r,i,l,f){for(var g=r.length,_=f?g:-1;(f?_--:++_<g)&&i(r[_],_,r););return l?hn(r,f?0:_,f?_+1:g):hn(r,f?_+1:0,f?g:_)}function zy(r,i){var l=r;return l instanceof $e&&(l=l.value()),dc(i,function(f,g){return g.func.apply(g.thisArg,wr([f],g.args))},l)}function zc(r,i,l){var f=r.length;if(f<2)return f?Er(r[0]):[];for(var g=-1,_=z(f);++g<f;)for(var x=r[g],O=-1;++O<f;)O!=g&&(_[g]=Po(_[g]||x,r[O],i,l));return Er(At(_,1),i,l)}function By(r,i,l){for(var f=-1,g=r.length,_=i.length,x={};++f<g;){var O=f<_?i[f]:n;l(x,r[f],O)}return x}function Bc(r){return ct(r)?r:[]}function Uc(r){return typeof r=="function"?r:qt}function xr(r,i){return we(r)?r:Kc(r,i)?[r]:hv(je(r))}var dL=Ae;function Ar(r,i,l){var f=r.length;return l=l===n?f:l,!i&&l>=f?r:hn(r,i,l)}var Uy=Qk||function(r){return xt.clearTimeout(r)};function jy(r,i){if(i)return r.slice();var l=r.length,f=ly?ly(l):new r.constructor(l);return r.copy(f),f}function jc(r){var i=new r.constructor(r.byteLength);return new oa(i).set(new oa(r)),i}function pL(r,i){var l=i?jc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function hL(r){var i=new r.constructor(r.source,_o.exec(r));return i.lastIndex=r.lastIndex,i}function gL(r){return Oo?Re(Oo.call(r)):{}}function Wy(r,i){var l=i?jc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function Vy(r,i){if(r!==i){var l=r!==n,f=r===null,g=r===r,_=en(r),x=i!==n,O=i===null,F=i===i,V=en(i);if(!O&&!V&&!_&&r>i||_&&x&&F&&!O&&!V||f&&x&&F||!l&&F||!g)return 1;if(!f&&!_&&!V&&r<i||V&&l&&g&&!f&&!_||O&&l&&g||!x&&g||!F)return-1}return 0}function mL(r,i,l){for(var f=-1,g=r.criteria,_=i.criteria,x=g.length,O=l.length;++f<x;){var F=Vy(g[f],_[f]);if(F){if(f>=O)return F;var V=l[f];return F*(V=="desc"?-1:1)}}return r.index-i.index}function Gy(r,i,l,f){for(var g=-1,_=r.length,x=l.length,O=-1,F=i.length,V=bt(_-x,0),G=z(F+V),R=!f;++O<F;)G[O]=i[O];for(;++g<x;)(R||g<_)&&(G[l[g]]=r[g]);for(;V--;)G[O++]=r[g++];return G}function Hy(r,i,l,f){for(var g=-1,_=r.length,x=-1,O=l.length,F=-1,V=i.length,G=bt(_-O,0),R=z(G+V),re=!f;++g<G;)R[g]=r[g];for(var ce=g;++F<V;)R[ce+F]=i[F];for(;++x<O;)(re||g<_)&&(R[ce+l[x]]=r[g++]);return R}function Gt(r,i){var l=-1,f=r.length;for(i||(i=z(f));++l<f;)i[l]=r[l];return i}function kn(r,i,l,f){var g=!l;l||(l={});for(var _=-1,x=i.length;++_<x;){var O=i[_],F=f?f(l[O],r[O],O,l,r):n;F===n&&(F=r[O]),g?Jn(l,O,F):Io(l,O,F)}return l}function yL(r,i){return kn(r,Rc(r),i)}function vL(r,i){return kn(r,iv(r),i)}function _a(r,i){return function(l,f){var g=we(l)?Sk:UN,_=i?i():{};return g(l,r,pe(f,2),_)}}function zi(r){return Ae(function(i,l){var f=-1,g=l.length,_=g>1?l[g-1]:n,x=g>2?l[2]:n;for(_=r.length>3&&typeof _=="function"?(g--,_):n,x&&Bt(l[0],l[1],x)&&(_=g<3?n:_,g=1),i=Re(i);++f<g;){var O=l[f];O&&r(i,O,f,_)}return i})}function Yy(r,i){return function(l,f){if(l==null)return l;if(!Ht(l))return r(l,f);for(var g=l.length,_=i?g:-1,x=Re(l);(i?_--:++_<g)&&f(x[_],_,x)!==!1;);return l}}function qy(r){return function(i,l,f){for(var g=-1,_=Re(i),x=f(i),O=x.length;O--;){var F=x[r?O:++g];if(l(_[F],F,_)===!1)break}return i}}function bL(r,i,l){var f=i&$,g=Do(r);function _(){var x=this&&this!==xt&&this instanceof _?g:r;return x.apply(f?l:this,arguments)}return _}function Ry(r){return function(i){i=je(i);var l=$i(i)?Sn(i):n,f=l?l[0]:i.charAt(0),g=l?Ar(l,1).join(""):i.slice(1);return f[r]()+g}}function Bi(r){return function(i){return dc(Yv(Hv(i).replace(uk,"")),r,"")}}function Do(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var l=Li(r.prototype),f=r.apply(l,i);return rt(f)?f:l}}function _L(r,i,l){var f=Do(r);function g(){for(var _=arguments.length,x=z(_),O=_,F=Ui(g);O--;)x[O]=arguments[O];var V=_<3&&x[0]!==F&&x[_-1]!==F?[]:Tr(x,F);if(_-=V.length,_<l)return Qy(r,i,wa,g.placeholder,n,x,V,n,n,l-_);var G=this&&this!==xt&&this instanceof g?f:r;return Zt(G,this,x)}return g}function Ky(r){return function(i,l,f){var g=Re(i);if(!Ht(i)){var _=pe(l,3);i=Ct(i),l=function(O){return _(g[O],O,g)}}var x=r(i,l,f);return x>-1?g[_?i[x]:x]:n}}function Jy(r){return Xn(function(i){var l=i.length,f=l,g=dn.prototype.thru;for(r&&i.reverse();f--;){var _=i[f];if(typeof _!="function")throw new fn(u);if(g&&!x&&Ea(_)=="wrapper")var x=new dn([],!0)}for(f=x?f:l;++f<l;){_=i[f];var O=Ea(_),F=O=="wrapper"?Yc(_):n;F&&Jc(F[0])&&F[1]==(H|Y|D|ae)&&!F[4].length&&F[9]==1?x=x[Ea(F[0])].apply(x,F[3]):x=_.length==1&&Jc(_)?x[O]():x.thru(_)}return function(){var V=arguments,G=V[0];if(x&&V.length==1&&we(G))return x.plant(G).value();for(var R=0,re=l?i[R].apply(this,V):G;++R<l;)re=i[R].call(this,re);return re}})}function wa(r,i,l,f,g,_,x,O,F,V){var G=i&H,R=i&$,re=i&N,ce=i&(Y|B),ge=i&ie,xe=re?n:Do(r);function me(){for(var Pe=arguments.length,Fe=z(Pe),tn=Pe;tn--;)Fe[tn]=arguments[tn];if(ce)var Ut=Ui(me),nn=Mk(Fe,Ut);if(f&&(Fe=Gy(Fe,f,g,ce)),_&&(Fe=Hy(Fe,_,x,ce)),Pe-=nn,ce&&Pe<V){var ft=Tr(Fe,Ut);return Qy(r,i,wa,me.placeholder,l,Fe,ft,O,F,V-Pe)}var xn=R?l:this,nr=re?xn[r]:r;return Pe=Fe.length,O?Fe=UL(Fe,O):ge&&Pe>1&&Fe.reverse(),G&&F<Pe&&(Fe.length=F),this&&this!==xt&&this instanceof me&&(nr=xe||Do(nr)),nr.apply(xn,Fe)}return me}function Zy(r,i){return function(l,f){return RN(l,r,i(f),{})}}function Ta(r,i){return function(l,f){var g;if(l===n&&f===n)return i;if(l!==n&&(g=l),f!==n){if(g===n)return f;typeof l=="string"||typeof f=="string"?(l=Qt(l),f=Qt(f)):(l=Ny(l),f=Ny(f)),g=r(l,f)}return g}}function Wc(r){return Xn(function(i){return i=tt(i,Xt(pe())),Ae(function(l){var f=this;return r(i,function(g){return Zt(g,f,l)})})})}function Sa(r,i){i=i===n?" ":Qt(i);var l=i.length;if(l<2)return l?kc(i,r):i;var f=kc(i,ua(r/Mi(i)));return $i(i)?Ar(Sn(f),0,r).join(""):f.slice(0,r)}function wL(r,i,l,f){var g=i&$,_=Do(r);function x(){for(var O=-1,F=arguments.length,V=-1,G=f.length,R=z(G+F),re=this&&this!==xt&&this instanceof x?_:r;++V<G;)R[V]=f[V];for(;F--;)R[V++]=arguments[++O];return Zt(re,g?l:this,R)}return x}function Xy(r){return function(i,l,f){return f&&typeof f!="number"&&Bt(i,l,f)&&(l=f=n),i=tr(i),l===n?(l=i,i=0):l=tr(l),f=f===n?i<l?1:-1:tr(f),sL(i,l,f,r)}}function Ca(r){return function(i,l){return typeof i=="string"&&typeof l=="string"||(i=mn(i),l=mn(l)),r(i,l)}}function Qy(r,i,l,f,g,_,x,O,F,V){var G=i&Y,R=G?x:n,re=G?n:x,ce=G?_:n,ge=G?n:_;i|=G?D:k,i&=~(G?k:D),i&J||(i&=-4);var xe=[r,i,g,ce,R,ge,re,O,F,V],me=l.apply(n,xe);return Jc(r)&&fv(me,xe),me.placeholder=f,dv(me,r,i)}function Vc(r){var i=vt[r];return function(l,f){if(l=mn(l),f=f==null?0:$t(Se(f),292),f&&dy(l)){var g=(je(l)+"e").split("e"),_=i(g[0]+"e"+(+g[1]+f));return g=(je(_)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return i(l)}}var TL=ki&&1/Qs(new ki([,-0]))[1]==Le?function(r){return new ki(r)}:df;function ev(r){return function(i){var l=Mt(i);return l==Ke?bc(i):l==Wt?Bk(i):$k(i,r(i))}}function Zn(r,i,l,f,g,_,x,O){var F=i&N;if(!F&&typeof r!="function")throw new fn(u);var V=f?f.length:0;if(V||(i&=-97,f=g=n),x=x===n?x:bt(Se(x),0),O=O===n?O:Se(O),V-=g?g.length:0,i&k){var G=f,R=g;f=g=n}var re=F?n:Yc(r),ce=[r,i,l,f,g,G,R,_,x,O];if(re&&LL(ce,re),r=ce[0],i=ce[1],l=ce[2],f=ce[3],g=ce[4],O=ce[9]=ce[9]===n?F?0:r.length:bt(ce[9]-V,0),!O&&i&(Y|B)&&(i&=-25),!i||i==$)var ge=bL(r,i,l);else i==Y||i==B?ge=_L(r,i,O):(i==D||i==($|D))&&!g.length?ge=wL(r,i,l,f):ge=wa.apply(n,ce);var xe=re?Dy:fv;return dv(xe(ge,ce),r,i)}function tv(r,i,l,f){return r===n||En(r,Di[l])&&!Ve.call(f,l)?i:r}function nv(r,i,l,f,g,_){return rt(r)&&rt(i)&&(_.set(i,r),ya(r,i,n,nv,_),_.delete(i)),r}function SL(r){return Lo(r)?n:r}function rv(r,i,l,f,g,_){var x=l&E,O=r.length,F=i.length;if(O!=F&&!(x&&F>O))return!1;var V=_.get(r),G=_.get(i);if(V&&G)return V==i&&G==r;var R=-1,re=!0,ce=l&T?new Rr:n;for(_.set(r,i),_.set(i,r);++R<O;){var ge=r[R],xe=i[R];if(f)var me=x?f(xe,ge,R,i,r,_):f(ge,xe,R,r,i,_);if(me!==n){if(me)continue;re=!1;break}if(ce){if(!pc(i,function(Pe,Fe){if(!So(ce,Fe)&&(ge===Pe||g(ge,Pe,l,f,_)))return ce.push(Fe)})){re=!1;break}}else if(!(ge===xe||g(ge,xe,l,f,_))){re=!1;break}}return _.delete(r),_.delete(i),re}function CL(r,i,l,f,g,_,x){switch(l){case qn:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case gr:return!(r.byteLength!=i.byteLength||!_(new oa(r),new oa(i)));case be:case he:case Lt:return En(+r,+i);case et:return r.name==i.name&&r.message==i.message;case dr:case Br:return r==i+"";case Ke:var O=bc;case Wt:var F=f&E;if(O||(O=Qs),r.size!=i.size&&!F)return!1;var V=x.get(r);if(V)return V==i;f|=T,x.set(r,i);var G=rv(O(r),O(i),f,g,_,x);return x.delete(r),G;case pr:if(Oo)return Oo.call(r)==Oo.call(i)}return!1}function EL(r,i,l,f,g,_){var x=l&E,O=Gc(r),F=O.length,V=Gc(i),G=V.length;if(F!=G&&!x)return!1;for(var R=F;R--;){var re=O[R];if(!(x?re in i:Ve.call(i,re)))return!1}var ce=_.get(r),ge=_.get(i);if(ce&&ge)return ce==i&&ge==r;var xe=!0;_.set(r,i),_.set(i,r);for(var me=x;++R<F;){re=O[R];var Pe=r[re],Fe=i[re];if(f)var tn=x?f(Fe,Pe,re,i,r,_):f(Pe,Fe,re,r,i,_);if(!(tn===n?Pe===Fe||g(Pe,Fe,l,f,_):tn)){xe=!1;break}me||(me=re=="constructor")}if(xe&&!me){var Ut=r.constructor,nn=i.constructor;Ut!=nn&&"constructor"in r&&"constructor"in i&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof nn=="function"&&nn instanceof nn)&&(xe=!1)}return _.delete(r),_.delete(i),xe}function Xn(r){return Xc(uv(r,n,vv),r+"")}function Gc(r){return Sy(r,Ct,Rc)}function Hc(r){return Sy(r,Yt,iv)}var Yc=fa?function(r){return fa.get(r)}:df;function Ea(r){for(var i=r.name+"",l=Ni[i],f=Ve.call(Ni,i)?l.length:0;f--;){var g=l[f],_=g.func;if(_==null||_==r)return g.name}return i}function Ui(r){var i=Ve.call(v,"placeholder")?v:r;return i.placeholder}function pe(){var r=v.iteratee||cf;return r=r===cf?xy:r,arguments.length?r(arguments[0],arguments[1]):r}function xa(r,i){var l=r.__data__;return FL(i)?l[typeof i=="string"?"string":"hash"]:l.map}function qc(r){for(var i=Ct(r),l=i.length;l--;){var f=i[l],g=r[f];i[l]=[f,g,av(g)]}return i}function Zr(r,i){var l=Nk(r,i);return Ey(l)?l:n}function xL(r){var i=Ve.call(r,Yr),l=r[Yr];try{r[Yr]=n;var f=!0}catch{}var g=ra.call(r);return f&&(i?r[Yr]=l:delete r[Yr]),g}var Rc=wc?function(r){return r==null?[]:(r=Re(r),_r(wc(r),function(i){return cy.call(r,i)}))}:pf,iv=wc?function(r){for(var i=[];r;)wr(i,Rc(r)),r=sa(r);return i}:pf,Mt=zt;(Tc&&Mt(new Tc(new ArrayBuffer(1)))!=qn||Eo&&Mt(new Eo)!=Ke||Sc&&Mt(Sc.resolve())!=ke||ki&&Mt(new ki)!=Wt||xo&&Mt(new xo)!=an)&&(Mt=function(r){var i=zt(r),l=i==yt?r.constructor:n,f=l?Xr(l):"";if(f)switch(f){case lN:return qn;case uN:return Ke;case cN:return ke;case fN:return Wt;case dN:return an}return i});function AL(r,i,l){for(var f=-1,g=l.length;++f<g;){var _=l[f],x=_.size;switch(_.type){case"drop":r+=x;break;case"dropRight":i-=x;break;case"take":i=$t(i,r+x);break;case"takeRight":r=bt(r,i-x);break}}return{start:r,end:i}}function OL(r){var i=r.match(Hs);return i?i[1].split(bo):[]}function ov(r,i,l){i=xr(i,r);for(var f=-1,g=i.length,_=!1;++f<g;){var x=Nn(i[f]);if(!(_=r!=null&&l(r,x)))break;r=r[x]}return _||++f!=g?_:(g=r==null?0:r.length,!!g&&Fa(g)&&Qn(x,g)&&(we(r)||Qr(r)))}function IL(r){var i=r.length,l=new r.constructor(i);return i&&typeof r[0]=="string"&&Ve.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function sv(r){return typeof r.constructor=="function"&&!ko(r)?Li(sa(r)):{}}function PL(r,i,l){var f=r.constructor;switch(i){case gr:return jc(r);case be:case he:return new f(+r);case qn:return pL(r,l);case Si:case jr:case Ci:case mr:case yr:case Jt:case Fn:case Wr:case Vr:return Wy(r,l);case Ke:return new f;case Lt:case Br:return new f(r);case dr:return hL(r);case Wt:return new f;case pr:return gL(r)}}function $L(r,i){var l=i.length;if(!l)return r;var f=l-1;return i[f]=(l>1?"& ":"")+i[f],i=i.join(l>2?", ":" "),r.replace(Gs,`{
|
|
132
|
+
*/ds.exports,function(e,t){(function(){var n,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,m="__lodash_placeholder__",y=1,_=2,C=4,E=1,w=2,$=1,N=2,Q=4,H=8,B=16,D=32,k=64,G=128,ae=256,ie=512,S=30,U="...",ne=800,fe=16,ye=1,Me=2,we=3,Le=1/0,Ie=9007199254740991,lt=17976931348623157e292,q=NaN,K=4294967295,Z=K-1,R=K>>>1,Y=[["ary",G],["bind",$],["bindKey",N],["curry",H],["curryRight",B],["flip",ie],["partial",D],["partialRight",k],["rearg",ae]],ee="[object Arguments]",oe="[object Array]",ve="[object AsyncFunction]",be="[object Boolean]",pe="[object Date]",Ce="[object DOMException]",tt="[object Error]",te="[object Function]",yt="[object GeneratorFunction]",Je="[object Map]",Lt="[object Number]",dr="[object Null]",vt="[object Object]",ke="[object Promise]",Yn="[object Proxy]",hr="[object RegExp]",Wt="[object Set]",Ur="[object String]",pr="[object Symbol]",jr="[object Undefined]",an="[object WeakMap]",gr="[object WeakSet]",mr="[object ArrayBuffer]",qn="[object DataView]",Ci="[object Float32Array]",Wr="[object Float64Array]",Ei="[object Int8Array]",yr="[object Int16Array]",vr="[object Int32Array]",Rt="[object Uint8Array]",Fn="[object Uint8ClampedArray]",Vr="[object Uint16Array]",Gr="[object Uint32Array]",oc=/\b__p \+= '';/g,xi=/\b(__p \+=) '' \+/g,Ai=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ws=/&(?:amp|lt|gt|quot|#39);/g,br=/[&<>"']/g,sc=RegExp(Ws.source),ac=RegExp(br.source),gt=/<%-([\s\S]+?)%>/g,_r=/<%([\s\S]+?)%>/g,Vs=/<%=([\s\S]+?)%>/g,Gs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_o=/^\w*$/,Hs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oi=/[\\^$.*+?()[\]{}|]/g,lc=RegExp(Oi.source),Vt=/^\s+/,Ii=/\s/,Ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qs=/\{\n\/\* \[wrapped with (.+)\] \*/,To=/,? & /,Ks=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Js=/\\(\\)?/g,Rs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wo=/\w*$/,Zs=/^[-+]0x[0-9a-f]+$/i,uc=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,X=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,St=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",Pt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",Hr="\\u20d0-\\u20ff",Ct=Pt+ln+Hr,So="\\u2700-\\u27bf",Co="a-z\\xdf-\\xf6\\xf8-\\xff",ik="\\xac\\xb1\\xd7\\xf7",ok="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sk="\\u2000-\\u206f",ak=" \\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",k0="A-Z\\xc0-\\xd6\\xd8-\\xde",N0="\\ufe0e\\ufe0f",L0=ik+ok+sk+ak,cc="['’]",lk="["+ut+"]",B0="["+L0+"]",Xs="["+Ct+"]",z0="\\d+",uk="["+So+"]",U0="["+Co+"]",j0="[^"+ut+L0+z0+So+Co+k0+"]",fc="\\ud83c[\\udffb-\\udfff]",ck="(?:"+Xs+"|"+fc+")",W0="[^"+ut+"]",dc="(?:\\ud83c[\\udde6-\\uddff]){2}",hc="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+k0+"]",V0="\\u200d",G0="(?:"+U0+"|"+j0+")",fk="(?:"+Pi+"|"+j0+")",H0="(?:"+cc+"(?:d|ll|m|re|s|t|ve))?",Y0="(?:"+cc+"(?:D|LL|M|RE|S|T|VE))?",q0=ck+"?",K0="["+N0+"]?",dk="(?:"+V0+"(?:"+[W0,dc,hc].join("|")+")"+K0+q0+")*",hk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J0=K0+q0+dk,gk="(?:"+[uk,dc,hc].join("|")+")"+J0,mk="(?:"+[W0+Xs+"?",Xs,dc,hc,lk].join("|")+")",yk=RegExp(cc,"g"),vk=RegExp(Xs,"g"),pc=RegExp(fc+"(?="+fc+")|"+mk+J0,"g"),bk=RegExp([Pi+"?"+U0+"+"+H0+"(?="+[B0,Pi,"$"].join("|")+")",fk+"+"+Y0+"(?="+[B0,Pi+G0,"$"].join("|")+")",Pi+"?"+G0+"+"+H0,Pi+"+"+Y0,pk,hk,z0,gk].join("|"),"g"),_k=RegExp("["+V0+ut+Ct+N0+"]"),Tk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sk=-1,Qe={};Qe[Ci]=Qe[Wr]=Qe[Ei]=Qe[yr]=Qe[vr]=Qe[Rt]=Qe[Fn]=Qe[Vr]=Qe[Gr]=!0,Qe[ee]=Qe[oe]=Qe[mr]=Qe[be]=Qe[qn]=Qe[pe]=Qe[tt]=Qe[te]=Qe[Je]=Qe[Lt]=Qe[vt]=Qe[hr]=Qe[Wt]=Qe[Ur]=Qe[an]=!1;var Re={};Re[ee]=Re[oe]=Re[mr]=Re[qn]=Re[be]=Re[pe]=Re[Ci]=Re[Wr]=Re[Ei]=Re[yr]=Re[vr]=Re[Je]=Re[Lt]=Re[vt]=Re[hr]=Re[Wt]=Re[Ur]=Re[pr]=Re[Rt]=Re[Fn]=Re[Vr]=Re[Gr]=!0,Re[tt]=Re[te]=Re[an]=!1;var Ck={À:"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"},Ek={"&":"&","<":"<",">":">",'"':""","'":"'"},xk={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ak={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ok=parseFloat,Ik=parseInt,R0=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Pk=typeof self=="object"&&self&&self.Object===Object&&self,At=R0||Pk||Function("return this")(),gc=t&&!t.nodeType&&t,Yr=gc&&!0&&e&&!e.nodeType&&e,Z0=Yr&&Yr.exports===gc,mc=Z0&&R0.process,un=function(){try{var M=Yr&&Yr.require&&Yr.require("util").types;return M||mc&&mc.binding&&mc.binding("util")}catch{}}(),X0=un&&un.isArrayBuffer,Q0=un&&un.isDate,ey=un&&un.isMap,ty=un&&un.isRegExp,ny=un&&un.isSet,ry=un&&un.isTypedArray;function Zt(M,j,L){switch(L.length){case 0:return M.call(j);case 1:return M.call(j,L[0]);case 2:return M.call(j,L[0],L[1]);case 3:return M.call(j,L[0],L[1],L[2])}return M.apply(j,L)}function $k(M,j,L,se){for(var _e=-1,Be=M==null?0:M.length;++_e<Be;){var bt=M[_e];j(se,bt,L(bt),M)}return se}function cn(M,j){for(var L=-1,se=M==null?0:M.length;++L<se&&j(M[L],L,M)!==!1;);return M}function Mk(M,j){for(var L=M==null?0:M.length;L--&&j(M[L],L,M)!==!1;);return M}function iy(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(!j(M[L],L,M))return!1;return!0}function Tr(M,j){for(var L=-1,se=M==null?0:M.length,_e=0,Be=[];++L<se;){var bt=M[L];j(bt,L,M)&&(Be[_e++]=bt)}return Be}function Qs(M,j){var L=M==null?0:M.length;return!!L&&$i(M,j,0)>-1}function yc(M,j,L){for(var se=-1,_e=M==null?0:M.length;++se<_e;)if(L(j,M[se]))return!0;return!1}function nt(M,j){for(var L=-1,se=M==null?0:M.length,_e=Array(se);++L<se;)_e[L]=j(M[L],L,M);return _e}function wr(M,j){for(var L=-1,se=j.length,_e=M.length;++L<se;)M[_e+L]=j[L];return M}function vc(M,j,L,se){var _e=-1,Be=M==null?0:M.length;for(se&&Be&&(L=M[++_e]);++_e<Be;)L=j(L,M[_e],_e,M);return L}function Fk(M,j,L,se){var _e=M==null?0:M.length;for(se&&_e&&(L=M[--_e]);_e--;)L=j(L,M[_e],_e,M);return L}function bc(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(j(M[L],L,M))return!0;return!1}var Dk=_c("length");function kk(M){return M.split("")}function Nk(M){return M.match(Ks)||[]}function oy(M,j,L){var se;return L(M,function(_e,Be,bt){if(j(_e,Be,bt))return se=Be,!1}),se}function ea(M,j,L,se){for(var _e=M.length,Be=L+(se?1:-1);se?Be--:++Be<_e;)if(j(M[Be],Be,M))return Be;return-1}function $i(M,j,L){return j===j?Kk(M,j,L):ea(M,sy,L)}function Lk(M,j,L,se){for(var _e=L-1,Be=M.length;++_e<Be;)if(se(M[_e],j))return _e;return-1}function sy(M){return M!==M}function ay(M,j){var L=M==null?0:M.length;return L?wc(M,j)/L:q}function _c(M){return function(j){return j==null?n:j[M]}}function Tc(M){return function(j){return M==null?n:M[j]}}function ly(M,j,L,se,_e){return _e(M,function(Be,bt,Ke){L=se?(se=!1,Be):j(L,Be,bt,Ke)}),L}function Bk(M,j){var L=M.length;for(M.sort(j);L--;)M[L]=M[L].value;return M}function wc(M,j){for(var L,se=-1,_e=M.length;++se<_e;){var Be=j(M[se]);Be!==n&&(L=L===n?Be:L+Be)}return L}function Sc(M,j){for(var L=-1,se=Array(M);++L<M;)se[L]=j(L);return se}function zk(M,j){return nt(j,function(L){return[L,M[L]]})}function uy(M){return M&&M.slice(0,hy(M)+1).replace(Vt,"")}function Xt(M){return function(j){return M(j)}}function Cc(M,j){return nt(j,function(L){return M[L]})}function Eo(M,j){return M.has(j)}function cy(M,j){for(var L=-1,se=M.length;++L<se&&$i(j,M[L],0)>-1;);return L}function fy(M,j){for(var L=M.length;L--&&$i(j,M[L],0)>-1;);return L}function Uk(M,j){for(var L=M.length,se=0;L--;)M[L]===j&&++se;return se}var jk=Tc(Ck),Wk=Tc(Ek);function Vk(M){return"\\"+Ak[M]}function Gk(M,j){return M==null?n:M[j]}function Mi(M){return _k.test(M)}function Hk(M){return Tk.test(M)}function Yk(M){for(var j,L=[];!(j=M.next()).done;)L.push(j.value);return L}function Ec(M){var j=-1,L=Array(M.size);return M.forEach(function(se,_e){L[++j]=[_e,se]}),L}function dy(M,j){return function(L){return M(j(L))}}function Sr(M,j){for(var L=-1,se=M.length,_e=0,Be=[];++L<se;){var bt=M[L];(bt===j||bt===m)&&(M[L]=m,Be[_e++]=L)}return Be}function ta(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=se}),L}function qk(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=[se,se]}),L}function Kk(M,j,L){for(var se=L-1,_e=M.length;++se<_e;)if(M[se]===j)return se;return-1}function Jk(M,j,L){for(var se=L+1;se--;)if(M[se]===j)return se;return se}function Fi(M){return Mi(M)?Zk(M):Dk(M)}function Sn(M){return Mi(M)?Xk(M):kk(M)}function hy(M){for(var j=M.length;j--&&Ii.test(M.charAt(j)););return j}var Rk=Tc(xk);function Zk(M){for(var j=pc.lastIndex=0;pc.test(M);)++j;return j}function Xk(M){return M.match(pc)||[]}function Qk(M){return M.match(bk)||[]}var eN=function M(j){j=j==null?At:Di.defaults(At.Object(),j,Di.pick(At,wk));var L=j.Array,se=j.Date,_e=j.Error,Be=j.Function,bt=j.Math,Ke=j.Object,xc=j.RegExp,tN=j.String,fn=j.TypeError,na=L.prototype,nN=Be.prototype,ki=Ke.prototype,ra=j["__core-js_shared__"],ia=nN.toString,Ve=ki.hasOwnProperty,rN=0,py=function(){var r=/[^.]+$/.exec(ra&&ra.keys&&ra.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),oa=ki.toString,iN=ia.call(Ke),oN=At._,sN=xc("^"+ia.call(Ve).replace(Oi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sa=Z0?j.Buffer:n,Cr=j.Symbol,aa=j.Uint8Array,gy=sa?sa.allocUnsafe:n,la=dy(Ke.getPrototypeOf,Ke),my=Ke.create,yy=ki.propertyIsEnumerable,ua=na.splice,vy=Cr?Cr.isConcatSpreadable:n,xo=Cr?Cr.iterator:n,qr=Cr?Cr.toStringTag:n,ca=function(){try{var r=Xr(Ke,"defineProperty");return r({},"",{}),r}catch{}}(),aN=j.clearTimeout!==At.clearTimeout&&j.clearTimeout,lN=se&&se.now!==At.Date.now&&se.now,uN=j.setTimeout!==At.setTimeout&&j.setTimeout,fa=bt.ceil,da=bt.floor,Ac=Ke.getOwnPropertySymbols,cN=sa?sa.isBuffer:n,by=j.isFinite,fN=na.join,dN=dy(Ke.keys,Ke),_t=bt.max,$t=bt.min,hN=se.now,pN=j.parseInt,_y=bt.random,gN=na.reverse,Oc=Xr(j,"DataView"),Ao=Xr(j,"Map"),Ic=Xr(j,"Promise"),Ni=Xr(j,"Set"),Oo=Xr(j,"WeakMap"),Io=Xr(Ke,"create"),ha=Oo&&new Oo,Li={},mN=Qr(Oc),yN=Qr(Ao),vN=Qr(Ic),bN=Qr(Ni),_N=Qr(Oo),pa=Cr?Cr.prototype:n,Po=pa?pa.valueOf:n,Ty=pa?pa.toString:n;function b(r){if(ct(r)&&!Te(r)&&!(r instanceof $e)){if(r instanceof dn)return r;if(Ve.call(r,"__wrapped__"))return wv(r)}return new dn(r)}var Bi=function(){function r(){}return function(i){if(!rt(i))return{};if(my)return my(i);r.prototype=i;var l=new r;return r.prototype=n,l}}();function ga(){}function dn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}b.templateSettings={escape:gt,evaluate:_r,interpolate:Vs,variable:"",imports:{_:b}},b.prototype=ga.prototype,b.prototype.constructor=b,dn.prototype=Bi(ga.prototype),dn.prototype.constructor=dn;function $e(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function TN(){var r=new $e(this.__wrapped__);return r.__actions__=Gt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Gt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Gt(this.__views__),r}function wN(){if(this.__filtered__){var r=new $e(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function SN(){var r=this.__wrapped__.value(),i=this.__dir__,l=Te(r),f=i<0,g=l?r.length:0,T=kL(0,g,this.__views__),A=T.start,I=T.end,F=I-A,W=f?I:A-1,V=this.__iteratees__,J=V.length,re=0,ce=$t(F,this.__takeCount__);if(!l||!f&&g==F&&ce==F)return Hy(r,this.__actions__);var ge=[];e:for(;F--&&re<ce;){W+=i;for(var Ee=-1,me=r[W];++Ee<J;){var Pe=V[Ee],Fe=Pe.iteratee,tn=Pe.type,Ut=Fe(me);if(tn==Me)me=Ut;else if(!Ut){if(tn==ye)continue e;break e}}ge[re++]=me}return ge}$e.prototype=Bi(ga.prototype),$e.prototype.constructor=$e;function Kr(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function CN(){this.__data__=Io?Io(null):{},this.size=0}function EN(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function xN(r){var i=this.__data__;if(Io){var l=i[r];return l===h?n:l}return Ve.call(i,r)?i[r]:n}function AN(r){var i=this.__data__;return Io?i[r]!==n:Ve.call(i,r)}function ON(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Io&&i===n?h:i,this}Kr.prototype.clear=CN,Kr.prototype.delete=EN,Kr.prototype.get=xN,Kr.prototype.has=AN,Kr.prototype.set=ON;function Kn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function IN(){this.__data__=[],this.size=0}function PN(r){var i=this.__data__,l=ma(i,r);if(l<0)return!1;var f=i.length-1;return l==f?i.pop():ua.call(i,l,1),--this.size,!0}function $N(r){var i=this.__data__,l=ma(i,r);return l<0?n:i[l][1]}function MN(r){return ma(this.__data__,r)>-1}function FN(r,i){var l=this.__data__,f=ma(l,r);return f<0?(++this.size,l.push([r,i])):l[f][1]=i,this}Kn.prototype.clear=IN,Kn.prototype.delete=PN,Kn.prototype.get=$N,Kn.prototype.has=MN,Kn.prototype.set=FN;function Jn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function DN(){this.size=0,this.__data__={hash:new Kr,map:new(Ao||Kn),string:new Kr}}function kN(r){var i=Oa(this,r).delete(r);return this.size-=i?1:0,i}function NN(r){return Oa(this,r).get(r)}function LN(r){return Oa(this,r).has(r)}function BN(r,i){var l=Oa(this,r),f=l.size;return l.set(r,i),this.size+=l.size==f?0:1,this}Jn.prototype.clear=DN,Jn.prototype.delete=kN,Jn.prototype.get=NN,Jn.prototype.has=LN,Jn.prototype.set=BN;function Jr(r){var i=-1,l=r==null?0:r.length;for(this.__data__=new Jn;++i<l;)this.add(r[i])}function zN(r){return this.__data__.set(r,h),this}function UN(r){return this.__data__.has(r)}Jr.prototype.add=Jr.prototype.push=zN,Jr.prototype.has=UN;function Cn(r){var i=this.__data__=new Kn(r);this.size=i.size}function jN(){this.__data__=new Kn,this.size=0}function WN(r){var i=this.__data__,l=i.delete(r);return this.size=i.size,l}function VN(r){return this.__data__.get(r)}function GN(r){return this.__data__.has(r)}function HN(r,i){var l=this.__data__;if(l instanceof Kn){var f=l.__data__;if(!Ao||f.length<s-1)return f.push([r,i]),this.size=++l.size,this;l=this.__data__=new Jn(f)}return l.set(r,i),this.size=l.size,this}Cn.prototype.clear=jN,Cn.prototype.delete=WN,Cn.prototype.get=VN,Cn.prototype.has=GN,Cn.prototype.set=HN;function wy(r,i){var l=Te(r),f=!l&&ei(r),g=!l&&!f&&Ir(r),T=!l&&!f&&!g&&Wi(r),A=l||f||g||T,I=A?Sc(r.length,tN):[],F=I.length;for(var W in r)(i||Ve.call(r,W))&&!(A&&(W=="length"||g&&(W=="offset"||W=="parent")||T&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Qn(W,F)))&&I.push(W);return I}function Sy(r){var i=r.length;return i?r[Uc(0,i-1)]:n}function YN(r,i){return Ia(Gt(r),Rr(i,0,r.length))}function qN(r){return Ia(Gt(r))}function Pc(r,i,l){(l!==n&&!En(r[i],l)||l===n&&!(i in r))&&Rn(r,i,l)}function $o(r,i,l){var f=r[i];(!(Ve.call(r,i)&&En(f,l))||l===n&&!(i in r))&&Rn(r,i,l)}function ma(r,i){for(var l=r.length;l--;)if(En(r[l][0],i))return l;return-1}function KN(r,i,l,f){return Er(r,function(g,T,A){i(f,g,l(g),A)}),f}function Cy(r,i){return r&&kn(i,Et(i),r)}function JN(r,i){return r&&kn(i,Yt(i),r)}function Rn(r,i,l){i=="__proto__"&&ca?ca(r,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[i]=l}function $c(r,i){for(var l=-1,f=i.length,g=L(f),T=r==null;++l<f;)g[l]=T?n:df(r,i[l]);return g}function Rr(r,i,l){return r===r&&(l!==n&&(r=r<=l?r:l),i!==n&&(r=r>=i?r:i)),r}function hn(r,i,l,f,g,T){var A,I=i&y,F=i&_,W=i&C;if(l&&(A=g?l(r,f,g,T):l(r)),A!==n)return A;if(!rt(r))return r;var V=Te(r);if(V){if(A=LL(r),!I)return Gt(r,A)}else{var J=Mt(r),re=J==te||J==yt;if(Ir(r))return Ky(r,I);if(J==vt||J==ee||re&&!g){if(A=F||re?{}:hv(r),!I)return F?xL(r,JN(A,r)):EL(r,Cy(A,r))}else{if(!Re[J])return g?r:{};A=BL(r,J,I)}}T||(T=new Cn);var ce=T.get(r);if(ce)return ce;T.set(r,A),Wv(r)?r.forEach(function(me){A.add(hn(me,i,l,me,r,T))}):Uv(r)&&r.forEach(function(me,Pe){A.set(Pe,hn(me,i,l,Pe,r,T))});var ge=W?F?Zc:Rc:F?Yt:Et,Ee=V?n:ge(r);return cn(Ee||r,function(me,Pe){Ee&&(Pe=me,me=r[Pe]),$o(A,Pe,hn(me,i,l,Pe,r,T))}),A}function RN(r){var i=Et(r);return function(l){return Ey(l,r,i)}}function Ey(r,i,l){var f=l.length;if(r==null)return!f;for(r=Ke(r);f--;){var g=l[f],T=i[g],A=r[g];if(A===n&&!(g in r)||!T(A))return!1}return!0}function xy(r,i,l){if(typeof r!="function")throw new fn(u);return Bo(function(){r.apply(n,l)},i)}function Mo(r,i,l,f){var g=-1,T=Qs,A=!0,I=r.length,F=[],W=i.length;if(!I)return F;l&&(i=nt(i,Xt(l))),f?(T=yc,A=!1):i.length>=s&&(T=Eo,A=!1,i=new Jr(i));e:for(;++g<I;){var V=r[g],J=l==null?V:l(V);if(V=f||V!==0?V:0,A&&J===J){for(var re=W;re--;)if(i[re]===J)continue e;F.push(V)}else T(i,J,f)||F.push(V)}return F}var Er=Qy(Dn),Ay=Qy(Fc,!0);function ZN(r,i){var l=!0;return Er(r,function(f,g,T){return l=!!i(f,g,T),l}),l}function ya(r,i,l){for(var f=-1,g=r.length;++f<g;){var T=r[f],A=i(T);if(A!=null&&(I===n?A===A&&!en(A):l(A,I)))var I=A,F=T}return F}function XN(r,i,l,f){var g=r.length;for(l=Se(l),l<0&&(l=-l>g?0:g+l),f=f===n||f>g?g:Se(f),f<0&&(f+=g),f=l>f?0:Gv(f);l<f;)r[l++]=i;return r}function Oy(r,i){var l=[];return Er(r,function(f,g,T){i(f,g,T)&&l.push(f)}),l}function Ot(r,i,l,f,g){var T=-1,A=r.length;for(l||(l=UL),g||(g=[]);++T<A;){var I=r[T];i>0&&l(I)?i>1?Ot(I,i-1,l,f,g):wr(g,I):f||(g[g.length]=I)}return g}var Mc=ev(),Iy=ev(!0);function Dn(r,i){return r&&Mc(r,i,Et)}function Fc(r,i){return r&&Iy(r,i,Et)}function va(r,i){return Tr(i,function(l){return er(r[l])})}function Zr(r,i){i=Ar(i,r);for(var l=0,f=i.length;r!=null&&l<f;)r=r[Nn(i[l++])];return l&&l==f?r:n}function Py(r,i,l){var f=i(r);return Te(r)?f:wr(f,l(r))}function Bt(r){return r==null?r===n?jr:dr:qr&&qr in Ke(r)?DL(r):qL(r)}function Dc(r,i){return r>i}function QN(r,i){return r!=null&&Ve.call(r,i)}function eL(r,i){return r!=null&&i in Ke(r)}function tL(r,i,l){return r>=$t(i,l)&&r<_t(i,l)}function kc(r,i,l){for(var f=l?yc:Qs,g=r[0].length,T=r.length,A=T,I=L(T),F=1/0,W=[];A--;){var V=r[A];A&&i&&(V=nt(V,Xt(i))),F=$t(V.length,F),I[A]=!l&&(i||g>=120&&V.length>=120)?new Jr(A&&V):n}V=r[0];var J=-1,re=I[0];e:for(;++J<g&&W.length<F;){var ce=V[J],ge=i?i(ce):ce;if(ce=l||ce!==0?ce:0,!(re?Eo(re,ge):f(W,ge,l))){for(A=T;--A;){var Ee=I[A];if(!(Ee?Eo(Ee,ge):f(r[A],ge,l)))continue e}re&&re.push(ge),W.push(ce)}}return W}function nL(r,i,l,f){return Dn(r,function(g,T,A){i(f,l(g),T,A)}),f}function Fo(r,i,l){i=Ar(i,r),r=yv(r,i);var f=r==null?r:r[Nn(gn(i))];return f==null?n:Zt(f,r,l)}function $y(r){return ct(r)&&Bt(r)==ee}function rL(r){return ct(r)&&Bt(r)==mr}function iL(r){return ct(r)&&Bt(r)==pe}function Do(r,i,l,f,g){return r===i?!0:r==null||i==null||!ct(r)&&!ct(i)?r!==r&&i!==i:oL(r,i,l,f,Do,g)}function oL(r,i,l,f,g,T){var A=Te(r),I=Te(i),F=A?oe:Mt(r),W=I?oe:Mt(i);F=F==ee?vt:F,W=W==ee?vt:W;var V=F==vt,J=W==vt,re=F==W;if(re&&Ir(r)){if(!Ir(i))return!1;A=!0,V=!1}if(re&&!V)return T||(T=new Cn),A||Wi(r)?cv(r,i,l,f,g,T):ML(r,i,F,l,f,g,T);if(!(l&E)){var ce=V&&Ve.call(r,"__wrapped__"),ge=J&&Ve.call(i,"__wrapped__");if(ce||ge){var Ee=ce?r.value():r,me=ge?i.value():i;return T||(T=new Cn),g(Ee,me,l,f,T)}}return re?(T||(T=new Cn),FL(r,i,l,f,g,T)):!1}function sL(r){return ct(r)&&Mt(r)==Je}function Nc(r,i,l,f){var g=l.length,T=g,A=!f;if(r==null)return!T;for(r=Ke(r);g--;){var I=l[g];if(A&&I[2]?I[1]!==r[I[0]]:!(I[0]in r))return!1}for(;++g<T;){I=l[g];var F=I[0],W=r[F],V=I[1];if(A&&I[2]){if(W===n&&!(F in r))return!1}else{var J=new Cn;if(f)var re=f(W,V,F,r,i,J);if(!(re===n?Do(V,W,E|w,f,J):re))return!1}}return!0}function My(r){if(!rt(r)||WL(r))return!1;var i=er(r)?sN:de;return i.test(Qr(r))}function aL(r){return ct(r)&&Bt(r)==hr}function lL(r){return ct(r)&&Mt(r)==Wt}function uL(r){return ct(r)&&ka(r.length)&&!!Qe[Bt(r)]}function Fy(r){return typeof r=="function"?r:r==null?qt:typeof r=="object"?Te(r)?Ny(r[0],r[1]):ky(r):tb(r)}function Lc(r){if(!Lo(r))return dN(r);var i=[];for(var l in Ke(r))Ve.call(r,l)&&l!="constructor"&&i.push(l);return i}function cL(r){if(!rt(r))return YL(r);var i=Lo(r),l=[];for(var f in r)f=="constructor"&&(i||!Ve.call(r,f))||l.push(f);return l}function Bc(r,i){return r<i}function Dy(r,i){var l=-1,f=Ht(r)?L(r.length):[];return Er(r,function(g,T,A){f[++l]=i(g,T,A)}),f}function ky(r){var i=Qc(r);return i.length==1&&i[0][2]?gv(i[0][0],i[0][1]):function(l){return l===r||Nc(l,r,i)}}function Ny(r,i){return tf(r)&&pv(i)?gv(Nn(r),i):function(l){var f=df(l,r);return f===n&&f===i?hf(l,r):Do(i,f,E|w)}}function ba(r,i,l,f,g){r!==i&&Mc(i,function(T,A){if(g||(g=new Cn),rt(T))fL(r,i,A,l,ba,f,g);else{var I=f?f(rf(r,A),T,A+"",r,i,g):n;I===n&&(I=T),Pc(r,A,I)}},Yt)}function fL(r,i,l,f,g,T,A){var I=rf(r,l),F=rf(i,l),W=A.get(F);if(W){Pc(r,l,W);return}var V=T?T(I,F,l+"",r,i,A):n,J=V===n;if(J){var re=Te(F),ce=!re&&Ir(F),ge=!re&&!ce&&Wi(F);V=F,re||ce||ge?Te(I)?V=I:ht(I)?V=Gt(I):ce?(J=!1,V=Ky(F,!0)):ge?(J=!1,V=Jy(F,!0)):V=[]:zo(F)||ei(F)?(V=I,ei(I)?V=Hv(I):(!rt(I)||er(I))&&(V=hv(F))):J=!1}J&&(A.set(F,V),g(V,F,f,T,A),A.delete(F)),Pc(r,l,V)}function Ly(r,i){var l=r.length;if(l)return i+=i<0?l:0,Qn(i,l)?r[i]:n}function By(r,i,l){i.length?i=nt(i,function(T){return Te(T)?function(A){return Zr(A,T.length===1?T[0]:T)}:T}):i=[qt];var f=-1;i=nt(i,Xt(he()));var g=Dy(r,function(T,A,I){var F=nt(i,function(W){return W(T)});return{criteria:F,index:++f,value:T}});return Bk(g,function(T,A){return CL(T,A,l)})}function dL(r,i){return zy(r,i,function(l,f){return hf(r,f)})}function zy(r,i,l){for(var f=-1,g=i.length,T={};++f<g;){var A=i[f],I=Zr(r,A);l(I,A)&&ko(T,Ar(A,r),I)}return T}function hL(r){return function(i){return Zr(i,r)}}function zc(r,i,l,f){var g=f?Lk:$i,T=-1,A=i.length,I=r;for(r===i&&(i=Gt(i)),l&&(I=nt(r,Xt(l)));++T<A;)for(var F=0,W=i[T],V=l?l(W):W;(F=g(I,V,F,f))>-1;)I!==r&&ua.call(I,F,1),ua.call(r,F,1);return r}function Uy(r,i){for(var l=r?i.length:0,f=l-1;l--;){var g=i[l];if(l==f||g!==T){var T=g;Qn(g)?ua.call(r,g,1):Vc(r,g)}}return r}function Uc(r,i){return r+da(_y()*(i-r+1))}function pL(r,i,l,f){for(var g=-1,T=_t(fa((i-r)/(l||1)),0),A=L(T);T--;)A[f?T:++g]=r,r+=l;return A}function jc(r,i){var l="";if(!r||i<1||i>Ie)return l;do i%2&&(l+=r),i=da(i/2),i&&(r+=r);while(i);return l}function xe(r,i){return of(mv(r,i,qt),r+"")}function gL(r){return Sy(Vi(r))}function mL(r,i){var l=Vi(r);return Ia(l,Rr(i,0,l.length))}function ko(r,i,l,f){if(!rt(r))return r;i=Ar(i,r);for(var g=-1,T=i.length,A=T-1,I=r;I!=null&&++g<T;){var F=Nn(i[g]),W=l;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(g!=A){var V=I[F];W=f?f(V,F,I):n,W===n&&(W=rt(V)?V:Qn(i[g+1])?[]:{})}$o(I,F,W),I=I[F]}return r}var jy=ha?function(r,i){return ha.set(r,i),r}:qt,yL=ca?function(r,i){return ca(r,"toString",{configurable:!0,enumerable:!1,value:gf(i),writable:!0})}:qt;function vL(r){return Ia(Vi(r))}function pn(r,i,l){var f=-1,g=r.length;i<0&&(i=-i>g?0:g+i),l=l>g?g:l,l<0&&(l+=g),g=i>l?0:l-i>>>0,i>>>=0;for(var T=L(g);++f<g;)T[f]=r[f+i];return T}function bL(r,i){var l;return Er(r,function(f,g,T){return l=i(f,g,T),!l}),!!l}function _a(r,i,l){var f=0,g=r==null?f:r.length;if(typeof i=="number"&&i===i&&g<=R){for(;f<g;){var T=f+g>>>1,A=r[T];A!==null&&!en(A)&&(l?A<=i:A<i)?f=T+1:g=T}return g}return Wc(r,i,qt,l)}function Wc(r,i,l,f){var g=0,T=r==null?0:r.length;if(T===0)return 0;i=l(i);for(var A=i!==i,I=i===null,F=en(i),W=i===n;g<T;){var V=da((g+T)/2),J=l(r[V]),re=J!==n,ce=J===null,ge=J===J,Ee=en(J);if(A)var me=f||ge;else W?me=ge&&(f||re):I?me=ge&&re&&(f||!ce):F?me=ge&&re&&!ce&&(f||!Ee):ce||Ee?me=!1:me=f?J<=i:J<i;me?g=V+1:T=V}return $t(T,Z)}function Wy(r,i){for(var l=-1,f=r.length,g=0,T=[];++l<f;){var A=r[l],I=i?i(A):A;if(!l||!En(I,F)){var F=I;T[g++]=A===0?0:A}}return T}function Vy(r){return typeof r=="number"?r:en(r)?q:+r}function Qt(r){if(typeof r=="string")return r;if(Te(r))return nt(r,Qt)+"";if(en(r))return Ty?Ty.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function xr(r,i,l){var f=-1,g=Qs,T=r.length,A=!0,I=[],F=I;if(l)A=!1,g=yc;else if(T>=s){var W=i?null:PL(r);if(W)return ta(W);A=!1,g=Eo,F=new Jr}else F=i?[]:I;e:for(;++f<T;){var V=r[f],J=i?i(V):V;if(V=l||V!==0?V:0,A&&J===J){for(var re=F.length;re--;)if(F[re]===J)continue e;i&&F.push(J),I.push(V)}else g(F,J,l)||(F!==I&&F.push(J),I.push(V))}return I}function Vc(r,i){return i=Ar(i,r),r=yv(r,i),r==null||delete r[Nn(gn(i))]}function Gy(r,i,l,f){return ko(r,i,l(Zr(r,i)),f)}function Ta(r,i,l,f){for(var g=r.length,T=f?g:-1;(f?T--:++T<g)&&i(r[T],T,r););return l?pn(r,f?0:T,f?T+1:g):pn(r,f?T+1:0,f?g:T)}function Hy(r,i){var l=r;return l instanceof $e&&(l=l.value()),vc(i,function(f,g){return g.func.apply(g.thisArg,wr([f],g.args))},l)}function Gc(r,i,l){var f=r.length;if(f<2)return f?xr(r[0]):[];for(var g=-1,T=L(f);++g<f;)for(var A=r[g],I=-1;++I<f;)I!=g&&(T[g]=Mo(T[g]||A,r[I],i,l));return xr(Ot(T,1),i,l)}function Yy(r,i,l){for(var f=-1,g=r.length,T=i.length,A={};++f<g;){var I=f<T?i[f]:n;l(A,r[f],I)}return A}function Hc(r){return ht(r)?r:[]}function Yc(r){return typeof r=="function"?r:qt}function Ar(r,i){return Te(r)?r:tf(r,i)?[r]:Tv(je(r))}var _L=xe;function Or(r,i,l){var f=r.length;return l=l===n?f:l,!i&&l>=f?r:pn(r,i,l)}var qy=aN||function(r){return At.clearTimeout(r)};function Ky(r,i){if(i)return r.slice();var l=r.length,f=gy?gy(l):new r.constructor(l);return r.copy(f),f}function qc(r){var i=new r.constructor(r.byteLength);return new aa(i).set(new aa(r)),i}function TL(r,i){var l=i?qc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function wL(r){var i=new r.constructor(r.source,wo.exec(r));return i.lastIndex=r.lastIndex,i}function SL(r){return Po?Ke(Po.call(r)):{}}function Jy(r,i){var l=i?qc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function Ry(r,i){if(r!==i){var l=r!==n,f=r===null,g=r===r,T=en(r),A=i!==n,I=i===null,F=i===i,W=en(i);if(!I&&!W&&!T&&r>i||T&&A&&F&&!I&&!W||f&&A&&F||!l&&F||!g)return 1;if(!f&&!T&&!W&&r<i||W&&l&&g&&!f&&!T||I&&l&&g||!A&&g||!F)return-1}return 0}function CL(r,i,l){for(var f=-1,g=r.criteria,T=i.criteria,A=g.length,I=l.length;++f<A;){var F=Ry(g[f],T[f]);if(F){if(f>=I)return F;var W=l[f];return F*(W=="desc"?-1:1)}}return r.index-i.index}function Zy(r,i,l,f){for(var g=-1,T=r.length,A=l.length,I=-1,F=i.length,W=_t(T-A,0),V=L(F+W),J=!f;++I<F;)V[I]=i[I];for(;++g<A;)(J||g<T)&&(V[l[g]]=r[g]);for(;W--;)V[I++]=r[g++];return V}function Xy(r,i,l,f){for(var g=-1,T=r.length,A=-1,I=l.length,F=-1,W=i.length,V=_t(T-I,0),J=L(V+W),re=!f;++g<V;)J[g]=r[g];for(var ce=g;++F<W;)J[ce+F]=i[F];for(;++A<I;)(re||g<T)&&(J[ce+l[A]]=r[g++]);return J}function Gt(r,i){var l=-1,f=r.length;for(i||(i=L(f));++l<f;)i[l]=r[l];return i}function kn(r,i,l,f){var g=!l;l||(l={});for(var T=-1,A=i.length;++T<A;){var I=i[T],F=f?f(l[I],r[I],I,l,r):n;F===n&&(F=r[I]),g?Rn(l,I,F):$o(l,I,F)}return l}function EL(r,i){return kn(r,ef(r),i)}function xL(r,i){return kn(r,fv(r),i)}function wa(r,i){return function(l,f){var g=Te(l)?$k:KN,T=i?i():{};return g(l,r,he(f,2),T)}}function zi(r){return xe(function(i,l){var f=-1,g=l.length,T=g>1?l[g-1]:n,A=g>2?l[2]:n;for(T=r.length>3&&typeof T=="function"?(g--,T):n,A&&zt(l[0],l[1],A)&&(T=g<3?n:T,g=1),i=Ke(i);++f<g;){var I=l[f];I&&r(i,I,f,T)}return i})}function Qy(r,i){return function(l,f){if(l==null)return l;if(!Ht(l))return r(l,f);for(var g=l.length,T=i?g:-1,A=Ke(l);(i?T--:++T<g)&&f(A[T],T,A)!==!1;);return l}}function ev(r){return function(i,l,f){for(var g=-1,T=Ke(i),A=f(i),I=A.length;I--;){var F=A[r?I:++g];if(l(T[F],F,T)===!1)break}return i}}function AL(r,i,l){var f=i&$,g=No(r);function T(){var A=this&&this!==At&&this instanceof T?g:r;return A.apply(f?l:this,arguments)}return T}function tv(r){return function(i){i=je(i);var l=Mi(i)?Sn(i):n,f=l?l[0]:i.charAt(0),g=l?Or(l,1).join(""):i.slice(1);return f[r]()+g}}function Ui(r){return function(i){return vc(Qv(Xv(i).replace(yk,"")),r,"")}}function No(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var l=Bi(r.prototype),f=r.apply(l,i);return rt(f)?f:l}}function OL(r,i,l){var f=No(r);function g(){for(var T=arguments.length,A=L(T),I=T,F=ji(g);I--;)A[I]=arguments[I];var W=T<3&&A[0]!==F&&A[T-1]!==F?[]:Sr(A,F);if(T-=W.length,T<l)return sv(r,i,Sa,g.placeholder,n,A,W,n,n,l-T);var V=this&&this!==At&&this instanceof g?f:r;return Zt(V,this,A)}return g}function nv(r){return function(i,l,f){var g=Ke(i);if(!Ht(i)){var T=he(l,3);i=Et(i),l=function(I){return T(g[I],I,g)}}var A=r(i,l,f);return A>-1?g[T?i[A]:A]:n}}function rv(r){return Xn(function(i){var l=i.length,f=l,g=dn.prototype.thru;for(r&&i.reverse();f--;){var T=i[f];if(typeof T!="function")throw new fn(u);if(g&&!A&&Aa(T)=="wrapper")var A=new dn([],!0)}for(f=A?f:l;++f<l;){T=i[f];var I=Aa(T),F=I=="wrapper"?Xc(T):n;F&&nf(F[0])&&F[1]==(G|H|D|ae)&&!F[4].length&&F[9]==1?A=A[Aa(F[0])].apply(A,F[3]):A=T.length==1&&nf(T)?A[I]():A.thru(T)}return function(){var W=arguments,V=W[0];if(A&&W.length==1&&Te(V))return A.plant(V).value();for(var J=0,re=l?i[J].apply(this,W):V;++J<l;)re=i[J].call(this,re);return re}})}function Sa(r,i,l,f,g,T,A,I,F,W){var V=i&G,J=i&$,re=i&N,ce=i&(H|B),ge=i&ie,Ee=re?n:No(r);function me(){for(var Pe=arguments.length,Fe=L(Pe),tn=Pe;tn--;)Fe[tn]=arguments[tn];if(ce)var Ut=ji(me),nn=Uk(Fe,Ut);if(f&&(Fe=Zy(Fe,f,g,ce)),T&&(Fe=Xy(Fe,T,A,ce)),Pe-=nn,ce&&Pe<W){var pt=Sr(Fe,Ut);return sv(r,i,Sa,me.placeholder,l,Fe,pt,I,F,W-Pe)}var xn=J?l:this,nr=re?xn[r]:r;return Pe=Fe.length,I?Fe=KL(Fe,I):ge&&Pe>1&&Fe.reverse(),V&&F<Pe&&(Fe.length=F),this&&this!==At&&this instanceof me&&(nr=Ee||No(nr)),nr.apply(xn,Fe)}return me}function iv(r,i){return function(l,f){return nL(l,r,i(f),{})}}function Ca(r,i){return function(l,f){var g;if(l===n&&f===n)return i;if(l!==n&&(g=l),f!==n){if(g===n)return f;typeof l=="string"||typeof f=="string"?(l=Qt(l),f=Qt(f)):(l=Vy(l),f=Vy(f)),g=r(l,f)}return g}}function Kc(r){return Xn(function(i){return i=nt(i,Xt(he())),xe(function(l){var f=this;return r(i,function(g){return Zt(g,f,l)})})})}function Ea(r,i){i=i===n?" ":Qt(i);var l=i.length;if(l<2)return l?jc(i,r):i;var f=jc(i,fa(r/Fi(i)));return Mi(i)?Or(Sn(f),0,r).join(""):f.slice(0,r)}function IL(r,i,l,f){var g=i&$,T=No(r);function A(){for(var I=-1,F=arguments.length,W=-1,V=f.length,J=L(V+F),re=this&&this!==At&&this instanceof A?T:r;++W<V;)J[W]=f[W];for(;F--;)J[W++]=arguments[++I];return Zt(re,g?l:this,J)}return A}function ov(r){return function(i,l,f){return f&&typeof f!="number"&&zt(i,l,f)&&(l=f=n),i=tr(i),l===n?(l=i,i=0):l=tr(l),f=f===n?i<l?1:-1:tr(f),pL(i,l,f,r)}}function xa(r){return function(i,l){return typeof i=="string"&&typeof l=="string"||(i=mn(i),l=mn(l)),r(i,l)}}function sv(r,i,l,f,g,T,A,I,F,W){var V=i&H,J=V?A:n,re=V?n:A,ce=V?T:n,ge=V?n:T;i|=V?D:k,i&=~(V?k:D),i&Q||(i&=-4);var Ee=[r,i,g,ce,J,ge,re,I,F,W],me=l.apply(n,Ee);return nf(r)&&vv(me,Ee),me.placeholder=f,bv(me,r,i)}function Jc(r){var i=bt[r];return function(l,f){if(l=mn(l),f=f==null?0:$t(Se(f),292),f&&by(l)){var g=(je(l)+"e").split("e"),T=i(g[0]+"e"+(+g[1]+f));return g=(je(T)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return i(l)}}var PL=Ni&&1/ta(new Ni([,-0]))[1]==Le?function(r){return new Ni(r)}:vf;function av(r){return function(i){var l=Mt(i);return l==Je?Ec(i):l==Wt?qk(i):zk(i,r(i))}}function Zn(r,i,l,f,g,T,A,I){var F=i&N;if(!F&&typeof r!="function")throw new fn(u);var W=f?f.length:0;if(W||(i&=-97,f=g=n),A=A===n?A:_t(Se(A),0),I=I===n?I:Se(I),W-=g?g.length:0,i&k){var V=f,J=g;f=g=n}var re=F?n:Xc(r),ce=[r,i,l,f,g,V,J,T,A,I];if(re&&HL(ce,re),r=ce[0],i=ce[1],l=ce[2],f=ce[3],g=ce[4],I=ce[9]=ce[9]===n?F?0:r.length:_t(ce[9]-W,0),!I&&i&(H|B)&&(i&=-25),!i||i==$)var ge=AL(r,i,l);else i==H||i==B?ge=OL(r,i,I):(i==D||i==($|D))&&!g.length?ge=IL(r,i,l,f):ge=Sa.apply(n,ce);var Ee=re?jy:vv;return bv(Ee(ge,ce),r,i)}function lv(r,i,l,f){return r===n||En(r,ki[l])&&!Ve.call(f,l)?i:r}function uv(r,i,l,f,g,T){return rt(r)&&rt(i)&&(T.set(i,r),ba(r,i,n,uv,T),T.delete(i)),r}function $L(r){return zo(r)?n:r}function cv(r,i,l,f,g,T){var A=l&E,I=r.length,F=i.length;if(I!=F&&!(A&&F>I))return!1;var W=T.get(r),V=T.get(i);if(W&&V)return W==i&&V==r;var J=-1,re=!0,ce=l&w?new Jr:n;for(T.set(r,i),T.set(i,r);++J<I;){var ge=r[J],Ee=i[J];if(f)var me=A?f(Ee,ge,J,i,r,T):f(ge,Ee,J,r,i,T);if(me!==n){if(me)continue;re=!1;break}if(ce){if(!bc(i,function(Pe,Fe){if(!Eo(ce,Fe)&&(ge===Pe||g(ge,Pe,l,f,T)))return ce.push(Fe)})){re=!1;break}}else if(!(ge===Ee||g(ge,Ee,l,f,T))){re=!1;break}}return T.delete(r),T.delete(i),re}function ML(r,i,l,f,g,T,A){switch(l){case qn:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case mr:return!(r.byteLength!=i.byteLength||!T(new aa(r),new aa(i)));case be:case pe:case Lt:return En(+r,+i);case tt:return r.name==i.name&&r.message==i.message;case hr:case Ur:return r==i+"";case Je:var I=Ec;case Wt:var F=f&E;if(I||(I=ta),r.size!=i.size&&!F)return!1;var W=A.get(r);if(W)return W==i;f|=w,A.set(r,i);var V=cv(I(r),I(i),f,g,T,A);return A.delete(r),V;case pr:if(Po)return Po.call(r)==Po.call(i)}return!1}function FL(r,i,l,f,g,T){var A=l&E,I=Rc(r),F=I.length,W=Rc(i),V=W.length;if(F!=V&&!A)return!1;for(var J=F;J--;){var re=I[J];if(!(A?re in i:Ve.call(i,re)))return!1}var ce=T.get(r),ge=T.get(i);if(ce&&ge)return ce==i&&ge==r;var Ee=!0;T.set(r,i),T.set(i,r);for(var me=A;++J<F;){re=I[J];var Pe=r[re],Fe=i[re];if(f)var tn=A?f(Fe,Pe,re,i,r,T):f(Pe,Fe,re,r,i,T);if(!(tn===n?Pe===Fe||g(Pe,Fe,l,f,T):tn)){Ee=!1;break}me||(me=re=="constructor")}if(Ee&&!me){var Ut=r.constructor,nn=i.constructor;Ut!=nn&&"constructor"in r&&"constructor"in i&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof nn=="function"&&nn instanceof nn)&&(Ee=!1)}return T.delete(r),T.delete(i),Ee}function Xn(r){return of(mv(r,n,Ev),r+"")}function Rc(r){return Py(r,Et,ef)}function Zc(r){return Py(r,Yt,fv)}var Xc=ha?function(r){return ha.get(r)}:vf;function Aa(r){for(var i=r.name+"",l=Li[i],f=Ve.call(Li,i)?l.length:0;f--;){var g=l[f],T=g.func;if(T==null||T==r)return g.name}return i}function ji(r){var i=Ve.call(b,"placeholder")?b:r;return i.placeholder}function he(){var r=b.iteratee||mf;return r=r===mf?Fy:r,arguments.length?r(arguments[0],arguments[1]):r}function Oa(r,i){var l=r.__data__;return jL(i)?l[typeof i=="string"?"string":"hash"]:l.map}function Qc(r){for(var i=Et(r),l=i.length;l--;){var f=i[l],g=r[f];i[l]=[f,g,pv(g)]}return i}function Xr(r,i){var l=Gk(r,i);return My(l)?l:n}function DL(r){var i=Ve.call(r,qr),l=r[qr];try{r[qr]=n;var f=!0}catch{}var g=oa.call(r);return f&&(i?r[qr]=l:delete r[qr]),g}var ef=Ac?function(r){return r==null?[]:(r=Ke(r),Tr(Ac(r),function(i){return yy.call(r,i)}))}:bf,fv=Ac?function(r){for(var i=[];r;)wr(i,ef(r)),r=la(r);return i}:bf,Mt=Bt;(Oc&&Mt(new Oc(new ArrayBuffer(1)))!=qn||Ao&&Mt(new Ao)!=Je||Ic&&Mt(Ic.resolve())!=ke||Ni&&Mt(new Ni)!=Wt||Oo&&Mt(new Oo)!=an)&&(Mt=function(r){var i=Bt(r),l=i==vt?r.constructor:n,f=l?Qr(l):"";if(f)switch(f){case mN:return qn;case yN:return Je;case vN:return ke;case bN:return Wt;case _N:return an}return i});function kL(r,i,l){for(var f=-1,g=l.length;++f<g;){var T=l[f],A=T.size;switch(T.type){case"drop":r+=A;break;case"dropRight":i-=A;break;case"take":i=$t(i,r+A);break;case"takeRight":r=_t(r,i-A);break}}return{start:r,end:i}}function NL(r){var i=r.match(qs);return i?i[1].split(To):[]}function dv(r,i,l){i=Ar(i,r);for(var f=-1,g=i.length,T=!1;++f<g;){var A=Nn(i[f]);if(!(T=r!=null&&l(r,A)))break;r=r[A]}return T||++f!=g?T:(g=r==null?0:r.length,!!g&&ka(g)&&Qn(A,g)&&(Te(r)||ei(r)))}function LL(r){var i=r.length,l=new r.constructor(i);return i&&typeof r[0]=="string"&&Ve.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function hv(r){return typeof r.constructor=="function"&&!Lo(r)?Bi(la(r)):{}}function BL(r,i,l){var f=r.constructor;switch(i){case mr:return qc(r);case be:case pe:return new f(+r);case qn:return TL(r,l);case Ci:case Wr:case Ei:case yr:case vr:case Rt:case Fn:case Vr:case Gr:return Jy(r,l);case Je:return new f;case Lt:case Ur:return new f(r);case hr:return wL(r);case Wt:return new f;case pr:return SL(r)}}function zL(r,i){var l=i.length;if(!l)return r;var f=l-1;return i[f]=(l>1?"& ":"")+i[f],i=i.join(l>2?", ":" "),r.replace(Ys,`{
|
|
113
133
|
/* [wrapped with `+i+`] */
|
|
114
|
-
`)}function ML(r){return we(r)||Qr(r)||!!(fy&&r&&r[fy])}function Qn(r,i){var l=typeof r;return i=i??Ce,!!i&&(l=="number"||l!="symbol"&&K.test(r))&&r>-1&&r%1==0&&r<i}function Bt(r,i,l){if(!rt(l))return!1;var f=typeof i;return(f=="number"?Ht(l)&&Qn(i,l.length):f=="string"&&i in l)?En(l[i],r):!1}function Kc(r,i){if(we(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||en(r)?!0:vo.test(r)||!Ws.test(r)||i!=null&&r in Re(i)}function FL(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function Jc(r){var i=Ea(r),l=v[i];if(typeof l!="function"||!(i in $e.prototype))return!1;if(r===l)return!0;var f=Yc(l);return!!f&&r===f[0]}function DL(r){return!!ay&&ay in r}var kL=ta?er:hf;function ko(r){var i=r&&r.constructor,l=typeof i=="function"&&i.prototype||Di;return r===l}function av(r){return r===r&&!rt(r)}function lv(r,i){return function(l){return l==null?!1:l[r]===i&&(i!==n||r in Re(l))}}function NL(r){var i=$a(r,function(f){return l.size===h&&l.clear(),f}),l=i.cache;return i}function LL(r,i){var l=r[1],f=i[1],g=l|f,_=g<($|N|H),x=f==H&&l==Y||f==H&&l==ae&&r[7].length<=i[8]||f==(H|ae)&&i[7].length<=i[8]&&l==Y;if(!(_||x))return r;f&$&&(r[2]=i[2],g|=l&$?0:J);var O=i[3];if(O){var F=r[3];r[3]=F?Gy(F,O,i[4]):O,r[4]=F?Tr(r[3],y):i[4]}return O=i[5],O&&(F=r[5],r[5]=F?Hy(F,O,i[6]):O,r[6]=F?Tr(r[5],y):i[6]),O=i[7],O&&(r[7]=O),f&H&&(r[8]=r[8]==null?i[8]:$t(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=g,r}function zL(r){var i=[];if(r!=null)for(var l in Re(r))i.push(l);return i}function BL(r){return ra.call(r)}function uv(r,i,l){return i=bt(i===n?r.length-1:i,0),function(){for(var f=arguments,g=-1,_=bt(f.length-i,0),x=z(_);++g<_;)x[g]=f[i+g];g=-1;for(var O=z(i+1);++g<i;)O[g]=f[g];return O[i]=l(x),Zt(r,this,O)}}function cv(r,i){return i.length<2?r:Jr(r,hn(i,0,-1))}function UL(r,i){for(var l=r.length,f=$t(i.length,l),g=Gt(r);f--;){var _=i[f];r[f]=Qn(_,l)?g[_]:n}return r}function Zc(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var fv=pv(Dy),No=tN||function(r,i){return xt.setTimeout(r,i)},Xc=pv(uL);function dv(r,i,l){var f=i+"";return Xc(r,$L(f,jL(OL(f),l)))}function pv(r){var i=0,l=0;return function(){var f=oN(),g=fe-(f-l);if(l=f,g>0){if(++i>=ne)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Aa(r,i){var l=-1,f=r.length,g=f-1;for(i=i===n?f:i;++l<i;){var _=Dc(l,g),x=r[_];r[_]=r[l],r[l]=x}return r.length=i,r}var hv=NL(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(Vs,function(l,f,g,_){i.push(g?_.replace(qs,"$1"):f||l)}),i});function Nn(r){if(typeof r=="string"||en(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function Xr(r){if(r!=null){try{return na.call(r)}catch{}try{return r+""}catch{}}return""}function jL(r,i){return cn(X,function(l){var f="_."+l[0];i&l[1]&&!Zs(r,f)&&r.push(f)}),r.sort()}function gv(r){if(r instanceof $e)return r.clone();var i=new dn(r.__wrapped__,r.__chain__);return i.__actions__=Gt(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function WL(r,i,l){(l?Bt(r,i,l):i===n)?i=1:i=bt(Se(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var g=0,_=0,x=z(ua(f/i));g<f;)x[_++]=hn(r,g,g+=i);return x}function VL(r){for(var i=-1,l=r==null?0:r.length,f=0,g=[];++i<l;){var _=r[i];_&&(g[f++]=_)}return g}function GL(){var r=arguments.length;if(!r)return[];for(var i=z(r-1),l=arguments[0],f=r;f--;)i[f-1]=arguments[f];return wr(we(l)?Gt(l):[l],At(i,1))}var HL=Ae(function(r,i){return ct(r)?Po(r,At(i,1,ct,!0)):[]}),YL=Ae(function(r,i){var l=gn(i);return ct(l)&&(l=n),ct(r)?Po(r,At(i,1,ct,!0),pe(l,2)):[]}),qL=Ae(function(r,i){var l=gn(i);return ct(l)&&(l=n),ct(r)?Po(r,At(i,1,ct,!0),n,l):[]});function RL(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),hn(r,i<0?0:i,f)):[]}function KL(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,hn(r,0,i<0?0:i)):[]}function JL(r,i){return r&&r.length?ba(r,pe(i,3),!0,!0):[]}function ZL(r,i){return r&&r.length?ba(r,pe(i,3),!0):[]}function XL(r,i,l,f){var g=r==null?0:r.length;return g?(l&&typeof l!="number"&&Bt(r,i,l)&&(l=0,f=g),GN(r,i,l,f)):[]}function mv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=bt(f+g,0)),Xs(r,pe(i,3),g)}function yv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return l!==n&&(g=Se(l),g=l<0?bt(f+g,0):$t(g,f-1)),Xs(r,pe(i,3),g,!0)}function vv(r){var i=r==null?0:r.length;return i?At(r,1):[]}function QL(r){var i=r==null?0:r.length;return i?At(r,Le):[]}function e5(r,i){var l=r==null?0:r.length;return l?(i=i===n?1:Se(i),At(r,i)):[]}function t5(r){for(var i=-1,l=r==null?0:r.length,f={};++i<l;){var g=r[i];f[g[0]]=g[1]}return f}function bv(r){return r&&r.length?r[0]:n}function n5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=bt(f+g,0)),Pi(r,i,g)}function r5(r){var i=r==null?0:r.length;return i?hn(r,0,-1):[]}var i5=Ae(function(r){var i=tt(r,Bc);return i.length&&i[0]===r[0]?Ic(i):[]}),o5=Ae(function(r){var i=gn(r),l=tt(r,Bc);return i===gn(l)?i=n:l.pop(),l.length&&l[0]===r[0]?Ic(l,pe(i,2)):[]}),s5=Ae(function(r){var i=gn(r),l=tt(r,Bc);return i=typeof i=="function"?i:n,i&&l.pop(),l.length&&l[0]===r[0]?Ic(l,n,i):[]});function a5(r,i){return r==null?"":rN.call(r,i)}function gn(r){var i=r==null?0:r.length;return i?r[i-1]:n}function l5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f;return l!==n&&(g=Se(l),g=g<0?bt(f+g,0):$t(g,f-1)),i===i?jk(r,i,g):Xs(r,Q0,g,!0)}function u5(r,i){return r&&r.length?Py(r,Se(i)):n}var c5=Ae(_v);function _v(r,i){return r&&r.length&&i&&i.length?Fc(r,i):r}function f5(r,i,l){return r&&r.length&&i&&i.length?Fc(r,i,pe(l,2)):r}function d5(r,i,l){return r&&r.length&&i&&i.length?Fc(r,i,n,l):r}var p5=Xn(function(r,i){var l=r==null?0:r.length,f=Ec(r,i);return Fy(r,tt(i,function(g){return Qn(g,l)?+g:g}).sort(Vy)),f});function h5(r,i){var l=[];if(!(r&&r.length))return l;var f=-1,g=[],_=r.length;for(i=pe(i,3);++f<_;){var x=r[f];i(x,f,r)&&(l.push(x),g.push(f))}return Fy(r,g),l}function Qc(r){return r==null?r:aN.call(r)}function g5(r,i,l){var f=r==null?0:r.length;return f?(l&&typeof l!="number"&&Bt(r,i,l)?(i=0,l=f):(i=i==null?0:Se(i),l=l===n?f:Se(l)),hn(r,i,l)):[]}function m5(r,i){return va(r,i)}function y5(r,i,l){return Nc(r,i,pe(l,2))}function v5(r,i){var l=r==null?0:r.length;if(l){var f=va(r,i);if(f<l&&En(r[f],i))return f}return-1}function b5(r,i){return va(r,i,!0)}function _5(r,i,l){return Nc(r,i,pe(l,2),!0)}function w5(r,i){var l=r==null?0:r.length;if(l){var f=va(r,i,!0)-1;if(En(r[f],i))return f}return-1}function T5(r){return r&&r.length?ky(r):[]}function S5(r,i){return r&&r.length?ky(r,pe(i,2)):[]}function C5(r){var i=r==null?0:r.length;return i?hn(r,1,i):[]}function E5(r,i,l){return r&&r.length?(i=l||i===n?1:Se(i),hn(r,0,i<0?0:i)):[]}function x5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,hn(r,i<0?0:i,f)):[]}function A5(r,i){return r&&r.length?ba(r,pe(i,3),!1,!0):[]}function O5(r,i){return r&&r.length?ba(r,pe(i,3)):[]}var I5=Ae(function(r){return Er(At(r,1,ct,!0))}),P5=Ae(function(r){var i=gn(r);return ct(i)&&(i=n),Er(At(r,1,ct,!0),pe(i,2))}),$5=Ae(function(r){var i=gn(r);return i=typeof i=="function"?i:n,Er(At(r,1,ct,!0),n,i)});function M5(r){return r&&r.length?Er(r):[]}function F5(r,i){return r&&r.length?Er(r,pe(i,2)):[]}function D5(r,i){return i=typeof i=="function"?i:n,r&&r.length?Er(r,n,i):[]}function ef(r){if(!(r&&r.length))return[];var i=0;return r=_r(r,function(l){if(ct(l))return i=bt(l.length,i),!0}),yc(i,function(l){return tt(r,hc(l))})}function wv(r,i){if(!(r&&r.length))return[];var l=ef(r);return i==null?l:tt(l,function(f){return Zt(i,n,f)})}var k5=Ae(function(r,i){return ct(r)?Po(r,i):[]}),N5=Ae(function(r){return zc(_r(r,ct))}),L5=Ae(function(r){var i=gn(r);return ct(i)&&(i=n),zc(_r(r,ct),pe(i,2))}),z5=Ae(function(r){var i=gn(r);return i=typeof i=="function"?i:n,zc(_r(r,ct),n,i)}),B5=Ae(ef);function U5(r,i){return By(r||[],i||[],Io)}function j5(r,i){return By(r||[],i||[],Fo)}var W5=Ae(function(r){var i=r.length,l=i>1?r[i-1]:n;return l=typeof l=="function"?(r.pop(),l):n,wv(r,l)});function Tv(r){var i=v(r);return i.__chain__=!0,i}function V5(r,i){return i(r),r}function Oa(r,i){return i(r)}var G5=Xn(function(r){var i=r.length,l=i?r[0]:0,f=this.__wrapped__,g=function(_){return Ec(_,r)};return i>1||this.__actions__.length||!(f instanceof $e)||!Qn(l)?this.thru(g):(f=f.slice(l,+l+(i?1:0)),f.__actions__.push({func:Oa,args:[g],thisArg:n}),new dn(f,this.__chain__).thru(function(_){return i&&!_.length&&_.push(n),_}))});function H5(){return Tv(this)}function Y5(){return new dn(this.value(),this.__chain__)}function q5(){this.__values__===n&&(this.__values__=Nv(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function R5(){return this}function K5(r){for(var i,l=this;l instanceof pa;){var f=gv(l);f.__index__=0,f.__values__=n,i?g.__wrapped__=f:i=f;var g=f;l=l.__wrapped__}return g.__wrapped__=r,i}function J5(){var r=this.__wrapped__;if(r instanceof $e){var i=r;return this.__actions__.length&&(i=new $e(this)),i=i.reverse(),i.__actions__.push({func:Oa,args:[Qc],thisArg:n}),new dn(i,this.__chain__)}return this.thru(Qc)}function Z5(){return zy(this.__wrapped__,this.__actions__)}var X5=_a(function(r,i,l){Ve.call(r,l)?++r[l]:Jn(r,l,1)});function Q5(r,i,l){var f=we(r)?Z0:VN;return l&&Bt(r,i,l)&&(i=n),f(r,pe(i,3))}function e3(r,i){var l=we(r)?_r:wy;return l(r,pe(i,3))}var t3=Ky(mv),n3=Ky(yv);function r3(r,i){return At(Ia(r,i),1)}function i3(r,i){return At(Ia(r,i),Le)}function o3(r,i,l){return l=l===n?1:Se(l),At(Ia(r,i),l)}function Sv(r,i){var l=we(r)?cn:Cr;return l(r,pe(i,3))}function Cv(r,i){var l=we(r)?Ck:_y;return l(r,pe(i,3))}var s3=_a(function(r,i,l){Ve.call(r,l)?r[l].push(i):Jn(r,l,[i])});function a3(r,i,l,f){r=Ht(r)?r:Wi(r),l=l&&!f?Se(l):0;var g=r.length;return l<0&&(l=bt(g+l,0)),Da(r)?l<=g&&r.indexOf(i,l)>-1:!!g&&Pi(r,i,l)>-1}var l3=Ae(function(r,i,l){var f=-1,g=typeof i=="function",_=Ht(r)?z(r.length):[];return Cr(r,function(x){_[++f]=g?Zt(i,x,l):$o(x,i,l)}),_}),u3=_a(function(r,i,l){Jn(r,l,i)});function Ia(r,i){var l=we(r)?tt:Ay;return l(r,pe(i,3))}function c3(r,i,l,f){return r==null?[]:(we(i)||(i=i==null?[]:[i]),l=f?n:l,we(l)||(l=l==null?[]:[l]),$y(r,i,l))}var f3=_a(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function d3(r,i,l){var f=we(r)?dc:ty,g=arguments.length<3;return f(r,pe(i,4),l,g,Cr)}function p3(r,i,l){var f=we(r)?Ek:ty,g=arguments.length<3;return f(r,pe(i,4),l,g,_y)}function h3(r,i){var l=we(r)?_r:wy;return l(r,Ma(pe(i,3)))}function g3(r){var i=we(r)?my:aL;return i(r)}function m3(r,i,l){(l?Bt(r,i,l):i===n)?i=1:i=Se(i);var f=we(r)?zN:lL;return f(r,i)}function y3(r){var i=we(r)?BN:cL;return i(r)}function v3(r){if(r==null)return 0;if(Ht(r))return Da(r)?Mi(r):r.length;var i=Mt(r);return i==Ke||i==Wt?r.size:$c(r).length}function b3(r,i,l){var f=we(r)?pc:fL;return l&&Bt(r,i,l)&&(i=n),f(r,pe(i,3))}var _3=Ae(function(r,i){if(r==null)return[];var l=i.length;return l>1&&Bt(r,i[0],i[1])?i=[]:l>2&&Bt(i[0],i[1],i[2])&&(i=[i[0]]),$y(r,At(i,1),[])}),Pa=eN||function(){return xt.Date.now()};function w3(r,i){if(typeof i!="function")throw new fn(u);return r=Se(r),function(){if(--r<1)return i.apply(this,arguments)}}function Ev(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Zn(r,H,n,n,n,n,i)}function xv(r,i){var l;if(typeof i!="function")throw new fn(u);return r=Se(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var tf=Ae(function(r,i,l){var f=$;if(l.length){var g=Tr(l,Ui(tf));f|=D}return Zn(r,f,i,l,g)}),Av=Ae(function(r,i,l){var f=$|N;if(l.length){var g=Tr(l,Ui(Av));f|=D}return Zn(i,f,r,l,g)});function Ov(r,i,l){i=l?n:i;var f=Zn(r,Y,n,n,n,n,n,i);return f.placeholder=Ov.placeholder,f}function Iv(r,i,l){i=l?n:i;var f=Zn(r,B,n,n,n,n,n,i);return f.placeholder=Iv.placeholder,f}function Pv(r,i,l){var f,g,_,x,O,F,V=0,G=!1,R=!1,re=!0;if(typeof r!="function")throw new fn(u);i=mn(i)||0,rt(l)&&(G=!!l.leading,R="maxWait"in l,_=R?bt(mn(l.maxWait)||0,i):_,re="trailing"in l?!!l.trailing:re);function ce(ft){var xn=f,nr=g;return f=g=n,V=ft,x=r.apply(nr,xn),x}function ge(ft){return V=ft,O=No(Pe,i),G?ce(ft):x}function xe(ft){var xn=ft-F,nr=ft-V,Kv=i-xn;return R?$t(Kv,_-nr):Kv}function me(ft){var xn=ft-F,nr=ft-V;return F===n||xn>=i||xn<0||R&&nr>=_}function Pe(){var ft=Pa();if(me(ft))return Fe(ft);O=No(Pe,xe(ft))}function Fe(ft){return O=n,re&&f?ce(ft):(f=g=n,x)}function tn(){O!==n&&Uy(O),V=0,f=F=g=O=n}function Ut(){return O===n?x:Fe(Pa())}function nn(){var ft=Pa(),xn=me(ft);if(f=arguments,g=this,F=ft,xn){if(O===n)return ge(F);if(R)return Uy(O),O=No(Pe,i),ce(F)}return O===n&&(O=No(Pe,i)),x}return nn.cancel=tn,nn.flush=Ut,nn}var T3=Ae(function(r,i){return by(r,1,i)}),S3=Ae(function(r,i,l){return by(r,mn(i)||0,l)});function C3(r){return Zn(r,ie)}function $a(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new fn(u);var l=function(){var f=arguments,g=i?i.apply(this,f):f[0],_=l.cache;if(_.has(g))return _.get(g);var x=r.apply(this,f);return l.cache=_.set(g,x)||_,x};return l.cache=new($a.Cache||Kn),l}$a.Cache=Kn;function Ma(r){if(typeof r!="function")throw new fn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function E3(r){return xv(2,r)}var x3=dL(function(r,i){i=i.length==1&&we(i[0])?tt(i[0],Xt(pe())):tt(At(i,1),Xt(pe()));var l=i.length;return Ae(function(f){for(var g=-1,_=$t(f.length,l);++g<_;)f[g]=i[g].call(this,f[g]);return Zt(r,this,f)})}),nf=Ae(function(r,i){var l=Tr(i,Ui(nf));return Zn(r,D,n,i,l)}),$v=Ae(function(r,i){var l=Tr(i,Ui($v));return Zn(r,k,n,i,l)}),A3=Xn(function(r,i){return Zn(r,ae,n,n,n,i)});function O3(r,i){if(typeof r!="function")throw new fn(u);return i=i===n?i:Se(i),Ae(r,i)}function I3(r,i){if(typeof r!="function")throw new fn(u);return i=i==null?0:bt(Se(i),0),Ae(function(l){var f=l[i],g=Ar(l,0,i);return f&&wr(g,f),Zt(r,this,g)})}function P3(r,i,l){var f=!0,g=!0;if(typeof r!="function")throw new fn(u);return rt(l)&&(f="leading"in l?!!l.leading:f,g="trailing"in l?!!l.trailing:g),Pv(r,i,{leading:f,maxWait:i,trailing:g})}function $3(r){return Ev(r,1)}function M3(r,i){return nf(Uc(i),r)}function F3(){if(!arguments.length)return[];var r=arguments[0];return we(r)?r:[r]}function D3(r){return pn(r,C)}function k3(r,i){return i=typeof i=="function"?i:n,pn(r,C,i)}function N3(r){return pn(r,m|C)}function L3(r,i){return i=typeof i=="function"?i:n,pn(r,m|C,i)}function z3(r,i){return i==null||vy(r,i,Ct(i))}function En(r,i){return r===i||r!==r&&i!==i}var B3=Ca(Oc),U3=Ca(function(r,i){return r>=i}),Qr=Cy(function(){return arguments}())?Cy:function(r){return at(r)&&Ve.call(r,"callee")&&!cy.call(r,"callee")},we=z.isArray,j3=H0?Xt(H0):KN;function Ht(r){return r!=null&&Fa(r.length)&&!er(r)}function ct(r){return at(r)&&Ht(r)}function W3(r){return r===!0||r===!1||at(r)&&zt(r)==be}var Or=nN||hf,V3=Y0?Xt(Y0):JN;function G3(r){return at(r)&&r.nodeType===1&&!Lo(r)}function H3(r){if(r==null)return!0;if(Ht(r)&&(we(r)||typeof r=="string"||typeof r.splice=="function"||Or(r)||ji(r)||Qr(r)))return!r.length;var i=Mt(r);if(i==Ke||i==Wt)return!r.size;if(ko(r))return!$c(r).length;for(var l in r)if(Ve.call(r,l))return!1;return!0}function Y3(r,i){return Mo(r,i)}function q3(r,i,l){l=typeof l=="function"?l:n;var f=l?l(r,i):n;return f===n?Mo(r,i,n,l):!!f}function rf(r){if(!at(r))return!1;var i=zt(r);return i==et||i==Ee||typeof r.message=="string"&&typeof r.name=="string"&&!Lo(r)}function R3(r){return typeof r=="number"&&dy(r)}function er(r){if(!rt(r))return!1;var i=zt(r);return i==Q||i==mt||i==ve||i==Yn}function Mv(r){return typeof r=="number"&&r==Se(r)}function Fa(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ce}function rt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function at(r){return r!=null&&typeof r=="object"}var Fv=q0?Xt(q0):XN;function K3(r,i){return r===i||Pc(r,i,qc(i))}function J3(r,i,l){return l=typeof l=="function"?l:n,Pc(r,i,qc(i),l)}function Z3(r){return Dv(r)&&r!=+r}function X3(r){if(kL(r))throw new _e(a);return Ey(r)}function Q3(r){return r===null}function ez(r){return r==null}function Dv(r){return typeof r=="number"||at(r)&&zt(r)==Lt}function Lo(r){if(!at(r)||zt(r)!=yt)return!1;var i=sa(r);if(i===null)return!0;var l=Ve.call(i,"constructor")&&i.constructor;return typeof l=="function"&&l instanceof l&&na.call(l)==Jk}var of=R0?Xt(R0):QN;function tz(r){return Mv(r)&&r>=-9007199254740991&&r<=Ce}var kv=K0?Xt(K0):eL;function Da(r){return typeof r=="string"||!we(r)&&at(r)&&zt(r)==Br}function en(r){return typeof r=="symbol"||at(r)&&zt(r)==pr}var ji=J0?Xt(J0):tL;function nz(r){return r===n}function rz(r){return at(r)&&Mt(r)==an}function iz(r){return at(r)&&zt(r)==hr}var oz=Ca(Mc),sz=Ca(function(r,i){return r<=i});function Nv(r){if(!r)return[];if(Ht(r))return Da(r)?Sn(r):Gt(r);if(Co&&r[Co])return zk(r[Co]());var i=Mt(r),l=i==Ke?bc:i==Wt?Qs:Wi;return l(r)}function tr(r){if(!r)return r===0?r:0;if(r=mn(r),r===Le||r===-1/0){var i=r<0?-1:1;return i*gt}return r===r?r:0}function Se(r){var i=tr(r),l=i%1;return i===i?l?i-l:i:0}function Lv(r){return r?Kr(Se(r),0,L):0}function mn(r){if(typeof r=="number")return r;if(en(r))return q;if(rt(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=rt(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=ny(r);var l=rc.test(r);return l||P.test(r)?wk(r.slice(2),l?2:8):Ks.test(r)?q:+r}function zv(r){return kn(r,Yt(r))}function az(r){return r?Kr(Se(r),-9007199254740991,Ce):r===0?r:0}function je(r){return r==null?"":Qt(r)}var lz=zi(function(r,i){if(ko(i)||Ht(i)){kn(i,Ct(i),r);return}for(var l in i)Ve.call(i,l)&&Io(r,l,i[l])}),Bv=zi(function(r,i){kn(i,Yt(i),r)}),ka=zi(function(r,i,l,f){kn(i,Yt(i),r,f)}),uz=zi(function(r,i,l,f){kn(i,Ct(i),r,f)}),cz=Xn(Ec);function fz(r,i){var l=Li(r);return i==null?l:yy(l,i)}var dz=Ae(function(r,i){r=Re(r);var l=-1,f=i.length,g=f>2?i[2]:n;for(g&&Bt(i[0],i[1],g)&&(f=1);++l<f;)for(var _=i[l],x=Yt(_),O=-1,F=x.length;++O<F;){var V=x[O],G=r[V];(G===n||En(G,Di[V])&&!Ve.call(r,V))&&(r[V]=_[V])}return r}),pz=Ae(function(r){return r.push(n,nv),Zt(Uv,n,r)});function hz(r,i){return X0(r,pe(i,3),Dn)}function gz(r,i){return X0(r,pe(i,3),Ac)}function mz(r,i){return r==null?r:xc(r,pe(i,3),Yt)}function yz(r,i){return r==null?r:Ty(r,pe(i,3),Yt)}function vz(r,i){return r&&Dn(r,pe(i,3))}function bz(r,i){return r&&Ac(r,pe(i,3))}function _z(r){return r==null?[]:ma(r,Ct(r))}function wz(r){return r==null?[]:ma(r,Yt(r))}function sf(r,i,l){var f=r==null?n:Jr(r,i);return f===n?l:f}function Tz(r,i){return r!=null&&ov(r,i,HN)}function af(r,i){return r!=null&&ov(r,i,YN)}var Sz=Zy(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=ra.call(i)),r[i]=l},uf(qt)),Cz=Zy(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=ra.call(i)),Ve.call(r,i)?r[i].push(l):r[i]=[l]},pe),Ez=Ae($o);function Ct(r){return Ht(r)?gy(r):$c(r)}function Yt(r){return Ht(r)?gy(r,!0):nL(r)}function xz(r,i){var l={};return i=pe(i,3),Dn(r,function(f,g,_){Jn(l,i(f,g,_),f)}),l}function Az(r,i){var l={};return i=pe(i,3),Dn(r,function(f,g,_){Jn(l,g,i(f,g,_))}),l}var Oz=zi(function(r,i,l){ya(r,i,l)}),Uv=zi(function(r,i,l,f){ya(r,i,l,f)}),Iz=Xn(function(r,i){var l={};if(r==null)return l;var f=!1;i=tt(i,function(_){return _=xr(_,r),f||(f=_.length>1),_}),kn(r,Hc(r),l),f&&(l=pn(l,m|b|C,SL));for(var g=i.length;g--;)Lc(l,i[g]);return l});function Pz(r,i){return jv(r,Ma(pe(i)))}var $z=Xn(function(r,i){return r==null?{}:iL(r,i)});function jv(r,i){if(r==null)return{};var l=tt(Hc(r),function(f){return[f]});return i=pe(i),My(r,l,function(f,g){return i(f,g[0])})}function Mz(r,i,l){i=xr(i,r);var f=-1,g=i.length;for(g||(g=1,r=n);++f<g;){var _=r==null?n:r[Nn(i[f])];_===n&&(f=g,_=l),r=er(_)?_.call(r):_}return r}function Fz(r,i,l){return r==null?r:Fo(r,i,l)}function Dz(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Fo(r,i,l,f)}var Wv=ev(Ct),Vv=ev(Yt);function kz(r,i,l){var f=we(r),g=f||Or(r)||ji(r);if(i=pe(i,4),l==null){var _=r&&r.constructor;g?l=f?new _:[]:rt(r)?l=er(_)?Li(sa(r)):{}:l={}}return(g?cn:Dn)(r,function(x,O,F){return i(l,x,O,F)}),l}function Nz(r,i){return r==null?!0:Lc(r,i)}function Lz(r,i,l){return r==null?r:Ly(r,i,Uc(l))}function zz(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Ly(r,i,Uc(l),f)}function Wi(r){return r==null?[]:vc(r,Ct(r))}function Bz(r){return r==null?[]:vc(r,Yt(r))}function Uz(r,i,l){return l===n&&(l=i,i=n),l!==n&&(l=mn(l),l=l===l?l:0),i!==n&&(i=mn(i),i=i===i?i:0),Kr(mn(r),i,l)}function jz(r,i,l){return i=tr(i),l===n?(l=i,i=0):l=tr(l),r=mn(r),qN(r,i,l)}function Wz(r,i,l){if(l&&typeof l!="boolean"&&Bt(r,i,l)&&(i=l=n),l===n&&(typeof i=="boolean"?(l=i,i=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&i===n?(r=0,i=1):(r=tr(r),i===n?(i=r,r=0):i=tr(i)),r>i){var f=r;r=i,i=f}if(l||r%1||i%1){var g=py();return $t(r+g*(i-r+_k("1e-"+((g+"").length-1))),i)}return Dc(r,i)}var Vz=Bi(function(r,i,l){return i=i.toLowerCase(),r+(l?Gv(i):i)});function Gv(r){return lf(je(r).toLowerCase())}function Hv(r){return r=je(r),r&&r.replace(le,Fk).replace(ck,"")}function Gz(r,i,l){r=je(r),i=Qt(i);var f=r.length;l=l===n?f:Kr(Se(l),0,f);var g=l;return l-=i.length,l>=0&&r.slice(l,g)==i}function Hz(r){return r=je(r),r&&tc.test(r)?r.replace(vr,Dk):r}function Yz(r){return r=je(r),r&&nc.test(r)?r.replace(Ai,"\\$&"):r}var qz=Bi(function(r,i,l){return r+(l?"-":"")+i.toLowerCase()}),Rz=Bi(function(r,i,l){return r+(l?" ":"")+i.toLowerCase()}),Kz=Ry("toLowerCase");function Jz(r,i,l){r=je(r),i=Se(i);var f=i?Mi(r):0;if(!i||f>=i)return r;var g=(i-f)/2;return Sa(ca(g),l)+r+Sa(ua(g),l)}function Zz(r,i,l){r=je(r),i=Se(i);var f=i?Mi(r):0;return i&&f<i?r+Sa(i-f,l):r}function Xz(r,i,l){r=je(r),i=Se(i);var f=i?Mi(r):0;return i&&f<i?Sa(i-f,l)+r:r}function Qz(r,i,l){return l||i==null?i=0:i&&(i=+i),sN(je(r).replace(Vt,""),i||0)}function eB(r,i,l){return(l?Bt(r,i,l):i===n)?i=1:i=Se(i),kc(je(r),i)}function tB(){var r=arguments,i=je(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var nB=Bi(function(r,i,l){return r+(l?"_":"")+i.toLowerCase()});function rB(r,i,l){return l&&typeof l!="number"&&Bt(r,i,l)&&(i=l=n),l=l===n?L:l>>>0,l?(r=je(r),r&&(typeof i=="string"||i!=null&&!of(i))&&(i=Qt(i),!i&&$i(r))?Ar(Sn(r),0,l):r.split(i,l)):[]}var iB=Bi(function(r,i,l){return r+(l?" ":"")+lf(i)});function oB(r,i,l){return r=je(r),l=l==null?0:Kr(Se(l),0,r.length),i=Qt(i),r.slice(l,l+i.length)==i}function sB(r,i,l){var f=v.templateSettings;l&&Bt(r,i,l)&&(i=n),r=je(r),i=ka({},i,f,tv);var g=ka({},i.imports,f.imports,tv),_=Ct(g),x=vc(g,_),O,F,V=0,G=i.interpolate||We,R="__p += '",re=_c((i.escape||We).source+"|"+G.source+"|"+(G===js?Rs:We).source+"|"+(i.evaluate||We).source+"|$","g"),ce="//# sourceURL="+(Ve.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gk+"]")+`
|
|
115
|
-
`;r.replace(re,function(me,Pe,Fe,tn,Ut,nn){return Fe||(Fe=tn),
|
|
134
|
+
`)}function UL(r){return Te(r)||ei(r)||!!(vy&&r&&r[vy])}function Qn(r,i){var l=typeof r;return i=i??Ie,!!i&&(l=="number"||l!="symbol"&&X.test(r))&&r>-1&&r%1==0&&r<i}function zt(r,i,l){if(!rt(l))return!1;var f=typeof i;return(f=="number"?Ht(l)&&Qn(i,l.length):f=="string"&&i in l)?En(l[i],r):!1}function tf(r,i){if(Te(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||en(r)?!0:_o.test(r)||!Gs.test(r)||i!=null&&r in Ke(i)}function jL(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function nf(r){var i=Aa(r),l=b[i];if(typeof l!="function"||!(i in $e.prototype))return!1;if(r===l)return!0;var f=Xc(l);return!!f&&r===f[0]}function WL(r){return!!py&&py in r}var VL=ra?er:_f;function Lo(r){var i=r&&r.constructor,l=typeof i=="function"&&i.prototype||ki;return r===l}function pv(r){return r===r&&!rt(r)}function gv(r,i){return function(l){return l==null?!1:l[r]===i&&(i!==n||r in Ke(l))}}function GL(r){var i=Fa(r,function(f){return l.size===p&&l.clear(),f}),l=i.cache;return i}function HL(r,i){var l=r[1],f=i[1],g=l|f,T=g<($|N|G),A=f==G&&l==H||f==G&&l==ae&&r[7].length<=i[8]||f==(G|ae)&&i[7].length<=i[8]&&l==H;if(!(T||A))return r;f&$&&(r[2]=i[2],g|=l&$?0:Q);var I=i[3];if(I){var F=r[3];r[3]=F?Zy(F,I,i[4]):I,r[4]=F?Sr(r[3],m):i[4]}return I=i[5],I&&(F=r[5],r[5]=F?Xy(F,I,i[6]):I,r[6]=F?Sr(r[5],m):i[6]),I=i[7],I&&(r[7]=I),f&G&&(r[8]=r[8]==null?i[8]:$t(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=g,r}function YL(r){var i=[];if(r!=null)for(var l in Ke(r))i.push(l);return i}function qL(r){return oa.call(r)}function mv(r,i,l){return i=_t(i===n?r.length-1:i,0),function(){for(var f=arguments,g=-1,T=_t(f.length-i,0),A=L(T);++g<T;)A[g]=f[i+g];g=-1;for(var I=L(i+1);++g<i;)I[g]=f[g];return I[i]=l(A),Zt(r,this,I)}}function yv(r,i){return i.length<2?r:Zr(r,pn(i,0,-1))}function KL(r,i){for(var l=r.length,f=$t(i.length,l),g=Gt(r);f--;){var T=i[f];r[f]=Qn(T,l)?g[T]:n}return r}function rf(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var vv=_v(jy),Bo=uN||function(r,i){return At.setTimeout(r,i)},of=_v(yL);function bv(r,i,l){var f=i+"";return of(r,zL(f,JL(NL(f),l)))}function _v(r){var i=0,l=0;return function(){var f=hN(),g=fe-(f-l);if(l=f,g>0){if(++i>=ne)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Ia(r,i){var l=-1,f=r.length,g=f-1;for(i=i===n?f:i;++l<i;){var T=Uc(l,g),A=r[T];r[T]=r[l],r[l]=A}return r.length=i,r}var Tv=GL(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(Hs,function(l,f,g,T){i.push(g?T.replace(Js,"$1"):f||l)}),i});function Nn(r){if(typeof r=="string"||en(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function Qr(r){if(r!=null){try{return ia.call(r)}catch{}try{return r+""}catch{}}return""}function JL(r,i){return cn(Y,function(l){var f="_."+l[0];i&l[1]&&!Qs(r,f)&&r.push(f)}),r.sort()}function wv(r){if(r instanceof $e)return r.clone();var i=new dn(r.__wrapped__,r.__chain__);return i.__actions__=Gt(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function RL(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=_t(Se(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var g=0,T=0,A=L(fa(f/i));g<f;)A[T++]=pn(r,g,g+=i);return A}function ZL(r){for(var i=-1,l=r==null?0:r.length,f=0,g=[];++i<l;){var T=r[i];T&&(g[f++]=T)}return g}function XL(){var r=arguments.length;if(!r)return[];for(var i=L(r-1),l=arguments[0],f=r;f--;)i[f-1]=arguments[f];return wr(Te(l)?Gt(l):[l],Ot(i,1))}var QL=xe(function(r,i){return ht(r)?Mo(r,Ot(i,1,ht,!0)):[]}),e5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?Mo(r,Ot(i,1,ht,!0),he(l,2)):[]}),t5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?Mo(r,Ot(i,1,ht,!0),n,l):[]});function n5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),pn(r,i<0?0:i,f)):[]}function r5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,0,i<0?0:i)):[]}function i5(r,i){return r&&r.length?Ta(r,he(i,3),!0,!0):[]}function o5(r,i){return r&&r.length?Ta(r,he(i,3),!0):[]}function s5(r,i,l,f){var g=r==null?0:r.length;return g?(l&&typeof l!="number"&&zt(r,i,l)&&(l=0,f=g),XN(r,i,l,f)):[]}function Sv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),ea(r,he(i,3),g)}function Cv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return l!==n&&(g=Se(l),g=l<0?_t(f+g,0):$t(g,f-1)),ea(r,he(i,3),g,!0)}function Ev(r){var i=r==null?0:r.length;return i?Ot(r,1):[]}function a5(r){var i=r==null?0:r.length;return i?Ot(r,Le):[]}function l5(r,i){var l=r==null?0:r.length;return l?(i=i===n?1:Se(i),Ot(r,i)):[]}function u5(r){for(var i=-1,l=r==null?0:r.length,f={};++i<l;){var g=r[i];f[g[0]]=g[1]}return f}function xv(r){return r&&r.length?r[0]:n}function c5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),$i(r,i,g)}function f5(r){var i=r==null?0:r.length;return i?pn(r,0,-1):[]}var d5=xe(function(r){var i=nt(r,Hc);return i.length&&i[0]===r[0]?kc(i):[]}),h5=xe(function(r){var i=gn(r),l=nt(r,Hc);return i===gn(l)?i=n:l.pop(),l.length&&l[0]===r[0]?kc(l,he(i,2)):[]}),p5=xe(function(r){var i=gn(r),l=nt(r,Hc);return i=typeof i=="function"?i:n,i&&l.pop(),l.length&&l[0]===r[0]?kc(l,n,i):[]});function g5(r,i){return r==null?"":fN.call(r,i)}function gn(r){var i=r==null?0:r.length;return i?r[i-1]:n}function m5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f;return l!==n&&(g=Se(l),g=g<0?_t(f+g,0):$t(g,f-1)),i===i?Jk(r,i,g):ea(r,sy,g,!0)}function y5(r,i){return r&&r.length?Ly(r,Se(i)):n}var v5=xe(Av);function Av(r,i){return r&&r.length&&i&&i.length?zc(r,i):r}function b5(r,i,l){return r&&r.length&&i&&i.length?zc(r,i,he(l,2)):r}function _5(r,i,l){return r&&r.length&&i&&i.length?zc(r,i,n,l):r}var T5=Xn(function(r,i){var l=r==null?0:r.length,f=$c(r,i);return Uy(r,nt(i,function(g){return Qn(g,l)?+g:g}).sort(Ry)),f});function w5(r,i){var l=[];if(!(r&&r.length))return l;var f=-1,g=[],T=r.length;for(i=he(i,3);++f<T;){var A=r[f];i(A,f,r)&&(l.push(A),g.push(f))}return Uy(r,g),l}function sf(r){return r==null?r:gN.call(r)}function S5(r,i,l){var f=r==null?0:r.length;return f?(l&&typeof l!="number"&&zt(r,i,l)?(i=0,l=f):(i=i==null?0:Se(i),l=l===n?f:Se(l)),pn(r,i,l)):[]}function C5(r,i){return _a(r,i)}function E5(r,i,l){return Wc(r,i,he(l,2))}function x5(r,i){var l=r==null?0:r.length;if(l){var f=_a(r,i);if(f<l&&En(r[f],i))return f}return-1}function A5(r,i){return _a(r,i,!0)}function O5(r,i,l){return Wc(r,i,he(l,2),!0)}function I5(r,i){var l=r==null?0:r.length;if(l){var f=_a(r,i,!0)-1;if(En(r[f],i))return f}return-1}function P5(r){return r&&r.length?Wy(r):[]}function $5(r,i){return r&&r.length?Wy(r,he(i,2)):[]}function M5(r){var i=r==null?0:r.length;return i?pn(r,1,i):[]}function F5(r,i,l){return r&&r.length?(i=l||i===n?1:Se(i),pn(r,0,i<0?0:i)):[]}function D5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,i<0?0:i,f)):[]}function k5(r,i){return r&&r.length?Ta(r,he(i,3),!1,!0):[]}function N5(r,i){return r&&r.length?Ta(r,he(i,3)):[]}var L5=xe(function(r){return xr(Ot(r,1,ht,!0))}),B5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),xr(Ot(r,1,ht,!0),he(i,2))}),z5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,xr(Ot(r,1,ht,!0),n,i)});function U5(r){return r&&r.length?xr(r):[]}function j5(r,i){return r&&r.length?xr(r,he(i,2)):[]}function W5(r,i){return i=typeof i=="function"?i:n,r&&r.length?xr(r,n,i):[]}function af(r){if(!(r&&r.length))return[];var i=0;return r=Tr(r,function(l){if(ht(l))return i=_t(l.length,i),!0}),Sc(i,function(l){return nt(r,_c(l))})}function Ov(r,i){if(!(r&&r.length))return[];var l=af(r);return i==null?l:nt(l,function(f){return Zt(i,n,f)})}var V5=xe(function(r,i){return ht(r)?Mo(r,i):[]}),G5=xe(function(r){return Gc(Tr(r,ht))}),H5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),Gc(Tr(r,ht),he(i,2))}),Y5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,Gc(Tr(r,ht),n,i)}),q5=xe(af);function K5(r,i){return Yy(r||[],i||[],$o)}function J5(r,i){return Yy(r||[],i||[],ko)}var R5=xe(function(r){var i=r.length,l=i>1?r[i-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Ov(r,l)});function Iv(r){var i=b(r);return i.__chain__=!0,i}function Z5(r,i){return i(r),r}function Pa(r,i){return i(r)}var X5=Xn(function(r){var i=r.length,l=i?r[0]:0,f=this.__wrapped__,g=function(T){return $c(T,r)};return i>1||this.__actions__.length||!(f instanceof $e)||!Qn(l)?this.thru(g):(f=f.slice(l,+l+(i?1:0)),f.__actions__.push({func:Pa,args:[g],thisArg:n}),new dn(f,this.__chain__).thru(function(T){return i&&!T.length&&T.push(n),T}))});function Q5(){return Iv(this)}function e4(){return new dn(this.value(),this.__chain__)}function t4(){this.__values__===n&&(this.__values__=Vv(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function n4(){return this}function r4(r){for(var i,l=this;l instanceof ga;){var f=wv(l);f.__index__=0,f.__values__=n,i?g.__wrapped__=f:i=f;var g=f;l=l.__wrapped__}return g.__wrapped__=r,i}function i4(){var r=this.__wrapped__;if(r instanceof $e){var i=r;return this.__actions__.length&&(i=new $e(this)),i=i.reverse(),i.__actions__.push({func:Pa,args:[sf],thisArg:n}),new dn(i,this.__chain__)}return this.thru(sf)}function o4(){return Hy(this.__wrapped__,this.__actions__)}var s4=wa(function(r,i,l){Ve.call(r,l)?++r[l]:Rn(r,l,1)});function a4(r,i,l){var f=Te(r)?iy:ZN;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}function l4(r,i){var l=Te(r)?Tr:Oy;return l(r,he(i,3))}var u4=nv(Sv),c4=nv(Cv);function f4(r,i){return Ot($a(r,i),1)}function d4(r,i){return Ot($a(r,i),Le)}function h4(r,i,l){return l=l===n?1:Se(l),Ot($a(r,i),l)}function Pv(r,i){var l=Te(r)?cn:Er;return l(r,he(i,3))}function $v(r,i){var l=Te(r)?Mk:Ay;return l(r,he(i,3))}var p4=wa(function(r,i,l){Ve.call(r,l)?r[l].push(i):Rn(r,l,[i])});function g4(r,i,l,f){r=Ht(r)?r:Vi(r),l=l&&!f?Se(l):0;var g=r.length;return l<0&&(l=_t(g+l,0)),Na(r)?l<=g&&r.indexOf(i,l)>-1:!!g&&$i(r,i,l)>-1}var m4=xe(function(r,i,l){var f=-1,g=typeof i=="function",T=Ht(r)?L(r.length):[];return Er(r,function(A){T[++f]=g?Zt(i,A,l):Fo(A,i,l)}),T}),y4=wa(function(r,i,l){Rn(r,l,i)});function $a(r,i){var l=Te(r)?nt:Dy;return l(r,he(i,3))}function v4(r,i,l,f){return r==null?[]:(Te(i)||(i=i==null?[]:[i]),l=f?n:l,Te(l)||(l=l==null?[]:[l]),By(r,i,l))}var b4=wa(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function _4(r,i,l){var f=Te(r)?vc:ly,g=arguments.length<3;return f(r,he(i,4),l,g,Er)}function T4(r,i,l){var f=Te(r)?Fk:ly,g=arguments.length<3;return f(r,he(i,4),l,g,Ay)}function w4(r,i){var l=Te(r)?Tr:Oy;return l(r,Da(he(i,3)))}function S4(r){var i=Te(r)?Sy:gL;return i(r)}function C4(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=Se(i);var f=Te(r)?YN:mL;return f(r,i)}function E4(r){var i=Te(r)?qN:vL;return i(r)}function x4(r){if(r==null)return 0;if(Ht(r))return Na(r)?Fi(r):r.length;var i=Mt(r);return i==Je||i==Wt?r.size:Lc(r).length}function A4(r,i,l){var f=Te(r)?bc:bL;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}var O4=xe(function(r,i){if(r==null)return[];var l=i.length;return l>1&&zt(r,i[0],i[1])?i=[]:l>2&&zt(i[0],i[1],i[2])&&(i=[i[0]]),By(r,Ot(i,1),[])}),Ma=lN||function(){return At.Date.now()};function I4(r,i){if(typeof i!="function")throw new fn(u);return r=Se(r),function(){if(--r<1)return i.apply(this,arguments)}}function Mv(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Zn(r,G,n,n,n,n,i)}function Fv(r,i){var l;if(typeof i!="function")throw new fn(u);return r=Se(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var lf=xe(function(r,i,l){var f=$;if(l.length){var g=Sr(l,ji(lf));f|=D}return Zn(r,f,i,l,g)}),Dv=xe(function(r,i,l){var f=$|N;if(l.length){var g=Sr(l,ji(Dv));f|=D}return Zn(i,f,r,l,g)});function kv(r,i,l){i=l?n:i;var f=Zn(r,H,n,n,n,n,n,i);return f.placeholder=kv.placeholder,f}function Nv(r,i,l){i=l?n:i;var f=Zn(r,B,n,n,n,n,n,i);return f.placeholder=Nv.placeholder,f}function Lv(r,i,l){var f,g,T,A,I,F,W=0,V=!1,J=!1,re=!0;if(typeof r!="function")throw new fn(u);i=mn(i)||0,rt(l)&&(V=!!l.leading,J="maxWait"in l,T=J?_t(mn(l.maxWait)||0,i):T,re="trailing"in l?!!l.trailing:re);function ce(pt){var xn=f,nr=g;return f=g=n,W=pt,A=r.apply(nr,xn),A}function ge(pt){return W=pt,I=Bo(Pe,i),V?ce(pt):A}function Ee(pt){var xn=pt-F,nr=pt-W,nb=i-xn;return J?$t(nb,T-nr):nb}function me(pt){var xn=pt-F,nr=pt-W;return F===n||xn>=i||xn<0||J&&nr>=T}function Pe(){var pt=Ma();if(me(pt))return Fe(pt);I=Bo(Pe,Ee(pt))}function Fe(pt){return I=n,re&&f?ce(pt):(f=g=n,A)}function tn(){I!==n&&qy(I),W=0,f=F=g=I=n}function Ut(){return I===n?A:Fe(Ma())}function nn(){var pt=Ma(),xn=me(pt);if(f=arguments,g=this,F=pt,xn){if(I===n)return ge(F);if(J)return qy(I),I=Bo(Pe,i),ce(F)}return I===n&&(I=Bo(Pe,i)),A}return nn.cancel=tn,nn.flush=Ut,nn}var P4=xe(function(r,i){return xy(r,1,i)}),$4=xe(function(r,i,l){return xy(r,mn(i)||0,l)});function M4(r){return Zn(r,ie)}function Fa(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new fn(u);var l=function(){var f=arguments,g=i?i.apply(this,f):f[0],T=l.cache;if(T.has(g))return T.get(g);var A=r.apply(this,f);return l.cache=T.set(g,A)||T,A};return l.cache=new(Fa.Cache||Jn),l}Fa.Cache=Jn;function Da(r){if(typeof r!="function")throw new fn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function F4(r){return Fv(2,r)}var D4=_L(function(r,i){i=i.length==1&&Te(i[0])?nt(i[0],Xt(he())):nt(Ot(i,1),Xt(he()));var l=i.length;return xe(function(f){for(var g=-1,T=$t(f.length,l);++g<T;)f[g]=i[g].call(this,f[g]);return Zt(r,this,f)})}),uf=xe(function(r,i){var l=Sr(i,ji(uf));return Zn(r,D,n,i,l)}),Bv=xe(function(r,i){var l=Sr(i,ji(Bv));return Zn(r,k,n,i,l)}),k4=Xn(function(r,i){return Zn(r,ae,n,n,n,i)});function N4(r,i){if(typeof r!="function")throw new fn(u);return i=i===n?i:Se(i),xe(r,i)}function L4(r,i){if(typeof r!="function")throw new fn(u);return i=i==null?0:_t(Se(i),0),xe(function(l){var f=l[i],g=Or(l,0,i);return f&&wr(g,f),Zt(r,this,g)})}function B4(r,i,l){var f=!0,g=!0;if(typeof r!="function")throw new fn(u);return rt(l)&&(f="leading"in l?!!l.leading:f,g="trailing"in l?!!l.trailing:g),Lv(r,i,{leading:f,maxWait:i,trailing:g})}function z4(r){return Mv(r,1)}function U4(r,i){return uf(Yc(i),r)}function j4(){if(!arguments.length)return[];var r=arguments[0];return Te(r)?r:[r]}function W4(r){return hn(r,C)}function V4(r,i){return i=typeof i=="function"?i:n,hn(r,C,i)}function G4(r){return hn(r,y|C)}function H4(r,i){return i=typeof i=="function"?i:n,hn(r,y|C,i)}function Y4(r,i){return i==null||Ey(r,i,Et(i))}function En(r,i){return r===i||r!==r&&i!==i}var q4=xa(Dc),K4=xa(function(r,i){return r>=i}),ei=$y(function(){return arguments}())?$y:function(r){return ct(r)&&Ve.call(r,"callee")&&!yy.call(r,"callee")},Te=L.isArray,J4=X0?Xt(X0):rL;function Ht(r){return r!=null&&ka(r.length)&&!er(r)}function ht(r){return ct(r)&&Ht(r)}function R4(r){return r===!0||r===!1||ct(r)&&Bt(r)==be}var Ir=cN||_f,Z4=Q0?Xt(Q0):iL;function X4(r){return ct(r)&&r.nodeType===1&&!zo(r)}function Q4(r){if(r==null)return!0;if(Ht(r)&&(Te(r)||typeof r=="string"||typeof r.splice=="function"||Ir(r)||Wi(r)||ei(r)))return!r.length;var i=Mt(r);if(i==Je||i==Wt)return!r.size;if(Lo(r))return!Lc(r).length;for(var l in r)if(Ve.call(r,l))return!1;return!0}function e3(r,i){return Do(r,i)}function t3(r,i,l){l=typeof l=="function"?l:n;var f=l?l(r,i):n;return f===n?Do(r,i,n,l):!!f}function cf(r){if(!ct(r))return!1;var i=Bt(r);return i==tt||i==Ce||typeof r.message=="string"&&typeof r.name=="string"&&!zo(r)}function n3(r){return typeof r=="number"&&by(r)}function er(r){if(!rt(r))return!1;var i=Bt(r);return i==te||i==yt||i==ve||i==Yn}function zv(r){return typeof r=="number"&&r==Se(r)}function ka(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ie}function rt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function ct(r){return r!=null&&typeof r=="object"}var Uv=ey?Xt(ey):sL;function r3(r,i){return r===i||Nc(r,i,Qc(i))}function i3(r,i,l){return l=typeof l=="function"?l:n,Nc(r,i,Qc(i),l)}function o3(r){return jv(r)&&r!=+r}function s3(r){if(VL(r))throw new _e(a);return My(r)}function a3(r){return r===null}function l3(r){return r==null}function jv(r){return typeof r=="number"||ct(r)&&Bt(r)==Lt}function zo(r){if(!ct(r)||Bt(r)!=vt)return!1;var i=la(r);if(i===null)return!0;var l=Ve.call(i,"constructor")&&i.constructor;return typeof l=="function"&&l instanceof l&&ia.call(l)==iN}var ff=ty?Xt(ty):aL;function u3(r){return zv(r)&&r>=-9007199254740991&&r<=Ie}var Wv=ny?Xt(ny):lL;function Na(r){return typeof r=="string"||!Te(r)&&ct(r)&&Bt(r)==Ur}function en(r){return typeof r=="symbol"||ct(r)&&Bt(r)==pr}var Wi=ry?Xt(ry):uL;function c3(r){return r===n}function f3(r){return ct(r)&&Mt(r)==an}function d3(r){return ct(r)&&Bt(r)==gr}var h3=xa(Bc),p3=xa(function(r,i){return r<=i});function Vv(r){if(!r)return[];if(Ht(r))return Na(r)?Sn(r):Gt(r);if(xo&&r[xo])return Yk(r[xo]());var i=Mt(r),l=i==Je?Ec:i==Wt?ta:Vi;return l(r)}function tr(r){if(!r)return r===0?r:0;if(r=mn(r),r===Le||r===-1/0){var i=r<0?-1:1;return i*lt}return r===r?r:0}function Se(r){var i=tr(r),l=i%1;return i===i?l?i-l:i:0}function Gv(r){return r?Rr(Se(r),0,K):0}function mn(r){if(typeof r=="number")return r;if(en(r))return q;if(rt(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=rt(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=uy(r);var l=uc.test(r);return l||P.test(r)?Ik(r.slice(2),l?2:8):Zs.test(r)?q:+r}function Hv(r){return kn(r,Yt(r))}function g3(r){return r?Rr(Se(r),-9007199254740991,Ie):r===0?r:0}function je(r){return r==null?"":Qt(r)}var m3=zi(function(r,i){if(Lo(i)||Ht(i)){kn(i,Et(i),r);return}for(var l in i)Ve.call(i,l)&&$o(r,l,i[l])}),Yv=zi(function(r,i){kn(i,Yt(i),r)}),La=zi(function(r,i,l,f){kn(i,Yt(i),r,f)}),y3=zi(function(r,i,l,f){kn(i,Et(i),r,f)}),v3=Xn($c);function b3(r,i){var l=Bi(r);return i==null?l:Cy(l,i)}var _3=xe(function(r,i){r=Ke(r);var l=-1,f=i.length,g=f>2?i[2]:n;for(g&&zt(i[0],i[1],g)&&(f=1);++l<f;)for(var T=i[l],A=Yt(T),I=-1,F=A.length;++I<F;){var W=A[I],V=r[W];(V===n||En(V,ki[W])&&!Ve.call(r,W))&&(r[W]=T[W])}return r}),T3=xe(function(r){return r.push(n,uv),Zt(qv,n,r)});function w3(r,i){return oy(r,he(i,3),Dn)}function S3(r,i){return oy(r,he(i,3),Fc)}function C3(r,i){return r==null?r:Mc(r,he(i,3),Yt)}function E3(r,i){return r==null?r:Iy(r,he(i,3),Yt)}function x3(r,i){return r&&Dn(r,he(i,3))}function A3(r,i){return r&&Fc(r,he(i,3))}function O3(r){return r==null?[]:va(r,Et(r))}function I3(r){return r==null?[]:va(r,Yt(r))}function df(r,i,l){var f=r==null?n:Zr(r,i);return f===n?l:f}function P3(r,i){return r!=null&&dv(r,i,QN)}function hf(r,i){return r!=null&&dv(r,i,eL)}var $3=iv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=oa.call(i)),r[i]=l},gf(qt)),M3=iv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=oa.call(i)),Ve.call(r,i)?r[i].push(l):r[i]=[l]},he),F3=xe(Fo);function Et(r){return Ht(r)?wy(r):Lc(r)}function Yt(r){return Ht(r)?wy(r,!0):cL(r)}function D3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,i(f,g,T),f)}),l}function k3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,g,i(f,g,T))}),l}var N3=zi(function(r,i,l){ba(r,i,l)}),qv=zi(function(r,i,l,f){ba(r,i,l,f)}),L3=Xn(function(r,i){var l={};if(r==null)return l;var f=!1;i=nt(i,function(T){return T=Ar(T,r),f||(f=T.length>1),T}),kn(r,Zc(r),l),f&&(l=hn(l,y|_|C,$L));for(var g=i.length;g--;)Vc(l,i[g]);return l});function B3(r,i){return Kv(r,Da(he(i)))}var z3=Xn(function(r,i){return r==null?{}:dL(r,i)});function Kv(r,i){if(r==null)return{};var l=nt(Zc(r),function(f){return[f]});return i=he(i),zy(r,l,function(f,g){return i(f,g[0])})}function U3(r,i,l){i=Ar(i,r);var f=-1,g=i.length;for(g||(g=1,r=n);++f<g;){var T=r==null?n:r[Nn(i[f])];T===n&&(f=g,T=l),r=er(T)?T.call(r):T}return r}function j3(r,i,l){return r==null?r:ko(r,i,l)}function W3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:ko(r,i,l,f)}var Jv=av(Et),Rv=av(Yt);function V3(r,i,l){var f=Te(r),g=f||Ir(r)||Wi(r);if(i=he(i,4),l==null){var T=r&&r.constructor;g?l=f?new T:[]:rt(r)?l=er(T)?Bi(la(r)):{}:l={}}return(g?cn:Dn)(r,function(A,I,F){return i(l,A,I,F)}),l}function G3(r,i){return r==null?!0:Vc(r,i)}function H3(r,i,l){return r==null?r:Gy(r,i,Yc(l))}function Y3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Gy(r,i,Yc(l),f)}function Vi(r){return r==null?[]:Cc(r,Et(r))}function q3(r){return r==null?[]:Cc(r,Yt(r))}function K3(r,i,l){return l===n&&(l=i,i=n),l!==n&&(l=mn(l),l=l===l?l:0),i!==n&&(i=mn(i),i=i===i?i:0),Rr(mn(r),i,l)}function J3(r,i,l){return i=tr(i),l===n?(l=i,i=0):l=tr(l),r=mn(r),tL(r,i,l)}function R3(r,i,l){if(l&&typeof l!="boolean"&&zt(r,i,l)&&(i=l=n),l===n&&(typeof i=="boolean"?(l=i,i=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&i===n?(r=0,i=1):(r=tr(r),i===n?(i=r,r=0):i=tr(i)),r>i){var f=r;r=i,i=f}if(l||r%1||i%1){var g=_y();return $t(r+g*(i-r+Ok("1e-"+((g+"").length-1))),i)}return Uc(r,i)}var Z3=Ui(function(r,i,l){return i=i.toLowerCase(),r+(l?Zv(i):i)});function Zv(r){return pf(je(r).toLowerCase())}function Xv(r){return r=je(r),r&&r.replace(le,jk).replace(vk,"")}function X3(r,i,l){r=je(r),i=Qt(i);var f=r.length;l=l===n?f:Rr(Se(l),0,f);var g=l;return l-=i.length,l>=0&&r.slice(l,g)==i}function Q3(r){return r=je(r),r&&ac.test(r)?r.replace(br,Wk):r}function eB(r){return r=je(r),r&&lc.test(r)?r.replace(Oi,"\\$&"):r}var tB=Ui(function(r,i,l){return r+(l?"-":"")+i.toLowerCase()}),nB=Ui(function(r,i,l){return r+(l?" ":"")+i.toLowerCase()}),rB=tv("toLowerCase");function iB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;if(!i||f>=i)return r;var g=(i-f)/2;return Ea(da(g),l)+r+Ea(fa(g),l)}function oB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?r+Ea(i-f,l):r}function sB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?Ea(i-f,l)+r:r}function aB(r,i,l){return l||i==null?i=0:i&&(i=+i),pN(je(r).replace(Vt,""),i||0)}function lB(r,i,l){return(l?zt(r,i,l):i===n)?i=1:i=Se(i),jc(je(r),i)}function uB(){var r=arguments,i=je(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var cB=Ui(function(r,i,l){return r+(l?"_":"")+i.toLowerCase()});function fB(r,i,l){return l&&typeof l!="number"&&zt(r,i,l)&&(i=l=n),l=l===n?K:l>>>0,l?(r=je(r),r&&(typeof i=="string"||i!=null&&!ff(i))&&(i=Qt(i),!i&&Mi(r))?Or(Sn(r),0,l):r.split(i,l)):[]}var dB=Ui(function(r,i,l){return r+(l?" ":"")+pf(i)});function hB(r,i,l){return r=je(r),l=l==null?0:Rr(Se(l),0,r.length),i=Qt(i),r.slice(l,l+i.length)==i}function pB(r,i,l){var f=b.templateSettings;l&&zt(r,i,l)&&(i=n),r=je(r),i=La({},i,f,lv);var g=La({},i.imports,f.imports,lv),T=Et(g),A=Cc(g,T),I,F,W=0,V=i.interpolate||We,J="__p += '",re=xc((i.escape||We).source+"|"+V.source+"|"+(V===Vs?Rs:We).source+"|"+(i.evaluate||We).source+"|$","g"),ce="//# sourceURL="+(Ve.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sk+"]")+`
|
|
135
|
+
`;r.replace(re,function(me,Pe,Fe,tn,Ut,nn){return Fe||(Fe=tn),J+=r.slice(W,nn).replace(St,Vk),Pe&&(I=!0,J+=`' +
|
|
116
136
|
__e(`+Pe+`) +
|
|
117
|
-
'`),Ut&&(F=!0,
|
|
137
|
+
'`),Ut&&(F=!0,J+=`';
|
|
118
138
|
`+Ut+`;
|
|
119
|
-
__p += '`),Fe&&(
|
|
139
|
+
__p += '`),Fe&&(J+=`' +
|
|
120
140
|
((__t = (`+Fe+`)) == null ? '' : __t) +
|
|
121
|
-
'`),
|
|
122
|
-
`;var ge=Ve.call(i,"variable")&&i.variable;if(!ge)
|
|
123
|
-
`+
|
|
141
|
+
'`),W=nn+me.length,me}),J+=`';
|
|
142
|
+
`;var ge=Ve.call(i,"variable")&&i.variable;if(!ge)J=`with (obj) {
|
|
143
|
+
`+J+`
|
|
124
144
|
}
|
|
125
|
-
`;else if(
|
|
145
|
+
`;else if(wn.test(ge))throw new _e(c);J=(F?J.replace(oc,""):J).replace(xi,"$1").replace(Ai,"$1;"),J="function("+(ge||"obj")+`) {
|
|
126
146
|
`+(ge?"":`obj || (obj = {});
|
|
127
|
-
`)+"var __t, __p = ''"+(
|
|
147
|
+
`)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(F?`, __j = Array.prototype.join;
|
|
128
148
|
function print() { __p += __j.call(arguments, '') }
|
|
129
149
|
`:`;
|
|
130
|
-
`)+
|
|
131
|
-
}`;var xe=qv(function(){return ze(_,ce+"return "+R).apply(n,x)});if(xe.source=R,rf(xe))throw xe;return xe}function aB(r){return je(r).toLowerCase()}function lB(r){return je(r).toUpperCase()}function uB(r,i,l){if(r=je(r),r&&(l||i===n))return ny(r);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=Sn(i),_=ry(f,g),x=iy(f,g)+1;return Ar(f,_,x).join("")}function cB(r,i,l){if(r=je(r),r&&(l||i===n))return r.slice(0,sy(r)+1);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=iy(f,Sn(i))+1;return Ar(f,0,g).join("")}function fB(r,i,l){if(r=je(r),r&&(l||i===n))return r.replace(Vt,"");if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=ry(f,Sn(i));return Ar(f,g).join("")}function dB(r,i){var l=S,f=j;if(rt(i)){var g="separator"in i?i.separator:g;l="length"in i?Se(i.length):l,f="omission"in i?Qt(i.omission):f}r=je(r);var _=r.length;if($i(r)){var x=Sn(r);_=x.length}if(l>=_)return r;var O=l-Mi(f);if(O<1)return f;var F=x?Ar(x,0,O).join(""):r.slice(0,O);if(g===n)return F+f;if(x&&(O+=F.length-O),of(g)){if(r.slice(O).search(g)){var V,G=F;for(g.global||(g=_c(g.source,je(_o.exec(g))+"g")),g.lastIndex=0;V=g.exec(G);)var R=V.index;F=F.slice(0,R===n?O:R)}}else if(r.indexOf(Qt(g),O)!=O){var re=F.lastIndexOf(g);re>-1&&(F=F.slice(0,re))}return F+f}function pB(r){return r=je(r),r&&ec.test(r)?r.replace(Us,Wk):r}var hB=Bi(function(r,i,l){return r+(l?" ":"")+i.toUpperCase()}),lf=Ry("toUpperCase");function Yv(r,i,l){return r=je(r),i=l?n:i,i===n?Lk(r)?Hk(r):Ok(r):r.match(i)||[]}var qv=Ae(function(r,i){try{return Zt(r,n,i)}catch(l){return rf(l)?l:new _e(l)}}),gB=Xn(function(r,i){return cn(i,function(l){l=Nn(l),Jn(r,l,tf(r[l],r))}),r});function mB(r){var i=r==null?0:r.length,l=pe();return r=i?tt(r,function(f){if(typeof f[1]!="function")throw new fn(u);return[l(f[0]),f[1]]}):[],Ae(function(f){for(var g=-1;++g<i;){var _=r[g];if(Zt(_[0],this,f))return Zt(_[1],this,f)}})}function yB(r){return WN(pn(r,m))}function uf(r){return function(){return r}}function vB(r,i){return r==null||r!==r?i:r}var bB=Jy(),_B=Jy(!0);function qt(r){return r}function cf(r){return xy(typeof r=="function"?r:pn(r,m))}function wB(r){return Oy(pn(r,m))}function TB(r,i){return Iy(r,pn(i,m))}var SB=Ae(function(r,i){return function(l){return $o(l,r,i)}}),CB=Ae(function(r,i){return function(l){return $o(r,l,i)}});function ff(r,i,l){var f=Ct(i),g=ma(i,f);l==null&&!(rt(i)&&(g.length||!f.length))&&(l=i,i=r,r=this,g=ma(i,Ct(i)));var _=!(rt(l)&&"chain"in l)||!!l.chain,x=er(r);return cn(g,function(O){var F=i[O];r[O]=F,x&&(r.prototype[O]=function(){var V=this.__chain__;if(_||V){var G=r(this.__wrapped__),R=G.__actions__=Gt(this.__actions__);return R.push({func:F,args:arguments,thisArg:r}),G.__chain__=V,G}return F.apply(r,wr([this.value()],arguments))})}),r}function EB(){return xt._===this&&(xt._=Zk),this}function df(){}function xB(r){return r=Se(r),Ae(function(i){return Py(i,r)})}var AB=Wc(tt),OB=Wc(Z0),IB=Wc(pc);function Rv(r){return Kc(r)?hc(Nn(r)):oL(r)}function PB(r){return function(i){return r==null?n:Jr(r,i)}}var $B=Xy(),MB=Xy(!0);function pf(){return[]}function hf(){return!1}function FB(){return{}}function DB(){return""}function kB(){return!0}function NB(r,i){if(r=Se(r),r<1||r>Ce)return[];var l=L,f=$t(r,L);i=pe(i),r-=L;for(var g=yc(f,i);++l<r;)i(l);return g}function LB(r){return we(r)?tt(r,Nn):en(r)?[r]:Gt(hv(je(r)))}function zB(r){var i=++Kk;return je(r)+i}var BB=Ta(function(r,i){return r+i},0),UB=Vc("ceil"),jB=Ta(function(r,i){return r/i},1),WB=Vc("floor");function VB(r){return r&&r.length?ga(r,qt,Oc):n}function GB(r,i){return r&&r.length?ga(r,pe(i,2),Oc):n}function HB(r){return ey(r,qt)}function YB(r,i){return ey(r,pe(i,2))}function qB(r){return r&&r.length?ga(r,qt,Mc):n}function RB(r,i){return r&&r.length?ga(r,pe(i,2),Mc):n}var KB=Ta(function(r,i){return r*i},1),JB=Vc("round"),ZB=Ta(function(r,i){return r-i},0);function XB(r){return r&&r.length?mc(r,qt):0}function QB(r,i){return r&&r.length?mc(r,pe(i,2)):0}return v.after=w3,v.ary=Ev,v.assign=lz,v.assignIn=Bv,v.assignInWith=ka,v.assignWith=uz,v.at=cz,v.before=xv,v.bind=tf,v.bindAll=gB,v.bindKey=Av,v.castArray=F3,v.chain=Tv,v.chunk=WL,v.compact=VL,v.concat=GL,v.cond=mB,v.conforms=yB,v.constant=uf,v.countBy=X5,v.create=fz,v.curry=Ov,v.curryRight=Iv,v.debounce=Pv,v.defaults=dz,v.defaultsDeep=pz,v.defer=T3,v.delay=S3,v.difference=HL,v.differenceBy=YL,v.differenceWith=qL,v.drop=RL,v.dropRight=KL,v.dropRightWhile=JL,v.dropWhile=ZL,v.fill=XL,v.filter=e3,v.flatMap=r3,v.flatMapDeep=i3,v.flatMapDepth=o3,v.flatten=vv,v.flattenDeep=QL,v.flattenDepth=e5,v.flip=C3,v.flow=bB,v.flowRight=_B,v.fromPairs=t5,v.functions=_z,v.functionsIn=wz,v.groupBy=s3,v.initial=r5,v.intersection=i5,v.intersectionBy=o5,v.intersectionWith=s5,v.invert=Sz,v.invertBy=Cz,v.invokeMap=l3,v.iteratee=cf,v.keyBy=u3,v.keys=Ct,v.keysIn=Yt,v.map=Ia,v.mapKeys=xz,v.mapValues=Az,v.matches=wB,v.matchesProperty=TB,v.memoize=$a,v.merge=Oz,v.mergeWith=Uv,v.method=SB,v.methodOf=CB,v.mixin=ff,v.negate=Ma,v.nthArg=xB,v.omit=Iz,v.omitBy=Pz,v.once=E3,v.orderBy=c3,v.over=AB,v.overArgs=x3,v.overEvery=OB,v.overSome=IB,v.partial=nf,v.partialRight=$v,v.partition=f3,v.pick=$z,v.pickBy=jv,v.property=Rv,v.propertyOf=PB,v.pull=c5,v.pullAll=_v,v.pullAllBy=f5,v.pullAllWith=d5,v.pullAt=p5,v.range=$B,v.rangeRight=MB,v.rearg=A3,v.reject=h3,v.remove=h5,v.rest=O3,v.reverse=Qc,v.sampleSize=m3,v.set=Fz,v.setWith=Dz,v.shuffle=y3,v.slice=g5,v.sortBy=_3,v.sortedUniq=T5,v.sortedUniqBy=S5,v.split=rB,v.spread=I3,v.tail=C5,v.take=E5,v.takeRight=x5,v.takeRightWhile=A5,v.takeWhile=O5,v.tap=V5,v.throttle=P3,v.thru=Oa,v.toArray=Nv,v.toPairs=Wv,v.toPairsIn=Vv,v.toPath=LB,v.toPlainObject=zv,v.transform=kz,v.unary=$3,v.union=I5,v.unionBy=P5,v.unionWith=$5,v.uniq=M5,v.uniqBy=F5,v.uniqWith=D5,v.unset=Nz,v.unzip=ef,v.unzipWith=wv,v.update=Lz,v.updateWith=zz,v.values=Wi,v.valuesIn=Bz,v.without=k5,v.words=Yv,v.wrap=M3,v.xor=N5,v.xorBy=L5,v.xorWith=z5,v.zip=B5,v.zipObject=U5,v.zipObjectDeep=j5,v.zipWith=W5,v.entries=Wv,v.entriesIn=Vv,v.extend=Bv,v.extendWith=ka,ff(v,v),v.add=BB,v.attempt=qv,v.camelCase=Vz,v.capitalize=Gv,v.ceil=UB,v.clamp=Uz,v.clone=D3,v.cloneDeep=N3,v.cloneDeepWith=L3,v.cloneWith=k3,v.conformsTo=z3,v.deburr=Hv,v.defaultTo=vB,v.divide=jB,v.endsWith=Gz,v.eq=En,v.escape=Hz,v.escapeRegExp=Yz,v.every=Q5,v.find=t3,v.findIndex=mv,v.findKey=hz,v.findLast=n3,v.findLastIndex=yv,v.findLastKey=gz,v.floor=WB,v.forEach=Sv,v.forEachRight=Cv,v.forIn=mz,v.forInRight=yz,v.forOwn=vz,v.forOwnRight=bz,v.get=sf,v.gt=B3,v.gte=U3,v.has=Tz,v.hasIn=af,v.head=bv,v.identity=qt,v.includes=a3,v.indexOf=n5,v.inRange=jz,v.invoke=Ez,v.isArguments=Qr,v.isArray=we,v.isArrayBuffer=j3,v.isArrayLike=Ht,v.isArrayLikeObject=ct,v.isBoolean=W3,v.isBuffer=Or,v.isDate=V3,v.isElement=G3,v.isEmpty=H3,v.isEqual=Y3,v.isEqualWith=q3,v.isError=rf,v.isFinite=R3,v.isFunction=er,v.isInteger=Mv,v.isLength=Fa,v.isMap=Fv,v.isMatch=K3,v.isMatchWith=J3,v.isNaN=Z3,v.isNative=X3,v.isNil=ez,v.isNull=Q3,v.isNumber=Dv,v.isObject=rt,v.isObjectLike=at,v.isPlainObject=Lo,v.isRegExp=of,v.isSafeInteger=tz,v.isSet=kv,v.isString=Da,v.isSymbol=en,v.isTypedArray=ji,v.isUndefined=nz,v.isWeakMap=rz,v.isWeakSet=iz,v.join=a5,v.kebabCase=qz,v.last=gn,v.lastIndexOf=l5,v.lowerCase=Rz,v.lowerFirst=Kz,v.lt=oz,v.lte=sz,v.max=VB,v.maxBy=GB,v.mean=HB,v.meanBy=YB,v.min=qB,v.minBy=RB,v.stubArray=pf,v.stubFalse=hf,v.stubObject=FB,v.stubString=DB,v.stubTrue=kB,v.multiply=KB,v.nth=u5,v.noConflict=EB,v.noop=df,v.now=Pa,v.pad=Jz,v.padEnd=Zz,v.padStart=Xz,v.parseInt=Qz,v.random=Wz,v.reduce=d3,v.reduceRight=p3,v.repeat=eB,v.replace=tB,v.result=Mz,v.round=JB,v.runInContext=M,v.sample=g3,v.size=v3,v.snakeCase=nB,v.some=b3,v.sortedIndex=m5,v.sortedIndexBy=y5,v.sortedIndexOf=v5,v.sortedLastIndex=b5,v.sortedLastIndexBy=_5,v.sortedLastIndexOf=w5,v.startCase=iB,v.startsWith=oB,v.subtract=ZB,v.sum=XB,v.sumBy=QB,v.template=sB,v.times=NB,v.toFinite=tr,v.toInteger=Se,v.toLength=Lv,v.toLower=aB,v.toNumber=mn,v.toSafeInteger=az,v.toString=je,v.toUpper=lB,v.trim=uB,v.trimEnd=cB,v.trimStart=fB,v.truncate=dB,v.unescape=pB,v.uniqueId=zB,v.upperCase=hB,v.upperFirst=lf,v.each=Sv,v.eachRight=Cv,v.first=bv,ff(v,function(){var r={};return Dn(v,function(i,l){Ve.call(v.prototype,l)||(r[l]=i)}),r}(),{chain:!1}),v.VERSION=o,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){v[r].placeholder=v}),cn(["drop","take"],function(r,i){$e.prototype[r]=function(l){l=l===n?1:bt(Se(l),0);var f=this.__filtered__&&!i?new $e(this):this.clone();return f.__filtered__?f.__takeCount__=$t(l,f.__takeCount__):f.__views__.push({size:$t(l,L),type:r+(f.__dir__<0?"Right":"")}),f},$e.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),cn(["filter","map","takeWhile"],function(r,i){var l=i+1,f=l==ye||l==Te;$e.prototype[r]=function(g){var _=this.clone();return _.__iteratees__.push({iteratee:pe(g,3),type:l}),_.__filtered__=_.__filtered__||f,_}}),cn(["head","last"],function(r,i){var l="take"+(i?"Right":"");$e.prototype[r]=function(){return this[l](1).value()[0]}}),cn(["initial","tail"],function(r,i){var l="drop"+(i?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[l](1)}}),$e.prototype.compact=function(){return this.filter(qt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=Ae(function(r,i){return typeof r=="function"?new $e(this):this.map(function(l){return $o(l,r,i)})}),$e.prototype.reject=function(r){return this.filter(Ma(pe(r)))},$e.prototype.slice=function(r,i){r=Se(r);var l=this;return l.__filtered__&&(r>0||i<0)?new $e(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=Se(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(L)},Dn($e.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),g=v[f?"take"+(i=="last"?"Right":""):i],_=f||/^find/.test(i);g&&(v.prototype[i]=function(){var x=this.__wrapped__,O=f?[1]:arguments,F=x instanceof $e,V=O[0],G=F||we(x),R=function(Pe){var Fe=g.apply(v,wr([Pe],O));return f&&re?Fe[0]:Fe};G&&l&&typeof V=="function"&&V.length!=1&&(F=G=!1);var re=this.__chain__,ce=!!this.__actions__.length,ge=_&&!re,xe=F&&!ce;if(!_&&G){x=xe?x:new $e(this);var me=r.apply(x,O);return me.__actions__.push({func:Oa,args:[R],thisArg:n}),new dn(me,re)}return ge&&xe?r.apply(this,O):(me=this.thru(R),ge?f?me.value()[0]:me.value():me)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var i=ea[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var _=this.value();return i.apply(we(_)?_:[],g)}return this[l](function(x){return i.apply(we(x)?x:[],g)})}}),Dn($e.prototype,function(r,i){var l=v[i];if(l){var f=l.name+"";Ve.call(Ni,f)||(Ni[f]=[]),Ni[f].push({name:i,func:l})}}),Ni[wa(n,N).name]=[{name:"wrapper",func:n}],$e.prototype.clone=pN,$e.prototype.reverse=hN,$e.prototype.value=gN,v.prototype.at=G5,v.prototype.chain=H5,v.prototype.commit=Y5,v.prototype.next=q5,v.prototype.plant=K5,v.prototype.reverse=J5,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Z5,v.prototype.first=v.prototype.head,Co&&(v.prototype[Co]=R5),v},Fi=Yk();Hr?((Hr.exports=Fi)._=Fi,uc._=Fi):xt._=Fi}).call(Un)}(cs,cs.exports);var OS=cs.exports;function Op(e){const{renderers:t,cells:n,uischemas:o,schema:s,label:a,path:u,visible:c,enabled:d,uischema:h,rootSchema:y}=e,m=A.useMemo(()=>ue.findUISchema(o,s,h.scope,u,()=>OS.isEmpty(u)?ue.Generate.uiSchema(s,"VerticalLayout",void 0,y):{...ue.Generate.uiSchema(s,"Group",void 0,y),label:a},h,y),[o,s,u,a,h,y]);return c?p.jsx(De.JsonFormsDispatch,{visible:c,enabled:d,schema:s,uischema:m,path:u,renderers:t,cells:n}):null}function Gl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=us(o,s),u=A.useMemo(()=>{var b;const y=o===null,m=(b=t.error)==null?void 0:b.filter(C=>C.key==="is a required property"||!y?C:!1);return m!=null&&m.length?{error:m}:{error:y&&t.required?"is a required property":void 0}},[t.error,t.required,o]),c=A.useMemo(()=>({...t,...a,...u}),[t,u,a]),[d,h]=_n("OneOfEnum",n,c,e);return d===void 0?p.jsx(w.Select,{...h}):d}function Hl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=Ep({data:o,onChange:t.onChange}),u=A.useMemo(()=>({...t,...a}),[t,a]),[c,d]=_n("Text",n,u,e);return c===void 0?s.format==="password"?p.jsx(w.PasswordInput,{...d}):p.jsx(w.TextInput,{...d}):c}const Ip=ue.rankWith(1,ue.isBooleanControl),Pp=De.withJsonFormsCellProps(e=>p.jsx(Ul,{...e})),$p=ue.rankWith(1,ue.isDateControl),Mp=De.withJsonFormsCellProps(e=>p.jsx(jl,{...e})),Fp=ue.rankWith(1,ue.isDateTimeControl),Dp=De.withJsonFormsControlProps(e=>p.jsx(Wl,{...e})),kp=ue.rankWith(2,ue.isEnumControl),Np=De.withJsonFormsEnumProps(De.withTranslateProps(e=>p.jsx(Vl,{...e})),!1),Lp=ue.rankWith(1,ue.isIntegerControl),zp=De.withJsonFormsCellProps(e=>p.jsx(eo,{...e})),Bp=ue.rankWith(1,ue.isNumberControl),Up=De.withJsonFormsCellProps(e=>p.jsx(eo,{...e})),jp=ue.rankWith(2,ue.isOneOfControl),Wp=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>p.jsx(Gl,{...e})),!1),Vp=ue.rankWith(1,ue.isStringControl),Gp=De.withJsonFormsCellProps(e=>p.jsx(Hl,{...e})),Hp=A.memo(function({open:t,onClose:n,onConfirm:o,onCancel:s,title:a,message:u,acceptText:c,declineText:d}){return p.jsxs(w.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:n,children:[u,p.jsxs(w.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[p.jsx(w.Button,{onClick:s,children:d}),p.jsx(w.Button,{onClick:o,children:c})]})]})});var Yl={exports:{}},Ge={};/**
|
|
150
|
+
`)+J+`return __p
|
|
151
|
+
}`;var Ee=eb(function(){return Be(T,ce+"return "+J).apply(n,A)});if(Ee.source=J,cf(Ee))throw Ee;return Ee}function gB(r){return je(r).toLowerCase()}function mB(r){return je(r).toUpperCase()}function yB(r,i,l){if(r=je(r),r&&(l||i===n))return uy(r);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=Sn(i),T=cy(f,g),A=fy(f,g)+1;return Or(f,T,A).join("")}function vB(r,i,l){if(r=je(r),r&&(l||i===n))return r.slice(0,hy(r)+1);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=fy(f,Sn(i))+1;return Or(f,0,g).join("")}function bB(r,i,l){if(r=je(r),r&&(l||i===n))return r.replace(Vt,"");if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=cy(f,Sn(i));return Or(f,g).join("")}function _B(r,i){var l=S,f=U;if(rt(i)){var g="separator"in i?i.separator:g;l="length"in i?Se(i.length):l,f="omission"in i?Qt(i.omission):f}r=je(r);var T=r.length;if(Mi(r)){var A=Sn(r);T=A.length}if(l>=T)return r;var I=l-Fi(f);if(I<1)return f;var F=A?Or(A,0,I).join(""):r.slice(0,I);if(g===n)return F+f;if(A&&(I+=F.length-I),ff(g)){if(r.slice(I).search(g)){var W,V=F;for(g.global||(g=xc(g.source,je(wo.exec(g))+"g")),g.lastIndex=0;W=g.exec(V);)var J=W.index;F=F.slice(0,J===n?I:J)}}else if(r.indexOf(Qt(g),I)!=I){var re=F.lastIndexOf(g);re>-1&&(F=F.slice(0,re))}return F+f}function TB(r){return r=je(r),r&&sc.test(r)?r.replace(Ws,Rk):r}var wB=Ui(function(r,i,l){return r+(l?" ":"")+i.toUpperCase()}),pf=tv("toUpperCase");function Qv(r,i,l){return r=je(r),i=l?n:i,i===n?Hk(r)?Qk(r):Nk(r):r.match(i)||[]}var eb=xe(function(r,i){try{return Zt(r,n,i)}catch(l){return cf(l)?l:new _e(l)}}),SB=Xn(function(r,i){return cn(i,function(l){l=Nn(l),Rn(r,l,lf(r[l],r))}),r});function CB(r){var i=r==null?0:r.length,l=he();return r=i?nt(r,function(f){if(typeof f[1]!="function")throw new fn(u);return[l(f[0]),f[1]]}):[],xe(function(f){for(var g=-1;++g<i;){var T=r[g];if(Zt(T[0],this,f))return Zt(T[1],this,f)}})}function EB(r){return RN(hn(r,y))}function gf(r){return function(){return r}}function xB(r,i){return r==null||r!==r?i:r}var AB=rv(),OB=rv(!0);function qt(r){return r}function mf(r){return Fy(typeof r=="function"?r:hn(r,y))}function IB(r){return ky(hn(r,y))}function PB(r,i){return Ny(r,hn(i,y))}var $B=xe(function(r,i){return function(l){return Fo(l,r,i)}}),MB=xe(function(r,i){return function(l){return Fo(r,l,i)}});function yf(r,i,l){var f=Et(i),g=va(i,f);l==null&&!(rt(i)&&(g.length||!f.length))&&(l=i,i=r,r=this,g=va(i,Et(i)));var T=!(rt(l)&&"chain"in l)||!!l.chain,A=er(r);return cn(g,function(I){var F=i[I];r[I]=F,A&&(r.prototype[I]=function(){var W=this.__chain__;if(T||W){var V=r(this.__wrapped__),J=V.__actions__=Gt(this.__actions__);return J.push({func:F,args:arguments,thisArg:r}),V.__chain__=W,V}return F.apply(r,wr([this.value()],arguments))})}),r}function FB(){return At._===this&&(At._=oN),this}function vf(){}function DB(r){return r=Se(r),xe(function(i){return Ly(i,r)})}var kB=Kc(nt),NB=Kc(iy),LB=Kc(bc);function tb(r){return tf(r)?_c(Nn(r)):hL(r)}function BB(r){return function(i){return r==null?n:Zr(r,i)}}var zB=ov(),UB=ov(!0);function bf(){return[]}function _f(){return!1}function jB(){return{}}function WB(){return""}function VB(){return!0}function GB(r,i){if(r=Se(r),r<1||r>Ie)return[];var l=K,f=$t(r,K);i=he(i),r-=K;for(var g=Sc(f,i);++l<r;)i(l);return g}function HB(r){return Te(r)?nt(r,Nn):en(r)?[r]:Gt(Tv(je(r)))}function YB(r){var i=++rN;return je(r)+i}var qB=Ca(function(r,i){return r+i},0),KB=Jc("ceil"),JB=Ca(function(r,i){return r/i},1),RB=Jc("floor");function ZB(r){return r&&r.length?ya(r,qt,Dc):n}function XB(r,i){return r&&r.length?ya(r,he(i,2),Dc):n}function QB(r){return ay(r,qt)}function ez(r,i){return ay(r,he(i,2))}function tz(r){return r&&r.length?ya(r,qt,Bc):n}function nz(r,i){return r&&r.length?ya(r,he(i,2),Bc):n}var rz=Ca(function(r,i){return r*i},1),iz=Jc("round"),oz=Ca(function(r,i){return r-i},0);function sz(r){return r&&r.length?wc(r,qt):0}function az(r,i){return r&&r.length?wc(r,he(i,2)):0}return b.after=I4,b.ary=Mv,b.assign=m3,b.assignIn=Yv,b.assignInWith=La,b.assignWith=y3,b.at=v3,b.before=Fv,b.bind=lf,b.bindAll=SB,b.bindKey=Dv,b.castArray=j4,b.chain=Iv,b.chunk=RL,b.compact=ZL,b.concat=XL,b.cond=CB,b.conforms=EB,b.constant=gf,b.countBy=s4,b.create=b3,b.curry=kv,b.curryRight=Nv,b.debounce=Lv,b.defaults=_3,b.defaultsDeep=T3,b.defer=P4,b.delay=$4,b.difference=QL,b.differenceBy=e5,b.differenceWith=t5,b.drop=n5,b.dropRight=r5,b.dropRightWhile=i5,b.dropWhile=o5,b.fill=s5,b.filter=l4,b.flatMap=f4,b.flatMapDeep=d4,b.flatMapDepth=h4,b.flatten=Ev,b.flattenDeep=a5,b.flattenDepth=l5,b.flip=M4,b.flow=AB,b.flowRight=OB,b.fromPairs=u5,b.functions=O3,b.functionsIn=I3,b.groupBy=p4,b.initial=f5,b.intersection=d5,b.intersectionBy=h5,b.intersectionWith=p5,b.invert=$3,b.invertBy=M3,b.invokeMap=m4,b.iteratee=mf,b.keyBy=y4,b.keys=Et,b.keysIn=Yt,b.map=$a,b.mapKeys=D3,b.mapValues=k3,b.matches=IB,b.matchesProperty=PB,b.memoize=Fa,b.merge=N3,b.mergeWith=qv,b.method=$B,b.methodOf=MB,b.mixin=yf,b.negate=Da,b.nthArg=DB,b.omit=L3,b.omitBy=B3,b.once=F4,b.orderBy=v4,b.over=kB,b.overArgs=D4,b.overEvery=NB,b.overSome=LB,b.partial=uf,b.partialRight=Bv,b.partition=b4,b.pick=z3,b.pickBy=Kv,b.property=tb,b.propertyOf=BB,b.pull=v5,b.pullAll=Av,b.pullAllBy=b5,b.pullAllWith=_5,b.pullAt=T5,b.range=zB,b.rangeRight=UB,b.rearg=k4,b.reject=w4,b.remove=w5,b.rest=N4,b.reverse=sf,b.sampleSize=C4,b.set=j3,b.setWith=W3,b.shuffle=E4,b.slice=S5,b.sortBy=O4,b.sortedUniq=P5,b.sortedUniqBy=$5,b.split=fB,b.spread=L4,b.tail=M5,b.take=F5,b.takeRight=D5,b.takeRightWhile=k5,b.takeWhile=N5,b.tap=Z5,b.throttle=B4,b.thru=Pa,b.toArray=Vv,b.toPairs=Jv,b.toPairsIn=Rv,b.toPath=HB,b.toPlainObject=Hv,b.transform=V3,b.unary=z4,b.union=L5,b.unionBy=B5,b.unionWith=z5,b.uniq=U5,b.uniqBy=j5,b.uniqWith=W5,b.unset=G3,b.unzip=af,b.unzipWith=Ov,b.update=H3,b.updateWith=Y3,b.values=Vi,b.valuesIn=q3,b.without=V5,b.words=Qv,b.wrap=U4,b.xor=G5,b.xorBy=H5,b.xorWith=Y5,b.zip=q5,b.zipObject=K5,b.zipObjectDeep=J5,b.zipWith=R5,b.entries=Jv,b.entriesIn=Rv,b.extend=Yv,b.extendWith=La,yf(b,b),b.add=qB,b.attempt=eb,b.camelCase=Z3,b.capitalize=Zv,b.ceil=KB,b.clamp=K3,b.clone=W4,b.cloneDeep=G4,b.cloneDeepWith=H4,b.cloneWith=V4,b.conformsTo=Y4,b.deburr=Xv,b.defaultTo=xB,b.divide=JB,b.endsWith=X3,b.eq=En,b.escape=Q3,b.escapeRegExp=eB,b.every=a4,b.find=u4,b.findIndex=Sv,b.findKey=w3,b.findLast=c4,b.findLastIndex=Cv,b.findLastKey=S3,b.floor=RB,b.forEach=Pv,b.forEachRight=$v,b.forIn=C3,b.forInRight=E3,b.forOwn=x3,b.forOwnRight=A3,b.get=df,b.gt=q4,b.gte=K4,b.has=P3,b.hasIn=hf,b.head=xv,b.identity=qt,b.includes=g4,b.indexOf=c5,b.inRange=J3,b.invoke=F3,b.isArguments=ei,b.isArray=Te,b.isArrayBuffer=J4,b.isArrayLike=Ht,b.isArrayLikeObject=ht,b.isBoolean=R4,b.isBuffer=Ir,b.isDate=Z4,b.isElement=X4,b.isEmpty=Q4,b.isEqual=e3,b.isEqualWith=t3,b.isError=cf,b.isFinite=n3,b.isFunction=er,b.isInteger=zv,b.isLength=ka,b.isMap=Uv,b.isMatch=r3,b.isMatchWith=i3,b.isNaN=o3,b.isNative=s3,b.isNil=l3,b.isNull=a3,b.isNumber=jv,b.isObject=rt,b.isObjectLike=ct,b.isPlainObject=zo,b.isRegExp=ff,b.isSafeInteger=u3,b.isSet=Wv,b.isString=Na,b.isSymbol=en,b.isTypedArray=Wi,b.isUndefined=c3,b.isWeakMap=f3,b.isWeakSet=d3,b.join=g5,b.kebabCase=tB,b.last=gn,b.lastIndexOf=m5,b.lowerCase=nB,b.lowerFirst=rB,b.lt=h3,b.lte=p3,b.max=ZB,b.maxBy=XB,b.mean=QB,b.meanBy=ez,b.min=tz,b.minBy=nz,b.stubArray=bf,b.stubFalse=_f,b.stubObject=jB,b.stubString=WB,b.stubTrue=VB,b.multiply=rz,b.nth=y5,b.noConflict=FB,b.noop=vf,b.now=Ma,b.pad=iB,b.padEnd=oB,b.padStart=sB,b.parseInt=aB,b.random=R3,b.reduce=_4,b.reduceRight=T4,b.repeat=lB,b.replace=uB,b.result=U3,b.round=iz,b.runInContext=M,b.sample=S4,b.size=x4,b.snakeCase=cB,b.some=A4,b.sortedIndex=C5,b.sortedIndexBy=E5,b.sortedIndexOf=x5,b.sortedLastIndex=A5,b.sortedLastIndexBy=O5,b.sortedLastIndexOf=I5,b.startCase=dB,b.startsWith=hB,b.subtract=oz,b.sum=sz,b.sumBy=az,b.template=pB,b.times=GB,b.toFinite=tr,b.toInteger=Se,b.toLength=Gv,b.toLower=gB,b.toNumber=mn,b.toSafeInteger=g3,b.toString=je,b.toUpper=mB,b.trim=yB,b.trimEnd=vB,b.trimStart=bB,b.truncate=_B,b.unescape=TB,b.uniqueId=YB,b.upperCase=wB,b.upperFirst=pf,b.each=Pv,b.eachRight=$v,b.first=xv,yf(b,function(){var r={};return Dn(b,function(i,l){Ve.call(b.prototype,l)||(r[l]=i)}),r}(),{chain:!1}),b.VERSION=o,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){b[r].placeholder=b}),cn(["drop","take"],function(r,i){$e.prototype[r]=function(l){l=l===n?1:_t(Se(l),0);var f=this.__filtered__&&!i?new $e(this):this.clone();return f.__filtered__?f.__takeCount__=$t(l,f.__takeCount__):f.__views__.push({size:$t(l,K),type:r+(f.__dir__<0?"Right":"")}),f},$e.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),cn(["filter","map","takeWhile"],function(r,i){var l=i+1,f=l==ye||l==we;$e.prototype[r]=function(g){var T=this.clone();return T.__iteratees__.push({iteratee:he(g,3),type:l}),T.__filtered__=T.__filtered__||f,T}}),cn(["head","last"],function(r,i){var l="take"+(i?"Right":"");$e.prototype[r]=function(){return this[l](1).value()[0]}}),cn(["initial","tail"],function(r,i){var l="drop"+(i?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[l](1)}}),$e.prototype.compact=function(){return this.filter(qt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=xe(function(r,i){return typeof r=="function"?new $e(this):this.map(function(l){return Fo(l,r,i)})}),$e.prototype.reject=function(r){return this.filter(Da(he(r)))},$e.prototype.slice=function(r,i){r=Se(r);var l=this;return l.__filtered__&&(r>0||i<0)?new $e(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=Se(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(K)},Dn($e.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),g=b[f?"take"+(i=="last"?"Right":""):i],T=f||/^find/.test(i);g&&(b.prototype[i]=function(){var A=this.__wrapped__,I=f?[1]:arguments,F=A instanceof $e,W=I[0],V=F||Te(A),J=function(Pe){var Fe=g.apply(b,wr([Pe],I));return f&&re?Fe[0]:Fe};V&&l&&typeof W=="function"&&W.length!=1&&(F=V=!1);var re=this.__chain__,ce=!!this.__actions__.length,ge=T&&!re,Ee=F&&!ce;if(!T&&V){A=Ee?A:new $e(this);var me=r.apply(A,I);return me.__actions__.push({func:Pa,args:[J],thisArg:n}),new dn(me,re)}return ge&&Ee?r.apply(this,I):(me=this.thru(J),ge?f?me.value()[0]:me.value():me)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var i=na[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);b.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var T=this.value();return i.apply(Te(T)?T:[],g)}return this[l](function(A){return i.apply(Te(A)?A:[],g)})}}),Dn($e.prototype,function(r,i){var l=b[i];if(l){var f=l.name+"";Ve.call(Li,f)||(Li[f]=[]),Li[f].push({name:i,func:l})}}),Li[Sa(n,N).name]=[{name:"wrapper",func:n}],$e.prototype.clone=TN,$e.prototype.reverse=wN,$e.prototype.value=SN,b.prototype.at=X5,b.prototype.chain=Q5,b.prototype.commit=e4,b.prototype.next=t4,b.prototype.plant=r4,b.prototype.reverse=i4,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=o4,b.prototype.first=b.prototype.head,xo&&(b.prototype[xo]=n4),b},Di=eN();Yr?((Yr.exports=Di)._=Di,gc._=Di):At._=Di}).call(Un)}(ds,ds.exports);var zS=ds.exports;function Lh(e){const{renderers:t,cells:n,uischemas:o,schema:s,label:a,path:u,visible:c,enabled:h,uischema:p,rootSchema:m}=e,y=x.useMemo(()=>ue.findUISchema(o,s,p.scope,u,()=>zS.isEmpty(u)?ue.Generate.uiSchema(s,"VerticalLayout",void 0,m):{...ue.Generate.uiSchema(s,"Group",void 0,m),label:a},p,m),[o,s,u,a,p,m]);return c?d.jsx(De.JsonFormsDispatch,{visible:c,enabled:h,schema:s,uischema:y,path:u,renderers:t,cells:n}):null}function ql(e){const t=In(e),{path:n,data:o,schema:s}=e,a=fs(o,s),u=x.useMemo(()=>{var _;const m=o===null,y=(_=t.error)==null?void 0:_.filter(C=>C.key==="is a required property"||!m?C:!1);return y!=null&&y.length?{error:y}:{error:m&&t.required?"is a required property":void 0}},[t.error,t.required,o]),c=x.useMemo(()=>({...t,...a,...u}),[t,u,a]),[h,p]=_n("OneOfEnum",n,c,e);return h===void 0?d.jsx(v.Select,{...p}):h}function Kl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=Dh({data:o,onChange:t.onChange}),u=x.useMemo(()=>({...t,...a}),[t,a]),[c,h]=_n("Text",n,u,e);return c===void 0?s.format==="password"?d.jsx(v.PasswordInput,{...h}):d.jsx(v.TextInput,{...h}):c}const Bh=ue.rankWith(1,ue.isBooleanControl),zh=De.withJsonFormsCellProps(e=>d.jsx(Vl,{...e})),Uh=ue.rankWith(1,ue.isDateControl),jh=De.withJsonFormsCellProps(e=>d.jsx(Gl,{...e})),Wh=ue.rankWith(1,ue.isDateTimeControl),Vh=De.withJsonFormsControlProps(e=>d.jsx(Hl,{...e})),Gh=ue.rankWith(2,ue.isEnumControl),Hh=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),Yh=ue.rankWith(1,ue.isIntegerControl),qh=De.withJsonFormsCellProps(e=>d.jsx(no,{...e})),Kh=ue.rankWith(1,ue.isNumberControl),Jh=De.withJsonFormsCellProps(e=>d.jsx(no,{...e})),Rh=ue.rankWith(2,ue.isOneOfControl),Zh=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(ql,{...e})),!1),Xh=ue.rankWith(1,ue.isStringControl),Qh=De.withJsonFormsCellProps(e=>d.jsx(Kl,{...e})),ep=x.memo(function({open:t,onClose:n,onConfirm:o,onCancel:s,title:a,message:u,acceptText:c,declineText:h}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:n,children:[u,d.jsxs(v.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(v.Button,{onClick:s,children:h}),d.jsx(v.Button,{onClick:o,children:c})]})]})});var Jl={exports:{}},Ge={};/**
|
|
132
152
|
* @license React
|
|
133
153
|
* react-is.production.js
|
|
134
154
|
*
|
|
@@ -136,7 +156,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
136
156
|
*
|
|
137
157
|
* This source code is licensed under the MIT license found in the
|
|
138
158
|
* LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/var
|
|
159
|
+
*/var tp;function US(){if(tp)return Ge;tp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function E(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case e:switch(w=w.type,w){case n:case s:case o:case h:case p:case _:return w;default:switch(w=w&&w.$$typeof,w){case u:case c:case y:case m:return w;case a:return w;default:return $}}case t:return $}}}return Ge.ContextConsumer=a,Ge.ContextProvider=u,Ge.Element=e,Ge.ForwardRef=c,Ge.Fragment=n,Ge.Lazy=y,Ge.Memo=m,Ge.Portal=t,Ge.Profiler=s,Ge.StrictMode=o,Ge.Suspense=h,Ge.SuspenseList=p,Ge.isContextConsumer=function(w){return E(w)===a},Ge.isContextProvider=function(w){return E(w)===u},Ge.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Ge.isForwardRef=function(w){return E(w)===c},Ge.isFragment=function(w){return E(w)===n},Ge.isLazy=function(w){return E(w)===y},Ge.isMemo=function(w){return E(w)===m},Ge.isPortal=function(w){return E(w)===t},Ge.isProfiler=function(w){return E(w)===s},Ge.isStrictMode=function(w){return E(w)===o},Ge.isSuspense=function(w){return E(w)===h},Ge.isSuspenseList=function(w){return E(w)===p},Ge.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===s||w===o||w===h||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===m||w.$$typeof===u||w.$$typeof===a||w.$$typeof===c||w.$$typeof===C||w.getModuleId!==void 0)},Ge.typeOf=E,Ge}var He={};/**
|
|
140
160
|
* @license React
|
|
141
161
|
* react-is.development.js
|
|
142
162
|
*
|
|
@@ -144,42 +164,42 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
144
164
|
*
|
|
145
165
|
* This source code is licensed under the MIT license found in the
|
|
146
166
|
* LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/var
|
|
167
|
+
*/var np;function jS(){return np||(np=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case t:switch(w=w.type,w){case o:case a:case s:case p:case m:case C:return w;default:switch(w=w&&w.$$typeof,w){case c:case h:case _:case y:return w;case u:return w;default:return $}}case n:return $}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");He.ContextConsumer=u,He.ContextProvider=c,He.Element=t,He.ForwardRef=h,He.Fragment=o,He.Lazy=_,He.Memo=y,He.Portal=n,He.Profiler=a,He.StrictMode=s,He.Suspense=p,He.SuspenseList=m,He.isContextConsumer=function(w){return e(w)===u},He.isContextProvider=function(w){return e(w)===c},He.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},He.isForwardRef=function(w){return e(w)===h},He.isFragment=function(w){return e(w)===o},He.isLazy=function(w){return e(w)===_},He.isMemo=function(w){return e(w)===y},He.isPortal=function(w){return e(w)===n},He.isProfiler=function(w){return e(w)===a},He.isStrictMode=function(w){return e(w)===s},He.isSuspense=function(w){return e(w)===p},He.isSuspenseList=function(w){return e(w)===m},He.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===s||w===p||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===y||w.$$typeof===c||w.$$typeof===u||w.$$typeof===h||w.$$typeof===E||w.getModuleId!==void 0)},He.typeOf=e}()),He}process.env.NODE_ENV==="production"?Jl.exports=US():Jl.exports=jS();var hs=Jl.exports;function Vn(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 rp(e){if(Ft.isValidElement(e)||hs.isValidElementType(e)||!Vn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=rp(e[n])}),t}function Kt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Vn(e)&&Vn(t)&&Object.keys(t).forEach(s=>{Ft.isValidElement(t[s])||hs.isValidElementType(t[s])?o[s]=t[s]:Vn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Vn(e[s])?o[s]=Kt(e[s],t[s],n):n.clone?o[s]=Vn(t[s])?rp(t[s]):t[s]:o[s]=t[s]}),o}var Rl={exports:{}},ps={exports:{}},ze={};/** @license React v16.13.1
|
|
148
168
|
* react-is.production.min.js
|
|
149
169
|
*
|
|
150
170
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
151
171
|
*
|
|
152
172
|
* This source code is licensed under the MIT license found in the
|
|
153
173
|
* LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/var
|
|
174
|
+
*/var ip;function WS(){if(ip)return ze;ip=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(D){if(typeof D=="object"&&D!==null){var k=D.$$typeof;switch(k){case t:switch(D=D.type,D){case h:case p:case o:case a:case s:case y:return D;default:switch(D=D&&D.$$typeof,D){case c:case m:case E:case C:case u:return D;default:return k}}case n:return k}}}function B(D){return H(D)===p}return ze.AsyncMode=h,ze.ConcurrentMode=p,ze.ContextConsumer=c,ze.ContextProvider=u,ze.Element=t,ze.ForwardRef=m,ze.Fragment=o,ze.Lazy=E,ze.Memo=C,ze.Portal=n,ze.Profiler=a,ze.StrictMode=s,ze.Suspense=y,ze.isAsyncMode=function(D){return B(D)||H(D)===h},ze.isConcurrentMode=B,ze.isContextConsumer=function(D){return H(D)===c},ze.isContextProvider=function(D){return H(D)===u},ze.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},ze.isForwardRef=function(D){return H(D)===m},ze.isFragment=function(D){return H(D)===o},ze.isLazy=function(D){return H(D)===E},ze.isMemo=function(D){return H(D)===C},ze.isPortal=function(D){return H(D)===n},ze.isProfiler=function(D){return H(D)===a},ze.isStrictMode=function(D){return H(D)===s},ze.isSuspense=function(D){return H(D)===y},ze.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===o||D===p||D===a||D===s||D===y||D===_||typeof D=="object"&&D!==null&&(D.$$typeof===E||D.$$typeof===C||D.$$typeof===u||D.$$typeof===c||D.$$typeof===m||D.$$typeof===$||D.$$typeof===N||D.$$typeof===Q||D.$$typeof===w)},ze.typeOf=H,ze}var Ue={};/** @license React v16.13.1
|
|
155
175
|
* react-is.development.js
|
|
156
176
|
*
|
|
157
177
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
158
178
|
*
|
|
159
179
|
* This source code is licensed under the MIT license found in the
|
|
160
180
|
* LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/var
|
|
181
|
+
*/var op;function VS(){return op||(op=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(te){return typeof te=="string"||typeof te=="function"||te===o||te===p||te===a||te===s||te===y||te===_||typeof te=="object"&&te!==null&&(te.$$typeof===E||te.$$typeof===C||te.$$typeof===u||te.$$typeof===c||te.$$typeof===m||te.$$typeof===$||te.$$typeof===N||te.$$typeof===Q||te.$$typeof===w)}function B(te){if(typeof te=="object"&&te!==null){var yt=te.$$typeof;switch(yt){case t:var Je=te.type;switch(Je){case h:case p:case o:case a:case s:case y:return Je;default:var Lt=Je&&Je.$$typeof;switch(Lt){case c:case m:case E:case C:case u:return Lt;default:return yt}}case n:return yt}}}var D=h,k=p,G=c,ae=u,ie=t,S=m,U=o,ne=E,fe=C,ye=n,Me=a,we=s,Le=y,Ie=!1;function lt(te){return Ie||(Ie=!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.")),q(te)||B(te)===h}function q(te){return B(te)===p}function K(te){return B(te)===c}function Z(te){return B(te)===u}function R(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Y(te){return B(te)===m}function ee(te){return B(te)===o}function oe(te){return B(te)===E}function ve(te){return B(te)===C}function be(te){return B(te)===n}function pe(te){return B(te)===a}function Ce(te){return B(te)===s}function tt(te){return B(te)===y}Ue.AsyncMode=D,Ue.ConcurrentMode=k,Ue.ContextConsumer=G,Ue.ContextProvider=ae,Ue.Element=ie,Ue.ForwardRef=S,Ue.Fragment=U,Ue.Lazy=ne,Ue.Memo=fe,Ue.Portal=ye,Ue.Profiler=Me,Ue.StrictMode=we,Ue.Suspense=Le,Ue.isAsyncMode=lt,Ue.isConcurrentMode=q,Ue.isContextConsumer=K,Ue.isContextProvider=Z,Ue.isElement=R,Ue.isForwardRef=Y,Ue.isFragment=ee,Ue.isLazy=oe,Ue.isMemo=ve,Ue.isPortal=be,Ue.isProfiler=pe,Ue.isStrictMode=Ce,Ue.isSuspense=tt,Ue.isValidElementType=H,Ue.typeOf=B}()),Ue}var sp;function ap(){return sp||(sp=1,process.env.NODE_ENV==="production"?ps.exports=WS():ps.exports=VS()),ps.exports}/*
|
|
162
182
|
object-assign
|
|
163
183
|
(c) Sindre Sorhus
|
|
164
184
|
@license MIT
|
|
165
|
-
*/var
|
|
166
|
-
Valid keys: `+JSON.stringify(Object.keys(q),null," "));var
|
|
167
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
185
|
+
*/var Zl,lp;function GS(){if(lp)return Zl;lp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(h.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zl=s()?Object.assign:function(a,u){for(var c,h=o(a),p,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var y in c)t.call(c,y)&&(h[y]=c[y]);if(e){p=e(c);for(var _=0;_<p.length;_++)n.call(c,p[_])&&(h[p[_]]=c[p[_]])}}return h},Zl}var Xl,up;function Ql(){if(up)return Xl;up=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xl=e,Xl}var eu,cp;function fp(){return cp||(cp=1,eu=Function.call.bind(Object.prototype.hasOwnProperty)),eu}var tu,dp;function HS(){if(dp)return tu;dp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ql(),n={},o=fp();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,h,p){if(process.env.NODE_ENV!=="production"){for(var m in a)if(o(a,m)){var y;try{if(typeof a[m]!="function"){var _=Error((h||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}y=a[m](u,m,h,c,null,t)}catch(E){y=E}if(y&&!(y instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var C=p?p():"";e("Failed "+c+" type: "+y.message+(C??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},tu=s,tu}var nu,hp;function YS(){if(hp)return nu;hp=1;var e=ap(),t=GS(),n=Ql(),o=fp(),s=HS(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function u(){return null}return nu=function(c,h){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function y(q){var K=q&&(p&&q[p]||q[m]);if(typeof K=="function")return K}var _="<<anonymous>>",C={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:Q(),arrayOf:H,element:B(),elementType:D(),instanceOf:k,node:S(),objectOf:ae,oneOf:G,oneOfType:ie,shape:ne,exact:fe};function E(q,K){return q===K?q!==0||1/q===1/K:q!==q&&K!==K}function w(q,K){this.message=q,this.data=K&&typeof K=="object"?K:{},this.stack=""}w.prototype=Error.prototype;function $(q){if(process.env.NODE_ENV!=="production")var K={},Z=0;function R(ee,oe,ve,be,pe,Ce,tt){if(be=be||_,Ce=Ce||ve,tt!==n){if(h){var te=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 te.name="Invariant Violation",te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var yt=be+":"+ve;!K[yt]&&Z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+be+"`. 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."),K[yt]=!0,Z++)}}return oe[ve]==null?ee?oe[ve]===null?new w("The "+pe+" `"+Ce+"` is marked as required "+("in `"+be+"`, but its value is `null`.")):new w("The "+pe+" `"+Ce+"` is marked as required in "+("`"+be+"`, but its value is `undefined`.")):null:q(oe,ve,be,pe,Ce)}var Y=R.bind(null,!1);return Y.isRequired=R.bind(null,!0),Y}function N(q){function K(Z,R,Y,ee,oe,ve){var be=Z[R],pe=we(be);if(pe!==q){var Ce=Le(be);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+Ce+"` supplied to `"+Y+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return $(K)}function Q(){return $(u)}function H(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ve=Z[R];if(!Array.isArray(ve)){var be=we(ve);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an array."))}for(var pe=0;pe<ve.length;pe++){var Ce=q(ve,pe,Y,ee,oe+"["+pe+"]",n);if(Ce instanceof Error)return Ce}return null}return $(K)}function B(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!c(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return $(q)}function D(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!e.isValidElementType(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return $(q)}function k(q){function K(Z,R,Y,ee,oe){if(!(Z[R]instanceof q)){var ve=q.name||_,be=lt(Z[R]);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected ")+("instance of `"+ve+"`."))}return null}return $(K)}function G(q){if(!Array.isArray(q))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.")),u;function K(Z,R,Y,ee,oe){for(var ve=Z[R],be=0;be<q.length;be++)if(E(ve,q[be]))return null;var pe=JSON.stringify(q,function(tt,te){var yt=Le(te);return yt==="symbol"?String(te):te});return new w("Invalid "+ee+" `"+oe+"` of value `"+String(ve)+"` "+("supplied to `"+Y+"`, expected one of "+pe+"."))}return $(K)}function ae(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an object."));for(var pe in ve)if(o(ve,pe)){var Ce=q(ve,pe,Y,ee,oe+"."+pe,n);if(Ce instanceof Error)return Ce}return null}return $(K)}function ie(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var K=0;K<q.length;K++){var Z=q[K];if(typeof Z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(Z)+" at index "+K+"."),u}function R(Y,ee,oe,ve,be){for(var pe=[],Ce=0;Ce<q.length;Ce++){var tt=q[Ce],te=tt(Y,ee,oe,ve,be,n);if(te==null)return null;te.data&&o(te.data,"expectedType")&&pe.push(te.data.expectedType)}var yt=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new w("Invalid "+ve+" `"+be+"` supplied to "+("`"+oe+"`"+yt+"."))}return $(R)}function S(){function q(K,Z,R,Y,ee){return ye(K[Z])?null:new w("Invalid "+Y+" `"+ee+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return $(q)}function U(q,K,Z,R,Y){return new w((q||"React class")+": "+K+" type `"+Z+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function ne(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));for(var pe in q){var Ce=q[pe];if(typeof Ce!="function")return U(Y,ee,oe,pe,Le(Ce));var tt=Ce(ve,pe,Y,ee,oe+"."+pe,n);if(tt)return tt}return null}return $(K)}function fe(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));var pe=t({},Z[R],q);for(var Ce in pe){var tt=q[Ce];if(o(q,Ce)&&typeof tt!="function")return U(Y,ee,oe,Ce,Le(tt));if(!tt)return new w("Invalid "+ee+" `"+oe+"` key `"+Ce+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[R],null," ")+`
|
|
186
|
+
Valid keys: `+JSON.stringify(Object.keys(q),null," "));var te=tt(ve,Ce,Y,ee,oe+"."+Ce,n);if(te)return te}return null}return $(K)}function ye(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(ye);if(q===null||c(q))return!0;var K=y(q);if(K){var Z=K.call(q),R;if(K!==q.entries){for(;!(R=Z.next()).done;)if(!ye(R.value))return!1}else for(;!(R=Z.next()).done;){var Y=R.value;if(Y&&!ye(Y[1]))return!1}}else return!1;return!0;default:return!1}}function Me(q,K){return q==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function we(q){var K=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":Me(K,q)?"symbol":K}function Le(q){if(typeof q>"u"||q===null)return""+q;var K=we(q);if(K==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return K}function Ie(q){var K=Le(q);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function lt(q){return!q.constructor||!q.constructor.name?_:q.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},nu}var ru,pp;function qS(){if(pp)return ru;pp=1;var e=Ql();function t(){}function n(){}return n.resetWarningCache=t,ru=function(){function o(u,c,h,p,m,y){if(y!==e){var _=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 _.name="Invariant Violation",_}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},ru}if(process.env.NODE_ENV!=="production"){var KS=ap(),JS=!0;Rl.exports=YS()(KS.isElement,JS)}else Rl.exports=qS()();var RS=Rl.exports;const Ne=ir(RS);function ur(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function gp(e,t=""){return e.displayName||e.name||t}function mp(e,t,n){const o=gp(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function ZS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return gp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hs.ForwardRef:return mp(e,e.render,"ForwardRef");case hs.Memo:return mp(e,e.type,"memo");default:return}}}function Lr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function iu(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],u=t[s];if(!u)n[s]=a||{};else if(!a)n[s]=u;else{n[s]={...u};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const h=c;n[s][h]=iu(a[h],u[h])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function XS(e,t,n=void 0){const o={};for(const s in e){const a=e[s];let u="",c=!0;for(let h=0;h<a.length;h+=1){const p=a[h];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}o[s]=u}return o}const yp=e=>e,QS=(()=>{let e=yp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yp}}})(),eC={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 ou(e,t,n="Mui"){const o=eC[t];return o?`${n}-${o}`:`${QS.generate(e)}-${t}`}function tC(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=ou(e,s,n)}),o}function nC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ro(e,t){return t?Kt(e,t,{clone:!1}):e}const cr=process.env.NODE_ENV!=="production"?Ne.oneOfType([Ne.number,Ne.string,Ne.object,Ne.array]):{};function rC(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=o.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function iC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function oC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){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>\`.
|
|
187
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ur(18,`(${t})`));return null}const[,o,s]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function sC(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const h=t(e.breakpoints.not(...c),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const o={},s=a=>(n(o,a),o);return n(s),{...e,containerQueries:s}}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},vp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`},aC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||vp;return t.reduce((u,c,h)=>(u[a.up(a.keys[h])]=n(t[h]),u),{})}if(typeof t=="object"){const a=o.breakpoints||vp;return Object.keys(t).reduce((u,c)=>{if(iC(a.keys,c)){const h=oC(o.containerQueries?o:aC,c);h&&(u[h]=n(t[c],c))}else if(Object.keys(a.values||gs).includes(c)){const h=a.up(c);u[h]=n(t[c],c)}else{const h=c;u[h]=t[h]}return u},{})}return n(t)}function lC(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function uC(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function ms(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function ys(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=ms(e,n)||o,t&&(s=t(s,o,e)),s}function dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],h=u.theme,p=ms(h,o)||{};return Gn(u,c,y=>{let _=ys(p,s,y);return y===_&&typeof y=="string"&&(_=ys(p,s,`${t}${y==="default"?"":Lr(y)}`,y)),n===!1?_:{[n]:_}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:cr}:{},a.filterProps=[t],a}function cC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fC={m:"margin",p:"padding"},dC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hC=cC(e=>{if(e.length>2)if(bp[e])e=bp[e];else return[e];const[t,n]=e.split(""),o=fC[t],s=dC[n]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),vs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pC=[...vs,...bs];function io(e,t,n,o){const s=ms(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof s=="string"?`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
168
188
|
`)):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(`
|
|
169
189
|
`)));const c=s[u];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
170
|
-
`)),()=>{})}function ru(e){return no(e,"spacing",8,"spacing")}function ro(e,t){return typeof t=="string"||t==null?t:e(t)}function iC(e,t){return n=>e.reduce((o,s)=>(o[s]=ro(t,n),o),{})}function oC(e,t,n,o){if(!t.includes(n))return null;const s=nC(n),a=iC(s,o),u=e[n];return Gn(e,u,a)}function fh(e,t){const n=ru(e.theme);return Object.keys(e).map(o=>oC(e,t,o,n)).reduce(to,{})}function it(e){return fh(e,ms)}it.propTypes=process.env.NODE_ENV!=="production"?ms.reduce((e,t)=>(e[t]=ur,e),{}):{},it.filterProps=ms;function ot(e){return fh(e,ys)}ot.propTypes=process.env.NODE_ENV!=="production"?ys.reduce((e,t)=>(e[t]=ur,e),{}):{},ot.filterProps=ys,process.env.NODE_ENV!=="production"&&rC.reduce((e,t)=>(e[t]=ur,e),{});function vs(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?to(s,t[a](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return ut({prop:e,themeKey:"borders",transform:t})}const sC=on("border",rn),aC=on("borderTop",rn),lC=on("borderRight",rn),uC=on("borderBottom",rn),cC=on("borderLeft",rn),fC=on("borderColor"),dC=on("borderTopColor"),pC=on("borderRightColor"),hC=on("borderBottomColor"),gC=on("borderLeftColor"),mC=on("outline",rn),yC=on("outlineColor"),bs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=no(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:ro(t,o)});return Gn(e,e.borderRadius,n)}return null};bs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ur}:{},bs.filterProps=["borderRadius"],vs(sC,aC,lC,uC,cC,fC,dC,pC,hC,gC,bs,mC,yC);const _s=e=>{if(e.gap!==void 0&&e.gap!==null){const t=no(e.theme,"spacing",8,"gap"),n=o=>({gap:ro(t,o)});return Gn(e,e.gap,n)}return null};_s.propTypes=process.env.NODE_ENV!=="production"?{gap:ur}:{},_s.filterProps=["gap"];const ws=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=no(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:ro(t,o)});return Gn(e,e.columnGap,n)}return null};ws.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ur}:{},ws.filterProps=["columnGap"];const Ts=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=no(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:ro(t,o)});return Gn(e,e.rowGap,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ur}:{},Ts.filterProps=["rowGap"];const vC=ut({prop:"gridColumn"}),bC=ut({prop:"gridRow"}),_C=ut({prop:"gridAutoFlow"}),wC=ut({prop:"gridAutoColumns"}),TC=ut({prop:"gridAutoRows"}),SC=ut({prop:"gridTemplateColumns"}),CC=ut({prop:"gridTemplateRows"}),EC=ut({prop:"gridTemplateAreas"}),xC=ut({prop:"gridArea"});vs(_s,ws,Ts,vC,bC,_C,wC,TC,SC,CC,EC,xC);function li(e,t){return t==="grey"?t:e}const AC=ut({prop:"color",themeKey:"palette",transform:li}),OC=ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:li}),IC=ut({prop:"backgroundColor",themeKey:"palette",transform:li});vs(AC,OC,IC);function Kt(e){return e<=1&&e!==0?`${e*100}%`:e}const PC=ut({prop:"width",transform:Kt}),iu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,d;const o=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||ps[n];return o?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Kt(n)}};return Gn(e,e.maxWidth,t)}return null};iu.filterProps=["maxWidth"];const $C=ut({prop:"minWidth",transform:Kt}),MC=ut({prop:"height",transform:Kt}),FC=ut({prop:"maxHeight",transform:Kt}),DC=ut({prop:"minHeight",transform:Kt});ut({prop:"size",cssProperty:"width",transform:Kt}),ut({prop:"size",cssProperty:"height",transform:Kt});const kC=ut({prop:"boxSizing"});vs(PC,iu,$C,MC,FC,DC,kC);const Ss={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bs},color:{themeKey:"palette",transform:li},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:li},backgroundColor:{themeKey:"palette",transform:li},p:{style:ot},pt:{style:ot},pr:{style:ot},pb:{style:ot},pl:{style:ot},px:{style:ot},py:{style:ot},padding:{style:ot},paddingTop:{style:ot},paddingRight:{style:ot},paddingBottom:{style:ot},paddingLeft:{style:ot},paddingX:{style:ot},paddingY:{style:ot},paddingInline:{style:ot},paddingInlineStart:{style:ot},paddingInlineEnd:{style:ot},paddingBlock:{style:ot},paddingBlockStart:{style:ot},paddingBlockEnd:{style:ot},m:{style:it},mt:{style:it},mr:{style:it},mb:{style:it},ml:{style:it},mx:{style:it},my:{style:it},margin:{style:it},marginTop:{style:it},marginRight:{style:it},marginBottom:{style:it},marginLeft:{style:it},marginX:{style:it},marginY:{style:it},marginInline:{style:it},marginInlineStart:{style:it},marginInlineEnd:{style:it},marginBlock:{style:it},marginBlockStart:{style:it},marginBlockEnd:{style:it},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:_s},rowGap:{style:Ts},columnGap:{style:ws},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Kt},maxWidth:{style:iu},minWidth:{transform:Kt},height:{transform:Kt},maxHeight:{transform:Kt},minHeight:{transform:Kt},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((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function LC(e,t){return typeof e=="function"?e(t):e}function zC(){function e(n,o,s,a){const u={[n]:o,theme:s},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=c;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[n]:o};const b=hs(s,h)||{};return m?m(u):Gn(u,o,E=>{let T=gs(b,y,E);return E===T&&typeof E=="string"&&(T=gs(b,y,`${n}${E==="default"?"":Nr(E)}`,E)),d===!1?T:{[d]:T}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Ss;function u(c){let d=c;if(typeof c=="function")d=c(s);else if(typeof c!="object")return c;if(!d)return null;const h=ZS(s.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(b=>{const C=LC(d[b],s);if(C!=null)if(typeof C=="object")if(a[b])m=to(m,e(b,C,s,a));else{const E=Gn({theme:s},C,T=>({[b]:T}));NC(E,C)?m[b]=t({sx:C,theme:s}):m=to(m,E)}else m=to(m,e(b,C,s,a))}),YS(s,XS(y,m))}return Array.isArray(o)?o.map(u):u(o)}return t}const ui=zC();ui.filterProps=["sx"];function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ou.apply(null,arguments)}function BC(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 UC={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};function dh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var jC=/[A-Z]|^ms/g,WC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(t){return t.charCodeAt(1)===45},hh=function(t){return t!=null&&typeof t!="boolean"},su=dh(function(e){return ph(e)?e:e.replace(jC,"-$&").toLowerCase()}),gh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WC,function(o,s,a){return Pn={name:s,styles:a,next:Pn},s})}return UC[t]!==1&&!ph(t)&&typeof n=="number"&&n!==0?n+"px":n};function io(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Pn={name:s.name,styles:s.styles,next:Pn},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Pn={name:u.name,styles:u.styles,next:Pn},u=u.next;var c=a.styles+";";return c}return VC(e,t,n)}case"function":{if(e!==void 0){var d=Pn,h=n(e);return Pn=d,io(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function VC(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=io(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":hh(c)&&(o+=su(a)+":"+gh(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var d=0;d<u.length;d++)hh(u[d])&&(o+=su(a)+":"+gh(a,u[d])+";");else{var h=io(e,t,u);switch(a){case"animation":case"animationName":{o+=su(a)+":"+h+";";break}default:o+=a+"{"+h+"}"}}}return o}var mh=/label:\s*([^\s;{]+)\s*(;|$)/g,Pn;function yh(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Pn=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=io(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=io(n,t,e[c]),o){var d=a;s+=d[c]}mh.lastIndex=0;for(var h="",y;(y=mh.exec(s))!==null;)h+="-"+y[1];var m=BC(s)+h;return{name:m,styles:s,next:Pn}}var GC=function(t){return t()},HC=Ft.useInsertionEffect?Ft.useInsertionEffect:!1,YC=HC||GC,qC=!0;function RC(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var vh=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||qC===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},KC=function(t,n,o){vh(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},JC=/^((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|fetchpriority|fetchPriority|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)-.*))$/,ZC=dh(function(e){return JC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),XC=ZC,QC=function(t){return t!=="theme"},bh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?XC:QC},_h=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},eE=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return vh(n,o,s),YC(function(){return KC(n,o,s)}),null},tE=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=_h(t,n,o),d=c||bh(s),h=!d("as");return function(){var y=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{var b=y[0];m.push(b[0]);for(var C=y.length,E=1;E<C;E++)m.push(y[E],b[E])}var T=yf.withEmotionCache(function($,N,J){var Y=h&&$.as||s,B="",D=[],k=$;if($.theme==null){k={};for(var H in $)k[H]=$[H];k.theme=Ft.useContext(yf.ThemeContext)}typeof $.className=="string"?B=RC(N.registered,D,$.className):$.className!=null&&(B=$.className+" ");var ae=yh(m.concat(D),N.registered,k);B+=N.key+"-"+ae.name,u!==void 0&&(B+=" "+u);var ie=h&&c===void 0?bh(Y):d,S={};for(var j in $)h&&j==="as"||ie(j)&&(S[j]=$[j]);return S.className=B,J&&(S.ref=J),Ft.createElement(Ft.Fragment,null,Ft.createElement(eE,{cache:N,serialized:ae,isStringTag:typeof Y=="string"}),Ft.createElement(Y,S))});return T.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",T.defaultProps=t.defaultProps,T.__emotion_real=T,T.__emotion_base=s,T.__emotion_styles=m,T.__emotion_forwardProp=c,Object.defineProperty(T,"toString",{value:function(){return"."+u}}),T.withComponent=function($,N){var J=e($,ou({},n,N,{shouldForwardProp:_h(T,N,!0)}));return J.apply(void 0,m)},T}},nE=["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"],au=tE.bind(null);nE.forEach(function(e){au[e]=au(e)});/**
|
|
190
|
+
`)),()=>{})}function su(e){return io(e,"spacing",8,"spacing")}function oo(e,t){return typeof t=="string"||t==null?t:e(t)}function gC(e,t){return n=>e.reduce((o,s)=>(o[s]=oo(t,n),o),{})}function mC(e,t,n,o){if(!t.includes(n))return null;const s=hC(n),a=gC(s,o),u=e[n];return Gn(e,u,a)}function _p(e,t){const n=su(e.theme);return Object.keys(e).map(o=>mC(e,t,o,n)).reduce(ro,{})}function st(e){return _p(e,vs)}st.propTypes=process.env.NODE_ENV!=="production"?vs.reduce((e,t)=>(e[t]=cr,e),{}):{},st.filterProps=vs;function at(e){return _p(e,bs)}at.propTypes=process.env.NODE_ENV!=="production"?bs.reduce((e,t)=>(e[t]=cr,e),{}):{},at.filterProps=bs,process.env.NODE_ENV!=="production"&&pC.reduce((e,t)=>(e[t]=cr,e),{});function _s(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?ro(s,t[a](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return dt({prop:e,themeKey:"borders",transform:t})}const yC=on("border",rn),vC=on("borderTop",rn),bC=on("borderRight",rn),_C=on("borderBottom",rn),TC=on("borderLeft",rn),wC=on("borderColor"),SC=on("borderTopColor"),CC=on("borderRightColor"),EC=on("borderBottomColor"),xC=on("borderLeftColor"),AC=on("outline",rn),OC=on("outlineColor"),Ts=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=io(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:oo(t,o)});return Gn(e,e.borderRadius,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:cr}:{},Ts.filterProps=["borderRadius"],_s(yC,vC,bC,_C,TC,wC,SC,CC,EC,xC,Ts,AC,OC);const ws=e=>{if(e.gap!==void 0&&e.gap!==null){const t=io(e.theme,"spacing",8,"gap"),n=o=>({gap:oo(t,o)});return Gn(e,e.gap,n)}return null};ws.propTypes=process.env.NODE_ENV!=="production"?{gap:cr}:{},ws.filterProps=["gap"];const Ss=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=io(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:oo(t,o)});return Gn(e,e.columnGap,n)}return null};Ss.propTypes=process.env.NODE_ENV!=="production"?{columnGap:cr}:{},Ss.filterProps=["columnGap"];const Cs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=io(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:oo(t,o)});return Gn(e,e.rowGap,n)}return null};Cs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:cr}:{},Cs.filterProps=["rowGap"];const IC=dt({prop:"gridColumn"}),PC=dt({prop:"gridRow"}),$C=dt({prop:"gridAutoFlow"}),MC=dt({prop:"gridAutoColumns"}),FC=dt({prop:"gridAutoRows"}),DC=dt({prop:"gridTemplateColumns"}),kC=dt({prop:"gridTemplateRows"}),NC=dt({prop:"gridTemplateAreas"}),LC=dt({prop:"gridArea"});_s(ws,Ss,Cs,IC,PC,$C,MC,FC,DC,kC,NC,LC);function ui(e,t){return t==="grey"?t:e}const BC=dt({prop:"color",themeKey:"palette",transform:ui}),zC=dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ui}),UC=dt({prop:"backgroundColor",themeKey:"palette",transform:ui});_s(BC,zC,UC);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const jC=dt({prop:"width",transform:Jt}),au=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,h;const o=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||gs[n];return o?((h=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jt(n)}};return Gn(e,e.maxWidth,t)}return null};au.filterProps=["maxWidth"];const WC=dt({prop:"minWidth",transform:Jt}),VC=dt({prop:"height",transform:Jt}),GC=dt({prop:"maxHeight",transform:Jt}),HC=dt({prop:"minHeight",transform:Jt});dt({prop:"size",cssProperty:"width",transform:Jt}),dt({prop:"size",cssProperty:"height",transform:Jt});const YC=dt({prop:"boxSizing"});_s(jC,au,WC,VC,GC,HC,YC);const Es={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ts},color:{themeKey:"palette",transform:ui},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ui},backgroundColor:{themeKey:"palette",transform:ui},p:{style:at},pt:{style:at},pr:{style:at},pb:{style:at},pl:{style:at},px:{style:at},py:{style:at},padding:{style:at},paddingTop:{style:at},paddingRight:{style:at},paddingBottom:{style:at},paddingLeft:{style:at},paddingX:{style:at},paddingY:{style:at},paddingInline:{style:at},paddingInlineStart:{style:at},paddingInlineEnd:{style:at},paddingBlock:{style:at},paddingBlockStart:{style:at},paddingBlockEnd:{style:at},m:{style:st},mt:{style:st},mr:{style:st},mb:{style:st},ml:{style:st},mx:{style:st},my:{style:st},margin:{style:st},marginTop:{style:st},marginRight:{style:st},marginBottom:{style:st},marginLeft:{style:st},marginX:{style:st},marginY:{style:st},marginInline:{style:st},marginInlineStart:{style:st},marginInlineEnd:{style:st},marginBlock:{style:st},marginBlockStart:{style:st},marginBlockEnd:{style:st},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:ws},rowGap:{style:Cs},columnGap:{style:Ss},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:au},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},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 qC(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function KC(e,t){return typeof e=="function"?e(t):e}function JC(){function e(n,o,s,a){const u={[n]:o,theme:s},c=a[n];if(!c)return{[n]:o};const{cssProperty:h=n,themeKey:p,transform:m,style:y}=c;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[n]:o};const _=ms(s,p)||{};return y?y(u):Gn(u,o,E=>{let w=ys(_,m,E);return E===w&&typeof E=="string"&&(w=ys(_,m,`${n}${E==="default"?"":Lr(E)}`,E)),h===!1?w:{[h]:w}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Es;function u(c){let h=c;if(typeof c=="function")h=c(s);else if(typeof c!="object")return c;if(!h)return null;const p=lC(s.breakpoints),m=Object.keys(p);let y=p;return Object.keys(h).forEach(_=>{const C=KC(h[_],s);if(C!=null)if(typeof C=="object")if(a[_])y=ro(y,e(_,C,s,a));else{const E=Gn({theme:s},C,w=>({[_]:w}));qC(E,C)?y[_]=t({sx:C,theme:s}):y=ro(y,E)}else y=ro(y,e(_,C,s,a))}),rC(s,uC(m,y))}return Array.isArray(o)?o.map(u):u(o)}return t}const ci=JC();ci.filterProps=["sx"];function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lu.apply(null,arguments)}function RC(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 ZC={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};function Tp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XC=/[A-Z]|^ms/g,QC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wp=function(t){return t.charCodeAt(1)===45},Sp=function(t){return t!=null&&typeof t!="boolean"},uu=Tp(function(e){return wp(e)?e:e.replace(XC,"-$&").toLowerCase()}),Cp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(QC,function(o,s,a){return Pn={name:s,styles:a,next:Pn},s})}return ZC[t]!==1&&!wp(t)&&typeof n=="number"&&n!==0?n+"px":n};function so(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Pn={name:s.name,styles:s.styles,next:Pn},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Pn={name:u.name,styles:u.styles,next:Pn},u=u.next;var c=a.styles+";";return c}return eE(e,t,n)}case"function":{if(e!==void 0){var h=Pn,p=n(e);return Pn=h,so(e,t,p)}break}}var m=n;if(t==null)return m;var y=t[m];return y!==void 0?y:m}function eE(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=so(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":Sp(c)&&(o+=uu(a)+":"+Cp(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)Sp(u[h])&&(o+=uu(a)+":"+Cp(a,u[h])+";");else{var p=so(e,t,u);switch(a){case"animation":case"animationName":{o+=uu(a)+":"+p+";";break}default:o+=a+"{"+p+"}"}}}return o}var Ep=/label:\s*([^\s;{]+)\s*(;|$)/g,Pn;function xp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Pn=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=so(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=so(n,t,e[c]),o){var h=a;s+=h[c]}Ep.lastIndex=0;for(var p="",m;(m=Ep.exec(s))!==null;)p+="-"+m[1];var y=RC(s)+p;return{name:y,styles:s,next:Pn}}var tE=function(t){return t()},nE=Ft.useInsertionEffect?Ft.useInsertionEffect:!1,rE=nE||tE,iE=!0;function oE(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var Ap=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||iE===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},sE=function(t,n,o){Ap(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},aE=/^((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|fetchpriority|fetchPriority|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)-.*))$/,lE=Tp(function(e){return aE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uE=lE,cE=function(t){return t!=="theme"},Op=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uE:cE},Ip=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},fE=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return Ap(n,o,s),rE(function(){return sE(n,o,s)}),null},dE=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=Ip(t,n,o),h=c||Op(s),p=!h("as");return function(){var m=arguments,y=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&y.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)y.push.apply(y,m);else{var _=m[0];y.push(_[0]);for(var C=m.length,E=1;E<C;E++)y.push(m[E],_[E])}var w=Sf.withEmotionCache(function($,N,Q){var H=p&&$.as||s,B="",D=[],k=$;if($.theme==null){k={};for(var G in $)k[G]=$[G];k.theme=Ft.useContext(Sf.ThemeContext)}typeof $.className=="string"?B=oE(N.registered,D,$.className):$.className!=null&&(B=$.className+" ");var ae=xp(y.concat(D),N.registered,k);B+=N.key+"-"+ae.name,u!==void 0&&(B+=" "+u);var ie=p&&c===void 0?Op(H):h,S={};for(var U in $)p&&U==="as"||ie(U)&&(S[U]=$[U]);return S.className=B,Q&&(S.ref=Q),Ft.createElement(Ft.Fragment,null,Ft.createElement(fE,{cache:N,serialized:ae,isStringTag:typeof H=="string"}),Ft.createElement(H,S))});return w.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=y,w.__emotion_forwardProp=c,Object.defineProperty(w,"toString",{value:function(){return"."+u}}),w.withComponent=function($,N){var Q=e($,lu({},n,N,{shouldForwardProp:Ip(w,N,!0)}));return Q.apply(void 0,y)},w}},hE=["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"],cu=dE.bind(null);hE.forEach(function(e){cu[e]=cu(e)});/**
|
|
171
191
|
* @mui/styled-engine v6.4.9
|
|
172
192
|
*
|
|
173
193
|
* @license MIT
|
|
174
194
|
* This source code is licensed under the MIT license found in the
|
|
175
195
|
* LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/function
|
|
177
|
-
`)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function
|
|
178
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
179
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
180
|
-
`))}return $}const
|
|
181
|
-
The color object needs to have a \`main\` property or a \`${N}\` property.`:
|
|
182
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
196
|
+
*/function pE(e,t){const n=cu(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
197
|
+
`)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function gE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Pp=[];function $p(e){return Pp[0]=e,xp(Pp)}const mE=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function yE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,a=mE(t),u=Object.keys(a);function c(_){return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n})`}function h(_){return`@media (max-width:${(typeof t[_]=="number"?t[_]:_)-o/100}${n})`}function p(_,C){const E=u.indexOf(C);return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n}) and (max-width:${(E!==-1&&typeof t[u[E]]=="number"?t[u[E]]:C)-o/100}${n})`}function m(_){return u.indexOf(_)+1<u.length?p(_,u[u.indexOf(_)+1]):c(_)}function y(_){const C=u.indexOf(_);return C===0?c(u[1]):C===u.length-1?h(u[C]):p(_,u[u.indexOf(_)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:h,between:p,only:m,not:y,unit:n,...s}}const vE={borderRadius:4};function Mp(e=8,t=su({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function bE(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Fp(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:a={},...u}=e,c=yE(n),h=Mp(s);let p=Kt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:h,shape:{...vE,...a}},u);return p=sC(p),p.applyStyles=bE,p=t.reduce((m,y)=>Kt(m,y),p),p.unstable_sxConfig={...Es,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(y){return ci({sx:y,theme:this})},p}function Dp(e){const{variants:t,...n}=e,o={variants:t,style:$p(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=$p(s.style))}),o}const _E=Fp();function fu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TE(e){return e?(t,n)=>n[e]:null}function wE(e,t,n){e.theme=xE(e.theme)?n:e.theme[t]||e.theme}function xs(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>xs(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:s,...a}=n;o=a}return kp(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function kp(e,t,n=[]){var s;let o;e:for(let a=0;a<t.length;a+=1){const u=t[a];if(typeof u.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(o))continue}else for(const c in u.props)if(e[c]!==u.props[c]&&((s=e.ownerState)==null?void 0:s[c])!==u.props[c])continue e;typeof u.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(o))):n.push(u.style)}return n}function SE(e={}){const{themeId:t,defaultTheme:n=_E,rootShouldForwardProp:o=fu,slotShouldForwardProp:s=fu}=e;function a(c){wE(c,t,n)}return(c,h={})=>{gE(c,D=>D.filter(k=>k!==ci));const{name:p,slot:m,skipVariantsResolver:y,skipSx:_,overridesResolver:C=TE(Np(m)),...E}=h,w=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,$=_||!1;let N=fu;m==="Root"||m==="root"?N=o:m?N=s:AE(c)&&(N=void 0);const Q=pE(c,{shouldForwardProp:N,label:EE(p,m),...E}),H=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(G){return xs(G,D)};if(Vn(D)){const k=Dp(D);return k.variants?function(ae){return xs(ae,k)}:k.style}return D},B=(...D)=>{const k=[],G=D.map(H),ae=[];if(k.push(a),p&&C&&ae.push(function(ne){var we,Le;const ye=(Le=(we=ne.theme.components)==null?void 0:we[p])==null?void 0:Le.styleOverrides;if(!ye)return null;const Me={};for(const Ie in ye)Me[Ie]=xs(ne,ye[Ie]);return C(ne,Me)}),p&&!w&&ae.push(function(ne){var Me,we;const fe=ne.theme,ye=(we=(Me=fe==null?void 0:fe.components)==null?void 0:Me[p])==null?void 0:we.variants;return ye?kp(ne,ye):null}),$||ae.push(ci),Array.isArray(G[0])){const U=G.shift(),ne=new Array(k.length).fill(""),fe=new Array(ae.length).fill("");let ye;ye=[...ne,...U,...fe],ye.raw=[...ne,...U.raw,...fe],k.unshift(ye)}const ie=[...k,...G,...ae],S=Q(...ie);return c.muiName&&(S.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(S.displayName=CE(p,m,c)),S};return Q.withConfig&&(B.withConfig=Q.withConfig),B}}function CE(e,t,n){return e?`${e}${Lr(t||"")}`:`Styled(${ZS(n)})`}function EE(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Np(t||"Root")}`),n}function xE(e){for(const t in e)return!1;return!0}function AE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Np(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function du(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),nC(e,t,n)}function OE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function fr(e){if(e.type)return e;if(e.charAt(0)==="#")return fr(OE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
198
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ur(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
|
|
199
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ur(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:s}}const IE=e=>{const t=fr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ao=(e,t)=>{try{return IE(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function As(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Lp(e){e=fr(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),u=(p,m=(p+n/30)%12)=>s-a*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",h.push(t[3])),As({type:c,values:h})}function hu(e){e=fr(e);let t=e.type==="hsl"||e.type==="hsla"?fr(Lp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bp(e,t){const n=hu(e),o=hu(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function PE(e,t){return e=fr(e),t=du(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,As(e)}function Os(e,t,n){try{return PE(e,t)}catch{return e}}function pu(e,t){if(e=fr(e),t=du(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return As(e)}function Ye(e,t,n){try{return pu(e,t)}catch{return e}}function gu(e,t){if(e=fr(e),t=du(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return As(e)}function qe(e,t,n){try{return gu(e,t)}catch{return e}}function $E(e,t=.15){return hu(e)>.5?pu(e,t):gu(e,t)}function Is(e,t,n){try{return $E(e,t)}catch{return e}}const ME=Ft.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object);function FE(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?iu(s.defaultProps,o):!s.styleOverrides&&!s.variants?iu(s,o):o}function DE({props:e,name:t}){const n=Ft.useContext(ME);return FE({props:e,name:t,theme:{components:n}})}const zp={theme:void 0};function kE(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(zp.theme=s.theme,a=Dp(e(zp)),t=a,n=s.theme),a}}function NE(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.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}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Up=(e,t,n,o=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},LE=(e,t,n)=>{function o(s,a=[],u=[]){Object.entries(s).forEach(([c,h])=>{(!n||n&&!n([...a,c]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?o(h,[...a,c],Array.isArray(h)?[...u,c]:u):t([...a,c],h,u))})}o(e)},BE=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function mu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},a={},u={};return LE(e,(c,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!o||!o(c,h))){const m=`--${n?`${n}-`:""}${c.join("-")}`,y=BE(c,h);Object.assign(s,{[m]:y}),Up(a,c,`var(${m})`,p),Up(u,c,`var(${m}, ${y})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function zE(e,t={}){const{getSelector:n=$,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:u,defaultColorScheme:c="light",...h}=e,{vars:p,css:m,varsWithDefaults:y}=mu(h,t);let _=y;const C={},{[c]:E,...w}=a;if(Object.entries(w||{}).forEach(([H,B])=>{const{vars:D,css:k,varsWithDefaults:G}=mu(B,t);_=Kt(_,G),C[H]={css:k,vars:D}}),E){const{css:H,vars:B,varsWithDefaults:D}=mu(E,t);_=Kt(_,D),C[c]={css:H,vars:B}}function $(H,B){var k,G;let D=s;if(s==="class"&&(D=".%s"),s==="data"&&(D="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(D=`[${s}="%s"]`),H){if(D==="media")return e.defaultColorScheme===H?":root":{[`@media (prefers-color-scheme: ${((G=(k=a[H])==null?void 0:k.palette)==null?void 0:G.mode)||H})`]:{":root":B}};if(D)return e.defaultColorScheme===H?`:root, ${D.replace("%s",String(H))}`:D.replace("%s",String(H))}return":root"}return{vars:_,generateThemeVars:()=>{let H={...p};return Object.entries(C).forEach(([,{vars:B}])=>{H=Kt(H,B)}),H},generateStyleSheets:()=>{var ae,ie;const H=[],B=e.defaultColorScheme||"light";function D(S,U){Object.keys(U).length&&H.push(typeof S=="string"?{[S]:{...U}}:S)}D(n(void 0,{...m}),m);const{[B]:k,...G}=C;if(k){const{css:S}=k,U=(ie=(ae=a[B])==null?void 0:ae.palette)==null?void 0:ie.mode,ne=!o&&U?{colorScheme:U,...S}:{...S};D(n(B,{...ne}),ne)}return Object.entries(G).forEach(([S,{css:U}])=>{var ye,Me;const ne=(Me=(ye=a[S])==null?void 0:ye.palette)==null?void 0:Me.mode,fe=!o&&ne?{colorScheme:ne,...U}:{...U};D(n(S,{...fe}),fe)}),H}}}function UE(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const lo={black:"#000",white:"#fff"},jE={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"},fi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},di={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},uo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},hi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function jp(){return{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:lo.white,default:lo.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}}}const WE=jp();function Wp(){return{text:{primary:lo.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:lo.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}}}const Vp=Wp();function Gp(e,t,n,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=gu(e.main,s):t==="dark"&&(e.dark=pu(e.main,a)))}function VE(e="light"){return e==="dark"?{main:hi[200],light:hi[50],dark:hi[400]}:{main:hi[700],light:hi[400],dark:hi[800]}}function GE(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}function HE(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function YE(e="light"){return e==="dark"?{main:pi[400],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[500],dark:pi[900]}}function qE(e="light"){return e==="dark"?{main:gi[400],light:gi[300],dark:gi[700]}:{main:gi[800],light:gi[500],dark:gi[900]}}function KE(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:"#ed6c02",light:uo[500],dark:uo[900]}}function yu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...s}=e,a=e.primary||VE(t),u=e.secondary||GE(t),c=e.error||HE(t),h=e.info||YE(t),p=e.success||qE(t),m=e.warning||KE(t);function y(w){const $=Bp(w,Vp.text.primary)>=n?Vp.text.primary:WE.text.primary;if(process.env.NODE_ENV!=="production"){const N=Bp(w,$);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${$} on ${w}`,"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(`
|
|
200
|
+
`))}return $}const _=({color:w,name:$,mainShade:N=500,lightShade:Q=300,darkShade:H=700})=>{if(w={...w},!w.main&&w[N]&&(w.main=w[N]),!w.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${$?` (${$})`:""} provided to augmentColor(color) is invalid.
|
|
201
|
+
The color object needs to have a \`main\` property or a \`${N}\` property.`:ur(11,$?` (${$})`:"",N));if(typeof w.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${$?` (${$})`:""} provided to augmentColor(color) is invalid.
|
|
202
|
+
\`color.main\` should be a string, but \`${JSON.stringify(w.main)}\` was provided instead.
|
|
183
203
|
|
|
184
204
|
Did you intend to use one of the following approaches?
|
|
185
205
|
|
|
@@ -191,17 +211,17 @@ const theme1 = createTheme({ palette: {
|
|
|
191
211
|
|
|
192
212
|
const theme2 = createTheme({ palette: {
|
|
193
213
|
primary: { main: green[500] },
|
|
194
|
-
} });`:
|
|
195
|
-
`)),Object.keys(
|
|
214
|
+
} });`:ur(12,$?` (${$})`:"",JSON.stringify(w.main)));return Gp(w,"light",Q,o),Gp(w,"dark",H,o),w.contrastText||(w.contrastText=y(w.main)),w};let C;return t==="light"?C=jp():t==="dark"&&(C=Wp()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Kt({common:{...lo},mode:t,primary:_({color:a,name:"primary"}),secondary:_({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:c,name:"error"}),warning:_({color:m,name:"warning"}),info:_({color:h,name:"info"}),success:_({color:p,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:y,augmentColor:_,tonalOffset:o,...C},s)}function JE(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${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 RE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ZE(e){return Math.round(e*1e5)/1e5}const Hp={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function XE(e,t){const{fontFamily:n=Yp,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:h=16,allVariants:p,pxToRem:m,...y}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const _=o/14,C=m||($=>`${$/h*_}rem`),E=($,N,Q,H,B)=>({fontFamily:n,fontWeight:$,fontSize:C(N),lineHeight:Q,...n===Yp?{letterSpacing:`${ZE(H/N)}em`}:{},...B,...p}),w={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(a,48,1.167,0),h4:E(a,34,1.235,.25),h5:E(a,24,1.334,0),h6:E(u,20,1.6,.15),subtitle1:E(a,16,1.75,.15),subtitle2:E(u,14,1.57,.1),body1:E(a,16,1.5,.15),body2:E(a,14,1.43,.15),button:E(u,14,1.75,.4,Hp),caption:E(a,12,1.66,.4),overline:E(a,12,2.66,1,Hp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:h,pxToRem:C,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...w},y,{clone:!1})}const QE=.2,ex=.14,tx=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${QE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ex})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tx})`].join(",")}const nx=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],rx={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)"},ix={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qp(e){return`${Math.round(e)}ms`}function ox(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sx(e){const t={...rx,...e.easing},n={...ix,...e.duration};return{getAutoHeightDuration:ox,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:h=0,...p}=a;if(process.env.NODE_ENV!=="production"){const m=_=>typeof _=="string",y=_=>!Number.isNaN(parseFloat(_));!m(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!y(u)&&!m(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!y(h)&&!m(h)&&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(`
|
|
215
|
+
`)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(m=>`${m} ${typeof u=="string"?u:qp(u)} ${c} ${typeof h=="string"?h:qp(h)}`).join(",")},...e,easing:t,duration:n}}const ax={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lx(e){return Vn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Kp(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let a=0;a<s.length;a++){const[u,c]=s[a];!lx(c)||u.startsWith("unstable_")?delete o[u]:Vn(c)&&(o[u]={...c},n(o[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
196
216
|
|
|
197
217
|
const theme = ${JSON.stringify(t,null,2)};
|
|
198
218
|
|
|
199
219
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
200
220
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
201
221
|
|
|
202
|
-
export default theme;`}function
|
|
203
|
-
`))}
|
|
204
|
-
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 ox(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const $n=e=>{try{return e()}catch{}},sx=(e="mui")=>EE(e);function mu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=ex({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...u}=gu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...Uh(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||jh(s)},u}function ax(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:u=tx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=o||(n.light&&y!=="light"?"light":y),b=sx(a),{[m]:C,light:E,dark:T,...$}=n,N={...$};let J=C;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(J=!0),!J)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:lr(21,m));const Y=mu(N,J,h,m);E&&!N.light&&mu(N,E,void 0,"light"),T&&!N.dark&&mu(N,T,void 0,"dark");let B={defaultColorScheme:m,...Y,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:b,colorSchemes:N,font:{...zE(Y.typography),...Y.font},spacing:ox(h.spacing)};Object.keys(B.colorSchemes).forEach(ie=>{const S=B.colorSchemes[ie].palette,j=ne=>{const fe=ne.split("-"),ye=fe[1],Me=fe[2];return b(ne,S[ye][Me])};if(S.mode==="light"&&(U(S.common,"background","#fff"),U(S.common,"onBackground","#000")),S.mode==="dark"&&(U(S.common,"background","#000"),U(S.common,"onBackground","#fff")),ix(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){U(S.Alert,"errorColor",Ye(S.error.light,.6)),U(S.Alert,"infoColor",Ye(S.info.light,.6)),U(S.Alert,"successColor",Ye(S.success.light,.6)),U(S.Alert,"warningColor",Ye(S.warning.light,.6)),U(S.Alert,"errorFilledBg",j("palette-error-main")),U(S.Alert,"infoFilledBg",j("palette-info-main")),U(S.Alert,"successFilledBg",j("palette-success-main")),U(S.Alert,"warningFilledBg",j("palette-warning-main")),U(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.main))),U(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.main))),U(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.main))),U(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.main))),U(S.Alert,"errorStandardBg",qe(S.error.light,.9)),U(S.Alert,"infoStandardBg",qe(S.info.light,.9)),U(S.Alert,"successStandardBg",qe(S.success.light,.9)),U(S.Alert,"warningStandardBg",qe(S.warning.light,.9)),U(S.Alert,"errorIconColor",j("palette-error-main")),U(S.Alert,"infoIconColor",j("palette-info-main")),U(S.Alert,"successIconColor",j("palette-success-main")),U(S.Alert,"warningIconColor",j("palette-warning-main")),U(S.AppBar,"defaultBg",j("palette-grey-100")),U(S.Avatar,"defaultBg",j("palette-grey-400")),U(S.Button,"inheritContainedBg",j("palette-grey-300")),U(S.Button,"inheritContainedHoverBg",j("palette-grey-A100")),U(S.Chip,"defaultBorder",j("palette-grey-400")),U(S.Chip,"defaultAvatarColor",j("palette-grey-700")),U(S.Chip,"defaultIconColor",j("palette-grey-700")),U(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(S.LinearProgress,"primaryBg",qe(S.primary.main,.62)),U(S.LinearProgress,"secondaryBg",qe(S.secondary.main,.62)),U(S.LinearProgress,"errorBg",qe(S.error.main,.62)),U(S.LinearProgress,"infoBg",qe(S.info.main,.62)),U(S.LinearProgress,"successBg",qe(S.success.main,.62)),U(S.LinearProgress,"warningBg",qe(S.warning.main,.62)),U(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),U(S.Slider,"primaryTrack",qe(S.primary.main,.62)),U(S.Slider,"secondaryTrack",qe(S.secondary.main,.62)),U(S.Slider,"errorTrack",qe(S.error.main,.62)),U(S.Slider,"infoTrack",qe(S.info.main,.62)),U(S.Slider,"successTrack",qe(S.success.main,.62)),U(S.Slider,"warningTrack",qe(S.warning.main,.62));const ne=As(S.background.default,.8);U(S.SnackbarContent,"bg",ne),U(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),U(S.SpeedDialAction,"fabHoverBg",As(S.background.paper,.15)),U(S.StepConnector,"border",j("palette-grey-400")),U(S.StepContent,"border",j("palette-grey-400")),U(S.Switch,"defaultColor",j("palette-common-white")),U(S.Switch,"defaultDisabledColor",j("palette-grey-100")),U(S.Switch,"primaryDisabledColor",qe(S.primary.main,.62)),U(S.Switch,"secondaryDisabledColor",qe(S.secondary.main,.62)),U(S.Switch,"errorDisabledColor",qe(S.error.main,.62)),U(S.Switch,"infoDisabledColor",qe(S.info.main,.62)),U(S.Switch,"successDisabledColor",qe(S.success.main,.62)),U(S.Switch,"warningDisabledColor",qe(S.warning.main,.62)),U(S.TableCell,"border",qe(xs(S.divider,1),.88)),U(S.Tooltip,"bg",xs(S.grey[700],.92))}if(S.mode==="dark"){U(S.Alert,"errorColor",qe(S.error.light,.6)),U(S.Alert,"infoColor",qe(S.info.light,.6)),U(S.Alert,"successColor",qe(S.success.light,.6)),U(S.Alert,"warningColor",qe(S.warning.light,.6)),U(S.Alert,"errorFilledBg",j("palette-error-dark")),U(S.Alert,"infoFilledBg",j("palette-info-dark")),U(S.Alert,"successFilledBg",j("palette-success-dark")),U(S.Alert,"warningFilledBg",j("palette-warning-dark")),U(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.dark))),U(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.dark))),U(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.dark))),U(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.dark))),U(S.Alert,"errorStandardBg",Ye(S.error.light,.9)),U(S.Alert,"infoStandardBg",Ye(S.info.light,.9)),U(S.Alert,"successStandardBg",Ye(S.success.light,.9)),U(S.Alert,"warningStandardBg",Ye(S.warning.light,.9)),U(S.Alert,"errorIconColor",j("palette-error-main")),U(S.Alert,"infoIconColor",j("palette-info-main")),U(S.Alert,"successIconColor",j("palette-success-main")),U(S.Alert,"warningIconColor",j("palette-warning-main")),U(S.AppBar,"defaultBg",j("palette-grey-900")),U(S.AppBar,"darkBg",j("palette-background-paper")),U(S.AppBar,"darkColor",j("palette-text-primary")),U(S.Avatar,"defaultBg",j("palette-grey-600")),U(S.Button,"inheritContainedBg",j("palette-grey-800")),U(S.Button,"inheritContainedHoverBg",j("palette-grey-700")),U(S.Chip,"defaultBorder",j("palette-grey-700")),U(S.Chip,"defaultAvatarColor",j("palette-grey-300")),U(S.Chip,"defaultIconColor",j("palette-grey-300")),U(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(S.LinearProgress,"primaryBg",Ye(S.primary.main,.5)),U(S.LinearProgress,"secondaryBg",Ye(S.secondary.main,.5)),U(S.LinearProgress,"errorBg",Ye(S.error.main,.5)),U(S.LinearProgress,"infoBg",Ye(S.info.main,.5)),U(S.LinearProgress,"successBg",Ye(S.success.main,.5)),U(S.LinearProgress,"warningBg",Ye(S.warning.main,.5)),U(S.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),U(S.Slider,"primaryTrack",Ye(S.primary.main,.5)),U(S.Slider,"secondaryTrack",Ye(S.secondary.main,.5)),U(S.Slider,"errorTrack",Ye(S.error.main,.5)),U(S.Slider,"infoTrack",Ye(S.info.main,.5)),U(S.Slider,"successTrack",Ye(S.success.main,.5)),U(S.Slider,"warningTrack",Ye(S.warning.main,.5));const ne=As(S.background.default,.98);U(S.SnackbarContent,"bg",ne),U(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),U(S.SpeedDialAction,"fabHoverBg",As(S.background.paper,.15)),U(S.StepConnector,"border",j("palette-grey-600")),U(S.StepContent,"border",j("palette-grey-600")),U(S.Switch,"defaultColor",j("palette-grey-300")),U(S.Switch,"defaultDisabledColor",j("palette-grey-600")),U(S.Switch,"primaryDisabledColor",Ye(S.primary.main,.55)),U(S.Switch,"secondaryDisabledColor",Ye(S.secondary.main,.55)),U(S.Switch,"errorDisabledColor",Ye(S.error.main,.55)),U(S.Switch,"infoDisabledColor",Ye(S.info.main,.55)),U(S.Switch,"successDisabledColor",Ye(S.success.main,.55)),U(S.Switch,"warningDisabledColor",Ye(S.warning.main,.55)),U(S.TableCell,"border",Ye(xs(S.divider,1),.68)),U(S.Tooltip,"bg",xs(S.grey[700],.92))}Hn(S.background,"default"),Hn(S.background,"paper"),Hn(S.common,"background"),Hn(S.common,"onBackground"),Hn(S,"divider"),Object.keys(S).forEach(ne=>{const fe=S[ne];ne!=="tonalOffset"&&fe&&typeof fe=="object"&&(fe.main&&U(S[ne],"mainChannel",oo(lo(fe.main))),fe.light&&U(S[ne],"lightChannel",oo(lo(fe.light))),fe.dark&&U(S[ne],"darkChannel",oo(lo(fe.dark))),fe.contrastText&&U(S[ne],"contrastTextChannel",oo(lo(fe.contrastText))),ne==="text"&&(Hn(S[ne],"primary"),Hn(S[ne],"secondary")),ne==="action"&&(fe.active&&Hn(S[ne],"active"),fe.selected&&Hn(S[ne],"selected")))})}),B=t.reduce((ie,S)=>Rt(ie,S),B);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:rx(B)},{vars:k,generateThemeVars:H,generateStyleSheets:ae}=OE(B,D);return B.vars=k,Object.entries(B.colorSchemes[B.defaultColorScheme]).forEach(([ie,S])=>{B[ie]=S}),B.generateThemeVars=H,B.generateStyleSheets=ae,B.generateSpacing=function(){return Sh(h.spacing,ru(this))},B.getColorSchemeSelector=IE(c),B.spacing=B.generateSpacing(),B.shouldSkipGeneratingVar=u,B.unstable_sxConfig={...Ss,...h==null?void 0:h.unstable_sxConfig},B.unstable_sx=function(S){return ui({sx:S,theme:this})},B.toRuntimeSource=Bh,B}function Wh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:hu({...n===!0?{}:n.palette,mode:t})})}function lx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",d=s==null?void 0:s[c],h={...s,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return gu(e,...t);let y=n;"palette"in e||h[c]&&(h[c]!==!0?y=h[c].palette:c==="dark"&&(y={mode:"dark"}));const m=gu({...e,palette:y},...t);return m.defaultColorScheme=c,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},Wh(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},Wh(m,"light",h.light)),m}return!n&&!("light"in h)&&c==="light"&&(h.light=!0),ax({...u,colorSchemes:h,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const ux=lx(),cx="$$material";function fx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dx=dE({themeId:cx,defaultTheme:ux,rootShouldForwardProp:e=>fx(e)&&e!=="classes"}),px=CE;process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object.isRequired);function hx(e){return SE(e)}function gx(e){return nu("MuiSvgIcon",e)}GS("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mx=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Nr(t)}`,`fontSize${Nr(n)}`]};return jS(s,gx,o)},yx=dx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Nr(n.color)}`],t[`fontSize${Nr(n.fontSize)}`]]}})(px(({theme:e})=>{var t,n,o,s,a,u,c,d,h,y,m,b,C,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var $,N;return{props:{color:T},style:{color:(N=($=(e.vars??e).palette)==null?void 0:$[T])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(E=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Os=Ft.forwardRef(function(t,n){const o=hx({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:b="0 0 24 24",...C}=o,E=Ft.isValidElement(s)&&s.type==="svg",T={...o,color:u,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:E},$={};y||($.viewBox=b);const N=mx(T);return p.jsxs(yx,{as:c,className:Ir(N.root,a),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...$,...C,...E&&s.props,ownerState:T,children:[E?s.props.children:s,m?p.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Os.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ne.string]),component:Ne.elementType,fontSize:Ne.oneOfType([Ne.oneOf(["inherit","large","medium","small"]),Ne.string]),htmlColor:Ne.string,inheritViewBox:Ne.bool,shapeRendering:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),titleAccess:Ne.string,viewBox:Ne.string}),Os.muiName="SvgIcon";function yu(e,t){function n(o,s){return p.jsx(Os,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Os.muiName,Ft.memo(Ft.forwardRef(n))}const vx=yu(p.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),bx=yu(p.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),_x=yu(p.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");function wx(){this.__data__=[],this.size=0}var Tx=wx;function Sx(e,t){return e===t||e!==e&&t!==t}var Is=Sx,Cx=Is;function Ex(e,t){for(var n=e.length;n--;)if(Cx(e[n][0],t))return n;return-1}var Ps=Ex,xx=Ps,Ax=Array.prototype,Ox=Ax.splice;function Ix(e){var t=this.__data__,n=xx(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Ox.call(t,n,1),--this.size,!0}var Px=Ix,$x=Ps;function Mx(e){var t=this.__data__,n=$x(t,e);return n<0?void 0:t[n][1]}var Fx=Mx,Dx=Ps;function kx(e){return Dx(this.__data__,e)>-1}var Nx=kx,Lx=Ps;function zx(e,t){var n=this.__data__,o=Lx(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var Bx=zx,Ux=Tx,jx=Px,Wx=Fx,Vx=Nx,Gx=Bx;function gi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}gi.prototype.clear=Ux,gi.prototype.delete=jx,gi.prototype.get=Wx,gi.prototype.has=Vx,gi.prototype.set=Gx;var $s=gi,Hx=$s;function Yx(){this.__data__=new Hx,this.size=0}var qx=Yx;function Rx(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Kx=Rx;function Jx(e){return this.__data__.get(e)}var Zx=Jx;function Xx(e){return this.__data__.has(e)}var Qx=Xx,eA=Dr,tA=eA(Object,"create"),Ms=tA,Vh=Ms;function nA(){this.__data__=Vh?Vh(null):{},this.size=0}var rA=nA;function iA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oA=iA,sA=Ms,aA="__lodash_hash_undefined__",lA=Object.prototype,uA=lA.hasOwnProperty;function cA(e){var t=this.__data__;if(sA){var n=t[e];return n===aA?void 0:n}return uA.call(t,e)?t[e]:void 0}var fA=cA,dA=Ms,pA=Object.prototype,hA=pA.hasOwnProperty;function gA(e){var t=this.__data__;return dA?t[e]!==void 0:hA.call(t,e)}var mA=gA,yA=Ms,vA="__lodash_hash_undefined__";function bA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yA&&t===void 0?vA:t,this}var _A=bA,wA=rA,TA=oA,SA=fA,CA=mA,EA=_A;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}mi.prototype.clear=wA,mi.prototype.delete=TA,mi.prototype.get=SA,mi.prototype.has=CA,mi.prototype.set=EA;var xA=mi,Gh=xA,AA=$s,OA=$l;function IA(){this.size=0,this.__data__={hash:new Gh,map:new(OA||AA),string:new Gh}}var PA=IA;function $A(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var MA=$A,FA=MA;function DA(e,t){var n=e.__data__;return FA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Fs=DA,kA=Fs;function NA(e){var t=kA(this,e).delete(e);return this.size-=t?1:0,t}var LA=NA,zA=Fs;function BA(e){return zA(this,e).get(e)}var UA=BA,jA=Fs;function WA(e){return jA(this,e).has(e)}var VA=WA,GA=Fs;function HA(e,t){var n=GA(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var YA=HA,qA=PA,RA=LA,KA=UA,JA=VA,ZA=YA;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}yi.prototype.clear=qA,yi.prototype.delete=RA,yi.prototype.get=KA,yi.prototype.has=JA,yi.prototype.set=ZA;var Hh=yi,XA=$s,QA=$l,eO=Hh,tO=200;function nO(e,t){var n=this.__data__;if(n instanceof XA){var o=n.__data__;if(!QA||o.length<tO-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new eO(o)}return n.set(e,t),this.size=n.size,this}var rO=nO,iO=$s,oO=qx,sO=Kx,aO=Zx,lO=Qx,uO=rO;function vi(e){var t=this.__data__=new iO(e);this.size=t.size}vi.prototype.clear=oO,vi.prototype.delete=sO,vi.prototype.get=aO,vi.prototype.has=lO,vi.prototype.set=uO;var cO=vi,fO=Dr,dO=function(){try{var e=fO(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Yh=dO,qh=Yh;function pO(e,t,n){t=="__proto__"&&qh?qh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vu=pO,hO=vu,gO=Is;function mO(e,t,n){(n!==void 0&&!gO(e[t],n)||n===void 0&&!(t in e))&&hO(e,t,n)}var Rh=mO;function yO(e){return function(t,n,o){for(var s=-1,a=Object(t),u=o(t),c=u.length;c--;){var d=u[e?c:++s];if(n(a[d],d,a)===!1)break}return t}}var vO=yO,bO=vO,_O=bO(),wO=_O,Ds={exports:{}};Ds.exports,function(e,t){var n=bn,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a?n.Buffer:void 0,c=u?u.allocUnsafe:void 0;function d(h,y){if(y)return h.slice();var m=h.length,b=c?c(m):new h.constructor(m);return h.copy(b),b}e.exports=d}(Ds,Ds.exports);var TO=Ds.exports,SO=bn,CO=SO.Uint8Array,EO=CO,Kh=EO;function xO(e){var t=new e.constructor(e.byteLength);return new Kh(t).set(new Kh(e)),t}var AO=xO,OO=AO;function IO(e,t){var n=t?OO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var PO=IO;function $O(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var MO=$O,FO=Wn,Jh=Object.create,DO=function(){function e(){}return function(t){if(!FO(t))return{};if(Jh)return Jh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),kO=DO,NO=op,LO=NO(Object.getPrototypeOf,Object),Zh=LO,zO=kO,BO=Zh,UO=ns;function jO(e){return typeof e.constructor=="function"&&!UO(e)?zO(BO(e)):{}}var WO=jO,VO=is,GO=si;function HO(e){return GO(e)&&VO(e)}var Xh=HO,YO=oi,qO=Zh,RO=si,KO="[object Object]",JO=Function.prototype,ZO=Object.prototype,Qh=JO.toString,XO=ZO.hasOwnProperty,QO=Qh.call(Object);function e2(e){if(!RO(e)||YO(e)!=KO)return!1;var t=qO(e);if(t===null)return!0;var n=XO.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Qh.call(n)==QO}var t2=e2;function n2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var eg=n2,r2=vu,i2=Is,o2=Object.prototype,s2=o2.hasOwnProperty;function a2(e,t,n){var o=e[t];(!(s2.call(e,t)&&i2(o,n))||n===void 0&&!(t in e))&&r2(e,t,n)}var l2=a2,u2=l2,c2=vu;function f2(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],d=o?o(n[c],e[c],c,n,e):void 0;d===void 0&&(d=e[c]),s?c2(n,c,d):u2(n,c,d)}return n}var d2=f2;function p2(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var h2=p2,g2=9007199254740991,m2=/^(?:0|[1-9]\d*)$/;function y2(e,t){var n=typeof e;return t=t??g2,!!t&&(n=="number"||n!="symbol"&&m2.test(e))&&e>-1&&e%1==0&&e<t}var tg=y2,v2=h2,b2=rs,_2=Qi,w2=Ll,T2=tg,S2=zl,C2=Object.prototype,E2=C2.hasOwnProperty;function x2(e,t){var n=_2(e),o=!n&&b2(e),s=!n&&!o&&w2(e),a=!n&&!o&&!s&&S2(e),u=n||o||s||a,c=u?v2(e.length,String):[],d=c.length;for(var h in e)(t||E2.call(e,h))&&!(u&&(h=="length"||s&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||T2(h,d)))&&c.push(h);return c}var A2=x2;function O2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var I2=O2,P2=Wn,$2=ns,M2=I2,F2=Object.prototype,D2=F2.hasOwnProperty;function k2(e){if(!P2(e))return M2(e);var t=$2(e),n=[];for(var o in e)o=="constructor"&&(t||!D2.call(e,o))||n.push(o);return n}var N2=k2,L2=A2,z2=N2,B2=is;function U2(e){return B2(e)?L2(e,!0):z2(e)}var ng=U2,j2=d2,W2=ng;function V2(e){return j2(e,W2(e))}var G2=V2,rg=Rh,H2=TO,Y2=PO,q2=MO,R2=WO,ig=rs,og=Qi,K2=Xh,J2=Ll,Z2=Il,X2=Wn,Q2=t2,eI=zl,sg=eg,tI=G2;function nI(e,t,n,o,s,a,u){var c=sg(e,n),d=sg(t,n),h=u.get(d);if(h){rg(e,n,h);return}var y=a?a(c,d,n+"",e,t,u):void 0,m=y===void 0;if(m){var b=og(d),C=!b&&J2(d),E=!b&&!C&&eI(d);y=d,b||C||E?og(c)?y=c:K2(c)?y=q2(c):C?(m=!1,y=H2(d,!0)):E?(m=!1,y=Y2(d,!0)):y=[]:Q2(d)||ig(d)?(y=c,ig(c)?y=tI(c):(!X2(c)||Z2(c))&&(y=R2(d))):m=!1}m&&(u.set(d,y),s(y,d,o,a,u),u.delete(d)),rg(e,n,y)}var rI=nI,iI=cO,oI=Rh,sI=wO,aI=rI,lI=Wn,uI=ng,cI=eg;function ag(e,t,n,o,s){e!==t&&sI(t,function(a,u){if(s||(s=new iI),lI(a))aI(e,t,u,n,ag,o,s);else{var c=o?o(cI(e,u),a,u+"",e,t,s):void 0;c===void 0&&(c=a),oI(e,u,c)}},uI)}var fI=ag;function dI(e){return e}var lg=dI;function pI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var hI=pI,gI=hI,ug=Math.max;function mI(e,t,n){return t=ug(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=ug(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),gI(e,this,c)}}var yI=mI;function vI(e){return function(){return e}}var bI=vI,_I=bI,cg=Yh,wI=lg,TI=cg?function(e,t){return cg(e,"toString",{configurable:!0,enumerable:!1,value:_I(t),writable:!0})}:wI,SI=TI,CI=800,EI=16,xI=Date.now;function AI(e){var t=0,n=0;return function(){var o=xI(),s=EI-(o-n);if(n=o,s>0){if(++t>=CI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var OI=AI,II=SI,PI=OI,$I=PI(II),MI=$I,FI=lg,DI=yI,kI=MI;function NI(e,t){return kI(DI(e,t,FI),e+"")}var fg=NI,LI=Is,zI=is,BI=tg,UI=Wn;function jI(e,t,n){if(!UI(n))return!1;var o=typeof t;return(o=="number"?zI(n)&&BI(t,n.length):o=="string"&&t in n)?LI(n[t],e):!1}var dg=jI,WI=fg,VI=dg;function GI(e){return WI(function(t,n){var o=-1,s=n.length,a=s>1?n[s-1]:void 0,u=s>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(s--,a):void 0,u&&VI(n[0],n[1],u)&&(a=s<3?void 0:a,s=1),t=Object(t);++o<s;){var c=n[o];c&&e(t,c,o,a)}return t})}var HI=GI,YI=fI,qI=HI,RI=qI(function(e,t,n){YI(e,t,n)}),KI=RI;const JI=ir(KI);var ZI=Math.ceil,XI=Math.max;function QI(e,t,n,o){for(var s=-1,a=XI(ZI((t-e)/(n||1)),0),u=Array(a);a--;)u[o?a:++s]=e,e+=n;return u}var eP=QI,tP=rp,nP=1/0,rP=17976931348623157e292;function iP(e){if(!e)return e===0?e:0;if(e=tP(e),e===nP||e===-1/0){var t=e<0?-1:1;return t*rP}return e===e?e:0}var oP=iP,sP=eP,aP=dg,bu=oP;function lP(e){return function(t,n,o){return o&&typeof o!="number"&&aP(t,n,o)&&(n=o=void 0),t=bu(t),n===void 0?(n=t,t=0):n=bu(n),o=o===void 0?t<n?1:-1:bu(o),sP(t,n,o,e)}}var uP=lP,cP=uP,fP=cP(),dP=fP;const pP=ir(dP);function hP(e,t,n,o){var s=-1,a=e==null?0:e.length;for(o&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}var gP=hP;function mP(e){return function(t){return e==null?void 0:e[t]}}var yP=mP,vP=yP,bP={À:"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"},_P=vP(bP),wP=_P;function TP(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var SP=TP,pg=ts,CP=SP,EP=Qi,xP=ep,hg=pg?pg.prototype:void 0,gg=hg?hg.toString:void 0;function mg(e){if(typeof e=="string")return e;if(EP(e))return CP(e,mg)+"";if(xP(e))return gg?gg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var AP=mg,OP=AP;function IP(e){return e==null?"":OP(e)}var _u=IP,PP=wP,$P=_u,MP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,FP="\\u0300-\\u036f",DP="\\ufe20-\\ufe2f",kP="\\u20d0-\\u20ff",NP=FP+DP+kP,LP="["+NP+"]",zP=RegExp(LP,"g");function BP(e){return e=$P(e),e&&e.replace(MP,PP).replace(zP,"")}var UP=BP,jP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function WP(e){return e.match(jP)||[]}var VP=WP,GP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function HP(e){return GP.test(e)}var YP=HP,yg="\\ud800-\\udfff",qP="\\u0300-\\u036f",RP="\\ufe20-\\ufe2f",KP="\\u20d0-\\u20ff",JP=qP+RP+KP,vg="\\u2700-\\u27bf",bg="a-z\\xdf-\\xf6\\xf8-\\xff",ZP="\\xac\\xb1\\xd7\\xf7",XP="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",QP="\\u2000-\\u206f",e$=" \\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",_g="A-Z\\xc0-\\xd6\\xd8-\\xde",t$="\\ufe0e\\ufe0f",wg=ZP+XP+QP+e$,Tg="['’]",Sg="["+wg+"]",n$="["+JP+"]",Cg="\\d+",r$="["+vg+"]",Eg="["+bg+"]",xg="[^"+yg+wg+Cg+vg+bg+_g+"]",i$="\\ud83c[\\udffb-\\udfff]",o$="(?:"+n$+"|"+i$+")",s$="[^"+yg+"]",Ag="(?:\\ud83c[\\udde6-\\uddff]){2}",Og="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+_g+"]",a$="\\u200d",Ig="(?:"+Eg+"|"+xg+")",l$="(?:"+bi+"|"+xg+")",Pg="(?:"+Tg+"(?:d|ll|m|re|s|t|ve))?",$g="(?:"+Tg+"(?:D|LL|M|RE|S|T|VE))?",Mg=o$+"?",Fg="["+t$+"]?",u$="(?:"+a$+"(?:"+[s$,Ag,Og].join("|")+")"+Fg+Mg+")*",c$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",d$=Fg+Mg+u$,p$="(?:"+[r$,Ag,Og].join("|")+")"+d$,h$=RegExp([bi+"?"+Eg+"+"+Pg+"(?="+[Sg,bi,"$"].join("|")+")",l$+"+"+$g+"(?="+[Sg,bi+Ig,"$"].join("|")+")",bi+"?"+Ig+"+"+Pg,bi+"+"+$g,f$,c$,Cg,p$].join("|"),"g");function g$(e){return e.match(h$)||[]}var m$=g$,y$=VP,v$=YP,b$=_u,_$=m$;function w$(e,t,n){return e=b$(e),t=n?void 0:t,t===void 0?v$(e)?_$(e):y$(e):e.match(t)||[]}var T$=w$,S$=gP,C$=UP,E$=T$,x$="['’]",A$=RegExp(x$,"g");function O$(e){return function(t){return S$(E$(C$(t).replace(A$,"")),e,"")}}var I$=O$;function P$(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++o<s;)a[o]=e[o+t];return a}var $$=P$,M$=$$;function F$(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:M$(e,t,n)}var D$=F$,k$="\\ud800-\\udfff",N$="\\u0300-\\u036f",L$="\\ufe20-\\ufe2f",z$="\\u20d0-\\u20ff",B$=N$+L$+z$,U$="\\ufe0e\\ufe0f",j$="\\u200d",W$=RegExp("["+j$+k$+B$+U$+"]");function V$(e){return W$.test(e)}var Dg=V$;function G$(e){return e.split("")}var H$=G$,kg="\\ud800-\\udfff",Y$="\\u0300-\\u036f",q$="\\ufe20-\\ufe2f",R$="\\u20d0-\\u20ff",K$=Y$+q$+R$,J$="\\ufe0e\\ufe0f",Z$="["+kg+"]",wu="["+K$+"]",Tu="\\ud83c[\\udffb-\\udfff]",X$="(?:"+wu+"|"+Tu+")",Ng="[^"+kg+"]",Lg="(?:\\ud83c[\\udde6-\\uddff]){2}",zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Q$="\\u200d",Bg=X$+"?",Ug="["+J$+"]?",eM="(?:"+Q$+"(?:"+[Ng,Lg,zg].join("|")+")"+Ug+Bg+")*",tM=Ug+Bg+eM,nM="(?:"+[Ng+wu+"?",wu,Lg,zg,Z$].join("|")+")",rM=RegExp(Tu+"(?="+Tu+")|"+nM+tM,"g");function iM(e){return e.match(rM)||[]}var oM=iM,sM=H$,aM=Dg,lM=oM;function uM(e){return aM(e)?lM(e):sM(e)}var cM=uM,fM=D$,dM=Dg,pM=cM,hM=_u;function gM(e){return function(t){t=hM(t);var n=dM(t)?pM(t):void 0,o=n?n[0]:t.charAt(0),s=n?fM(n,1).join(""):t.slice(1);return o[e]()+s}}var mM=gM,yM=mM,vM=yM("toUpperCase"),bM=vM,_M=I$,wM=bM,TM=_M(function(e,t,n){return e+(n?" ":"")+wM(t)}),SM=TM;const CM=ir(SM);function EM(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var xM=EM,jg=ts,AM=rs,OM=Qi,Wg=jg?jg.isConcatSpreadable:void 0;function IM(e){return OM(e)||AM(e)||!!(Wg&&e&&e[Wg])}var PM=IM,$M=xM,MM=PM;function Vg(e,t,n,o,s){var a=-1,u=e.length;for(n||(n=MM),s||(s=[]);++a<u;){var c=e[a];t>0&&n(c)?t>1?Vg(c,t-1,n,o,s):$M(s,c):o||(s[s.length]=c)}return s}var FM=Vg,DM="__lodash_hash_undefined__";function kM(e){return this.__data__.set(e,DM),this}var NM=kM;function LM(e){return this.__data__.has(e)}var zM=LM,BM=Hh,UM=NM,jM=zM;function ks(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new BM;++t<n;)this.add(e[t])}ks.prototype.add=ks.prototype.push=UM,ks.prototype.has=jM;var WM=ks;function VM(e,t,n,o){for(var s=e.length,a=n+(o?1:-1);o?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var GM=VM;function HM(e){return e!==e}var YM=HM;function qM(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var RM=qM,KM=GM,JM=YM,ZM=RM;function XM(e,t,n){return t===t?ZM(e,t,n):KM(e,JM,n)}var QM=XM,eF=QM;function tF(e,t){var n=e==null?0:e.length;return!!n&&eF(e,t,0)>-1}var nF=tF;function rF(e,t,n){for(var o=-1,s=e==null?0:e.length;++o<s;)if(n(t,e[o]))return!0;return!1}var iF=rF;function oF(e,t){return e.has(t)}var sF=oF;function aF(){}var lF=aF;function uF(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Gg=uF,Su=lp,cF=lF,fF=Gg,dF=1/0,pF=Su&&1/fF(new Su([,-0]))[1]==dF?function(e){return new Su(e)}:cF,hF=pF,gF=WM,mF=nF,yF=iF,vF=sF,bF=hF,_F=Gg,wF=200;function TF(e,t,n){var o=-1,s=mF,a=e.length,u=!0,c=[],d=c;if(n)u=!1,s=yF;else if(a>=wF){var h=t?null:bF(e);if(h)return _F(h);u=!1,s=vF,d=new gF}else d=t?[]:c;e:for(;++o<a;){var y=e[o],m=t?t(y):y;if(y=n||y!==0?y:0,u&&m===m){for(var b=d.length;b--;)if(d[b]===m)continue e;t&&d.push(m),c.push(y)}else s(d,m,n)||(d!==c&&d.push(m),c.push(y))}return c}var SF=TF,CF=FM,EF=fg,xF=SF,AF=Xh,OF=EF(function(e){return xF(CF(e,1,AF,!0))}),IF=OF;const PF=ir(IF),_i=({children:e,...t})=>p.jsx(w.Table.Td,{...t,children:e}),Hg=({errorMessages:e,id:t})=>p.jsx(w.Tooltip,{id:t,title:e,children:p.jsx(w.Indicator,{label:e.split(`
|
|
205
|
-
`).length,children:p.jsx(Kb,{})})}),$F={paddingLeft:0,paddingRight:0},Yg=A.memo(function({numColumns:t,errors:n,label:o,description:s,path:a,addItem:u,schema:c,enabled:d,translations:h,rootSchema:y}){const m={bg:"transparent",size:"sm",c:"gray"},b=w.useProps("ActionIcon",m,{});return p.jsxs(w.Table.Tr,{children:[p.jsx(_i,{colSpan:t,children:p.jsxs(w.Stack,{children:[p.jsxs(w.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[p.jsx(w.Grid.Col,{span:"content",children:p.jsx(w.Text,{children:o})}),p.jsx(w.Grid.Col,{span:"content",children:n.length!==0?p.jsx(w.Grid.Col,{span:"content",children:p.jsx(Hg,{id:"tooltip-validation",errorMessages:n})}):null})]}),s&&p.jsx(w.Text,{size:"sm",children:s})]})}),d?p.jsx(_i,{align:"right",style:$F,children:p.jsx(w.Tooltip,{id:"tooltip-add",title:h.addTooltip,position:"bottom",children:p.jsx(w.ActionIcon,{bg:b.bg,size:b.size,c:b.c,onClick:u(a,ue.createDefaultValue(c,y)),children:p.jsx(ml,{})})})}):null]})}),qg={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},Rg=(e,t,n,o,s)=>{if(t.type==="object")return Kg(t).map(a=>{var d,h;const u=ue.Paths.compose(n,a),c={propName:a,schema:t,title:((h=(d=t.properties)==null?void 0:d[a])==null?void 0:h.title)??CM(a),rowPath:n,cellPath:u,enabled:o,cells:s};return p.jsx(e,{...c},u)});{const a={schema:t,rowPath:n,cellPath:n,enabled:o};return p.jsx(e,{...a},n)}},Kg=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],MF=({numColumns:e,translations:t})=>p.jsx(w.Table.Tr,{children:p.jsx(_i,{colSpan:e,children:p.jsx(w.Text,{align:"center",children:t.noDataMessage})})}),FF=A.memo(function({title:t}){return p.jsx(w.Table.Th,{children:t})}),DF=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),o=ue.formatErrorMessage(PF(ue.errorsAt(n,t.schema,s=>s===n)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:o,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},Jg=e=>({type:"Control",scope:e,label:!1}),kF=A.memo(function({path:t,propName:n,schema:o,rootSchema:s,errors:a,enabled:u,renderers:c,cells:d,isValid:h}){return p.jsxs(_i,{children:[o.properties?p.jsx(De.DispatchCell,{schema:ue.Resolve.schema(o,`#/properties/${ue.encode(n)}`,s),uischema:Jg(`#/properties/${ue.encode(n)}`),path:t,enabled:u,renderers:c,cells:d}):p.jsx(De.DispatchCell,{schema:o,uischema:Jg("#"),path:t,enabled:u,renderers:c,cells:d}),p.jsx(w.Text,{size:"xs",children:h?"":a})]})}),NF=e=>{const t=De.useJsonForms(),n=DF(t,e),o=_p(n.errors);return p.jsx(kF,{...n,isValid:o})},LF=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:u,enableDown:c,showSortButtons:d,enabled:h,cells:y,path:m,translations:b})=>{const C={bg:"transparent",size:"sm",c:"gray"},E=w.useProps("ActionIcon",C,{}),T=A.useMemo(()=>s(m,n),[s,m,n]),$=A.useMemo(()=>a(m,n),[a,m,n]);return p.jsxs(w.Table.Tr,{children:[Rg(NF,t,e,h,y),h?p.jsx(_i,{style:d?qg.fixedCell:qg.fixedCellSmall,children:p.jsxs(w.Grid,{justify:"flex-end",align:"center",children:[d?p.jsxs(A.Fragment,{children:[p.jsx(w.Grid.Col,{span:"content",children:p.jsx(w.Tooltip,{id:"tooltip-up",title:b.up,position:"bottom",opened:u?void 0:!1,children:p.jsx(w.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":b.upAriaLabel,onClick:T,disabled:!u,children:p.jsx(bx,{})})})}),p.jsx(w.Grid.Col,{span:"content",children:p.jsx(w.Tooltip,{id:"tooltip-down",title:b.down,position:"bottom",opened:c?void 0:!1,children:p.jsx(w.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":b.downAriaLabel,onClick:$,disabled:!c,children:p.jsx(vx,{})})})})]}):null,p.jsx(w.Grid.Col,{span:"content",children:p.jsx(w.Tooltip,{id:"tooltip-remove",title:b.removeTooltip,position:"bottom",children:p.jsx(w.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":b.removeAriaLabel,onClick:()=>o(e,n),children:p.jsx(_x,{})})})})]})}):null]},e)},Zg=A.memo(LF),zF=({data:e,path:t,schema:n,openDeleteDialog:o,moveUp:s,moveDown:a,uischema:u,config:c,enabled:d,cells:h,translations:y})=>{if(e===0)return p.jsx(MF,{numColumns:Kg(n).length+1,translations:y});const b=JI({},c,u.options);return p.jsx(A.Fragment,{children:pP(e).map(C=>{const E=ue.Paths.compose(t,`${C}`);return p.jsx(Zg,{childPath:E,rowIndex:C,schema:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:C!==0,enableDown:C!==e-1,showSortButtons:b.showSortButtons||b.showArrayTableSortButtons,enabled:d,cells:h,path:t,translations:y},E)})})};class Xg extends A.Component{constructor(){super(...arguments);Jv(this,"addItem",(n,o)=>this.props.addItem(n,o))}render(){const{label:n,description:o,path:s,schema:a,rootSchema:u,uischema:c,errors:d,openDeleteDialog:h,visible:y,enabled:m,cells:b,translations:C}=this.props,E=c,T=a.type==="object",$=T?Rg(FF,a,s,m,b):void 0;return y?p.jsxs(w.Table,{children:[p.jsxs(w.Table.Thead,{children:[p.jsx(Yg,{errors:d,label:n,description:o,addItem:this.addItem,numColumns:T?$.length:1,path:s,uischema:E,schema:a,rootSchema:u,enabled:m,translations:C}),T&&p.jsxs(w.Table.Tr,{children:[$,m?p.jsx(w.Table.Th,{}):null]})]}),p.jsx(w.Table.Tbody,{children:p.jsx(zF,{openDeleteDialog:h,translations:C,...this.props})})]}):null}}const BF=e=>{const[t,n]=A.useState(!1),[o,s]=A.useState(void 0),[a,u]=A.useState(void 0),{removeItems:c,visible:d}=e,h=A.useCallback((C,E)=>{n(!0),s(C),u(E)},[n,s,u]),y=A.useCallback(()=>n(!1),[n]),m=A.useCallback(()=>{const C=o.substring(0,o.lastIndexOf("."));c(C,[a])(),n(!1)},[n,o,a]),b=A.useCallback(()=>n(!1),[n]);return d?p.jsxs(p.Fragment,{children:[p.jsx(Xg,{...e,openDeleteDialog:h}),p.jsx(Hp,{open:t,onCancel:y,onConfirm:m,onClose:b,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},Qg=ue.rankWith(1,ue.or(ue.isObjectArrayControl,ue.isPrimitiveArrayControl)),em=De.withJsonFormsArrayLayoutProps(BF),UF=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),jF=e=>e.type==="string"&&e.enum!==void 0;function tm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(ar(n.type,"array")&&!Array.isArray(n.items)&&n.uniqueItems===!0&&(UF(n.items)||jF(n.items)))}function nm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(ar(n.type,"object")&&!n.properties)}const rm=ue.rankWith(1,tm),im=De.withJsonFormsMultiEnumProps(e=>p.jsx(xp,{...e})),om=ue.rankWith(1,ue.isObjectControl),sm=De.withJsonFormsDetailProps(e=>p.jsx(Op,{...e})),am=ue.rankWith(1,ue.isBooleanControl),lm=De.withJsonFormsControlProps(e=>p.jsx(Ul,{...e})),um=ue.rankWith(1,ue.isDateControl),cm=De.withJsonFormsControlProps(e=>p.jsx(jl,{...e})),fm=ue.rankWith(1,ue.isDateTimeControl),dm=De.withJsonFormsControlProps(e=>p.jsx(Wl,{...e})),pm=ue.rankWith(2,ue.isEnumControl),hm=De.withJsonFormsEnumProps(De.withTranslateProps(e=>p.jsx(Vl,{...e})),!1),gm=ue.rankWith(1,ue.isIntegerControl),mm=De.withJsonFormsControlProps(e=>p.jsx(eo,{...e})),ym=ue.rankWith(2,nm),vm=De.withJsonFormsControlProps(e=>p.jsx(Ap,{...e})),bm=ue.rankWith(1,ue.isNumberControl),_m=De.withJsonFormsControlProps(e=>p.jsx(eo,{...e})),wm=ue.rankWith(2,ue.isOneOfControl),Tm=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>p.jsx(Gl,{...e})),!1),Sm=ue.rankWith(1,ue.isStringControl),Cm=De.withJsonFormsControlProps(e=>p.jsx(Hl,{...e})),WF=e=>{const{text:t,visible:n}=e;return n?p.jsx(w.Title,{fw:"bold",size:"xl",children:t}):null},Em=ue.rankWith(1,ue.isLabelable),xm=De.withJsonFormsLabelProps(WF),VF=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a,label:u})=>{const d={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return p.jsx(w.Fieldset,{legend:u,children:p.jsx(as,{...d,renderers:s,cells:a})})},Am=ue.rankWith(1,ue.uiTypeIs("Group")),Om=De.withJsonFormsLayoutProps(VF),GF=({uischema:e,renderers:t,cells:n,schema:o,path:s,enabled:a})=>{const c={elements:e.elements,schema:o,path:s,enabled:a,direction:"row"};return p.jsx(as,{...c,renderers:t,cells:n})},Im=ue.rankWith(1,ue.uiTypeIs("HorizontalLayout")),Pm=De.withJsonFormsLayoutProps(GF),HF=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a})=>{const c={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return p.jsx(as,{...c,renderers:s,cells:a})},$m=ue.rankWith(1,ue.uiTypeIs("VerticalLayout")),Mm=De.withJsonFormsLayoutProps(HF),Fm=[{tester:Vp,cell:Gp},{tester:Bp,cell:Up},{tester:Lp,cell:zp},{tester:Ip,cell:Pp},{tester:$p,cell:Mp},{tester:Fp,cell:Dp},{tester:kp,cell:Np},{tester:jp,cell:Wp}],Dm=[{tester:um,renderer:cm},{tester:fm,renderer:dm},{tester:bm,renderer:_m},{tester:gm,renderer:mm},{tester:Sm,renderer:Cm},{tester:am,renderer:lm},{tester:pm,renderer:hm},{tester:wm,renderer:Tm},{tester:ym,renderer:vm},{tester:Qg,renderer:em},{tester:rm,renderer:im},{tester:om,renderer:sm},{tester:Im,renderer:Pm},{tester:$m,renderer:Mm},{tester:Am,renderer:Om},{tester:Em,renderer:xm}];function km({schema:e,uischema:t,state:n,setState:o,view:s,setView:a,jsonForms:u,onSubmit:c,buttonText:d,loading:h,...y}){const m=A.useMemo(()=>w.createTheme({components:{...Object.entries(u||{}).reduce((b,[C,E])=>(b[C]||(b[C]={defaultProps:{}}),b[C].defaultProps=E,b),{})}}),[u]);return p.jsx(w.Modal,{size:"lg",centered:!0,fullScreen:s===ht.FULL_SCREEN,radius:s!==ht.NORMAL?0:void 0,transitionProps:s!==ht.NORMAL?{transition:"fade",duration:200}:void 0,...y,title:p.jsxs(p.Fragment,{children:[y.title,p.jsx(w.Group,{children:p.jsxs(w.Group,{gap:"xs",pr:"xs",children:[p.jsx(w.CloseButton,{onClick:()=>a(s!==ht.OVERLAY?ht.OVERLAY:ht.NORMAL),title:s!==ht.OVERLAY?"Overlay":"Exit overlay",icon:p.jsx(Al,{icon:s!==ht.OVERLAY?"tabler:stack-forward":"tabler:stack",fontSize:"1.25rem"})}),p.jsx(w.CloseButton,{onClick:()=>a(s!==ht.FULL_SCREEN?ht.FULL_SCREEN:ht.NORMAL),title:s!==ht.FULL_SCREEN?"Full screen":"Exit full screen",icon:p.jsx(Al,{icon:s!==ht.FULL_SCREEN?"tabler:maximize":"tabler:minimize",fontSize:"1.25rem"})})]})})]}),classNames:{content:"mrt-table-container"},styles:zn(y.styles,{title:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}}),children:p.jsxs(w.Box,{component:"form",pos:"relative",onSubmit:c,children:[p.jsx(w.LoadingOverlay,{visible:h}),p.jsx(w.MantineThemeProvider,{inherit:!0,theme:m,children:p.jsx(De.JsonForms,{schema:e,uischema:t??void 0,renderers:Dm,cells:Fm,data:n.data,onChange:o})}),p.jsx(w.Group,{justify:"end",mt:"xl",children:p.jsx(w.Button,{type:"submit",children:d})})]})})}const Nm={styles:{content:{height:450}}},Lm={withinPortal:!1,h:"100%",w:"100%",pos:"absolute",styles:{overlay:{display:"none"},inner:{position:"relative",height:"100%",width:"100%",padding:0},content:{position:"absolute",height:"100%",width:"100%"}}};function zm(e,t){const n={};return Object.entries(t.properties||{}).forEach(([o,s])=>{var c,d;const a=s.items?s.items:s,u=a.oneOf?a.oneOf.map(h=>({value:h.const,label:h.title})):a.enum;if(u){const h=u.map(y=>y.value);if(ar(s.type,"array")){const y=((c=e[o])==null?void 0:c.map(m=>m.id_||m))||[];n[o]=h.filter(m=>y.includes(m))}else n[o]=h.find(y=>{var m;return y===(((m=e[o])==null?void 0:m.id_)||e[o])})}else n[o]=(((d=e[o])==null?void 0:d.id_)||e[o])??void 0}),n}function Cu({jsonForms:e,...t}){const{info:n,updateEntry:o}=Oe(),{opened:s,setOpened:a,item:u,itemLoading:c,state:d,setState:h,reset:y,view:m,setView:b}=Bn("edit"),{jsonForms:C}=w.useProps("EditDialog",{},{}),E=A.useMemo(()=>zn({__:{setNull:!0}},C,e),[C,e]),T=A.useCallback(async N=>{N==null||N.preventDefault(),await o(u==null?void 0:u.id,d.data),a(!1)},[o,u==null?void 0:u.id,d.data,a]),$=A.useMemo(()=>({...Bo,data:zm((u==null?void 0:u.result)||{},n.edit_schema)}),[n.edit_schema,u==null?void 0:u.result]);return A.useEffect(()=>{h({data:$.data})},[$,h]),p.jsx(km,{schema:n.edit_schema,uischema:n.edit_uischema,state:d,setState:h,view:m,setView:b,jsonForms:E,onSubmit:T,buttonText:"Edit",loading:c,opened:s,onClose:()=>a(!1),onExitTransitionEnd:y,...m===ht.OVERLAY?Lm:{},...m===ht.NORMAL?Nm:{},...t,title:t.title??(n==null?void 0:n.edit_title)})}function Eu(){const{error:e}=Oe(),[t,n]=A.useState(!1);return A.useEffect(()=>{e&&n(!0)},[e]),p.jsx(w.Modal,{opened:t,onClose:()=>n(!1),title:p.jsxs(w.Group,{children:[p.jsx(qb,{size:16,color:"red"}),p.jsx(w.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?p.jsx(w.Text,{children:e.message}):null})}/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Bm,setPrototypeOf:Um,isFrozen:YF,getPrototypeOf:qF,getOwnPropertyDescriptor:RF}=Object;let{freeze:Dt,seal:sn,create:jm}=Object,{apply:xu,construct:Au}=typeof Reflect<"u"&&Reflect;Dt||(Dt=function(t){return t}),sn||(sn=function(t){return t}),xu||(xu=function(t,n,o){return t.apply(n,o)}),Au||(Au=function(t,n){return new t(...n)});const Ns=Nt(Array.prototype.forEach),KF=Nt(Array.prototype.lastIndexOf),Wm=Nt(Array.prototype.pop),uo=Nt(Array.prototype.push),JF=Nt(Array.prototype.splice),Ls=Nt(String.prototype.toLowerCase),Ou=Nt(String.prototype.toString),Vm=Nt(String.prototype.match),co=Nt(String.prototype.replace),ZF=Nt(String.prototype.indexOf),XF=Nt(String.prototype.trim),wn=Nt(Object.prototype.hasOwnProperty),kt=Nt(RegExp.prototype.test),fo=QF(TypeError);function Nt(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return xu(e,t,o)}}function QF(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Au(e,n)}}function Ie(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ls;Um&&Um(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(YF(t)||(t[o]=a),s=a)}e[s]=!0}return e}function eD(e){for(let t=0;t<e.length;t++)wn(e,t)||(e[t]=null);return e}function Lr(e){const t=jm(null);for(const[n,o]of Bm(e))wn(e,n)&&(Array.isArray(o)?t[n]=eD(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=Lr(o):t[n]=o);return t}function po(e,t){for(;e!==null;){const o=RF(e,t);if(o){if(o.get)return Nt(o.get);if(typeof o.value=="function")return Nt(o.value)}e=qF(e)}function n(){return null}return n}const Gm=Dt(["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"]),Iu=Dt(["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"]),Pu=Dt(["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"]),tD=Dt(["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"]),$u=Dt(["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"]),nD=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hm=Dt(["#text"]),Ym=Dt(["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"]),Mu=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),qm=Dt(["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"]),zs=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rD=sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),iD=sn(/<%[\w\W]*|[\w\W]*%>/gm),oD=sn(/\$\{[\w\W]*/gm),sD=sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),aD=sn(/^aria-[\-\w]+$/),Rm=sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lD=sn(/^(?:\w+script|data):/i),uD=sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Km=sn(/^html$/i),cD=sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Jm=Object.freeze({__proto__:null,ARIA_ATTR:aD,ATTR_WHITESPACE:uD,CUSTOM_ELEMENT:cD,DATA_ATTR:sD,DOCTYPE_NAME:Km,ERB_EXPR:iD,IS_ALLOWED_URI:Rm,IS_SCRIPT_OR_DATA:lD,MUSTACHE_EXPR:rD,TMPLIT_EXPR:oD});const ho={element:1,text:3,progressingInstruction:7,comment:8,document:9},fD=function(){return typeof window>"u"?null:window},dD=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xm(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fD();const t=de=>Xm(de);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==ho.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:c,Element:d,NodeFilter:h,NamedNodeMap:y=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:b,trustedTypes:C}=e,E=d.prototype,T=po(E,"cloneNode"),$=po(E,"remove"),N=po(E,"nextSibling"),J=po(E,"childNodes"),Y=po(E,"parentNode");if(typeof u=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let B,D="";const{implementation:k,createNodeIterator:H,createDocumentFragment:ae,getElementsByTagName:ie}=n,{importNode:S}=o;let j=Zm();t.isSupported=typeof Bm=="function"&&typeof Y=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:fe,TMPLIT_EXPR:ye,DATA_ATTR:Me,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:gt}=Jm;let{IS_ALLOWED_URI:q}=Jm,L=null;const te=Ie({},[...Gm,...Iu,...Pu,...$u,...Hm]);let Z=null;const X=Ie({},[...Ym,...Mu,...qm,...zs]);let ee=Object.seal(jm(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}})),oe=null,ve=null,be=!0,he=!0,Ee=!1,et=!0,Q=!1,mt=!0,Ke=!1,Lt=!1,fr=!1,yt=!1,ke=!1,Yn=!1,dr=!0,Wt=!1;const Br="user-content-";let pr=!0,Ur=!1,an={},hr=null;const gr=Ie({},["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 qn=null;const Si=Ie({},["audio","video","img","source","image","track"]);let jr=null;const Ci=Ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mr="http://www.w3.org/1998/Math/MathML",yr="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Fn=Jt,Wr=!1,Vr=null;const Qu=Ie({},[mr,yr,Jt],Ou);let Ei=Ie({},["mi","mo","mn","ms","mtext"]),xi=Ie({},["annotation-xml"]);const Us=Ie({},["title","style","font","a","script"]);let vr=null;const ec=["application/xhtml+xml","text/html"],tc="text/html";let pt=null,br=null;const js=n.createElement("form"),Ws=function(P){return P instanceof RegExp||P instanceof Function},vo=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(br&&br===P)){if((!P||typeof P!="object")&&(P={}),P=Lr(P),vr=ec.indexOf(P.PARSER_MEDIA_TYPE)===-1?tc:P.PARSER_MEDIA_TYPE,pt=vr==="application/xhtml+xml"?Ou:Ls,L=wn(P,"ALLOWED_TAGS")?Ie({},P.ALLOWED_TAGS,pt):te,Z=wn(P,"ALLOWED_ATTR")?Ie({},P.ALLOWED_ATTR,pt):X,Vr=wn(P,"ALLOWED_NAMESPACES")?Ie({},P.ALLOWED_NAMESPACES,Ou):Qu,jr=wn(P,"ADD_URI_SAFE_ATTR")?Ie(Lr(Ci),P.ADD_URI_SAFE_ATTR,pt):Ci,qn=wn(P,"ADD_DATA_URI_TAGS")?Ie(Lr(Si),P.ADD_DATA_URI_TAGS,pt):Si,hr=wn(P,"FORBID_CONTENTS")?Ie({},P.FORBID_CONTENTS,pt):gr,oe=wn(P,"FORBID_TAGS")?Ie({},P.FORBID_TAGS,pt):{},ve=wn(P,"FORBID_ATTR")?Ie({},P.FORBID_ATTR,pt):{},an=wn(P,"USE_PROFILES")?P.USE_PROFILES:!1,be=P.ALLOW_ARIA_ATTR!==!1,he=P.ALLOW_DATA_ATTR!==!1,Ee=P.ALLOW_UNKNOWN_PROTOCOLS||!1,et=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Q=P.SAFE_FOR_TEMPLATES||!1,mt=P.SAFE_FOR_XML!==!1,Ke=P.WHOLE_DOCUMENT||!1,yt=P.RETURN_DOM||!1,ke=P.RETURN_DOM_FRAGMENT||!1,Yn=P.RETURN_TRUSTED_TYPE||!1,fr=P.FORCE_BODY||!1,dr=P.SANITIZE_DOM!==!1,Wt=P.SANITIZE_NAMED_PROPS||!1,pr=P.KEEP_CONTENT!==!1,Ur=P.IN_PLACE||!1,q=P.ALLOWED_URI_REGEXP||Rm,Fn=P.NAMESPACE||Jt,Ei=P.MATHML_TEXT_INTEGRATION_POINTS||Ei,xi=P.HTML_INTEGRATION_POINTS||xi,ee=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Ws(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Ws(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(he=!1),ke&&(yt=!0),an&&(L=Ie({},Hm),Z=[],an.html===!0&&(Ie(L,Gm),Ie(Z,Ym)),an.svg===!0&&(Ie(L,Iu),Ie(Z,Mu),Ie(Z,zs)),an.svgFilters===!0&&(Ie(L,Pu),Ie(Z,Mu),Ie(Z,zs)),an.mathMl===!0&&(Ie(L,$u),Ie(Z,qm),Ie(Z,zs))),P.ADD_TAGS&&(L===te&&(L=Lr(L)),Ie(L,P.ADD_TAGS,pt)),P.ADD_ATTR&&(Z===X&&(Z=Lr(Z)),Ie(Z,P.ADD_ATTR,pt)),P.ADD_URI_SAFE_ATTR&&Ie(jr,P.ADD_URI_SAFE_ATTR,pt),P.FORBID_CONTENTS&&(hr===gr&&(hr=Lr(hr)),Ie(hr,P.FORBID_CONTENTS,pt)),pr&&(L["#text"]=!0),Ke&&Ie(L,["html","head","body"]),L.table&&(Ie(L,["tbody"]),delete oe.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw fo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=P.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=dD(C,s)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Dt&&Dt(P),br=P}},Vs=Ie({},[...Iu,...Pu,...tD]),Ai=Ie({},[...$u,...nD]),nc=function(P){let K=Y(P);(!K||!K.tagName)&&(K={namespaceURI:Fn,tagName:"template"});const le=Ls(P.tagName),We=Ls(K.tagName);return Vr[P.namespaceURI]?P.namespaceURI===yr?K.namespaceURI===Jt?le==="svg":K.namespaceURI===mr?le==="svg"&&(We==="annotation-xml"||Ei[We]):!!Vs[le]:P.namespaceURI===mr?K.namespaceURI===Jt?le==="math":K.namespaceURI===yr?le==="math"&&xi[We]:!!Ai[le]:P.namespaceURI===Jt?K.namespaceURI===yr&&!xi[We]||K.namespaceURI===mr&&!Ei[We]?!1:!Ai[le]&&(Us[le]||!Vs[le]):!!(vr==="application/xhtml+xml"&&Vr[P.namespaceURI]):!1},Vt=function(P){uo(t.removed,{element:P});try{Y(P).removeChild(P)}catch{$(P)}},Oi=function(P,K){try{uo(t.removed,{attribute:K.getAttributeNode(P),from:K})}catch{uo(t.removed,{attribute:null,from:K})}if(K.removeAttribute(P),P==="is")if(yt||ke)try{Vt(K)}catch{}else try{K.setAttribute(P,"")}catch{}},Gs=function(P){let K=null,le=null;if(fr)P="<remove></remove>"+P;else{const st=Vm(P,/^[\r\n\t ]+/);le=st&&st[0]}vr==="application/xhtml+xml"&&Fn===Jt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const We=B?B.createHTML(P):P;if(Fn===Jt)try{K=new b().parseFromString(We,vr)}catch{}if(!K||!K.documentElement){K=k.createDocument(Fn,"template",null);try{K.documentElement.innerHTML=Wr?D:We}catch{}}const Tt=K.body||K.documentElement;return P&&le&&Tt.insertBefore(n.createTextNode(le),Tt.childNodes[0]||null),Fn===Jt?ie.call(K,Ke?"html":"body")[0]:Ke?K.documentElement:Tt},Hs=function(P){return H.call(P.ownerDocument||P,P,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},bo=function(P){return P instanceof m&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof y)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Ys=function(P){return typeof c=="function"&&P instanceof c};function Tn(de,P,K){Ns(de,le=>{le.call(t,P,K,br)})}const qs=function(P){let K=null;if(Tn(j.beforeSanitizeElements,P,null),bo(P))return Vt(P),!0;const le=pt(P.nodeName);if(Tn(j.uponSanitizeElement,P,{tagName:le,allowedTags:L}),P.hasChildNodes()&&!Ys(P.firstElementChild)&&kt(/<[/\w]/g,P.innerHTML)&&kt(/<[/\w]/g,P.textContent)||P.nodeType===ho.progressingInstruction||mt&&P.nodeType===ho.comment&&kt(/<[/\w]/g,P.data))return Vt(P),!0;if(!L[le]||oe[le]){if(!oe[le]&&_o(le)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le)))return!1;if(pr&&!hr[le]){const We=Y(P)||P.parentNode,Tt=J(P)||P.childNodes;if(Tt&&We){const st=Tt.length;for(let Pt=st-1;Pt>=0;--Pt){const ln=T(Tt[Pt],!0);ln.__removalCount=(P.__removalCount||0)+1,We.insertBefore(ln,N(P))}}}return Vt(P),!0}return P instanceof d&&!nc(P)||(le==="noscript"||le==="noembed"||le==="noframes")&&kt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Vt(P),!0):(Q&&P.nodeType===ho.text&&(K=P.textContent,Ns([ne,fe,ye],We=>{K=co(K,We," ")}),P.textContent!==K&&(uo(t.removed,{element:P.cloneNode()}),P.textContent=K)),Tn(j.afterSanitizeElements,P,null),!1)},Rs=function(P,K,le){if(dr&&(K==="id"||K==="name")&&(le in n||le in js))return!1;if(!(he&&!ve[K]&&kt(Me,K))){if(!(be&&kt(Te,K))){if(!Z[K]||ve[K]){if(!(_o(P)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,P)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(P))&&(ee.attributeNameCheck instanceof RegExp&&kt(ee.attributeNameCheck,K)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(K))||K==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le))))return!1}else if(!jr[K]){if(!kt(q,co(le,Ce,""))){if(!((K==="src"||K==="xlink:href"||K==="href")&&P!=="script"&&ZF(le,"data:")===0&&qn[P])){if(!(Ee&&!kt(Le,co(le,Ce,"")))){if(le)return!1}}}}}}return!0},_o=function(P){return P!=="annotation-xml"&&Vm(P,gt)},Ks=function(P){Tn(j.beforeSanitizeAttributes,P,null);const{attributes:K}=P;if(!K||bo(P))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0};let We=K.length;for(;We--;){const Tt=K[We],{name:st,namespaceURI:Pt,value:ln}=Tt,Gr=pt(st);let St=st==="value"?ln:XF(ln);if(le.attrName=Gr,le.attrValue=St,le.keepAttr=!0,le.forceKeepAttr=void 0,Tn(j.uponSanitizeAttribute,P,le),St=le.attrValue,Wt&&(Gr==="id"||Gr==="name")&&(Oi(st,P),St=Br+St),mt&&kt(/((--!?|])>)|<\/(style|title)/i,St)){Oi(st,P);continue}if(le.forceKeepAttr||(Oi(st,P),!le.keepAttr))continue;if(!et&&kt(/\/>/i,St)){Oi(st,P);continue}Q&&Ns([ne,fe,ye],To=>{St=co(St,To," ")});const wo=pt(P.nodeName);if(Rs(wo,Gr,St)){if(B&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!Pt)switch(C.getAttributeType(wo,Gr)){case"TrustedHTML":{St=B.createHTML(St);break}case"TrustedScriptURL":{St=B.createScriptURL(St);break}}try{Pt?P.setAttributeNS(Pt,st,St):P.setAttribute(st,St),bo(P)?Vt(P):Wm(t.removed)}catch{}}}Tn(j.afterSanitizeAttributes,P,null)},rc=function de(P){let K=null;const le=Hs(P);for(Tn(j.beforeSanitizeShadowDOM,P,null);K=le.nextNode();)Tn(j.uponSanitizeShadowNode,K,null),qs(K),Ks(K),K.content instanceof a&&de(K.content);Tn(j.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(de){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null,le=null,We=null,Tt=null;if(Wr=!de,Wr&&(de="<!-->"),typeof de!="string"&&!Ys(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw fo("dirty is not a string, aborting")}else throw fo("toString is not a function");if(!t.isSupported)return de;if(Lt||vo(P),t.removed=[],typeof de=="string"&&(Ur=!1),Ur){if(de.nodeName){const ln=pt(de.nodeName);if(!L[ln]||oe[ln])throw fo("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof c)K=Gs("<!---->"),le=K.ownerDocument.importNode(de,!0),le.nodeType===ho.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?K=le:K.appendChild(le);else{if(!yt&&!Q&&!Ke&&de.indexOf("<")===-1)return B&&Yn?B.createHTML(de):de;if(K=Gs(de),!K)return yt?null:Yn?D:""}K&&fr&&Vt(K.firstChild);const st=Hs(Ur?de:K);for(;We=st.nextNode();)qs(We),Ks(We),We.content instanceof a&&rc(We.content);if(Ur)return de;if(yt){if(ke)for(Tt=ae.call(K.ownerDocument);K.firstChild;)Tt.appendChild(K.firstChild);else Tt=K;return(Z.shadowroot||Z.shadowrootmode)&&(Tt=S.call(o,Tt,!0)),Tt}let Pt=Ke?K.outerHTML:K.innerHTML;return Ke&&L["!doctype"]&&K.ownerDocument&&K.ownerDocument.doctype&&K.ownerDocument.doctype.name&&kt(Km,K.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+K.ownerDocument.doctype.name+`>
|
|
206
|
-
`+Pt),Q&&Ns([ne,fe,ye],ln=>{Pt=co(Pt,ln," ")}),B&&Yn?B.createHTML(Pt):Pt},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vo(de),Lt=!0},t.clearConfig=function(){br=null,Lt=!1},t.isValidAttribute=function(de,P,K){br||vo({});const le=pt(de),We=pt(P);return Rs(le,We,K)},t.addHook=function(de,P){typeof P=="function"&&uo(j[de],P)},t.removeHook=function(de,P){if(P!==void 0){const K=KF(j[de],P);return K===-1?void 0:JF(j[de],K,1)[0]}return Wm(j[de])},t.removeHooks=function(de){j[de]=[]},t.removeAllHooks=function(){j=Zm()},t}var Qm=Xm();const Mn=A.forwardRef(({fallback:e,functionProps:t,children:n},o)=>{if(n=lt(n,t),n===null)return null;const s=n||e;return A.isValidElement(s)?A.cloneElement(s,{ref:o}):s});Mn.displayName="FallbackWrapper";const pD={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},go=A.memo(({id:e,entry:t,loading:n,rightBorder:o,children:s,onClickEntry:a,customElement:u,sanitize:c,...d})=>{const h={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:y}=w.useProps("Field",h,d),m={};Object.entries(y).forEach(([C,E])=>{typeof E=="function"&&(m[C]=E(t))});const b=w.useStyles({name:"Field",props:d,classes:pD});return p.jsx(w.Table.Td,{...b("field"),onClick:a?()=>a(e,t):null,...d,children:p.jsx(w.Box,{w:"100%",children:p.jsx(w.Skeleton,{visible:n,children:p.jsx(Mn,{fallback:Array.isArray(s)?s.map((C,E)=>p.jsx(w.Text,{...y,...m,children:c?Qm.sanitize(C):C},E)):A.isValidElement(s)?s:p.jsx(w.Text,{...y,...m,children:c?Qm.sanitize(s):s}),functionProps:t,children:u})})})})});go.displayName="Field";const e0={row:"_row_138r2_1",selected:"_selected_138r2_5"};function t0({entry:e,selected:t,children:n}){const o=w.useStyles({name:"Row",classes:e0}),s=w.useProps("Row",{},{});Object.entries(s).forEach(([c,d])=>{typeof d=="function"&&(s[c]=d(e))});var{className:a,style:u}=o("row");return a=`${a} ${t?e0.selected:""}`,p.jsx(w.Table.Tr,{className:a,style:{...u},...s,children:n})}function hD({bodyCustomizer:e,actionColumn:t,id:n,entry:o}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:n,...o})),s===null?null:s||p.jsx(Wu,{id:n})}function n0({data:e,loading:t,hideActions:n,hideCheckbox:o,selection:s,toggleRow:a,onClickEntry:u,bodyCustomizer:c,bodySeparator:d}){const h=e.list_columns.includes("actions")?"_actions":"actions",y=A.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return p.jsx(w.Table.Tbody,{children:e.result.length?e.result.map((m,b)=>{const C=e.ids[b];return p.jsxs(t0,{entry:{...m,id:C},children:[o?null:p.jsx(go,{loading:t,children:p.jsx(w.Checkbox,{pl:2,checked:s.includes(C),onChange:()=>{a(C)}})},b),n?null:p.jsx(go,{loading:t,children:p.jsx(hD,{bodyCustomizer:c,actionColumn:h,id:Et(C),entry:m})}),e.list_columns.map((E,T)=>{let $=c==null?void 0:c[E];typeof $=="function"&&($=$({id:C,...m}));let N=Gi(m,E);typeof N=="number"?N=N.toLocaleString():N==null&&(N="");const J=(d==null?void 0:d[E])||(d==null?void 0:d[y]);return J&&(N=N.split(J)),$===null?null:p.jsx(go,{id:C,entry:m,loading:t,onClickEntry:u,customElement:$,sanitize:!0,children:N},T)})]},Et(C))}):p.jsx("tr",{children:p.jsx("td",{style:{padding:"8px"},colSpan:n?e.list_columns.length:e.list_columns.length+1,children:p.jsx(w.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const r0={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Bs({column:e,label:t,orderColumn:n,related:o,toggleAll:s,allChecked:a,classNames:u,styles:c,customElement:d,...h}){const{queryParams:y,setQueryParams:m,loading:b}=Oe(),C={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},E=w.useStyles({name:"FieldTitle",classes:r0,classNames:u,styles:c,props:h}),T=w.useProps("FieldTitle",C,h),{hovered:$,ref:N}=nt.useHover(),J=n&&y.order_column===n,Y=E("wrapper");return Y.style.cursor=n?Y.style.cursor:"auto",p.jsx(w.Table.Th,{className:r0.fieldTitleRoot,...E("root"),onClick:n&&!b?()=>m({order_column:n,order_direction:y.order_direction==="asc"?"desc":"asc"}):null,children:p.jsx(w.Box,{ref:N,...Y,children:e==="Checkbox"?p.jsx(w.Checkbox,{pb:5,pl:2,onChange:s,checked:a}):p.jsxs(p.Fragment,{children:[p.jsx(w.Box,{w:"100%",fw:T.fw,size:"xl",c:$&&n?T.hoverColor:J?T.selectedColor:T.color,children:d||t||e}),o?p.jsx(w.Tooltip,{label:"Related Field",children:p.jsx(w.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:p.jsx(w.Box,{...E("icon"),children:J?y.order_direction==="asc"?p.jsx(gl,{size:14,strokeWidth:1.5}):p.jsx(gd,{size:14,strokeWidth:1.5}):null})})}):p.jsx(w.Box,{...E("icon"),children:J?y.order_direction==="asc"?p.jsx(gl,{size:14,strokeWidth:1.5}):p.jsx(gd,{size:14,strokeWidth:1.5}):null})]})})})}const Fu=A.memo(({data:e,info:t,settings:n,hideActions:o,hideCheckbox:s,allChecked:a,toggleAll:u,headerCustomizer:c})=>{const d=e.list_columns.includes("actions")?"_actions":"actions";let h=c==null?void 0:c[d];return typeof h=="function"&&(h=h()),p.jsx(w.Table.Thead,{children:p.jsxs(w.Table.Tr,{children:[s?null:p.jsx(Bs,{data:e,column:"Checkbox",allChecked:a,toggleAll:u}),o?null:p.jsx(Bs,{column:"Actions",customElement:h}),e.list_columns.map((y,m)=>{var C;let b=c==null?void 0:c[y];return typeof b=="function"&&(b=b(e.label_columns[y])),b===null?null:p.jsx(Bs,{column:y,label:e.label_columns[y],orderColumn:e.order_columns.find(E=>E===y)||e.order_columns.find(E=>E.startsWith(`${y}.`)),related:((C=t.filters[y])==null?void 0:C.schema.type)==="Nested",customElement:b},y)})]})})});Fu.displayName="Header";const gD={scrollbar:"_scrollbar_isyo2_1"};function i0({bulkActions:e,hideActions:t,loading:n,onSelectCheckbox:o,onClickEntry:s,hideCheckbox:a,hideDownload:u,headerCustomizer:c,bodyCustomizer:d,bodySeparator:h,...y}){const m=w.useMantineTheme(),b=w.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),C=w.useProps("DatagridTable",b,y),{data:E,info:T}=Oe(),[$,N]=A.useState([]),[J,Y]=A.useState(!1),B=k=>{N(H=>H.includes(k)?H.filter(ae=>ae!==k):[...H,k])},D=()=>{N(k=>k.length===E.ids.length?[]:E.ids.map((H,ae)=>H))};return A.useEffect(()=>{Y($.length===E.result.length&&$.length>0),o&&o($),e==null||e.setSelectedIds($.map(k=>k))},[$]),A.useEffect(()=>{N([]),o&&o([])},[E]),p.jsx(w.ScrollArea,{options:{className:m.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:gD,children:p.jsxs(w.Table,{stickyHeader:!0,...C,children:[p.jsx(Fu,{data:E,info:T,hideActions:t,hideCheckbox:a,allChecked:J,setSelection:N,toggleAll:D,headerCustomizer:c}),p.jsx(n0,{data:E,loading:n,hideActions:t,hideCheckbox:a,selection:$,setSelection:N,toggleRow:B,onClickEntry:s,bodyCustomizer:d,bodySeparator:h})]})})}const Du=A.memo(({counter:e,...t})=>{const{data:n,queryParams:o,setQueryParams:s}=Oe(),a=w.useMantineTheme(),u=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],c=String(o.page_size),[d,h]=A.useState(o.page);A.useEffect(()=>{h(o.page)},[o.page]);const y=b=>{h(b-1),s({page:b-1})},m=b=>{s({page_size:parseInt(b,10),page:0})};return p.jsxs(p.Fragment,{children:[p.jsx(w.Divider,{}),p.jsxs(w.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[p.jsxs(w.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[p.jsx(w.Text,{children:"Rows per page:"}),p.jsx(w.Select,{value:c,defaultValue:c,onChange:b=>m(b),data:u,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"}}}})})]}),p.jsx(w.Pagination,{size:"sm",total:Math.ceil(n.count/c),value:d+1,onChange:y,...t}),e&&n?p.jsxs(p.Fragment,{children:[p.jsx(w.Text,{c:a.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),p.jsx(w.Text,{c:a.primaryColor,size:"md",fw:700,pl:10,children:n.count})]}):null]})]})});Du.displayName="Pagination";function o0(...e){const[t,n]=A.useState(!1),{download:o}=Oe(),s={bg:"transparent",size:"sm",c:"gray"},a=w.useProps("ActionIcon",s,e);return t?p.jsx(w.Loader,{color:a.c,size:a.size}):p.jsx(w.Tooltip,{label:"Download",children:p.jsx(w.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:()=>{n(!0),o("download").then(()=>n(!1))},children:p.jsx(md,{})})})}function mD(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(n){const o={};return n instanceof _t&&n.inner.forEach(s=>{o[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),o}}}function yD({form:e,name:t,items:n,...o}){return p.jsx(w.Autocomplete,{data:n,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function s0({form:e,name:t,...n}){return p.jsx(p.Fragment,{children:p.jsx(Vi.DateInput,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o.getTime()-o.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function a0({form:e,name:t,...n}){return p.jsx(p.Fragment,{children:p.jsx(Vi.DateTimePicker,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function mo({form:e,name:t,...n}){const o=e.getInputProps(t).value,s=A.useMemo(()=>o&&typeof o=="object"?JSON.stringify(o):o||"",[o]);return t==="password"?p.jsx(w.PasswordInput,{...e.getInputProps(t),value:s,...n}):p.jsx(w.TextInput,{...e.getInputProps(t),value:s,...n})}function ku({form:e,name:t,filter:n,...o}){const[s,a]=A.useState(""),u=e.getInputProps(t).value,c=A.useMemo(()=>u?typeof u=="object"?JSON.stringify(u,null,2):u:"",[u]);return A.useEffect(()=>{a(c)},[c]),n?p.jsx(mo,{form:e,name:t,...o}):p.jsx(w.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...o,value:s,onChange:d=>{if(a(d),!d){e.getInputProps(t).onChange(null);return}try{const h=JSON.parse(d);e.getInputProps(t).onChange(h)}catch{}}})}function l0({form:e,name:t,filter:n,...o}){const[s,a]=A.useState(!!n);return p.jsxs(w.InputWrapper,{label:o.label,description:o.description,children:[!n&&p.jsxs(w.Group,{align:"center",gap:"xs",py:"0.25rem",children:[p.jsx(w.Checkbox,{checked:s,onChange:u=>a(u.currentTarget.checked)}),p.jsx(w.Text,{size:"xs",children:"WKT"})]}),s?p.jsx(mo,{form:e,name:t,...o,label:void 0,description:void 0}):p.jsx(ku,{form:e,name:t,...o,label:void 0,description:void 0})]})}function u0({form:e,name:t,items:n,...o}){const s=n.map(u=>({value:String(Et(u.id)),label:u.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(u=>String(typeof u=="object"?Et(u.id):u)):[];return p.jsx(w.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:a||[],...o})}function c0({form:e,name:t,items:n,filter:o,...s}){var u;const a=n.map(c=>({value:String(Et(c.id)),label:c.value}));return p.jsx(w.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:c=>{if(o){e.setFieldValue(t,c);return}const d=n.find(h=>String(Et(h.id))===c)||null;e.setFieldValue(t,d)},value:o?e.getInputProps(t).value:String(Et((u=e.getInputProps(t).value)==null?void 0:u.id))||"",...s})}function Nu({form:e,name:t,items:n,...o}){return p.jsx(w.Select,{data:n,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function Lu({form:e,name:t,schema:n,filter:o,withinPortal:s=!0,...a}){if(!n.type)return null;switch(n.type){case"Boolean":return p.jsx(Nu,{form:e,name:t,items:[{label:"true",value:o?"1":"true"},{label:"false",value:o?"0":"false"}],...a});case"RelatedList":return p.jsx(u0,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});case"Related":return p.jsx(c0,{form:e,name:t,items:n.values,filter:o,comboboxProps:{withinPortal:s},...a});case"DateTime":return p.jsx(a0,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:n,popoverProps:{withinPortal:s},...a});case"Date":return p.jsx(s0,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:n,popoverProps:{withinPortal:s},...a});case"Geometry":return p.jsx(l0,{form:e,name:t,filter:o,...a});case"Raw":return p.jsx(ku,{form:e,name:t,filter:o,...a});case"Integer":case"Float":return p.jsx(mo,{form:e,name:t,...a});case"Enum":return p.jsx(Nu,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});default:return p.jsx(mo,{form:e,name:t,...a})}}function vD({form:e,name:t,items:n,onChange:o,...s}){return p.jsx(w.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function zu({form:e,name:t,label:n,comboboxProps:o,...s}){const a=w.useCombobox({onDropdownClose:()=>a.resetSelectedOption(),onDropdownOpen:()=>a.updateSelectedOptionIndex("active")}),[u,c]=A.useState([]),[d,h]=A.useState(""),y=C=>{d!==""&&(u.includes(d)||c(E=>[...E,d]),h(""))},m=C=>c(E=>E.filter(T=>T!==C)),b=u.map(C=>p.jsx(w.Pill,{withRemoveButton:!0,onRemove:()=>m(C),children:C},C));return A.useEffect(()=>{const C=e.getInputProps(t).value;if(C)try{c([...C])}catch(E){console.error("Error parsing JSON:",E)}},[]),A.useEffect(()=>{e.getInputProps(t).onChange(u)},[u]),p.jsx(w.InputWrapper,{label:n,children:p.jsxs(w.Combobox,{store:a,onOptionSubmit:y,...o,children:[p.jsx(w.Combobox.DropdownTarget,{children:p.jsx(w.PillsInput,{onClick:()=>a.openDropdown(),children:p.jsxs(w.Pill.Group,{children:[b,p.jsx(w.Combobox.EventsTarget,{children:p.jsx(w.PillsInput.Field,{onFocus:()=>a.openDropdown(),onBlur:()=>a.closeDropdown(),value:d,placeholder:"Search values",onChange:C=>{a.updateSelectedOptionIndex(),h(C.currentTarget.value)},onKeyDown:C=>{C.key==="Backspace"&&d.length===0&&(C.preventDefault(),m(u[u.length-1]))}})})]})})}),p.jsx(w.Combobox.Dropdown,{children:p.jsx(w.Combobox.Options,{children:p.jsxs(w.Combobox.Option,{value:"$create",children:["+ Create ",d]})})})]})})}function bD({form:e,name:t,items:n,onChange:o,...s}){return p.jsx(w.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function f0({onClose:e,...t}){const{info:n,queryParams:o,setQueryParams:s,path:a}=Oe(),u=Na.useForm({initialValues:{filters:[]},validate:mD(Yi({filters:cl().of(Yi({col:Ro().transform(m=>m||void 0).required("Field is required"),opr:Ro().transform(m=>m||void 0).required("col is required"),value:qo().when("col",{is:m=>m&&n.filters[m].schema.required,then:()=>qo().required("Value is required")})}))}))}),c={bg:"transparent",size:"sm",c:"gray"},d=w.useProps("ActionIcon",c,t);A.useEffect(()=>{u.setValues({filters:[]}),u.reset()},[a]),A.useEffect(()=>{if(o.filters&&o.filters.length){const m=o.filters.filter(b=>!b.id).map(b=>({...b,key:nt.randomId()}));u.setFieldValue("filters",m)}},[o.filters]);const h=m=>{const b=m.filters.map(({key:E,...T})=>T),C=JSON.parse(JSON.stringify(b));s({filters:C,page:0}),e()},y=u.values.filters.map((m,b)=>p.jsxs(w.Box,{px:"sm",children:[p.jsxs(w.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[p.jsx(w.Box,{style:{width:"192px"},children:n&&n.filters&&p.jsx(vD,{form:u,name:`filters.${b}.col`,items:Object.entries(n.filters).map(([C,E])=>({label:E.label,value:String(C)})),onChange:C=>{u.setFieldValue(`filters.${b}`,{col:C,opr:"",value:"",key:nt.randomId()})}})}),p.jsx(w.Box,{style:{width:"192px"},children:m.col?p.jsx(bD,{form:u,name:`filters.${b}.opr`,items:n.filters[m.col].filters.filter(C=>!C.id).map(C=>({label:C.name,value:C.operator})),onChange:C=>{u.setFieldValue(`filters.${b}`,{col:u.values.filters[b].col,opr:C,value:"",key:nt.randomId()})}}):null}),p.jsx(w.Box,{style:{width:"192px"},children:m.col?m.opr==="in"?p.jsx(zu,{form:u,name:`filters.${b}.value`}):p.jsx(Lu,{form:u,name:`filters.${b}.value`,schema:n.filters[m.col].schema,filter:!0}):null}),p.jsx(w.ActionIcon,{bg:d.bg,size:d.size,c:d.c,onClick:()=>{u.removeListItem("filters",b)},children:p.jsx(bd,{})})]}),u.values.filters.length>1&&b<u.values.filters.length-1?p.jsx(w.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},m.key));return p.jsxs(w.Box,{component:"form",onSubmit:u.onSubmit(h),children:[y.length===0&&p.jsx(w.Box,{style:{width:"642px"},children:p.jsx(w.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),p.jsx(w.ScrollArea.Autosize,{mah:"40vh",mt:20,children:y}),p.jsx(w.Divider,{my:"sm"}),p.jsxs(w.Box,{style:{display:"flex",justifyContent:"space-between"},children:[p.jsx(w.Button,{variant:"subtle",leftSection:p.jsx(ml,{}),onClick:()=>{u.insertListItem("filters",{col:"",opr:"",value:"",key:nt.randomId()})},children:"Add Filter"}),p.jsx(w.Group,{spacing:"md",children:p.jsx(w.Button,{type:"submit",children:"Apply"})})]})]})}function d0(...e){const{queryParams:t}=Oe(),n={bg:"transparent",size:"sm",c:"gray"},o=w.useProps("ActionIcon",n,e),[s,a]=A.useState(!1);return p.jsxs(w.Popover,{opened:s,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,children:[p.jsx(w.Popover.Target,{children:p.jsx(w.Tooltip,{opened:s?!1:null,label:"Filter",children:(t==null?void 0:t.filters.filter(u=>!u.id).length)!=0?p.jsx(w.Indicator,{zIndex:20,size:16,label:t==null?void 0:t.filters.length,children:p.jsx(w.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:p.jsx(yd,{})})}):p.jsx(w.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:p.jsx(yd,{})})})}),p.jsxs(w.Popover.Dropdown,{px:"xs",children:[p.jsx(w.Box,{style:{position:"absolute",top:4,right:4},children:p.jsx(w.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),p.jsx(f0,{onClose:()=>{a(!1)}})]})]})}const Bu=A.memo(({hideAdd:e,hideFilter:t,hideDownload:n,toolbarCustomizer:o})=>{const{info:s}=Oe(),a=A.useMemo(()=>{const c={};return Object.entries(o).forEach(([d,h])=>{c[d]=h,typeof c[d]=="function"&&(c[d]=c[d]())}),c},[o]),u=s.permissions.includes("can_post");return p.jsxs(w.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!n&&(a.download||p.jsx(o0,{})),u&&!e?a.add||p.jsx(Vu,{}):null,t?null:a.filter||p.jsx(d0,{})]})});Bu.displayName="Toolbar";function _D(e,{autoInvoke:t=!0,initialLoading:n=!1,clearDataOnRefetch:o=!1,...s}={}){const[a,u]=A.useState(null),[c,d]=A.useState(n),[h,y]=A.useState(null),m=A.useRef(null),b=A.useCallback(()=>{if(e)return o&&u(null),y(null),m.current&&m.current.abort(),m.current=new AbortController,d(!0),fetch(e,{signal:m.current.signal,...s}).then(async E=>{const T=await E.json();if(!E.ok){const $=typeof T.detail=="string"?T.detail:JSON.stringify(T.detail,null,2);throw new Error($)}return u(T),d(!1),T}).catch(E=>(E&&E.name!=="AbortError"&&(y(E),d(!1)),E))},[e]),C=A.useCallback(()=>{var E;m.current&&((E=m.current)==null||E.abort(""),d(!1))},[]);return A.useEffect(()=>(t&&b(),()=>{m.current&&m.current.abort("")}),[b,t]),{data:a,loading:c,error:h,refetch:b,abort:C}}function p0(e){const t=A.useRef(!1);return A.useMemo(()=>e&&!t.current?(t.current=!0,!0):t.current,[e])}function Uu({children:e,cond:t}){return p0(t)?e:null}const ju=A.forwardRef((e,t)=>{const{path:n,data:o,loading:s,info:a,setQueryParams:u}=Oe(),{hideToolbar:c=!1,hideFilter:d=!1,hideAdd:h=!1,hideSettings:y=!1,hideActions:m=!1,hidePagination:b=!1,hideError:C=!1,hideDownload:E=!0,onSelectCheckbox:T=null,onClickEntry:$=null,fetchOnMount:N=!0,bulkActions:J=null,styles:Y,headerCustomizer:B={},bodyCustomizer:D={},toolbarCustomizer:k={},counter:H=!1,bodySeparator:ae,form:ie}=e;A.useEffect(()=>{!o&&N&&u({})},[o]);const{setView:S}=Bn("add"),{setView:j}=Bn("edit");if(A.useEffect(()=>{var fe,ye;(fe=ie==null?void 0:ie.add)!=null&&fe.initialView&&S(ie.add.initialView),(ye=ie==null?void 0:ie.edit)!=null&&ye.initialView&&j(ie.edit.initialView)},[]),!a)return;const ne=J===null;return p.jsxs(w.Paper,{ref:t,h:"100%",display:"flex",pos:"relative",style:{flexDirection:"column",...Y},children:[p.jsxs(Uu,{cond:!!a,children:[p.jsx(Gu,{jsonForms:ie==null?void 0:ie.add}),p.jsx(Cu,{jsonForms:ie==null?void 0:ie.edit})]}),c?null:p.jsx(Bu,{hideFilter:d,hideAdd:h,hideSettings:y,hideDownload:E,toolbarCustomizer:k}),o?p.jsx(i0,{bulkActions:J,hideActions:m,loading:s,onSelectCheckbox:T,onClickEntry:$,hideCheckbox:ne,hideDownload:E,headerCustomizer:B,bodyCustomizer:D,bodySeparator:ae}):null,!b&&o?p.jsx(Du,{counter:H}):null,C?null:p.jsx(Eu,{})]})});ju.displayName="DataGrid";function wD({relatedPath:e,...t}){const{path:n}=Oe();return dt(n?n.substring(0,n.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),p.jsx(hd,{resource_name:e.replace("/",""),relation:t,children:p.jsx(ju,{hideToolbar:!0,hideDownload:!1})})}const TD=A.memo(wD);function h0({item:e,info:t,loading:n,opened:o,onClose:s,...a}){const u={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:c,tabs:d,tabsList:h,tabsPanel:y}=w.useProps("ViewDialog",u,a);return p.jsxs(w.Modal,{opened:o,onClose:s,title:`${e==null?void 0:e.show_title} (#${Et(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...c,children:[p.jsx(w.LoadingOverlay,{visible:n}),!n&&e?p.jsxs(w.Tabs,{defaultValue:"details",...d,children:[p.jsxs(w.Tabs.List,{...h,children:[p.jsx(w.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((m,b)=>p.jsx(w.Tabs.Tab,{value:m.name,children:m.name},b))]}),p.jsx(w.Tabs.Panel,{pt:"xs",value:"details",...y,children:p.jsx(w.Paper,{p:"xs",withBorder:!0,children:p.jsx(w.Stack,{spacing:"md",children:p.jsx(w.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((m,b)=>p.jsxs(w.Grid,{maw:500,children:[p.jsx(w.Grid.Col,{span:4,children:p.jsx(w.Text,{size:"md",children:e.label_columns[m]})}),p.jsx(w.Grid.Col,{span:1,children:p.jsx(w.Text,{size:"xs",children:":"})}),p.jsx(w.Grid.Col,{span:6,children:p.jsx(w.Text,{size:"md",children:Gi(e.result,m)})})]},b))})})})}),t.relations.map((m,b)=>p.jsx(w.Tabs.Panel,{pt:"xs",value:m.name,children:p.jsx(w.Paper,{withBorder:!0,children:p.jsx(TD,{relatedPath:m.path,id:Et(e.id),foreign_key:m.foreign_key,type:m.type})})},b))]}):null]})}function g0({id:e,...t}){const{info:n,getEntry:o}=Oe(),s={bg:"transparent",size:"sm",c:"gray"},a=w.useProps("ActionIcon",s,t),[u,c]=A.useState(null),[d,h]=A.useState(!1),[y,m]=A.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx(w.Tooltip,{label:"Details",children:p.jsx(w.ActionIcon,{bg:a.bg,size:a.size,c:a.c,onClick:async()=>{h(!0);const b=await o(e);b&&(c(b),h(!1),m(!0))},children:p.jsx(Jb,{})})}),p.jsx(h0,{item:u,info:n,loading:d,opened:y,onClose:()=>m(!1)})]})}function Wu({id:e}){const{info:t}=Oe();return p.jsxs(w.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?p.jsx(g0,{id:e}):null,t!=null&&t.permissions.includes("can_put")?p.jsx(Sd,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?p.jsx(Td,{id:e}):null]})}function Vu({tooltipProps:e,actionIconProps:t,...n}){const{setOpened:o}=Bn("add"),s={variant:"transparent",size:"sm",c:"gray"},a=w.useProps("ActionIcon",s,n);return p.jsx(p.Fragment,{children:p.jsx(w.Tooltip,{...e,label:(e==null?void 0:e.label)??"Add Item",children:p.jsx(w.ActionIcon,{variant:a.variant,size:a.size,c:a.c,onClick:()=>o(!0),...t,children:p.jsx(ml,{})})})})}function Gu({jsonForms:e,...t}){const{info:n,addEntry:o}=Oe(),{opened:s,setOpened:a,state:u,setState:c,reset:d,view:h,setView:y}=Bn("add"),{jsonForms:m}=w.useProps("AddDialog",{},{}),b=A.useMemo(()=>zn(m,e),[m,e]),C=A.useCallback(async E=>{E==null||E.preventDefault(),await o(u.data),a(!1)},[o,a,u.data]);return p.jsx(km,{schema:n.add_schema,uischema:n.add_uischema,state:u,setState:c,view:h,setView:y,jsonForms:b,onSubmit:C,buttonText:"Add",opened:s,onClose:()=>a(!1),onExitTransitionEnd:d,...h===ht.OVERLAY?Lm:{},...h===ht.NORMAL?Nm:{},...t,title:t.title??(n==null?void 0:n.add_title)})}function SD({children:e,fetch:t=!0,loading:n=p.jsx(w.Center,{children:p.jsx(w.Loader,{})}),end:o=p.jsx(w.Center,{children:"End of data"}),fetchWrapper:s=w.Center,fetchWrapperProps:a}){const{streaming:u,loading:c}=Oe(),{ref:d,inViewport:h}=nt.useInViewport(),y=A.useMemo(()=>Object.values(u.data).flat(),[u.data]),m=A.useMemo(()=>typeof e=="function"?e(y):e,[e,y]);return A.useEffect(()=>{h&&t&&u.fetch()},[h]),p.jsxs(p.Fragment,{children:[m,c&&n,u.isEnd&&o,p.jsx(s,{ref:d,id:"IS-load-trigger",mih:"1%",...a})]})}function CD(e,t){const n=Oe(),o=Pr(),s=A.useCallback(({row:a,...u})=>p.jsx(Mn,{fallback:p.jsx(Wu,{id:a.original.id}),functionProps:{api:n,auth:o,data:a.original,mrtProps:{row:a,...u}},children:t}),[n,o,t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:s}}function ED(e,t){return{enableRowSelection:!!e||!!t}}const zr=(e={},...t)=>t.reduce((n,o)=>zn(n,e[o]),{}),yo=(e,t,n=!1)=>{let o="";n&&(o+="filter");const s=n?e[0].toUpperCase():e[0].toLowerCase();return o+=s+e.slice(1),`${o}.${t}`},m0=(e="")=>{e.startsWith("filter")&&(e=e.slice(6));const[t="",n=""]=e.split(".");return{col:t,operator:n}};function xD({col:e,colFilter:t,onClick:n,...o}){return p.jsxs(w.Menu,{shadow:"md",width:"target",...o,children:[p.jsx(w.Menu.Target,{children:p.jsx(w.Button,{children:"Add filter"})}),p.jsx(w.Menu.Dropdown,{children:t.filters.filter(s=>!s.id).map(s=>p.jsx(w.Menu.Item,{onClick:()=>n({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function AD({col:e}){const{info:t,queryParams:n,setQueryParams:o}=Oe(),s=Na.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),a=A.useMemo(()=>(t==null?void 0:t.filters[e])||{},[e,t==null?void 0:t.filters]),u=A.useMemo(()=>{var y;return((y=a==null?void 0:a.filters)==null?void 0:y.reduce((m,b)=>({...m,[b.operator]:b.name}),{}))||{}},[a==null?void 0:a.filters]),[c]=nt.useDebouncedValue(s.getValues(),rr);nt.useDidUpdate(()=>{const y=c.filters.filter(m=>m.value);o({filters:y})},[c]);const d=s.getValues().filters,h=d.map((y,m)=>y.col===e&&!y.id?p.jsxs(A.Fragment,{children:[p.jsx(w.Grid.Col,{span:1.5,py:0,children:p.jsx(w.Center,{h:"100%",w:"100%",children:p.jsx(w.CloseButton,{onClick:()=>s.removeListItem("filters",m),size:"md",title:"Remove filter",variant:"outline"})})}),p.jsx(w.Grid.Col,{span:10.5,py:0,children:y.opr==="in"?p.jsx(zu,{form:s,name:`filters.${m}.value`,label:u[y.opr],comboboxProps:{withinPortal:!1}}):p.jsx(Lu,{form:s,name:`filters.${m}.value`,label:u[y.opr],schema:a.schema,withinPortal:!1,filter:!0})}),m>=0&&m+1<d.length&&p.jsx(w.Grid.Col,{span:12,py:0,children:p.jsx(w.Divider,{my:"sm",label:"AND",align:"center"})})]},`${y.col}-${m}`):null).filter(Boolean);return p.jsxs(w.Grid,{w:h.length?"25rem":"100%",gap:"md",gutter:"xs",children:[h.length?h:p.jsx(w.Grid.Col,{span:12,children:p.jsx(w.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),p.jsx(w.Grid.Col,{span:12,children:p.jsx(w.Stack,{children:p.jsx(xD,{col:e,colFilter:a||{filters:[]},onClick:y=>s.insertListItem("filters",y),withinPortal:!1})})})]})}function OD({filters:e,col:t,opr:n,table:o}){const s=w.useMantineTheme();return e.map(a=>{const u=a.operator===n;return p.jsx(w.Menu.Item,{color:u?s.primaryColor:void 0,leftSection:p.jsx(w.Text,{size:"xl",ta:"center",w:"2ch",style:{transform:"translateY(-0.1em)"},children:a.name[0]}),onClick:()=>o.setColumnFilterFns(c=>({...c,[t]:yo(t,a.operator)})),value:a.opr,children:a.name},a.operator)})}function ID({enableAdvancedFilters:e,mode:t,setMode:n,col:o,opr:s,filters:a,table:u}){return p.jsxs(p.Fragment,{children:[e&&p.jsxs(p.Fragment,{children:[p.jsx(w.Menu.Item,{component:"div",p:0,children:p.jsx(w.SegmentedControl,{fullWidth:!0,size:"sm",data:["Basic","Advanced"],value:t,onChange:n})}),p.jsx(w.Menu.Divider,{})]}),t==="Basic"&&p.jsx(OD,{filters:a,col:o,opr:s,table:u}),t==="Advanced"&&p.jsx(AD,{col:o})]})}const wi=e=>e!=null&&e!=="",y0=A.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>{const{value:s,onChange:a,leftInputProps:u,rightInputProps:c,groupProps:d,cleariconprops:h,...y}=n,[m,b]=A.useState([null,null]);A.useEffect(()=>{s||b([null,null])},[s]),A.useEffect(()=>{const B=JSON.stringify(m);let D=null;return m.every(wi)&&B!==s?D=setTimeout(()=>{a(JSON.stringify(m))},rr):m.every(k=>!wi(k))&&(D=setTimeout(()=>{a(void 0)},rr)),()=>clearTimeout(D)},[m]);const C=A.useCallback((B,D)=>{b(k=>{const H=[...k];return H[D]=B,H})},[]);let[E,T]=m;const $=wi(T)&&!wi(E),N=wi(E)&&!wi(T),J=typeof E=="number"?p.jsx(w.ActionIcon,{...h,onClick:()=>b(B=>[null,B[1]]),children:p.jsx(_d,{})}):null,Y=typeof T=="number"?p.jsx(w.ActionIcon,{...h,onClick:()=>b(B=>[B[0],null]),children:p.jsx(_d,{})}):null;return p.jsxs(w.Group,{w:"100%",wrap:"nowrap",align:"center",gap:"xs",...d,children:[p.jsx(w.NumberInput,{ref:o,styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:J,...y,...t,value:E??"",onChange:B=>C(B,0),placeholder:$?"Start value is required":"Start value",error:$&&" ",...u}),p.jsx(w.NumberInput,{styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:Y,...y,...t,value:T??"",onChange:B=>C(B,1),placeholder:N?"End value is required":"End value",error:N&&" ",...c})]})});y0.displayName="HeaderBetweenInput";const v0=A.forwardRef(({clearIcon:e,mrtprops:{selectprops:t},...n},o)=>p.jsx(w.Select,{ref:o,data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],...t,...n,value:ei(n.value)?String(n.value):null,onChange:s=>n.onChange(ei(s)?s===String(!0):void 0)}));v0.displayName="HeaderBooleanInput";const Hu=e=>e==="range"?[null,null]:null,b0=(e,t)=>e==="range"?t.every(n=>n!==null):t!==null,Yu=A.forwardRef(({type:e,clearIcon:t,mrtprops:{dateinputprops:n},...o},s)=>{const{value:a,onChange:u,...c}=o,[d,h]=A.useState(Hu(e));return A.useEffect(()=>{h(Hu(e))},[e]),A.useEffect(()=>{a||h(Hu(e))},[e,a]),A.useEffect(()=>{const y=JSON.stringify(e==="range"?d.map(b=>b?b.toISOString():null):(d==null?void 0:d.toISOString())??null);let m=null;return b0(e,d)&&y!==a?m=setTimeout(()=>{u(y)},rr):b0(e,d)||(m=setTimeout(()=>{u(void 0)},rr)),()=>clearTimeout(m)},[d]),p.jsx(Vi.DatePickerInput,{ref:s,type:e,clearable:!0,valueFormat:"DD.MM.YYYY",...c,...n,value:e==="range"?Array.isArray(d)?d:[null,null]:Array.isArray(d)?null:d,onChange:h})});Yu.displayName="HeaderDateInput";const _0=A.forwardRef(({data:e,clearIcon:t,mrtprops:{multiselectprops:n},placeholder:o,...s},a)=>{const u=Array.isArray(s.value)?s.value.map(c=>String(typeof c=="object"?Et(c.id):c)):[];return p.jsxs(w.Box,{...s,children:[!u.length&&p.jsx(w.TextInput,{pos:"absolute",placeholder:o,...s,value:void 0,onChange:void 0}),p.jsx(w.MultiSelect,{ref:a,styles:{pill:{maxWidth:"5rem"}},data:e,...n,...s,value:u})]})});_0.displayName="HeaderMultiSelectInput";const w0=A.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>p.jsx(w.NumberInput,{ref:o,rightSection:e,...t,...n,value:n.value??""}));w0.displayName="HeaderNumberInput";const qu=A.forwardRef(({data:e,clearIcon:t,mrtprops:{selectprops:n},...o},s)=>p.jsx(w.Select,{ref:s,data:e,searchable:!0,...n,...o,value:o.value??null}));qu.displayName="HeaderSelectInput";const Ru=A.forwardRef(({clearIcon:e,mrtprops:{multiselectprops:t},...n},o)=>p.jsx(w.TagsInput,{ref:o,styles:{pill:{maxWidth:"5rem"}},...t,...n,value:n.value??[],onChange:s=>n.onChange(s.length?s:void 0)}));Ru.displayName="HeaderTagsInput";const Ku=A.forwardRef((e,t)=>{const[n,o]=A.useState();return p.jsx(Ru,{ref:t,...e,searchValue:n?n.toString():"",onSearchChange:s=>{if(!s){o(void 0);return}const a=Number(s);isNaN(a)||o(a)}})});Ku.displayName="HeaderTagsNumberInput";const Ju=A.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>p.jsx(w.TextInput,{ref:o,rightSection:e,...t,...n,value:n.value||""}));Ju.displayName="HeaderTextInput";const T0=A.forwardRef(({component:e,...t},n)=>{const o=Oe(),s=Pr(),a=A.useMemo(()=>({api:o,auth:s,componentProps:{...t,ref:n}}),[o,s,t,n]);return p.jsx(Mn,{ref:n,fallback:p.jsx(Ju,{...t}),functionProps:a,children:e})});T0.displayName="HeaderInput";const PD=(e,t)=>{if(!(!e||!t)){switch(e){case"tc":return({componentProps:n})=>p.jsx(Ju,{...n});case"in":switch(t.type){case"Integer":return({componentProps:n})=>p.jsx(Ku,{...n});case"Enum":return({componentProps:n})=>p.jsx(Ku,{data:t.values,...n})}return({componentProps:n})=>p.jsx(Ru,{...n});case"bw":switch(t.type){case"Date":case"DateTime":return({componentProps:n})=>p.jsx(Yu,{type:"range",...n});default:return({componentProps:n})=>p.jsx(y0,{...n})}case"eq":case"neq":switch(t.type){case"Boolean":return({componentProps:n})=>p.jsx(v0,{...n})}break;case"rel_o_m":case"nrel_o_m":return({componentProps:n})=>p.jsx(qu,{data:t.values.map(o=>({value:String(Et(o.id)),label:o.value})),...n});case"rel_m_m":case"nrel_m_m":return({componentProps:n})=>p.jsx(_0,{data:t.values.map(o=>({value:String(Et(o.id)),label:o.value})),...n})}switch(t.type){case"Integer":return({componentProps:n})=>p.jsx(w0,{...n});case"Enum":return({componentProps:n})=>p.jsx(qu,{data:t.values,...n});case"Date":case"DateTime":return({componentProps:n})=>p.jsx(Yu,{...n})}}},Ti={root:"_root_yn5fy_1","date-filter":"_date-filter_yn5fy_5"},S0=A.forwardRef(({label:e,disabled:t,children:n,...o},s)=>t?A.cloneElement(n,{ref:s}):p.jsx(w.Tooltip,{label:e,...o,children:A.cloneElement(n,{ref:s})}));S0.displayName="FilterIconWrapper";const C0=A.forwardRef(({indicator:e,children:t,...n},o)=>{const{height:s,ref:a}=nt.useElementSize(),u=nt.useMergedRef(o,a);if(!e)return A.cloneElement(t,{ref:u});const c=2;//! This is the height offset between the button from ActionIcon and the icon itself
|
|
207
|
-
return p.jsx(w.Indicator,{zIndex:20,size:16,label:e,styles:{root:{height:s+c}},...n,children:A.cloneElement(t,{ref:u})})});C0.displayName="FilterIndicatorWrapper";function $D({children:e,enableFilterModes:t,enableAdvancedFilters:n,filterProps:o,filterModeDescription:s,filterMenu:a,filters:u,filterFn:c,mrtProps:{column:d,table:h,...y}}){var Z;const{info:m,queryParams:b,setQueryParams:C}=Oe(),E=Oe(),T=Pr(),$=A.useMemo(()=>{var X,ee;return(ee=(X=m==null?void 0:m.filters)==null?void 0:X[d.id])==null?void 0:ee.schema},[d.id,m==null?void 0:m.filters]),[N,J]=A.useState("Basic"),[Y,{toggle:B}]=nt.useDisclosure(),D=((Z=h.getState().columnFilterFns)==null?void 0:Z[d.id])||c,k=A.useMemo(()=>m0(D).operator,[D]),H=A.useMemo(()=>{var X;return(X=u==null?void 0:u.find(ee=>ee.operator===k))==null?void 0:X.name},[u,k]),ae=Na.useField({mode:"controlled"}),ie=A.useRef(k),S=A.useMemo(()=>(b==null?void 0:b.filters.filter(X=>X.id!==d.id&&X.col===d.id).map(X=>({...X})))||[],[b,d.id]);ie.current!==k&&(ie.current=k,ae.reset());const j=A.useCallback(()=>{ae.reset(),d.setFilterValue(void 0)},[]),[ne]=nt.useDebouncedValue(ae.getInputProps().value,rr),fe=nt.useMounted(),ye=A.useMemo(()=>b==null?void 0:b.filters.find(X=>X.col===d.id&&X.opr===k),[d.id,k,b==null?void 0:b.filters]);A.useEffect(()=>{fe&&d.setFilterValue(ne??void 0)},[ne]),A.useEffect(()=>{if(!fe)return;const X=d.getFilterValue();X===void 0?j():ae.getInputProps().onChange(X)},[d.getFilterValue()]),A.useEffect(()=>{fe&&(ye||j())},[ye]),nt.useDidUpdate(()=>{var ee;const X=(ee=b==null?void 0:b.filters)==null?void 0:ee.filter(oe=>oe.id!==d.id);ei(ne)&&ne!==""&&X.push({id:d.id,col:d.id,opr:k,value:ne}),C({filters:X})},[ne]);const Me=A.useMemo(()=>{const X={variant:"subtle"};return!(u!=null&&u.length)&&(X.disabled=!0,X.c="gray"),X},[u==null?void 0:u.length]),Te=A.useMemo(()=>Ba(t?e==null?void 0:e[k]:e,PD(k,$)),[e,t,k,$]),Le=A.useMemo(()=>({...Me,variant:"transparent",c:void 0,size:"sm",onClick:j}),[Me,j]),Ce=A.useMemo(()=>({api:E,auth:T,mrtProps:{column:d,table:h,...y}}),[E,T,d,y,h]),gt=A.useMemo(()=>({...Ce,componentProps:{label:h.options.localization.changeFilterMode,disabled:!(u!=null&&u.length),indicator:S.length,aiProps:Me,onClick:B}}),[Me,S.length,u==null?void 0:u.length,Ce,h.options.localization.changeFilterMode,B]),q=A.useMemo(()=>({...Ce,componentProps:{filterMode:H}}),[H,Ce]),L=lt(t?zr(o,k):o,Ce),te=A.useMemo(()=>{var X,ee;return{w:"100%",variant:"unstyled",disabled:!(u!=null&&u.length),title:u.length?void 0:"No filters",placeholder:(X=h.options.localization.filterByColumn)==null?void 0:X.replace("{column}",String(d.columnDef.header)),"aria-label":(ee=h.options.localization.filterByColumn)==null?void 0:ee.replace("{column}",String(d.columnDef.header)),style:{fontWeight:"normal"},mrtprops:{column:d,table:h,...y,textinputprops:{className:Ir("mrt-filter-text-input",Ti.root),...lt(h.mantineFilterTextInputProps,[{column:d,table:h,...y}]),...lt(d.columnDef.mantineFilterTextInputProps,[{column:d,table:h,...y}])},selectprops:{className:Ir("mrt-filter-text-input",Ti.root),...lt(h.mantineFilterSelectProps||{clearable:!0},{column:d,table:h,...y}),...lt(d.columnDef.mantineFilterSelectProps,{column:d,table:h,...y})},multiselectprops:{className:Ir("mrt-filter-text-input",Ti.root),...lt(h.mantineFilterMultiSelectProps||{clearable:!0},{column:d,table:h,...y}),...lt(d.columnDef.mantineFilterMultiSelectProps,{column:d,table:h,...y})},dateinputprops:{className:Ir("mrt-filter-text-input",Ti.root,Ti["date-filter"]),...lt(h.mantineFilterDateInputProps,{column:d,table:h,...y}),...lt(d.columnDef.mantineFilterDateInputProps,{column:d,table:h,...y})},autocompleteprops:{className:Ir("mrt-filter-text-input",Ti.root),...lt(h.mantineFilterAutocompleteProps,{column:d,table:h,...y}),...lt(d.columnDef.mantineFilterAutocompleteProps,{column:d,table:h,...y})}},ref:oe=>{oe&&(h.refs.filterInputRefs.current[`${d.id}-0`]=oe)},clearIcon:ae.isDirty()&&p.jsx(w.CloseButton,{...Le}),...L,cleariconprops:Le}},[Le,d,L,ae,u.length,y,h]);return p.jsxs(w.Menu,{opened:Y,closeOnClickOutside:!0,onChange:B,children:[p.jsxs(w.Stack,{w:"100%",gap:"0.25rem",children:[p.jsxs(w.Flex,{align:"flex-end",children:[p.jsx(T0,{component:Te,field:ae,...ae.getInputProps(),...te}),t&&p.jsx(w.Menu.Target,{children:p.jsx(Mn,{fallback:u.length?p.jsx(S0,{label:h.options.localization.changeFilterMode,position:"bottom-start",withArrow:!0,arrowPosition:"side",children:p.jsx(C0,{indicator:n?S.length:void 0,children:p.jsx(w.ActionIcon,{...Me,onClick:B,children:p.jsx(Zb,{})})})}):null,functionProps:gt,children:a})})]}),t&&p.jsx(Mn,{fallback:u.length?p.jsx(w.Input.Description,{size:"xs",children:h.options.localization.filterMode.replace("{filterType}",yn.localizedFilterOption(zr(h.options.localization,d.id),H)||yn.localizedFilterOption(h.options.localization,H)||H)}):null,functionProps:q,children:s})]}),p.jsx(w.Menu.Dropdown,{children:p.jsx(ID,{enableAdvancedFilters:n,mode:N,setMode:J,col:d.id,opr:k,filters:u,table:h})})]})}function MD({highlight:e,truncate:t,children:n}){return Array.isArray(n)?n.map((o,s)=>{var a;return(a=t==null?void 0:t[s])!=null&&a.truncated?p.jsx(w.Tooltip,{label:t[s].original,children:p.jsx(w.Highlight,{highlight:e,children:t[s].truncated},s)},s):p.jsx(w.Highlight,{highlight:e,children:o},s)}):t!=null&&t.truncated?p.jsx(w.Tooltip,{label:t.original,children:p.jsx(w.Highlight,{highlight:e,children:t.truncated})}):p.jsx(w.Highlight,{highlight:e,children:n})}function FD(e,t,n,o){const{path:s,info:a,data:u,specialKey:c}=Oe(),d=Oe(),h=Pr(),y=A.useMemo(()=>(u==null?void 0:u.list_columns.map(C=>{var ie,S,j,ne,fe,ye,Me;const{component:E,enableFilterModes:T,enableAdvancedFilters:$,filterComponent:N,filterProps:J,filterModeDescription:Y,filterMenu:B,defaultOpr:D=((ne=(j=(S=(ie=a==null?void 0:a.filters)==null?void 0:ie[C])==null?void 0:S.filters)==null?void 0:j[0])==null?void 0:ne.operator)||""}=zr(t,c.all,C),k=yo(C,D),H=((ye=(fe=a==null?void 0:a.filters)==null?void 0:fe[C])==null?void 0:ye.filters)||[],ae={};return E!==void 0&&(ae.Header=Te=>lt(E,{api:d,auth:h,mrtProps:Te})),{accessorKey:C,accessorFn:Te=>Gi(Te,C),header:(Me=u==null?void 0:u.label_columns)==null?void 0:Me[C],Filter:Te=>p.jsx($D,{enableFilterModes:T,enableAdvancedFilters:$,filterProps:J,filterModeDescription:Y,filterMenu:B,filters:H,filterFn:k,mrtProps:Te,children:N}),enableSorting:(u==null?void 0:u.order_columns.includes(C))||(u==null?void 0:u.order_columns.includes(`${C}.id`)),filterFn:H.length?k:void 0,columnFilterModeOptions:H.map(Te=>yo(C,Te.operator)),Cell:({cell:Te,table:Le,column:Ce,...gt})=>{const q=Le.getState().globalFilter,L=Ce.getFilterValue()||"",{component:te,separator:Z,truncate:X}=zr(n,c.all,C);let ee=[];q&&ee.push(...q.split(o).map(he=>he.trim())),L&&typeof L=="string"&&ee.push(...L.split(o).map(he=>he.trim()));let oe=Te.getValue();typeof oe=="number"?oe=oe.toLocaleString():oe==null&&(oe=""),Z&&(oe=oe.split(Z));let ve={};X&&(Array.isArray(oe)?ve=oe.map(he=>({original:he,truncated:he.length>X?`${he.slice(0,X)}...`:null})):ve={original:oe,truncated:oe.length>X?`${oe.slice(0,X)}...`:null});const be={api:d,auth:h,data:Te.row.original,highlight:ee,componentProps:{value:oe},mrtProps:{cell:Te,table:Le,column:Ce,...gt}};return p.jsx(Mn,{fallback:p.jsx(MD,{highlight:ee,truncate:ve,children:oe}),functionProps:be,children:te})},...ae,...zr(e,c.all,C)}}))||[],[u==null?void 0:u.list_columns,u==null?void 0:u.label_columns,u==null?void 0:u.order_columns,a,e,c.all,d,h,t,n,o]),[m,b]=nt.useSetState({});return A.useEffect(()=>{y.length&&b({[u.path]:y})},[y]),{columns:y.length?y:(m==null?void 0:m[s])||y,manualFiltering:!0}}function DD(){const{data:e,loading:t}=Oe();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function kD(e){const{data:t}=Oe();return e?{mantineTableBodyRowProps:({row:n})=>({onClick:()=>{const o=t.ids[n.id];e(o,n.original)},style:{cursor:"pointer"}})}:null}function ND(){const{info:e}=Oe();return{filterFns:A.useMemo(()=>Object.entries((e==null?void 0:e.filters)||{}).reduce((t,[n,o])=>(o.filters.filter(s=>s.operator.startsWith("header:")).forEach(s=>t[yo(n,s.operator)]=null),t),{}),[e==null?void 0:e.filters])}}function LD(){const{queryParams:e,setQueryParams:t}=Oe(),n=A.useMemo(()=>e==null?void 0:e.global_filter,[e==null?void 0:e.global_filter]),[o,s]=A.useState(n||""),[a]=nt.useDebouncedValue(o,rr);return nt.useDidUpdate(()=>{n&&n!==a&&s(n)},[n]),nt.useDidUpdate(()=>{a?t({page:0,global_filter:a}):e!=null&&e.global_filter&&t({page:0,global_filter:void 0})},[a]),{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:o}}}function zD(e){const{data:t,queryParams:n,setQueryParams:o}=Oe(),s=A.useMemo(()=>({pageIndex:(n==null?void 0:n.page)||vf,pageSize:(n==null?void 0:n.page_size)||bf}),[n==null?void 0:n.page,n==null?void 0:n.page_size]),a=A.useCallback(u=>{const c=u(s);!(t!=null&&t.count)&&c.pageIndex===0||o({page:c.pageIndex,page_size:c.pageSize})},[t==null?void 0:t.count,s,o]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:a}}function BD(e){const{ref:t,height:n}=nt.useElementSize(),{ref:o,height:s}=nt.useElementSize(),a=A.useMemo(()=>{const h={h:"100%",withBorder:e};return e||(h.shadow=void 0),h},[e]),u=A.useMemo(()=>({ref:o}),[o]),c=A.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),d=A.useMemo(()=>({h:`calc(100% - ${s+n}px)`}),[s,n]);return{mantinePaperProps:a,mantineTopToolbarProps:u,mantineBottomToolbarProps:c,mantineTableContainerProps:d}}function UD(){const{queryParams:e,setQueryParams:t,data:n}=Oe(),o=A.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=A.useCallback(a=>{const u=a(o);if(!u.length){t({order_column:null,order_direction:null});return}const c=u[0];t({order_column:n.order_columns.includes(c.id)?c.id:`${c.id}.id`,order_direction:c.desc?"desc":"asc"})},[n==null?void 0:n.order_columns,t,o]);return{manualSorting:!0,state:{sorting:o},onSortingChange:s}}function jD({table:e,...t}){const[n,o]=A.useState(!1),{download:s}=Oe(),a={variant:"transparent",size:"md",c:"gray"},u=w.useProps("ActionIcon",a,t);return n?p.jsx(w.ThemeIcon,{variant:"transparent",size:u.size,c:u.c,children:p.jsx(w.Loader,{size:"100%",color:u.c})}):p.jsx(w.Tooltip,{label:e.options.localization.download??"Download",children:p.jsx(w.ActionIcon,{variant:u.variant,size:u.size,c:u.c,className:"filterButton",onClick:()=>{o(!0),s("download").then(()=>o(!1))},children:p.jsx(md,{})})})}function WD({table:e,...t}){const[n,o]=A.useState(!1),{loading:s,refetch:a}=Oe(),u={variant:"transparent",size:"md",c:"gray"},c=w.useProps("ActionIcon",u,t);return A.useEffect(()=>{s||o(!1)},[s]),n?p.jsx(w.ThemeIcon,{variant:"transparent",size:c.size,c:c.c,children:p.jsx(w.Loader,{size:"100%",color:c.c})}):p.jsx(w.Tooltip,{label:e.options.localization.refresh??"Refresh",children:p.jsx(w.ActionIcon,{variant:c.variant,size:c.size,c:c.c,className:"filterButton",onClick:()=>{o(!0),a()},children:p.jsx(t_,{})})})}const Zu={toggleGlobalFilter:1,filter:2,download:3,add:4,refresh:5,showHideColumns:6,toggleDensePadding:7,toggleFullScreen:8};function VD(e,t){return{1:p.jsx(yn.MRT_ToggleGlobalFilterButton,{table:e,disabled:!1},"basic-1"),2:p.jsx(yn.MRT_ToggleFiltersButton,{table:e},"basic-2"),3:(t==null?void 0:t["3"])&&p.jsx(jD,{table:e},"basic-3"),4:(t==null?void 0:t["4"])&&p.jsx(Vu,{tooltipProps:{label:e.options.localization.add}},"basic-4"),5:p.jsx(WD,{table:e},"basic-5"),6:p.jsx(yn.MRT_ShowHideColumnsButton,{table:e},"basic-6"),7:p.jsx(yn.MRT_ToggleDensePaddingButton,{table:e},"basic-7"),8:p.jsx(yn.MRT_ToggleFullScreenButton,{table:e},"basic-8")}}function E0(e,t,n,o){Object.entries(e||{}).forEach(([a,u])=>{a in Zu&&(t[Zu[a]]=p.jsx(Mn,{fallback:t[Zu[a]],functionProps:n,children:u},`custom-${a}`))});let s=Object.values(t);return Object.entries(o||{}).forEach(([a,u])=>{a=Number(a)-1;const c=p.jsx(Mn,{functionProps:n,children:u},`order-${a}`);a>s.length?s.push(c):s=[...s.slice(0,a),c,...s.slice(a)]}),p.jsx(w.Flex,{gap:"0.125rem",align:"center",children:s})}function GD(e={},t,n){const{info:o,queryParams:s,setQueryParams:a}=Oe(),u=Oe(),c=Pr(),{customizer:d,custom:h,leftToolbar:y}=e,m=A.useMemo(()=>t?[{label:"All",value:"[]"},...t.map(E=>({label:E.name,value:JSON.stringify(E.value)}))]:[],[t]),b=A.useMemo(()=>m.length?p.jsx(w.SegmentedControl,{value:JSON.stringify((s==null?void 0:s.filters)||[]),onChange:E=>a({filters:JSON.parse(E)}),data:m}):null,[s==null?void 0:s.filters,m,a]);return{renderToolbarInternalActions:A.useCallback(({table:E})=>{const T={api:u,auth:c,mrtProps:{table:E}},$={3:o==null?void 0:o.permissions.includes("can_download"),4:o==null?void 0:o.permissions.includes("can_post")},N=VD(E,$);return E0(d,N,T,h)},[u,c,h,d,o==null?void 0:o.permissions]),enableTopToolbar:!n,enableFilters:(d==null?void 0:d.filter)!==null,...A.useMemo(()=>{if(b&&y)throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");const E={};if(b&&(E.renderTopToolbarCustomActions=()=>p.jsx(w.Group,{justify:"space-between",children:p.jsx(w.Box,{children:b})}),E.positionToolbarAlertBanner="bottom"),y){const{custom:T}=y;E.renderTopToolbarCustomActions=({table:$})=>E0(void 0,{},{api:u,auth:c,mrtProps:{table:$}},T),E.positionToolbarAlertBanner="bottom"}return E},[u,c,y,b])}}const x0={"toolbar-alert":"_toolbar-alert_bw71q_25","head-overlay":"_head-overlay_bw71q_28"},HD=({alertBanner:e,table:t,...n})=>{var Te,Le;const{getFilteredSelectedRowModel:o,getPrePaginationRowModel:s,getState:a,resetRowSelection:u,options:{enableRowSelection:c,enableSelectAll:d,icons:{IconX:h},localization:y,mantineToolbarAlertBannerBadgeProps:m,mantineToolbarAlertBannerProps:b,manualPagination:C,positionToolbarAlertBanner:E,rowCount:T}}=t,{density:$,grouping:N,rowSelection:J}=a(),{left:Y,right:B,renderToolbarAlertBannerContent:D,wrapperProps:k}=e??{},{flex:H,group:ae,stack:ie}=k??{},S={...lt(b,{table:t}),...n},j=lt(m,{table:t}),ne=T??s().flatRows.length,fe=A.useMemo(()=>C?Object.values(J).filter(Boolean).length:o().rows.length,[J,ne,C]),ye=fe?p.jsxs(w.Flex,{align:"center",gap:"sm",children:[(Le=(Te=y.selectedCountOfRowCountRowsSelected)==null?void 0:Te.replace("{selectedCount}",fe.toString()))==null?void 0:Le.replace("{rowCount}",ne.toString()),p.jsx(w.Button,{onClick:u,size:"compact-xs",variant:"subtle",children:y.clearSelection}),p.jsx(w.Button,{onClick:Ce=>yn.getMRT_SelectAllHandler({table:t})(Ce,!1,!0),size:"compact-xs",variant:"subtle",children:y.clearSelectionOnThisPage??"Clear selection on this page"})]}):null,Me=N.length>0?p.jsxs(w.Group,{gap:"xs",children:[y.groupedBy,N.map((Ce,gt)=>p.jsxs(A.Fragment,{children:[gt>0?y.thenBy:"",p.jsxs(w.Badge,{className:"alert-badge",rightSection:p.jsx(w.ActionIcon,{color:"white",onClick:()=>t.getColumn(Ce).toggleGrouping(),size:"xs",variant:"subtle",children:p.jsx(h,{style:{transform:"scale(0.8)"}})}),variant:"filled",...j,children:[t.getColumn(Ce).columnDef.header," "]})]},`${gt}-${Ce}`))]}):null;return p.jsxs(w.Flex,{className:Ir(x0["toolbar-alert"],E==="head-overlay"&&x0["head-overlay"],$),...H,children:[c&&d&&E==="head-overlay"&&p.jsx(yn.MRT_SelectCheckbox,{table:t}),p.jsxs(w.Group,{align:"flex-start",gap:"xs",...ae,children:[lt(Y,{table:t}),Ba(lt(D,{selectedAlert:ye,groupedAlert:Me,table:t}),p.jsxs(w.Stack,{gap:"xs",...ie,children:[S==null?void 0:S.children,ye,Me]})),lt(B,{table:t})]})]})};function YD(e){const{alertBanner:t}=e;return{renderToolbarAlertBannerContent:({table:n})=>p.jsx(HD,{alertBanner:t,table:n})}}function qD(){const{data:e}=Oe();return A.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const RD={enableStickyHeader:!0,enableColumnPinning:!0},A0=A.forwardRef((e,t)=>{var Lt,fr,yt;const{info:n,data:o,queryParams:s,refetch:a,specialKey:u}=Oe(),c=w.useProps("NextGenDataGrid",{},{}),{fetchOnMount:d=!0,hideToolbar:h,hideActions:y,hidePagination:m,hideError:b,onSelectCheckbox:C,onClickEntry:E,bulkActions:T,table:$,quickFilters:N,withBorder:J,columnProps:Y,header:B,body:D,form:k,toolbar:H={},textFilterSeparator:ae=";",bodySeparator:ie,bodyTruncate:S,headerCustomizer:j,bodyCustomizer:ne,toolbarCustomizer:fe,hideAdd:ye,hideDownload:Me,hideFilter:Te,...Le}=A.useMemo(()=>zn(c,e),[e,c]);ie&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].separator=D[ke].separator||ie}),S&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].truncate=D[ke].truncate||S}),j&&Object.keys(j).forEach(ke=>{B[ke]=B[ke]||{},B[ke].component=j[ke].component||j[ke]}),ne&&Object.keys(ne).forEach(ke=>{D[ke]=D[ke]||{},D[ke].component=ne[ke].component||ne[ke]}),fe&&(H.custom=H.custom||fe),ye&&(H.customizer=H.customizer||{},H.customizer.add=H.customizer.add||null),Me&&(H.customizer=H.customizer||{},H.customizer.download=H.customizer.download||null),Te&&(H.customizer=H.customizer||{},H.customizer.filter=H.customizer.filter||null),A.useEffect(()=>{process.env.NODE_ENV==="development"&&(ie&&console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),S&&console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),j&&console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),ne&&console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),fe&&console.warn("toolbarCustomizer is deprecated, please use toolbar.custom instead"),ye&&console.warn("hideAdd is deprecated, please use toolbar.customizer.add instead"),Me&&console.warn("hideDownload is deprecated, please use toolbar.customizer.download instead"),Te&&console.warn("hideFilter is deprecated, please use toolbar.customizer.filter instead"))},[]);const Ce=DD(),gt=UD(),q=zD(m),L=FD(Y,B,D,ae),te=BD(J),Z=CD(y,(Lt=zr(D,u.actions))==null?void 0:Lt.component),X=LD(),ee=qD(),oe=GD(H,N,h),ve=kD(E),be=ED(C,T),he=ND(),Ee=YD(H),et=A.useMemo(()=>zn(RD,{mantinePaperProps:{ref:t},getRowId:ke=>ke.id},L,Ce,gt,q,te,Z,X,ee,oe,ve,be,he,Ee,$),[t,L,Ce,gt,q,te,Z,X,ee,oe,ve,be,he,Ee,$]),Q=yn.useMantineReactTable(et);A.useEffect(()=>{!s&&d&&a()},[]),A.useEffect(()=>{C==null||C(Object.keys(Q.getState().rowSelection)),T==null||T.setSelectedIds(Object.keys(Q.getState().rowSelection))},[T,o==null?void 0:o.ids,Q.getState().rowSelection,C]);const{setView:mt}=Bn("add"),{setView:Ke}=Bn("edit");return A.useEffect(()=>{var ke,Yn;(ke=k==null?void 0:k.add)!=null&&ke.initialView&&mt(k.add.initialView),(Yn=k==null?void 0:k.edit)!=null&&Yn.initialView&&Ke(k.edit.initialView)},[]),p.jsxs(w.Box,{h:"100%",w:"100%",pos:"relative",children:[p.jsxs(Uu,{cond:!!n,children:[p.jsx(Gu,{jsonForms:k==null?void 0:k.add,...(fr=k==null?void 0:k.add)==null?void 0:fr.dialogProps}),p.jsx(Cu,{jsonForms:k==null?void 0:k.edit,...(yt=k==null?void 0:k.edit)==null?void 0:yt.dialogProps})]}),p.jsx(yn.MantineReactTable,{table:Q,...Le}),b?null:p.jsx(Eu,{})]})});A0.displayName="NextGenDataGrid";const Xu={iconSmall:"_iconSmall_sxv3z_1",btn:"_btn_sxv3z_17"};function KD({basePath:e="/security",Target:t,children:n}){const o=gf.useNavigate(),{user:s,signout:a}=Pr(),[u,c]=A.useState(!1),h=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:n_},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:Xb},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:vd},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:vd},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:Rb}].filter(y=>s.permissions.includes(y.name));return p.jsxs(w.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:u,onClose:()=>c(!1),onOpen:()=>c(!0),children:[p.jsx(w.Menu.Target,{children:t||p.jsx(w.UnstyledButton,{className:Xu.btn,style:{borderRadius:4},p:"xs",children:p.jsxs(w.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[p.jsx(w.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),p.jsx(gl,{size:12})]})})}),p.jsxs(w.Menu.Dropdown,{children:[h.length?p.jsxs(p.Fragment,{children:[p.jsx(w.Menu.Label,{children:"Security"}),h.map((y,m)=>p.jsx(w.Menu.Item,{p:12,leftSection:p.jsx(y.Icon,{className:Xu.iconSmall}),onClick:()=>o(y.resource_name),children:y.label},m)),p.jsx(w.Menu.Divider,{})]}):null,n,p.jsx(w.Menu.Item,{leftSection:p.jsx(Qb,{p:12,className:Xu.iconSmall}),onClick:a,children:"Logout"})]})]})}I.Actions=Wu,I.Add=Vu,I.AddDialog=Gu,I.AlertDialog=wd,I.ApiContext=La,I.ApiProvider=hd,I.AuthContext=Ua,I.Body=n0,I.BulkActionsContext=Wa,I.DEBOUNCE_DELAY=rr,I.DEFAULT_PAGE=vf,I.DEFAULT_PAGE_SIZE=bf,I.DataGrid=ju,I.Delete=Td,I.DeleteDialog=Hp,I.Download=o0,I.Edit=Sd,I.EditDialog=Cu,I.ErrorDialog=Eu,I.FallbackWrapper=Mn,I.Field=go,I.FieldTitle=Bs,I.Filter=d0,I.FilterMenu=f0,I.FormAutocomplete=yD,I.FormContextAdd=Va,I.FormContextEdit=Ga,I.FormDatePicker=s0,I.FormDateTimePicker=a0,I.FormField=Lu,I.FormFilterIn=zu,I.FormGeometryField=l0,I.FormJsonField=ku,I.FormRelatedListSelect=u0,I.FormRelatedSelect=c0,I.FormSelect=Nu,I.FormTextField=mo,I.Header=Fu,I.InfiniteScroll=SD,I.InfoContext=ja,I.LazyLoadWrapper=Uu,I.Main=i0,I.MantineArrayControlRenderer=em,I.MantineBooleanCell=Pp,I.MantineBooleanControl=lm,I.MantineBooleanInput=Ul,I.MantineDateCell=Mp,I.MantineDateControl=cm,I.MantineDateInput=jl,I.MantineDateTimeCell=Dp,I.MantineDateTimeControl=dm,I.MantineDateTimeInput=Wl,I.MantineEnumArrayInput=xp,I.MantineEnumArrayRenderer=im,I.MantineEnumCell=Np,I.MantineEnumControl=hm,I.MantineEnumInput=Vl,I.MantineGroupLayoutRenderer=Om,I.MantineGroupLayoutTester=Am,I.MantineHorizontalLayoutRenderer=Pm,I.MantineIntegerCell=zp,I.MantineIntegerControl=mm,I.MantineJsonControl=vm,I.MantineJsonInput=Ap,I.MantineLabelRenderer=xm,I.MantineLabelTester=Em,I.MantineLayoutRenderer=as,I.MantineNumberCell=Up,I.MantineNumberControl=_m,I.MantineNumberInput=eo,I.MantineObjectControl=sm,I.MantineObjectControlTester=om,I.MantineObjectInput=Op,I.MantineOneOfEnumCell=Wp,I.MantineOneOfEnumControl=Tm,I.MantineOneOfEnumInput=Gl,I.MantineTableControl=Xg,I.MantineTextCell=Gp,I.MantineTextControl=Cm,I.MantineTextInput=Hl,I.MantineVerticalLayoutRenderer=Mm,I.NextGenDataGrid=A0,I.NoBorderTableCell=_i,I.NonEmptyRow=Zg,I.Pagination=Du,I.Provider=eb,I.Row=t0,I.TableToolbar=Yg,I.Toolbar=Bu,I.UserMenu=KD,I.VIEW_MODE=ht,I.ValidationIcon=Hg,I.View=g0,I.ViewDialog=h0,I.authInfo=Af,I.authOAuthSignin=xf,I.authResetPassword=Ef,I.authSignin=Sf,I.authSignout=Cf,I.compareStateWithStore=wf,I.convertId=Et,I.convertInfo=cd,I.convertLocalToUTCISOString=Bl,I.convertToFormInputs=zm,I.convertUTCISOStringToLocal=wp,I.createFetchParams=Ot,I.createItem=Ff,I.createProxy=zo,I.createQueryParams=qi,I.deepMerge=zn,I.deleteItem=Df,I.downloadData=fd,I.fromFilterFnToFilter=m0,I.fromFilterToFilterFn=yo,I.getDefaultValues=Ha,I.getInfo=kf,I.getItem=Nf,I.getItems=Lf,I.getProps=zr,I.getUser=Of,I.getValidationSchema=pl,I.getValue=Gi,I.getValueOrDefault=Ba,I.initialState=Bo,I.isEnumArrayControl=tm,I.isJsonControl=nm,I.isSchemaTypeInclude=ar,I.isTruthy=ei,I.mantineArrayControlTester=Qg,I.mantineBooleanCellTester=Ip,I.mantineBooleanControlTester=am,I.mantineCells=Fm,I.mantineDateCellTester=$p,I.mantineDateControlTester=um,I.mantineDateTimeCellTester=Fp,I.mantineDateTimeControlTester=fm,I.mantineEnumArrayRendererTester=rm,I.mantineEnumCellTester=kp,I.mantineEnumControlTester=pm,I.mantineHorizontalLayoutTester=Im,I.mantineIntegerCellTester=Lp,I.mantineIntegerControlTester=gm,I.mantineJsonControlTester=ym,I.mantineNumberCellTester=Bp,I.mantineNumberControlTester=bm,I.mantineOneOfEnumCellTester=jp,I.mantineOneOfEnumControlTester=wm,I.mantineRenderers=Dm,I.mantineTextCellTester=Vp,I.mantineTextControlTester=Sm,I.mantineVerticalLayoutTester=$m,I.normalize=_f,I.parseFromValuesOrFunc=lt,I.parseValue=za,I.postBulk=Bf,I.updateItem=zf,I.updateUser=If,I.urlJoin=dt,I.useApi=Oe,I.useAuth=Pr,I.useBooleanProps=Rd,I.useBulkActions=tb,I.useCommonProps=In,I.useContextProps=_n,I.useCustomFetch=_D,I.useDateProps=ls,I.useDebouncedChange=Z1,I.useForms=Bn,I.useInfo=Tf,I.useJsonProps=Tp,I.useMultiSelectProps=Sp,I.useNumberProps=Cp,I.useProvideApi=dd,I.useProvideAuth=Pf,I.useProvideBulk=pd,I.useProvideForm=hl,I.useProvideInfo=$f,I.useProxy=Hi,I.useSelectProps=us,I.useTextProps=Ep,I.useTrueOnce=p0,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
|
|
222
|
+
export default theme;`}function vu(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ur(20));const m=yu(a),y=Fp(e);let _=Kt(y,{mixins:RE(y.breakpoints,o),palette:m,shadows:nx.slice(),typography:XE(m,c),transitions:sx(u),zIndex:{...ax}});if(_=Kt(_,p),_=t.reduce((C,E)=>Kt(C,E),_),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(w,$)=>{let N;for(N in w){const Q=w[N];if(C.includes(N)&&Object.keys(Q).length>0){if(process.env.NODE_ENV!=="production"){const H=ou("",N);console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${H}' syntax:`,JSON.stringify({root:{[`&.${H}`]:Q}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
223
|
+
`))}w[N]={}}}};Object.keys(_.components).forEach(w=>{const $=_.components[w].styleOverrides;$&&w.startsWith("Mui")&&E($,w)})}return _.unstable_sxConfig={...Es,...p==null?void 0:p.unstable_sxConfig},_.unstable_sx=function(E){return ci({sx:E,theme:this})},_.toRuntimeSource=Kp,_}function ux(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 cx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ux(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rp(e){return e==="dark"?cx:[]}function fx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,a=yu(t);return{palette:a,opacity:{...Jp(a.mode),...n},overlays:o||Rp(a.mode),...s}}function dx(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],px=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return hx(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:u}}:a?{[a.replace("%s",t)]:u,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...u}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function gx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function z(e,t,n){!e[t]&&n&&(e[t]=n)}function co(e){return typeof e!="string"||!e.startsWith("hsl")?e:Lp(e)}function Hn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ao(co(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().
|
|
224
|
+
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 mx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const $n=e=>{try{return e()}catch{}},yx=(e="mui")=>NE(e);function bu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=fx({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...u}=vu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...Jp(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Rp(s)},u}function vx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:u=dx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:h=":root",...p}=e,m=Object.keys(n)[0],y=o||(n.light&&m!=="light"?"light":m),_=yx(a),{[y]:C,light:E,dark:w,...$}=n,N={...$};let Q=C;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(Q=!0),!Q)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:ur(21,y));const H=bu(N,Q,p,y);E&&!N.light&&bu(N,E,void 0,"light"),w&&!N.dark&&bu(N,w,void 0,"dark");let B={defaultColorScheme:y,...H,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:h,getCssVar:_,colorSchemes:N,font:{...JE(H.typography),...H.font},spacing:mx(p.spacing)};Object.keys(B.colorSchemes).forEach(ie=>{const S=B.colorSchemes[ie].palette,U=ne=>{const fe=ne.split("-"),ye=fe[1],Me=fe[2];return _(ne,S[ye][Me])};if(S.mode==="light"&&(z(S.common,"background","#fff"),z(S.common,"onBackground","#000")),S.mode==="dark"&&(z(S.common,"background","#000"),z(S.common,"onBackground","#fff")),gx(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){z(S.Alert,"errorColor",Ye(S.error.light,.6)),z(S.Alert,"infoColor",Ye(S.info.light,.6)),z(S.Alert,"successColor",Ye(S.success.light,.6)),z(S.Alert,"warningColor",Ye(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-main")),z(S.Alert,"infoFilledBg",U("palette-info-main")),z(S.Alert,"successFilledBg",U("palette-success-main")),z(S.Alert,"warningFilledBg",U("palette-warning-main")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.main))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.main))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.main))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.main))),z(S.Alert,"errorStandardBg",qe(S.error.light,.9)),z(S.Alert,"infoStandardBg",qe(S.info.light,.9)),z(S.Alert,"successStandardBg",qe(S.success.light,.9)),z(S.Alert,"warningStandardBg",qe(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-100")),z(S.Avatar,"defaultBg",U("palette-grey-400")),z(S.Button,"inheritContainedBg",U("palette-grey-300")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-A100")),z(S.Chip,"defaultBorder",U("palette-grey-400")),z(S.Chip,"defaultAvatarColor",U("palette-grey-700")),z(S.Chip,"defaultIconColor",U("palette-grey-700")),z(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),z(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),z(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),z(S.LinearProgress,"primaryBg",qe(S.primary.main,.62)),z(S.LinearProgress,"secondaryBg",qe(S.secondary.main,.62)),z(S.LinearProgress,"errorBg",qe(S.error.main,.62)),z(S.LinearProgress,"infoBg",qe(S.info.main,.62)),z(S.LinearProgress,"successBg",qe(S.success.main,.62)),z(S.LinearProgress,"warningBg",qe(S.warning.main,.62)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.11)`),z(S.Slider,"primaryTrack",qe(S.primary.main,.62)),z(S.Slider,"secondaryTrack",qe(S.secondary.main,.62)),z(S.Slider,"errorTrack",qe(S.error.main,.62)),z(S.Slider,"infoTrack",qe(S.info.main,.62)),z(S.Slider,"successTrack",qe(S.success.main,.62)),z(S.Slider,"warningTrack",qe(S.warning.main,.62));const ne=Is(S.background.default,.8);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Is(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-400")),z(S.StepContent,"border",U("palette-grey-400")),z(S.Switch,"defaultColor",U("palette-common-white")),z(S.Switch,"defaultDisabledColor",U("palette-grey-100")),z(S.Switch,"primaryDisabledColor",qe(S.primary.main,.62)),z(S.Switch,"secondaryDisabledColor",qe(S.secondary.main,.62)),z(S.Switch,"errorDisabledColor",qe(S.error.main,.62)),z(S.Switch,"infoDisabledColor",qe(S.info.main,.62)),z(S.Switch,"successDisabledColor",qe(S.success.main,.62)),z(S.Switch,"warningDisabledColor",qe(S.warning.main,.62)),z(S.TableCell,"border",qe(Os(S.divider,1),.88)),z(S.Tooltip,"bg",Os(S.grey[700],.92))}if(S.mode==="dark"){z(S.Alert,"errorColor",qe(S.error.light,.6)),z(S.Alert,"infoColor",qe(S.info.light,.6)),z(S.Alert,"successColor",qe(S.success.light,.6)),z(S.Alert,"warningColor",qe(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-dark")),z(S.Alert,"infoFilledBg",U("palette-info-dark")),z(S.Alert,"successFilledBg",U("palette-success-dark")),z(S.Alert,"warningFilledBg",U("palette-warning-dark")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.dark))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.dark))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.dark))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.dark))),z(S.Alert,"errorStandardBg",Ye(S.error.light,.9)),z(S.Alert,"infoStandardBg",Ye(S.info.light,.9)),z(S.Alert,"successStandardBg",Ye(S.success.light,.9)),z(S.Alert,"warningStandardBg",Ye(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-900")),z(S.AppBar,"darkBg",U("palette-background-paper")),z(S.AppBar,"darkColor",U("palette-text-primary")),z(S.Avatar,"defaultBg",U("palette-grey-600")),z(S.Button,"inheritContainedBg",U("palette-grey-800")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-700")),z(S.Chip,"defaultBorder",U("palette-grey-700")),z(S.Chip,"defaultAvatarColor",U("palette-grey-300")),z(S.Chip,"defaultIconColor",U("palette-grey-300")),z(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),z(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),z(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),z(S.LinearProgress,"primaryBg",Ye(S.primary.main,.5)),z(S.LinearProgress,"secondaryBg",Ye(S.secondary.main,.5)),z(S.LinearProgress,"errorBg",Ye(S.error.main,.5)),z(S.LinearProgress,"infoBg",Ye(S.info.main,.5)),z(S.LinearProgress,"successBg",Ye(S.success.main,.5)),z(S.LinearProgress,"warningBg",Ye(S.warning.main,.5)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.13)`),z(S.Slider,"primaryTrack",Ye(S.primary.main,.5)),z(S.Slider,"secondaryTrack",Ye(S.secondary.main,.5)),z(S.Slider,"errorTrack",Ye(S.error.main,.5)),z(S.Slider,"infoTrack",Ye(S.info.main,.5)),z(S.Slider,"successTrack",Ye(S.success.main,.5)),z(S.Slider,"warningTrack",Ye(S.warning.main,.5));const ne=Is(S.background.default,.98);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Is(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-600")),z(S.StepContent,"border",U("palette-grey-600")),z(S.Switch,"defaultColor",U("palette-grey-300")),z(S.Switch,"defaultDisabledColor",U("palette-grey-600")),z(S.Switch,"primaryDisabledColor",Ye(S.primary.main,.55)),z(S.Switch,"secondaryDisabledColor",Ye(S.secondary.main,.55)),z(S.Switch,"errorDisabledColor",Ye(S.error.main,.55)),z(S.Switch,"infoDisabledColor",Ye(S.info.main,.55)),z(S.Switch,"successDisabledColor",Ye(S.success.main,.55)),z(S.Switch,"warningDisabledColor",Ye(S.warning.main,.55)),z(S.TableCell,"border",Ye(Os(S.divider,1),.68)),z(S.Tooltip,"bg",Os(S.grey[700],.92))}Hn(S.background,"default"),Hn(S.background,"paper"),Hn(S.common,"background"),Hn(S.common,"onBackground"),Hn(S,"divider"),Object.keys(S).forEach(ne=>{const fe=S[ne];ne!=="tonalOffset"&&fe&&typeof fe=="object"&&(fe.main&&z(S[ne],"mainChannel",ao(co(fe.main))),fe.light&&z(S[ne],"lightChannel",ao(co(fe.light))),fe.dark&&z(S[ne],"darkChannel",ao(co(fe.dark))),fe.contrastText&&z(S[ne],"contrastTextChannel",ao(co(fe.contrastText))),ne==="text"&&(Hn(S[ne],"primary"),Hn(S[ne],"secondary")),ne==="action"&&(fe.active&&Hn(S[ne],"active"),fe.selected&&Hn(S[ne],"selected")))})}),B=t.reduce((ie,S)=>Kt(ie,S),B);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:px(B)},{vars:k,generateThemeVars:G,generateStyleSheets:ae}=zE(B,D);return B.vars=k,Object.entries(B.colorSchemes[B.defaultColorScheme]).forEach(([ie,S])=>{B[ie]=S}),B.generateThemeVars=G,B.generateStyleSheets=ae,B.generateSpacing=function(){return Mp(p.spacing,su(this))},B.getColorSchemeSelector=UE(c),B.spacing=B.generateSpacing(),B.shouldSkipGeneratingVar=u,B.unstable_sxConfig={...Es,...p==null?void 0:p.unstable_sxConfig},B.unstable_sx=function(S){return ci({sx:S,theme:this})},B.toRuntimeSource=Kp,B}function Zp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:yu({...n===!0?{}:n.palette,mode:t})})}function bx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",h=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return vu(e,...t);let m=n;"palette"in e||p[c]&&(p[c]!==!0?m=p[c].palette:c==="dark"&&(m={mode:"dark"}));const y=vu({...e,palette:m},...t);return y.defaultColorScheme=c,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},Zp(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},Zp(y,"light",p.light)),y}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),vx({...u,colorSchemes:p,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const _x=bx(),Tx="$$material";function wx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sx=SE({themeId:Tx,defaultTheme:_x,rootShouldForwardProp:e=>wx(e)&&e!=="classes"}),Cx=kE;process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object.isRequired);function Ex(e){return DE(e)}function xx(e){return ou("MuiSvgIcon",e)}tC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ax=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Lr(t)}`,`fontSize${Lr(n)}`]};return XS(s,xx,o)},Ox=Sx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Lr(n.color)}`],t[`fontSize${Lr(n.fontSize)}`]]}})(Cx(({theme:e})=>{var t,n,o,s,a,u,c,h,p,m,y,_,C,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:h.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var $,N;return{props:{color:w},style:{color:(N=($=(e.vars??e).palette)==null?void 0:$[w])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(_=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(E=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ps=Ft.forwardRef(function(t,n){const o=Ex({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:m=!1,titleAccess:y,viewBox:_="0 0 24 24",...C}=o,E=Ft.isValidElement(s)&&s.type==="svg",w={...o,color:u,component:c,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:_,hasSvgAsChild:E},$={};m||($.viewBox=_);const N=Ax(w);return d.jsxs(Ox,{as:c,className:Pr(N.root,a),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:n,...$,...C,...E&&s.props,ownerState:w,children:[E?s.props.children:s,y?d.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ne.string]),component:Ne.elementType,fontSize:Ne.oneOfType([Ne.oneOf(["inherit","large","medium","small"]),Ne.string]),htmlColor:Ne.string,inheritViewBox:Ne.bool,shapeRendering:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),titleAccess:Ne.string,viewBox:Ne.string}),Ps.muiName="SvgIcon";function _u(e,t){function n(o,s){return d.jsx(Ps,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ps.muiName,Ft.memo(Ft.forwardRef(n))}const Ix=_u(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),Px=_u(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),$x=_u(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");function Mx(){this.__data__=[],this.size=0}var Fx=Mx;function Dx(e,t){return e===t||e!==e&&t!==t}var $s=Dx,kx=$s;function Nx(e,t){for(var n=e.length;n--;)if(kx(e[n][0],t))return n;return-1}var Ms=Nx,Lx=Ms,Bx=Array.prototype,zx=Bx.splice;function Ux(e){var t=this.__data__,n=Lx(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():zx.call(t,n,1),--this.size,!0}var jx=Ux,Wx=Ms;function Vx(e){var t=this.__data__,n=Wx(t,e);return n<0?void 0:t[n][1]}var Gx=Vx,Hx=Ms;function Yx(e){return Hx(this.__data__,e)>-1}var qx=Yx,Kx=Ms;function Jx(e,t){var n=this.__data__,o=Kx(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var Rx=Jx,Zx=Fx,Xx=jx,Qx=Gx,eA=qx,tA=Rx;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}mi.prototype.clear=Zx,mi.prototype.delete=Xx,mi.prototype.get=Qx,mi.prototype.has=eA,mi.prototype.set=tA;var Fs=mi,nA=Fs;function rA(){this.__data__=new nA,this.size=0}var iA=rA;function oA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var sA=oA;function aA(e){return this.__data__.get(e)}var lA=aA;function uA(e){return this.__data__.has(e)}var cA=uA,fA=kr,dA=fA(Object,"create"),Ds=dA,Xp=Ds;function hA(){this.__data__=Xp?Xp(null):{},this.size=0}var pA=hA;function gA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mA=gA,yA=Ds,vA="__lodash_hash_undefined__",bA=Object.prototype,_A=bA.hasOwnProperty;function TA(e){var t=this.__data__;if(yA){var n=t[e];return n===vA?void 0:n}return _A.call(t,e)?t[e]:void 0}var wA=TA,SA=Ds,CA=Object.prototype,EA=CA.hasOwnProperty;function xA(e){var t=this.__data__;return SA?t[e]!==void 0:EA.call(t,e)}var AA=xA,OA=Ds,IA="__lodash_hash_undefined__";function PA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=OA&&t===void 0?IA:t,this}var $A=PA,MA=pA,FA=mA,DA=wA,kA=AA,NA=$A;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}yi.prototype.clear=MA,yi.prototype.delete=FA,yi.prototype.get=DA,yi.prototype.has=kA,yi.prototype.set=NA;var LA=yi,Qp=LA,BA=Fs,zA=Dl;function UA(){this.size=0,this.__data__={hash:new Qp,map:new(zA||BA),string:new Qp}}var jA=UA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VA=WA,GA=VA;function HA(e,t){var n=e.__data__;return GA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ks=HA,YA=ks;function qA(e){var t=YA(this,e).delete(e);return this.size-=t?1:0,t}var KA=qA,JA=ks;function RA(e){return JA(this,e).get(e)}var ZA=RA,XA=ks;function QA(e){return XA(this,e).has(e)}var eO=QA,tO=ks;function nO(e,t){var n=tO(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var rO=nO,iO=jA,oO=KA,sO=ZA,aO=eO,lO=rO;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}vi.prototype.clear=iO,vi.prototype.delete=oO,vi.prototype.get=sO,vi.prototype.has=aO,vi.prototype.set=lO;var eg=vi,uO=Fs,cO=Dl,fO=eg,dO=200;function hO(e,t){var n=this.__data__;if(n instanceof uO){var o=n.__data__;if(!cO||o.length<dO-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new fO(o)}return n.set(e,t),this.size=n.size,this}var pO=hO,gO=Fs,mO=iA,yO=sA,vO=lA,bO=cA,_O=pO;function bi(e){var t=this.__data__=new gO(e);this.size=t.size}bi.prototype.clear=mO,bi.prototype.delete=yO,bi.prototype.get=vO,bi.prototype.has=bO,bi.prototype.set=_O;var TO=bi,wO=kr,SO=function(){try{var e=wO(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tg=SO,ng=tg;function CO(e,t,n){t=="__proto__"&&ng?ng(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Tu=CO,EO=Tu,xO=$s;function AO(e,t,n){(n!==void 0&&!xO(e[t],n)||n===void 0&&!(t in e))&&EO(e,t,n)}var rg=AO;function OO(e){return function(t,n,o){for(var s=-1,a=Object(t),u=o(t),c=u.length;c--;){var h=u[e?c:++s];if(n(a[h],h,a)===!1)break}return t}}var IO=OO,PO=IO,$O=PO(),MO=$O,Ns={exports:{}};Ns.exports,function(e,t){var n=bn,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a?n.Buffer:void 0,c=u?u.allocUnsafe:void 0;function h(p,m){if(m)return p.slice();var y=p.length,_=c?c(y):new p.constructor(y);return p.copy(_),_}e.exports=h}(Ns,Ns.exports);var FO=Ns.exports,DO=bn,kO=DO.Uint8Array,NO=kO,ig=NO;function LO(e){var t=new e.constructor(e.byteLength);return new ig(t).set(new ig(e)),t}var BO=LO,zO=BO;function UO(e,t){var n=t?zO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jO=UO;function WO(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var VO=WO,GO=Wn,og=Object.create,HO=function(){function e(){}return function(t){if(!GO(t))return{};if(og)return og(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),YO=HO,qO=ph,KO=qO(Object.getPrototypeOf,Object),sg=KO,JO=YO,RO=sg,ZO=is;function XO(e){return typeof e.constructor=="function"&&!ZO(e)?JO(RO(e)):{}}var QO=XO,e2=ss,t2=ai;function n2(e){return t2(e)&&e2(e)}var ag=n2,r2=si,i2=sg,o2=ai,s2="[object Object]",a2=Function.prototype,l2=Object.prototype,lg=a2.toString,u2=l2.hasOwnProperty,c2=lg.call(Object);function f2(e){if(!o2(e)||r2(e)!=s2)return!1;var t=i2(e);if(t===null)return!0;var n=u2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lg.call(n)==c2}var d2=f2;function h2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ug=h2,p2=Tu,g2=$s,m2=Object.prototype,y2=m2.hasOwnProperty;function v2(e,t,n){var o=e[t];(!(y2.call(e,t)&&g2(o,n))||n===void 0&&!(t in e))&&p2(e,t,n)}var b2=v2,_2=b2,T2=Tu;function w2(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],h=o?o(n[c],e[c],c,n,e):void 0;h===void 0&&(h=e[c]),s?T2(n,c,h):_2(n,c,h)}return n}var S2=w2;function C2(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var E2=C2,x2=9007199254740991,A2=/^(?:0|[1-9]\d*)$/;function O2(e,t){var n=typeof e;return t=t??x2,!!t&&(n=="number"||n!="symbol"&&A2.test(e))&&e>-1&&e%1==0&&e<t}var cg=O2,I2=E2,P2=os,$2=to,M2=Ul,F2=cg,D2=jl,k2=Object.prototype,N2=k2.hasOwnProperty;function L2(e,t){var n=$2(e),o=!n&&P2(e),s=!n&&!o&&M2(e),a=!n&&!o&&!s&&D2(e),u=n||o||s||a,c=u?I2(e.length,String):[],h=c.length;for(var p in e)(t||N2.call(e,p))&&!(u&&(p=="length"||s&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||F2(p,h)))&&c.push(p);return c}var B2=L2;function z2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var U2=z2,j2=Wn,W2=is,V2=U2,G2=Object.prototype,H2=G2.hasOwnProperty;function Y2(e){if(!j2(e))return V2(e);var t=W2(e),n=[];for(var o in e)o=="constructor"&&(t||!H2.call(e,o))||n.push(o);return n}var q2=Y2,K2=B2,J2=q2,R2=ss;function Z2(e){return R2(e)?K2(e,!0):J2(e)}var fg=Z2,X2=S2,Q2=fg;function eI(e){return X2(e,Q2(e))}var tI=eI,dg=rg,nI=FO,rI=jO,iI=VO,oI=QO,hg=os,pg=to,sI=ag,aI=Ul,lI=Ml,uI=Wn,cI=d2,fI=jl,gg=ug,dI=tI;function hI(e,t,n,o,s,a,u){var c=gg(e,n),h=gg(t,n),p=u.get(h);if(p){dg(e,n,p);return}var m=a?a(c,h,n+"",e,t,u):void 0,y=m===void 0;if(y){var _=pg(h),C=!_&&aI(h),E=!_&&!C&&fI(h);m=h,_||C||E?pg(c)?m=c:sI(c)?m=iI(c):C?(y=!1,m=nI(h,!0)):E?(y=!1,m=rI(h,!0)):m=[]:cI(h)||hg(h)?(m=c,hg(c)?m=dI(c):(!uI(c)||lI(c))&&(m=oI(h))):y=!1}y&&(u.set(h,m),s(m,h,o,a,u),u.delete(h)),dg(e,n,m)}var pI=hI,gI=TO,mI=rg,yI=MO,vI=pI,bI=Wn,_I=fg,TI=ug;function mg(e,t,n,o,s){e!==t&&yI(t,function(a,u){if(s||(s=new gI),bI(a))vI(e,t,u,n,mg,o,s);else{var c=o?o(TI(e,u),a,u+"",e,t,s):void 0;c===void 0&&(c=a),mI(e,u,c)}},_I)}var wI=mg;function SI(e){return e}var yg=SI;function CI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var EI=CI,xI=EI,vg=Math.max;function AI(e,t,n){return t=vg(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=vg(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),xI(e,this,c)}}var OI=AI;function II(e){return function(){return e}}var PI=II,$I=PI,bg=tg,MI=yg,FI=bg?function(e,t){return bg(e,"toString",{configurable:!0,enumerable:!1,value:$I(t),writable:!0})}:MI,DI=FI,kI=800,NI=16,LI=Date.now;function BI(e){var t=0,n=0;return function(){var o=LI(),s=NI-(o-n);if(n=o,s>0){if(++t>=kI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zI=BI,UI=DI,jI=zI,WI=jI(UI),VI=WI,GI=yg,HI=OI,YI=VI;function qI(e,t){return YI(HI(e,t,GI),e+"")}var _g=qI,KI=$s,JI=ss,RI=cg,ZI=Wn;function XI(e,t,n){if(!ZI(n))return!1;var o=typeof t;return(o=="number"?JI(n)&&RI(t,n.length):o=="string"&&t in n)?KI(n[t],e):!1}var Tg=XI,QI=_g,eP=Tg;function tP(e){return QI(function(t,n){var o=-1,s=n.length,a=s>1?n[s-1]:void 0,u=s>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(s--,a):void 0,u&&eP(n[0],n[1],u)&&(a=s<3?void 0:a,s=1),t=Object(t);++o<s;){var c=n[o];c&&e(t,c,o,a)}return t})}var nP=tP,rP=wI,iP=nP,oP=iP(function(e,t,n){rP(e,t,n)}),sP=oP;const aP=ir(sP);var lP=Math.ceil,uP=Math.max;function cP(e,t,n,o){for(var s=-1,a=uP(lP((t-e)/(n||1)),0),u=Array(a);a--;)u[o?a:++s]=e,e+=n;return u}var fP=cP,dP=dh,hP=1/0,pP=17976931348623157e292;function gP(e){if(!e)return e===0?e:0;if(e=dP(e),e===hP||e===-1/0){var t=e<0?-1:1;return t*pP}return e===e?e:0}var mP=gP,yP=fP,vP=Tg,wu=mP;function bP(e){return function(t,n,o){return o&&typeof o!="number"&&vP(t,n,o)&&(n=o=void 0),t=wu(t),n===void 0?(n=t,t=0):n=wu(n),o=o===void 0?t<n?1:-1:wu(o),yP(t,n,o,e)}}var _P=bP,TP=_P,wP=TP(),SP=wP;const CP=ir(SP);function EP(e,t,n,o){var s=-1,a=e==null?0:e.length;for(o&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}var xP=EP;function AP(e){return function(t){return e==null?void 0:e[t]}}var OP=AP,IP=OP,PP={À:"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"},$P=IP(PP),MP=$P;function FP(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var DP=FP,wg=rs,kP=DP,NP=to,LP=uh,Sg=wg?wg.prototype:void 0,Cg=Sg?Sg.toString:void 0;function Eg(e){if(typeof e=="string")return e;if(NP(e))return kP(e,Eg)+"";if(LP(e))return Cg?Cg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var BP=Eg,zP=BP;function UP(e){return e==null?"":zP(e)}var Su=UP,jP=MP,WP=Su,VP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,GP="\\u0300-\\u036f",HP="\\ufe20-\\ufe2f",YP="\\u20d0-\\u20ff",qP=GP+HP+YP,KP="["+qP+"]",JP=RegExp(KP,"g");function RP(e){return e=WP(e),e&&e.replace(VP,jP).replace(JP,"")}var ZP=RP,XP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function QP(e){return e.match(XP)||[]}var e$=QP,t$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n$(e){return t$.test(e)}var r$=n$,xg="\\ud800-\\udfff",i$="\\u0300-\\u036f",o$="\\ufe20-\\ufe2f",s$="\\u20d0-\\u20ff",a$=i$+o$+s$,Ag="\\u2700-\\u27bf",Og="a-z\\xdf-\\xf6\\xf8-\\xff",l$="\\xac\\xb1\\xd7\\xf7",u$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c$="\\u2000-\\u206f",f$=" \\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",Ig="A-Z\\xc0-\\xd6\\xd8-\\xde",d$="\\ufe0e\\ufe0f",Pg=l$+u$+c$+f$,$g="['’]",Mg="["+Pg+"]",h$="["+a$+"]",Fg="\\d+",p$="["+Ag+"]",Dg="["+Og+"]",kg="[^"+xg+Pg+Fg+Ag+Og+Ig+"]",g$="\\ud83c[\\udffb-\\udfff]",m$="(?:"+h$+"|"+g$+")",y$="[^"+xg+"]",Ng="(?:\\ud83c[\\udde6-\\uddff]){2}",Lg="[\\ud800-\\udbff][\\udc00-\\udfff]",_i="["+Ig+"]",v$="\\u200d",Bg="(?:"+Dg+"|"+kg+")",b$="(?:"+_i+"|"+kg+")",zg="(?:"+$g+"(?:d|ll|m|re|s|t|ve))?",Ug="(?:"+$g+"(?:D|LL|M|RE|S|T|VE))?",jg=m$+"?",Wg="["+d$+"]?",_$="(?:"+v$+"(?:"+[y$,Ng,Lg].join("|")+")"+Wg+jg+")*",T$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",S$=Wg+jg+_$,C$="(?:"+[p$,Ng,Lg].join("|")+")"+S$,E$=RegExp([_i+"?"+Dg+"+"+zg+"(?="+[Mg,_i,"$"].join("|")+")",b$+"+"+Ug+"(?="+[Mg,_i+Bg,"$"].join("|")+")",_i+"?"+Bg+"+"+zg,_i+"+"+Ug,w$,T$,Fg,C$].join("|"),"g");function x$(e){return e.match(E$)||[]}var A$=x$,O$=e$,I$=r$,P$=Su,$$=A$;function M$(e,t,n){return e=P$(e),t=n?void 0:t,t===void 0?I$(e)?$$(e):O$(e):e.match(t)||[]}var F$=M$,D$=xP,k$=ZP,N$=F$,L$="['’]",B$=RegExp(L$,"g");function z$(e){return function(t){return D$(N$(k$(t).replace(B$,"")),e,"")}}var U$=z$;function j$(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++o<s;)a[o]=e[o+t];return a}var W$=j$,V$=W$;function G$(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:V$(e,t,n)}var H$=G$,Y$="\\ud800-\\udfff",q$="\\u0300-\\u036f",K$="\\ufe20-\\ufe2f",J$="\\u20d0-\\u20ff",R$=q$+K$+J$,Z$="\\ufe0e\\ufe0f",X$="\\u200d",Q$=RegExp("["+X$+Y$+R$+Z$+"]");function eM(e){return Q$.test(e)}var Vg=eM;function tM(e){return e.split("")}var nM=tM,Gg="\\ud800-\\udfff",rM="\\u0300-\\u036f",iM="\\ufe20-\\ufe2f",oM="\\u20d0-\\u20ff",sM=rM+iM+oM,aM="\\ufe0e\\ufe0f",lM="["+Gg+"]",Cu="["+sM+"]",Eu="\\ud83c[\\udffb-\\udfff]",uM="(?:"+Cu+"|"+Eu+")",Hg="[^"+Gg+"]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",cM="\\u200d",Kg=uM+"?",Jg="["+aM+"]?",fM="(?:"+cM+"(?:"+[Hg,Yg,qg].join("|")+")"+Jg+Kg+")*",dM=Jg+Kg+fM,hM="(?:"+[Hg+Cu+"?",Cu,Yg,qg,lM].join("|")+")",pM=RegExp(Eu+"(?="+Eu+")|"+hM+dM,"g");function gM(e){return e.match(pM)||[]}var mM=gM,yM=nM,vM=Vg,bM=mM;function _M(e){return vM(e)?bM(e):yM(e)}var TM=_M,wM=H$,SM=Vg,CM=TM,EM=Su;function xM(e){return function(t){t=EM(t);var n=SM(t)?CM(t):void 0,o=n?n[0]:t.charAt(0),s=n?wM(n,1).join(""):t.slice(1);return o[e]()+s}}var AM=xM,OM=AM,IM=OM("toUpperCase"),PM=IM,$M=U$,MM=PM,FM=$M(function(e,t,n){return e+(n?" ":"")+MM(t)}),DM=FM;const kM=ir(DM);function NM(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var LM=NM,Rg=rs,BM=os,zM=to,Zg=Rg?Rg.isConcatSpreadable:void 0;function UM(e){return zM(e)||BM(e)||!!(Zg&&e&&e[Zg])}var jM=UM,WM=LM,VM=jM;function Xg(e,t,n,o,s){var a=-1,u=e.length;for(n||(n=VM),s||(s=[]);++a<u;){var c=e[a];t>0&&n(c)?t>1?Xg(c,t-1,n,o,s):WM(s,c):o||(s[s.length]=c)}return s}var GM=Xg,HM="__lodash_hash_undefined__";function YM(e){return this.__data__.set(e,HM),this}var qM=YM;function KM(e){return this.__data__.has(e)}var JM=KM,RM=eg,ZM=qM,XM=JM;function Ls(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new RM;++t<n;)this.add(e[t])}Ls.prototype.add=Ls.prototype.push=ZM,Ls.prototype.has=XM;var QM=Ls;function eF(e,t,n,o){for(var s=e.length,a=n+(o?1:-1);o?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var tF=eF;function nF(e){return e!==e}var rF=nF;function iF(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var oF=iF,sF=tF,aF=rF,lF=oF;function uF(e,t,n){return t===t?lF(e,t,n):sF(e,aF,n)}var cF=uF,fF=cF;function dF(e,t){var n=e==null?0:e.length;return!!n&&fF(e,t,0)>-1}var hF=dF;function pF(e,t,n){for(var o=-1,s=e==null?0:e.length;++o<s;)if(n(t,e[o]))return!0;return!1}var gF=pF;function mF(e,t){return e.has(t)}var yF=mF;function vF(){}var bF=vF;function _F(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Qg=_F,xu=yh,TF=bF,wF=Qg,SF=1/0,CF=xu&&1/wF(new xu([,-0]))[1]==SF?function(e){return new xu(e)}:TF,EF=CF,xF=QM,AF=hF,OF=gF,IF=yF,PF=EF,$F=Qg,MF=200;function FF(e,t,n){var o=-1,s=AF,a=e.length,u=!0,c=[],h=c;if(n)u=!1,s=OF;else if(a>=MF){var p=t?null:PF(e);if(p)return $F(p);u=!1,s=IF,h=new xF}else h=t?[]:c;e:for(;++o<a;){var m=e[o],y=t?t(m):m;if(m=n||m!==0?m:0,u&&y===y){for(var _=h.length;_--;)if(h[_]===y)continue e;t&&h.push(y),c.push(m)}else s(h,y,n)||(h!==c&&h.push(y),c.push(m))}return c}var DF=FF,kF=GM,NF=_g,LF=DF,BF=ag,zF=NF(function(e){return LF(kF(e,1,BF,!0))}),UF=zF;const jF=ir(UF),Ti=({children:e,...t})=>d.jsx(v.Table.Td,{...t,children:e}),em=({errorMessages:e,id:t})=>d.jsx(v.Tooltip,{id:t,title:e,children:d.jsx(v.Indicator,{label:e.split(`
|
|
225
|
+
`).length,children:d.jsx(r1,{})})}),WF={paddingLeft:0,paddingRight:0},tm=x.memo(function({numColumns:t,errors:n,label:o,description:s,path:a,addItem:u,schema:c,enabled:h,translations:p,rootSchema:m}){const y={bg:"transparent",size:"sm",c:"gray"},_=v.useProps("ActionIcon",y,{});return d.jsxs(v.Table.Tr,{children:[d.jsx(Ti,{colSpan:t,children:d.jsxs(v.Stack,{children:[d.jsxs(v.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Text,{children:o})}),d.jsx(v.Grid.Col,{span:"content",children:n.length!==0?d.jsx(v.Grid.Col,{span:"content",children:d.jsx(em,{id:"tooltip-validation",errorMessages:n})}):null})]}),s&&d.jsx(v.Text,{size:"sm",children:s})]})}),h?d.jsx(Ti,{align:"right",style:WF,children:d.jsx(v.Tooltip,{id:"tooltip-add",title:p.addTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:_.bg,size:_.size,c:_.c,onClick:u(a,ue.createDefaultValue(c,m)),children:d.jsx(bl,{})})})}):null]})}),nm={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},rm=(e,t,n,o,s)=>{if(t.type==="object")return im(t).map(a=>{var h,p;const u=ue.Paths.compose(n,a),c={propName:a,schema:t,title:((p=(h=t.properties)==null?void 0:h[a])==null?void 0:p.title)??kM(a),rowPath:n,cellPath:u,enabled:o,cells:s};return d.jsx(e,{...c},u)});{const a={schema:t,rowPath:n,cellPath:n,enabled:o};return d.jsx(e,{...a},n)}},im=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],VF=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(Ti,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),GF=x.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),HF=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),o=ue.formatErrorMessage(jF(ue.errorsAt(n,t.schema,s=>s===n)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:o,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},om=e=>({type:"Control",scope:e,label:!1}),YF=x.memo(function({path:t,propName:n,schema:o,rootSchema:s,errors:a,enabled:u,renderers:c,cells:h,isValid:p}){return d.jsxs(Ti,{children:[o.properties?d.jsx(De.DispatchCell,{schema:ue.Resolve.schema(o,`#/properties/${ue.encode(n)}`,s),uischema:om(`#/properties/${ue.encode(n)}`),path:t,enabled:u,renderers:c,cells:h}):d.jsx(De.DispatchCell,{schema:o,uischema:om("#"),path:t,enabled:u,renderers:c,cells:h}),d.jsx(v.Text,{size:"xs",children:p?"":a})]})}),qF=e=>{const t=De.useJsonForms(),n=HF(t,e),o=Ih(n.errors);return d.jsx(YF,{...n,isValid:o})},KF=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:u,enableDown:c,showSortButtons:h,enabled:p,cells:m,path:y,translations:_})=>{const C={bg:"transparent",size:"sm",c:"gray"},E=v.useProps("ActionIcon",C,{}),w=x.useMemo(()=>s(y,n),[s,y,n]),$=x.useMemo(()=>a(y,n),[a,y,n]);return d.jsxs(v.Table.Tr,{children:[rm(qF,t,e,p,m),p?d.jsx(Ti,{style:h?nm.fixedCell:nm.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[h?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:_.up,position:"bottom",opened:u?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.upAriaLabel,onClick:w,disabled:!u,children:d.jsx(Px,{})})})}),d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-down",title:_.down,position:"bottom",opened:c?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.downAriaLabel,onClick:$,disabled:!c,children:d.jsx(Ix,{})})})})]}):null,d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-remove",title:_.removeTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.removeAriaLabel,onClick:()=>o(e,n),children:d.jsx($x,{})})})})]})}):null]},e)},sm=x.memo(KF),JF=({data:e,path:t,schema:n,openDeleteDialog:o,moveUp:s,moveDown:a,uischema:u,config:c,enabled:h,cells:p,translations:m})=>{if(e===0)return d.jsx(VF,{numColumns:im(n).length+1,translations:m});const _=aP({},c,u.options);return d.jsx(x.Fragment,{children:CP(e).map(C=>{const E=ue.Paths.compose(t,`${C}`);return d.jsx(sm,{childPath:E,rowIndex:C,schema:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:C!==0,enableDown:C!==e-1,showSortButtons:_.showSortButtons||_.showArrayTableSortButtons,enabled:h,cells:p,path:t,translations:m},E)})})};class am extends x.Component{constructor(){super(...arguments);rb(this,"addItem",(n,o)=>this.props.addItem(n,o))}render(){const{label:n,description:o,path:s,schema:a,rootSchema:u,uischema:c,errors:h,openDeleteDialog:p,visible:m,enabled:y,cells:_,translations:C}=this.props,E=c,w=a.type==="object",$=w?rm(GF,a,s,y,_):void 0;return m?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(tm,{errors:h,label:n,description:o,addItem:this.addItem,numColumns:w?$.length:1,path:s,uischema:E,schema:a,rootSchema:u,enabled:y,translations:C}),w&&d.jsxs(v.Table.Tr,{children:[$,y?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(JF,{openDeleteDialog:p,translations:C,...this.props})})]}):null}}const RF=e=>{const[t,n]=x.useState(!1),[o,s]=x.useState(void 0),[a,u]=x.useState(void 0),{removeItems:c,visible:h}=e,p=x.useCallback((C,E)=>{n(!0),s(C),u(E)},[n,s,u]),m=x.useCallback(()=>n(!1),[n]),y=x.useCallback(()=>{const C=o.substring(0,o.lastIndexOf("."));c(C,[a])(),n(!1)},[n,o,a]),_=x.useCallback(()=>n(!1),[n]);return h?d.jsxs(d.Fragment,{children:[d.jsx(am,{...e,openDeleteDialog:p}),d.jsx(ep,{open:t,onCancel:m,onConfirm:y,onClose:_,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},lm=ue.rankWith(1,ue.or(ue.isObjectArrayControl,ue.isPrimitiveArrayControl)),um=De.withJsonFormsArrayLayoutProps(RF),ZF=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),XF=e=>e.type==="string"&&e.enum!==void 0;function cm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"array")&&!Array.isArray(n.items)&&n.uniqueItems===!0&&(ZF(n.items)||XF(n.items)))}function fm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"object")&&!n.properties)}const dm=ue.rankWith(1,cm),hm=De.withJsonFormsMultiEnumProps(e=>d.jsx(kh,{...e})),pm=ue.rankWith(1,ue.isObjectControl),gm=De.withJsonFormsDetailProps(e=>d.jsx(Lh,{...e})),mm=ue.rankWith(1,ue.isBooleanControl),ym=De.withJsonFormsControlProps(e=>d.jsx(Vl,{...e})),vm=ue.rankWith(1,ue.isDateControl),bm=De.withJsonFormsControlProps(e=>d.jsx(Gl,{...e})),_m=ue.rankWith(1,ue.isDateTimeControl),Tm=De.withJsonFormsControlProps(e=>d.jsx(Hl,{...e})),wm=ue.rankWith(2,ue.isEnumControl),Sm=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),Cm=ue.rankWith(1,ue.isIntegerControl),Em=De.withJsonFormsControlProps(e=>d.jsx(no,{...e})),xm=ue.rankWith(2,fm),Am=De.withJsonFormsControlProps(e=>d.jsx(Nh,{...e})),Om=ue.rankWith(1,ue.isNumberControl),Im=De.withJsonFormsControlProps(e=>d.jsx(no,{...e})),Pm=ue.rankWith(2,ue.isOneOfControl),$m=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(ql,{...e})),!1),Mm=ue.rankWith(1,ue.isStringControl),Fm=De.withJsonFormsControlProps(e=>d.jsx(Kl,{...e})),QF=e=>{const{text:t,visible:n}=e;return n?d.jsx(v.Title,{fw:"bold",size:"xl",children:t}):null},Dm=ue.rankWith(1,ue.isLabelable),km=De.withJsonFormsLabelProps(QF),eD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a,label:u})=>{const h={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(v.Fieldset,{legend:u,children:d.jsx(us,{...h,renderers:s,cells:a})})},Nm=ue.rankWith(1,ue.uiTypeIs("Group")),Lm=De.withJsonFormsLayoutProps(eD),tD=({uischema:e,renderers:t,cells:n,schema:o,path:s,enabled:a})=>{const c={elements:e.elements,schema:o,path:s,enabled:a,direction:"row"};return d.jsx(us,{...c,renderers:t,cells:n})},Bm=ue.rankWith(1,ue.uiTypeIs("HorizontalLayout")),zm=De.withJsonFormsLayoutProps(tD),nD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a})=>{const c={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(us,{...c,renderers:s,cells:a})},Um=ue.rankWith(1,ue.uiTypeIs("VerticalLayout")),jm=De.withJsonFormsLayoutProps(nD),Wm=[{tester:Xh,cell:Qh},{tester:Kh,cell:Jh},{tester:Yh,cell:qh},{tester:Bh,cell:zh},{tester:Uh,cell:jh},{tester:Wh,cell:Vh},{tester:Gh,cell:Hh},{tester:Rh,cell:Zh}],Vm=[{tester:vm,renderer:bm},{tester:_m,renderer:Tm},{tester:Om,renderer:Im},{tester:Cm,renderer:Em},{tester:Mm,renderer:Fm},{tester:mm,renderer:ym},{tester:wm,renderer:Sm},{tester:Pm,renderer:$m},{tester:xm,renderer:Am},{tester:lm,renderer:um},{tester:dm,renderer:hm},{tester:pm,renderer:gm},{tester:Bm,renderer:zm},{tester:Um,renderer:jm},{tester:Nm,renderer:Lm},{tester:Dm,renderer:km}];function Au({schema:e,uischema:t,state:n,setState:o,view:s,setView:a,jsonForms:u,onSubmit:c,buttonText:h,loading:p,...m}){const y=x.useMemo(()=>v.createTheme({components:{...Object.entries(u||{}).reduce((_,[C,E])=>(_[C]||(_[C]={defaultProps:{}}),_[C].defaultProps=E,_),{})}}),[u]);return d.jsx(v.Modal,{size:"lg",centered:!0,fullScreen:s===mt.FULL_SCREEN,radius:s!==mt.NORMAL?0:void 0,transitionProps:s!==mt.NORMAL?{transition:"fade",duration:200}:void 0,...m,title:d.jsxs(d.Fragment,{children:[m.title,d.jsx(v.Group,{children:d.jsxs(v.Group,{gap:"xs",pr:"xs",children:[d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.OVERLAY?mt.OVERLAY:mt.NORMAL),title:s!==mt.OVERLAY?"Overlay":"Exit overlay",icon:d.jsx(Pl,{icon:s!==mt.OVERLAY?"tabler:stack-forward":"tabler:stack",fontSize:"1.25rem"})}),d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.FULL_SCREEN?mt.FULL_SCREEN:mt.NORMAL),title:s!==mt.FULL_SCREEN?"Full screen":"Exit full screen",icon:d.jsx(Pl,{icon:s!==mt.FULL_SCREEN?"tabler:maximize":"tabler:minimize",fontSize:"1.25rem"})})]})})]}),classNames:{content:"mrt-table-container"},styles:Bn(m.styles,{title:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}}),children:d.jsxs(v.Box,{component:"form",pos:"relative",onSubmit:c,children:[d.jsx(v.LoadingOverlay,{visible:p}),d.jsx(v.MantineThemeProvider,{inherit:!0,theme:y,children:d.jsx(De.JsonForms,{schema:e,uischema:t??void 0,renderers:Vm,cells:Wm,data:n.data,onChange:o})}),d.jsx(v.Group,{justify:"end",mt:"xl",children:d.jsx(v.Button,{type:"submit",children:h})})]})})}const Ou={styles:{content:{height:450}}},Iu={withinPortal:!1,h:"100%",w:"100%",pos:"absolute",styles:{overlay:{display:"none"},inner:{position:"relative",height:"100%",width:"100%",padding:0},content:{position:"absolute",height:"100%",width:"100%"}}};function Gm(e,t){const n={};return Object.entries(t.properties||{}).forEach(([o,s])=>{var c,h;const a=s.items?s.items:s,u=a.oneOf?a.oneOf.map(p=>({value:p.const,label:p.title})):a.enum;if(u){const p=u.map(m=>m.value);if(lr(s.type,"array")){const m=((c=e[o])==null?void 0:c.map(y=>y.id_||y))||[];n[o]=p.filter(y=>m.includes(y))}else n[o]=p.find(m=>{var y;return m===(((y=e[o])==null?void 0:y.id_)||e[o])})}else n[o]=(((h=e[o])==null?void 0:h.id_)||e[o])??void 0}),n}function Pu({jsonForms:e,...t}){const{info:n,updateEntry:o}=Ae(),{opened:s,setOpened:a,item:u,itemLoading:c,state:h,setState:p,reset:m,view:y,setView:_}=zn("edit"),{jsonForms:C}=v.useProps("EditDialog",{},{}),E=x.useMemo(()=>Bn({__:{setNull:!0}},C,e),[C,e]),w=x.useCallback(async N=>{N==null||N.preventDefault(),await o(u==null?void 0:u.id,h.data),a(!1)},[o,u==null?void 0:u.id,h.data,a]),$=x.useMemo(()=>({...jo,data:Gm((u==null?void 0:u.result)||{},n.edit_schema)}),[n.edit_schema,u==null?void 0:u.result]);return x.useEffect(()=>{p({data:$.data})},[$,p]),d.jsx(Au,{schema:n.edit_schema,uischema:n.edit_uischema,state:h,setState:p,view:y,setView:_,jsonForms:E,onSubmit:w,buttonText:"Edit",loading:c,opened:s,onClose:()=>a(!1),onExitTransitionEnd:m,...y===mt.OVERLAY?Iu:{},...y===mt.NORMAL?Ou:{},...t,title:t.title??(n==null?void 0:n.edit_title)})}function $u(){const{error:e,resetError:t}=Ae();return d.jsx(v.Modal,{opened:e,onClose:t,title:d.jsxs(v.Group,{children:[d.jsx(e1,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.message}):null})}/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:Hm,setPrototypeOf:Ym,isFrozen:rD,getPrototypeOf:iD,getOwnPropertyDescriptor:oD}=Object;let{freeze:Dt,seal:sn,create:qm}=Object,{apply:Mu,construct:Fu}=typeof Reflect<"u"&&Reflect;Dt||(Dt=function(t){return t}),sn||(sn=function(t){return t}),Mu||(Mu=function(t,n,o){return t.apply(n,o)}),Fu||(Fu=function(t,n){return new t(...n)});const Bs=Nt(Array.prototype.forEach),sD=Nt(Array.prototype.lastIndexOf),Km=Nt(Array.prototype.pop),fo=Nt(Array.prototype.push),aD=Nt(Array.prototype.splice),zs=Nt(String.prototype.toLowerCase),Du=Nt(String.prototype.toString),Jm=Nt(String.prototype.match),ho=Nt(String.prototype.replace),lD=Nt(String.prototype.indexOf),uD=Nt(String.prototype.trim),Tn=Nt(Object.prototype.hasOwnProperty),kt=Nt(RegExp.prototype.test),po=cD(TypeError);function Nt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return Mu(e,t,o)}}function cD(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Fu(e,n)}}function Oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zs;Ym&&Ym(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(rD(t)||(t[o]=a),s=a)}e[s]=!0}return e}function fD(e){for(let t=0;t<e.length;t++)Tn(e,t)||(e[t]=null);return e}function Br(e){const t=qm(null);for(const[n,o]of Hm(e))Tn(e,n)&&(Array.isArray(o)?t[n]=fD(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=Br(o):t[n]=o);return t}function go(e,t){for(;e!==null;){const o=oD(e,t);if(o){if(o.get)return Nt(o.get);if(typeof o.value=="function")return Nt(o.value)}e=iD(e)}function n(){return null}return n}const Rm=Dt(["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"]),ku=Dt(["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"]),Nu=Dt(["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"]),dD=Dt(["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"]),Lu=Dt(["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"]),hD=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zm=Dt(["#text"]),Xm=Dt(["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"]),Bu=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Qm=Dt(["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"]),Us=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pD=sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gD=sn(/<%[\w\W]*|[\w\W]*%>/gm),mD=sn(/\$\{[\w\W]*/gm),yD=sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),vD=sn(/^aria-[\-\w]+$/),e0=sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bD=sn(/^(?:\w+script|data):/i),_D=sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t0=sn(/^html$/i),TD=sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var n0=Object.freeze({__proto__:null,ARIA_ATTR:vD,ATTR_WHITESPACE:_D,CUSTOM_ELEMENT:TD,DATA_ATTR:yD,DOCTYPE_NAME:t0,ERB_EXPR:gD,IS_ALLOWED_URI:e0,IS_SCRIPT_OR_DATA:bD,MUSTACHE_EXPR:pD,TMPLIT_EXPR:mD});const mo={element:1,text:3,progressingInstruction:7,comment:8,document:9},wD=function(){return typeof window>"u"?null:window},SD=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},r0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function i0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wD();const t=de=>i0(de);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==mo.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:c,Element:h,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:y,DOMParser:_,trustedTypes:C}=e,E=h.prototype,w=go(E,"cloneNode"),$=go(E,"remove"),N=go(E,"nextSibling"),Q=go(E,"childNodes"),H=go(E,"parentNode");if(typeof u=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let B,D="";const{implementation:k,createNodeIterator:G,createDocumentFragment:ae,getElementsByTagName:ie}=n,{importNode:S}=o;let U=r0();t.isSupported=typeof Hm=="function"&&typeof H=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:fe,TMPLIT_EXPR:ye,DATA_ATTR:Me,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:lt}=n0;let{IS_ALLOWED_URI:q}=n0,K=null;const Z=Oe({},[...Rm,...ku,...Nu,...Lu,...Zm]);let R=null;const Y=Oe({},[...Xm,...Bu,...Qm,...Us]);let ee=Object.seal(qm(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}})),oe=null,ve=null,be=!0,pe=!0,Ce=!1,tt=!0,te=!1,yt=!0,Je=!1,Lt=!1,dr=!1,vt=!1,ke=!1,Yn=!1,hr=!0,Wt=!1;const Ur="user-content-";let pr=!0,jr=!1,an={},gr=null;const mr=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 qn=null;const Ci=Oe({},["audio","video","img","source","image","track"]);let Wr=null;const Ei=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",Rt="http://www.w3.org/1999/xhtml";let Fn=Rt,Vr=!1,Gr=null;const oc=Oe({},[yr,vr,Rt],Du);let xi=Oe({},["mi","mo","mn","ms","mtext"]),Ai=Oe({},["annotation-xml"]);const Ws=Oe({},["title","style","font","a","script"]);let br=null;const sc=["application/xhtml+xml","text/html"],ac="text/html";let gt=null,_r=null;const Vs=n.createElement("form"),Gs=function(P){return P instanceof RegExp||P instanceof Function},_o=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_r&&_r===P)){if((!P||typeof P!="object")&&(P={}),P=Br(P),br=sc.indexOf(P.PARSER_MEDIA_TYPE)===-1?ac:P.PARSER_MEDIA_TYPE,gt=br==="application/xhtml+xml"?Du:zs,K=Tn(P,"ALLOWED_TAGS")?Oe({},P.ALLOWED_TAGS,gt):Z,R=Tn(P,"ALLOWED_ATTR")?Oe({},P.ALLOWED_ATTR,gt):Y,Gr=Tn(P,"ALLOWED_NAMESPACES")?Oe({},P.ALLOWED_NAMESPACES,Du):oc,Wr=Tn(P,"ADD_URI_SAFE_ATTR")?Oe(Br(Ei),P.ADD_URI_SAFE_ATTR,gt):Ei,qn=Tn(P,"ADD_DATA_URI_TAGS")?Oe(Br(Ci),P.ADD_DATA_URI_TAGS,gt):Ci,gr=Tn(P,"FORBID_CONTENTS")?Oe({},P.FORBID_CONTENTS,gt):mr,oe=Tn(P,"FORBID_TAGS")?Oe({},P.FORBID_TAGS,gt):{},ve=Tn(P,"FORBID_ATTR")?Oe({},P.FORBID_ATTR,gt):{},an=Tn(P,"USE_PROFILES")?P.USE_PROFILES:!1,be=P.ALLOW_ARIA_ATTR!==!1,pe=P.ALLOW_DATA_ATTR!==!1,Ce=P.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=P.SAFE_FOR_TEMPLATES||!1,yt=P.SAFE_FOR_XML!==!1,Je=P.WHOLE_DOCUMENT||!1,vt=P.RETURN_DOM||!1,ke=P.RETURN_DOM_FRAGMENT||!1,Yn=P.RETURN_TRUSTED_TYPE||!1,dr=P.FORCE_BODY||!1,hr=P.SANITIZE_DOM!==!1,Wt=P.SANITIZE_NAMED_PROPS||!1,pr=P.KEEP_CONTENT!==!1,jr=P.IN_PLACE||!1,q=P.ALLOWED_URI_REGEXP||e0,Fn=P.NAMESPACE||Rt,xi=P.MATHML_TEXT_INTEGRATION_POINTS||xi,Ai=P.HTML_INTEGRATION_POINTS||Ai,ee=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Gs(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Gs(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),te&&(pe=!1),ke&&(vt=!0),an&&(K=Oe({},Zm),R=[],an.html===!0&&(Oe(K,Rm),Oe(R,Xm)),an.svg===!0&&(Oe(K,ku),Oe(R,Bu),Oe(R,Us)),an.svgFilters===!0&&(Oe(K,Nu),Oe(R,Bu),Oe(R,Us)),an.mathMl===!0&&(Oe(K,Lu),Oe(R,Qm),Oe(R,Us))),P.ADD_TAGS&&(K===Z&&(K=Br(K)),Oe(K,P.ADD_TAGS,gt)),P.ADD_ATTR&&(R===Y&&(R=Br(R)),Oe(R,P.ADD_ATTR,gt)),P.ADD_URI_SAFE_ATTR&&Oe(Wr,P.ADD_URI_SAFE_ATTR,gt),P.FORBID_CONTENTS&&(gr===mr&&(gr=Br(gr)),Oe(gr,P.FORBID_CONTENTS,gt)),pr&&(K["#text"]=!0),Je&&Oe(K,["html","head","body"]),K.table&&(Oe(K,["tbody"]),delete oe.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw po('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw po('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=P.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=SD(C,s)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Dt&&Dt(P),_r=P}},Hs=Oe({},[...ku,...Nu,...dD]),Oi=Oe({},[...Lu,...hD]),lc=function(P){let X=H(P);(!X||!X.tagName)&&(X={namespaceURI:Fn,tagName:"template"});const le=zs(P.tagName),We=zs(X.tagName);return Gr[P.namespaceURI]?P.namespaceURI===vr?X.namespaceURI===Rt?le==="svg":X.namespaceURI===yr?le==="svg"&&(We==="annotation-xml"||xi[We]):!!Hs[le]:P.namespaceURI===yr?X.namespaceURI===Rt?le==="math":X.namespaceURI===vr?le==="math"&&Ai[We]:!!Oi[le]:P.namespaceURI===Rt?X.namespaceURI===vr&&!Ai[We]||X.namespaceURI===yr&&!xi[We]?!1:!Oi[le]&&(Ws[le]||!Hs[le]):!!(br==="application/xhtml+xml"&&Gr[P.namespaceURI]):!1},Vt=function(P){fo(t.removed,{element:P});try{H(P).removeChild(P)}catch{$(P)}},Ii=function(P,X){try{fo(t.removed,{attribute:X.getAttributeNode(P),from:X})}catch{fo(t.removed,{attribute:null,from:X})}if(X.removeAttribute(P),P==="is")if(vt||ke)try{Vt(X)}catch{}else try{X.setAttribute(P,"")}catch{}},Ys=function(P){let X=null,le=null;if(dr)P="<remove></remove>"+P;else{const ut=Jm(P,/^[\r\n\t ]+/);le=ut&&ut[0]}br==="application/xhtml+xml"&&Fn===Rt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const We=B?B.createHTML(P):P;if(Fn===Rt)try{X=new _().parseFromString(We,br)}catch{}if(!X||!X.documentElement){X=k.createDocument(Fn,"template",null);try{X.documentElement.innerHTML=Vr?D:We}catch{}}const St=X.body||X.documentElement;return P&&le&&St.insertBefore(n.createTextNode(le),St.childNodes[0]||null),Fn===Rt?ie.call(X,Je?"html":"body")[0]:Je?X.documentElement:St},qs=function(P){return G.call(P.ownerDocument||P,P,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},To=function(P){return P instanceof y&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof m)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Ks=function(P){return typeof c=="function"&&P instanceof c};function wn(de,P,X){Bs(de,le=>{le.call(t,P,X,_r)})}const Js=function(P){let X=null;if(wn(U.beforeSanitizeElements,P,null),To(P))return Vt(P),!0;const le=gt(P.nodeName);if(wn(U.uponSanitizeElement,P,{tagName:le,allowedTags:K}),P.hasChildNodes()&&!Ks(P.firstElementChild)&&kt(/<[/\w!]/g,P.innerHTML)&&kt(/<[/\w!]/g,P.textContent)||P.nodeType===mo.progressingInstruction||yt&&P.nodeType===mo.comment&&kt(/<[/\w]/g,P.data))return Vt(P),!0;if(!K[le]||oe[le]){if(!oe[le]&&wo(le)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le)))return!1;if(pr&&!gr[le]){const We=H(P)||P.parentNode,St=Q(P)||P.childNodes;if(St&&We){const ut=St.length;for(let Pt=ut-1;Pt>=0;--Pt){const ln=w(St[Pt],!0);ln.__removalCount=(P.__removalCount||0)+1,We.insertBefore(ln,N(P))}}}return Vt(P),!0}return P instanceof h&&!lc(P)||(le==="noscript"||le==="noembed"||le==="noframes")&&kt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Vt(P),!0):(te&&P.nodeType===mo.text&&(X=P.textContent,Bs([ne,fe,ye],We=>{X=ho(X,We," ")}),P.textContent!==X&&(fo(t.removed,{element:P.cloneNode()}),P.textContent=X)),wn(U.afterSanitizeElements,P,null),!1)},Rs=function(P,X,le){if(hr&&(X==="id"||X==="name")&&(le in n||le in Vs))return!1;if(!(pe&&!ve[X]&&kt(Me,X))){if(!(be&&kt(we,X))){if(!R[X]||ve[X]){if(!(wo(P)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,P)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(P))&&(ee.attributeNameCheck instanceof RegExp&&kt(ee.attributeNameCheck,X)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(X))||X==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le))))return!1}else if(!Wr[X]){if(!kt(q,ho(le,Ie,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&P!=="script"&&lD(le,"data:")===0&&qn[P])){if(!(Ce&&!kt(Le,ho(le,Ie,"")))){if(le)return!1}}}}}}return!0},wo=function(P){return P!=="annotation-xml"&&Jm(P,lt)},Zs=function(P){wn(U.beforeSanitizeAttributes,P,null);const{attributes:X}=P;if(!X||To(P))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let We=X.length;for(;We--;){const St=X[We],{name:ut,namespaceURI:Pt,value:ln}=St,Hr=gt(ut);let Ct=ut==="value"?ln:uD(ln);if(le.attrName=Hr,le.attrValue=Ct,le.keepAttr=!0,le.forceKeepAttr=void 0,wn(U.uponSanitizeAttribute,P,le),Ct=le.attrValue,Wt&&(Hr==="id"||Hr==="name")&&(Ii(ut,P),Ct=Ur+Ct),yt&&kt(/((--!?|])>)|<\/(style|title)/i,Ct)){Ii(ut,P);continue}if(le.forceKeepAttr||(Ii(ut,P),!le.keepAttr))continue;if(!tt&&kt(/\/>/i,Ct)){Ii(ut,P);continue}te&&Bs([ne,fe,ye],Co=>{Ct=ho(Ct,Co," ")});const So=gt(P.nodeName);if(Rs(So,Hr,Ct)){if(B&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!Pt)switch(C.getAttributeType(So,Hr)){case"TrustedHTML":{Ct=B.createHTML(Ct);break}case"TrustedScriptURL":{Ct=B.createScriptURL(Ct);break}}try{Pt?P.setAttributeNS(Pt,ut,Ct):P.setAttribute(ut,Ct),To(P)?Vt(P):Km(t.removed)}catch{}}}wn(U.afterSanitizeAttributes,P,null)},uc=function de(P){let X=null;const le=qs(P);for(wn(U.beforeSanitizeShadowDOM,P,null);X=le.nextNode();)wn(U.uponSanitizeShadowNode,X,null),Js(X),Zs(X),X.content instanceof a&&de(X.content);wn(U.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(de){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,We=null,St=null;if(Vr=!de,Vr&&(de="<!-->"),typeof de!="string"&&!Ks(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw po("dirty is not a string, aborting")}else throw po("toString is not a function");if(!t.isSupported)return de;if(Lt||_o(P),t.removed=[],typeof de=="string"&&(jr=!1),jr){if(de.nodeName){const ln=gt(de.nodeName);if(!K[ln]||oe[ln])throw po("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof c)X=Ys("<!---->"),le=X.ownerDocument.importNode(de,!0),le.nodeType===mo.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le);else{if(!vt&&!te&&!Je&&de.indexOf("<")===-1)return B&&Yn?B.createHTML(de):de;if(X=Ys(de),!X)return vt?null:Yn?D:""}X&&dr&&Vt(X.firstChild);const ut=qs(jr?de:X);for(;We=ut.nextNode();)Js(We),Zs(We),We.content instanceof a&&uc(We.content);if(jr)return de;if(vt){if(ke)for(St=ae.call(X.ownerDocument);X.firstChild;)St.appendChild(X.firstChild);else St=X;return(R.shadowroot||R.shadowrootmode)&&(St=S.call(o,St,!0)),St}let Pt=Je?X.outerHTML:X.innerHTML;return Je&&K["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&kt(t0,X.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
226
|
+
`+Pt),te&&Bs([ne,fe,ye],ln=>{Pt=ho(Pt,ln," ")}),B&&Yn?B.createHTML(Pt):Pt},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_o(de),Lt=!0},t.clearConfig=function(){_r=null,Lt=!1},t.isValidAttribute=function(de,P,X){_r||_o({});const le=gt(de),We=gt(P);return Rs(le,We,X)},t.addHook=function(de,P){typeof P=="function"&&fo(U[de],P)},t.removeHook=function(de,P){if(P!==void 0){const X=sD(U[de],P);return X===-1?void 0:aD(U[de],X,1)[0]}return Km(U[de])},t.removeHooks=function(de){U[de]=[]},t.removeAllHooks=function(){U=r0()},t}var o0=i0();const Mn=x.forwardRef(({fallback:e,functionProps:t,children:n},o)=>{if(n=ft(n,t),n===null)return null;const s=n||e;return x.isValidElement(s)?x.cloneElement(s,{ref:o}):s});Mn.displayName="FallbackWrapper";const CD={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},yo=x.memo(({id:e,entry:t,loading:n,rightBorder:o,children:s,onClickEntry:a,customElement:u,sanitize:c,...h})=>{const p={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:m}=v.useProps("Field",p,h),y={};Object.entries(m).forEach(([C,E])=>{typeof E=="function"&&(y[C]=E(t))});const _=v.useStyles({name:"Field",props:h,classes:CD});return d.jsx(v.Table.Td,{..._("field"),onClick:a?()=>a(e,t):null,...h,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:n,children:d.jsx(Mn,{fallback:Array.isArray(s)?s.map((C,E)=>d.jsx(v.Text,{...m,...y,children:c?o0.sanitize(C):C},E)):x.isValidElement(s)?s:d.jsx(v.Text,{...m,...y,children:c?o0.sanitize(s):s}),functionProps:t,children:u})})})})});yo.displayName="Field";const s0={row:"_row_138r2_1",selected:"_selected_138r2_5"};function a0({entry:e,selected:t,children:n}){const o=v.useStyles({name:"Row",classes:s0}),s=v.useProps("Row",{},{});Object.entries(s).forEach(([c,h])=>{typeof h=="function"&&(s[c]=h(e))});var{className:a,style:u}=o("row");return a=`${a} ${t?s0.selected:""}`,d.jsx(v.Table.Tr,{className:a,style:{...u},...s,children:n})}function ED({bodyCustomizer:e,actionColumn:t,id:n,entry:o}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:n,...o})),s===null?null:s||d.jsx(Ku,{id:n})}function l0({data:e,loading:t,hideActions:n,hideCheckbox:o,selection:s,toggleRow:a,onClickEntry:u,bodyCustomizer:c,bodySeparator:h}){const p=e.list_columns.includes("actions")?"_actions":"actions",m=x.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return d.jsx(v.Table.Tbody,{children:e.result.length?e.result.map((y,_)=>{const C=e.ids[_];return d.jsxs(a0,{entry:{...y,id:C},children:[o?null:d.jsx(yo,{loading:t,children:d.jsx(v.Checkbox,{pl:2,checked:s.includes(C),onChange:()=>{a(C)}})},_),n?null:d.jsx(yo,{loading:t,children:d.jsx(ED,{bodyCustomizer:c,actionColumn:p,id:xt(C),entry:y})}),e.list_columns.map((E,w)=>{let $=c==null?void 0:c[E];typeof $=="function"&&($=$({id:C,...y}));let N=Yi(y,E);typeof N=="number"?N=N.toLocaleString():N==null&&(N="");const Q=(h==null?void 0:h[E])||(h==null?void 0:h[m]);return Q&&(N=N.split(Q)),$===null?null:d.jsx(yo,{id:C,entry:y,loading:t,onClickEntry:u,customElement:$,sanitize:!0,children:N},w)})]},xt(C))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:n?e.list_columns.length:e.list_columns.length+1,children:d.jsx(v.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const u0={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function js({column:e,label:t,orderColumn:n,related:o,toggleAll:s,allChecked:a,classNames:u,styles:c,customElement:h,...p}){const{queryParams:m,setQueryParams:y,loading:_}=Ae(),C={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},E=v.useStyles({name:"FieldTitle",classes:u0,classNames:u,styles:c,props:p}),w=v.useProps("FieldTitle",C,p),{hovered:$,ref:N}=Ze.useHover(),Q=n&&m.order_column===n,H=E("wrapper");return H.style.cursor=n?H.style.cursor:"auto",d.jsx(v.Table.Th,{className:u0.fieldTitleRoot,...E("root"),onClick:n&&!_?()=>y({order_column:n,order_direction:m.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:N,...H,children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:s,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:w.fw,size:"xl",c:$&&n?w.hoverColor:Q?w.selectedColor:w.color,children:h||t||e}),o?d.jsx(v.Tooltip,{label:"Related Field",children:d.jsx(v.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(v.Box,{...E("icon"),children:Q?m.order_direction==="asc"?d.jsx(vl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...E("icon"),children:Q?m.order_direction==="asc"?d.jsx(vl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})]})})})}const zu=x.memo(({data:e,info:t,settings:n,hideActions:o,hideCheckbox:s,allChecked:a,toggleAll:u,headerCustomizer:c})=>{const h=e.list_columns.includes("actions")?"_actions":"actions";let p=c==null?void 0:c[h];return typeof p=="function"&&(p=p()),d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[s?null:d.jsx(js,{data:e,column:"Checkbox",allChecked:a,toggleAll:u}),o?null:d.jsx(js,{column:"Actions",customElement:p}),e.list_columns.map((m,y)=>{var C;let _=c==null?void 0:c[m];return typeof _=="function"&&(_=_(e.label_columns[m])),_===null?null:d.jsx(js,{column:m,label:e.label_columns[m],orderColumn:e.order_columns.find(E=>E===m)||e.order_columns.find(E=>E.startsWith(`${m}.`)),related:((C=t.filters[m])==null?void 0:C.schema.type)==="Nested",customElement:_},m)})]})})});zu.displayName="Header";const xD={scrollbar:"_scrollbar_isyo2_1"};function c0({bulkActions:e,hideActions:t,loading:n,onSelectCheckbox:o,onClickEntry:s,hideCheckbox:a,hideDownload:u,headerCustomizer:c,bodyCustomizer:h,bodySeparator:p,...m}){const y=v.useMantineTheme(),_=v.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),C=v.useProps("DatagridTable",_,m),{data:E,info:w}=Ae(),[$,N]=x.useState([]),[Q,H]=x.useState(!1),B=k=>{N(G=>G.includes(k)?G.filter(ae=>ae!==k):[...G,k])},D=()=>{N(k=>k.length===E.ids.length?[]:E.ids.map((G,ae)=>G))};return x.useEffect(()=>{H($.length===E.result.length&&$.length>0),o&&o($),e==null||e.setSelectedIds($.map(k=>k))},[$]),x.useEffect(()=>{N([]),o&&o([])},[E]),d.jsx(v.ScrollArea,{options:{className:y.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:xD,children:d.jsxs(v.Table,{stickyHeader:!0,...C,children:[d.jsx(zu,{data:E,info:w,hideActions:t,hideCheckbox:a,allChecked:Q,setSelection:N,toggleAll:D,headerCustomizer:c}),d.jsx(l0,{data:E,loading:n,hideActions:t,hideCheckbox:a,selection:$,setSelection:N,toggleRow:B,onClickEntry:s,bodyCustomizer:h,bodySeparator:p})]})})}const Uu=x.memo(({counter:e,...t})=>{const{data:n,queryParams:o,setQueryParams:s}=Ae(),a=v.useMantineTheme(),u=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],c=String(o.page_size),[h,p]=x.useState(o.page);x.useEffect(()=>{p(o.page)},[o.page]);const m=_=>{p(_-1),s({page:_-1})},y=_=>{s({page_size:parseInt(_,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(v.Divider,{}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(v.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(v.Text,{children:"Rows per page:"}),d.jsx(v.Select,{value:c,defaultValue:c,onChange:_=>y(_),data:u,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(v.Pagination,{size:"sm",total:Math.ceil(n.count/c),value:h+1,onChange:m,...t}),e&&n?d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{c:a.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),d.jsx(v.Text,{c:a.primaryColor,size:"md",fw:700,pl:10,children:n.count})]}):null]})]})});Uu.displayName="Pagination";function AD(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(n){const o={};return n instanceof wt&&n.inner.forEach(s=>{o[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),o}}}function OD({form:e,name:t,items:n,...o}){return d.jsx(v.Autocomplete,{data:n,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function f0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateInput,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o.getTime()-o.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function d0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateTimePicker,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function vo({form:e,name:t,...n}){const o=e.getInputProps(t).value,s=x.useMemo(()=>o&&typeof o=="object"?JSON.stringify(o):o||"",[o]);return t==="password"?d.jsx(v.PasswordInput,{...e.getInputProps(t),value:s,...n}):d.jsx(v.TextInput,{...e.getInputProps(t),value:s,...n})}function ju({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(""),u=e.getInputProps(t).value,c=x.useMemo(()=>u?typeof u=="object"?JSON.stringify(u,null,2):u:"",[u]);return x.useEffect(()=>{a(c)},[c]),n?d.jsx(vo,{form:e,name:t,...o}):d.jsx(v.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...o,value:s,onChange:h=>{if(a(h),!h){e.getInputProps(t).onChange(null);return}try{const p=JSON.parse(h);e.getInputProps(t).onChange(p)}catch{}}})}function h0({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(!!n);return d.jsxs(v.InputWrapper,{label:o.label,description:o.description,children:[!n&&d.jsxs(v.Group,{align:"center",gap:"xs",py:"0.25rem",children:[d.jsx(v.Checkbox,{checked:s,onChange:u=>a(u.currentTarget.checked)}),d.jsx(v.Text,{size:"xs",children:"WKT"})]}),s?d.jsx(vo,{form:e,name:t,...o,label:void 0,description:void 0}):d.jsx(ju,{form:e,name:t,...o,label:void 0,description:void 0})]})}function p0({form:e,name:t,items:n,...o}){const s=n.map(u=>({value:String(xt(u.id)),label:u.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(u=>String(typeof u=="object"?xt(u.id):u)):[];return d.jsx(v.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:a||[],...o})}function g0({form:e,name:t,items:n,filter:o,...s}){var u;const a=n.map(c=>({value:String(xt(c.id)),label:c.value}));return d.jsx(v.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:c=>{if(o){e.setFieldValue(t,c);return}const h=n.find(p=>String(xt(p.id))===c)||null;e.setFieldValue(t,h)},value:o?e.getInputProps(t).value:String(xt((u=e.getInputProps(t).value)==null?void 0:u.id))||"",...s})}function Wu({form:e,name:t,items:n,...o}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function Vu({form:e,name:t,schema:n,filter:o,withinPortal:s=!0,...a}){if(!n.type)return null;switch(n.type){case"Boolean":return d.jsx(Wu,{form:e,name:t,items:[{label:"true",value:o?"1":"true"},{label:"false",value:o?"0":"false"}],...a});case"RelatedList":return d.jsx(p0,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});case"Related":return d.jsx(g0,{form:e,name:t,items:n.values,filter:o,comboboxProps:{withinPortal:s},...a});case"DateTime":return d.jsx(d0,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:n,popoverProps:{withinPortal:s},...a});case"Date":return d.jsx(f0,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:n,popoverProps:{withinPortal:s},...a});case"Geometry":return d.jsx(h0,{form:e,name:t,filter:o,...a});case"Raw":return d.jsx(ju,{form:e,name:t,filter:o,...a});case"Integer":case"Float":return d.jsx(vo,{form:e,name:t,...a});case"Enum":return d.jsx(Wu,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});default:return d.jsx(vo,{form:e,name:t,...a})}}function ID({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function Gu({form:e,name:t,label:n,comboboxProps:o,...s}){const a=v.useCombobox({onDropdownClose:()=>a.resetSelectedOption(),onDropdownOpen:()=>a.updateSelectedOptionIndex("active")}),[u,c]=x.useState([]),[h,p]=x.useState(""),m=C=>{h!==""&&(u.includes(h)||c(E=>[...E,h]),p(""))},y=C=>c(E=>E.filter(w=>w!==C)),_=u.map(C=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>y(C),children:C},C));return x.useEffect(()=>{const C=e.getInputProps(t).value;if(C)try{c([...C])}catch(E){console.error("Error parsing JSON:",E)}},[]),x.useEffect(()=>{e.getInputProps(t).onChange(u)},[u]),d.jsx(v.InputWrapper,{label:n,children:d.jsxs(v.Combobox,{store:a,onOptionSubmit:m,...o,children:[d.jsx(v.Combobox.DropdownTarget,{children:d.jsx(v.PillsInput,{onClick:()=>a.openDropdown(),children:d.jsxs(v.Pill.Group,{children:[_,d.jsx(v.Combobox.EventsTarget,{children:d.jsx(v.PillsInput.Field,{onFocus:()=>a.openDropdown(),onBlur:()=>a.closeDropdown(),value:h,placeholder:"Search values",onChange:C=>{a.updateSelectedOptionIndex(),p(C.currentTarget.value)},onKeyDown:C=>{C.key==="Backspace"&&h.length===0&&(C.preventDefault(),y(u[u.length-1]))}})})]})})}),d.jsx(v.Combobox.Dropdown,{children:d.jsx(v.Combobox.Options,{children:d.jsxs(v.Combobox.Option,{value:"$create",children:["+ Create ",h]})})})]})})}function PD({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function m0({onClose:e,...t}){const{info:n,queryParams:o,setQueryParams:s,path:a}=Ae(),u=Ba.useForm({initialValues:{filters:[]},validate:AD(Ki({filters:hl().of(Ki({col:Ro().transform(y=>y||void 0).required("Field is required"),opr:Ro().transform(y=>y||void 0).required("col is required"),value:Jo().when("col",{is:y=>y&&n.filters[y].schema.required,then:()=>Jo().required("Value is required")})}))}))}),c={bg:"transparent",size:"sm",c:"gray"},h=v.useProps("ActionIcon",c,t);x.useEffect(()=>{u.setValues({filters:[]}),u.reset()},[a]),x.useEffect(()=>{if(o.filters&&o.filters.length){const y=o.filters.filter(_=>!_.id).map(_=>({..._,key:Ze.randomId()}));u.setFieldValue("filters",y)}},[o.filters]);const p=y=>{const _=y.filters.map(({key:E,...w})=>w),C=JSON.parse(JSON.stringify(_));s({filters:C,page:0}),e()},m=u.values.filters.map((y,_)=>d.jsxs(v.Box,{px:"sm",children:[d.jsxs(v.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(v.Box,{style:{width:"192px"},children:n&&n.filters&&d.jsx(ID,{form:u,name:`filters.${_}.col`,items:Object.entries(n.filters).map(([C,E])=>({label:E.label,value:String(C)})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:C,opr:"",value:"",key:Ze.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:y.col?d.jsx(PD,{form:u,name:`filters.${_}.opr`,items:n.filters[y.col].filters.filter(C=>!C.id).map(C=>({label:C.name,value:C.operator})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:u.values.filters[_].col,opr:C,value:"",key:Ze.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:y.col?y.opr==="in"?d.jsx(Gu,{form:u,name:`filters.${_}.value`}):d.jsx(Vu,{form:u,name:`filters.${_}.value`,schema:n.filters[y.col].schema,filter:!0}):null}),d.jsx(v.ActionIcon,{bg:h.bg,size:h.size,c:h.c,onClick:()=>{u.removeListItem("filters",_)},children:d.jsx(Ad,{})})]}),u.values.filters.length>1&&_<u.values.filters.length-1?d.jsx(v.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},y.key));return d.jsxs(v.Box,{component:"form",onSubmit:u.onSubmit(p),children:[m.length===0&&d.jsx(v.Box,{style:{width:"642px"},children:d.jsx(v.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(v.ScrollArea.Autosize,{mah:"40vh",mt:20,children:m}),d.jsx(v.Divider,{my:"sm"}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(v.Button,{variant:"subtle",leftSection:d.jsx(bl,{}),onClick:()=>{u.insertListItem("filters",{col:"",opr:"",value:"",key:Ze.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function y0(...e){const{queryParams:t}=Ae(),n={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",n,e),[s,a]=x.useState(!1);return d.jsxs(v.Popover,{opened:s,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,children:[d.jsx(v.Popover.Target,{children:d.jsx(v.Tooltip,{opened:s?!1:null,label:"Filter",children:(t==null?void 0:t.filters.filter(u=>!u.id).length)!=0?d.jsx(v.Indicator,{zIndex:20,size:16,label:t==null?void 0:t.filters.length,children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})}):d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})})}),d.jsxs(v.Popover.Dropdown,{px:"xs",children:[d.jsx(v.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(v.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),d.jsx(m0,{onClose:()=>{a(!1)}})]})]})}const Hu=x.memo(({hideAdd:e,hideFilter:t,hideDownload:n,toolbarCustomizer:o})=>{const{info:s}=Ae(),a=x.useMemo(()=>{const c={};return Object.entries(o).forEach(([h,p])=>{c[h]=p,typeof c[h]=="function"&&(c[h]=c[h]())}),c},[o]),u=s.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!n&&(a.download||d.jsx(Zu,{size:"sm"})),u&&!e?a.add||d.jsx(Ju,{size:"sm"}):null,t?null:a.filter||d.jsx(y0,{})]})});Hu.displayName="Toolbar";function Yu({children:e,cond:t}){return Id(t)?e:null}const qu=x.forwardRef((e,t)=>{const{path:n,data:o,loading:s,info:a,setQueryParams:u}=Ae(),{hideToolbar:c=!1,hideFilter:h=!1,hideAdd:p=!1,hideSettings:m=!1,hideActions:y=!1,hidePagination:_=!1,hideError:C=!1,hideDownload:E=!0,onSelectCheckbox:w=null,onClickEntry:$=null,fetchOnMount:N=!0,bulkActions:Q=null,styles:H,headerCustomizer:B={},bodyCustomizer:D={},toolbarCustomizer:k={},counter:G=!1,bodySeparator:ae,form:ie}=e;x.useEffect(()=>{!o&&N&&u({})},[o]);const{setView:S}=zn("add"),{setView:U}=zn("edit");if(x.useEffect(()=>{var fe,ye;(fe=ie==null?void 0:ie.add)!=null&&fe.initialView&&S(ie.add.initialView),(ye=ie==null?void 0:ie.edit)!=null&&ye.initialView&&U(ie.edit.initialView)},[]),!a)return;const ne=Q===null;return d.jsxs(v.Paper,{ref:t,h:"100%",display:"flex",pos:"relative",style:{flexDirection:"column",...H},children:[d.jsxs(Yu,{cond:!!a,children:[d.jsx(Ru,{jsonForms:ie==null?void 0:ie.add}),d.jsx(Pu,{jsonForms:ie==null?void 0:ie.edit})]}),c?null:d.jsx(Hu,{hideFilter:h,hideAdd:p,hideSettings:m,hideDownload:E,toolbarCustomizer:k}),o?d.jsx(c0,{bulkActions:Q,hideActions:y,loading:s,onSelectCheckbox:w,onClickEntry:$,hideCheckbox:ne,hideDownload:E,headerCustomizer:B,bodyCustomizer:D,bodySeparator:ae}):null,!_&&o?d.jsx(Uu,{counter:G}):null,C?null:d.jsx($u,{})]})});qu.displayName="DataGrid";function $D({relatedPath:e,...t}){const{path:n}=Ae();return it(n?n.substring(0,n.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(Td,{resource_name:e.replace("/",""),relation:t,children:d.jsx(qu,{hideToolbar:!0,hideDownload:!1})})}const MD=x.memo($D);function v0({item:e,info:t,loading:n,opened:o,onClose:s,...a}){const u={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:c,tabs:h,tabsList:p,tabsPanel:m}=v.useProps("ViewDialog",u,a);return d.jsxs(v.Modal,{opened:o,onClose:s,title:`${e==null?void 0:e.show_title} (#${xt(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...c,children:[d.jsx(v.LoadingOverlay,{visible:n}),!n&&e?d.jsxs(v.Tabs,{defaultValue:"details",...h,children:[d.jsxs(v.Tabs.List,{...p,children:[d.jsx(v.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((y,_)=>d.jsx(v.Tabs.Tab,{value:y.name,children:y.name},_))]}),d.jsx(v.Tabs.Panel,{pt:"xs",value:"details",...m,children:d.jsx(v.Paper,{p:"xs",withBorder:!0,children:d.jsx(v.Stack,{spacing:"md",children:d.jsx(v.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((y,_)=>d.jsxs(v.Grid,{maw:500,children:[d.jsx(v.Grid.Col,{span:4,children:d.jsx(v.Text,{size:"md",children:e.label_columns[y]})}),d.jsx(v.Grid.Col,{span:1,children:d.jsx(v.Text,{size:"xs",children:":"})}),d.jsx(v.Grid.Col,{span:6,children:d.jsx(v.Text,{size:"md",children:Yi(e.result,y)})})]},_))})})})}),t.relations.map((y,_)=>d.jsx(v.Tabs.Panel,{pt:"xs",value:y.name,children:d.jsx(v.Paper,{withBorder:!0,children:d.jsx(MD,{relatedPath:y.path,id:xt(e.id),foreign_key:y.foreign_key,type:y.type})})},_))]}):null]})}function b0({id:e,...t}){const{info:n,getEntry:o}=Ae(),[s,a]=x.useState(null),[u,c]=x.useState(!1),[h,p]=x.useState(!1),m=ar({onClick:()=>{c(!0),o(e).then(y=>{y&&(a(y),p(!0))}).finally(()=>c(!1))},size:"sm",...t});return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{...m,children:d.jsx(i1,{})})}),d.jsx(v0,{item:s,info:n,loading:u,opened:h,onClose:()=>p(!1)})]})}function Ku({id:e}){const{info:t}=Ae();return d.jsxs(v.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?d.jsx(b0,{id:e}):null,t!=null&&t.permissions.includes("can_put")?d.jsx(Md,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?d.jsx($d,{id:e}):null]})}function Ju({tooltipProps:e,...t}){const{setOpened:n}=zn("add"),o=ar({onClick:()=>n(!0),...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Add Item",children:d.jsx(v.ActionIcon,{...o,children:d.jsx(bl,{})})})})}function Ru({jsonForms:e,...t}){const{info:n,addEntry:o}=Ae(),{opened:s,setOpened:a,state:u,setState:c,reset:h,view:p,setView:m}=zn("add"),{jsonForms:y}=v.useProps("AddDialog",{},{}),_=x.useMemo(()=>Bn(y,e),[y,e]),C=x.useCallback(async E=>{E==null||E.preventDefault(),await o(u.data),a(!1)},[o,a,u.data]);return d.jsx(Au,{schema:n.add_schema,uischema:n.add_uischema,state:u,setState:c,view:p,setView:m,jsonForms:_,onSubmit:C,buttonText:"Add",opened:s,onClose:()=>a(!1),onExitTransitionEnd:h,...p===mt.OVERLAY?Iu:{},...p===mt.NORMAL?Ou:{},...t,title:t.title??(n==null?void 0:n.add_title)})}const _0=[{name:"John Doe",age:25,friend:"Jane Doe","friend.name":"Jane Doe","friend.age":30},{name:"Jane Doe",age:30,friend:"John Doe","friend.name":"John Doe","friend.age":25}];function Zu({tooltipProps:e,...t}){const{download:n}=Ae(),[o,{toggle:s,close:a}]=Ze.useDisclosure(),[u,c]=x.useState(!1),[h,p]=x.useState(Hi),m=ar({onClick:s,...t}),y=({label:E,export_mode:w,delimiter:$})=>{c(!0),n({label:E,export_mode:w,delimiter:$}).then(()=>{a()}).finally(()=>c(!1))},_=_0.map(E=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:E.name}),d.jsx(v.Table.Td,{p:4,children:E.age}),d.jsx(v.Table.Td,{p:4,children:E.friend})]},E.name)),C=_0.map(E=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:E.name}),d.jsx(v.Table.Td,{p:4,children:E.age}),d.jsx(v.Table.Td,{p:4,children:E["friend.name"]}),d.jsx(v.Table.Td,{p:4,children:E["friend.age"]})]},E.name));return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Download data",centered:!0,size:"xl",opened:o,onClose:a,children:d.jsxs(v.Stack,{children:[d.jsx(v.Select,{label:"Delimiter",description:"Select the delimiter used in the CSV file",value:h,onChange:p,data:Ua,placeholder:"Select delimiter",leftSection:d.jsx(xd,{})}),d.jsxs(v.Group,{grow:!0,children:[d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Simplified version of the data"}),d.jsx(v.Tooltip,{label:"This is a simplified version of the data. It shows only the properties of the elements and their relationships",children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"Name"}),d.jsx(v.Table.Th,{p:4,children:"Age"}),d.jsx(v.Table.Th,{p:4,children:"Friend"})]})}),d.jsx(v.Table.Tbody,{children:_})]}),d.jsx(v.Button,{mt:"md",onClick:()=>y({label:"",export_mode:"simplified",delimiter:h}),children:"Download simplified"})]}),d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Detailed version of the data"}),d.jsx(v.Tooltip,{label:d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{children:"This is a detailed version of the data. It shows all the properties of the elements including all the properties of their relationships"}),d.jsx(v.Text,{children:"It can also be used as a CSV file to be imported into a database"})]}),children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"name"}),d.jsx(v.Table.Th,{p:4,children:"age"}),d.jsx(v.Table.Th,{p:4,children:"friend.name"}),d.jsx(v.Table.Th,{p:4,children:"friend.age"})]})}),d.jsx(v.Table.Tbody,{children:C})]}),d.jsx(v.Button,{mt:"md",onClick:()=>y({label:"",export_mode:"detailed",delimiter:h}),children:"Download detailed"})]})]})]})}),u?d.jsx(v.ThemeIcon,{variant:"transparent",size:m.size,c:m.c,children:d.jsx(v.Loader,{size:"100%",color:m.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Download",children:d.jsx(v.ActionIcon,{...m,children:d.jsx(n1,{})})})]})}function T0({tooltipProps:e,...t}){const[n,o]=x.useState(!1),{loading:s,refetch:a}=Ae(),u=ar({onClick:()=>{o(!0),a()},...t});return x.useEffect(()=>{s||o(!1)},[s]),n?d.jsx(v.ThemeIcon,{variant:"transparent",size:u.size,c:u.c,children:d.jsx(v.Loader,{size:"100%",color:u.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.refresh)??"Refresh",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(c1,{})})})}function w0({tooltipProps:e,...t}){const{upload:n,refetch:o}=Ae(),[s,{toggle:a,close:u}]=Ze.useDisclosure(),[c,h]=x.useState(),[p,m]=x.useState(Hi),y=ar({onClick:a,...t}),_=x.useCallback(async()=>{await n(c,{delimiter:p})&&o(),u()},[u,p,c,o,n]);return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Import data",centered:!0,opened:s,onClose:u,onExitTransitionEnd:()=>{h(null),m(Hi)},children:d.jsxs(v.Stack,{children:[d.jsx(v.Select,{label:"Delimiter",description:"Select the delimiter used in the CSV file",value:p,onChange:m,data:Ua,placeholder:"Select delimiter",leftSection:d.jsx(xd,{})}),d.jsx(v.FileInput,{label:"CSV file",description:"CSV file containing the data to import",value:c,onChange:h,accept:"text/csv",placeholder:"Upload CSV file",leftSection:d.jsx(o1,{}),clearable:!0}),d.jsx(v.Group,{justify:"end",children:d.jsx(v.Button,{onClick:_,disabled:!c,children:"Upload"})})]})}),d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Upload CSV",children:d.jsx(v.ActionIcon,{...y,children:d.jsx(f1,{})})})]})}function FD({children:e,fetch:t=!0,loading:n=d.jsx(v.Center,{children:d.jsx(v.Loader,{})}),end:o=d.jsx(v.Center,{children:"End of data"}),fetchWrapper:s=v.Center,fetchWrapperProps:a}){const{streaming:u,loading:c}=Ae(),{ref:h,inViewport:p}=Ze.useInViewport(),m=x.useMemo(()=>Object.values(u.data).flat(),[u.data]),y=x.useMemo(()=>typeof e=="function"?e(m):e,[e,m]);return x.useEffect(()=>{p&&t&&u.fetch()},[p]),d.jsxs(d.Fragment,{children:[y,c&&n,u.isEnd&&o,d.jsx(s,{ref:h,id:"IS-load-trigger",mih:"1%",...a})]})}function DD(e,t){const n=Ae(),o=$r(),s=x.useCallback(({row:a,...u})=>d.jsx(Mn,{fallback:d.jsx(Ku,{id:a.original.id}),functionProps:{api:n,auth:o,data:a.original,mrtProps:{row:a,...u}},children:t}),[n,o,t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:s}}function kD(e,t){return{enableRowSelection:!!e||!!t}}const zr=(e={},...t)=>t.reduce((n,o)=>Bn(n,e[o]),{}),bo=(e,t,n=!1)=>{let o="";n&&(o+="filter");const s=n?e[0].toUpperCase():e[0].toLowerCase();return o+=s+e.slice(1),`${o}.${t}`},S0=(e="")=>{e.startsWith("filter")&&(e=e.slice(6));const[t="",n=""]=e.split(".");return{col:t,operator:n}};function ND({col:e,colFilter:t,onClick:n,...o}){return d.jsxs(v.Menu,{shadow:"md",width:"target",...o,children:[d.jsx(v.Menu.Target,{children:d.jsx(v.Button,{children:"Add filter"})}),d.jsx(v.Menu.Dropdown,{children:t.filters.filter(s=>!s.id).map(s=>d.jsx(v.Menu.Item,{onClick:()=>n({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function LD({col:e}){const{info:t,queryParams:n,setQueryParams:o}=Ae(),s=Ba.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),a=x.useMemo(()=>(t==null?void 0:t.filters[e])||{},[e,t==null?void 0:t.filters]),u=x.useMemo(()=>{var m;return((m=a==null?void 0:a.filters)==null?void 0:m.reduce((y,_)=>({...y,[_.operator]:_.name}),{}))||{}},[a==null?void 0:a.filters]),[c]=Ze.useDebouncedValue(s.getValues(),rr);Ze.useDidUpdate(()=>{const m=c.filters.filter(y=>y.value);o({filters:m})},[c]);const h=s.getValues().filters,p=h.map((m,y)=>m.col===e&&!m.id?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:1.5,py:0,children:d.jsx(v.Center,{h:"100%",w:"100%",children:d.jsx(v.CloseButton,{onClick:()=>s.removeListItem("filters",y),size:"md",title:"Remove filter",variant:"outline"})})}),d.jsx(v.Grid.Col,{span:10.5,py:0,children:m.opr==="in"?d.jsx(Gu,{form:s,name:`filters.${y}.value`,label:u[m.opr],comboboxProps:{withinPortal:!1}}):d.jsx(Vu,{form:s,name:`filters.${y}.value`,label:u[m.opr],schema:a.schema,withinPortal:!1,filter:!0})}),y>=0&&y+1<h.length&&d.jsx(v.Grid.Col,{span:12,py:0,children:d.jsx(v.Divider,{my:"sm",label:"AND",align:"center"})})]},`${m.col}-${y}`):null).filter(Boolean);return d.jsxs(v.Grid,{w:p.length?"25rem":"100%",gap:"md",gutter:"xs",children:[p.length?p:d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Stack,{children:d.jsx(ND,{col:e,colFilter:a||{filters:[]},onClick:m=>s.insertListItem("filters",m),withinPortal:!1})})})]})}function BD({filters:e,col:t,opr:n,table:o}){const s=v.useMantineTheme();return e.map(a=>{const u=a.operator===n;return d.jsx(v.Menu.Item,{color:u?s.primaryColor:void 0,leftSection:d.jsx(v.Text,{size:"xl",ta:"center",w:"2ch",style:{transform:"translateY(-0.1em)"},children:a.name[0]}),onClick:()=>o.setColumnFilterFns(c=>({...c,[t]:bo(t,a.operator)})),value:a.opr,children:a.name},a.operator)})}function zD({enableAdvancedFilters:e,mode:t,setMode:n,col:o,opr:s,filters:a,table:u}){return d.jsxs(d.Fragment,{children:[e&&d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Item,{component:"div",p:0,children:d.jsx(v.SegmentedControl,{fullWidth:!0,size:"sm",data:["Basic","Advanced"],value:t,onChange:n})}),d.jsx(v.Menu.Divider,{})]}),t==="Basic"&&d.jsx(BD,{filters:a,col:o,opr:s,table:u}),t==="Advanced"&&d.jsx(LD,{col:o})]})}const wi=e=>e!=null&&e!=="",C0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>{const{value:s,onChange:a,leftInputProps:u,rightInputProps:c,groupProps:h,cleariconprops:p,...m}=n,[y,_]=x.useState([null,null]);x.useEffect(()=>{s||_([null,null])},[s]),x.useEffect(()=>{const B=JSON.stringify(y);let D=null;return y.every(wi)&&B!==s?D=setTimeout(()=>{a(JSON.stringify(y))},rr):y.every(k=>!wi(k))&&(D=setTimeout(()=>{a(void 0)},rr)),()=>clearTimeout(D)},[y]);const C=x.useCallback((B,D)=>{_(k=>{const G=[...k];return G[D]=B,G})},[]);let[E,w]=y;const $=wi(w)&&!wi(E),N=wi(E)&&!wi(w),Q=typeof E=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[null,B[1]]),children:d.jsx(Od,{})}):null,H=typeof w=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[B[0],null]),children:d.jsx(Od,{})}):null;return d.jsxs(v.Group,{w:"100%",wrap:"nowrap",align:"center",gap:"xs",...h,children:[d.jsx(v.NumberInput,{ref:o,styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:Q,...m,...t,value:E??"",onChange:B=>C(B,0),placeholder:$?"Start value is required":"Start value",error:$&&" ",...u}),d.jsx(v.NumberInput,{styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:H,...m,...t,value:w??"",onChange:B=>C(B,1),placeholder:N?"End value is required":"End value",error:N&&" ",...c})]})});C0.displayName="HeaderBetweenInput";const E0=x.forwardRef(({clearIcon:e,mrtprops:{selectprops:t},...n},o)=>d.jsx(v.Select,{ref:o,data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],...t,...n,value:ti(n.value)?String(n.value):null,onChange:s=>n.onChange(ti(s)?s===String(!0):void 0)}));E0.displayName="HeaderBooleanInput";const Xu=e=>e==="range"?[null,null]:null,x0=(e,t)=>e==="range"?t.every(n=>n!==null):t!==null,Qu=x.forwardRef(({type:e,clearIcon:t,mrtprops:{dateinputprops:n},...o},s)=>{const{value:a,onChange:u,...c}=o,[h,p]=x.useState(Xu(e));return x.useEffect(()=>{p(Xu(e))},[e]),x.useEffect(()=>{a||p(Xu(e))},[e,a]),x.useEffect(()=>{const m=JSON.stringify(e==="range"?h.map(_=>_?_.toISOString():null):(h==null?void 0:h.toISOString())??null);let y=null;return x0(e,h)&&m!==a?y=setTimeout(()=>{u(m)},rr):x0(e,h)||(y=setTimeout(()=>{u(void 0)},rr)),()=>clearTimeout(y)},[h]),d.jsx(Gi.DatePickerInput,{ref:s,type:e,clearable:!0,valueFormat:"DD.MM.YYYY",...c,...n,value:e==="range"?Array.isArray(h)?h:[null,null]:Array.isArray(h)?null:h,onChange:p})});Qu.displayName="HeaderDateInput";const A0=x.forwardRef(({data:e,clearIcon:t,mrtprops:{multiselectprops:n},placeholder:o,...s},a)=>{const u=Array.isArray(s.value)?s.value.map(c=>String(typeof c=="object"?xt(c.id):c)):[];return d.jsxs(v.Box,{...s,children:[!u.length&&d.jsx(v.TextInput,{pos:"absolute",placeholder:o,...s,value:void 0,onChange:void 0}),d.jsx(v.MultiSelect,{ref:a,styles:{pill:{maxWidth:"5rem"}},data:e,...n,...s,value:u})]})});A0.displayName="HeaderMultiSelectInput";const O0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.NumberInput,{ref:o,rightSection:e,...t,...n,value:n.value??""}));O0.displayName="HeaderNumberInput";const ec=x.forwardRef(({data:e,clearIcon:t,mrtprops:{selectprops:n},...o},s)=>d.jsx(v.Select,{ref:s,data:e,searchable:!0,...n,...o,value:o.value??null}));ec.displayName="HeaderSelectInput";const tc=x.forwardRef(({clearIcon:e,mrtprops:{multiselectprops:t},...n},o)=>d.jsx(v.TagsInput,{ref:o,styles:{pill:{maxWidth:"5rem"}},...t,...n,value:n.value??[],onChange:s=>n.onChange(s.length?s:void 0)}));tc.displayName="HeaderTagsInput";const nc=x.forwardRef((e,t)=>{const[n,o]=x.useState();return d.jsx(tc,{ref:t,...e,searchValue:n?n.toString():"",onSearchChange:s=>{if(!s){o(void 0);return}const a=Number(s);isNaN(a)||o(a)}})});nc.displayName="HeaderTagsNumberInput";const rc=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.TextInput,{ref:o,rightSection:e,...t,...n,value:n.value||""}));rc.displayName="HeaderTextInput";const I0=x.forwardRef(({component:e,...t},n)=>{const o=Ae(),s=$r(),a=x.useMemo(()=>({api:o,auth:s,componentProps:{...t,ref:n}}),[o,s,t,n]);return d.jsx(Mn,{ref:n,fallback:d.jsx(rc,{...t}),functionProps:a,children:e})});I0.displayName="HeaderInput";const UD=(e,t)=>{if(!(!e||!t)){switch(e){case"tc":return({componentProps:n})=>d.jsx(rc,{...n});case"in":switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(nc,{...n});case"Enum":return({componentProps:n})=>d.jsx(nc,{data:t.values,...n})}return({componentProps:n})=>d.jsx(tc,{...n});case"bw":switch(t.type){case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Qu,{type:"range",...n});default:return({componentProps:n})=>d.jsx(C0,{...n})}case"eq":case"neq":switch(t.type){case"Boolean":return({componentProps:n})=>d.jsx(E0,{...n})}break;case"rel_o_m":case"nrel_o_m":return({componentProps:n})=>d.jsx(ec,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n});case"rel_m_m":case"nrel_m_m":return({componentProps:n})=>d.jsx(A0,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n})}switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(O0,{...n});case"Enum":return({componentProps:n})=>d.jsx(ec,{data:t.values,...n});case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Qu,{...n})}}},Si={root:"_root_yn5fy_1","date-filter":"_date-filter_yn5fy_5"},P0=x.forwardRef(({label:e,disabled:t,children:n,...o},s)=>t?x.cloneElement(n,{ref:s}):d.jsx(v.Tooltip,{label:e,...o,children:x.cloneElement(n,{ref:s})}));P0.displayName="FilterIconWrapper";const $0=x.forwardRef(({indicator:e,children:t,...n},o)=>{const{height:s,ref:a}=Ze.useElementSize(),u=Ze.useMergedRef(o,a);if(!e)return x.cloneElement(t,{ref:u});const c=2;//! This is the height offset between the button from ActionIcon and the icon itself
|
|
227
|
+
return d.jsx(v.Indicator,{zIndex:20,size:16,label:e,styles:{root:{height:s+c}},...n,children:x.cloneElement(t,{ref:u})})});$0.displayName="FilterIndicatorWrapper";function jD({children:e,enableFilterModes:t,enableAdvancedFilters:n,filterProps:o,filterModeDescription:s,filterMenu:a,filters:u,filterFn:c,mrtProps:{column:h,table:p,...m}}){var R;const{info:y,queryParams:_,setQueryParams:C}=Ae(),E=Ae(),w=$r(),$=x.useMemo(()=>{var Y,ee;return(ee=(Y=y==null?void 0:y.filters)==null?void 0:Y[h.id])==null?void 0:ee.schema},[h.id,y==null?void 0:y.filters]),[N,Q]=x.useState("Basic"),[H,{toggle:B}]=Ze.useDisclosure(),D=((R=p.getState().columnFilterFns)==null?void 0:R[h.id])||c,k=x.useMemo(()=>S0(D).operator,[D]),G=x.useMemo(()=>{var Y;return(Y=u==null?void 0:u.find(ee=>ee.operator===k))==null?void 0:Y.name},[u,k]),ae=Ba.useField({mode:"controlled"}),ie=x.useRef(k),S=x.useMemo(()=>(_==null?void 0:_.filters.filter(Y=>Y.id!==h.id&&Y.col===h.id).map(Y=>({...Y})))||[],[_,h.id]);ie.current!==k&&(ie.current=k,ae.reset());const U=x.useCallback(()=>{ae.reset(),h.setFilterValue(void 0)},[]),[ne]=Ze.useDebouncedValue(ae.getInputProps().value,rr),fe=Ze.useMounted(),ye=x.useMemo(()=>_==null?void 0:_.filters.find(Y=>Y.col===h.id&&Y.opr===k),[h.id,k,_==null?void 0:_.filters]);x.useEffect(()=>{fe&&h.setFilterValue(ne??void 0)},[ne]),x.useEffect(()=>{if(!fe)return;const Y=h.getFilterValue();Y===void 0?U():ae.getInputProps().onChange(Y)},[h.getFilterValue()]),x.useEffect(()=>{fe&&(ye||U())},[ye]),Ze.useDidUpdate(()=>{var ee;const Y=(ee=_==null?void 0:_.filters)==null?void 0:ee.filter(oe=>oe.id!==h.id);ti(ne)&&ne!==""&&Y.push({id:h.id,col:h.id,opr:k,value:ne}),C({filters:Y})},[ne]);const Me=x.useMemo(()=>{const Y={variant:"subtle"};return!(u!=null&&u.length)&&(Y.disabled=!0,Y.c="gray"),Y},[u==null?void 0:u.length]),we=x.useMemo(()=>Wa(t?e==null?void 0:e[k]:e,UD(k,$)),[e,t,k,$]),Le=x.useMemo(()=>({...Me,variant:"transparent",c:void 0,size:"sm",onClick:U}),[Me,U]),Ie=x.useMemo(()=>({api:E,auth:w,mrtProps:{column:h,table:p,...m}}),[E,w,h,m,p]),lt=x.useMemo(()=>({...Ie,componentProps:{label:p.options.localization.changeFilterMode,disabled:!(u!=null&&u.length),indicator:S.length,aiProps:Me,onClick:B}}),[Me,S.length,u==null?void 0:u.length,Ie,p.options.localization.changeFilterMode,B]),q=x.useMemo(()=>({...Ie,componentProps:{filterMode:G}}),[G,Ie]),K=ft(t?zr(o,k):o,Ie),Z=x.useMemo(()=>{var Y,ee;return{w:"100%",variant:"unstyled",disabled:!(u!=null&&u.length),title:u.length?void 0:"No filters",placeholder:(Y=p.options.localization.filterByColumn)==null?void 0:Y.replace("{column}",String(h.columnDef.header)),"aria-label":(ee=p.options.localization.filterByColumn)==null?void 0:ee.replace("{column}",String(h.columnDef.header)),style:{fontWeight:"normal"},mrtprops:{column:h,table:p,...m,textinputprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterTextInputProps,[{column:h,table:p,...m}]),...ft(h.columnDef.mantineFilterTextInputProps,[{column:h,table:p,...m}])},selectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterSelectProps||{clearable:!0},{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterSelectProps,{column:h,table:p,...m})},multiselectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterMultiSelectProps||{clearable:!0},{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterMultiSelectProps,{column:h,table:p,...m})},dateinputprops:{className:Pr("mrt-filter-text-input",Si.root,Si["date-filter"]),...ft(p.mantineFilterDateInputProps,{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterDateInputProps,{column:h,table:p,...m})},autocompleteprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterAutocompleteProps,{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterAutocompleteProps,{column:h,table:p,...m})}},ref:oe=>{oe&&(p.refs.filterInputRefs.current[`${h.id}-0`]=oe)},clearIcon:ae.isDirty()&&d.jsx(v.CloseButton,{...Le}),...K,cleariconprops:Le}},[Le,h,K,ae,u.length,m,p]);return d.jsxs(v.Menu,{opened:H,closeOnClickOutside:!0,onChange:B,children:[d.jsxs(v.Stack,{w:"100%",gap:"0.25rem",children:[d.jsxs(v.Flex,{align:"flex-end",children:[d.jsx(I0,{component:we,field:ae,...ae.getInputProps(),...Z}),t&&d.jsx(v.Menu.Target,{children:d.jsx(Mn,{fallback:u.length?d.jsx(P0,{label:p.options.localization.changeFilterMode,position:"bottom-start",withArrow:!0,arrowPosition:"side",children:d.jsx($0,{indicator:n?S.length:void 0,children:d.jsx(v.ActionIcon,{...Me,onClick:B,children:d.jsx(s1,{})})})}):null,functionProps:lt,children:a})})]}),t&&d.jsx(Mn,{fallback:u.length?d.jsx(v.Input.Description,{size:"xs",children:p.options.localization.filterMode.replace("{filterType}",yn.localizedFilterOption(zr(p.options.localization,h.id),G)||yn.localizedFilterOption(p.options.localization,G)||G)}):null,functionProps:q,children:s})]}),d.jsx(v.Menu.Dropdown,{children:d.jsx(zD,{enableAdvancedFilters:n,mode:N,setMode:Q,col:h.id,opr:k,filters:u,table:p})})]})}function WD({highlight:e,truncate:t,children:n}){return Array.isArray(n)?n.map((o,s)=>{var a;return(a=t==null?void 0:t[s])!=null&&a.truncated?d.jsx(v.Tooltip,{label:t[s].original,children:d.jsx(v.Highlight,{highlight:e,children:t[s].truncated},s)},s):d.jsx(v.Highlight,{highlight:e,children:o},s)}):t!=null&&t.truncated?d.jsx(v.Tooltip,{label:t.original,children:d.jsx(v.Highlight,{highlight:e,children:t.truncated})}):d.jsx(v.Highlight,{highlight:e,children:n})}function VD(e,t,n,o){const{path:s,info:a,data:u,specialKey:c}=Ae(),h=Ae(),p=$r(),m=x.useMemo(()=>(u==null?void 0:u.list_columns.map(C=>{var ie,S,U,ne,fe,ye,Me;const{component:E,enableFilterModes:w,enableAdvancedFilters:$,filterComponent:N,filterProps:Q,filterModeDescription:H,filterMenu:B,defaultOpr:D=((ne=(U=(S=(ie=a==null?void 0:a.filters)==null?void 0:ie[C])==null?void 0:S.filters)==null?void 0:U[0])==null?void 0:ne.operator)||""}=zr(t,c.all,C),k=bo(C,D),G=((ye=(fe=a==null?void 0:a.filters)==null?void 0:fe[C])==null?void 0:ye.filters)||[],ae={};return E!==void 0&&(ae.Header=we=>ft(E,{api:h,auth:p,mrtProps:we})),{accessorKey:C,accessorFn:we=>Yi(we,C),header:(Me=u==null?void 0:u.label_columns)==null?void 0:Me[C],Filter:we=>d.jsx(jD,{enableFilterModes:w,enableAdvancedFilters:$,filterProps:Q,filterModeDescription:H,filterMenu:B,filters:G,filterFn:k,mrtProps:we,children:N}),enableSorting:(u==null?void 0:u.order_columns.includes(C))||(u==null?void 0:u.order_columns.includes(`${C}.id`)),filterFn:G.length?k:void 0,columnFilterModeOptions:G.map(we=>bo(C,we.operator)),Cell:({cell:we,table:Le,column:Ie,...lt})=>{const q=Le.getState().globalFilter,K=Ie.getFilterValue()||"",{component:Z,separator:R,truncate:Y}=zr(n,c.all,C);let ee=[];q&&ee.push(...q.split(o).map(pe=>pe.trim())),K&&typeof K=="string"&&ee.push(...K.split(o).map(pe=>pe.trim()));let oe=we.getValue();typeof oe=="number"?oe=oe.toLocaleString():oe==null&&(oe=""),R&&(oe=oe.split(R));let ve={};Y&&(Array.isArray(oe)?ve=oe.map(pe=>({original:pe,truncated:pe.length>Y?`${pe.slice(0,Y)}...`:null})):ve={original:oe,truncated:oe.length>Y?`${oe.slice(0,Y)}...`:null});const be={api:h,auth:p,data:we.row.original,highlight:ee,componentProps:{value:oe},mrtProps:{cell:we,table:Le,column:Ie,...lt}};return d.jsx(Mn,{fallback:d.jsx(WD,{highlight:ee,truncate:ve,children:oe}),functionProps:be,children:Z})},...ae,...zr(e,c.all,C)}}))||[],[u==null?void 0:u.list_columns,u==null?void 0:u.label_columns,u==null?void 0:u.order_columns,a,e,c.all,h,p,t,n,o]),[y,_]=Ze.useSetState({});return x.useEffect(()=>{m.length&&_({[u.path]:m})},[m]),{columns:m.length?m:(y==null?void 0:y[s])||m,manualFiltering:!0}}function GD(){const{data:e,loading:t}=Ae();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function HD(e){const{data:t}=Ae();return e?{mantineTableBodyRowProps:({row:n})=>({onClick:()=>{const o=t.ids[n.id];e(o,n.original)},style:{cursor:"pointer"}})}:null}function YD(){const{info:e}=Ae();return{filterFns:x.useMemo(()=>Object.entries((e==null?void 0:e.filters)||{}).reduce((t,[n,o])=>(o.filters.filter(s=>s.operator.startsWith("header:")).forEach(s=>t[bo(n,s.operator)]=null),t),{}),[e==null?void 0:e.filters])}}function qD(){const{queryParams:e,setQueryParams:t}=Ae(),n=x.useMemo(()=>e==null?void 0:e.global_filter,[e==null?void 0:e.global_filter]),[o,s]=x.useState(n||""),[a]=Ze.useDebouncedValue(o,rr);return Ze.useDidUpdate(()=>{n&&n!==a&&s(n)},[n]),Ze.useDidUpdate(()=>{a?t({page:0,global_filter:a}):e!=null&&e.global_filter&&t({page:0,global_filter:void 0})},[a]),{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:o}}}function KD(e){const{data:t,queryParams:n,setQueryParams:o}=Ae(),s=x.useMemo(()=>({pageIndex:(n==null?void 0:n.page)||Cf,pageSize:(n==null?void 0:n.page_size)||Ef}),[n==null?void 0:n.page,n==null?void 0:n.page_size]),a=x.useCallback(u=>{const c=u(s);!(t!=null&&t.count)&&c.pageIndex===0||o({page:c.pageIndex,page_size:c.pageSize})},[t==null?void 0:t.count,s,o]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:a}}function JD(e){const{ref:t,height:n}=Ze.useElementSize(),{ref:o,height:s}=Ze.useElementSize(),a=x.useMemo(()=>{const p={h:"100%",withBorder:e};return e||(p.shadow=void 0),p},[e]),u=x.useMemo(()=>({ref:o}),[o]),c=x.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),h=x.useMemo(()=>({h:`calc(100% - ${s+n}px)`}),[s,n]);return{mantinePaperProps:a,mantineTopToolbarProps:u,mantineBottomToolbarProps:c,mantineTableContainerProps:h}}function RD(){const{queryParams:e,setQueryParams:t,data:n}=Ae(),o=x.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=x.useCallback(a=>{const u=a(o);if(!u.length){t({order_column:null,order_direction:null});return}const c=u[0];t({order_column:n.order_columns.includes(c.id)?c.id:`${c.id}.id`,order_direction:c.desc?"desc":"asc"})},[n==null?void 0:n.order_columns,t,o]);return{manualSorting:!0,state:{sorting:o},onSortingChange:s}}function ZD(e,t){return{toggleGlobalFilter:d.jsx(yn.MRT_ToggleGlobalFilterButton,{table:e,disabled:!1},"basic-toggleGlobalFilter"),filter:d.jsx(yn.MRT_ToggleFiltersButton,{table:e},"basic-filter"),refresh:d.jsx(T0,{tooltipProps:{label:e.options.localization.refresh}},"basic-refresh"),add:(t==null?void 0:t.add)&&d.jsx(Ju,{tooltipProps:{label:e.options.localization.add}},"basic-add"),download:(t==null?void 0:t.download)&&d.jsx(Zu,{tooltipProps:{label:e.options.localization.download}},"basic-download"),upload:(t==null?void 0:t.upload)&&d.jsx(w0,{tooltipProps:{label:e.options.localization.upload}},"basic-upload"),showHideColumns:d.jsx(yn.MRT_ShowHideColumnsButton,{table:e},"basic-showHideColumns"),toggleDensePadding:d.jsx(yn.MRT_ToggleDensePaddingButton,{table:e},"basic-toggleDensePadding"),toggleFullScreen:d.jsx(yn.MRT_ToggleFullScreenButton,{table:e},"basic-toggleFullScreen")}}function M0(e,t,n,o){Object.entries(e||{}).forEach(([a,u])=>{a in t&&(t[a]=d.jsx(Mn,{fallback:t[a],functionProps:n,children:u},`custom-${a}`))});let s=Object.values(t);return Object.entries(o||{}).forEach(([a,u])=>{a=Number(a)-1;const c=d.jsx(Mn,{functionProps:n,children:u},`order-${a}`);a>s.length?s.push(c):s=[...s.slice(0,a),c,...s.slice(a)]}),d.jsx(v.Flex,{gap:"0.125rem",align:"center",children:s})}function XD(e={},t,n){const{info:o,queryParams:s,setQueryParams:a}=Ae(),u=Ae(),c=$r(),{customizer:h,custom:p,leftToolbar:m}=e,y=x.useMemo(()=>t?[{label:"All",value:"[]"},...t.map(E=>({label:E.name,value:JSON.stringify(E.value)}))]:[],[t]),_=x.useMemo(()=>y.length?d.jsx(v.SegmentedControl,{value:JSON.stringify((s==null?void 0:s.filters)||[]),onChange:E=>a({filters:JSON.parse(E)}),data:y}):null,[s==null?void 0:s.filters,y,a]);return{renderToolbarInternalActions:x.useCallback(({table:E})=>{const w={api:u,auth:c,mrtProps:{table:E}},$={add:o==null?void 0:o.permissions.includes("can_post"),download:o==null?void 0:o.permissions.includes("can_download"),upload:o==null?void 0:o.permissions.includes("can_upload")},N=ZD(E,$);return M0(h,N,w,p)},[u,c,p,h,o==null?void 0:o.permissions]),enableTopToolbar:!n,enableFilters:(h==null?void 0:h.filter)!==null,...x.useMemo(()=>{if(_&&m)throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");const E={};if(_&&(E.renderTopToolbarCustomActions=()=>d.jsx(v.Group,{justify:"space-between",children:d.jsx(v.Box,{children:_})}),E.positionToolbarAlertBanner="bottom"),m){const{custom:w}=m;E.renderTopToolbarCustomActions=({table:$})=>M0(void 0,{},{api:u,auth:c,mrtProps:{table:$}},w),E.positionToolbarAlertBanner="bottom"}return E},[u,c,m,_])}}const F0={"toolbar-alert":"_toolbar-alert_bw71q_25","head-overlay":"_head-overlay_bw71q_28"},QD=({alertBanner:e,table:t,...n})=>{var we,Le;const{getFilteredSelectedRowModel:o,getPrePaginationRowModel:s,getState:a,resetRowSelection:u,options:{enableRowSelection:c,enableSelectAll:h,icons:{IconX:p},localization:m,mantineToolbarAlertBannerBadgeProps:y,mantineToolbarAlertBannerProps:_,manualPagination:C,positionToolbarAlertBanner:E,rowCount:w}}=t,{density:$,grouping:N,rowSelection:Q}=a(),{left:H,right:B,renderToolbarAlertBannerContent:D,wrapperProps:k}=e??{},{flex:G,group:ae,stack:ie}=k??{},S={...ft(_,{table:t}),...n},U=ft(y,{table:t}),ne=w??s().flatRows.length,fe=x.useMemo(()=>C?Object.values(Q).filter(Boolean).length:o().rows.length,[Q,ne,C]),ye=fe?d.jsxs(v.Flex,{align:"center",gap:"sm",children:[(Le=(we=m.selectedCountOfRowCountRowsSelected)==null?void 0:we.replace("{selectedCount}",fe.toString()))==null?void 0:Le.replace("{rowCount}",ne.toString()),d.jsx(v.Button,{onClick:u,size:"compact-xs",variant:"subtle",children:m.clearSelection}),d.jsx(v.Button,{onClick:Ie=>yn.getMRT_SelectAllHandler({table:t})(Ie,!1,!0),size:"compact-xs",variant:"subtle",children:m.clearSelectionOnThisPage??"Clear selection on this page"})]}):null,Me=N.length>0?d.jsxs(v.Group,{gap:"xs",children:[m.groupedBy,N.map((Ie,lt)=>d.jsxs(x.Fragment,{children:[lt>0?m.thenBy:"",d.jsxs(v.Badge,{className:"alert-badge",rightSection:d.jsx(v.ActionIcon,{color:"white",onClick:()=>t.getColumn(Ie).toggleGrouping(),size:"xs",variant:"subtle",children:d.jsx(p,{style:{transform:"scale(0.8)"}})}),variant:"filled",...U,children:[t.getColumn(Ie).columnDef.header," "]})]},`${lt}-${Ie}`))]}):null;return d.jsxs(v.Flex,{className:Pr(F0["toolbar-alert"],E==="head-overlay"&&F0["head-overlay"],$),...G,children:[c&&h&&E==="head-overlay"&&d.jsx(yn.MRT_SelectCheckbox,{table:t}),d.jsxs(v.Group,{align:"flex-start",gap:"xs",...ae,children:[ft(H,{table:t}),Wa(ft(D,{selectedAlert:ye,groupedAlert:Me,table:t}),d.jsxs(v.Stack,{gap:"xs",...ie,children:[S==null?void 0:S.children,ye,Me]})),ft(B,{table:t})]})]})};function ek(e){const{alertBanner:t}=e;return{renderToolbarAlertBannerContent:({table:n})=>d.jsx(QD,{alertBanner:t,table:n})}}function tk(){const{data:e}=Ae();return x.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const nk={enableStickyHeader:!0,enableColumnPinning:!0},D0=x.forwardRef((e,t)=>{var Lt,dr,vt;const{info:n,data:o,queryParams:s,refetch:a,specialKey:u}=Ae(),c=v.useProps("NextGenDataGrid",{},{}),{fetchOnMount:h=!0,hideToolbar:p,hideActions:m,hidePagination:y,hideError:_,onSelectCheckbox:C,onClickEntry:E,bulkActions:w,table:$,quickFilters:N,withBorder:Q,columnProps:H,header:B,body:D,form:k,toolbar:G={},textFilterSeparator:ae=";",bodySeparator:ie,bodyTruncate:S,headerCustomizer:U,bodyCustomizer:ne,toolbarCustomizer:fe,hideAdd:ye,hideDownload:Me,hideFilter:we,...Le}=x.useMemo(()=>Bn(c,e),[e,c]);ie&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].separator=D[ke].separator||ie}),S&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].truncate=D[ke].truncate||S}),U&&Object.keys(U).forEach(ke=>{B[ke]=B[ke]||{},B[ke].component=U[ke].component||U[ke]}),ne&&Object.keys(ne).forEach(ke=>{D[ke]=D[ke]||{},D[ke].component=ne[ke].component||ne[ke]}),fe&&(G.custom=G.custom||fe),ye&&(G.customizer=G.customizer||{},G.customizer.add=G.customizer.add||null),Me&&(G.customizer=G.customizer||{},G.customizer.download=G.customizer.download||null),we&&(G.customizer=G.customizer||{},G.customizer.filter=G.customizer.filter||null),x.useEffect(()=>{process.env.NODE_ENV==="development"&&(ie&&console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),S&&console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),U&&console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),ne&&console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),fe&&console.warn("toolbarCustomizer is deprecated, please use toolbar.custom instead"),ye&&console.warn("hideAdd is deprecated, please use toolbar.customizer.add instead"),Me&&console.warn("hideDownload is deprecated, please use toolbar.customizer.download instead"),we&&console.warn("hideFilter is deprecated, please use toolbar.customizer.filter instead"))},[]);const Ie=GD(),lt=RD(),q=KD(y),K=VD(H,B,D,ae),Z=JD(Q),R=DD(m,(Lt=zr(D,u.actions))==null?void 0:Lt.component),Y=qD(),ee=tk(),oe=XD(G,N,p),ve=HD(E),be=kD(C,w),pe=YD(),Ce=ek(G),tt=x.useMemo(()=>Bn(nk,{mantinePaperProps:{ref:t},getRowId:ke=>ke.id},K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$),[t,K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$]),te=yn.useMantineReactTable(tt);x.useEffect(()=>{!s&&h&&a()},[]),x.useEffect(()=>{C==null||C(Object.keys(te.getState().rowSelection)),w==null||w.setSelectedIds(Object.keys(te.getState().rowSelection))},[w,o==null?void 0:o.ids,te.getState().rowSelection,C]);const{setView:yt}=zn("add"),{setView:Je}=zn("edit");return x.useEffect(()=>{var ke,Yn;(ke=k==null?void 0:k.add)!=null&&ke.initialView&&yt(k.add.initialView),(Yn=k==null?void 0:k.edit)!=null&&Yn.initialView&&Je(k.edit.initialView)},[]),d.jsxs(v.Box,{h:"100%",w:"100%",pos:"relative",children:[d.jsxs(Yu,{cond:!!n,children:[d.jsx(Ru,{jsonForms:k==null?void 0:k.add,...(dr=k==null?void 0:k.add)==null?void 0:dr.dialogProps}),d.jsx(Pu,{jsonForms:k==null?void 0:k.edit,...(vt=k==null?void 0:k.edit)==null?void 0:vt.dialogProps})]}),d.jsx(yn.MantineReactTable,{table:te,...Le}),_?null:d.jsx($u,{})]})});D0.displayName="NextGenDataGrid";const ic={iconSmall:"_iconSmall_sxv3z_1",btn:"_btn_sxv3z_17"};function rk({basePath:e="/security",Target:t,children:n}){const o=Tf.useNavigate(),{user:s,signout:a}=$r(),[u,c]=x.useState(!1),p=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:d1},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:a1},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Ed},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Ed},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:t1}].filter(m=>s.permissions.includes(m.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:u,onClose:()=>c(!1),onOpen:()=>c(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:ic.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(v.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(v.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),d.jsx(vl,{size:12})]})})}),d.jsxs(v.Menu.Dropdown,{children:[p.length?d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Label,{children:"Security"}),p.map((m,y)=>d.jsx(v.Menu.Item,{p:12,leftSection:d.jsx(m.Icon,{className:ic.iconSmall}),onClick:()=>o(m.resource_name),children:m.label},y)),d.jsx(v.Menu.Divider,{})]}):null,n,d.jsx(v.Menu.Item,{leftSection:d.jsx(l1,{p:12,className:ic.iconSmall}),onClick:a,children:"Logout"})]})]})}O.Actions=Ku,O.Add=Ju,O.AddDialog=Ru,O.AlertDialog=Pd,O.ApiContext=za,O.ApiProvider=Td,O.AuthContext=Va,O.Body=l0,O.BulkActionsContext=Ha,O.CommonModal=Au,O.DEBOUNCE_DELAY=rr,O.DEFAULT_DELIMITER=Hi,O.DEFAULT_PAGE=Cf,O.DEFAULT_PAGE_SIZE=Ef,O.DELIMITER_DATA=Ua,O.DataGrid=qu,O.Delete=$d,O.DeleteDialog=ep,O.Download=Zu,O.Edit=Md,O.EditDialog=Pu,O.ErrorDialog=$u,O.FallbackWrapper=Mn,O.Field=yo,O.FieldTitle=js,O.Filter=y0,O.FilterMenu=m0,O.FormAutocomplete=OD,O.FormContextAdd=Ya,O.FormContextEdit=qa,O.FormDatePicker=f0,O.FormDateTimePicker=d0,O.FormField=Vu,O.FormFilterIn=Gu,O.FormGeometryField=h0,O.FormJsonField=ju,O.FormRelatedListSelect=p0,O.FormRelatedSelect=g0,O.FormSelect=Wu,O.FormTextField=vo,O.Header=zu,O.InfiniteScroll=FD,O.InfoContext=Ga,O.LazyLoadWrapper=Yu,O.Main=c0,O.MantineArrayControlRenderer=um,O.MantineBooleanCell=zh,O.MantineBooleanControl=ym,O.MantineBooleanInput=Vl,O.MantineDateCell=jh,O.MantineDateControl=bm,O.MantineDateInput=Gl,O.MantineDateTimeCell=Vh,O.MantineDateTimeControl=Tm,O.MantineDateTimeInput=Hl,O.MantineEnumArrayInput=kh,O.MantineEnumArrayRenderer=hm,O.MantineEnumCell=Hh,O.MantineEnumControl=Sm,O.MantineEnumInput=Yl,O.MantineGroupLayoutRenderer=Lm,O.MantineGroupLayoutTester=Nm,O.MantineHorizontalLayoutRenderer=zm,O.MantineIntegerCell=qh,O.MantineIntegerControl=Em,O.MantineJsonControl=Am,O.MantineJsonInput=Nh,O.MantineLabelRenderer=km,O.MantineLabelTester=Dm,O.MantineLayoutRenderer=us,O.MantineNumberCell=Jh,O.MantineNumberControl=Im,O.MantineNumberInput=no,O.MantineObjectControl=gm,O.MantineObjectControlTester=pm,O.MantineObjectInput=Lh,O.MantineOneOfEnumCell=Zh,O.MantineOneOfEnumControl=$m,O.MantineOneOfEnumInput=ql,O.MantineTableControl=am,O.MantineTextCell=Qh,O.MantineTextControl=Fm,O.MantineTextInput=Kl,O.MantineVerticalLayoutRenderer=jm,O.NextGenDataGrid=D0,O.NoBorderTableCell=Ti,O.NonEmptyRow=sm,O.Pagination=Uu,O.Provider=ab,O.Refresh=T0,O.Row=a0,O.TableToolbar=tm,O.Toolbar=Hu,O.Upload=w0,O.UserMenu=rk,O.VIEW_MODE=mt,O.ValidationIcon=em,O.View=b0,O.ViewDialog=v0,O.authInfo=Ff,O.authOAuthSignin=Mf,O.authResetPassword=$f,O.authSignin=If,O.authSignout=Pf,O.compareStateWithStore=Af,O.convertId=xt,O.convertInfo=vd,O.convertLocalToUTCISOString=Wl,O.convertToFormInputs=Gm,O.convertUTCISOStringToLocal=Ph,O.createFetchParams=Tt,O.createItem=zf,O.createProxy=Uo,O.createQueryParams=Ji,O.deepMerge=Bn,O.deleteItem=Uf,O.downloadItems=jf,O.fromFilterFnToFilter=S0,O.fromFilterToFilterFn=bo,O.getDefaultValues=Ka,O.getInfo=Wf,O.getItem=Vf,O.getItems=Gf,O.getProps=zr,O.getUser=Df,O.getValidationSchema=ml,O.getValue=Yi,O.getValueOrDefault=Wa,O.initialState=jo,O.isEnumArrayControl=cm,O.isJsonControl=fm,O.isSchemaTypeInclude=lr,O.isTruthy=ti,O.mantineArrayControlTester=lm,O.mantineBooleanCellTester=Bh,O.mantineBooleanControlTester=mm,O.mantineCells=Wm,O.mantineDateCellTester=Uh,O.mantineDateControlTester=vm,O.mantineDateTimeCellTester=Wh,O.mantineDateTimeControlTester=_m,O.mantineEnumArrayRendererTester=dm,O.mantineEnumCellTester=Gh,O.mantineEnumControlTester=wm,O.mantineHorizontalLayoutTester=Bm,O.mantineIntegerCellTester=Yh,O.mantineIntegerControlTester=Cm,O.mantineJsonControlTester=xm,O.mantineNumberCellTester=Kh,O.mantineNumberControlTester=Om,O.mantineOneOfEnumCellTester=Rh,O.mantineOneOfEnumControlTester=Pm,O.mantineRenderers=Vm,O.mantineTextCellTester=Xh,O.mantineTextControlTester=Mm,O.mantineVerticalLayoutTester=Um,O.normalProps=Ou,O.normalize=xf,O.overlayProps=Iu,O.parseFromValuesOrFunc=ft,O.parseValue=ja,O.postBulk=qf,O.updateItem=Hf,O.updateUser=kf,O.uploadItems=Yf,O.urlJoin=it,O.useActionIcon=ar,O.useApi=Ae,O.useAuth=$r,O.useBooleanProps=rh,O.useBulkActions=lb,O.useCommonProps=In,O.useContextProps=_n,O.useCustomFetch=h1,O.useDateProps=cs,O.useDebouncedChange=lT,O.useForms=zn,O.useInfo=Of,O.useJsonProps=$h,O.useMultiSelectProps=Mh,O.useNumberProps=Fh,O.useProvideApi=bd,O.useProvideAuth=Nf,O.useProvideBulk=_d,O.useProvideForm=yl,O.useProvideInfo=Lf,O.useProxy=qi,O.useSelectProps=fs,O.useTextProps=Dh,O.useTrueOnce=Id,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
|