tocco-legacy-bundle 3.13.111 → 3.13.113

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.
@@ -47,4 +47,4 @@ const{entries:r,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescr
47
47
  * LICENSE.md file in the root directory of this source tree.
48
48
  *
49
49
  * @license MIT
50
- */function i(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}new WeakMap;function u(e,t,n="/"){return l(e,t,n,!1)}function l(e,t,n,r){let o=j(("string"==typeof t?c(t):t).pathname||"/",n);if(null==o)return null;let i=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=A(o);a=x(i[e],t,r)}return a}function d(e,t=[],n=[],r="",o=!1){let a=(e,a,s=o,c)=>{let u={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&s)return;i(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let l=M([r,u.relativePath]),p=n.concat(u);e.children&&e.children.length>0&&(i(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),d(e.children,t,p,l,s)),(null!=e.path||e.index)&&t.push({path:l,score:w(l,e.index),routesMeta:p})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of p(e.path))a(e,t,!0,n);else a(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=p(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var f=/^:[\w-]+$/,m=3,h=2,g=1,v=10,y=-2,b=e=>"*"===e;function w(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=y),t&&(r+=h),n.filter((e=>!b(e))).reduce(((e,t)=>e+(f.test(t)?m:""===t?g:v)),r)}function x(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),d=s.route;if(!l&&c&&n&&!r[r.length-1].route.index&&(l=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:M([i,l.pathname]),pathnameBase:I(M([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=M([i,l.pathnameBase]))}return a}function O(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=k(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function k(e,t=!1,n=!0){a("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return a(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P=e=>S.test(e);function E(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function D(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function T(e){let t=_(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function C(e,t,n,r=!1){let o;"string"==typeof e?o=c(e):(o={...e},i(!o.pathname||!o.pathname.includes("?"),D("?","pathname","search",o)),i(!o.pathname||!o.pathname.includes("#"),D("#","pathname","hash",o)),i(!o.search||!o.search.includes("#"),D("#","search","hash",o)));let s,u=""===e||""===o.pathname,l=u?"/":o.pathname;if(null==l)s=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?c(e):e;if(r)if(P(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),a(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?E(r.substring(1),"/"):E(r,t)}else n=t;return{pathname:n,search:N(o),hash:R(i)}}(o,s),p=l&&"/"!==l&&l.endsWith("/"),f=(u||"."===l)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}var M=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var F=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function H(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function B(e,t){let n=e;if("string"!=typeof n||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(W)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=j(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){a(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var z=["POST","PUT","PATCH","DELETE"],Y=(new Set(z),["GET",...z]);new Set(Y),Symbol("ResetLoaderData");var V=o.createContext(null);V.displayName="DataRouter";var U=o.createContext(null);U.displayName="DataRouterState";var q=o.createContext(!1);function $(){return o.useContext(q)}var G=o.createContext({isTransitioning:!1});G.displayName="ViewTransition";var K=o.createContext(new Map);K.displayName="Fetchers";var Q=o.createContext(null);Q.displayName="Await";var J=o.createContext(null);J.displayName="Navigation";var X=o.createContext(null);X.displayName="Location";var Z=o.createContext({outlet:null,matches:[],isDataRoute:!1});Z.displayName="Route";var ee=o.createContext(null);ee.displayName="RouteError";var te=!0,ne="REACT_ROUTER_ERROR",re="REDIRECT";function oe(){return null!=o.useContext(X)}function ie(){return i(oe(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(X).location}var ae="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function se(e){o.useContext(J).static||o.useLayoutEffect(e)}function ce(){let{isDataRoute:e}=o.useContext(Z);return e?function(){let{router:e}=be("useNavigate"),t=xe("useNavigate"),n=o.useRef(!1);return se((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{a(n.current,ae),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){i(oe(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(V),{basename:t,navigator:n}=o.useContext(J),{matches:r}=o.useContext(Z),{pathname:s}=ie(),c=JSON.stringify(T(r)),u=o.useRef(!1);return se((()=>{u.current=!0})),o.useCallback(((r,o={})=>{if(a(u.current,ae),!u.current)return;if("number"==typeof r)return void n.go(r);let i=C(r,JSON.parse(c),s,"path"===o.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:M([t,i.pathname])),(o.replace?n.replace:n.push)(i,o.state,o)}),[t,n,c,s,e])}()}o.createContext(null);function ue(e,{relative:t}={}){let{matches:n}=o.useContext(Z),{pathname:r}=ie(),i=JSON.stringify(T(n));return o.useMemo((()=>C(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function le(e,t,n,r,s){i(oe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=o.useContext(J),{matches:d}=o.useContext(Z),p=d[d.length-1],f=p?p.params:{},m=p?p.pathname:"/",h=p?p.pathnameBase:"/",g=p&&p.route;if(te){let e=g&&g.path||"";Ae(m,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,y=ie();if(t){let e="string"==typeof t?c(t):t;i("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=y;let b=v.pathname||"/",w=b;if("/"!==h){let e=h.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=u(e,{pathname:w});te&&(a(g||null!=x,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),a(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let O=ve(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:M([h,l.encodeLocation?l.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:M([h,l.encodeLocation?l.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),d,n,r,s);return t&&O?o.createElement(X.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},O):O}function de(){let e=Oe(),t=L(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return te&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,s)}var pe=o.createElement(de,null),fe=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ne}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new F(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(Z.Provider,{value:this.props.routeContext},o.createElement(ee.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(he,{error:e},t):t}};fe.contextType=q;var me=new WeakMap;function he({children:e,error:t}){let{basename:n}=o.useContext(J);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ne}:${re}:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=me.get(t);if(r)throw r;let i=B(e.location,n);if(W&&!me.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw me.set(t,n),n}window.location.href=i.absoluteURL||i.to}return o.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ge({routeContext:e,match:t,children:n}){let r=o.useContext(V);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(Z.Provider,{value:e},n)}function ve(e,t=[],n=null,r=null,a=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let s=e,c=n?.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));i(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,l=-1;if(n)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){u=!0,s=l>=0?s.slice(0,l+1):[s[0]];break}}}let d=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:H(n.matches),errorInfo:t})}:void 0;return s.reduceRight(((e,r,i)=>{let a,p=!1,f=null,m=null;n&&(a=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||pe,u&&(l<0&&0===i?(Ae("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===i&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?f:p?m:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(ge,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(fe,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):g()}),null)}function ye(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function be(e){let t=o.useContext(V);return i(t,ye(e)),t}function we(e){let t=o.useContext(U);return i(t,ye(e)),t}function xe(e){let t=function(e){let t=o.useContext(Z);return i(t,ye(e)),t}(e),n=t.matches[t.matches.length-1];return i(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Oe(){let e=o.useContext(ee),t=we("useRouteError"),n=xe("useRouteError");return void 0!==e?e:t.errors?.[n]}var ke={};function Ae(e,t,n){t||ke[e]||(ke[e]=!0,a(!1,n))}var je={};function Se(e,t){e||je[t]||(je[t]=!0,console.warn(t))}(r||(r=n.t(o,2))).useOptimistic;o.memo((function({routes:e,future:t,state:n,onError:r}){return le(e,void 0,n,r,t)}));o.Component;var Pe="get",Ee="application/x-www-form-urlencoded";function De(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var _e=null;var Te=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ce(e){return null==e||Te.has(e)?e:(a(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null)}function Me(e,t){let n,r,o,i,a;if(function(e){return De(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?j(a,t):null,n=e.getAttribute("method")||Pe,o=Ce(e.getAttribute("enctype"))||Ee,i=new FormData(e)}else if(function(e){return De(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return De(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?j(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Pe,o=Ce(e.getAttribute("formenctype"))||Ce(a.getAttribute("enctype"))||Ee,i=new FormData(a,e),!function(){if(null===_e)try{new FormData(document.createElement("form"),0),_e=!1}catch(e){_e=!0}return _e}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(De(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pe,r=null,o=Ee,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Ie(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ne(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===j(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Re(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Fe(e){return null!=e&&"string"==typeof e.page}function Le(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function He(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===i?t.filter(((t,i)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function We(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Be(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Fe(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function ze(e,t){return"lazy"===e.mode&&!0===t}function Ye(){let e=o.useContext(V);return Ie(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ve(){let e=o.useContext(U);return Ie(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ue=o.createContext(void 0);function qe(){let e=o.useContext(Ue);return Ie(e,"You must render this element inside a <HydratedRouter> element"),e}function $e(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ge(e,t,n){if(n&&!Xe)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Ue.displayName="FrameworkContext";function Ke({page:e,...t}){let{router:n}=Ye(),r=o.useMemo((()=>u(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(Je,{page:e,matches:r,...t}):null}function Qe(e){let{manifest:t,routeModules:n}=qe(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return Be((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Re(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Le).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function Je({page:e,matches:t,...n}){let r=ie(),{future:i,manifest:a,routeModules:s}=qe(),{basename:c}=Ye(),{loaderData:u,matches:l}=Ve(),d=o.useMemo((()=>He(e,t,l,a,r,"data")),[e,t,l,a,r]),p=o.useMemo((()=>He(e,t,l,a,r,"assets")),[e,t,l,a,r]),f=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in u&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=Ne(e,c,i.unstable_trailingSlashAwareDataRequests,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,i.unstable_trailingSlashAwareDataRequests,u,r,a,d,t,e,s]),m=o.useMemo((()=>We(p,a)),[p,a]),h=Qe(p);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var Xe=!1;function Ze(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:s}=qe(),{router:c,static:l,staticContext:d}=Ye(),{matches:p}=Ve(),f=$(),m=ze(a,s);i&&(i.didRenderScripts=!0);let h=Ge(p,null,r);o.useEffect((()=>{!0}),[]);let g=o.useMemo((()=>{if(f)return null;let r=d?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${m?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Ie(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:c,module:u}=o,l=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===l.length?`import * as ${r} from ${JSON.stringify(u)};`:[l.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${l.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${m?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=u(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))}),[]),v=Xe||f?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(We(h,t,{includeHydrateFallback:!0}))),y="object"==typeof t.sri?t.sri:{};return Se(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xe||f?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,m?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),g)}function et(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function tt({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(L(e))return o.createElement(nt,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),te?r:null);if(e instanceof Error)e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(nt,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function nt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=qe();return i.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(Ze,null):null)))}var rt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rt&&(window.__reactRouterVersion="7.12.0")}catch(e){}var ot=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,it=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:c,state:u,target:l,to:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},g){let{basename:v,unstable_useTransitions:y}=o.useContext(J),b="string"==typeof d&&ot.test(d),w=B(d,v),x=function(e,{relative:t}={}){i(oe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(J),{hash:a,pathname:s,search:c}=ue(e,{relative:t}),u=s;return"/"!==n&&(u="/"===s?n:M([n,s])),r.createHref({pathname:u,search:c,hash:a})}(d=w.to,{relative:r}),[O,k,A]=function(e,t){let n=o.useContext(Ue),[r,i]=o.useState(!1),[a,s]=o.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),s(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:$e(c,m),onBlur:$e(u,h),onMouseEnter:$e(l,m),onMouseLeave:$e(d,h),onTouchStart:$e(p,m)}]:[!1,f,{}]}(n,h),j=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:u,unstable_useTransitions:l}={}){let d=ce(),p=ie(),f=ue(e,{relative:a});return o.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:s(p)===s(f),h=()=>d(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:u});l?o.startTransition((()=>h())):h()}}),[p,d,f,n,r,t,e,i,a,c,u,l])}(d,{replace:c,state:u,target:l,preventScrollReset:p,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:y});let S=o.createElement("a",{...h,...A,href:w.absoluteURL||x,onClick:w.isExternal||a?e:function(t){e&&e(t),t.defaultPrevented||j(t)},ref:et(g,k),target:l,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,S,o.createElement(Ke,{page:x})):S}));it.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:s,viewTransition:c,children:u,...l},d){let p=ue(s,{relative:l.relative}),f=ie(),m=o.useContext(U),{navigator:h,basename:g}=o.useContext(J),v=null!=m&&function(e,{relative:t}={}){let n=o.useContext(G);i(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ct("useViewTransitionState"),a=ue(e,{relative:t});if(!n.isTransitioning)return!1;let s=j(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=j(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=O(a.pathname,c)||null!=O(a.pathname,s)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=j(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),P={isActive:A,isPending:S,isTransitioning:v},E=A?e:void 0;k="function"==typeof n?n(P):[n,A?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof a?a(P):a;return o.createElement(it,{...l,"aria-current":E,className:k,ref:d,style:D,to:s,viewTransition:c},"function"==typeof u?u(P):u)})).displayName="NavLink";var at=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:c,method:u=Pe,action:l,onSubmit:d,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:h,...g},v)=>{let{unstable_useTransitions:y}=o.useContext(J),b=dt(),w=function(e,{relative:t}={}){let{basename:n}=o.useContext(J),r=o.useContext(Z);i(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),c={...ue(e||".",{relative:t})},u=ie();if(null==e){c.search=u.search;let e=new URLSearchParams(c.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();c.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(c.pathname="/"===c.pathname?n:M([n,c.pathname]));return s(c)}(l,{relative:p}),x="get"===u.toLowerCase()?"get":"post",O="string"==typeof l&&ot.test(l);return o.createElement("form",{ref:v,method:x,action:w,onSubmit:r?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||u,s=()=>b(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:c,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:h});y&&!1!==n?o.startTransition((()=>s())):s()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function st(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ct(e){let t=o.useContext(V);return i(t,st(e)),t}at.displayName="Form";var ut=0,lt=()=>`__${String(++ut)}__`;function dt(){let{router:e}=ct("useSubmit"),{basename:t}=o.useContext(J),n=xe("useRouteId"),r=e.fetch,i=e.navigate;return o.useCallback((async(e,o={})=>{let{action:a,method:s,encType:c,formData:u,body:l}=Me(e,t);if(!1===o.navigate){let e=o.fetcherKey||lt();await r(e,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:l,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:l,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(t,{A:()=>r})},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725:(e,t,n)=>{"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function c(e){return e instanceof o(e).HTMLElement}function u(e){return e instanceof o(e).Element}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(s())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let d=1,f=1;t&&c(e)&&(d=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);const h=u(e)?o(e):window,g=!p()&&n,v=(l.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(l.top+(g&&null!=(a=null==(s=h.visualViewport)?void 0:s.offsetTop)?a:0))/f,b=l.width/d,w=l.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e);return l(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:c(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,c=t.concat(s);return i?c:c.concat(b(s))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,l=c||i?[...u(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];l.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),u(e)&&!s&&p.observe(e),u(e)||!e.contextElement||s||p.observe(e.contextElement),p.observe(t)}let f=s?h(e):null;return s&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}},92149:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class c extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,s),i=a({target:this._targetNode.current,element:this._elementParentNode},o),c=n||"";if(this._elementParentNode&&this._elementParentNode.id!==c&&(this._elementParentNode.id=c),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346:(e,t,n)=>{"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>s,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>c,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(c)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const c=o[i],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?s:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},c=e.map((e=>e(s)));return a=p(...c)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{18:"5761c8672ba902286aed",88:"6388a4c7e812b6666b8e",103:"e3d586a1d96f63e23c41",211:"52bf6879291a7709cdc6",222:"e38ef16ead1de0aa552e",235:"15d1b33ac74058a63a58",236:"5d946e8a17d77c8e01ff",262:"436ce717c7666685c801",264:"b1e5225cdd66ea303c49",310:"f910414ac389c93d50ec",599:"06dcc4dc35a480c79547",672:"ece0442ff23d12aec226",722:"84527e56c8f6db176c2d",726:"9718edbdeb5af50d2384",770:"9fd06dc1168e57b471bb",916:"6512790ea8c06abcac16"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-legacy-bundle:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.j=746,c.p="/",(()=>{var e={746:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_legacy_bundle=this.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>ro});var e=c(61402),t=c(26396),n=c.n(t),r=c(5556),o=c.n(r),i=c(88951),a=c(13128),s=c(59042),l=c(72942),d=c(74112),p=c(82682),f=c(38159),m=c(4883),h=c.n(m),g={"input-edit-info":(0,m.lazy)((function(){return Promise.all([c.e(18),c.e(235),c.e(726),c.e(599),c.e(88),c.e(236)]).then(c.bind(c,12016))})),"exam-edit":(0,m.lazy)((function(){return Promise.all([c.e(18),c.e(235),c.e(726),c.e(599),c.e(88),c.e(236)]).then(c.bind(c,50250))}))};const v=a.A.actionFactory(g);var y=c(71468),b="inputEditSearch/INITIALIZE_SEARCH",w="inputEditSearch/SET_FORM",x="inputEditSearch/SET_SEARCH_QUERIES",O="inputEditSearch/SET_INITIALIZED",k=function(e){return{type:w,payload:{form:e}}},A=function(e){return{type:O,payload:{initialized:e}}},j="inputEditTable/INITIALIZE_TABLE",S="inputEditTable/LOAD_DATA",P="inputEditTable/SET_DATA",E="inputEditTable/SET_EDIT_FORM",D="inputEditTable/UPDATE_VALUE",_="inputEditTable/SET_VALUE",T="inputEditTable/SET_DATA_FORM_COLUMNS",C="inputEditTable/SET_ACTION_DEFINITIONS",M="inputEditTable/SET_CALCULATING",I="inputEditTable/SET_INITIALIZED",N=function(){return{type:j}},R=function(e){return{type:P,payload:{data:e}}},F=function(e){return{type:E,payload:e}},L=function(e,t,n){return{type:_,payload:{inputDataKey:e,node:t,value:n}}},H=function(e){return{type:T,payload:{dataFormColumns:e}}},W=function(e){return{type:C,payload:{actionDefinitions:e}}},B=function(e,t){return{type:M,payload:{inputData:e,loading:t}}},z=function(e){return{type:I,payload:{initialized:e}}},Y=c(22056),V=c.n(Y),U=c(39892),q=c.n(U),$=c(62764),G=c(74848),K=["icon","label","onClick"];function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const J=function(e){var t=e.icon,r=e.label,o=e.onClick,i=q()(e,K);return(0,G.jsx)($.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({icon:t||"arrow-left",label:r,onClick:o,"data-cy":"btn-back"},i))};var X=function(){return window.innerWidth},Z="top",ee="left",te={sidepanelPosition:ee,isCollapsed:!1,toggleCollapse:function(){},scrollBehaviour:"none"},ne=h().createContext(te),re=function(){return(0,m.useContext)(ne)};const oe=function(e){var t=e.children,n=e.sidepanelPosition,r=void 0===n?Z:n,o=e.sidepanelCollapsed,i=void 0!==o&&o,a=e.setSidepanelCollapsed,s=void 0===a?function(){}:a,c=e.scrollBehaviour,u=void 0===c?"none":c,l=function(e,t){var n=(0,m.useState)(e),r=V()(n,2),o=r[0],i=r[1],a=(0,m.useState)(X()),s=V()(a,2),c=s[0],u=s[1];(0,m.useEffect)((function(){var e=function(){u(X())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[c]),(0,m.useEffect)((function(){i(c<768||e)}),[c,e]);var l=(0,m.useCallback)((function(){i(!o),X()>768&&t(!o)}),[o,t]);return{isCollapsed:o,toggleCollapse:l}}(i,s),d=l.isCollapsed,p=l.toggleCollapse,f=(0,m.useMemo)((function(){return{sidepanelPosition:r,isCollapsed:r===ee&&d,toggleCollapse:p,scrollBehaviour:u}}),[d,p,r,u]);return(0,G.jsx)(ne.Provider,{value:f,children:t})};var ie,ae,se,ce,ue,le,de,pe,fe,me,he=c(72189),ge=c.n(he),ve=c(51510),ye=c(50098),be=c(99978),we=c(26166),xe=c(47616),Oe=we.A.space(-2.25),ke=ve.Ay.div.withConfig({displayName:"TopPositioning"})(ie||(ie=ge()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template:\n 'sidepanel' min-content\n 'content' minmax(auto, 1fr)\n / minmax(100%, 700px);\n"]))),Ae=ve.Ay.div.withConfig({displayName:"LeftPositioning"})(ae||(ae=ge()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),je=ve.Ay.div.withConfig({displayName:"StyledSidepanel"})(se||(se=ge()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),ke,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),Se=ve.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(ce||(ce=ge()(["\n grid-area: content;\n display: flex;\n padding: ",";\n"])),f.A.isInAdminEmbedded()?"0":Oe),Pe=ve.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(ue||(ue=ge()(["\n display: flex; /* enables StyledSidepanelCollapsed to take full height */\n flex-direction: column;\n height: 100%;\n overflow: hidden auto;\n background-color: ",";\n"])),xe.A.color("paper")),Ee=ve.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(le||(le=ge()([""]))),De=ve.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(de||(de=ge()(["\n display: ",";\n height: 100%;\n overflow: ",";\n padding: ",";\n"])),(function(e){return e.isCollapsed?"none":"block"}),f.A.isInAdminEmbedded()?"hidden":"auto",f.A.isInAdminEmbedded()?"0":Oe),_e=ve.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(pe||(pe=ge()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),xe.A.color("paper"),we.A.space(-.5),we.A.space(-2.5)),Te=(0,ve.Ay)(ye.A).withConfig({displayName:"StyledToggleCollapseButton"})(fe||(fe=ge()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),we.A.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),_e,xe.A.color("secondaryLight")),Ce=ve.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(me||(me=ge()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n\n "," {\n z-index: 3; /* higher than rest to lay over search filter list */\n }\n"])),xe.A.color("paper"),xe.A.color("backgroundBody"),we.A.space(-.53),be.A);const Me=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i="left"===r?Ae:ke;return(0,G.jsx)(i,{windowWidth:window.innerWidth,isCollapsed:o,children:t})};const Ie=function(e){var t=e.children,n=e.sidepanelPosition,r=e.sidepanelCollapsed,o=e.setSidepanelCollapsed,i=e.scrollBehaviour;return(0,G.jsx)(oe,{sidepanelPosition:n,sidepanelCollapsed:r,setSidepanelCollapsed:o,scrollBehaviour:i,children:(0,G.jsx)(Me,{children:t})})};const Ne=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse,a=n.scrollBehaviour,s=r===ee?Pe:Ee;return(0,G.jsx)(je,{sidepanelPosition:r,scrollBehaviour:a,children:(0,G.jsxs)(s,{children:[(0,G.jsx)(De,{isCollapsed:o,children:t}),"left"===r&&(0,G.jsx)(_e,{onClick:i,isCollapsed:o,children:(0,G.jsx)(Te,{icon:"chevron-right",isCollapsed:o})})]})})};const Re=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse;return"left"!==r?null:(0,G.jsxs)(Ce,{children:[(0,G.jsx)(Te,{icon:"chevron-left",isCollapsed:o,onClick:i}),t]})};var Fe;const Le=ve.Ay.div.withConfig({displayName:"ActionBarContainer"})(Fe||(Fe=ge()(["\n display: grid;\n grid-template-rows: [action-start] auto [table-start] minmax(0, 1fr);\n height: 100%;\n width: 100%;\n"])));const He=function(e){var t=e.actionBar,n=e.children,r=t?(0,G.jsx)(Le,{children:n}):n;return(0,G.jsx)(Se,{children:r})};var We;const Be=ve.Ay.div.withConfig({displayName:"ActionBar"})(We||(We=ge()(["\n display: flex;\n background-color: ",";\n margin-bottom: 3px;\n padding: 8px;\n grid-row-start: action-start;\n flex-wrap: wrap;\n"])),xe.A.color("paper"));var ze,Ye=c(17819);const Ve=ve.Ay.div.withConfig({displayName:"ActionBarMainContent"})(ze||(ze=ge()(["\n grid-row-start: table-start;\n\n "," {\n overflow-x: hidden;\n }\n"])),Ye.dm);var Ue=c(38798),qe=c(38221),$e=c.n(qe),Ge=c(21259),Ke=c.n(Ge),Qe=c(85735),Je=c.n(Qe),Xe=c(16172),Ze=c(23805),et=c.n(Ze),tt=c(47383),nt=c(6463),rt=c(92705),ot=c(88315),it=c(12541),at=c(58161);function st(e,t,n){const r=(0,at.q)(),o=function(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?function(e,t){const n=e.formatToParts(t);for(let e=n.length-1;e>=0;--e)if("timeZoneName"===n[e].type)return n[e].value;return}(o,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(o,t)}function ct(e,t){const n=function(e){lt[e]||(lt[e]=pt?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return lt[e]}(t);return"formatToParts"in n?function(e,t){try{const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const t=ut[n[e].type];void 0!==t&&(r[t]=parseInt(n[e].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}(n,e)}const ut={year:0,month:1,day:2,hour:3,minute:4,second:5};const lt={},dt=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),pt="06/25/2014, 00:00:00"===dt||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===dt;function ft(e,t,n,r,o,i,a){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}const mt=36e5,ht=6e4,gt={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function vt(e,t,n){if(!e)return 0;let r,o,i=gt.timezoneZ.exec(e);if(i)return 0;if(i=gt.timezoneHH.exec(e),i)return r=parseInt(i[1],10),bt(r)?-r*mt:NaN;if(i=gt.timezoneHHMM.exec(e),i){r=parseInt(i[2],10);const e=parseInt(i[3],10);return bt(r,e)?(o=Math.abs(r)*mt+e*ht,"+"===i[1]?-o:o):NaN}if(function(e){if(wt[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wt[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());const r=n?t:function(e){return ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),o=yt(r,e),i=n?o:function(e,t,n){const r=e.getTime();let o=r-t;const i=yt(new Date(o),n);if(t===i)return t;o-=i-t;const a=yt(new Date(o),n);if(i===a)return i;return Math.max(i,a)}(t,o,e);return-i}return NaN}function yt(e,t){const n=ct(e,t),r=ft(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function bt(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}const wt={};const xt={X:function(e,t,n){const r=Ot(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return jt(r);case"XXXX":case"XX":return At(r);default:return At(r,":")}},x:function(e,t,n){const r=Ot(n.timeZone,e);switch(t){case"x":return jt(r);case"xxxx":case"xx":return At(r);default:return At(r,":")}},O:function(e,t,n){const r=Ot(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);return n+String(o)+t+kt(i,2)}(r,":");default:return"GMT"+At(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return st("short",e,n);default:return st("long",e,n)}}};function Ot(e,t){const n=e?vt(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function kt(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function At(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+kt(Math.floor(r/60),2)+t+kt(Math.floor(r%60),2)}function jt(e,t){if(e%60==0){return(e>0?"-":"+")+kt(Math.abs(e)/60,2)}return At(e,t)}function St(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Pt=36e5,Et=6e4,Dt=2,_t={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Tt(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);const n=null==t.additionalDigits?Dt:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);const r=function(e){const t={};let n,r=_t.dateTimePattern.exec(e);r?(t.date=r[1],n=r[3]):(r=_t.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e));if(n){const e=_t.timeZone.exec(n);e?(t.time=n.replace(e[1],""),t.timeZone=e[1].trim()):t.time=n}return t}(e),{year:o,restDateString:i}=function(e,t){if(e){const n=_t.YYY[t],r=_t.YYYYY[t];let o=_t.YYYY.exec(e)||r.exec(e);if(o){const t=o[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(o=_t.YY.exec(e)||n.exec(e),o){const t=o[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),a=function(e,t){if(null===t)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=_t.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Rt(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=_t.DDD.exec(e),i){n=new Date(0);const e=parseInt(i[1],10);return function(e,t){if(t<1)return!1;const n=Nt(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,e)?(n.setUTCFullYear(t,0,e),n):new Date(NaN)}if(i=_t.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const e=parseInt(i[2],10);return Rt(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(NaN)}if(i=_t.Www.exec(e),i)return o=parseInt(i[1],10)-1,Ft(o)?Ct(t,o):new Date(NaN);if(i=_t.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const e=parseInt(i[2],10)-1;return Ft(o,e)?Ct(t,o,e):new Date(NaN)}return null}(i,o);if(null===a||isNaN(a.getTime()))return new Date(NaN);if(a){const e=a.getTime();let n,o=0;if(r.time&&(o=function(e){let t,n,r=_t.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Lt(t)?t%24*Pt:NaN;if(r=_t.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Lt(t,n)?t%24*Pt+n*Et:NaN;if(r=_t.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const e=parseFloat(r[3].replace(",","."));return Lt(t,n,e)?t%24*Pt+n*Et+1e3*e:NaN}return null}(r.time),null===o||isNaN(o)))return new Date(NaN);if(r.timeZone||t.timeZone){if(n=vt(r.timeZone||t.timeZone,new Date(e+o)),isNaN(n))return new Date(NaN)}else n=St(new Date(e+o)),n=St(new Date(e+o+n));return new Date(e+o+n)}return new Date(NaN)}function Ct(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}const Mt=[31,28,31,30,31,30,31,31,30,31,30,31],It=[31,29,31,30,31,30,31,31,30,31,30,31];function Nt(e){return e%400==0||e%4==0&&e%100!=0}function Rt(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;const r=Nt(e);if(r&&n>It[t])return!1;if(!r&&n>Mt[t])return!1}return!0}function Ft(e,t){return!(e<0||e>52)&&(null==t||!(t<0||t>6))}function Lt(e,t,n){return!(e<0||e>=25)&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}const Ht=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Wt(e,t,n,r){return function(e,t,n={}){const r=(t=String(t)).match(Ht);if(r){const o=Tt(n.originalDate||e,n);t=r.reduce((function(e,t){if("'"===t[0])return e;const r=e.indexOf(t),i="'"===e[r-1],a=e.replace(t,"'"+xt[t[0]](o,t,n)+"'");return i?a.substring(0,r-1)+a.substring(r+1):a}),t)}return(0,it.GP)(e,t,n)}(function(e,t,n){const r=vt(t,e=Tt(e,n),!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}(e,t,{timeZone:(r={...r,timeZone:t,originalDate:e}).timeZone}),n,r)}var Bt="yyyy-MM-dd",zt="yyyy-MM-dd HH:mm",Yt=function(e){return(0,rt.u)(e,Bt)?(0,ot.qg)(e,Bt,new Date):(0,rt.u)(e,zt)?(0,ot.qg)(e,zt,new Date):(0,rt.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,rt.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?new Date(e):NaN},Vt=function(e){return tt.A.isDefined(e)&&""!==e},Ut=function(e,t,n){return[].concat(Ke()(Vt(e.from)?[t(n,e.from,">=")]:[]),Ke()(Vt(e.to)?[t(n,e.to,e.exclusive?"<":"<=")]:[])).join(" and ")},qt=function(e){return e&&"object"===Je()(e)&&e.isRangeValue},$t=function(e,t,n){return"(".concat(e.map((function(e){return n(e,t,"==")})).join(" or "),")")},Gt=function(e){switch(e){case"datetime":case"createts":case"updatets":return function(e){if(qt(e))return e;var t=function(e){return(0,nt.o)(Yt(e))}(e);return isNaN(t)?e:{from:t.toISOString(),to:(0,Xe.f)(t,1).toISOString(),isRangeValue:!0,exclusive:!0}};default:return function(e){return e}}},Kt=function(e){var t;((null===(t=e.match(/"/g))||void 0===t?void 0:t.length)||0)%2!=0&&(e+='"');var n=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\//g,"\\\\/")}(e),r=e.endsWith(" "),o=e.endsWith('"'),i=e.endsWith("*"),a=e.endsWith("?"),s=e.endsWith(")"),c=e.endsWith("]")||e.endsWith("}"),u=/^.* [0-9.,]+/.test(e);return o||i||a||r||s||u||c?'"'.concat(n,'"'):'"('.concat(n,") OR (").concat(n,'*)"')},Qt=function(e){switch(e){case"multi-select-box":case"multi-remote-field":return function(e,t){return'KEYS("'.concat(e,'",').concat(t.map((function(e){return e.key})).join(","),")")};case"single-remote-field":case"single-select-box":return function(e,t){return"".concat(e,".pk == ").concat(t.key)};case"fulltext-search":return function(e,t){return"txtFulltext"===e?"fulltext(".concat(Kt(t),")"):"fulltext(".concat(Kt(t),", ").concat(e,")")};case"birthdate":case"date":case"create_timestamp":return function(e,t,n){return"".concat(e," ").concat(n,' date:"').concat(t,'"')};case"datetime":case"createts":case"updatets":return function(e,t,n){return"".concat(e," ").concat(n,' datetime:"').concat(function(e){return Wt(e,"UTC",zt)}(Yt(t)),'"')};case"time":return function(e,t,n){return"".concat(e," ").concat(n,' time:"').concat(function(e){return(0,it.GP)(e,"HH:mm:ss.SSS")}(function(e){return(0,ot.qg)(e,"HH:mm",new Date)}(t)),'"')};case"compressed-text":case"identifier":case"string":case"text":case"html":case"createuser":case"updateuser":case"login":case"email":case"phone":case"postcode":case"format":return function(e,t){return"".concat(e,' ~= "*').concat(t,'*"')};case"boolean":return function(e,t){return Vt(t)?"".concat(e," == ").concat(t):null};case"marking":return function(e,t){return!1===t?"not exists(".concat(e,")"):"exists(".concat(e,")")};case"geosearch":return function(e,t){return null!=t&&t.latitude&&null!=t&&t.longitude?"".concat(t.distance||0," > DISTANCE(").concat(t.latitudeField,", ").concat(t.longitudeField,', decimal:"').concat(t.latitude,'", decimal:"').concat(t.longitude,'")'):null};default:return function(e,t,n){return"".concat(e," ").concat(n," ").concat(t)}}},Jt=function(e){return et()(e)&&e.key?"single-select-box":Array.isArray(e)&&e.every((function(e){return!!e.key}))?"multi-select-box":"string"};const Xt=function(e,t,n){if(!Vt(t))return null;var r=n||Jt(t),o=(t=Gt(r)(t))&&"object"===Je()(t)&&t.localizedPaths,i=Qt(r);return qt(t)?Ut(t,i,e):o?$t(t.localizedPaths,t.value,i):i(e,t,"==")};var Zt,en,tn=c(46836),nn=c(53727),rn=ve.Ay.div.withConfig({displayName:"Box"})(Zt||(Zt=ge()(["\n background-color: ",";\n overflow-y: auto;\n padding: "," "," 0 ",";\n position: relative;\n\n &:first-of-type {\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n }\n"])),xe.A.color("paper"),we.A.space(-1.1),we.A.space(-.375),we.A.space(-1.1)),on=ve.Ay.div.withConfig({displayName:"StyledExtendSearchButtonWrapper"})(en||(en=ge()(["\n && {\n width: 100%;\n text-align: center;\n }\n"]))),an=function(e,t){return function(n){var r=n.values;if(Object.keys(r).length>0){var o=sn(r,e);t(o)}else t([])}},sn=function(e,t){return Object.entries(e).filter((function(e){var t=V()(e,1)[0];return!Object.values(tn.A.metaFields).includes(t)})).map((function(e){var n=V()(e,2),r=n[0],o=n[1];return{path:r,fieldType:cn(r,t),value:o}})).filter((function(e){var t=e.value;return t&&(!Array.isArray(t)||t.length>0)})).map((function(e){var t=e.path,n=e.fieldType,r=e.value;return Xt(t,r,n)})).filter((function(e){return e.length>0}))},cn=function(e,t){var n=t.children.find((function(e){return e.children.length>0}));if(n){var r=n.children.find((function(t){return t.id===e}));return r.children.length>0?r.children[0].dataType:r.dataType}};const un={BasicSearchForm:function(e){var t=e.intl,n=e.searchFormDefinition,r=e.setSearchFields,o=e.FormApp,i=f.A.isInAdminEmbedded(),a=(0,m.useState)(i),s=V()(a,2),c=s[0],u=s[1];if(!n.children)return null;var l,d=nn.A.getFieldDefinitions(n),p=d.filter((function(e){return!0===e.simpleSearch})).map((function(e){return e.path||e.id})),h=!i&&!d.every((function(e){return p.includes(e.id)}));return(0,G.jsxs)(rn,{children:[h&&(0,G.jsx)(on,{children:(0,G.jsx)(ye.A,{"data-cy":"btn-extend-search",icon:"chevron-".concat(c?"up":"down"),onClick:function(){u(!c)},title:(l="client.common.extendedSearch",t.formatMessage({id:l}))})}),(0,G.jsx)(o,{form:n,onChange:$e()(an(n,r),500),noButtons:!0,validate:!1,mappingType:"search",mode:"search",beforeRenderField:function(e){return c||p.includes(e)},labelPosition:"inside"})]})},StyledExtendSearchButtonWrapper:on};const ln=function(e){var t=e.intl,n=e.form,r=e.setSearchFields;return(0,G.jsx)(un.BasicSearchForm,{searchFormDefinition:n,setSearchFields:r,FormApp:d.A,intl:t})};var dn={setSearchFields:function(e){return{type:x,payload:{searchQueries:e}}}};const pn=(0,y.Ng)((function(e){return{form:e.inputEditSearch.form}}),dn)((0,Ue.Ay)(ln));var fn=c(25440),mn=c(80283);function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vn,yn=function(e){return!isNaN(parseInt(e))||"rating"===e},bn=function(e){return e.body.data.map((function(e){var t=Object.keys(e).reduce((function(t,r){return gn(gn({},t),yn(r)?{inputFields:gn(gn({},t.inputFields),{},n()({},r,e[r]))}:{entityFields:gn(gn({},t.entityFields),{},n()({},r,e[r]))})}),{inputFields:{},entityFields:{}});return gn(gn({},t.inputFields),tn.A.flattenPaths(t.entityFields))})).map((function(e,t){return gn(gn({},e),{},{__key:e.pk,index:t+1})}))},wn=c(92223),xn=c(69556);function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const kn=function(e){var t=e.column.readOnly,r=e.rowData.loading;return t&&r>0?vn||(vn=(0,G.jsx)(xn.A,{size:"1.8em",icon:"circle-notch-light"})):(0,G.jsx)(wn.A.EditableCellRenderer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?On(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):On(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))};var An,jn=ve.Ay.div.withConfig({displayName:"StyledInputEditTableWrapper"})(An||(An=ge()(["\n width: 100%;\n height: 100%;\n overflow: auto;\n\n td {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])));function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var En=function(e){return e.choiceOptions?e.choiceOptions:{debounceDelay:800}};const Dn=function(e){var t=e.data,n=e.dataFormColumns,r=e.inputEditForm,o=e.updateValue,i=e.loadData,a=e.dataLoadingInProgress,s=e.totalCount,c=e.recordsPerPage,u=(0,m.useState)(null),l=V()(u,2),d=l[0],p=l[1];(0,m.useEffect)((function(){var e,t,o=(e=n,t=r,nn.A.createSimpleForm({children:[nn.A.createTable({children:[].concat(Ke()(e.map((function(e){var t=e.children[0];return nn.A.createColumn(Pn(Pn({},e),{},{id:t.id,dataType:t.dataType,alignment:tn.A.getColumnAlignment(t),readonly:!0,sorting:{sortable:e.sortable}}))}))),Ke()(t.map((function(e){return nn.A.createColumn({label:e.label,id:e.id,dataType:e.dataType,readonly:e.readonly,validation:Pn(Pn({},e.decimalDigits?{decimalDigits:e.decimalDigits}:{}),e.numberRange?{numberRange:e.numberRange}:{}),options:En(e),clientRenderer:"input",alignment:tn.A.getColumnAlignment(e),dynamic:!0})}))))})]}));p(o)}),[n,r]);var h=(0,m.useMemo)((function(){return{input:kn}}),[]),g=f.A.isInAdminEmbedded();if(d){var v=r.filter((function(e){var t=e.id;return yn(t)})).map((function(e){return e.id}));return(0,G.jsx)(jn,{onKeyDown:mn.A.navigateTable(v),"data-cy":"input-edit-table",children:(0,G.jsx)(fn.A,{formDefinition:d,data:t,cellRenderers:h,onChange:function(e){var t=e.key,n=e.field,r=e.value;o(t,n,r)},recordsPerPage:c,totalCount:s,dataLoadingInProgress:a,onLoadData:i,scrollBehaviour:g?"inline":"none"})})}return null};var _n={updateValue:function(e,t,n){return{type:D,payload:{inputDataKey:e,node:t,value:n}}},loadData:function(e){return{type:S,payload:e}}};const Tn=(0,y.Ng)((function(e){return{data:e.inputEditTable.data,dataFormColumns:e.inputEditTable.dataFormColumns,inputEditForm:e.inputEditTable.inputEditForm,dataLoadingInProgress:e.inputEditTable.dataLoadingInProgress,totalCount:e.inputEditPagination.totalCount,recordsPerPage:e.inputEditPagination.recordsPerPage}}),_n)(Dn);var Cn,Mn,In,Nn,Rn=ve.Ay.div.withConfig({displayName:"StyledPaneWrapper"})(Cn||(Cn=ge()(["\n display: flex;\n height: 100%;\n flex-direction: column;\n"])));const Fn=function(e){var t=e.selection,n=e.onActionClick,r=e.handleNotifications,o=e.initializeTable,i=e.initializeSearch,s=e.actionDefinitions;(0,m.useEffect)((function(){o(),i()}),[t,o,i]);var c=(0,m.useState)(!1),u=V()(c,2),d=u[0],p=u[1],h={cancel:function(e){return(0,G.jsx)(J,{onClick:function(){return n(e)},icon:e.icon,label:e.label})}},g=s.map((function(e){return(0,G.jsx)(a.A.Action,{definition:e,selection:t,customRenderedActions:h},e.id)})),v=f.A.isInAdminEmbedded();return(0,G.jsxs)(G.Fragment,{children:[r&&(Mn||(Mn=(0,G.jsx)(l.A.Notifications,{}))),(0,G.jsx)(Rn,{children:(0,G.jsxs)(Ie,{sidepanelPosition:v?"left":"top",sidepanelCollapsed:d,setSidepanelCollapsed:p,scrollBehaviour:v?"inline":"none",children:[In||(In=(0,G.jsxs)(Ne,{children:[(0,G.jsx)(Re,{}),(0,G.jsx)(pn,{})]})),(0,G.jsxs)(He,{actionBar:!0,children:[(0,G.jsx)(Be,{children:g}),Nn||(Nn=(0,G.jsx)(Ve,{children:(0,G.jsx)(Tn,{})}))]})]})})]})};var Ln={initializeTable:N,initializeSearch:function(){return{type:b}},notify:l.A.toaster,onActionClick:a.A.actions.actionInvoke};const Hn=(0,y.Ng)((function(e){return{selection:e.input.selection,actionDefinitions:e.inputEditTable.actionDefinitions,handleNotifications:e.inputEdit.handleNotifications}}),Ln)(Fn);var Wn="inputEdit/SET_HANDLE_NOTIFICATIONS",Bn="inputEdit/SET_UPDATE_IN_PROGRESS",zn=function(e){return{type:Wn,payload:{handleNotifications:e}}},Yn=function(e){return{type:Bn,payload:{updateInProgress:e}}},Vn=c(29056),Un={handleNotifications:!1,updateInProgress:!1},qn=n()(n()({},Wn,Vn.A.singleTransferReducer("handleNotifications")),Bn,Vn.A.singleTransferReducer("updateInProgress"));const $n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Un,t=arguments.length>1?arguments[1]:void 0,n=qn[t.type];return n?n(e,t):e};var Gn=c(92207),Kn=c.n(Gn),Qn=c(90167),Jn=c(57327),Xn=Kn().mark(nr),Zn=Kn().mark(rr),er=Kn().mark(or),tr=function(e){return e.input};function nr(){return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Qn.Q7)([(0,Qn.p8)(e.A.INPUT_INITIALIZED,or),(0,Qn.p8)(a.A.actions.ACTION_INVOKED,rr)]);case 2:case"end":return t.stop()}}),Xn)}function rr(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.yJ)(N());case 2:case"end":return e.stop()}}),Zn)}function or(){var e,t;return Kn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qn.yJ)(Yn(!0));case 2:return n.next=4,(0,Qn.Lt)(tr);case 4:return e=n.sent,t=e.selection,n.next=8,(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/update-input-datas",{method:"POST",body:t});case 8:return n.next=10,(0,Qn.yJ)(Yn(!1));case 10:case"end":return n.stop()}}),er)}var ir="inputEditPagination/SET_TOTAL_COUNT",ar=function(e){return{type:ir,payload:{totalCount:e}}},sr={totalCount:0,recordsPerPage:25},cr=n()({},ir,Vn.A.singleTransferReducer("totalCount"));const ur=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sr,t=arguments.length>1?arguments[1]:void 0,n=cr[t.type];return n?n(e,t):e};var lr={form:{},initialized:!1,searchQueries:[]},dr=n()(n()(n()({},w,Vn.A.singleTransferReducer("form")),x,Vn.A.singleTransferReducer("searchQueries")),O,Vn.A.singleTransferReducer("initialized"));const pr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lr,t=arguments.length>1?arguments[1]:void 0,n=dr[t.type];return n?n(e,t):e};var fr=Kn().mark(mr);function mr(e,t,n,r,o,i,a){var s,c;return Kn().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return s=hr(r),c=Jn.A.buildRequestQuery({limit:i,sorting:n,page:a,where:o.join(" and "),paths:s}),u.next=4,(0,Qn.T1)(Jn.A.requestSaga,e,{method:"POST",body:{selection:t,searchBean:c}});case 4:return u.abrupt("return",u.sent);case 5:case"end":return u.stop()}}),fr)}var hr=function(e){return["pk"].concat(Ke()(e.flatMap((function(e){return e.children.map((function(e){return e.path}))}))))};const gr={requestData:mr};function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const br={splitDataForm:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return{actionDefinitions:e.children.find((function(e){return"main-action-bar"===e.id})).children.filter((function(e){return"action"===e.componentType})).filter((function(e){return!r.includes(e.id)})).filter((function(e){return!t||n.includes(e.id)})).map((function(e){return yr(yr({},e),{},{scope:"detail"})})),dataFormColumns:e.children.find((function(e){return"table"===e.componentType})).children}}};var wr=Kn().mark(Er),xr=Kn().mark(_r),Or=Kn().mark(Mr),kr=function(e){return e.input},Ar=function(e){return e.inputEdit},jr=function(e){return e.inputEditTable},Sr=function(e){return e.inputEditSearch.searchQueries},Pr=function(e){return e.inputEditPagination};function Er(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Q7)([(0,Qn.p8)(j,_r),(0,Qn.p8)(S,Tr),(0,Qn.jP)(D,Cr)]);case 2:case"end":return e.stop()}}),wr)}function Dr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Kn().mark((function o(){var i,a,s;return Kn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Qn.T1)(br.splitDataForm,e,t,n,r);case 2:return i=o.sent,a=i.actionDefinitions,s=i.dataFormColumns,o.next=7,(0,Qn.yJ)(W(a));case 7:return o.next=9,(0,Qn.yJ)(H(s));case 9:case"end":return o.stop()}}),o)}))()}function _r(){var e,t,n,r,o,i,a,s,c,u,d,p,f;return Kn().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,(0,Qn.Lt)(kr);case 2:return e=m.sent,t=e.actionProperties,n=e.selection,r=t&&t.inputEditDataForm?t.inputEditDataForm:"Input_edit_data",m.next=8,(0,Qn.Q7)([(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/form",{method:"POST",body:n}),(0,Qn.T1)(Jn.A.fetchForm,r,"list")]);case 8:if(o=m.sent,i=V()(o,2),a=i[0],s=i[1],c=a.body,u=c.editColumns,d=c.readonly,p=c.readonlyActions,f=c.hiddenActions,!d){m.next=17;break}return u.forEach((function(e){return e.readonly=!0})),m.next=17,(0,Qn.yJ)(l.A.toaster({type:"info",title:"client.actions.InputEdit.input_closed"}));case 17:return m.next=19,(0,Qn.yJ)(F({inputEditForm:u}));case 19:return m.next=21,(0,Qn.T1)(Dr,s,d,p,f);case 21:return m.next=23,(0,Qn.yJ)(z(!0));case 23:case"end":return m.stop()}}),xr)}function Tr(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).payload,t=void 0===e?{}:e,n=t.page,r=t.finishedLoading;return Kn().mark((function e(){var t,o,i,a,s,c,u,l,d,p,f,m;return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Lt)(Ar);case 2:if(t=e.sent,!t.updateInProgress){e.next=7;break}return e.next=7,(0,Qn.s)((function(e){var t=e.payload;return e.type===Bn&&!t.updateInProgress}));case 7:return e.next=9,(0,Qn.Lt)(jr);case 9:if(o=e.sent,o.initialized){e.next=14;break}return e.next=14,(0,Qn.s)((function(e){return e.type===I}));case 14:return e.next=16,(0,Qn.Lt)(kr);case 16:return i=e.sent,a=i.selection,e.next=20,(0,Qn.Lt)(jr);case 20:return s=e.sent,c=s.dataFormColumns,u=s.sorting,e.next=25,(0,Qn.Lt)(Sr);case 25:return l=e.sent,e.next=28,(0,Qn.Lt)(Pr);case 28:return d=e.sent,p=d.recordsPerPage,e.next=32,(0,Qn.T1)(gr.requestData,"inputEdit/data/search",a,u,c,l,p,n||1);case 32:return f=e.sent,e.next=35,(0,Qn.T1)(bn,f);case 35:return m=e.sent,e.next=38,(0,Qn.yJ)(R(m));case 38:return e.next=40,(0,Qn.yJ)(ar(f.body.count));case 40:if(!r){e.next=43;break}return e.next=43,(0,Qn.T1)(r);case 43:case"end":return e.stop()}}),e)}))()}function Cr(e){var t=e.payload,n=t.inputDataKey,r=t.node,o=t.value;return Kn().mark((function e(){var t;return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.yJ)(L(n,r,o));case 2:return e.next=4,(0,Qn.yJ)(B(n,!0));case 4:return e.next=6,(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/data",{method:"POST",body:{inputDataKey:n,node:r,value:o}});case 6:return t=e.sent,e.next=9,Mr(t,n);case 9:case"end":return e.stop()}}),e)}))()}function Mr(e,t){var n,r;return Kn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(n=e.body.calculatedValues)){o.next=5;break}return r=n.map((function(e){return L(e.inputDataKey,e.node,e.value)})),o.next=5,(0,Qn.Q7)(r.map((function(e){return(0,Qn.yJ)(e)})));case 5:return o.next=7,(0,Qn.yJ)(B(t,!1));case 7:case"end":return o.stop()}}),Or)}var Ir=Kn().mark(Hr),Nr=Kn().mark(Wr),Rr=Kn().mark(Br),Fr=function(e){return e.inputEdit},Lr=function(e){return e.inputEditSearch};function Hr(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Q7)([(0,Qn.p8)(b,Wr),(0,Qn.p8)(x,Br)]);case 2:case"end":return e.stop()}}),Ir)}function Wr(){var e,t,n;return Kn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qn.Lt)(Fr);case 2:return e=r.sent,t=e&&e.inputEditSearchDataForm?e.inputEditSearchDataForm:"Input_edit_data",r.next=6,(0,Qn.T1)(Jn.A.fetchForm,t,"search");case 6:return n=r.sent,r.next=9,(0,Qn.yJ)(k(n));case 9:case"end":return r.stop()}}),Nr)}function Br(){var e;return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Qn.Lt)(Lr);case 2:if(e=t.sent,!e.initialized){t.next=9;break}return t.next=7,(0,Qn.T1)(Tr);case 7:t.next=11;break;case 9:return t.next=11,(0,Qn.yJ)(A(!0));case 11:case"end":return t.stop()}}),Rr)}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vr={actionDefinitions:[],dataFormColumns:[],data:[],inputEditForm:[],sorting:[],initialized:!1},Ur=function(e){return(e.loading||0)+1},qr=function(e){return Math.max((e.loading||0)-1,0)},$r=n()(n()(n()(n()(n()(n()(n()(n()({},T,Vn.A.singleTransferReducer("dataFormColumns")),C,Vn.A.singleTransferReducer("actionDefinitions")),E,Vn.A.singleTransferReducer("inputEditForm")),P,Vn.A.singleTransferReducer("data")),_,(function(e,t){var r=t.payload,o=r.inputDataKey,i=r.node,a=r.value;return Yr(Yr({},e),{},{data:e.data.reduce((function(e,t){return t.pk===o?[].concat(Ke()(e),[Yr(Yr({},t),{},n()({},i,a))]):[].concat(Ke()(e),[t])}),[])})})),S,Vn.A.singleTransferReducer("sorting")),M,(function(e,t){var n=t.payload,r=n.inputData,o=n.loading;return Yr(Yr({},e),{},{data:e.data.map((function(e){return e.pk===r?Yr(Yr({},e),{},{loading:o?Ur(e):qr(e)}):e}))})})),I,Vn.A.singleTransferReducer("initialized"));const Gr={inputEdit:$n,inputEditTable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0,n=$r[t.type];return n?n(e,t):e},inputEditSearch:pr,inputEditPagination:ur};var Kr,Qr=[nr,Er,Hr];function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr="input-edit",eo=["emitAction"],to=function(t,n,r,o){f.A.setInputEnvs(n);var c=Kr||(Kr=(0,G.jsx)(Hn,{})),u=e.A.createStore(Gr,Qr,n,Zr);i.A.addToStore(u,(function(e){return e.input.emitAction})),a.A.dynamicActionsAddToStore(u),a.A.addToStore(u,(function(){return{formApp:d.A,customActions:(e=n,{cancel:e.onCancel}),appComponent:v};var e}));var p=!(null!=r&&r.emitAction);return l.A.addToStore(u,p),s.A.addToStore(u,p,["console","remote","notification"]),e.A.createApp(Zr,c,u,{input:n,events:r,actions:[zn(p)],publicPath:o,textResourceModules:["component","common","actions",Zr]})},no=function(t){return e.A.useApp({initApp:to,props:t,packageName:Zr,externalEvents:eo}).component};no.propTypes=Xr(Xr({selection:o().object,actionProperties:o().shape({inputEditDataForm:o().string.isRequired})},eo.reduce((function(e,t){return e[t]=o().func,e}),{})),{},{appContext:p.A.propTypes});var ro=e.A.createBundleableApp(Zr,to,no);e.A.registerAppInRegistry(ro.name,ro.init)})(),u})()));
50
+ */function i(e,t){if(!1===e||null==e)throw new Error(t)}function a(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}new WeakMap;function u(e,t,n="/"){return l(e,t,n,!1)}function l(e,t,n,r){let o=j(("string"==typeof t?c(t):t).pathname||"/",n);if(null==o)return null;let i=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=A(o);a=x(i[e],t,r)}return a}function d(e,t=[],n=[],r="",o=!1){let a=(e,a,s=o,c)=>{let u={relativePath:void 0===c?e.path||"":c,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&s)return;i(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let l=M([r,u.relativePath]),p=n.concat(u);e.children&&e.children.length>0&&(i(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),d(e.children,t,p,l,s)),(null!=e.path||e.index)&&t.push({path:l,score:w(l,e.index),routesMeta:p})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of p(e.path))a(e,t,!0,n);else a(e,t)})),t}function p(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=p(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}var f=/^:[\w-]+$/,m=3,h=2,g=1,v=10,y=-2,b=e=>"*"===e;function w(e,t){let n=e.split("/"),r=n.length;return n.some(b)&&(r+=y),t&&(r+=h),n.filter((e=>!b(e))).reduce(((e,t)=>e+(f.test(t)?m:""===t?g:v)),r)}function x(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",l=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},u),d=s.route;if(!l&&c&&n&&!r[r.length-1].route.index&&(l=O({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!l)return null;Object.assign(o,l.params),a.push({params:o,pathname:M([i,l.pathname]),pathnameBase:I(M([i,l.pathnameBase])),route:d}),"/"!==l.pathnameBase&&(i=M([i,l.pathnameBase]))}return a}function O(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=k(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function k(e,t=!1,n=!0){a("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"))).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return a(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var S=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P=e=>S.test(e);function E(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function D(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function T(e){let t=_(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function C(e,t,n,r=!1){let o;"string"==typeof e?o=c(e):(o={...e},i(!o.pathname||!o.pathname.includes("?"),D("?","pathname","search",o)),i(!o.pathname||!o.pathname.includes("#"),D("#","pathname","hash",o)),i(!o.search||!o.search.includes("#"),D("#","search","hash",o)));let s,u=""===e||""===o.pathname,l=u?"/":o.pathname;if(null==l)s=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let d=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?c(e):e;if(r)if(P(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),a(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?E(r.substring(1),"/"):E(r,t)}else n=t;return{pathname:n,search:N(o),hash:R(i)}}(o,s),p=l&&"/"!==l&&l.endsWith("/"),f=(u||"."===l)&&n.endsWith("/");return d.pathname.endsWith("/")||!p&&!f||(d.pathname+="/"),d}var M=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",R=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var F=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function L(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function H(e){return e.map((e=>e.route.path)).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function B(e,t){let n=e;if("string"!=typeof n||!S.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(W)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=j(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){a(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var z=["POST","PUT","PATCH","DELETE"],Y=(new Set(z),["GET",...z]);new Set(Y),Symbol("ResetLoaderData");var V=o.createContext(null);V.displayName="DataRouter";var U=o.createContext(null);U.displayName="DataRouterState";var q=o.createContext(!1);function $(){return o.useContext(q)}var G=o.createContext({isTransitioning:!1});G.displayName="ViewTransition";var K=o.createContext(new Map);K.displayName="Fetchers";var Q=o.createContext(null);Q.displayName="Await";var J=o.createContext(null);J.displayName="Navigation";var X=o.createContext(null);X.displayName="Location";var Z=o.createContext({outlet:null,matches:[],isDataRoute:!1});Z.displayName="Route";var ee=o.createContext(null);ee.displayName="RouteError";var te=!0,ne="REACT_ROUTER_ERROR",re="REDIRECT";function oe(){return null!=o.useContext(X)}function ie(){return i(oe(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(X).location}var ae="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function se(e){o.useContext(J).static||o.useLayoutEffect(e)}function ce(){let{isDataRoute:e}=o.useContext(Z);return e?function(){let{router:e}=be("useNavigate"),t=xe("useNavigate"),n=o.useRef(!1);return se((()=>{n.current=!0})),o.useCallback((async(r,o={})=>{a(n.current,ae),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))}),[e,t])}():function(){i(oe(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(V),{basename:t,navigator:n}=o.useContext(J),{matches:r}=o.useContext(Z),{pathname:s}=ie(),c=JSON.stringify(T(r)),u=o.useRef(!1);return se((()=>{u.current=!0})),o.useCallback(((r,o={})=>{if(a(u.current,ae),!u.current)return;if("number"==typeof r)return void n.go(r);let i=C(r,JSON.parse(c),s,"path"===o.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:M([t,i.pathname])),(o.replace?n.replace:n.push)(i,o.state,o)}),[t,n,c,s,e])}()}o.createContext(null);function ue(e,{relative:t}={}){let{matches:n}=o.useContext(Z),{pathname:r}=ie(),i=JSON.stringify(T(n));return o.useMemo((()=>C(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function le(e,t,n,r,s){i(oe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=o.useContext(J),{matches:d}=o.useContext(Z),p=d[d.length-1],f=p?p.params:{},m=p?p.pathname:"/",h=p?p.pathnameBase:"/",g=p&&p.route;if(te){let e=g&&g.path||"";Ae(m,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let v,y=ie();if(t){let e="string"==typeof t?c(t):t;i("/"===h||e.pathname?.startsWith(h),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${e.pathname}" was given in the \`location\` prop.`),v=e}else v=y;let b=v.pathname||"/",w=b;if("/"!==h){let e=h.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=u(e,{pathname:w});te&&(a(g||null!=x,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),a(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let O=ve(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:M([h,l.encodeLocation?l.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?h:M([h,l.encodeLocation?l.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])}))),d,n,r,s);return t&&O?o.createElement(X.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},O):O}function de(){let e=Oe(),t=L(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return te&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=o.createElement(o.Fragment,null,o.createElement("p",null,"💿 Hey developer 👋"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route."))),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,s)}var pe=o.createElement(de,null),fe=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${ne}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new F(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(Z.Provider,{value:this.props.routeContext},o.createElement(ee.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(he,{error:e},t):t}};fe.contextType=q;var me=new WeakMap;function he({children:e,error:t}){let{basename:n}=o.useContext(J);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${ne}:${re}:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=me.get(t);if(r)throw r;let i=B(e.location,n);if(W&&!me.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then((()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace})));throw me.set(t,n),n}window.location.href=i.absoluteURL||i.to}return o.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function ge({routeContext:e,match:t,children:n}){let r=o.useContext(V);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(Z.Provider,{value:e},n)}function ve(e,t=[],n=null,r=null,a=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let s=e,c=n?.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&void 0!==c?.[e.route.id]));i(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,l=-1;if(n)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){u=!0,s=l>=0?s.slice(0,l+1):[s[0]];break}}}let d=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:H(n.matches),errorInfo:t})}:void 0;return s.reduceRight(((e,r,i)=>{let a,p=!1,f=null,m=null;n&&(a=c&&r.route.id?c[r.route.id]:void 0,f=r.route.errorElement||pe,u&&(l<0&&0===i?(Ae("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):l===i&&(p=!0,m=r.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?f:p?m:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(ge,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?o.createElement(fe,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:d}):g()}),null)}function ye(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function be(e){let t=o.useContext(V);return i(t,ye(e)),t}function we(e){let t=o.useContext(U);return i(t,ye(e)),t}function xe(e){let t=function(e){let t=o.useContext(Z);return i(t,ye(e)),t}(e),n=t.matches[t.matches.length-1];return i(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Oe(){let e=o.useContext(ee),t=we("useRouteError"),n=xe("useRouteError");return void 0!==e?e:t.errors?.[n]}var ke={};function Ae(e,t,n){t||ke[e]||(ke[e]=!0,a(!1,n))}var je={};function Se(e,t){e||je[t]||(je[t]=!0,console.warn(t))}(r||(r=n.t(o,2))).useOptimistic;o.memo((function({routes:e,future:t,state:n,onError:r}){return le(e,void 0,n,r,t)}));o.Component;var Pe="get",Ee="application/x-www-form-urlencoded";function De(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var _e=null;var Te=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ce(e){return null==e||Te.has(e)?e:(a(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ee}"`),null)}function Me(e,t){let n,r,o,i,a;if(function(e){return De(e)&&"form"===e.tagName.toLowerCase()}(e)){let a=e.getAttribute("action");r=a?j(a,t):null,n=e.getAttribute("method")||Pe,o=Ce(e.getAttribute("enctype"))||Ee,i=new FormData(e)}else if(function(e){return De(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return De(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?j(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Pe,o=Ce(e.getAttribute("formenctype"))||Ce(a.getAttribute("enctype"))||Ee,i=new FormData(a,e),!function(){if(null===_e)try{new FormData(document.createElement("form"),0),_e=!1}catch(e){_e=!0}return _e}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(De(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Pe,r=null,o=Ee,a=e}return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function Ie(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Ne(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===j(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Re(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Fe(e){return null!=e&&"string"==typeof e.page}function Le(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function He(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===i?t.filter(((t,i)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function We(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o})).flat(1),[...new Set(r)];var r}function Be(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,o)=>{if(t&&!Fe(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e}),[])}function ze(e,t){return"lazy"===e.mode&&!0===t}function Ye(){let e=o.useContext(V);return Ie(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ve(){let e=o.useContext(U);return Ie(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ue=o.createContext(void 0);function qe(){let e=o.useContext(Ue);return Ie(e,"You must render this element inside a <HydratedRouter> element"),e}function $e(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ge(e,t,n){if(n&&!Xe)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}Ue.displayName="FrameworkContext";function Ke({page:e,...t}){let{router:n}=Ye(),r=o.useMemo((()=>u(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?o.createElement(Je,{page:e,matches:r,...t}):null}function Qe(e){let{manifest:t,routeModules:n}=qe(),[r,i]=o.useState([]);return o.useEffect((()=>{let r=!1;return async function(e,t,n){return Be((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await Re(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Le).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function Je({page:e,matches:t,...n}){let r=ie(),{future:i,manifest:a,routeModules:s}=qe(),{basename:c}=Ye(),{loaderData:u,matches:l}=Ve(),d=o.useMemo((()=>He(e,t,l,a,r,"data")),[e,t,l,a,r]),p=o.useMemo((()=>He(e,t,l,a,r,"assets")),[e,t,l,a,r]),f=o.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,o=!1;if(t.forEach((e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some((t=>t.route.id===e.route.id))&&e.route.id in u&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?o=!0:n.add(e.route.id))})),0===n.size)return[];let l=Ne(e,c,i.unstable_trailingSlashAwareDataRequests,"data");return o&&n.size>0&&l.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[l.pathname+l.search]}),[c,i.unstable_trailingSlashAwareDataRequests,u,r,a,d,t,e,s]),m=o.useMemo((()=>We(p,a)),[p,a]),h=Qe(p);return o.createElement(o.Fragment,null,f.map((e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),m.map((e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>o.createElement("link",{key:e,nonce:n.nonce,...t}))))}var Xe=!1;function Ze(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i,routeDiscovery:a,ssr:s}=qe(),{router:c,static:l,staticContext:d}=Ye(),{matches:p}=Ve(),f=$(),m=ze(a,s);i&&(i.didRenderScripts=!0);let h=Ge(p,null,r);o.useEffect((()=>{!0}),[]);let g=o.useMemo((()=>{if(f)return null;let r=d?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=l?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${m?"":`import ${JSON.stringify(t.url)}`};\n${h.map(((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Ie(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:c,module:u}=o,l=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...c?[{module:c,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===l.length?`import * as ${r} from ${JSON.stringify(u)};`:[l.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${l.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n ${m?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map((e=>e.route.id))),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach((e=>{let t=u(n.routes,e,n.basename);t&&t.forEach((e=>r.add(e.route.id)))}));let a=[...r].reduce(((e,n)=>Object.assign(e,{[n]:t.routes[n]})),{});return{...t,routes:a,sri:!!e||void 0}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return o.createElement(o.Fragment,null,o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),o.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))}),[]),v=Xe||f?[]:function(e){return[...new Set(e)]}(t.entry.imports.concat(We(h,t,{includeHydrateFallback:!0}))),y="object"==typeof t.sri?t.sri:{};return Se(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Xe||f?null:o.createElement(o.Fragment,null,"object"==typeof t.sri?o.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,m?null:o.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],suppressHydrationWarning:!0}),o.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],suppressHydrationWarning:!0}),v.map((t=>o.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],suppressHydrationWarning:!0}))),g)}function et(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}o.Component;function tt({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=o.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(L(e))return o.createElement(nt,{title:"Unhandled Thrown Response!"},o.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),te?r:null);if(e instanceof Error)e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return o.createElement(nt,{title:"Application Error!",isOutsideRemixApp:t},o.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function nt({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=qe();return i.root?.Layout&&!n?r:o.createElement("html",{lang:"en"},o.createElement("head",null,o.createElement("meta",{charSet:"utf-8"}),o.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.createElement("title",null,e)),o.createElement("body",null,o.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?o.createElement(Ze,null):null)))}var rt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rt&&(window.__reactRouterVersion="7.12.0")}catch(e){}var ot=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,it=o.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:c,state:u,target:l,to:d,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},g){let{basename:v,unstable_useTransitions:y}=o.useContext(J),b="string"==typeof d&&ot.test(d),w=B(d,v),x=function(e,{relative:t}={}){i(oe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=o.useContext(J),{hash:a,pathname:s,search:c}=ue(e,{relative:t}),u=s;return"/"!==n&&(u="/"===s?n:M([n,s])),r.createHref({pathname:u,search:c,hash:a})}(d=w.to,{relative:r}),[O,k,A]=function(e,t){let n=o.useContext(Ue),[r,i]=o.useState(!1),[a,s]=o.useState(!1),{onFocus:c,onBlur:u,onMouseEnter:l,onMouseLeave:d,onTouchStart:p}=t,f=o.useRef(null);o.useEffect((()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{s(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),o.useEffect((()=>{if(r){let e=setTimeout((()=>{s(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let m=()=>{i(!0)},h=()=>{i(!1),s(!1)};return n?"intent"!==e?[a,f,{}]:[a,f,{onFocus:$e(c,m),onBlur:$e(u,h),onMouseEnter:$e(l,m),onMouseLeave:$e(d,h),onTouchStart:$e(p,m)}]:[!1,f,{}]}(n,h),j=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:u,unstable_useTransitions:l}={}){let d=ce(),p=ie(),f=ue(e,{relative:a});return o.useCallback((m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:s(p)===s(f),h=()=>d(e,{replace:t,state:r,preventScrollReset:i,relative:a,viewTransition:c,unstable_defaultShouldRevalidate:u});l?o.startTransition((()=>h())):h()}}),[p,d,f,n,r,t,e,i,a,c,u,l])}(d,{replace:c,state:u,target:l,preventScrollReset:p,relative:r,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:y});let S=o.createElement("a",{...h,...A,href:w.absoluteURL||x,onClick:w.isExternal||a?e:function(t){e&&e(t),t.defaultPrevented||j(t)},ref:et(g,k),target:l,"data-discover":b||"render"!==t?void 0:"true"});return O&&!b?o.createElement(o.Fragment,null,S,o.createElement(Ke,{page:x})):S}));it.displayName="Link",o.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:s,viewTransition:c,children:u,...l},d){let p=ue(s,{relative:l.relative}),f=ie(),m=o.useContext(U),{navigator:h,basename:g}=o.useContext(J),v=null!=m&&function(e,{relative:t}={}){let n=o.useContext(G);i(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ct("useViewTransitionState"),a=ue(e,{relative:t});if(!n.isTransitioning)return!1;let s=j(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=j(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=O(a.pathname,c)||null!=O(a.pathname,s)}(p)&&!0===c,y=h.encodeLocation?h.encodeLocation(p).pathname:p.pathname,b=f.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=j(w,g)||w);const x="/"!==y&&y.endsWith("/")?y.length-1:y.length;let k,A=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(x),S=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),P={isActive:A,isPending:S,isTransitioning:v},E=A?e:void 0;k="function"==typeof n?n(P):[n,A?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof a?a(P):a;return o.createElement(it,{...l,"aria-current":E,className:k,ref:d,style:D,to:s,viewTransition:c},"function"==typeof u?u(P):u)})).displayName="NavLink";var at=o.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:c,method:u=Pe,action:l,onSubmit:d,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:h,...g},v)=>{let{unstable_useTransitions:y}=o.useContext(J),b=dt(),w=function(e,{relative:t}={}){let{basename:n}=o.useContext(J),r=o.useContext(Z);i(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),c={...ue(e||".",{relative:t})},u=ie();if(null==e){c.search=u.search;let e=new URLSearchParams(c.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();c.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(c.pathname="/"===c.pathname?n:M([n,c.pathname]));return s(c)}(l,{relative:p}),x="get"===u.toLowerCase()?"get":"post",O="string"==typeof l&&ot.test(l);return o.createElement("form",{ref:v,method:x,action:w,onSubmit:r?d:e=>{if(d&&d(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||u,s=()=>b(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:c,relative:p,preventScrollReset:f,viewTransition:m,unstable_defaultShouldRevalidate:h});y&&!1!==n?o.startTransition((()=>s())):s()},...g,"data-discover":O||"render"!==e?void 0:"true"})}));function st(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ct(e){let t=o.useContext(V);return i(t,st(e)),t}at.displayName="Form";var ut=0,lt=()=>`__${String(++ut)}__`;function dt(){let{router:e}=ct("useSubmit"),{basename:t}=o.useContext(J),n=xe("useRouteId"),r=e.fetch,i=e.navigate;return o.useCallback((async(e,o={})=>{let{action:a,method:s,encType:c,formData:u,body:l}=Me(e,t);if(!1===o.navigate){let e=o.fetcherKey||lt();await r(e,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:l,formMethod:o.method||s,formEncType:o.encType||c,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:l,formMethod:o.method||s,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[r,i,t,n])}},77987:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},6695:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},95065:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e){if(Array.isArray(e))return(0,r.A)(e)}},97991:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},24747:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},27887:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>o})},6624:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(37444),o=n(89954),i=n(1560);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},88097:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>r})},65166:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},37444:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},49523:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(15216);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},89954:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{A:()=>r})},62439:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},21648:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}n.d(t,{A:()=>r})},37820:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},77969:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},47029:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(88097);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},23715:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8609);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},8609:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},1560:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65710),o=n(97991);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},15216:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},52167:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6695),o=n(21648),i=n(25134),a=n(37820);function s(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,i.A)(e,t)||(0,a.A)()}},47978:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{A:()=>r})},78840:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(95065),o=n(62439),i=n(25134),a=n(77969);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},65710:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},25134:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(77987);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},72367:(e,t,n)=>{"use strict";n.d(t,{B1:()=>r});function r(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}Math.min,Math.max;const o=["top","right","bottom","left"];o.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[])},9725:(e,t,n)=>{"use strict";n.d(t,{ll:()=>w});n(72367);function r(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function o(e){if(null==e)return window;if(!r(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return o(e).getComputedStyle(e)}function a(e){return r(e)?"":e?(e.nodeName||"").toLowerCase():""}function s(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function c(e){return e instanceof o(e).HTMLElement}function u(e){return e instanceof o(e).Element}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=i(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function p(){return!/^((?!chrome|android).)*safari/i.test(s())}function f(e){return["html","body","#document"].includes(a(e))}Math.min,Math.max;const m=Math.round;function h(e,t,n){var r,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let d=1,f=1;t&&c(e)&&(d=e.offsetWidth>0&&m(l.width)/e.offsetWidth||1,f=e.offsetHeight>0&&m(l.height)/e.offsetHeight||1);const h=u(e)?o(e):window,g=!p()&&n,v=(l.left+(g&&null!=(r=null==(i=h.visualViewport)?void 0:i.offsetLeft)?r:0))/d,y=(l.top+(g&&null!=(a=null==(s=h.visualViewport)?void 0:s.offsetTop)?a:0))/f,b=l.width/d,w=l.height/f;return{width:b,height:w,top:y,right:v+b,bottom:y+w,left:v,x:v,y}}function g(e){return(t=e,(t instanceof o(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function v(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e);return l(t)?t.host:t}function y(e){const t=v(e);return f(t)?e.ownerDocument.body:c(t)&&d(t)?t:y(t)}function b(e,t){var n;void 0===t&&(t=[]);const r=y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],d(r)?r:[]):r,c=t.concat(s);return i?c:c.concat(b(s))}function w(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,c=o&&!s,l=c||i?[...u(e)?b(e):e.contextElement?b(e.contextElement):[],...b(t)]:[];l.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let d,p=null;if(a){let r=!0;p=new ResizeObserver((()=>{r||n(),r=!1})),u(e)&&!s&&p.observe(e),u(e)||!e.contextElement||s||p.observe(e.contextElement),p.observe(t)}let f=s?h(e):null;return s&&function t(){const r=h(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{c&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(d)}}},92149:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4883),o=n(81845),i=n(2418);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}const s=["onUpdate","onRepositioned","renderElement","renderElementTag","renderElementTo","renderTarget","className","id","style"];class c extends r.Component{constructor(...e){super(...e),this._targetNode=r.createRef(),this._elementNode=r.createRef(),this._elementParentNode=null,this._tetherInstance=null}componentDidMount(){this._createContainer(),this.forceUpdate()}componentDidUpdate(e){if(e.renderElementTag===this.props.renderElementTag&&e.renderElementTo===this.props.renderElementTo||this._createContainer(),this._elementParentNode&&e.className!==this.props.className){const t=(e.className||"").split(" ").filter((e=>e.length>0)),n=(this.props.className||"").split(" ").filter((e=>e.length>0));this._elementParentNode.classList.remove(...t),this._elementParentNode.classList.add(...n)}this._update()}componentWillUnmount(){this._destroy()}getTetherInstance(){return this._tetherInstance}disable(){var e;null==(e=this._tetherInstance)||e.disable()}enable(){var e;null==(e=this._tetherInstance)||e.enable()}on(e,t,n){this._tetherInstance.on(e,t,n)}once(e,t,n){this._tetherInstance.once(e,t,n)}off(e,t){this._tetherInstance.off(e,t)}position(){var e;null==(e=this._tetherInstance)||e.position()}_runRenders(){let e="function"==typeof this.props.renderTarget?this.props.renderTarget(this._targetNode):null,t="function"==typeof this.props.renderElement?this.props.renderElement(this._elementNode):null;return(0,r.isValidElement)(e)||(e=null),(0,r.isValidElement)(t)||(t=null),{targetComponent:e,elementComponent:t}}_createTetherInstance(e){this._tetherInstance&&this._destroy(),this._tetherInstance=new i(e),this._registerEventListeners()}_destroyTetherInstance(){this._tetherInstance&&(this._tetherInstance.destroy(),this._tetherInstance=null)}_registerEventListeners(){this.on("update",((...e)=>this.props.onUpdate&&this.props.onUpdate.apply(this,e))),this.on("repositioned",((...e)=>this.props.onRepositioned&&this.props.onRepositioned.apply(this,e)))}get _renderNode(){const{renderElementTo:e}=this.props;return"string"==typeof e?document.querySelector(e):e||document.body}_destroy(){this._destroyTetherInstance(),this._removeContainer()}_createContainer(){this._removeContainer();const{renderElementTag:e="div",className:t}=this.props;this._elementParentNode=document.createElement(e),this._elementParentNode.className=t||""}_addContainerToDOM(){this._elementParentNode&&this._renderNode&&this._elementParentNode.parentNode!==this._renderNode&&this._renderNode.append(this._elementParentNode)}_removeContainer(){this._elementParentNode&&this._elementParentNode.parentNode&&this._elementParentNode.remove()}_update(){this._elementNode.current&&this._targetNode.current?this._updateTether():this._destroy()}_updateTether(){var e;const t=this.props,{id:n,style:r}=t,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,s),i=a({target:this._targetNode.current,element:this._elementParentNode},o),c=n||"";if(this._elementParentNode&&this._elementParentNode.id!==c&&(this._elementParentNode.id=c),this._elementParentNode&&r){const e=this._elementParentNode.style;for(const t in r)if(e[t]!==r[t]){let n=r[t];n&&(e[t]=n)}}this._addContainerToDOM(),this._tetherInstance?this._tetherInstance.setOptions(i):this._createTetherInstance(i),null==(e=this._tetherInstance)||e.position()}render(){const{targetComponent:e,elementComponent:t}=this._runRenders();return e?r.createElement(r.Fragment,null,e,t&&this._elementParentNode&&o.createPortal(t,this._elementParentNode)):null}}},27346:(e,t,n)=>{"use strict";function r(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}n.d(t,{P:()=>o,Y:()=>i});var o=r(),i=r},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>s,Tw:()=>f,Zz:()=>p,ve:()=>m,y$:()=>c,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function c(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(c)(e,t)}let i=e,u=t,l=new Map,d=l,p=0,f=!1;function m(){d===l&&(d=new Map,l.forEach(((e,t)=>{d.set(t,e)})))}function h(){if(f)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(f)throw new Error(r(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(f)throw new Error(r(6));t=!1,m(),d.delete(n),l=null}}}function v(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(f)throw new Error(r(9));try{f=!0,u=i(u,e)}finally{f=!1}return(l=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(h())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const c=o[i],u=n[c],l=e[c],d=u(l,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[c]=d,a=a||d!==l}return a=a||o.length!==Object.keys(e).length,a?s:e}}function l(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return l(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=l(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function f(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},c=e.map((e=>e(s)));return a=p(...c)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var o=Object.create(null);c.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var a=2&t&&e;"object"==typeof a&&!~n.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"chunk-"+({222:"vendor-libphonenumber-js",236:"actions",262:"html-editor",310:"vendor-fontawesome",672:"phone-formatter",722:"code-editor",916:"vendor-icons"}[e]||e)+"."+{18:"5761c8672ba902286aed",88:"6388a4c7e812b6666b8e",103:"e3d586a1d96f63e23c41",211:"52bf6879291a7709cdc6",222:"e38ef16ead1de0aa552e",235:"15d1b33ac74058a63a58",236:"7a7bf558267c87e26dc0",262:"436ce717c7666685c801",264:"b1e5225cdd66ea303c49",310:"f910414ac389c93d50ec",599:"06dcc4dc35a480c79547",672:"ece0442ff23d12aec226",722:"84527e56c8f6db176c2d",726:"9718edbdeb5af50d2384",770:"9fd06dc1168e57b471bb",916:"6512790ea8c06abcac16"}[e]+".js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},i="tocco-legacy-bundle:",c.l=(e,t,n,r)=>{if(o[e])o[e].push(t);else{var a,s;if(void 0!==n)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==i+n){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",i+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.j=746,c.p="/",(()=>{var e={746:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);if(s)s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=this.webpackChunktocco_legacy_bundle=this.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),c.nc=void 0;var u={};return(()=>{"use strict";c.r(u),c.d(u,{app:()=>ro});var e=c(61402),t=c(26396),n=c.n(t),r=c(5556),o=c.n(r),i=c(88951),a=c(13128),s=c(59042),l=c(72942),d=c(74112),p=c(82682),f=c(38159),m=c(4883),h=c.n(m),g={"input-edit-info":(0,m.lazy)((function(){return Promise.all([c.e(18),c.e(235),c.e(726),c.e(599),c.e(88),c.e(236)]).then(c.bind(c,12016))})),"exam-edit":(0,m.lazy)((function(){return Promise.all([c.e(18),c.e(235),c.e(726),c.e(599),c.e(88),c.e(236)]).then(c.bind(c,50250))}))};const v=a.A.actionFactory(g);var y=c(71468),b="inputEditSearch/INITIALIZE_SEARCH",w="inputEditSearch/SET_FORM",x="inputEditSearch/SET_SEARCH_QUERIES",O="inputEditSearch/SET_INITIALIZED",k=function(e){return{type:w,payload:{form:e}}},A=function(e){return{type:O,payload:{initialized:e}}},j="inputEditTable/INITIALIZE_TABLE",S="inputEditTable/LOAD_DATA",P="inputEditTable/SET_DATA",E="inputEditTable/SET_EDIT_FORM",D="inputEditTable/UPDATE_VALUE",_="inputEditTable/SET_VALUE",T="inputEditTable/SET_DATA_FORM_COLUMNS",C="inputEditTable/SET_ACTION_DEFINITIONS",M="inputEditTable/SET_CALCULATING",I="inputEditTable/SET_INITIALIZED",N=function(){return{type:j}},R=function(e){return{type:P,payload:{data:e}}},F=function(e){return{type:E,payload:e}},L=function(e,t,n){return{type:_,payload:{inputDataKey:e,node:t,value:n}}},H=function(e){return{type:T,payload:{dataFormColumns:e}}},W=function(e){return{type:C,payload:{actionDefinitions:e}}},B=function(e,t){return{type:M,payload:{inputData:e,loading:t}}},z=function(e){return{type:I,payload:{initialized:e}}},Y=c(22056),V=c.n(Y),U=c(39892),q=c.n(U),$=c(62764),G=c(74848),K=["icon","label","onClick"];function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const J=function(e){var t=e.icon,r=e.label,o=e.onClick,i=q()(e,K);return(0,G.jsx)($.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({icon:t||"arrow-left",label:r,onClick:o,"data-cy":"btn-back"},i))};var X=function(){return window.innerWidth},Z="top",ee="left",te={sidepanelPosition:ee,isCollapsed:!1,toggleCollapse:function(){},scrollBehaviour:"none"},ne=h().createContext(te),re=function(){return(0,m.useContext)(ne)};const oe=function(e){var t=e.children,n=e.sidepanelPosition,r=void 0===n?Z:n,o=e.sidepanelCollapsed,i=void 0!==o&&o,a=e.setSidepanelCollapsed,s=void 0===a?function(){}:a,c=e.scrollBehaviour,u=void 0===c?"none":c,l=function(e,t){var n=(0,m.useState)(e),r=V()(n,2),o=r[0],i=r[1],a=(0,m.useState)(X()),s=V()(a,2),c=s[0],u=s[1];(0,m.useEffect)((function(){var e=function(){u(X())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[c]),(0,m.useEffect)((function(){i(c<768||e)}),[c,e]);var l=(0,m.useCallback)((function(){i(!o),X()>768&&t(!o)}),[o,t]);return{isCollapsed:o,toggleCollapse:l}}(i,s),d=l.isCollapsed,p=l.toggleCollapse,f=(0,m.useMemo)((function(){return{sidepanelPosition:r,isCollapsed:r===ee&&d,toggleCollapse:p,scrollBehaviour:u}}),[d,p,r,u]);return(0,G.jsx)(ne.Provider,{value:f,children:t})};var ie,ae,se,ce,ue,le,de,pe,fe,me,he=c(72189),ge=c.n(he),ve=c(51510),ye=c(50098),be=c(99978),we=c(26166),xe=c(47616),Oe=we.A.space(-2.25),ke=ve.Ay.div.withConfig({displayName:"TopPositioning"})(ie||(ie=ge()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template:\n 'sidepanel' min-content\n 'content' minmax(auto, 1fr)\n / minmax(100%, 700px);\n"]))),Ae=ve.Ay.div.withConfig({displayName:"LeftPositioning"})(ae||(ae=ge()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),je=ve.Ay.div.withConfig({displayName:"StyledSidepanel"})(se||(se=ge()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),ke,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"})),Se=ve.Ay.div.withConfig({displayName:"StyledSidepanelMainContent"})(ce||(ce=ge()(["\n grid-area: content;\n display: flex;\n padding: ",";\n"])),f.A.isInAdminEmbedded()?"0":Oe),Pe=ve.Ay.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(ue||(ue=ge()(["\n display: flex; /* enables StyledSidepanelCollapsed to take full height */\n flex-direction: column;\n height: 100%;\n overflow: hidden auto;\n background-color: ",";\n"])),xe.A.color("paper")),Ee=ve.Ay.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(le||(le=ge()([""]))),De=ve.Ay.div.withConfig({displayName:"StyledSidepanelContent"})(de||(de=ge()(["\n display: ",";\n height: 100%;\n overflow: ",";\n padding: ",";\n"])),(function(e){return e.isCollapsed?"none":"block"}),f.A.isInAdminEmbedded()?"hidden":"auto",f.A.isInAdminEmbedded()?"0":Oe),_e=ve.Ay.div.withConfig({displayName:"StyledSidepanelCollapsed"})(pe||(pe=ge()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),xe.A.color("paper"),we.A.space(-.5),we.A.space(-2.5)),Te=(0,ve.Ay)(ye.A).withConfig({displayName:"StyledToggleCollapseButton"})(fe||(fe=ge()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),we.A.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),_e,xe.A.color("secondaryLight")),Ce=ve.Ay.div.withConfig({displayName:"StyledSidepanelHeader"})(me||(me=ge()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n\n "," {\n z-index: 3; /* higher than rest to lay over search filter list */\n }\n"])),xe.A.color("paper"),xe.A.color("backgroundBody"),we.A.space(-.53),be.A);const Me=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i="left"===r?Ae:ke;return(0,G.jsx)(i,{windowWidth:window.innerWidth,isCollapsed:o,children:t})};const Ie=function(e){var t=e.children,n=e.sidepanelPosition,r=e.sidepanelCollapsed,o=e.setSidepanelCollapsed,i=e.scrollBehaviour;return(0,G.jsx)(oe,{sidepanelPosition:n,sidepanelCollapsed:r,setSidepanelCollapsed:o,scrollBehaviour:i,children:(0,G.jsx)(Me,{children:t})})};const Ne=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse,a=n.scrollBehaviour,s=r===ee?Pe:Ee;return(0,G.jsx)(je,{sidepanelPosition:r,scrollBehaviour:a,children:(0,G.jsxs)(s,{children:[(0,G.jsx)(De,{isCollapsed:o,children:t}),"left"===r&&(0,G.jsx)(_e,{onClick:i,isCollapsed:o,children:(0,G.jsx)(Te,{icon:"chevron-right",isCollapsed:o})})]})})};const Re=function(e){var t=e.children,n=re(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse;return"left"!==r?null:(0,G.jsxs)(Ce,{children:[(0,G.jsx)(Te,{icon:"chevron-left",isCollapsed:o,onClick:i}),t]})};var Fe;const Le=ve.Ay.div.withConfig({displayName:"ActionBarContainer"})(Fe||(Fe=ge()(["\n display: grid;\n grid-template-rows: [action-start] auto [table-start] minmax(0, 1fr);\n height: 100%;\n width: 100%;\n"])));const He=function(e){var t=e.actionBar,n=e.children,r=t?(0,G.jsx)(Le,{children:n}):n;return(0,G.jsx)(Se,{children:r})};var We;const Be=ve.Ay.div.withConfig({displayName:"ActionBar"})(We||(We=ge()(["\n display: flex;\n background-color: ",";\n margin-bottom: 3px;\n padding: 8px;\n grid-row-start: action-start;\n flex-wrap: wrap;\n"])),xe.A.color("paper"));var ze,Ye=c(17819);const Ve=ve.Ay.div.withConfig({displayName:"ActionBarMainContent"})(ze||(ze=ge()(["\n grid-row-start: table-start;\n\n "," {\n overflow-x: hidden;\n }\n"])),Ye.dm);var Ue=c(38798),qe=c(38221),$e=c.n(qe),Ge=c(21259),Ke=c.n(Ge),Qe=c(85735),Je=c.n(Qe),Xe=c(16172),Ze=c(23805),et=c.n(Ze),tt=c(47383),nt=c(6463),rt=c(92705),ot=c(88315),it=c(12541),at=c(58161);function st(e,t,n){const r=(0,at.q)(),o=function(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?function(e,t){const n=e.formatToParts(t);for(let e=n.length-1;e>=0;--e)if("timeZoneName"===n[e].type)return n[e].value;return}(o,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(o,t)}function ct(e,t){const n=function(e){lt[e]||(lt[e]=pt?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}));return lt[e]}(t);return"formatToParts"in n?function(e,t){try{const n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){const t=ut[n[e].type];void 0!==t&&(r[t]=parseInt(n[e].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){const n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}(n,e)}const ut={year:0,month:1,day:2,hour:3,minute:4,second:5};const lt={},dt=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),pt="06/25/2014, 00:00:00"===dt||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===dt;function ft(e,t,n,r,o,i,a){const s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}const mt=36e5,ht=6e4,gt={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function vt(e,t,n){if(!e)return 0;let r,o,i=gt.timezoneZ.exec(e);if(i)return 0;if(i=gt.timezoneHH.exec(e),i)return r=parseInt(i[1],10),bt(r)?-r*mt:NaN;if(i=gt.timezoneHHMM.exec(e),i){r=parseInt(i[2],10);const e=parseInt(i[3],10);return bt(r,e)?(o=Math.abs(r)*mt+e*ht,"+"===i[1]?-o:o):NaN}if(function(e){if(wt[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),wt[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());const r=n?t:function(e){return ft(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),o=yt(r,e),i=n?o:function(e,t,n){const r=e.getTime();let o=r-t;const i=yt(new Date(o),n);if(t===i)return t;o-=i-t;const a=yt(new Date(o),n);if(i===a)return i;return Math.max(i,a)}(t,o,e);return-i}return NaN}function yt(e,t){const n=ct(e,t),r=ft(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let o=e.getTime();const i=o%1e3;return o-=i>=0?i:1e3+i,r-o}function bt(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}const wt={};const xt={X:function(e,t,n){const r=Ot(n.timeZone,e);if(0===r)return"Z";switch(t){case"X":return jt(r);case"XXXX":case"XX":return At(r);default:return At(r,":")}},x:function(e,t,n){const r=Ot(n.timeZone,e);switch(t){case"x":return jt(r);case"xxxx":case"xx":return At(r);default:return At(r,":")}},O:function(e,t,n){const r=Ot(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);return n+String(o)+t+kt(i,2)}(r,":");default:return"GMT"+At(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return st("short",e,n);default:return st("long",e,n)}}};function Ot(e,t){const n=e?vt(e,t,!0)/6e4:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function kt(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r}function At(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+kt(Math.floor(r/60),2)+t+kt(Math.floor(r%60),2)}function jt(e,t){if(e%60==0){return(e>0?"-":"+")+kt(Math.abs(e)/60,2)}return At(e,t)}function St(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const Pt=36e5,Et=6e4,Dt=2,_t={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Tt(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);const n=null==t.additionalDigits?Dt:Number(t.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);const r=function(e){const t={};let n,r=_t.dateTimePattern.exec(e);r?(t.date=r[1],n=r[3]):(r=_t.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e));if(n){const e=_t.timeZone.exec(n);e?(t.time=n.replace(e[1],""),t.timeZone=e[1].trim()):t.time=n}return t}(e),{year:o,restDateString:i}=function(e,t){if(e){const n=_t.YYY[t],r=_t.YYYYY[t];let o=_t.YYYY.exec(e)||r.exec(e);if(o){const t=o[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(o=_t.YY.exec(e)||n.exec(e),o){const t=o[1];return{year:100*parseInt(t,10),restDateString:e.slice(t.length)}}}return{year:null}}(r.date,n),a=function(e,t){if(null===t)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=_t.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,Rt(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=_t.DDD.exec(e),i){n=new Date(0);const e=parseInt(i[1],10);return function(e,t){if(t<1)return!1;const n=Nt(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,e)?(n.setUTCFullYear(t,0,e),n):new Date(NaN)}if(i=_t.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const e=parseInt(i[2],10);return Rt(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(NaN)}if(i=_t.Www.exec(e),i)return o=parseInt(i[1],10)-1,Ft(o)?Ct(t,o):new Date(NaN);if(i=_t.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const e=parseInt(i[2],10)-1;return Ft(o,e)?Ct(t,o,e):new Date(NaN)}return null}(i,o);if(null===a||isNaN(a.getTime()))return new Date(NaN);if(a){const e=a.getTime();let n,o=0;if(r.time&&(o=function(e){let t,n,r=_t.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Lt(t)?t%24*Pt:NaN;if(r=_t.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Lt(t,n)?t%24*Pt+n*Et:NaN;if(r=_t.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const e=parseFloat(r[3].replace(",","."));return Lt(t,n,e)?t%24*Pt+n*Et+1e3*e:NaN}return null}(r.time),null===o||isNaN(o)))return new Date(NaN);if(r.timeZone||t.timeZone){if(n=vt(r.timeZone||t.timeZone,new Date(e+o)),isNaN(n))return new Date(NaN)}else n=St(new Date(e+o)),n=St(new Date(e+o+n));return new Date(e+o+n)}return new Date(NaN)}function Ct(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}const Mt=[31,28,31,30,31,30,31,31,30,31,30,31],It=[31,29,31,30,31,30,31,31,30,31,30,31];function Nt(e){return e%400==0||e%4==0&&e%100!=0}function Rt(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;const r=Nt(e);if(r&&n>It[t])return!1;if(!r&&n>Mt[t])return!1}return!0}function Ft(e,t){return!(e<0||e>52)&&(null==t||!(t<0||t>6))}function Lt(e,t,n){return!(e<0||e>=25)&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}const Ht=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Wt(e,t,n,r){return function(e,t,n={}){const r=(t=String(t)).match(Ht);if(r){const o=Tt(n.originalDate||e,n);t=r.reduce((function(e,t){if("'"===t[0])return e;const r=e.indexOf(t),i="'"===e[r-1],a=e.replace(t,"'"+xt[t[0]](o,t,n)+"'");return i?a.substring(0,r-1)+a.substring(r+1):a}),t)}return(0,it.GP)(e,t,n)}(function(e,t,n){const r=vt(t,e=Tt(e,n),!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}(e,t,{timeZone:(r={...r,timeZone:t,originalDate:e}).timeZone}),n,r)}var Bt="yyyy-MM-dd",zt="yyyy-MM-dd HH:mm",Yt=function(e){return(0,rt.u)(e,Bt)?(0,ot.qg)(e,Bt,new Date):(0,rt.u)(e,zt)?(0,ot.qg)(e,zt,new Date):(0,rt.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")||(0,rt.u)(e,"yyyy-MM-dd'T'HH:mm:ss.SSSxxx")?new Date(e):NaN},Vt=function(e){return tt.A.isDefined(e)&&""!==e},Ut=function(e,t,n){return[].concat(Ke()(Vt(e.from)?[t(n,e.from,">=")]:[]),Ke()(Vt(e.to)?[t(n,e.to,e.exclusive?"<":"<=")]:[])).join(" and ")},qt=function(e){return e&&"object"===Je()(e)&&e.isRangeValue},$t=function(e,t,n){return"(".concat(e.map((function(e){return n(e,t,"==")})).join(" or "),")")},Gt=function(e){switch(e){case"datetime":case"createts":case"updatets":return function(e){if(qt(e))return e;var t=function(e){return(0,nt.o)(Yt(e))}(e);return isNaN(t)?e:{from:t.toISOString(),to:(0,Xe.f)(t,1).toISOString(),isRangeValue:!0,exclusive:!0}};default:return function(e){return e}}},Kt=function(e){var t;((null===(t=e.match(/"/g))||void 0===t?void 0:t.length)||0)%2!=0&&(e+='"');var n=function(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\//g,"\\\\/")}(e),r=e.endsWith(" "),o=e.endsWith('"'),i=e.endsWith("*"),a=e.endsWith("?"),s=e.endsWith(")"),c=e.endsWith("]")||e.endsWith("}"),u=/^.* [0-9.,]+/.test(e);return o||i||a||r||s||u||c?'"'.concat(n,'"'):'"('.concat(n,") OR (").concat(n,'*)"')},Qt=function(e){switch(e){case"multi-select-box":case"multi-remote-field":return function(e,t){return'KEYS("'.concat(e,'",').concat(t.map((function(e){return e.key})).join(","),")")};case"single-remote-field":case"single-select-box":return function(e,t){return"".concat(e,".pk == ").concat(t.key)};case"fulltext-search":return function(e,t){return"txtFulltext"===e?"fulltext(".concat(Kt(t),")"):"fulltext(".concat(Kt(t),", ").concat(e,")")};case"birthdate":case"date":case"create_timestamp":return function(e,t,n){return"".concat(e," ").concat(n,' date:"').concat(t,'"')};case"datetime":case"createts":case"updatets":return function(e,t,n){return"".concat(e," ").concat(n,' datetime:"').concat(function(e){return Wt(e,"UTC",zt)}(Yt(t)),'"')};case"time":return function(e,t,n){return"".concat(e," ").concat(n,' time:"').concat(function(e){return(0,it.GP)(e,"HH:mm:ss.SSS")}(function(e){return(0,ot.qg)(e,"HH:mm",new Date)}(t)),'"')};case"compressed-text":case"identifier":case"string":case"text":case"html":case"createuser":case"updateuser":case"login":case"email":case"phone":case"postcode":case"format":return function(e,t){return"".concat(e,' ~= "*').concat(t,'*"')};case"boolean":return function(e,t){return Vt(t)?"".concat(e," == ").concat(t):null};case"marking":return function(e,t){return!1===t?"not exists(".concat(e,")"):"exists(".concat(e,")")};case"geosearch":return function(e,t){return null!=t&&t.latitude&&null!=t&&t.longitude?"".concat(t.distance||0," > DISTANCE(").concat(t.latitudeField,", ").concat(t.longitudeField,', decimal:"').concat(t.latitude,'", decimal:"').concat(t.longitude,'")'):null};default:return function(e,t,n){return"".concat(e," ").concat(n," ").concat(t)}}},Jt=function(e){return et()(e)&&e.key?"single-select-box":Array.isArray(e)&&e.every((function(e){return!!e.key}))?"multi-select-box":"string"};const Xt=function(e,t,n){if(!Vt(t))return null;var r=n||Jt(t),o=(t=Gt(r)(t))&&"object"===Je()(t)&&t.localizedPaths,i=Qt(r);return qt(t)?Ut(t,i,e):o?$t(t.localizedPaths,t.value,i):i(e,t,"==")};var Zt,en,tn=c(46836),nn=c(53727),rn=ve.Ay.div.withConfig({displayName:"Box"})(Zt||(Zt=ge()(["\n background-color: ",";\n overflow-y: auto;\n padding: "," "," 0 ",";\n position: relative;\n\n &:first-of-type {\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n }\n"])),xe.A.color("paper"),we.A.space(-1.1),we.A.space(-.375),we.A.space(-1.1)),on=ve.Ay.div.withConfig({displayName:"StyledExtendSearchButtonWrapper"})(en||(en=ge()(["\n && {\n width: 100%;\n text-align: center;\n }\n"]))),an=function(e,t){return function(n){var r=n.values;if(Object.keys(r).length>0){var o=sn(r,e);t(o)}else t([])}},sn=function(e,t){return Object.entries(e).filter((function(e){var t=V()(e,1)[0];return!Object.values(tn.A.metaFields).includes(t)})).map((function(e){var n=V()(e,2),r=n[0],o=n[1];return{path:r,fieldType:cn(r,t),value:o}})).filter((function(e){var t=e.value;return t&&(!Array.isArray(t)||t.length>0)})).map((function(e){var t=e.path,n=e.fieldType,r=e.value;return Xt(t,r,n)})).filter((function(e){return e.length>0}))},cn=function(e,t){var n=t.children.find((function(e){return e.children.length>0}));if(n){var r=n.children.find((function(t){return t.id===e}));return r.children.length>0?r.children[0].dataType:r.dataType}};const un={BasicSearchForm:function(e){var t=e.intl,n=e.searchFormDefinition,r=e.setSearchFields,o=e.FormApp,i=f.A.isInAdminEmbedded(),a=(0,m.useState)(i),s=V()(a,2),c=s[0],u=s[1];if(!n.children)return null;var l,d=nn.A.getFieldDefinitions(n),p=d.filter((function(e){return!0===e.simpleSearch})).map((function(e){return e.path||e.id})),h=!i&&!d.every((function(e){return p.includes(e.id)}));return(0,G.jsxs)(rn,{children:[h&&(0,G.jsx)(on,{children:(0,G.jsx)(ye.A,{"data-cy":"btn-extend-search",icon:"chevron-".concat(c?"up":"down"),onClick:function(){u(!c)},title:(l="client.common.extendedSearch",t.formatMessage({id:l}))})}),(0,G.jsx)(o,{form:n,onChange:$e()(an(n,r),500),noButtons:!0,validate:!1,mappingType:"search",mode:"search",beforeRenderField:function(e){return c||p.includes(e)},labelPosition:"inside"})]})},StyledExtendSearchButtonWrapper:on};const ln=function(e){var t=e.intl,n=e.form,r=e.setSearchFields;return(0,G.jsx)(un.BasicSearchForm,{searchFormDefinition:n,setSearchFields:r,FormApp:d.A,intl:t})};var dn={setSearchFields:function(e){return{type:x,payload:{searchQueries:e}}}};const pn=(0,y.Ng)((function(e){return{form:e.inputEditSearch.form}}),dn)((0,Ue.Ay)(ln));var fn=c(25440),mn=c(80283);function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vn,yn=function(e){return!isNaN(parseInt(e))||"rating"===e},bn=function(e){return e.body.data.map((function(e){var t=Object.keys(e).reduce((function(t,r){return gn(gn({},t),yn(r)?{inputFields:gn(gn({},t.inputFields),{},n()({},r,e[r]))}:{entityFields:gn(gn({},t.entityFields),{},n()({},r,e[r]))})}),{inputFields:{},entityFields:{}});return gn(gn({},t.inputFields),tn.A.flattenPaths(t.entityFields))})).map((function(e,t){return gn(gn({},e),{},{__key:e.pk,index:t+1})}))},wn=c(92223),xn=c(69556);function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}const kn=function(e){var t=e.column.readOnly,r=e.rowData.loading;return t&&r>0?vn||(vn=(0,G.jsx)(xn.A,{size:"1.8em",icon:"circle-notch-light"})):(0,G.jsx)(wn.A.EditableCellRenderer,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?On(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):On(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e))};var An,jn=ve.Ay.div.withConfig({displayName:"StyledInputEditTableWrapper"})(An||(An=ge()(["\n width: 100%;\n height: 100%;\n overflow: auto;\n\n td {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n"])));function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var En=function(e){return e.choiceOptions?e.choiceOptions:{debounceDelay:800}};const Dn=function(e){var t=e.data,n=e.dataFormColumns,r=e.inputEditForm,o=e.updateValue,i=e.loadData,a=e.dataLoadingInProgress,s=e.totalCount,c=e.recordsPerPage,u=(0,m.useState)(null),l=V()(u,2),d=l[0],p=l[1];(0,m.useEffect)((function(){var e,t,o=(e=n,t=r,nn.A.createSimpleForm({children:[nn.A.createTable({children:[].concat(Ke()(e.map((function(e){var t=e.children[0];return nn.A.createColumn(Pn(Pn({},e),{},{id:t.id,dataType:t.dataType,alignment:tn.A.getColumnAlignment(t),readonly:!0,sorting:{sortable:e.sortable}}))}))),Ke()(t.map((function(e){return nn.A.createColumn({label:e.label,id:e.id,dataType:e.dataType,readonly:e.readonly,validation:Pn(Pn({},e.decimalDigits?{decimalDigits:e.decimalDigits}:{}),e.numberRange?{numberRange:e.numberRange}:{}),options:En(e),clientRenderer:"input",alignment:tn.A.getColumnAlignment(e),dynamic:!0})}))))})]}));p(o)}),[n,r]);var h=(0,m.useMemo)((function(){return{input:kn}}),[]),g=f.A.isInAdminEmbedded();if(d){var v=r.filter((function(e){var t=e.id;return yn(t)})).map((function(e){return e.id}));return(0,G.jsx)(jn,{onKeyDown:mn.A.navigateTable(v),"data-cy":"input-edit-table",children:(0,G.jsx)(fn.A,{formDefinition:d,data:t,cellRenderers:h,onChange:function(e){var t=e.key,n=e.field,r=e.value;o(t,n,r)},recordsPerPage:c,totalCount:s,dataLoadingInProgress:a,onLoadData:i,scrollBehaviour:g?"inline":"none"})})}return null};var _n={updateValue:function(e,t,n){return{type:D,payload:{inputDataKey:e,node:t,value:n}}},loadData:function(e){return{type:S,payload:e}}};const Tn=(0,y.Ng)((function(e){return{data:e.inputEditTable.data,dataFormColumns:e.inputEditTable.dataFormColumns,inputEditForm:e.inputEditTable.inputEditForm,dataLoadingInProgress:e.inputEditTable.dataLoadingInProgress,totalCount:e.inputEditPagination.totalCount,recordsPerPage:e.inputEditPagination.recordsPerPage}}),_n)(Dn);var Cn,Mn,In,Nn,Rn=ve.Ay.div.withConfig({displayName:"StyledPaneWrapper"})(Cn||(Cn=ge()(["\n display: flex;\n height: 100%;\n flex-direction: column;\n"])));const Fn=function(e){var t=e.selection,n=e.onActionClick,r=e.handleNotifications,o=e.initializeTable,i=e.initializeSearch,s=e.actionDefinitions;(0,m.useEffect)((function(){o(),i()}),[t,o,i]);var c=(0,m.useState)(!1),u=V()(c,2),d=u[0],p=u[1],h={cancel:function(e){return(0,G.jsx)(J,{onClick:function(){return n(e)},icon:e.icon,label:e.label})}},g=s.map((function(e){return(0,G.jsx)(a.A.Action,{definition:e,selection:t,customRenderedActions:h},e.id)})),v=f.A.isInAdminEmbedded();return(0,G.jsxs)(G.Fragment,{children:[r&&(Mn||(Mn=(0,G.jsx)(l.A.Notifications,{}))),(0,G.jsx)(Rn,{children:(0,G.jsxs)(Ie,{sidepanelPosition:v?"left":"top",sidepanelCollapsed:d,setSidepanelCollapsed:p,scrollBehaviour:v?"inline":"none",children:[In||(In=(0,G.jsxs)(Ne,{children:[(0,G.jsx)(Re,{}),(0,G.jsx)(pn,{})]})),(0,G.jsxs)(He,{actionBar:!0,children:[(0,G.jsx)(Be,{children:g}),Nn||(Nn=(0,G.jsx)(Ve,{children:(0,G.jsx)(Tn,{})}))]})]})})]})};var Ln={initializeTable:N,initializeSearch:function(){return{type:b}},notify:l.A.toaster,onActionClick:a.A.actions.actionInvoke};const Hn=(0,y.Ng)((function(e){return{selection:e.input.selection,actionDefinitions:e.inputEditTable.actionDefinitions,handleNotifications:e.inputEdit.handleNotifications}}),Ln)(Fn);var Wn="inputEdit/SET_HANDLE_NOTIFICATIONS",Bn="inputEdit/SET_UPDATE_IN_PROGRESS",zn=function(e){return{type:Wn,payload:{handleNotifications:e}}},Yn=function(e){return{type:Bn,payload:{updateInProgress:e}}},Vn=c(29056),Un={handleNotifications:!1,updateInProgress:!1},qn=n()(n()({},Wn,Vn.A.singleTransferReducer("handleNotifications")),Bn,Vn.A.singleTransferReducer("updateInProgress"));const $n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Un,t=arguments.length>1?arguments[1]:void 0,n=qn[t.type];return n?n(e,t):e};var Gn=c(92207),Kn=c.n(Gn),Qn=c(90167),Jn=c(57327),Xn=Kn().mark(nr),Zn=Kn().mark(rr),er=Kn().mark(or),tr=function(e){return e.input};function nr(){return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Qn.Q7)([(0,Qn.p8)(e.A.INPUT_INITIALIZED,or),(0,Qn.p8)(a.A.actions.ACTION_INVOKED,rr)]);case 2:case"end":return t.stop()}}),Xn)}function rr(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.yJ)(N());case 2:case"end":return e.stop()}}),Zn)}function or(){var e,t;return Kn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Qn.yJ)(Yn(!0));case 2:return n.next=4,(0,Qn.Lt)(tr);case 4:return e=n.sent,t=e.selection,n.next=8,(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/update-input-datas",{method:"POST",body:t});case 8:return n.next=10,(0,Qn.yJ)(Yn(!1));case 10:case"end":return n.stop()}}),er)}var ir="inputEditPagination/SET_TOTAL_COUNT",ar=function(e){return{type:ir,payload:{totalCount:e}}},sr={totalCount:0,recordsPerPage:25},cr=n()({},ir,Vn.A.singleTransferReducer("totalCount"));const ur=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sr,t=arguments.length>1?arguments[1]:void 0,n=cr[t.type];return n?n(e,t):e};var lr={form:{},initialized:!1,searchQueries:[]},dr=n()(n()(n()({},w,Vn.A.singleTransferReducer("form")),x,Vn.A.singleTransferReducer("searchQueries")),O,Vn.A.singleTransferReducer("initialized"));const pr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lr,t=arguments.length>1?arguments[1]:void 0,n=dr[t.type];return n?n(e,t):e};var fr=Kn().mark(mr);function mr(e,t,n,r,o,i,a){var s,c;return Kn().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return s=hr(r),c=Jn.A.buildRequestQuery({limit:i,sorting:n,page:a,where:o.join(" and "),paths:s}),u.next=4,(0,Qn.T1)(Jn.A.requestSaga,e,{method:"POST",body:{selection:t,searchBean:c}});case 4:return u.abrupt("return",u.sent);case 5:case"end":return u.stop()}}),fr)}var hr=function(e){return["pk"].concat(Ke()(e.flatMap((function(e){return e.children.map((function(e){return e.path}))}))))};const gr={requestData:mr};function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const br={splitDataForm:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return{actionDefinitions:e.children.find((function(e){return"main-action-bar"===e.id})).children.filter((function(e){return"action"===e.componentType})).filter((function(e){return!r.includes(e.id)})).filter((function(e){return!t||n.includes(e.id)})).map((function(e){return yr(yr({},e),{},{scope:"detail"})})),dataFormColumns:e.children.find((function(e){return"table"===e.componentType})).children}}};var wr=Kn().mark(Er),xr=Kn().mark(_r),Or=Kn().mark(Mr),kr=function(e){return e.input},Ar=function(e){return e.inputEdit},jr=function(e){return e.inputEditTable},Sr=function(e){return e.inputEditSearch.searchQueries},Pr=function(e){return e.inputEditPagination};function Er(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Q7)([(0,Qn.p8)(j,_r),(0,Qn.p8)(S,Tr),(0,Qn.jP)(D,Cr)]);case 2:case"end":return e.stop()}}),wr)}function Dr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Kn().mark((function o(){var i,a,s;return Kn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,Qn.T1)(br.splitDataForm,e,t,n,r);case 2:return i=o.sent,a=i.actionDefinitions,s=i.dataFormColumns,o.next=7,(0,Qn.yJ)(W(a));case 7:return o.next=9,(0,Qn.yJ)(H(s));case 9:case"end":return o.stop()}}),o)}))()}function _r(){var e,t,n,r,o,i,a,s,c,u,d,p,f;return Kn().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,(0,Qn.Lt)(kr);case 2:return e=m.sent,t=e.actionProperties,n=e.selection,r=t&&t.inputEditDataForm?t.inputEditDataForm:"Input_edit_data",m.next=8,(0,Qn.Q7)([(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/form",{method:"POST",body:n}),(0,Qn.T1)(Jn.A.fetchForm,r,"list")]);case 8:if(o=m.sent,i=V()(o,2),a=i[0],s=i[1],c=a.body,u=c.editColumns,d=c.readonly,p=c.readonlyActions,f=c.hiddenActions,!d){m.next=17;break}return u.forEach((function(e){return e.readonly=!0})),m.next=17,(0,Qn.yJ)(l.A.toaster({type:"info",title:"client.actions.InputEdit.input_closed"}));case 17:return m.next=19,(0,Qn.yJ)(F({inputEditForm:u}));case 19:return m.next=21,(0,Qn.T1)(Dr,s,d,p,f);case 21:return m.next=23,(0,Qn.yJ)(z(!0));case 23:case"end":return m.stop()}}),xr)}function Tr(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).payload,t=void 0===e?{}:e,n=t.page,r=t.finishedLoading;return Kn().mark((function e(){var t,o,i,a,s,c,u,l,d,p,f,m;return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Lt)(Ar);case 2:if(t=e.sent,!t.updateInProgress){e.next=7;break}return e.next=7,(0,Qn.s)((function(e){var t=e.payload;return e.type===Bn&&!t.updateInProgress}));case 7:return e.next=9,(0,Qn.Lt)(jr);case 9:if(o=e.sent,o.initialized){e.next=14;break}return e.next=14,(0,Qn.s)((function(e){return e.type===I}));case 14:return e.next=16,(0,Qn.Lt)(kr);case 16:return i=e.sent,a=i.selection,e.next=20,(0,Qn.Lt)(jr);case 20:return s=e.sent,c=s.dataFormColumns,u=s.sorting,e.next=25,(0,Qn.Lt)(Sr);case 25:return l=e.sent,e.next=28,(0,Qn.Lt)(Pr);case 28:return d=e.sent,p=d.recordsPerPage,e.next=32,(0,Qn.T1)(gr.requestData,"inputEdit/data/search",a,u,c,l,p,n||1);case 32:return f=e.sent,e.next=35,(0,Qn.T1)(bn,f);case 35:return m=e.sent,e.next=38,(0,Qn.yJ)(R(m));case 38:return e.next=40,(0,Qn.yJ)(ar(f.body.count));case 40:if(!r){e.next=43;break}return e.next=43,(0,Qn.T1)(r);case 43:case"end":return e.stop()}}),e)}))()}function Cr(e){var t=e.payload,n=t.inputDataKey,r=t.node,o=t.value;return Kn().mark((function e(){var t;return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.yJ)(L(n,r,o));case 2:return e.next=4,(0,Qn.yJ)(B(n,!0));case 4:return e.next=6,(0,Qn.T1)(Jn.A.requestSaga,"inputEdit/data",{method:"POST",body:{inputDataKey:n,node:r,value:o}});case 6:return t=e.sent,e.next=9,Mr(t,n);case 9:case"end":return e.stop()}}),e)}))()}function Mr(e,t){var n,r;return Kn().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(n=e.body.calculatedValues)){o.next=5;break}return r=n.map((function(e){return L(e.inputDataKey,e.node,e.value)})),o.next=5,(0,Qn.Q7)(r.map((function(e){return(0,Qn.yJ)(e)})));case 5:return o.next=7,(0,Qn.yJ)(B(t,!1));case 7:case"end":return o.stop()}}),Or)}var Ir=Kn().mark(Hr),Nr=Kn().mark(Wr),Rr=Kn().mark(Br),Fr=function(e){return e.inputEdit},Lr=function(e){return e.inputEditSearch};function Hr(){return Kn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Qn.Q7)([(0,Qn.p8)(b,Wr),(0,Qn.p8)(x,Br)]);case 2:case"end":return e.stop()}}),Ir)}function Wr(){var e,t,n;return Kn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Qn.Lt)(Fr);case 2:return e=r.sent,t=e&&e.inputEditSearchDataForm?e.inputEditSearchDataForm:"Input_edit_data",r.next=6,(0,Qn.T1)(Jn.A.fetchForm,t,"search");case 6:return n=r.sent,r.next=9,(0,Qn.yJ)(k(n));case 9:case"end":return r.stop()}}),Nr)}function Br(){var e;return Kn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Qn.Lt)(Lr);case 2:if(e=t.sent,!e.initialized){t.next=9;break}return t.next=7,(0,Qn.T1)(Tr);case 7:t.next=11;break;case 9:return t.next=11,(0,Qn.yJ)(A(!0));case 11:case"end":return t.stop()}}),Rr)}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Vr={actionDefinitions:[],dataFormColumns:[],data:[],inputEditForm:[],sorting:[],initialized:!1},Ur=function(e){return(e.loading||0)+1},qr=function(e){return Math.max((e.loading||0)-1,0)},$r=n()(n()(n()(n()(n()(n()(n()(n()({},T,Vn.A.singleTransferReducer("dataFormColumns")),C,Vn.A.singleTransferReducer("actionDefinitions")),E,Vn.A.singleTransferReducer("inputEditForm")),P,Vn.A.singleTransferReducer("data")),_,(function(e,t){var r=t.payload,o=r.inputDataKey,i=r.node,a=r.value;return Yr(Yr({},e),{},{data:e.data.reduce((function(e,t){return t.pk===o?[].concat(Ke()(e),[Yr(Yr({},t),{},n()({},i,a))]):[].concat(Ke()(e),[t])}),[])})})),S,Vn.A.singleTransferReducer("sorting")),M,(function(e,t){var n=t.payload,r=n.inputData,o=n.loading;return Yr(Yr({},e),{},{data:e.data.map((function(e){return e.pk===r?Yr(Yr({},e),{},{loading:o?Ur(e):qr(e)}):e}))})})),I,Vn.A.singleTransferReducer("initialized"));const Gr={inputEdit:$n,inputEditTable:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vr,t=arguments.length>1?arguments[1]:void 0,n=$r[t.type];return n?n(e,t):e},inputEditSearch:pr,inputEditPagination:ur};var Kr,Qr=[nr,Er,Hr];function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Zr="input-edit",eo=["emitAction"],to=function(t,n,r,o){f.A.setInputEnvs(n);var c=Kr||(Kr=(0,G.jsx)(Hn,{})),u=e.A.createStore(Gr,Qr,n,Zr);i.A.addToStore(u,(function(e){return e.input.emitAction})),a.A.dynamicActionsAddToStore(u),a.A.addToStore(u,(function(){return{formApp:d.A,customActions:(e=n,{cancel:e.onCancel}),appComponent:v};var e}));var p=!(null!=r&&r.emitAction);return l.A.addToStore(u,p),s.A.addToStore(u,p,["console","remote","notification"]),e.A.createApp(Zr,c,u,{input:n,events:r,actions:[zn(p)],publicPath:o,textResourceModules:["component","common","actions",Zr]})},no=function(t){return e.A.useApp({initApp:to,props:t,packageName:Zr,externalEvents:eo}).component};no.propTypes=Xr(Xr({selection:o().object,actionProperties:o().shape({inputEditDataForm:o().string.isRequired})},eo.reduce((function(e,t){return e[t]=o().func,e}),{})),{},{appContext:p.A.propTypes});var ro=e.A.createBundleableApp(Zr,to,no);e.A.registerAppInRegistry(ro.name,ro.init)})(),u})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-legacy-bundle",
3
- "version": "3.13.111",
3
+ "version": "3.13.113",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0+",
6
6
  "scripts": {