@polyxd/react 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +45 -0
- package/README.md +15 -2
- package/dist/components/avatar.js +5 -36
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/chart.js +4 -87
- package/dist/components/chart.js.map +1 -1
- package/dist/components/content.d.ts +0 -8
- package/dist/components/content.js +27 -349
- package/dist/components/content.js.map +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter.js.map +1 -1
- package/dist/components/flow.js +11 -85
- package/dist/components/flow.js.map +1 -1
- package/dist/components/index.js +6 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs.d.ts +2 -12
- package/dist/components/inputs.js +5 -47
- package/dist/components/inputs.js.map +1 -1
- package/dist/components/marks.js +5 -20
- package/dist/components/marks.js.map +1 -1
- package/dist/components/navigation.d.ts +2 -0
- package/dist/components/navigation.js +31 -19
- package/dist/components/navigation.js.map +1 -1
- package/dist/components/pickers.js +12 -160
- package/dist/components/pickers.js.map +1 -1
- package/dist/components/shell.d.ts +41 -0
- package/dist/components/shell.js +190 -0
- package/dist/components/shell.js.map +1 -0
- package/dist/components/split.d.ts +11 -0
- package/dist/components/split.js +85 -0
- package/dist/components/split.js.map +1 -0
- package/dist/components/structure.d.ts +8 -0
- package/dist/components/structure.js +12 -1
- package/dist/components/structure.js.map +1 -1
- package/dist/components/table.js +10 -17
- package/dist/components/table.js.map +1 -1
- package/dist/components/tree.js +6 -57
- package/dist/components/tree.js.map +1 -1
- package/dist/context.d.ts +34 -46
- package/dist/context.js +10 -7
- package/dist/context.js.map +1 -1
- package/dist/data.d.ts +2 -26
- package/dist/data.js +2 -51
- package/dist/data.js.map +1 -1
- package/dist/format.d.ts +2 -14
- package/dist/format.js +2 -69
- package/dist/format.js.map +1 -1
- package/dist/frame.d.ts +19 -0
- package/dist/frame.js +21 -0
- package/dist/frame.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/skeleton.js +9 -25
- package/dist/skeleton.js.map +1 -1
- package/dist/surface.d.ts +7 -3
- package/dist/surface.js +15 -13
- package/dist/surface.js.map +1 -1
- package/package.json +11 -6
- package/preview/polyxd.css +2 -0
- package/preview/polyxd.js +56 -0
- package/src/styles.css +623 -8
- package/themes/brutalist.css +300 -0
- package/themes/civic.css +300 -0
- package/themes/editorial.css +300 -0
- package/themes/finance.css +300 -0
- package/themes/glass.css +300 -0
- package/themes/health.css +300 -0
- package/themes/mono.css +300 -0
- package/themes/neon.css +300 -0
- package/themes/pastel.css +300 -0
- package/themes/sketch.css +356 -0
- package/themes/terminal.css +300 -0
- package/themes/wireframe.css +328 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var PolyxdPreview=(()=>{var j4=Object.create;var ic=Object.defineProperty;var B4=Object.getOwnPropertyDescriptor;var H4=Object.getOwnPropertyNames;var U4=Object.getPrototypeOf,L4=Object.prototype.hasOwnProperty;var no=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(a){throw t=0,a}},ma=(e,t)=>{for(var a in t)ic(e,a,{get:t[a],enumerable:!0})},Fv=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of H4(t))!L4.call(e,i)&&i!==a&&ic(e,i,{get:()=>t[i],enumerable:!(o=B4(t,i))||o.enumerable});return e};var j=(e,t,a)=>(a=e!=null?j4(U4(e)):{},Fv(t||!e||!e.__esModule?ic(a,"default",{value:e,enumerable:!0}):a,e)),F4=e=>Fv(ic({},"__esModule",{value:!0}),e);var a0=no($e=>{"use strict";var vm=Symbol.for("react.transitional.element"),V4=Symbol.for("react.portal"),Z4=Symbol.for("react.fragment"),K4=Symbol.for("react.strict_mode"),G4=Symbol.for("react.profiler"),Y4=Symbol.for("react.consumer"),X4=Symbol.for("react.context"),Q4=Symbol.for("react.forward_ref"),J4=Symbol.for("react.suspense"),W4=Symbol.for("react.memo"),Yv=Symbol.for("react.lazy"),e5=Symbol.for("react.activity"),t5=Symbol.for("react.view_transition"),Vv=Symbol.iterator;function r5(e){return e===null||typeof e!="object"?null:(e=Vv&&e[Vv]||e["@@iterator"],typeof e=="function"?e:null)}var Xv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qv=Object.assign,Jv={};function Xi(e,t,a){this.props=e,this.context=t,this.refs=Jv,this.updater=a||Xv}Xi.prototype.isReactComponent={};Xi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Xi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=Xi.prototype;function wm(e,t,a){this.props=e,this.context=t,this.refs=Jv,this.updater=a||Xv}var km=wm.prototype=new Wv;km.constructor=wm;Qv(km,Xi.prototype);km.isPureReactComponent=!0;var Zv=Array.isArray;function bm(){}var it={H:null,A:null,T:null,S:null},e0=Object.prototype.hasOwnProperty;function $m(e,t,a){var o=a.ref;return{$$typeof:vm,type:e,key:t,ref:o!==void 0?o:null,props:a}}function a5(e,t){return $m(e.type,t,e.props)}function Sm(e){return typeof e=="object"&&e!==null&&e.$$typeof===vm}function o5(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Kv=/\/+/g;function ym(e,t){return typeof e=="object"&&e!==null&&e.key!=null?o5(""+e.key):t.toString(36)}function n5(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(bm,bm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Yi(e,t,a,o,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(l){case"bigint":case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case vm:case V4:r=!0;break;case Yv:return r=e._init,Yi(r(e._payload),t,a,o,i)}}if(r)return i=i(e),r=o===""?"."+ym(e,0):o,Zv(i)?(a="",r!=null&&(a=r.replace(Kv,"$&/")+"/"),Yi(i,t,a,"",function(n){return n})):i!=null&&(Sm(i)&&(i=a5(i,a+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(Kv,"$&/")+"/")+r)),t.push(i)),1;r=0;var s=o===""?".":o+":";if(Zv(e))for(var p=0;p<e.length;p++)o=e[p],l=s+ym(o,p),r+=Yi(o,t,a,l,i);else if(p=r5(e),typeof p=="function")for(e=p.call(e),p=0;!(o=e.next()).done;)o=o.value,l=s+ym(o,p++),r+=Yi(o,t,a,l,i);else if(l==="object"){if(typeof e.then=="function")return Yi(n5(e),t,a,o,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return r}function sc(e,t,a){if(e==null)return e;var o=[],i=0;return Yi(e,o,"","",function(l){return t.call(a,l,i++)}),o}function i5(e){if(e._status===-1){var t=e._result,a=t();a.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o,a.status===void 0&&(a.status="fulfilled",a.value=o))},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o,a.status===void 0&&(a.status="rejected",a.reason=o))}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Gv=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function t0(e){var t=it.T,a={};a.types=t!==null?t.types:null,it.T=a;try{var o=e(),i=it.S;i!==null&&i(a,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(bm,Gv)}catch(l){Gv(l)}finally{t!==null&&a.types!==null&&(t.types=a.types),it.T=t}}function r0(e){var t=it.T;if(t!==null){var a=t.types;a===null?t.types=[e]:a.indexOf(e)===-1&&a.push(e)}else t0(r0.bind(null,e))}var s5={map:sc,forEach:function(e,t,a){sc(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return sc(e,function(){t++}),t},toArray:function(e){return sc(e,function(t){return t})||[]},only:function(e){if(!Sm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$e.Activity=e5;$e.Children=s5;$e.Component=Xi;$e.Fragment=Z4;$e.Profiler=G4;$e.PureComponent=wm;$e.StrictMode=K4;$e.Suspense=J4;$e.ViewTransition=t5;$e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=it;$e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return it.H.useMemoCache(e)}};$e.addTransitionType=r0;$e.cache=function(e){return function(){return e.apply(null,arguments)}};$e.cacheSignal=function(){return null};$e.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Qv({},e.props),i=e.key;if(t!=null)for(l in t.key!==void 0&&(i=""+t.key),t)!e0.call(t,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&t.ref===void 0||(o[l]=t[l]);var l=arguments.length-2;if(l===1)o.children=a;else if(1<l){for(var r=Array(l),s=0;s<l;s++)r[s]=arguments[s+2];o.children=r}return $m(e.type,i,o)};$e.createContext=function(e){return e={$$typeof:X4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Y4,_context:e},e};$e.createElement=function(e,t,a){var o,i={},l=null;if(t!=null)for(o in t.key!==void 0&&(l=""+t.key),t)e0.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(i[o]=t[o]);var r=arguments.length-2;if(r===1)i.children=a;else if(1<r){for(var s=Array(r),p=0;p<r;p++)s[p]=arguments[p+2];i.children=s}if(e&&e.defaultProps)for(o in r=e.defaultProps,r)i[o]===void 0&&(i[o]=r[o]);return $m(e,l,i)};$e.createRef=function(){return{current:null}};$e.forwardRef=function(e){return{$$typeof:Q4,render:e}};$e.isValidElement=Sm;$e.lazy=function(e){return{$$typeof:Yv,_payload:{_status:-1,_result:e},_init:i5}};$e.memo=function(e,t){return{$$typeof:W4,type:e,compare:t===void 0?null:t}};$e.startTransition=t0;$e.unstable_useCacheRefresh=function(){return it.H.useCacheRefresh()};$e.use=function(e){return it.H.use(e)};$e.useActionState=function(e,t,a){return it.H.useActionState(e,t,a)};$e.useCallback=function(e,t){return it.H.useCallback(e,t)};$e.useContext=function(e){return it.H.useContext(e)};$e.useDebugValue=function(){};$e.useDeferredValue=function(e,t){return it.H.useDeferredValue(e,t)};$e.useEffect=function(e,t){return it.H.useEffect(e,t)};$e.useEffectEvent=function(e){return it.H.useEffectEvent(e)};$e.useId=function(){return it.H.useId()};$e.useImperativeHandle=function(e,t,a){return it.H.useImperativeHandle(e,t,a)};$e.useInsertionEffect=function(e,t){return it.H.useInsertionEffect(e,t)};$e.useLayoutEffect=function(e,t){return it.H.useLayoutEffect(e,t)};$e.useMemo=function(e,t){return it.H.useMemo(e,t)};$e.useOptimistic=function(e,t){return it.H.useOptimistic(e,t)};$e.useReducer=function(e,t,a){return it.H.useReducer(e,t,a)};$e.useRef=function(e){return it.H.useRef(e)};$e.useState=function(e){return it.H.useState(e)};$e.useSyncExternalStore=function(e,t,a){return it.H.useSyncExternalStore(e,t,a)};$e.useTransition=function(){return it.H.useTransition()};$e.version="19.3.0"});var J=no((H_,o0)=>{"use strict";o0.exports=a0()});var m0=no(xt=>{"use strict";function Am(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,i=e[o];if(0<lc(i,t))e[o]=t,e[a]=i,a=o;else break e}}function io(e){return e.length===0?null:e[0]}function pc(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,i=e.length,l=i>>>1;o<l;){var r=2*(o+1)-1,s=e[r],p=r+1,n=e[p];if(0>lc(s,a))p<i&&0>lc(n,s)?(e[o]=n,e[p]=a,o=p):(e[o]=s,e[r]=a,o=r);else if(p<i&&0>lc(n,a))e[o]=n,e[p]=a,o=p;else break e}}return t}function lc(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}xt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(n0=performance,xt.unstable_now=function(){return n0.now()}):(Pm=Date,i0=Pm.now(),xt.unstable_now=function(){return Pm.now()-i0});var n0,Pm,i0,No=[],un=[],l5=1,xa=null,br=3,Rm=!1,yd=!1,bd=!1,Nm=!1,d0=typeof setTimeout=="function"?setTimeout:null,p0=typeof clearTimeout=="function"?clearTimeout:null,s0=typeof setImmediate<"u"?setImmediate:null;function dc(e){for(var t=io(un);t!==null;){if(t.callback===null)pc(un);else if(t.startTime<=e)pc(un),t.sortIndex=t.expirationTime,Am(No,t);else break;t=io(un)}}function Dm(e){if(bd=!1,dc(e),!yd)if(io(No)!==null)yd=!0,Ji||(Ji=!0,Qi());else{var t=io(un);t!==null&&Tm(Dm,t.startTime-e)}}var Ji=!1,vd=-1,c0=5,u0=-1;function f0(){return Nm?!0:!(xt.unstable_now()-u0<c0)}function Cm(){if(Nm=!1,Ji){var e=xt.unstable_now();u0=e;var t=!0;try{e:{yd=!1,bd&&(bd=!1,p0(vd),vd=-1),Rm=!0;var a=br;try{t:{for(dc(e),xa=io(No);xa!==null&&!(xa.expirationTime>e&&f0());){var o=xa.callback;if(typeof o=="function"){xa.callback=null,br=xa.priorityLevel;var i=o(xa.expirationTime<=e);if(e=xt.unstable_now(),typeof i=="function"){xa.callback=i,dc(e),t=!0;break t}xa===io(No)&&pc(No),dc(e)}else pc(No);xa=io(No)}if(xa!==null)t=!0;else{var l=io(un);l!==null&&Tm(Dm,l.startTime-e),t=!1}}break e}finally{xa=null,br=a,Rm=!1}t=void 0}}finally{t?Qi():Ji=!1}}}var Qi;typeof s0=="function"?Qi=function(){s0(Cm)}:typeof MessageChannel<"u"?(zm=new MessageChannel,l0=zm.port2,zm.port1.onmessage=Cm,Qi=function(){l0.postMessage(null)}):Qi=function(){d0(Cm,0)};var zm,l0;function Tm(e,t){vd=d0(function(){e(xt.unstable_now())},t)}xt.unstable_IdlePriority=5;xt.unstable_ImmediatePriority=1;xt.unstable_LowPriority=4;xt.unstable_NormalPriority=3;xt.unstable_Profiling=null;xt.unstable_UserBlockingPriority=2;xt.unstable_cancelCallback=function(e){e.callback=null};xt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):c0=0<e?Math.floor(1e3/e):5};xt.unstable_getCurrentPriorityLevel=function(){return br};xt.unstable_next=function(e){switch(br){case 1:case 2:case 3:var t=3;break;default:t=br}var a=br;br=t;try{return e()}finally{br=a}};xt.unstable_requestPaint=function(){Nm=!0};xt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=br;br=e;try{return t()}finally{br=a}};xt.unstable_scheduleCallback=function(e,t,a){var o=xt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?o+a:o):a=o,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=a+i,e={id:l5++,callback:t,priorityLevel:e,startTime:a,expirationTime:i,sortIndex:-1},a>o?(e.sortIndex=a,Am(un,e),io(No)===null&&e===io(un)&&(bd?(p0(vd),vd=-1):bd=!0,Tm(Dm,a-o))):(e.sortIndex=i,Am(No,e),yd||Rm||(yd=!0,Ji||(Ji=!0,Qi()))),e};xt.unstable_shouldYield=f0;xt.unstable_wrapCallback=function(e){var t=br;return function(){var a=br;br=t;try{return e.apply(this,arguments)}finally{br=a}}}});var g0=no((L_,x0)=>{"use strict";x0.exports=m0()});var b0=no(vr=>{"use strict";var d5=J();function y0(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fn(){}var Rr={d:{f:fn,r:function(){throw Error(y0(522))},D:fn,C:fn,L:fn,m:fn,X:fn,S:fn,M:fn},p:0,findDOMNode:null},p5=Symbol.for("react.portal"),c5=Symbol.for("react.recoverable"),h0=Symbol.for("react.optimistic_key");function u5(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p5,key:o==null?null:o===h0?h0:""+o,children:e,containerInfo:t,implementation:a}}var wd=d5.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function cc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}vr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Rr;vr.browser=function(e){return{$$typeof:c5,_reason:e}};vr.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(y0(299));return u5(e,t,null,a)};vr.flushSync=function(e){var t=wd.T,a=Rr.p;try{if(wd.T=null,Rr.p=2,e)return e()}finally{wd.T=t,Rr.p=a,Rr.d.f()}};vr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Rr.d.C(e,t))};vr.prefetchDNS=function(e){typeof e=="string"&&Rr.d.D(e)};vr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,o=cc(a,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Rr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):a==="script"&&Rr.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};vr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=cc(t.as,t.crossOrigin);Rr.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Rr.d.M(e)};vr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,o=cc(a,t.crossOrigin);Rr.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};vr.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=cc(t.as,t.crossOrigin);Rr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Rr.d.m(e)};vr.requestFormReset=function(e){Rr.d.r(e)};vr.unstable_batchedUpdates=function(e,t){return e(t)};vr.useFormState=function(e,t,a){return wd.H.useFormState(e,t,a)};vr.useFormStatus=function(){return wd.H.useHostTransitionStatus()};vr.version="19.3.0"});var kd=no((V_,w0)=>{"use strict";function v0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v0)}catch(e){console.error(e)}}v0(),w0.exports=b0()});var s$=no(Zu=>{"use strict";var Kt=g0(),iw=J(),f5=kd();function H(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function sw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function dp(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function lw(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function dw(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function k0(e){if(dp(e)!==e)throw Error(H(188))}function m5(e){var t=e.alternate;if(!t){if(t=dp(e),t===null)throw Error(H(188));return t!==e?null:e}for(var a=e,o=t;;){var i=a.return;if(i===null)break;var l=i.alternate;if(l===null){if(o=i.return,o!==null){a=o;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===a)return k0(i),e;if(l===o)return k0(i),t;l=l.sibling}throw Error(H(188))}if(a.return!==o.return)a=i,o=l;else{for(var r=!1,s=i.child;s;){if(s===a){r=!0,a=i,o=l;break}if(s===o){r=!0,o=i,a=l;break}s=s.sibling}if(!r){for(s=l.child;s;){if(s===a){r=!0,a=l,o=i;break}if(s===o){r=!0,o=l,a=i;break}s=s.sibling}if(!r)throw Error(H(189))}}if(a.alternate!==o)throw Error(H(190))}if(a.tag!==3)throw Error(H(188));return a.stateNode.current===a?e:t}function pw(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pw(e),t!==null)return t;e=e.sibling}return null}function Kr(e,t,a,o,i,l){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,o,i,l)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Kr(e.child,t,a,o,i,l))return!0;e=e.sibling}return!1}function ki(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function $0(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function cw(e){var t=[null,null],a=ki(e);return a===null||uw(t,e,a.child,{foundSelf:!1}),t}function uw(e,t,a,o){for(;a!==null;){if(a===t)o.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(o.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&uw(e,t,a.child,o))return!0;a=a.sibling}return!1}function Zt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(H(559))}}var ns=null,px=null;function x5(e,t,a){return e===a?!0:e===t?(ns=e,!0):!1}function g5(e,t,a){return e===a?(px=e,!1):e===t?(px!==null&&(ns=e),!0):!1}function S0(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function cx(e,t,a){for(var o=0,i=e;i;i=a(i))o++;i=0;for(var l=t;l;l=a(l))i++;for(;0<o-i;)e=a(e),o--;for(;0<i-o;)t=a(t),i--;for(;o--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var nt=Object.assign,h5=Symbol.for("react.element"),uc=Symbol.for("react.transitional.element"),Rd=Symbol.for("react.portal"),is=Symbol.for("react.fragment"),fw=Symbol.for("react.strict_mode"),ux=Symbol.for("react.profiler"),mw=Symbol.for("react.consumer"),fo=Symbol.for("react.context"),wg=Symbol.for("react.forward_ref"),fx=Symbol.for("react.suspense"),mx=Symbol.for("react.suspense_list"),kg=Symbol.for("react.memo"),hn=Symbol.for("react.lazy"),xx=Symbol.for("react.activity"),y5=Symbol.for("react.legacy_hidden"),b5=Symbol.for("react.memo_cache_sentinel"),gx=Symbol.for("react.view_transition"),v5=Symbol.for("react.recoverable"),P0=Symbol.iterator;function $d(e){return e===null||typeof e!="object"?null:(e=P0&&e[P0]||e["@@iterator"],typeof e=="function"?e:null)}var w5=Symbol.for("react.client.reference");function hx(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===w5?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case is:return"Fragment";case ux:return"Profiler";case fw:return"StrictMode";case fx:return"Suspense";case mx:return"SuspenseList";case xx:return"Activity";case gx:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Rd:return"Portal";case fo:return e.displayName||"Context";case mw:return(e._context.displayName||"Context")+".Consumer";case wg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kg:return t=e.displayName||null,t!==null?t:hx(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return hx(e(t))}catch{}}return null}var Nd=Array.isArray,ve=iw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fe=f5.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,di={pending:!1,data:null,method:null,action:null},yx=[],ss=-1;function vo(e){return{current:e}}function pr(e){0>ss||(e.current=yx[ss],yx[ss]=null,ss--)}function dt(e,t){ss++,yx[ss]=e.current,e.current=t}var ho=vo(null),Kd=vo(null),Cn=vo(null),Jc=vo(null);function Wc(e,t){switch(dt(Cn,t),dt(Kd,e),dt(ho,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?j1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=j1(t),e=_2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}pr(ho),dt(ho,e)}function zs(){pr(ho),pr(Kd),pr(Cn)}function bx(e){var t=e.memoizedState;t!==null&&(Os._currentValue=t.memoizedState,dt(Jc,e)),t=ho.current;var a=_2(t,e.type);t!==a&&(dt(Kd,e),dt(ho,a))}function eu(e){Kd.current===e&&(pr(ho),pr(Kd)),Jc.current===e&&(pr(Jc),Os._currentValue=di)}var Em,C0;function xn(e){if(Em===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Em=t&&t[1]||"",C0=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Em+e+C0}var Im=!1;function Mm(e,t){if(!e||Im)return"";Im=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(m){var u=m}Reflect.construct(e,[],c)}else{try{c.call()}catch(m){u=m}c=!1;try{var f=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),c=!0,new e}finally{c&&(f!==void 0?Object.defineProperty(e.prototype,"props",f):delete e.prototype.props)}}}else{try{throw Error()}catch(m){u=m}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(m){if(m&&u&&typeof m.stack=="string")return[m.stack,u.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=o.DetermineComponentFrameRoot(),r=l[0],s=l[1];if(r&&s){var p=r.split(`
|
|
4
|
+
`),n=s.split(`
|
|
5
|
+
`);for(i=o=0;o<p.length&&!p[o].includes("DetermineComponentFrameRoot");)o++;for(;i<n.length&&!n[i].includes("DetermineComponentFrameRoot");)i++;if(o===p.length||i===n.length)for(o=p.length-1,i=n.length-1;1<=o&&0<=i&&p[o]!==n[i];)i--;for(;1<=o&&0<=i;o--,i--)if(p[o]!==n[i]){if(o!==1||i!==1)do if(o--,i--,0>i||p[o]!==n[i]){var d=`
|
|
6
|
+
`+p[o].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=o&&0<=i);break}}}finally{Im=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?xn(a):""}function k5(e,t){switch(e.tag){case 26:case 27:case 5:return xn(e.type);case 16:return xn("Lazy");case 13:return e.child!==t&&t!==null?xn("Suspense Fallback"):xn("Suspense");case 19:return xn("SuspenseList");case 0:case 15:return Mm(e.type,!1);case 11:return Mm(e.type.render,!1);case 1:return Mm(e.type,!0);case 31:return xn("Activity");case 30:return xn("ViewTransition");default:return""}}function z0(e){try{var t="",a=null;do t+=k5(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}}var vx=Object.prototype.hasOwnProperty,$g=Kt.unstable_scheduleCallback,_m=Kt.unstable_cancelCallback,$5=Kt.unstable_shouldYield,S5=Kt.unstable_requestPaint,ia=Kt.unstable_now,P5=Kt.unstable_getCurrentPriorityLevel,xw=Kt.unstable_ImmediatePriority,gw=Kt.unstable_UserBlockingPriority,tu=Kt.unstable_NormalPriority,C5=Kt.unstable_LowPriority,hw=Kt.unstable_IdlePriority,z5=Kt.log,A5=Kt.unstable_setDisableYieldValue,pp=null,sa=null;function vn(e){if(typeof z5=="function"&&A5(e),sa&&typeof sa.setStrictMode=="function")try{sa.setStrictMode(pp,e)}catch{}}var la=Math.clz32?Math.clz32:D5,R5=Math.log,N5=Math.LN2;function D5(e){return e>>>=0,e===0?32:31-(R5(e)/N5|0)|0}var fc=256,mc=262144,xc=4194304;function oi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zu(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var i=0,l=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~l,o!==0?i=oi(o):(r&=s,r!==0?i=oi(r):a||(a=s&~e,a!==0&&(i=oi(a))))):(s=o&~l,s!==0?i=oi(s):r!==0?i=oi(r):a||(a=o&~e,a!==0&&(i=oi(a)))),i===0?0:t!==0&&t!==i&&(t&l)===0&&(l=i&-i,a=t&-t,l>=a||l===32&&(a&4194048)!==0)?t:i}function cp(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yw(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-la(a),i=1<<o;t|=e[o],a&=~i}return t}function T5(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bw(){var e=xc;return xc<<=1,(xc&62914560)===0&&(xc=4194304),e}function Om(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function up(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function E5(e,t,a,o,i,l){var r=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var s=e.entanglements,p=e.expirationTimes,n=e.hiddenUpdates;for(a=r&~a;0<a;){var d=31-la(a),c=1<<d;s[d]=0,p[d]=-1;var u=n[d];if(u!==null)for(n[d]=null,d=0;d<u.length;d++){var f=u[d];f!==null&&(f.lane&=-536870913)}a&=~c}o!==0&&vw(e,o,0),l!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=l&~(r&~t))}function vw(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-la(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ww(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-la(a),i=1<<o;i&t|e[o]&t&&(e[o]|=t),a&=~i}}function kw(e,t){var a=t&-t;return a=(a&42)!==0?1:Sg(a),(a&(e.suspendedLanes|t))!==0?0:a}function Sg(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Pg(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $w(){var e=Fe.p;return e!==0?e:(e=window.event,e===void 0?32:o$(e.type))}function A0(e,t){var a=Fe.p;try{return Fe.p=e,t()}finally{Fe.p=a}}var Lo=Math.random().toString(36).slice(2),lr="__reactFiber$"+Lo,Gr="__reactProps$"+Lo,Bs="__reactContainer$"+Lo,R0="__reactEvents$"+Lo,I5="__reactListeners$"+Lo,M5="__reactHandles$"+Lo,N0="__reactResources$"+Lo,fp="__reactMarker$"+Lo,ru="__reactLoad$"+Lo;function Au(e){delete e[lr],delete e[Gr],delete e[I5],delete e[M5]}function si(e){var t;if(t=e[lr])return t;for(var a=e.parentNode;a;){if(t=a[Bs]||a[lr]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=K1(e);e!==null;){if(a=e[lr])return a;e=K1(e)}return t}e=a,a=e.parentNode}return null}function Hs(e){if(e=e[lr]||e[Bs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dd(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function hs(e){var t=e[N0];return t||(t=e[N0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function er(e){e[fp]=!0}function Sw(e){e[ru]=void 0}var Pw=new Set,Cw={};function $i(e,t){As(e,t),As(e+"Capture",t)}function As(e,t){for(Cw[e]=t,e=0;e<t.length;e++)Pw.add(t[e])}var _5=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),D0={},T0={};function O5(e){return vx.call(T0,e)?!0:vx.call(D0,e)?!1:_5.test(e)?T0[e]=!0:(D0[e]=!0,!1)}var He=!1;function E0(){var e=He;return He=!1,e}function Ec(e,t,a){if(O5(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function gc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function Do(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,o)}}function ra(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q5(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var i=o.get,l=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){a=""+r,l.call(this,r)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wx(e){if(!e._valueTracker){var t=zw(e)?"checked":"value";e._valueTracker=q5(e,t,""+e[t])}}function Aw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=zw(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}var j5=/[\n"\\]/g;function va(e){return e.replace(j5,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kx(e,t,a,o,i,l,r,s){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ra(t)):e.value!==""+ra(t)&&(e.value=""+ra(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?r==="number"&&e.value==t?qm(e,ra(e.value)):qm(e,ra(t)):a!=null?qm(e,ra(a)):o!=null&&e.removeAttribute("value"),i==null&&l!=null&&(e.defaultChecked=!!l),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ra(s):e.removeAttribute("name")}function Rw(e,t,a,o,i,l,r,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){wx(e);return}a=a!=null?""+ra(a):"",t=t!=null?""+ra(t):a,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??i,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),wx(e)}function qm(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function ys(e,t,a,o){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&o&&(e[a].defaultSelected=!0)}else{for(a=""+ra(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,o&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Nw(e,t,a){if(t!=null&&(t=""+ra(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ra(a):""}function Dw(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(H(92));if(Nd(o)){if(1<o.length)throw Error(H(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=ra(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),wx(e)}function Rs(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var B5=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function I0(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||B5.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Tw(e,t,a){if(t!=null&&typeof t!="object")throw Error(H(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="",He=!0);for(var i in t)o=t[i],t.hasOwnProperty(i)&&a[i]!==o&&(I0(e,i,o),He=!0)}else for(var l in t)t.hasOwnProperty(l)&&I0(e,l,t[l])}function Cg(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var H5=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),U5=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ic(e){return U5.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mo(){}var $x=null;function zg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,bs=null;function M0(e){var t=Hs(e);if(t&&(e=t.stateNode)){var a=e[Gr]||null;e:switch(e=t.stateNode,t.type){case"input":if(kx(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+va(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var i=o[Gr]||null;if(!i)throw Error(H(90));kx(o,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Aw(o)}break e;case"textarea":Nw(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ys(e,!!a.multiple,t,!1)}}}var jm=!1;function Ew(e,t,a){if(jm)return e(t,a);jm=!0;try{var o=e(t);return o}finally{if(jm=!1,(ls!==null||bs!==null)&&(Uu(),ls&&(t=ls,e=bs,bs=ls=null,M0(t),e)))for(t=0;t<e.length;t++)M0(e[t])}}function Gd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Gr]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(H(231,t,typeof a));return a}var Oo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sx=!1;if(Oo)try{Wi={},Object.defineProperty(Wi,"passive",{get:function(){Sx=!0}}),window.addEventListener("test",Wi,Wi),window.removeEventListener("test",Wi,Wi)}catch{Sx=!1}var Wi,wn=null,Ag=null,Mc=null;function Iw(){if(Mc)return Mc;var e,t=Ag,a=t.length,o,i="value"in wn?wn.value:wn.textContent,l=i.length;for(e=0;e<a&&t[e]===i[e];e++);var r=a-e;for(o=1;o<=r&&t[a-o]===i[l-o];o++);return Mc=i.slice(e,1<o?1-o:void 0)}function _c(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hc(){return!0}function _0(){return!1}function Er(e){function t(a,o,i,l,r){this._reactName=a,this._targetInst=i,this.type=o,this.nativeEvent=l,this.target=r,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(a=e[s],this[s]=a?a(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?hc:_0,this.isPropagationStopped=_0,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hc)},persist:function(){},isPersistent:hc}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Er(Hn),mp=nt({},Hn,{view:0,detail:0}),L5=Er(mp),Bm,Hm,Sd,Nu=nt({},mp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Sd&&(Sd&&e.type==="mousemove"?(Bm=e.screenX-Sd.screenX,Hm=e.screenY-Sd.screenY):Hm=Bm=0,Sd=e),Bm)},movementY:function(e){return"movementY"in e?e.movementY:Hm}}),O0=Er(Nu),F5=nt({},Nu,{dataTransfer:0}),V5=Er(F5),Z5=nt({},mp,{relatedTarget:0}),Um=Er(Z5),K5=nt({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0}),G5=Er(K5),Y5=nt({},Hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X5=Er(Y5),Q5=nt({},Hn,{data:0}),q0=Er(Q5),J5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W5={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=eR[e])?!!t[e]:!1}function Rg(){return tR}var rR=nt({},mp,{key:function(e){if(e.key){var t=J5[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_c(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W5[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(e){return e.type==="keypress"?_c(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_c(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aR=Er(rR),oR=nt({},Nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j0=Er(oR),nR=nt({},Hn,{submitter:0}),iR=Er(nR),sR=nt({},mp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),lR=Er(sR),dR=nt({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0}),pR=Er(dR),cR=nt({},Nu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),uR=Er(cR),fR=nt({},Hn,{newState:0,oldState:0,source:0}),mR=Er(fR),xR=[9,13,27,32],Ng=Oo&&"CompositionEvent"in window,Id=null;Oo&&"documentMode"in document&&(Id=document.documentMode);var gR=Oo&&"TextEvent"in window&&!Id,Mw=Oo&&(!Ng||Id&&8<Id&&11>=Id),B0=" ",H0=!1;function _w(e,t){switch(e){case"keyup":return xR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ow(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function hR(e,t){switch(e){case"compositionend":return Ow(t);case"keypress":return t.which!==32?null:(H0=!0,B0);case"textInput":return e=t.data,e===B0&&H0?null:e;default:return null}}function yR(e,t){if(ds)return e==="compositionend"||!Ng&&_w(e,t)?(e=Iw(),Mc=Ag=wn=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mw&&t.locale!=="ko"?null:t.data;default:return null}}var bR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function U0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bR[e.type]:t==="textarea"}function qw(e,t,a,o){ls?bs?bs.push(o):bs=[o]:ls=o,t=Su(t,"onChange"),0<t.length&&(a=new Ru("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Md=null,Yd=null;function vR(e){E2(e,0)}function Du(e){var t=Dd(e);if(Aw(t))return e}function L0(e,t){if(e==="change")return t}var jw=!1;Oo&&(Oo?(bc="oninput"in document,bc||(Lm=document.createElement("div"),Lm.setAttribute("oninput","return;"),bc=typeof Lm.oninput=="function"),yc=bc):yc=!1,jw=yc&&(!document.documentMode||9<document.documentMode));var yc,bc,Lm;function F0(){Md&&(Md.detachEvent("onpropertychange",Bw),Yd=Md=null)}function Bw(e){if(e.propertyName==="value"&&Du(Yd)){var t=[];qw(t,Yd,e,zg(e)),Ew(vR,t)}}function wR(e,t,a){e==="focusin"?(F0(),Md=t,Yd=a,Md.attachEvent("onpropertychange",Bw)):e==="focusout"&&F0()}function kR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Du(Yd)}function $R(e,t){if(e==="click")return Du(t)}function SR(e,t){if(e==="input"||e==="change")return Du(t)}function PR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pa=typeof Object.is=="function"?Object.is:PR;function Xd(e,t){if(pa(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var i=a[o];if(!vx.call(t,i)||!pa(e[i],t[i]))return!1}return!0}function Px(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function V0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Z0(e,t){var a=V0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=V0(a)}}function Hw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uw(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Px(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Px(e.document)}return t}function Dg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var CR=Oo&&"documentMode"in document&&11>=document.documentMode,ps=null,Cx=null,_d=null,zx=!1;function K0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zx||ps==null||ps!==Px(o)||(o=ps,"selectionStart"in o&&Dg(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),_d&&Xd(_d,o)||(_d=o,o=Su(Cx,"onSelect"),0<o.length&&(t=new Ru("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=ps)))}function ri(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var cs={animationend:ri("Animation","AnimationEnd"),animationiteration:ri("Animation","AnimationIteration"),animationstart:ri("Animation","AnimationStart"),transitionrun:ri("Transition","TransitionRun"),transitionstart:ri("Transition","TransitionStart"),transitioncancel:ri("Transition","TransitionCancel"),transitionend:ri("Transition","TransitionEnd")},Fm={},Lw={};Oo&&(Lw=document.createElement("div").style,"AnimationEvent"in window||(delete cs.animationend.animation,delete cs.animationiteration.animation,delete cs.animationstart.animation),"TransitionEvent"in window||delete cs.transitionend.transition);function Si(e){if(Fm[e])return Fm[e];if(!cs[e])return e;var t=cs[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Lw)return Fm[e]=t[a];return e}var Fw=Si("animationend"),Vw=Si("animationiteration"),Zw=Si("animationstart"),zR=Si("transitionrun"),AR=Si("transitionstart"),RR=Si("transitioncancel"),Kw=Si("transitionend"),Gw=new Map,Ax="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ax.push("scrollEnd");function ja(e,t){Gw.set(e,t),$i(t,[e])}var NR=0;function qo(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=qa.identifierPrefix;var a=NR++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function G0(e){if(e==null||typeof e=="string")return e;var t=null,a=Cs;if(a!==null)for(var o=0;o<a.length;o++){var i=e[a[o]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Fo(e,t){return e=G0(e),t=G0(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var au=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ha=[],us=0,Tg=0;function Tu(){for(var e=us,t=Tg=us=0;t<e;){var a=ha[t];ha[t++]=null;var o=ha[t];ha[t++]=null;var i=ha[t];ha[t++]=null;var l=ha[t];if(ha[t++]=null,o!==null&&i!==null){var r=o.pending;r===null?i.next=i:(i.next=r.next,r.next=i),o.pending=i}l!==0&&Yw(a,i,l)}}function Eu(e,t,a,o){ha[us++]=e,ha[us++]=t,ha[us++]=a,ha[us++]=o,Tg|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Eg(e,t,a,o){return Eu(e,t,a,o),ou(e)}function Pi(e,t){return Eu(e,null,null,t),ou(e)}function Yw(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var i=!1,l=e.return;l!==null;)l.childLanes|=a,o=l.alternate,o!==null&&(o.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(i=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,i&&t!==null&&(i=31-la(a),e=l.hiddenUpdates,o=e[i],o===null?e[i]=[t]:o.push(t),t.lane=a|536870912),l):null}function ou(e){if(50<Zd)throw Zd=0,Zc=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fs={};function DR(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vr(e,t,a,o){return new DR(e,t,a,o)}function Ig(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mo(e,t){var a=e.alternate;return a===null?(a=Vr(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Xw(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oc(e,t,a,o,i,l){var r=0;if(o=e,typeof o=="function")Ig(o)&&(r=1);else if(typeof o=="string")r=a3(e,a,ho.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(o){case xx:return e=Vr(31,a,t,i),e.elementType=xx,e.lanes=l,e;case is:return pi(a.children,i,l,t);case fw:r=8,i|=24;break;case ux:return e=Vr(12,a,t,i|2),e.elementType=ux,e.lanes=l,e;case fx:return e=Vr(13,a,t,i),e.elementType=fx,e.lanes=l,e;case mx:return e=Vr(19,a,t,i),e.elementType=mx,e.lanes=l,e;case y5:case gx:return e=i|32,e=Vr(30,a,t,e),e.elementType=gx,e.lanes=l,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case fo:r=10;break e;case mw:r=9;break e;case wg:r=11;break e;case kg:r=14;break e;case hn:r=16,o=null;break e}r=29,a=Error(H(130,e===null?"null":typeof e,"")),o=null}return t=Vr(r,a,t,i),t.elementType=e,t.type=o,t.lanes=l,t}function pi(e,t,a,o){return e=Vr(7,e,o,t),e.lanes=a,e}function Vm(e,t,a){return e=Vr(6,e,null,t),e.lanes=a,e}function Qw(e){var t=Vr(18,null,null,0);return t.stateNode=e,t}function Zm(e,t,a){return t=Vr(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Y0=new WeakMap;function wa(e,t){if(typeof e=="object"&&e!==null){var a=Y0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:z0(t)},Y0.set(e,t),t)}return{value:e,source:t,stack:z0(t)}}var ms=[],xs=0,nu=null,Qd=0,ya=[],ba=0,_n=null,xo=1,go="";function Eo(e,t){ms[xs++]=Qd,ms[xs++]=nu,nu=e,Qd=t}function Jw(e,t,a){ya[ba++]=xo,ya[ba++]=go,ya[ba++]=_n,_n=e;var o=xo;e=go;var i=32-la(o)-1;o&=~(1<<i),a+=1;var l=32-la(t)+i;if(30<l){var r=i-i%5;l=(o&(1<<r)-1).toString(32),o>>=r,i-=r,xo=1<<32-la(t)+i|a<<i|o,go=l+e}else xo=1<<l|a<<i|o,go=e}function Iu(e){e.return!==null&&(Eo(e,1),Jw(e,1,0))}function Mg(e){for(;e===nu;)nu=ms[--xs],ms[xs]=null,Qd=ms[--xs],ms[xs]=null;for(;e===_n;)_n=ya[--ba],ya[ba]=null,go=ya[--ba],ya[ba]=null,xo=ya[--ba],ya[ba]=null}function Ww(e,t){ya[ba++]=xo,ya[ba++]=go,ya[ba++]=_n,xo=t.id,go=t.overflow,_n=e}var tr=null,lt=null,ze=!1,zn=null,ka=!1,Rx=Error(H(519));function On(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jd(wa(t,e)),Rx}function X0(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[lr]=e,t[Gr]=o,a){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(a=0;a<rp.length;a++)Ne(rp[a],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Rw(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),Dw(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||M2(t.textContent,a)?(o.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),o.onScroll!=null&&Ne("scroll",t),o.onScrollEnd!=null&&Ne("scrollend",t),o.onClick!=null&&(t.onclick=mo),t=!0):t=!1,t||On(e,!0)}function iu(e){for(tr=e.return;tr;)switch(tr.tag){case 5:case 31:case 13:ka=!1;return;case 27:case 3:ka=!0;return;default:tr=tr.return}}function es(e){if(e!==tr)return!1;if(!ze)return iu(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||fg(e.type,e.memoizedProps)),a=!a),a&<&&On(e),iu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));lt=Z1(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));lt=Z1(e)}else t===27?(t=lt,Un(e.type)?(e=hg,hg=null,lt=e):lt=t):lt=tr?$a(e.stateNode.nextSibling):null;return!0}function mi(){lt=tr=null,ze=!1}function Km(){var e=zn;return e!==null&&(Lr===null?Lr=e:Lr.push.apply(Lr,e),zn=null),e}function Jd(e){zn===null?zn=[e]:zn.push(e)}var Nx=vo(null),Ci=null,Io=null;function kn(e,t,a){dt(Nx,t._currentValue),t._currentValue=a}function _o(e){e._currentValue=Nx.current,pr(Nx)}function qc(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function Dx(e,t,a,o){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){var r=i.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=i;for(var p=0;p<t.length;p++)if(s.context===t[p]){l.lanes|=a,s=l.alternate,s!==null&&(s.lanes|=a),qc(l.return,a,e),o||(r=null);break e}l=s.next}}else if(i.tag===18){if(r=i.return,r===null)throw Error(H(341));r.lanes|=a,l=r.alternate,l!==null&&(l.lanes|=a),qc(r,a,e),r=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),qc(i.return,a,e),r=i.child,r=r!==null?r.sibling:null):r=i.child;if(r!==null)r.return=i;else for(r=i;r!==null;){if(r===e){r=null;break}if(i=r.sibling,i!==null){i.return=r.return,r=i;break}r=r.return}i=r}}function xi(e,t,a,o){e=null;for(var i=t,l=!1;i!==null;){if(!l){if((i.flags&524288)!==0)l=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var r=i.alternate;if(r===null)throw Error(H(387));if(r=r.memoizedProps,r!==null){var s=i.type;pa(i.pendingProps.value,r.value)||(e!==null?e.push(s):e=[s])}}else if(i===Jc.current){if(r=i.alternate,r===null)throw Error(H(387));r.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Os):e=[Os])}i=i.return}return e!==null&&Dx(t,e,a,o),t.flags|=262144,e!==null}function su(e){for(e=e.firstContext;e!==null;){if(!pa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gi(e){Ci=e,Io=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dr(e){return ek(Ci,e)}function vc(e,t){return Ci===null&&gi(e),ek(e,t)}function ek(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Io===null){if(e===null)throw Error(H(308));Io=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Io=Io.next=t;return a}var TR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ER=Kt.unstable_scheduleCallback,IR=Kt.unstable_NormalPriority,It={$$typeof:fo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _g(){return{controller:new TR,data:new Map,refCount:0}}function xp(e){e.refCount--,e.refCount===0&&ER(IR,function(){e.controller.abort()})}function Q0(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var o=t[e];a.indexOf(o)===-1&&a.push(o)}}}var Td=null;function MR(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Od=null,Tx=0,hi=0,vs=null;function _R(e,t){if(Od===null){var a=Od=[];Tx=0,hi=ph(),vs={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Tx++,t.then(J0,J0),t}function J0(){if(--Tx===0&&(Td=null,Od!==null)){vs!==null&&(vs.status="fulfilled");var e=Od;Od=null,hi=0,vs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function OR(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(o.status="rejected",o.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),o}var W0=ve.S;ve.S=function(e,t){if(y2=ia(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_R(e,t),Td!==null)for(var a=Is;a!==null;)Q0(a,Td),a=a.next;if(a=e.types,a!==null){for(var o=Is;o!==null;)Q0(o,a),o=o.next;if(hi!==0){o=Td,o===null&&(o=Td=[]);for(var i=0;i<a.length;i++){var l=a[i];o.indexOf(l)===-1&&o.push(l)}}}W0!==null&&W0(e,t)};var ci=vo(null);function Og(){var e=ci.current;return e!==null?e:ot.pooledCache}function jc(e,t){t===null?dt(ci,ci.current):dt(ci,t.pool)}function tk(){var e=Og();return e===null?null:{parent:It._currentValue,pool:e}}var Us=Error(H(460)),qg=Error(H(474)),Mu=Error(H(542)),lu={then:function(){}};function e1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rk(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(mo,mo),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,r1(e),e===void 0&&!("reason"in t)?Error(H(600)):e;default:if(typeof t.status=="string")t.then(mo,mo);else{if(e=ot,e!==null&&100<e.shellSuspendCounter)throw Error(H(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=o}},function(o){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,r1(e),e}throw ui=t,Us}}function ni(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ui=a,Us):a}}var ui=null;function t1(){if(ui===null)throw Error(H(459));var e=ui;return ui=null,e}function r1(e){if(e===Us||e===Mu)throw Error(H(483))}var ws=null,Wd=0;function wc(e){var t=Wd;return Wd+=1,ws===null&&(ws=[]),rk(ws,e,t)}function mn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kc(e,t){throw t.$$typeof===h5?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ak(e){function t(x,g){if(e){var y=x.deletions;y===null?(x.deletions=[g],x.flags|=16):y.push(g)}}function a(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function o(x){for(var g=new Map;x!==null;)x.key===null?g.set(x.index,x):g.set(x.key,x),x=x.sibling;return g}function i(x,g){return x=Mo(x,g),x.index=0,x.sibling=null,x}function l(x,g,y){return x.index=y,e?(y=x.alternate,y!==null?(y=y.index,y<g?(x.flags|=2,g):y):(x.flags|=134217730,g)):(x.flags|=1048576,g)}function r(x){return e&&x.alternate===null&&(x.flags|=134217730),x}function s(x,g,y,v){return g===null||g.tag!==6?(g=Vm(y,x.mode,v),g.return=x,g):(g=i(g,y),g.return=x,g)}function p(x,g,y,v){var S=y.type;return S===is?(x=d(x,g,y.props.children,v,y.key),mn(x,y),x):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&ni(S)===g.type)?(g=i(g,y.props),mn(g,y),g.return=x,g):(g=Oc(y.type,y.key,y.props,null,x.mode,v),mn(g,y),g.return=x,g)}function n(x,g,y,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Zm(y,x.mode,v),g.return=x,g):(g=i(g,y.children||[]),g.return=x,g)}function d(x,g,y,v,S){return g===null||g.tag!==7?(g=pi(y,x.mode,v,S),g.return=x,g):(g=i(g,y),g.return=x,g)}function c(x,g,y){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Vm(""+g,x.mode,y),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case uc:return y=Oc(g.type,g.key,g.props,null,x.mode,y),mn(y,g),y.return=x,y;case Rd:return g=Zm(g,x.mode,y),g.return=x,g;case hn:return g=ni(g),c(x,g,y)}if(Nd(g)||$d(g))return g=pi(g,x.mode,y,null),g.return=x,g;if(typeof g.then=="function")return c(x,wc(g),y);if(g.$$typeof===fo)return c(x,vc(x,g),y);kc(x,g)}return null}function u(x,g,y,v){var S=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return S!==null?null:s(x,g,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case uc:return y.key===S?p(x,g,y,v):null;case Rd:return y.key===S?n(x,g,y,v):null;case hn:return y=ni(y),u(x,g,y,v)}if(Nd(y)||$d(y))return S!==null?null:d(x,g,y,v,null);if(typeof y.then=="function")return u(x,g,wc(y),v);if(y.$$typeof===fo)return u(x,g,vc(x,y),v);kc(x,y)}return null}function f(x,g,y,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return x=x.get(y)||null,s(g,x,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case uc:return x=x.get(v.key===null?y:v.key)||null,p(g,x,v,S);case Rd:return x=x.get(v.key===null?y:v.key)||null,n(g,x,v,S);case hn:return v=ni(v),f(x,g,y,v,S)}if(Nd(v)||$d(v))return x=x.get(y)||null,d(g,x,v,S,null);if(typeof v.then=="function")return f(x,g,y,wc(v),S);if(v.$$typeof===fo)return f(x,g,y,vc(g,v),S);kc(g,v)}return null}function m(x,g,y,v){for(var S=null,R=null,w=g,$=g=0,z=null;w!==null&&$<y.length;$++){w.index>$?(z=w,w=null):z=w.sibling;var P=u(x,w,y[$],v);if(P===null){w===null&&(w=z);break}e&&w&&P.alternate===null&&t(x,w),g=l(P,g,$),R===null?S=P:R.sibling=P,R=P,w=z}if($===y.length)return a(x,w),ze&&Eo(x,$),S;if(w===null){for(;$<y.length;$++)w=c(x,y[$],v),w!==null&&(g=l(w,g,$),R===null?S=w:R.sibling=w,R=w);return ze&&Eo(x,$),S}for(w=o(w);$<y.length;$++)z=f(w,x,$,y[$],v),z!==null&&(e&&(P=z.alternate,P!==null&&w.delete(P.key===null?$:P.key)),g=l(z,g,$),R===null?S=z:R.sibling=z,R=z);return e&&w.forEach(function(A){return t(x,A)}),ze&&Eo(x,$),S}function h(x,g,y,v){if(y==null)throw Error(H(151));for(var S=null,R=null,w=g,$=g=0,z=null,P=y.next();w!==null&&!P.done;$++,P=y.next()){w.index>$?(z=w,w=null):z=w.sibling;var A=u(x,w,P.value,v);if(A===null){w===null&&(w=z);break}e&&w&&A.alternate===null&&t(x,w),g=l(A,g,$),R===null?S=A:R.sibling=A,R=A,w=z}if(P.done)return a(x,w),ze&&Eo(x,$),S;if(w===null){for(;!P.done;$++,P=y.next())P=c(x,P.value,v),P!==null&&(g=l(P,g,$),R===null?S=P:R.sibling=P,R=P);return ze&&Eo(x,$),S}for(w=o(w);!P.done;$++,P=y.next())P=f(w,x,$,P.value,v),P!==null&&(e&&(z=P.alternate,z!==null&&w.delete(z.key===null?$:z.key)),g=l(P,g,$),R===null?S=P:R.sibling=P,R=P);return e&&w.forEach(function(C){return t(x,C)}),ze&&Eo(x,$),S}function b(x,g,y,v){if(typeof y=="object"&&y!==null&&y.type===is&&y.key===null&&y.props.ref===void 0&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case uc:e:{for(var S=y.key;g!==null;){if(g.key===S){if(S=y.type,S===is){if(g.tag===7){a(x,g.sibling),v=i(g,y.props.children),mn(v,y),v.return=x,x=v;break e}}else if(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===hn&&ni(S)===g.type){a(x,g.sibling),v=i(g,y.props),mn(v,y),v.return=x,x=v;break e}a(x,g);break}else t(x,g);g=g.sibling}y.type===is?(v=pi(y.props.children,x.mode,v,y.key),mn(v,y),v.return=x,x=v):(v=Oc(y.type,y.key,y.props,null,x.mode,v),mn(v,y),v.return=x,x=v)}return r(x);case Rd:e:{for(S=y.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){a(x,g.sibling),v=i(g,y.children||[]),v.return=x,x=v;break e}else{a(x,g);break}else t(x,g);g=g.sibling}v=Zm(y,x.mode,v),v.return=x,x=v}return r(x);case hn:return y=ni(y),b(x,g,y,v)}if(Nd(y))return m(x,g,y,v);if($d(y)){if(S=$d(y),typeof S!="function")throw Error(H(150));return y=S.call(y),h(x,g,y,v)}if(typeof y.then=="function")return b(x,g,wc(y),v);if(y.$$typeof===fo)return b(x,g,vc(x,y),v);kc(x,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,g!==null&&g.tag===6?(a(x,g.sibling),v=i(g,y),v.return=x,x=v):(a(x,g),v=Vm(y,x.mode,v),v.return=x,x=v),r(x)):a(x,g)}return function(x,g,y,v){try{Wd=0;var S=b(x,g,y,v);return ws=null,S}catch(w){if(w===Us||w===Mu)throw w;var R=Vr(29,w,null,x.mode);return R.lanes=v,R.return=x,R}}}var yi=ak(!0),ok=ak(!1),yn=!1;function jg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ex(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function An(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Rn(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Le&2)!==0){var i=o.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),o.pending=t,t=ou(e),Yw(e,null,a),t}return Eu(e,o,t,a),ou(e)}function qd(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ww(e,a)}}function Gm(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var i=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var r={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?i=l=r:l=l.next=r,a=a.next}while(a!==null);l===null?i=l=t:l=l.next=t}else i=l=t;a={baseState:o.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Ix=!1;function jd(){if(Ix){var e=vs;if(e!==null)throw e}}function Bd(e,t,a,o){Ix=!1;var i=e.updateQueue;yn=!1;var l=i.firstBaseUpdate,r=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var p=s,n=p.next;p.next=null,r===null?l=n:r.next=n,r=p;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==r&&(s===null?d.firstBaseUpdate=n:s.next=n,d.lastBaseUpdate=p))}if(l!==null){var c=i.baseState;r=0,d=n=p=null,s=l;do{var u=s.lane&-536870913,f=u!==s.lane;if(f?(Te&u)===u:(o&u)===u){u!==0&&u===hi&&(Ix=!0),d!==null&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,h=s;u=t;var b=a;switch(h.tag){case 1:if(m=h.payload,typeof m=="function"){c=m.call(b,c,u);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,u=typeof m=="function"?m.call(b,c,u):m,u==null)break e;c=nt({},c,u);break e;case 2:yn=!0}}u=s.callback,u!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[u]:f.push(u))}else f={lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(n=d=f,p=c):d=d.next=f,r|=u;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(p=c),i.baseState=p,i.firstBaseUpdate=n,i.lastBaseUpdate=d,l===null&&(i.shared.lanes=0),Bn|=r,e.lanes=r,e.memoizedState=c}}function nk(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function ik(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)nk(a[e],t)}var qn=vo(null),du=vo(0);function a1(e,t){e=Uo,dt(du,e),dt(qn,t),Uo=e|t.baseLanes}function Mx(){dt(du,Uo),dt(qn,qn.current)}function Bg(){Uo=du.current,pr(qn),pr(du)}var fr=vo(null),wr=null;function Nn(e){var t=e.alternate;dt(cr,cr.current&1),dt(fr,e),wr===null&&(t===null||qn.current!==null||t.memoizedState!==null)&&(wr=e)}function _x(e){dt(cr,cr.current),dt(fr,e),wr===null&&(wr=e)}function sk(e){e.tag===22?(dt(cr,cr.current),dt(fr,e),wr===null&&(wr=e)):Dn()}function Dn(){dt(cr,cr.current),dt(fr,fr.current)}function aa(e){pr(fr),wr===e&&(wr=null),pr(cr)}var cr=vo(0);function ep(e,t){dt(fr,fr.current),dt(cr,t)}function Hg(e){pr(cr),pr(fr),wr===e&&(wr=null)}function pu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||gg(a)||mh(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=0,Pe=null,We=null,Et=null,cu=!1,ks=!1,bi=!1,uu=0,tp=0,$s=null,qR=0;function zt(){throw Error(H(321))}function Ug(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!pa(e[a],t[a]))return!1;return!0}function Lg(e,t,a,o,i,l){return jo=l,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ve.H=e===null||e.memoizedState===null?qk:jk,bi=!1,l=a(o,i),bi=!1,ks&&(l=dk(t,a,o,i)),lk(e),l}function lk(e){ve.H=fu;var t=We!==null&&We.next!==null;if(jo=0,Et=We=Pe=null,cu=!1,tp=0,$s=null,t)throw Error(H(300));e===null||Mt||(e=e.dependencies,e!==null&&su(e)&&(Mt=!0))}function dk(e,t,a,o){Pe=e;var i=0;do{if(ks&&($s=null),tp=0,ks=!1,25<=i)throw Error(H(301));if(i+=1,Et=We=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}ve.H=ZR,l=t(a,o)}while(ks);return l}function jR(){var e=ve.H,t=e.useState()[0];return t=typeof t.then=="function"?gp(t):t,e=e.useState()[0],(We!==null?We.memoizedState:null)!==e&&(Pe.flags|=1024),t}function Fg(){var e=uu!==0;return uu=0,e}function Vg(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Zg(e){if(cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cu=!1}jo=0,Et=We=Pe=null,ks=!1,tp=uu=0,$s=null}function Tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Pe.memoizedState=Et=e:Et=Et.next=e,Et}function Nt(){if(We===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=Et===null?Pe.memoizedState:Et.next;if(t!==null)Et=t,We=e;else{if(e===null)throw Pe.alternate===null?Error(H(467)):Error(H(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},Et===null?Pe.memoizedState=Et=e:Et=Et.next=e}return Et}function _u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gp(e){var t=tp;return tp+=1,$s===null&&($s=[]),e=rk($s,e,t),t=Pe,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,ve.H=t===null||t.memoizedState===null?qk:jk),e}function Ou(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gp(e);if(e.$$typeof===v5)return;if(e.$$typeof===fo)return dr(e)}throw Error(H(438,String(e)))}function Kg(e){var t=null,a=Pe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Pe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=_u(),Pe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=b5;return t.index++,a}function Bo(e,t){return typeof t=="function"?t(e):t}function Bc(e){var t=Nt();return Gg(t,We,e)}function Gg(e,t,a){var o=e.queue;if(o===null)throw Error(H(311));o.lastRenderedReducer=a;var i=e.baseQueue,l=o.pending;if(l!==null){if(i!==null){var r=i.next;i.next=l.next,l.next=r}t.baseQueue=i=l,o.pending=null}if(l=e.baseState,i===null)e.memoizedState=l;else{t=i.next;var s=r=null,p=null,n=t,d=!1;do{var c=n.lane&-536870913;if(c!==n.lane?(Te&c)===c:(jo&c)===c){var u=n.revertLane;if(u===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null}),c===hi&&(d=!0);else if((jo&u)===u){n=n.next,u===hi&&(d=!0);continue}else c={lane:0,revertLane:n.revertLane,gesture:null,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null},p===null?(s=p=c,r=l):p=p.next=c,Pe.lanes|=u,Bn|=u;c=n.action,bi&&a(l,c),l=n.hasEagerState?n.eagerState:a(l,c)}else u={lane:c,revertLane:n.revertLane,gesture:n.gesture,action:n.action,hasEagerState:n.hasEagerState,eagerState:n.eagerState,next:null},p===null?(s=p=u,r=l):p=p.next=u,Pe.lanes|=c,Bn|=c;n=n.next}while(n!==null&&n!==t);if(p===null?r=l:p.next=s,!pa(l,e.memoizedState)&&(Mt=!0,d&&(a=vs,a!==null)))throw a;e.memoizedState=l,e.baseState=r,e.baseQueue=p,o.lastRenderedState=l}return i===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Ym(e){var t=Nt(),a=t.queue;if(a===null)throw Error(H(311));a.lastRenderedReducer=e;var o=a.dispatch,i=a.pending,l=t.memoizedState;if(i!==null){a.pending=null;var r=i=i.next;do l=e(l,r.action),r=r.next;while(r!==i);pa(l,t.memoizedState)||(Mt=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),a.lastRenderedState=l}return[l,o]}function pk(e,t,a){var o=Pe,i=Nt(),l=ze;if(l){if(a===void 0)throw Error(H(407));a=a()}else a=t();var r=!pa((We||i).memoizedState,a);if(r&&(i.memoizedState=a,Mt=!0),i=i.queue,Yg(fk.bind(null,o,i,e),[e]),e=i.getSnapshot!==t||r||Et!==null&&(Et.memoizedState.tag&1)!==0,Ns(e?9:8,{destroy:void 0},uk.bind(null,o,i,a,t),null),e){if(o.flags|=2048,ot===null)throw Error(H(349));l||(jo&127)!==0||ck(o,t,a)}return a}function ck(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Pe.updateQueue,t===null?(t=_u(),Pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function uk(e,t,a,o){t.value=a,t.getSnapshot=o,mk(t)&&xk(e)}function fk(e,t,a){return a(function(){mk(t)&&xk(e)})}function mk(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!pa(e,a)}catch{return!0}}function xk(e){var t=Pi(e,2);t!==null&&Zr(t,e,2)}function Ox(e){var t=Tr();if(typeof e=="function"){var a=e;if(e=a(),bi){vn(!0);try{a()}finally{vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function gk(e,t,a,o){return e.baseState=a,Gg(e,We,typeof o=="function"?o:Bo)}function BR(e,t,a,o,i){if(ju(e))throw Error(H(485));if(e=t.action,e!==null){var l={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){l.listeners.push(r)}};ve.T!==null?a(!0):l.isTransition=!1,o(l),a=t.pending,a===null?(l.next=t.pending=l,hk(t,l)):(l.next=a.next,t.pending=a.next=l)}}function hk(e,t){var a=t.action,o=t.payload,i=e.state;if(t.isTransition){var l=ve.T,r={};r.types=l!==null?l.types:null,ve.T=r;try{var s=a(i,o),p=ve.S;p!==null&&p(r,s),o1(e,t,s)}catch(n){qx(e,t,n)}finally{l!==null&&r.types!==null&&(l.types=r.types),ve.T=l}}else try{l=a(i,o),o1(e,t,l)}catch(n){qx(e,t,n)}}function o1(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){n1(e,t,o)},function(o){return qx(e,t,o)}):n1(e,t,a)}function n1(e,t,a){t.status="fulfilled",t.value=a,yk(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,hk(e,a)))}function qx(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,yk(t),t=t.next;while(t!==o)}e.action=null}function yk(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bk(e,t){return t}function i1(e,t){if(ze){var a=ot.formState;if(a!==null){e:{var o=Pe;if(ze){if(lt){t:{for(var i=lt,l=ka;i.nodeType!==8;){if(!l){i=null;break t}if(i=$a(i.nextSibling),i===null){i=null;break t}}l=i.data,i=l==="F!"||l==="F"?i:null}if(i){lt=$a(i.nextSibling),o=i.data==="F!";break e}}On(o)}o=!1}o&&(t=a[0])}}return a=Tr(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bk,lastRenderedState:t},a.queue=o,a=Mk.bind(null,Pe,o),o.dispatch=a,o=Ox(!1),l=Wg.bind(null,Pe,!1,o.queue),o=Tr(),i={state:t,dispatch:null,action:e,pending:null},o.queue=i,a=BR.bind(null,Pe,i,l,a),i.dispatch=a,o.memoizedState=e,[t,a,!1]}function s1(e){var t=Nt();return vk(t,We,e)}function vk(e,t,a){if(t=Gg(e,t,bk)[0],e=Bc(Bo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=gp(t)}catch(r){throw r===Us?Mu:r}else o=t;t=Nt();var i=t.queue,l=i.dispatch;return a!==t.memoizedState&&(Pe.flags|=2048,Ns(9,{destroy:void 0},HR.bind(null,i,a),null)),[o,l,e]}function HR(e,t){e.action=t}function l1(e){var t=Nt(),a=We;if(a!==null)return vk(t,a,e);Nt(),t=t.memoizedState,a=Nt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ns(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Pe.updateQueue,t===null&&(t=_u(),Pe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function wk(){return Nt().memoizedState}function Hc(e,t,a,o){var i=Tr();Pe.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},a,o===void 0?null:o)}function qu(e,t,a,o){var i=Nt();o=o===void 0?null:o;var l=i.memoizedState.inst;We!==null&&o!==null&&Ug(o,We.memoizedState.deps)?i.memoizedState=Ns(t,l,a,o):(Pe.flags|=e,i.memoizedState=Ns(1|t,l,a,o))}function d1(e,t){Hc(8390656,8,e,t)}function Yg(e,t){qu(2048,8,e,t)}function UR(e){Pe.flags|=4;var t=Pe.updateQueue;if(t===null)t=_u(),Pe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function kk(e){var t=Nt().memoizedState;return UR({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function $k(e,t){return qu(4,2,e,t)}function Sk(e,t){return qu(4,4,e,t)}function Pk(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ck(e,t,a){a=a!=null?a.concat([e]):null,qu(4,4,Pk.bind(null,t,e),a)}function Xg(){}function zk(e,t){var a=Nt();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&Ug(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function Ak(e,t){var a=Nt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Ug(t,o[1]))return o[0];if(o=e(),bi){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[o,t],o}function Qg(e,t,a){return a===void 0||(jo&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=v2(),Pe.lanes|=e,Bn|=e,a)}function Rk(e,t,a,o){return pa(a,t)?a:qn.current!==null?(e=Qg(e,a,o),pa(e,t)||(Mt=!0),e):(jo&106)===0||(jo&1073741824)!==0&&(Te&261930)===0?(Mt=!0,e.memoizedState=a):(e=v2(),Pe.lanes|=e,Bn|=e,t)}function Nk(e,t,a,o,i){var l=Fe.p;Fe.p=l!==0&&8>l?l:8;var r=ve.T,s={};s.types=r!==null?r.types:null,ve.T=s,Wg(e,!1,t,a);try{var p=i(),n=ve.S;if(n!==null&&n(s,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var d=OR(p,o);Hd(e,t,d,da(e))}else Hd(e,t,o,da(e))}catch(c){Hd(e,t,{then:function(){},status:"rejected",reason:c},da())}finally{Fe.p=l,r!==null&&s.types!==null&&(r.types=s.types),ve.T=r}}function LR(){}function jx(e,t,a,o){if(e.tag!==5)throw Error(H(476));var i=Dk(e).queue;Nk(e,i,t,di,a===null?LR:function(){return Tk(e),a(o)})}function Dk(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:di,baseState:di,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:di},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Tk(e){var t=Dk(e);t.next===null&&(t=e.alternate.memoizedState),Hd(e,t.next.queue,{},da())}function Jg(){return dr(Os)}function Ek(){return Nt().memoizedState}function Ik(){return Nt().memoizedState}function FR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=da();e=An(a);var o=Rn(t,e,a);o!==null&&(Zr(o,t,a),qd(o,t,a)),t={cache:_g()},e.payload=t;return}t=t.return}}function VR(e,t,a){var o=da();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ju(e)?_k(t,a):(a=Eg(e,t,a,o),a!==null&&(Zr(a,e,o),Ok(a,t,o)))}function Mk(e,t,a){var o=da();Hd(e,t,a,o)}function Hd(e,t,a,o){var i={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ju(e))_k(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var r=t.lastRenderedState,s=l(r,a);if(i.hasEagerState=!0,i.eagerState=s,pa(s,r))return Eu(e,t,i,0),ot===null&&Tu(),!1}catch{}if(a=Eg(e,t,i,o),a!==null)return Zr(a,e,o),Ok(a,t,o),!0}return!1}function Wg(e,t,a,o){if(o={lane:2,revertLane:ph(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ju(e)){if(t)throw Error(H(479))}else t=Eg(e,a,o,2),t!==null&&Zr(t,e,2)}function ju(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function _k(e,t){ks=cu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ok(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ww(e,a)}}var fu={readContext:dr,use:Ou,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useLayoutEffect:zt,useInsertionEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useSyncExternalStore:zt,useId:zt,useHostTransitionStatus:zt,useFormState:zt,useActionState:zt,useOptimistic:zt,useMemoCache:zt,useCacheRefresh:zt,useEffectEvent:zt},qk={readContext:dr,use:Ou,useCallback:function(e,t){return Tr().memoizedState=[e,t===void 0?null:t],e},useContext:dr,useEffect:d1,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hc(4194308,4,Pk.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hc(4194308,4,e,t)},useInsertionEffect:function(e,t){Hc(4,2,e,t)},useMemo:function(e,t){var a=Tr();t=t===void 0?null:t;var o=e();if(bi){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Tr();if(a!==void 0){var i=a(t);if(bi){vn(!0);try{a(t)}finally{vn(!1)}}}else i=t;return o.memoizedState=o.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},o.queue=e,e=e.dispatch=VR.bind(null,Pe,e),[o.memoizedState,e]},useRef:function(e){var t=Tr();return e={current:e},t.memoizedState=e},useState:function(e){e=Ox(e);var t=e.queue,a=Mk.bind(null,Pe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Xg,useDeferredValue:function(e,t){var a=Tr();return Qg(a,e,t)},useTransition:function(){var e=Ox(!1);return e=Nk.bind(null,Pe,e.queue,!0,!1),Tr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Pe,i=Tr();if(ze){if(a===void 0)throw Error(H(407));a=a()}else{if(a=t(),ot===null)throw Error(H(349));(Te&127)!==0||ck(o,t,a)}i.memoizedState=a;var l={value:a,getSnapshot:t};return i.queue=l,d1(fk.bind(null,o,l,e),[e]),o.flags|=2048,Ns(9,{destroy:void 0},uk.bind(null,o,l,a,t),null),a},useId:function(){var e=Tr(),t=ot.identifierPrefix;if(ze){var a=go,o=xo;a=(o&~(1<<32-la(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=uu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=qR++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Jg,useFormState:i1,useActionState:i1,useOptimistic:function(e){var t=Tr();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Wg.bind(null,Pe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Kg,useCacheRefresh:function(){return Tr().memoizedState=FR.bind(null,Pe)},useEffectEvent:function(e){var t=Tr(),a={impl:e};return t.memoizedState=a,function(){if((Le&2)!==0)throw Error(H(440));return a.impl.apply(void 0,arguments)}}},jk={readContext:dr,use:Ou,useCallback:zk,useContext:dr,useEffect:Yg,useImperativeHandle:Ck,useInsertionEffect:$k,useLayoutEffect:Sk,useMemo:Ak,useReducer:Bc,useRef:wk,useState:function(){return Bc(Bo)},useDebugValue:Xg,useDeferredValue:function(e,t){var a=Nt();return Rk(a,We.memoizedState,e,t)},useTransition:function(){var e=Bc(Bo)[0],t=Nt().memoizedState;return[typeof e=="boolean"?e:gp(e),t]},useSyncExternalStore:pk,useId:Ek,useHostTransitionStatus:Jg,useFormState:s1,useActionState:s1,useOptimistic:function(e,t){var a=Nt();return gk(a,We,e,t)},useMemoCache:Kg,useCacheRefresh:Ik,useEffectEvent:kk},ZR={readContext:dr,use:Ou,useCallback:zk,useContext:dr,useEffect:Yg,useImperativeHandle:Ck,useInsertionEffect:$k,useLayoutEffect:Sk,useMemo:Ak,useReducer:Ym,useRef:wk,useState:function(){return Ym(Bo)},useDebugValue:Xg,useDeferredValue:function(e,t){var a=Nt();return We===null?Qg(a,e,t):Rk(a,We.memoizedState,e,t)},useTransition:function(){var e=Ym(Bo)[0],t=Nt().memoizedState;return[typeof e=="boolean"?e:gp(e),t]},useSyncExternalStore:pk,useId:Ek,useHostTransitionStatus:Jg,useFormState:l1,useActionState:l1,useOptimistic:function(e,t){var a=Nt();return We!==null?gk(a,We,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Kg,useCacheRefresh:Ik,useEffectEvent:kk};function Xm(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:nt({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Bx={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=da(),i=An(o);i.payload=t,a!=null&&(i.callback=a),t=Rn(e,i,o),t!==null&&(Zr(t,e,o),qd(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=da(),i=An(o);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Rn(e,i,o),t!==null&&(Zr(t,e,o),qd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=da(),o=An(a);o.tag=2,t!=null&&(o.callback=t),t=Rn(e,o,a),t!==null&&(Zr(t,e,a),qd(t,e,a))}};function p1(e,t,a,o,i,l,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,l,r):t.prototype&&t.prototype.isPureReactComponent?!Xd(a,o)||!Xd(i,l):!0}function c1(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Bx.enqueueReplaceState(t,t.state,null)}function vi(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=nt({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Bk(e){au(e)}function Hk(e){console.error(e)}function Uk(e){au(e)}function mu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function u1(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Hx(e,t,a){return a=An(a),a.tag=3,a.payload={element:null},a.callback=function(){mu(e,t)},a}function Lk(e){return e=An(e),e.tag=3,e}function Fk(e,t,a,o){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var l=o.value;e.payload=function(){return i(l)},e.callback=function(){u1(t,a,o)}}var r=a.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){u1(t,a,o),typeof i!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function KR(e,t,a,o,i){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&xi(t,a,i,!0),a=fr.current,a!==null){switch(a.tag){case 31:case 13:case 19:return wr===null?ku():a.alternate===null&&At===0&&(At=3),a.flags&=-257,a.flags|=65536,a.lanes=i,o===lu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),ax(e,o,i)),!1;case 22:return a.flags|=65536,o===lu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),ax(e,o,i)),!1}throw Error(H(435,a.tag))}return ax(e,o,i),ku(),!1}if(ze)return t=fr.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,o!==Rx&&(e=Error(H(422),{cause:o}),Jd(wa(e,a)))):(o!==Rx&&(t=Error(H(423),{cause:o}),Jd(wa(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,o=wa(o,a),i=Hx(e.stateNode,o,i),Gm(e,i),At!==4&&(At=2)),!1;var l=Error(H(520),{cause:o});if(l=wa(l,a),Vd===null?Vd=[l]:Vd.push(l),At!==4&&(At=2),t===null)return!0;o=wa(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Hx(a.stateNode,o,e),Gm(a,e),!1;case 1:if(t=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(Tn===null||!Tn.has(l))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Lk(i),Fk(i,e,a,o),Gm(a,i),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var eh=Error(H(461)),Mt=!1;function Vt(e,t,a,o){t.child=e===null?ok(t,null,a,o):yi(t,e.child,a,o)}function f1(e,t,a,o,i){a=a.render;var l=t.ref;if("ref"in o){var r={};for(var s in o)s!=="ref"&&(r[s]=o[s])}else r=o;return gi(t),o=Lg(e,t,a,r,l,i),s=Fg(),e!==null&&!Mt?(Vg(e,t,i),Ho(e,t,i)):(ze&&s&&Iu(t),t.flags|=1,Vt(e,t,o,i),t.child)}function m1(e,t,a,o,i){if(e===null){var l=a.type;return typeof l=="function"&&!Ig(l)&&l.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=l,Vk(e,t,l,o,i)):(e=Oc(a.type,null,o,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!rh(e,i)){var r=l.memoizedProps;if(a=a.compare,a=a!==null?a:Xd,a(r,o)&&e.ref===t.ref)return Ho(e,t,i)}return t.flags|=1,e=Mo(l,o),e.ref=t.ref,e.return=t,t.child=e}function Vk(e,t,a,o,i){if(e!==null){var l=e.memoizedProps;if(Xd(l,o)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=o=l,rh(e,i))(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,Ho(e,t,i)}return Ux(e,t,a,o,i)}function Zk(e,t,a,o){var i=o.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(l=l!==null?l.baseLanes|a:a,e!==null){for(o=t.child=e.child,i=0;o!==null;)i=i|o.lanes|o.childLanes,o=o.sibling;o=i&~l}else o=0,t.child=null;return x1(e,t,l,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&jc(t,l!==null?l.cachePool:null),l!==null?a1(t,l):Mx(),sk(t);else return o=t.lanes=536870912,x1(e,t,l!==null?l.baseLanes|a:a,a,o)}else l!==null?(jc(t,l.cachePool),a1(t,l),Dn(),t.memoizedState=null):(e!==null&&jc(t,null),Mx(),Dn());return Vt(e,t,i,a),t.child}function Ud(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function x1(e,t,a,o,i){var l=Og();return l=l===null?null:{parent:It._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&jc(t,null),Mx(),sk(t),e!==null&&xi(e,t,o,!0),t.childLanes=i,null}function Uc(e,t){return t=Bu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function g1(e,t,a){return yi(t,e.child,null,a),e=Uc(t,t.pendingProps),e.flags|=2,aa(t),t.memoizedState=null,e}function GR(e,t,a){var o=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=Uc(t,o),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Ud(null,e);if(_x(t),(e=lt)?(e=Z2(e,ka),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_n!==null?{id:xo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},a=Qw(e),a.return=t,t.child=a,tr=t,lt=null)):e=null,e===null)throw On(t);return t.lanes=536870912,null}return Uc(t,o)}var l=e.memoizedState;if(l!==null){var r=l.dehydrated;if(_x(t),i)if(t.flags&256)t.flags&=-257,t=g1(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(Mt||xi(e,t,a,!1),i=(a&e.childLanes)!==0,Mt||i){if(qn.current===null){if(o=ot,o!==null&&(r=kw(o,a),r!==0&&r!==l.retryLane))throw l.retryLane=r,Pi(e,r),Zr(o,e,r),eh;ku()}t=g1(e,t,a)}else e=l.treeContext,lt=$a(r.nextSibling),tr=t,ze=!0,zn=null,ka=!1,e!==null&&Ww(t,e),t=Uc(t,o),t.flags|=134221824;return t}return e=Mo(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(H(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ux(e,t,a,o,i){return gi(t),a=Lg(e,t,a,o,void 0,i),o=Fg(),e!==null&&!Mt?(Vg(e,t,i),Ho(e,t,i)):(ze&&o&&Iu(t),t.flags|=1,Vt(e,t,a,i),t.child)}function h1(e,t,a,o,i,l){return gi(t),t.updateQueue=null,a=dk(t,o,a,i),lk(e),o=Fg(),e!==null&&!Mt?(Vg(e,t,l),Ho(e,t,l)):(ze&&o&&Iu(t),t.flags|=1,Vt(e,t,a,l),t.child)}function y1(e,t,a,o,i){if(gi(t),t.stateNode===null){var l=fs,r=a.contextType;typeof r=="object"&&r!==null&&(l=dr(r)),l=new a(o,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Bx,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=o,l.state=t.memoizedState,l.refs={},jg(t),r=a.contextType,l.context=typeof r=="object"&&r!==null?dr(r):fs,l.state=t.memoizedState,r=a.getDerivedStateFromProps,typeof r=="function"&&(Xm(t,a,r,o),l.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(r=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),r!==l.state&&Bx.enqueueReplaceState(l,l.state,null),Bd(t,o,l,i),jd(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){l=t.stateNode;var s=t.memoizedProps,p=vi(a,s);l.props=p;var n=l.context,d=a.contextType;r=fs,typeof d=="object"&&d!==null&&(r=dr(d));var c=a.getDerivedStateFromProps;d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||n!==r)&&c1(t,l,o,r),yn=!1;var u=t.memoizedState;l.state=u,Bd(t,o,l,i),jd(),n=t.memoizedState,s||u!==n||yn?(typeof c=="function"&&(Xm(t,a,c,o),n=t.memoizedState),(p=yn||p1(t,a,p,o,u,n,r))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=n),l.props=o,l.state=n,l.context=r,o=p):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{l=t.stateNode,Ex(e,t),r=t.memoizedProps,d=vi(a,r),l.props=d,c=t.pendingProps,u=l.context,n=a.contextType,p=fs,typeof n=="object"&&n!==null&&(p=dr(n)),s=a.getDerivedStateFromProps,(n=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(r!==c||u!==p)&&c1(t,l,o,p),yn=!1,u=t.memoizedState,l.state=u,Bd(t,o,l,i),jd();var f=t.memoizedState;r!==c||u!==f||yn||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof s=="function"&&(Xm(t,a,s,o),f=t.memoizedState),(d=yn||p1(t,a,d,o,u,f,p)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(n||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(o,f,p),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(o,f,p)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),l.props=o,l.state=f,l.context=p,o=d):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),o=!1)}return l=o,rs(e,t),o=(t.flags&128)!==0,l||o?(l=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&o?(t.child=yi(t,e.child,null,i),t.child=yi(t,null,a,i)):Vt(e,t,a,i),t.memoizedState=l.state,e=t.child):e=Ho(e,t,i),e}function b1(e,t,a,o){return mi(),t.flags|=256,Vt(e,t,a,o),t.child}var Lx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fx(e){return{baseLanes:e,cachePool:tk()}}function Vx(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=na),e}function Kk(e,t,a){var o=t.pendingProps,i=!1,l=(t.flags&128)!==0,r;if((r=l)||(r=e!==null&&e.memoizedState===null?!1:(cr.current&2)!==0),r&&(i=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(i?Nn(t):Dn(),(e=lt)?(e=Z2(e,ka),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_n!==null?{id:xo,overflow:go}:null,retryLane:536870912,hydrationErrors:null},a=Qw(e),a.return=t,t.child=a,tr=t,lt=null)):e=null,e===null)throw On(t);return mh(e)?t.lanes=32:t.lanes=536870912,null}return l=o.children,o=o.fallback,i?(Dn(),i=t.mode,l=Bu({mode:"hidden",children:l},i),o=pi(o,i,a,null),l.return=t,o.return=t,l.sibling=o,t.child=l,o=t.child,o.memoizedState=Fx(a),o.childLanes=Vx(e,r,a),t.memoizedState=Lx,Ud(null,o)):(Nn(t),th(t,l))}var s=e.memoizedState;if(s!==null){var p=s.dehydrated;if(p!==null)return YR(e,t,l,r,o,p,s,a)}return i?(Dn(),i=o.fallback,l=t.mode,s=e.child,p=s.sibling,o=Mo(s,{mode:"hidden",children:o.children}),o.subtreeFlags=s.subtreeFlags&1206910976,p!==null?i=Mo(p,i):(i=pi(i,l,a,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,Ud(null,o),o=t.child,i=e.child.memoizedState,i===null?i=Fx(a):(l=i.cachePool,l!==null?(s=It._currentValue,l=l.parent!==s?{parent:s,pool:s}:l):l=tk(),i={baseLanes:i.baseLanes|a,cachePool:l}),o.memoizedState=i,o.childLanes=Vx(e,r,a),t.memoizedState=Lx,Ud(e.child,o)):(Nn(t),a=e.child,e=a.sibling,a=Mo(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a)}function th(e,t){return t=Bu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bu(e,t){return e=Vr(22,e,null,t),e.lanes=0,e}function $c(e,t,a){return yi(t,e.child,null,a),e=th(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function YR(e,t,a,o,i,l,r,s){if(a)return t.flags&256?(Nn(t),t.flags&=-257,$c(e,t,s)):t.memoizedState!==null?(Dn(),t.child=e.child,t.flags|=128,null):(Dn(),l=i.fallback,r=t.mode,i=Bu({mode:"visible",children:i.children},r),l=pi(l,r,s,null),l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,yi(t,e.child,null,s),i=t.child,i.memoizedState=Fx(s),i.childLanes=Vx(e,o,s),t.memoizedState=Lx,Ud(null,i));if(Nn(t),mh(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var p=o.dgst;return o=p,o!==""&&(i=Error(H(419)),i.stack="",i.digest=o,Jd({value:i,source:null,stack:null})),$c(e,t,s)}if(Mt||xi(e,t,s,!1),o=(s&e.childLanes)!==0,Mt||o){if(qn.current!==null)return $c(e,t,s);if(o=ot,o!==null&&(i=kw(o,s),i!==0&&i!==r.retryLane))throw r.retryLane=i,Pi(e,i),Zr(o,e,i),eh;return gg(l)||ku(),$c(e,t,s)}return gg(l)?(t.flags|=192,t.child=e.child,null):(e=r.treeContext,lt=$a(l.nextSibling),tr=t,ze=!0,zn=null,ka=!1,e!==null&&Ww(t,e),t=th(t,i.children),t.flags|=134221824,t)}function v1(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),qc(e.return,t,a)}function w1(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&pu(a)===null&&(t=e),e=e.sibling}return t}function Sc(e,t,a,o,i,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:i,treeForkCount:l}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=a,r.tailMode=i,r.treeForkCount=l)}function Qm(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Zx(e,t,a){var o=t.pendingProps,i=o.revealOrder,l=o.tail;o=o.children;var r=cr.current;if(t.flags&128)return ep(t,r),null;var s=(r&2)!==0;if(s?(r=r&1|2,t.flags|=128):r&=1,ep(t,r),i==="backwards"&&e!==null?(Qm(e),Vt(e,t,o,a),Qm(e)):Vt(e,t,o,a),o=ze?Qd:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&v1(e,a,t);else if(e.tag===19)v1(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":a=w1(t.child),a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null,Qm(t)),Sc(t,!0,i,null,l,o);break;case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&pu(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Sc(t,!0,a,null,l,o);break;case"together":Sc(t,!1,null,null,void 0,o);break;case"independent":t.memoizedState=null;break;default:a=w1(t.child),a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),Sc(t,!1,i,a,l,o)}return t.child}function k1(e,t,a){var o=t.pendingProps;return kn(t,t.type,o.value),Vt(e,t,o.children,a),t.child}function Ho(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(xi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,a=Mo(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Mo(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function rh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function XR(e,t,a){switch(t.tag){case 3:Wc(t,t.stateNode.containerInfo),kn(t,It,e.memoizedState.cache),mi();break;case 27:case 5:bx(t);break;case 4:Wc(t,t.stateNode.containerInfo);break;case 10:kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_x(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return Nn(t),t.flags|=128,null;o=xi(e,t,a,!1);var i=t.child.childLanes;return o||(a&i)!==0?Kk(e,t,a):(Nn(t),e=Ho(e,t,a),e!==null?e.sibling:null)}Nn(t);break;case 19:if(t.flags&128)return Zx(e,t,a);if(i=(e.flags&128)!==0,o=(a&t.childLanes)!==0,o||(xi(e,t,a,!1),o=(a&t.childLanes)!==0),i){if(o)return Zx(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ep(t,cr.current),o)break;return null;case 22:return t.lanes=0,Zk(e,t,a,t.pendingProps);case 24:kn(t,It,e.memoizedState.cache)}return Ho(e,t,a)}function Gk(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Mt=!0;else{if(!rh(e,a)&&(t.flags&128)===0)return Mt=!1,XR(e,t,a);Mt=(e.flags&131072)!==0}else Mt=!1,ze&&(t.flags&1048576)!==0&&Jw(t,Qd,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=ni(t.elementType),t.type=e,typeof e=="function")Ig(e)?(o=vi(e,o),t.tag=1,t=y1(null,t,e,o,a)):(t.tag=0,t=Ux(null,t,e,o,a));else{if(e!=null){var i=e.$$typeof;if(i===wg){t.tag=11,t=f1(null,t,e,o,a);break e}else if(i===kg){t.tag=14,t=m1(null,t,e,o,a);break e}else if(i===fo){t.tag=10,t.type=e,t=k1(null,t,a);break e}}throw t=hx(e)||e,Error(H(306,t,""))}}return t;case 0:return Ux(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,i=vi(o,t.pendingProps),y1(e,t,o,i,a);case 3:e:{if(Wc(t,t.stateNode.containerInfo),e===null)throw Error(H(387));o=t.pendingProps;var l=t.memoizedState;i=l.element,Ex(e,t),Bd(t,o,null,a);var r=t.memoizedState;if(o=r.cache,kn(t,It,o),o!==l.cache&&Dx(t,[It],a,!0),jd(),o=r.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=b1(e,t,o,a);break e}else if(o!==i){i=wa(Error(H(424)),t),Jd(i),t=b1(e,t,o,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=$a(e.firstChild),tr=t,ze=!0,zn=null,ka=!0,a=ok(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(mi(),o===i){t=Ho(e,t,a);break e}Vt(e,t,o,a)}t=t.child}return t;case 26:return rs(e,t),e===null?(a=Y1(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(t.stateNode=O2(t.type,t.pendingProps,Cn.current,t)):t.memoizedState=Y1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bx(t),e===null&&ze&&(o=t.stateNode=K2(t.type,t.pendingProps,Cn.current),tr=t,ka=!0,i=lt,Un(t.type)?(hg=i,lt=$a(o.firstChild)):lt=i),Vt(e,t,t.pendingProps.children,a),rs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((i=o=lt)&&(o=UN(o,t.type,t.pendingProps,ka),o!==null?(t.stateNode=o,tr=t,lt=$a(o.firstChild),ka=!1,i=!0):i=!1),i||On(t)),bx(t),i=t.type,l=t.pendingProps,r=e!==null?e.memoizedProps:null,o=l.children,fg(i,l)?o=null:r!==null&&fg(i,r)&&(t.flags|=32),t.memoizedState!==null&&(i=Lg(e,t,jR,null,null,a),Os._currentValue=i),rs(e,t),Vt(e,t,o,a),t.child;case 6:return e===null&&ze&&((e=a=lt)&&(a=LN(a,t.pendingProps,ka),a!==null?(t.stateNode=a,tr=t,lt=null,e=!0):e=!1),e||On(t)),null;case 13:return Kk(e,t,a);case 4:return Wc(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=yi(t,null,o,a):Vt(e,t,o,a),t.child;case 11:return f1(e,t,t.type,t.pendingProps,a);case 7:return o=t.pendingProps,rs(e,t),Vt(e,t,o,a),t.child;case 8:return Vt(e,t,t.pendingProps.children,a),t.child;case 12:return Vt(e,t,t.pendingProps.children,a),t.child;case 10:return k1(e,t,a);case 9:return i=t.type._context,o=t.pendingProps.children,gi(t),i=dr(i),o=o(i),t.flags|=1,Vt(e,t,o,a),t.child;case 14:return m1(e,t,t.type,t.pendingProps,a);case 15:return Vk(e,t,t.type,t.pendingProps,a);case 19:return Zx(e,t,a);case 31:return GR(e,t,a);case 22:return Zk(e,t,a,t.pendingProps);case 24:return gi(t),o=dr(It),e===null?(i=Og(),i===null&&(i=ot,l=_g(),i.pooledCache=l,l.refCount++,l!==null&&(i.pooledCacheLanes|=a),i=l),t.memoizedState={parent:o,cache:i},jg(t),kn(t,It,i)):((e.lanes&a)!==0&&(Ex(e,t),Bd(t,null,null,a),jd()),i=e.memoizedState,l=t.memoizedState,i.parent!==o?(i={parent:o,cache:o},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),kn(t,It,o)):(o=l.cache,kn(t,It,o),o!==i.cache&&Dx(t,[It],a,!0))),Vt(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),o=t.pendingProps,o.name!=null&&o.name!=="auto"?t.flags|=e===null?18882560:18874368:ze&&Iu(t),e!==null&&e.memoizedProps.name!==o.name?t.flags|=4194816:rs(e,t),Vt(e,t,o.children,a),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function To(e){e.flags|=4}function Jm(e,t,a,o,i){var l;if((l=(e.mode&32)!==0)&&(l=a===null?J1(t,o):J1(t,o)&&(o.src!==a.src||o.srcSet!==a.srcSet)),l){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if($2())e.flags|=8192;else throw ui=lu,qg}else e.flags&=-16777217}function $1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Q2(t))if($2())e.flags|=8192;else throw ui=lu,qg}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bw():536870912,e.lanes|=t,Ds|=t)}function Pd(e,t){if(!ze)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,o|=i.subtreeFlags&1206910976,o|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,o|=i.subtreeFlags,o|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function QR(e,t,a){var o=t.pendingProps;switch(Mg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return st(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),_o(It),zs(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(es(t)?To(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Km())),st(t),null;case 26:var i=t.type,l=t.memoizedState;return e===null?(To(t),l!==null?(st(t),$1(t,l)):(st(t),Jm(t,i,null,o,a))):l?l!==e.memoizedState?(To(t),st(t),$1(t,l)):(st(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&To(t),st(t),Jm(t,i,e,o,a)),null;case 27:if(eu(t),a=Cn.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&To(t);else{if(!o){if(t.stateNode===null)throw Error(H(166));return st(t),t.subtreeFlags&=-33554433,null}e=ho.current,es(t)?X0(t,e):(e=K2(i,o,a),t.stateNode=e,To(t))}return st(t),t.subtreeFlags&=-33554433,null;case 5:if(eu(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&To(t);else{if(!o){if(t.stateNode===null)throw Error(H(166));return st(t),t.subtreeFlags&=-33554433,null}if(l=ho.current,es(t))X0(t,l);else{var r=op(Cn.current);switch(l){case 1:l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":l=r.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is=="string"?r.createElement(i,{is:o.is}):r.createElement(i)}}l[lr]=t,l[Gr]=o;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)l.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=l;e:switch(ur(l,i,o),i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&To(t)}}return st(t),t.subtreeFlags&=-33554433,Jm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&To(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(H(166));if(e=Cn.current,es(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,i=tr,i!==null)switch(i.tag){case 27:case 5:o=i.memoizedProps}e[lr]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||M2(e.nodeValue,a)),e||On(t,!0)}else e=op(e).createTextNode(o),e[lr]=t,t.stateNode=e}return st(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=es(t),a!==null){if(e===null){if(!o)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[lr]=t}else mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),e=!1}else a=Km(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(aa(t),t):(aa(t),null);if((t.flags&128)!==0)throw Error(H(558))}return st(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=es(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(H(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(H(317));i[lr]=t}else mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),i=!1}else i=Km(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(aa(t),t):(aa(t),null)}return aa(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,i=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(i=o.alternate.memoizedState.cachePool.pool),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==i&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Pc(t,t.updateQueue),st(t),null);case 4:return zs(),e===null&&ch(t.stateNode.containerInfo),t.flags|=67108864,st(t),null;case 10:return _o(t.type),st(t),null;case 19:if(Hg(t),o=t.memoizedState,o===null)return st(t),null;if(i=(t.flags&128)!==0,l=o.rendering,l===null)if(i)Pd(o,!1);else{if(At!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=pu(e),l!==null){for(t.flags|=128,Pd(o,!1),e=l.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Xw(a,e),a=a.sibling;return ep(t,cr.current&1|2),ze&&Eo(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&ia()>vu&&(t.flags|=128,i=!0,Pd(o,!1),t.lanes=4194304)}else{if(!i)if(e=pu(l),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Pd(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!l.alternate&&!ze)return st(t),null}else 2*ia()-o.renderingStartTime>vu&&a!==536870912&&(t.flags|=128,i=!0,Pd(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(e=o.last,e!==null?e.sibling=l:t.child=l,o.last=l)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=ia(),e.sibling=null,l=cr.current,l=i?l&1|2:l&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||ze?ep(t,l):(a=l,dt(fr,t),dt(cr,a),wr===null&&(wr=t)),ze&&Eo(t,o.treeForkCount),e}return st(t),null;case 22:case 23:return aa(t),Bg(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),a=t.updateQueue,a!==null&&Pc(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&pr(ci),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),_o(It),st(t),null;case 25:return null;case 30:return t.flags|=33554432,st(t),null}throw Error(H(156,t.tag))}function JR(e,t){switch(Mg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(It),zs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return eu(t),null;case 31:if(t.memoizedState!==null){if(aa(t),t.alternate===null)throw Error(H(340));mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hg(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return zs(),null;case 10:return _o(t.type),null;case 22:case 23:return aa(t),Bg(),e!==null&&pr(ci),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _o(It),null;case 25:return null;default:return null}}function Yk(e,t){switch(Mg(t),t.tag){case 3:_o(It),zs();break;case 26:case 27:case 5:eu(t);break;case 4:zs();break;case 31:t.memoizedState!==null&&aa(t);break;case 13:aa(t);break;case 19:Hg(t);break;case 10:_o(t.type);break;case 22:case 23:aa(t),Bg(),e!==null&&pr(ci);break;case 24:_o(It)}}function hp(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var i=o.next;a=i;do{if((a.tag&e)===e){o=void 0;var l=a.create,r=a.inst;o=l(),r.destroy=o}a=a.next}while(a!==i)}}catch(s){Xe(t,t.return,s)}}function jn(e,t,a){try{var o=t.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var l=i.next;o=l;do{if((o.tag&e)===e){var r=o.inst,s=r.destroy;if(s!==void 0){r.destroy=void 0,i=t;var p=a,n=s;try{n()}catch(d){Xe(i,p,d)}}}o=o.next}while(o!==l)}}catch(d){Xe(t,t.return,d)}}function Xk(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ik(t,a)}catch(o){Xe(e,e.return,o)}}}function Qk(e,t,a){a.props=vi(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Xe(e,t,o)}}function co(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var i=e.stateNode,l=qo(e.memoizedProps,i);(i.ref===null||i.ref.name!==l)&&(i.ref=H2(l)),o=i.ref;break;case 7:if(e.stateNode===null){var r=new ca(e);Kr(e.child,!1,BN,r,void 0,void 0),e.stateNode=r}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(s){Xe(e,t,s)}}function sr(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(i){Xe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Xe(e,t,i)}else a.current=null}function xu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)V2(e.stateNode,t[a])}function S1(e){for(var t=e.return;t!==null&&(oh(t)&&V2(e.stateNode,t.stateNode),!ah(t));)t=t.return}function Ld(e){for(var t=e.return;t!==null&&(oh(t)&&HN(e.stateNode,t.stateNode),!ah(t));)t=t.return}function ah(e){return e.tag===5||e.tag===3||e.tag===27}function oh(e){return e&&e.tag===7&&e.stateNode!==null}function Kx(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(i){Xe(e,e.return,i)}}function Wm(e,t,a){try{var o=e.stateNode;kN(o,e.type,a,t),o[Gr]=t}catch(i){Xe(e,e.return,i)}}function Jk(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Un(e.type)||e.tag===4}function ex(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Un(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gx(e,t,a,o){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(i,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(i),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=mo)),xu(e,o),He=!0;else if(i!==4&&(i===27&&(xu(e,o),o=null,Un(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(Gx(e,t,a,o),e=e.sibling;e!==null;)Gx(e,t,a,o),e=e.sibling}function gu(e,t,a,o){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?a.insertBefore(i,t):a.appendChild(i),xu(e,o),He=!0;else if(i!==4&&(i===27&&(xu(e,o),o=null,Un(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(gu(e,t,a,o),e=e.sibling;e!==null;)gu(e,t,a,o),e=e.sibling}function Wk(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ur(t,o,a),t[lr]=e,t[Gr]=a}catch(l){Xe(e,e.return,l)}}var hu=!1,oa=null;function P1(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(hu=!0)}var uo=null;function C1(){var e=uo;return uo=null,e}var Fr=0;function Ls(e,t,a,o,i){return Fr=0,e2(e.child,t,a,o,i)}function e2(e,t,a,o,i){for(var l=!1;e!==null;){if(e.tag===5){var r=e.stateNode;if(o!==null){var s=mg(r);o.push(s),s.view&&(l=!0)}else l||mg(r).view&&(l=!0);hu=!0,q2(r,Fr===0?t:t+"_"+Fr,a),Fr++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||e2(e.child,t,a,o,i)&&(l=!0));e=e.sibling}return l}function bo(e,t){for(;e!==null;)e.tag===5?j2(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||bo(e.child,t)),e=e.sibling}function Lc(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Lc(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(H(544));var a=t.name;t=Fo(t.default,t.share),t!=="none"&&(Ls(e,a,t,null,!1)||bo(e.child,!1))}e=e.sibling}}function Yx(e,t){if(e.tag===30){var a=e.stateNode,o=e.memoizedProps,i=qo(o,a),l=Fo(o.default,a.paired?o.share:o.enter);l!=="none"?Ls(e,i,l,null,!1)?(Lc(e),a.paired||t||Ts(e,o.onEnter)):bo(e.child,!1):Lc(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Yx(e,t),e=e.sibling;else Lc(e)}function Xx(e){if(oa!==null&&oa.size!==0){var t=oa;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,o=a.name;if(o!=null&&o!=="auto"){var i=t.get(o);if(i!==void 0){var l=Fo(a.default,a.share);if(l!=="none"&&(Ls(e,o,l,null,!1)?(l=e.stateNode,i.paired=l,l.paired=i,Ts(e,a.onShare)):bo(e.child,!1)),t.delete(o),t.size===0)break}}}Xx(e)}e=e.sibling}}}function Qx(e){if(e.tag===30){var t=e.memoizedProps,a=qo(t,e.stateNode),o=oa!==null?oa.get(a):void 0,i=Fo(t.default,o!==void 0?t.share:t.exit);i!=="none"&&(Ls(e,a,i,null,!1)?o!==void 0?(i=e.stateNode,o.paired=i,i.paired=o,oa.delete(a),Ts(e,t.onShare)):Ts(e,t.onExit):bo(e.child,!1)),oa!==null&&Xx(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Qx(e),e=e.sibling;else oa!==null&&Xx(e)}function t2(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=qo(t,e.stateNode);t=Fo(t.default,t.update),e.flags&=-5,t!=="none"&&Ls(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&t2(e);e=e.sibling}}function Jx(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,bo(e.child,!1))}Jx(e)}e=e.sibling}}function Fc(e){if(e.tag===30)e.stateNode.paired=null,bo(e.child,!1),Jx(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Fc(e),e=e.sibling;else Jx(e)}function r2(e){for(e=e.child;e!==null;)e.tag===30?bo(e.child,!1):(e.subtreeFlags&33554432)!==0&&r2(e),e=e.sibling}function nh(e,t,a,o,i,l,r){for(var s=!1;t!==null;){if(t.tag===5){var p=t.stateNode;if(l!==null&&Fr<l.length){var n=l[Fr],d=mg(p);(n.view||d.view)&&(s=!0);var c;if(c=(e.flags&4)===0)if(d.clip)c=!0;else{c=n.rect;var u=d.rect;c=c.y!==u.y||c.x!==u.x||c.height!==u.height||c.width!==u.width}c&&(e.flags|=4),d.abs?d=!n.abs:(n=n.rect,d=d.rect,d=n.height!==d.height||n.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&q2(p,Fr===0?a:a+"_"+Fr,i),s&&(e.flags&4)!==0||(uo===null&&(uo=[]),uo.push(p,Fr===0?o:o+"_"+Fr,t.memoizedProps)),Fr++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&r?e.flags|=t.flags&32:nh(e,t.child,a,o,i,l,r)&&(s=!0));t=t.sibling}return s}function a2(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,o=e.stateNode,i=qo(a,o),l=Fo(a.default,a.update);if(t){o=o.clones;var r=o===null?null:o.map(AN)}else r=e.memoizedState,e.memoizedState=null;o=e;var s=e.child;Fr=0,i=nh(o,s,i,i,l,r,!1),(e.flags&4)!==0&&i&&(t||Ts(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&a2(e,t);e=e.sibling}}var Jt=!1,Ke=!1,so=!1,tx=!1,z1=typeof WeakSet=="function"?WeakSet:Set,Wt=null,lo=!1,Ed=!1,yu=!1,Wx=!1;function WR(e,t,a){if(e=e.containerInfo,cg=qs,e=Uw(e),Dg(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var i=o.getSelection&&o.getSelection();if(i&&i.rangeCount!==0){o=i.anchorNode;var l=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{o.nodeType,r.nodeType}catch{o=null;break e}var s=0,p=-1,n=-1,d=0,c=0,u=e,f=null;t:for(;;){for(var m;u!==o||l!==0&&u.nodeType!==3||(p=s+l),u!==r||i!==0&&u.nodeType!==3||(n=s+i),u.nodeType===3&&(s+=u.nodeValue.length),(m=u.firstChild)!==null;)f=u,u=m;for(;;){if(u===e)break t;if(f===o&&++d===l&&(p=s),f===r&&++c===i&&(n=s),(m=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=m}o=p===-1||n===-1?null:{start:p,end:n}}else o=null}o=o||{start:0,end:0}}else o=null;for(ug={focusedElem:e,selectionRange:o},qs=!1,a=(a&335544064)===a,Wt=t,t=a?9270:1024;Wt!==null;){if(e=Wt,a&&(o=e.deletions,o!==null))for(l=0;l<o.length;l++)a&&Qx(o[l]);if(e.alternate===null&&(e.flags&2)!==0)a&&P1(e),Cc(a);else{if(e.tag===22){if(o=e.alternate,e.memoizedState!==null){o!==null&&o.memoizedState===null&&a&&Qx(o),Cc(a);continue}else if(o!==null&&o.memoizedState!==null){a&&P1(e),Cc(a);continue}}o=e.child,(e.subtreeFlags&t)!==0&&o!==null?(o.return=e,Wt=o):(a&&t2(e),Cc(a))}}oa=null}function Cc(e){for(;Wt!==null;){var t=Wt,a=e,o=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&o!==null){a=void 0,i=o.memoizedProps,o=o.memoizedState;var l=t.stateNode;try{var r=vi(t.type,i);a=l.getSnapshotBeforeUpdate(r,o),l.__reactInternalSnapshotBeforeUpdate=a}catch(s){Xe(t,t.return,s)}}break;case 3:if((i&1024)!==0){if(o=t.stateNode.containerInfo,a=o.nodeType,a===9)xg(o);else if(a===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":xg(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&o!==null&&(a=qo(o.memoizedProps,o.stateNode),i=t.memoizedProps,i=Fo(i.default,i.update),i!=="none"&&Ls(o,a,i,o.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(H(163))}if(o=t.sibling,o!==null){o.return=t.return,Wt=o;break}Wt=t.return}}function o2(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:po(e,a),o&4&&hp(5,a);break;case 1:if(po(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(r){Xe(a,a.return,r)}else{var i=vi(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){Xe(a,a.return,r)}}o&64&&Xk(a),o&512&&co(a,a.return);break;case 3:if(po(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ik(e,t)}catch(r){Xe(a,a.return,r)}}break;case 27:t===null&&o&4&&Wk(a);case 26:case 5:po(e,a),t===null&&o&4&&Kx(a),o&512&&co(a,a.return);break;case 12:po(e,a);break;case 31:po(e,a),o&4&&l2(e,a);break;case 13:po(e,a),o&4&&d2(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cN.bind(null,a),FN(e,a))));break;case 22:if(o=a.memoizedState!==null||Jt,!o){var l=t!==null&&t.memoizedState!==null||Ke;t=Jt,i=Ke,Jt=o,(Ke=l)&&!i?(o=2,(a.subtreeFlags&8772)!==0&&(o|=1),Ma(e,a,o)):po(e,a),Jt=t,Ke=i}break;case 30:po(e,a),o&512&&co(a,a.return);break;case 7:o&512&&co(a,a.return);default:po(e,a)}}function eg(e,t){for(e=e.child;e!==null;)n2(e,t),e=e.sibling}function n2(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var o=a.style;typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"}else{var i=e.stateNode,l=e.memoizedProps.style,r=l!=null&&l.hasOwnProperty("display")?l.display:null;i.style.display=r==null||typeof r=="boolean"?"":(""+r).trim()}}catch(p){Xe(e,e.return,p)}tg(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,He=!0}catch(p){Xe(e,e.return,p)}break;case 18:try{var s=e.stateNode;t?L1(s,!0):L1(e.stateNode,!1)}catch(p){Xe(e,e.return,p)}break;case 22:case 23:e.memoizedState===null&&eg(e,t);break;default:eg(e,t)}}function tg(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,o=t;switch(a.tag){case 4:n2(a,o);break e;case 22:a.memoizedState===null&&tg(a,o);break e;default:tg(a,o)}}e=e.sibling}}function i2(e){var t=e.alternate;t!==null&&(e.alternate=null,i2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Au(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,Ur=!1;function Ia(e,t,a){for(a=a.child;a!==null;)s2(e,t,a),a=a.sibling}function s2(e,t,a){if(sa&&typeof sa.onCommitFiberUnmount=="function")try{sa.onCommitFiberUnmount(pp,a)}catch{}switch(a.tag){case 26:Ke||sr(a,t),Ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Ke&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ke||sr(a,t),Ld(a);var o=gt,i=Ur;Un(a.type)&&(gt=a.stateNode,Ur=!1),Ia(e,t,a),G2(a.stateNode,a.type,a.memoizedProps),gt=o,Ur=i;break;case 5:Ke||sr(a,t),Ld(a);case 6:if(a.tag===6&&Ld(a),o=gt,i=Ur,gt=null,Ia(e,t,a),gt=o,Ur=i,gt!==null)if(Ur)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(a.stateNode),He=!0}catch(l){Xe(a,t,l)}else try{gt.removeChild(a.stateNode),He=!0}catch(l){Xe(a,t,l)}break;case 18:gt!==null&&(Ur?(e=gt,U1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),js(e)):U1(gt,a.stateNode));break;case 4:o=gt,i=Ur,gt=a.stateNode.containerInfo,Ur=!0,Ia(e,t,a),gt=o,Ur=i;break;case 0:case 11:case 14:case 15:jn(2,a,t),Ke||jn(4,a,t),Ia(e,t,a);break;case 1:Ke||(sr(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Qk(a,t,o)),Ia(e,t,a);break;case 21:Ia(e,t,a);break;case 22:Ke=(o=Ke)||a.memoizedState!==null,Ia(e,t,a),Ke=o;break;case 30:sr(a,t),Ia(e,t,a);break;case 7:Ke||sr(a,t),Ia(e,t,a);break;default:Ia(e,t,a)}}function l2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{js(e)}catch(a){Xe(t,t.return,a)}}}function d2(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{js(e)}catch(a){Xe(t,t.return,a)}}function eN(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new z1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new z1),t;default:throw Error(H(435,e.tag))}}function zc(e,t){var a=eN(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var i=uN.bind(null,e,o);o.then(i,i)}})}function Nr(e,t,a){var o=t.deletions;if(o!==null)for(var i=0;i<o.length;i++){var l=o[i],r=e,s=t,p=s;e:for(;p!==null;){switch(p.tag){case 27:if(Un(p.type)){gt=p.stateNode,Ur=!1;break e}break;case 5:gt=p.stateNode,Ur=!1;break e;case 3:case 4:gt=p.stateNode.containerInfo,Ur=!0;break e}p=p.return}if(gt===null)throw Error(H(160));s2(r,s,l),gt=null,Ur=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)p2(t,e,a),t=t.sibling}var _a=null;function p2(e,t,a){var o=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(o=e.updateQueue,o=o!==null?o.events:null,o!==null))for(var l=0;l<o.length;l++){var r=o[l];r.ref.impl=r.nextImpl}Nr(t,e,a),Dr(e),i&4&&(jn(3,e,e.return),hp(3,e),jn(5,e,e.return));break;case 1:Nr(t,e,a),Dr(e),i&512&&(Ke||o===null||sr(o,o.return)),i&64&&Jt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(l=_a,Nr(t,e,a),Dr(e),i&512&&(Ke||o===null||sr(o,o.return)),i&4)if(i=o!==null?o.memoizedState:null,a=e.memoizedState,o===null)if(a===null)if(e.stateNode===null)if(Jt)e.stateNode=O2(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,i=l.ownerDocument||l;t:switch(t){case"title":o=i.getElementsByTagName("title")[0],(!o||o[fp]||o[lr]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(t),i.head.insertBefore(o,i.querySelector("head > title"))),ur(o,t,a),o[lr]=e,er(o),t=o;break e;case"link":if(l=Q1("link","href",i).get(t+(a.href||""))){for(r=0;r<l.length;r++)if(o=l[r],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){l.splice(r,1);break t}}o=i.createElement(t),ur(o,t,a),i.head.appendChild(o);break;case"meta":if(l=Q1("meta","content",i).get(t+(a.content||""))){for(r=0;r<l.length;r++)if(o=l[r],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){l.splice(r,1);break t}}o=i.createElement(t),ur(o,t,a),i.head.appendChild(o);break;default:throw Error(H(468,t))}o[lr]=e,er(o),t=o}e.stateNode=t}else Jt||yg(l,e.type,e.stateNode);else e.stateNode=X1(l,a,e.memoizedProps);else i!==a?(i===null?(t=o.stateNode,t===null||Ke||t.parentNode.removeChild(t)):i.count--,a===null?Jt||yg(l,e.type,e.stateNode):X1(l,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Wm(e,e.memoizedProps,o.memoizedProps);break;case 27:Nr(t,e,a),Dr(e),i&512&&(Ke||o===null||sr(o,o.return)),o!==null&&i&4&&Wm(e,e.memoizedProps,o.memoizedProps);break;case 5:if(l=so,so=!1,Nr(t,e,a),so=l,Dr(e),i&512&&(Ke||o===null||sr(o,o.return)),e.flags&32){t=e.stateNode;try{Rs(t,""),He=!0}catch(d){Xe(e,e.return,d)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Wm(e,t,o!==null?o.memoizedProps:t)),i&1024&&(tx=!0);break;case 6:if(Nr(t,e,a),Dr(e),i&4){if(e.stateNode===null)throw Error(H(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,He=!0}catch(d){Xe(e,e.return,d)}}break;case 3:if(He=!1,Gc=null,l=_a,_a=np(t.containerInfo),Nr(t,e,a),_a=l,Dr(e),i&4&&o!==null&&o.memoizedState.isDehydrated)try{js(t.containerInfo)}catch(d){Xe(e,e.return,d)}tx&&(tx=!1,c2(e)),He=!1;break;case 4:i=so,so=Jt,o=E0(),l=_a,_a=np(e.stateNode.containerInfo),Nr(t,e,a),Dr(e),_a=l,He&&Ed&&(yu=!0),He=o,so=i;break;case 12:Nr(t,e,a),Dr(e);break;case 31:Nr(t,e,a),Dr(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 13:Nr(t,e,a),Dr(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Hu=ia()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 22:l=e.memoizedState!==null,r=o!==null&&o.memoizedState!==null;var s=Jt,p=Ke,n=so;Jt=s||l,so=n||l,Ke=p||r,Nr(t,e,a),Ke=p,so=n,Jt=s,Dr(e),i&8192&&(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,!l||o===null||r||Jt||Ke||(t=r||Ke,a=Jt,o=Ke,Jt=l||Jt,Ke=t,gn(e,2),Jt=a,Ke=o),!l&&so||eg(e,l)),i&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,zc(e,a))));break;case 19:Nr(t,e,a),Dr(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,zc(e,t)));break;case 30:i&512&&(Ke||o===null||sr(o,o.return)),i=E0(),l=Ed,r=(a&335544064)===a,s=e.memoizedProps,Ed=r&&Fo(s.default,s.update)!=="none",Nr(t,e,a),Dr(e),r&&o!==null&&He&&(e.flags|=4),Ed=l,He=i;break;case 21:break;case 7:i&512&&(Ke||o===null||sr(o,o.return)),o&&o.stateNode!==null&&(o.stateNode._fragmentFiber=e);default:Nr(t,e,a),Dr(e)}}function Dr(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(Jk(o)){a=o;break}o=o.return}o=null;for(var i=e.return;i!==null;){if(oh(i)){var l=i.stateNode;o===null?o=[l]:o.push(l)}if(ah(i))break;i=i.return}var r=o;if(a==null)throw Error(H(160));switch(a.tag){case 27:var s=a.stateNode,p=ex(e);gu(e,p,s,r);break;case 5:var n=a.stateNode;a.flags&32&&(Rs(n,""),a.flags&=-33);var d=ex(e);gu(e,d,n,r);break;case 3:case 4:var c=a.stateNode.containerInfo,u=ex(e);Gx(e,u,c,r);break;default:throw Error(H(161))}}catch(f){Xe(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function c2(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;c2(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,qs=!0,t.reset(),qs=!1),e=e.sibling}}function ts(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)u2(t,e),t=t.sibling;else a2(t,!1)}function u2(e,t){var a=e.alternate;if(a===null)Yx(e,!1);else switch(e.tag){case 3:if(Wx=lo=!1,C1(),ts(t,e),!lo&&!yu){if(e=uo,e!==null)for(var o=0;o<e.length;o+=3){a=e[o];var i=e[o+1];j2(a,e[o+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Wx=!0}uo=null;break;case 5:ts(t,e);break;case 4:o=lo,lo=!1,ts(t,e),lo&&(yu=!0),lo=o;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?Yx(e,!1):ts(t,e));break;case 30:o=lo,i=C1(),lo=!1,ts(t,e),lo&&(e.flags|=4);var l=e.memoizedProps,r=e.stateNode;t=qo(l,r),r=qo(a.memoizedProps,r);var s=Fo(l.default,l.update);s==="none"?t=!1:(l=a.memoizedState,a.memoizedState=null,a=e.child,Fr=0,t=nh(e,a,t,r,s,l,!0),Fr!==(l===null?0:l.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ts(e,e.memoizedProps.onUpdate),uo=i):i!==null&&(i.push.apply(i,uo),uo=i),lo=(e.flags&32)!==0?!0:o;break;default:ts(t,e)}}function po(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)o2(e,t.alternate,t),t=t.sibling}function gn(e,t){for(e=e.child;e!==null;){var a=e,o=t;switch(a.tag){case 0:case 11:case 14:case 15:jn(4,a,a.return),gn(a,o);break;case 1:sr(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Qk(a,a.return,i),gn(a,o);break;case 27:(o&2)!==0&&G2(a.stateNode,a.type,a.memoizedProps);case 5:sr(a,a.return),a.tag!==5&&a.tag!==27||Ld(a),gn(a,o);break;case 6:Ld(a);break;case 26:sr(a,a.return),i=a.stateNode,a.memoizedState!==null||i===null||Ke||i.parentNode.removeChild(i),gn(a,o);break;case 22:a.memoizedState===null&&gn(a,o);break;case 30:sr(a,a.return),gn(a,o);break;case 7:sr(a,a.return);default:gn(a,o)}e=e.sibling}}function Ma(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var o=t.alternate,i=e,l=t,r=l.flags,s=(a&1)!==0;switch(l.tag){case 0:case 11:case 15:Ma(i,l,a),hp(4,l);break;case 1:if(Ma(i,l,a),o=l,i=o.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(d){Xe(o,o.return,d)}if(o=l,i=o.updateQueue,i!==null){var p=o.stateNode;try{var n=i.shared.hiddenCallbacks;if(n!==null)for(i.shared.hiddenCallbacks=null,i=0;i<n.length;i++)nk(n[i],p)}catch(d){Xe(o,o.return,d)}}s&&r&64&&Xk(l),co(l,l.return);break;case 27:(a&2)!==0&&Wk(l);case 5:l.tag!==5&&l.tag!==27||S1(l),Ma(i,l,a),s&&o===null&&r&4&&Kx(l),co(l,l.return);break;case 6:S1(l);break;case 26:p=l.stateNode,l.memoizedState!==null||p===null||Jt||yg(np(p.ownerDocument),l.type,p),Ma(i,l,a),s&&o===null&&r&4&&Kx(l),co(l,l.return);break;case 12:Ma(i,l,a);break;case 31:Ma(i,l,a),s&&r&4&&l2(i,l);break;case 13:Ma(i,l,a),s&&r&4&&d2(i,l);break;case 22:l.memoizedState===null&&Ma(i,l,a),co(l,l.return);break;case 30:Ma(i,l,a),co(l,l.return);break;case 7:co(l,l.return);default:Ma(i,l,a)}t=t.sibling}}function ih(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&xp(a))}function sh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xp(e))}function ga(e,t,a,o){var i=(a&335544064)===a;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)f2(e,t,a,o),t=t.sibling;else i&&r2(t)}function f2(e,t,a,o){var i=(a&335544064)===a;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Fc(t);var l=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,a,o),l&2048&&hp(9,t);break;case 1:ga(e,t,a,o);break;case 3:ga(e,t,a,o),i&&Wx&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),l&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&xp(l)));break;case 12:if(l&2048){ga(e,t,a,o),l=t.stateNode;try{var r=t.memoizedProps,s=r.id,p=r.onPostCommit;typeof p=="function"&&p(s,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(n){Xe(t,t.return,n)}}else ga(e,t,a,o);break;case 31:ga(e,t,a,o);break;case 13:ga(e,t,a,o);break;case 23:break;case 22:r=t.stateNode,s=t.alternate,t.memoizedState!==null?(i&&s!==null&&s.memoizedState===null&&Fc(s),r._visibility&2?ga(e,t,a,o):Fd(e,t)):(i&&s!==null&&s.memoizedState!==null&&Fc(t),r._visibility&2?ga(e,t,a,o):(r._visibility|=2,as(e,t,a,o,(t.subtreeFlags&10256)!==0||!1))),l&2048&&ih(s,t);break;case 24:ga(e,t,a,o),l&2048&&sh(t.alternate,t);break;case 30:i&&(l=t.alternate,l!==null&&(bo(l.child,!0),bo(t.child,!0))),ga(e,t,a,o);break;default:ga(e,t,a,o)}}function as(e,t,a,o,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var l=e,r=t,s=a,p=o,n=r.flags;switch(r.tag){case 0:case 11:case 15:as(l,r,s,p,i),hp(8,r);break;case 23:break;case 22:var d=r.stateNode;r.memoizedState!==null?d._visibility&2?as(l,r,s,p,i):Fd(l,r):(d._visibility|=2,as(l,r,s,p,i)),i&&n&2048&&ih(r.alternate,r);break;case 24:as(l,r,s,p,i),i&&n&2048&&sh(r.alternate,r);break;default:as(l,r,s,p,i)}t=t.sibling}}function Fd(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,i=o.flags;switch(o.tag){case 22:Fd(a,o),i&2048&&ih(o.alternate,o);break;case 24:Fd(a,o),i&2048&&sh(o.alternate,o);break;default:Fd(a,o)}t=t.sibling}}var ii=8192;function ai(e,t,a){if(e.subtreeFlags&ii)for(e=e.child;e!==null;)m2(e,t,a),e=e.sibling}function m2(e,t,a){switch(e.tag){case 26:ai(e,t,a),e.flags&ii&&(e.memoizedState!==null?o3(a,_a,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&W1(a,e)));break;case 5:ai(e,t,a),e.flags&ii&&(e=e.stateNode,(t&335544128)===t&&W1(a,e));break;case 3:case 4:var o=_a;_a=np(e.stateNode.containerInfo),ai(e,t,a),_a=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ii,ii=16777216,ai(e,t,a),ii=o):ai(e,t,a));break;case 30:if((e.flags&ii)!==0&&(o=e.memoizedProps.name,o!=null&&o!=="auto")){var i=e.stateNode;i.paired=null,oa===null&&(oa=new Map),oa.set(o,i)}ai(e,t,a);break;default:ai(e,t,a)}}function x2(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Cd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Wt=o,h2(o,e)}x2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)g2(e),e=e.sibling}function g2(e){switch(e.tag){case 0:case 11:case 15:Cd(e),e.flags&2048&&jn(9,e,e.return);break;case 3:Cd(e);break;case 12:Cd(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vc(e)):Cd(e);break;default:Cd(e)}}function Vc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Wt=o,h2(o,e)}x2(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jn(8,t,t.return),Vc(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Vc(t));break;default:Vc(t)}e=e.sibling}}function h2(e,t){for(;Wt!==null;){var a=Wt;switch(a.tag){case 0:case 11:case 15:jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:xp(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Wt=o;else e:for(a=e;Wt!==null;){o=Wt;var i=o.sibling,l=o.return;if(i2(o),o===a){Wt=null;break e}if(i!==null){i.return=l,Wt=i;break e}Wt=l}}}var tN={getCacheForType:function(e){var t=dr(It),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return dr(It).controller.signal}},rN=typeof WeakMap=="function"?WeakMap:Map,Le=0,ot=null,De=null,Te=0,Ge=0,ta=null,$n=!1,Fs=!1,lh=!1,Uo=0,At=0,Bn=0,fi=0,bu=0,na=0,Ds=0,Vd=null,Lr=null,rg=!1,Hu=0,y2=0,vu=1/0,wu=null,Tn=null,wt=0,qa=null,wi=null,yo=0,ag=0,og=null,b2=null,Ss=null,Ps=null,Cs=null,Zd=0,Zc=null;function da(){return(Le&2)!==0&&Te!==0?Te&-Te:ve.T!==null?ph():$w()}function v2(){if(na===0)if((Te&536870912)===0||ze){var e=mc;mc<<=1,(mc&3932160)===0&&(mc=262144),na=e}else na=536870912;return e=fr.current,e!==null&&(e.flags|=32),na}function Ts(e,t){if(t!=null){var a=e.stateNode,o=a.ref;o===null&&(o=a.ref=H2(qo(e.memoizedProps,a))),Ps===null&&(Ps=[]),Ps.push(t.bind(null,o))}}function Zr(e,t,a){(e===ot&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Es(e,0),Sn(e,Te,na,!1)),up(e,a),((Le&2)===0||e!==ot)&&(e===ot&&((Le&2)===0&&(fi|=a),At===4&&Sn(e,Te,na,!1)),wo(e))}function w2(e,t,a){if((Le&6)!==0)throw Error(H(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||cp(e,t),i=o?nN(e,t):rx(e,t,!0),l=o;do{if(i===0){Fs&&!o&&Sn(e,t,0,!1);break}else{if(a=e.current.alternate,l&&!aN(a)){i=rx(e,t,!1),l=!1;continue}if(i===2){if(l=t,e.errorRecoveryDisabledLanes&l)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var s=e;i=Vd;var p=s.current.memoizedState.isDehydrated;if(p&&(Es(s,r).flags|=256),r=rx(s,r,!1),r!==2&&r!==6){if(lh&&!p){s.errorRecoveryDisabledLanes|=l,fi|=l,i=4;break e}l=Lr,Lr=i,l!==null&&(Lr===null?Lr=l:Lr.push.apply(Lr,l))}i=r}if(l=!1,i!==2)continue}}if(i===1){Es(e,0),Sn(e,t,0,!0);break}e:{switch(o=e,l=i,l){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Sn(o,t,na,!$n);break e;case 2:Lr=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(i=Hu+300-ia(),10<i)){if(Sn(o,t,na,!$n),zu(o,0,!0)!==0)break e;yo=t,o.timeoutHandle=uh(A1.bind(null,o,a,Lr,wu,rg,t,na,fi,Ds,$n,l,"Throttled",-0,0),i);break e}A1(o,a,Lr,wu,rg,t,na,fi,Ds,$n,l,null,-0,0)}}break}while(!0);wo(e)}function A1(e,t,a,o,i,l,r,s,p,n,d,c,u,f){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(l&335544064)===l;if(c=null,(h||m&8192||(m&16785408)===16785408)&&(c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mo},oa=null,m2(t,l,c),h&&(m=c,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ip.bind(m),h.finished.then(m,m))),m=(l&62914560)===l?Hu-ia():(l&4194048)===l?y2-ia():0,m=n3(c,m),m!==null)){yo=l,e.cancelPendingCommit=m(N1.bind(null,e,t,l,a,o,i,r,s,p,n,d,c,null,u,f)),Sn(e,l,r,!n);return}N1(e,t,l,a,o,i,r,s,p,n,d,c)}function aN(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var i=a[o],l=i.getSnapshot;i=i.value;try{if(!pa(l(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sn(e,t,a,o){t=yw(e,t),t&=~bu,t&=~fi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var i=t;0<i;){var l=31-la(i),r=1<<l;o[l]=-1,i&=~r}a!==0&&vw(e,a,t)}function Uu(){return(Le&6)===0?(yp(0,!1),!1):!0}function dh(){if(De!==null){if(Ge===0)var e=De.return;else e=De,Io=Ci=null,Zg(e),ws=null,Wd=0,e=De;for(;e!==null;)Yk(e.alternate,e),e=e.return;De=null}}function Es(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,PN(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),yo=0,dh(),ot=e,De=a=Mo(e.current,null),Te=t,Ge=0,ta=null,$n=!1,Fs=cp(e,t),lh=!1,Ds=na=bu=fi=Bn=At=0,Lr=Vd=null,rg=!1,Uo=yw(e,t),Tu(),a}function k2(e,t){Pe=null,ve.H=fu,t===Us||t===Mu?(t=t1(),Ge=3):t===qg?(t=t1(),Ge=4):Ge=t===eh?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ta=t,De===null&&(At=1,mu(e,wa(t,e.current)))}function $2(){var e=fr.current;return e===null?!0:(Te&4194048)===Te?wr===null:(Te&62914560)===Te||(Te&536870912)!==0?e===wr:!1}function S2(){var e=ve.H;return ve.H=fu,e===null?fu:e}function P2(){var e=ve.A;return ve.A=tN,e}function ku(){At=4,$n||(Te&4194048)!==Te&&fr.current!==null||(Fs=!0),(Bn&134217727)===0&&(fi&134217727)===0||ot===null||Sn(ot,Te,na,!1)}function rx(e,t,a){var o=Le;Le|=2;var i=S2(),l=P2();(ot!==e||Te!==t)&&(wu=null,Es(e,t)),t=!1;var r=At;e:do try{if(Ge!==0&&De!==null){var s=De,p=ta;switch(Ge){case 8:dh(),r=6;break e;case 3:case 2:case 9:case 6:fr.current===null&&(t=!0);var n=Ge;if(Ge=0,ta=null,gs(e,s,p,n),a&&Fs){r=0;break e}break;default:n=Ge,Ge=0,ta=null,gs(e,s,p,n)}}oN(),r=At;break}catch(d){k2(e,d)}while(!0);return t&&e.shellSuspendCounter++,Io=Ci=null,Le=o,ve.H=i,ve.A=l,De===null&&(ot=null,Te=0,Tu()),r}function oN(){for(;De!==null;)C2(De)}function nN(e,t){var a=Le;Le|=2;var o=S2(),i=P2();ot!==e||Te!==t?(wu=null,vu=ia()+500,Es(e,t)):Fs=cp(e,t);e:do try{if(Ge!==0&&De!==null){t=De;var l=ta;t:switch(Ge){case 1:Ge=0,ta=null,gs(e,t,l,1);break;case 2:case 9:if(e1(l)){Ge=0,ta=null,R1(t);break}t=function(){Ge!==2&&Ge!==9||ot!==e||(Ge=7),wo(e)},l.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:e1(l)?(Ge=0,ta=null,R1(t)):(Ge=0,ta=null,gs(e,t,l,7));break;case 5:var r=null;switch(De.tag){case 26:r=De.memoizedState;case 5:case 27:var s=De;if(r?Q2(r):s.stateNode.complete){Ge=0,ta=null;var p=s.sibling;if(p!==null)De=p;else{var n=s.return;n!==null?(De=n,Lu(n)):De=null}break t}}Ge=0,ta=null,gs(e,t,l,5);break;case 6:Ge=0,ta=null,gs(e,t,l,6);break;case 8:dh(),At=6;break e;default:throw Error(H(462))}}iN();break}catch(d){k2(e,d)}while(!0);return Io=Ci=null,ve.H=o,ve.A=i,Le=a,De!==null?0:(ot=null,Te=0,Tu(),At)}function iN(){for(;De!==null&&!$5();)C2(De)}function C2(e){var t=Gk(e.alternate,e,Uo);e.memoizedProps=e.pendingProps,t===null?Lu(e):De=t}function R1(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=h1(a,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=h1(a,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:Zg(t);var o=t;o===tr&&(ze?(iu(o),o.tag===5&&o.stateNode!=null&&(lt=o.stateNode)):(iu(o),ze=!0));default:Yk(a,t),t=De=Xw(t,Uo),t=Gk(a,t,Uo)}e.memoizedProps=e.pendingProps,t===null?Lu(e):De=t}function gs(e,t,a,o){Io=Ci=null,Zg(t),ws=null,Wd=0;var i=t.return;try{if(KR(e,i,t,a,Te)){At=1,mu(e,wa(a,e.current)),De=null;return}}catch(l){if(i!==null)throw De=i,l;At=1,mu(e,wa(a,e.current)),De=null;return}t.flags&32768?(ze||o===1?e=!0:Fs||(Te&536870912)!==0?e=!1:($n=e=!0,(o===2||o===9||o===3||o===6)&&(o=fr.current,o!==null&&o.tag===13&&(o.flags|=16384))),z2(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){z2(t,$n);return}e=t.return;var a=QR(t.alternate,t,Uo);if(a!==null){De=a;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);At===0&&(At=5)}function z2(e,t){do{var a=JR(e.alternate,e);if(a!==null){a.flags&=32767,De=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=a}while(e!==null);At=6,De=null}function N1(e,t,a,o,i,l,r,s,p,n,d,c){e.cancelPendingCommit=null;do Fu();while(wt!==0);if((Le&6)!==0)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));e===ot&&(De=ot=null,Te=0),wi=t,qa=e,yo=a,og=i,b2=o,sN(e,t,a,r,s,p,c)}}function sN(e,t,a,o,i,l,r){var s=t.lanes|t.childLanes;if(ag=s,s|=Tg,E5(e,a,s,o,i,l),Ps=null,(a&335544064)===a?(Cs=MR(e),o=10262):(Cs=null,o=10256),(t.subtreeFlags&o)!==0||(t.flags&o)!==0?(e.callbackNode=null,e.callbackPriority=0,fN(tu,function(){return lg(),null})):(e.callbackNode=null,e.callbackPriority=0),hu=!1,o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=ve.T,ve.T=null,i=Fe.p,Fe.p=2,l=Le,Le|=4;try{WR(e,t,a)}finally{Le=l,Fe.p=i,ve.T=o}}wt=1,hu?Ss=DN(r,e.containerInfo,Cs,ng,ig,dN,sg,lg,lN,null,null):(ng(),ig(),sg())}function lN(e){if(wt!==0){var t=qa.onRecoverableError;t(e,{componentStack:null})}}function dN(){wt===3&&(wt=0,u2(wi,qa),wt=4)}function ng(){if(wt===1){wt=0;var e=qa,t=wi,a=yo,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=ve.T,ve.T=null;var i=Fe.p;Fe.p=2;var l=Le;Le|=4;try{Ed=yu=!1,p2(t,e,a),a=ug;var r=Uw(e.containerInfo),s=a.focusedElem,p=a.selectionRange;if(r!==s&&s&&s.ownerDocument&&Hw(s.ownerDocument.documentElement,s)){if(p!==null&&Dg(s)){var n=p.start,d=p.end;if(d===void 0&&(d=n),"selectionStart"in s)s.selectionStart=n,s.selectionEnd=Math.min(d,s.value.length);else{var c=s.ownerDocument||document,u=c&&c.defaultView||window;if(u.getSelection){var f=u.getSelection(),m=s.textContent.length,h=Math.min(p.start,m),b=p.end===void 0?h:Math.min(p.end,m);!f.extend&&h>b&&(r=b,b=h,h=r);var x=Z0(s,h),g=Z0(s,b);if(x&&g&&(f.rangeCount!==1||f.anchorNode!==x.node||f.anchorOffset!==x.offset||f.focusNode!==g.node||f.focusOffset!==g.offset)){var y=c.createRange();y.setStart(x.node,x.offset),f.removeAllRanges(),h>b?(f.addRange(y),f.extend(g.node,g.offset)):(y.setEnd(g.node,g.offset),f.addRange(y))}}}}for(c=[],f=s;f=f.parentNode;)f.nodeType===1&&c.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<c.length;s++){var v=c[s];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}qs=!!cg,ug=cg=null}finally{Le=l,Fe.p=i,ve.T=o}}e.current=t,wt=2}}function ig(){if(wt===2){wt=0;var e=qa,t=wi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ve.T,ve.T=null;var o=Fe.p;Fe.p=2;var i=Le;Le|=4;try{o2(e,t.alternate,t)}finally{Le=i,Fe.p=o,ve.T=a}}wt=3}}function sg(){if(wt===4||wt===3){wt=0;var e=Ss;Ss=null,S5();var t=qa,a=wi,o=yo,i=b2,l=(o&335544064)===o?10262:10256;if((a.subtreeFlags&l)!==0||(a.flags&l)!==0?wt=5:(wt=0,wi=qa=null,A2(t,t.pendingLanes)),l=t.pendingLanes,l===0&&(Tn=null),Pg(o),a=a.stateNode,sa&&typeof sa.onCommitFiberRoot=="function")try{sa.onCommitFiberRoot(pp,a,void 0,(a.current.flags&128)===128)}catch{}if(i!==null){a=ve.T,l=Fe.p,Fe.p=2,ve.T=null;try{for(var r=t.onRecoverableError,s=0;s<i.length;s++){var p=i[s];r(p.value,{componentStack:p.stack})}}finally{ve.T=a,Fe.p=l}}if(i=Ps,r=Cs,Cs=null,i!==null&&(Ps=null,r===null&&(r=[]),e!==null))for(p=0;p<i.length;p++)a=(0,i[p])(r),a!==void 0&&e.finished.finally(a);(yo&3)!==0&&Fu(),wo(t),l=t.pendingLanes,(o&261930)!==0&&(l&42)!==0?t===Zc?Zd++:(Zd=0,Zc=t):(Zd=0,Zc=null),yp(0,!1)}}function A2(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xp(t)))}function Fu(){return Ss!==null&&(Ss.skipTransition(),Ss=null),ng(),ig(),sg(),lg()}function lg(){if(wt!==5)return!1;var e=qa,t=ag;ag=0;var a=Pg(yo),o=ve.T,i=Fe.p;try{Fe.p=32>a?32:a,ve.T=null,a=og,og=null;var l=qa,r=yo;if(wt=0,wi=qa=null,yo=0,(Le&6)!==0)throw Error(H(331));var s=Le;if(Le|=4,g2(l.current),f2(l,l.current,r,a),Le=s,yp(0,!1),sa&&typeof sa.onPostCommitFiberRoot=="function")try{sa.onPostCommitFiberRoot(pp,l)}catch{}return!0}finally{Fe.p=i,ve.T=o,A2(e,t)}}function D1(e,t,a){t=wa(a,t),t=Hx(e.stateNode,t,2),e=Rn(e,t,2),e!==null&&(up(e,2),wo(e))}function Xe(e,t,a){if(e.tag===3)D1(e,e,a);else for(;t!==null;){if(t.tag===3){D1(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Tn===null||!Tn.has(o))){e=wa(a,e),a=Lk(2),o=Rn(t,a,2),o!==null&&(Fk(a,o,t,e),up(o,2),wo(o));break}}t=t.return}}function ax(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new rN;var i=new Set;o.set(t,i)}else i=o.get(t),i===void 0&&(i=new Set,o.set(t,i));i.has(a)||(lh=!0,i.add(a),e=pN.bind(null,e,t,a),t.then(e,e))}function pN(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ot===e&&(Te&a)===a&&((At===4||At===3&&(Te&62914560)===Te&&300>ia()-Hu)&&(Le&2)===0?Es(e,0):bu|=a,Ds===Te&&(Ds=0)),wo(e)}function R2(e,t){t===0&&(t=bw()),e=Pi(e,t),e!==null&&(up(e,t),wo(e))}function cN(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),R2(e,a)}function uN(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(H(314))}o!==null&&o.delete(t),R2(e,a)}function fN(e,t){return $g(e,t)}var Is=null,os=null,dg=!1,$u=!1,ox=!1,Pn=0;function wo(e){e!==os&&e.next===null&&(os===null?Is=os=e:os=os.next=e),$u=!0,dg||(dg=!0,xN())}function yp(e,t){if(!ox&&$u){ox=!0;do for(var a=!1,o=Is;o!==null;){if(!t)if(e!==0){var i=o.pendingLanes;if(i===0)var l=0;else{var r=o.suspendedLanes,s=o.pingedLanes;l=(1<<31-la(42|e)+1)-1,l&=i&~(r&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,T1(o,l))}else l=Te,l=zu(o,o===ot?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(l&3)===0||cp(o,l)||(a=!0,T1(o,l));o=o.next}while(a);ox=!1}}function mN(){N2()}function N2(){$u=dg=!1;var e=0;Pn!==0&&SN()&&(e=Pn);for(var t=ia(),a=null,o=Is;o!==null;){var i=o.next,l=D2(o,t);l===0?(o.next=null,a===null?Is=i:a.next=i,i===null&&(os=a)):(a=o,(e!==0||(l&3)!==0)&&($u=!0)),o=i}wt!==0&&wt!==5||yp(e,!1),Pn!==0&&(Pn=0)}function D2(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var r=31-la(l),s=1<<r,p=i[r];p===-1?((s&a)===0||(s&o)!==0)&&(i[r]=T5(s,t)):p<=t&&(e.expiredLanes|=s),l&=~s}if(t=ot,a=Te,a=zu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&_m(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||cp(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&_m(o),Pg(a)){case 2:case 8:a=gw;break;case 32:a=tu;break;case 268435456:a=hw;break;default:a=tu}return o=T2.bind(null,e),a=$g(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&_m(o),e.callbackPriority=2,e.callbackNode=null,2}function T2(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Fu()&&e.callbackNode!==a)return null;var o=Te;return o=zu(e,e===ot?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(w2(e,o,t),D2(e,ia()),e.callbackNode!=null&&e.callbackNode===a?T2.bind(null,e):null)}function T1(e,t){if(Fu())return null;w2(e,t,!0)}function xN(){CN(function(){(Le&6)!==0?$g(xw,mN):N2()})}function ph(){if(Pn===0){var e=hi;e===0&&(e=fc,fc<<=1,(fc&261888)===0&&(fc=256)),Pn=e}return Pn}function E1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ic(e)}function gN(e,t,a,o,i){if(t==="submit"&&a&&a.stateNode===i){var l=E1((i[Gr]||null).action),r=o.submitter;r&&(t=(t=r[Gr]||null)?E1(t.formAction):r.getAttribute("formAction"),t!==null&&(l=t,r=null));var s=new Ru("action","action",null,o,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Pn!==0){var p=new FormData(i,r);jx(a,{pending:!0,data:p,method:i.method,action:l},null,p)}}else typeof l=="function"&&(s.preventDefault(),p=new FormData(i,r),jx(a,{pending:!0,data:p,method:i.method,action:l},l,p))},currentTarget:i}]})}}for(Ac=0;Ac<Ax.length;Ac++)Rc=Ax[Ac],I1=Rc.toLowerCase(),M1=Rc[0].toUpperCase()+Rc.slice(1),ja(I1,"on"+M1);var Rc,I1,M1,Ac;ja(Fw,"onAnimationEnd");ja(Vw,"onAnimationIteration");ja(Zw,"onAnimationStart");ja("dblclick","onDoubleClick");ja("focusin","onFocus");ja("focusout","onBlur");ja(zR,"onTransitionRun");ja(AR,"onTransitionStart");ja(RR,"onTransitionCancel");ja(Kw,"onTransitionEnd");As("onMouseEnter",["mouseout","mouseover"]);As("onMouseLeave",["mouseout","mouseover"]);As("onPointerEnter",["pointerout","pointerover"]);As("onPointerLeave",["pointerout","pointerover"]);$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$i("onBeforeInput",["compositionend","keypress","textInput","paste"]);$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rp));function E2(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],i=o.event;o=o.listeners;e:{var l=void 0;if(t)for(var r=o.length-1;0<=r;r--){var s=o[r],p=s.instance,n=s.currentTarget;if(s=s.listener,p!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=n;try{l(i)}catch(d){au(d)}i.currentTarget=null,l=p}else for(r=0;r<o.length;r++){if(s=o[r],p=s.instance,n=s.currentTarget,s=s.listener,p!==l&&i.isPropagationStopped())break e;l=s,i.currentTarget=n;try{l(i)}catch(d){au(d)}i.currentTarget=null,l=p}}}}function Ne(e,t){var a=t[R0];a===void 0&&(a=t[R0]=new Set);var o=e+"__bubble";a.has(o)||(I2(t,e,2,!1),a.add(o))}function nx(e,t,a){var o=0;t&&(o|=4),I2(a,e,o,t)}var Nc="_reactListening"+Math.random().toString(36).slice(2);function ch(e){if(!e[Nc]){e[Nc]=!0,Pw.forEach(function(a){a!=="selectionchange"&&(hN.has(a)||nx(a,!1,e),nx(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nc]||(t[Nc]=!0,nx("selectionchange",!1,t))}}function I2(e,t,a,o){switch(o$(t)){case 2:var i=d3;break;case 8:i=p3;break;default:i=yh}a=i.bind(null,t,a,e),i=void 0,!Sx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),o?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function ix(e,t,a,o,i){var l=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var r=o.tag;if(r===3||r===4){var s=o.stateNode.containerInfo;if(s===i)break;if(r===4)for(r=o.return;r!==null;){var p=r.tag;if((p===3||p===4)&&r.stateNode.containerInfo===i)return;r=r.return}for(;s!==null;){if(r=si(s),r===null)return;if(p=r.tag,p===5||p===6||p===26||p===27){o=l=r;continue e}s=s.parentNode}}o=o.return}Ew(function(){var n=l,d=zg(a),c=[];e:{var u=Gw.get(e);if(u!==void 0){var f=Ru,m=e;switch(e){case"keypress":if(_c(a)===0)break e;case"keydown":case"keyup":f=aR;break;case"focusin":m="focus",f=Um;break;case"focusout":m="blur",f=Um;break;case"beforeblur":case"afterblur":f=Um;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=O0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=V5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=lR;break;case Fw:case Vw:case Zw:f=G5;break;case Kw:f=pR;break;case"scroll":case"scrollend":f=L5;break;case"wheel":f=uR;break;case"copy":case"cut":case"paste":f=X5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=j0;break;case"submit":f=iR;break;case"toggle":case"beforetoggle":f=mR}var h=(t&4)!==0,b=!h&&(e==="scroll"||e==="scrollend"),x=h?u!==null?u+"Capture":null:u;h=[];for(var g=n,y;g!==null;){var v=g;if(y=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||y===null||x===null||(v=Gd(g,x),v!=null&&h.push(ap(g,v,y))),b)break;g=g.return}0<h.length&&(u=new f(u,m,null,a,d),c.push({event:u,listeners:h}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",u=e==="mouseout"||e==="pointerout",f&&a!==$x&&(m=a.relatedTarget||a.fromElement)&&(si(m)||m[Bs]))break e;(u||f)&&(m=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,u?(f=a.relatedTarget||a.toElement,u=n,f=f?si(f):null,f!==null&&(b=dp(f),h=f.tag,f!==b||h!==5&&h!==27&&h!==6)&&(f=null)):(u=null,f=n),u!==f&&(h=O0,v="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(h=j0,v="onPointerLeave",x="onPointerEnter",g="pointer"),b=u==null?m:Dd(u),y=f==null?m:Dd(f),m=new h(v,g+"leave",u,a,d),m.target=b,m.relatedTarget=y,v=null,si(d)===n&&(h=new h(x,g+"enter",f,a,d),h.target=y,h.relatedTarget=b,v=h),b=v,h=u&&f?cx(u,f,yN):null,u!==null&&_1(c,m,u,h,!1),f!==null&&b!==null&&_1(c,b,f,h,!0)))}e:{if(u=n?Dd(n):window,f=u.nodeName&&u.nodeName.toLowerCase(),f==="select"||f==="input"&&u.type==="file")var S=L0;else if(U0(u))if(jw)S=SR;else{S=kR;var R=wR}else f=u.nodeName,!f||f.toLowerCase()!=="input"||u.type!=="checkbox"&&u.type!=="radio"?n&&Cg(n.elementType)&&(S=L0):S=$R;if(S&&(S=S(e,n))){qw(c,S,a,d);break e}R&&R(e,u,n)}switch(R=n?Dd(n):window,e){case"focusin":(U0(R)||R.contentEditable==="true")&&(ps=R,Cx=n,_d=null);break;case"focusout":_d=Cx=ps=null;break;case"mousedown":zx=!0;break;case"contextmenu":case"mouseup":case"dragend":zx=!1,K0(c,a,d);break;case"selectionchange":if(CR)break;case"keydown":case"keyup":K0(c,a,d)}var w;if(Ng)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else ds?_w(e,a)&&($="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&($="onCompositionStart");$&&(Mw&&a.locale!=="ko"&&(ds||$!=="onCompositionStart"?$==="onCompositionEnd"&&ds&&(w=Iw()):(wn=d,Ag="value"in wn?wn.value:wn.textContent,ds=!0)),R=Su(n,$),0<R.length&&($=new q0($,e,null,a,d),c.push({event:$,listeners:R}),w?$.data=w:(w=Ow(a),w!==null&&($.data=w)))),(w=gR?hR(e,a):yR(e,a))&&($=Su(n,"onBeforeInput"),0<$.length&&(R=new q0("onBeforeInput","beforeinput",null,a,d),c.push({event:R,listeners:$}),R.data=w)),gN(c,e,n,a,d)}E2(c,t)})}function ap(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Su(e,t){for(var a=t+"Capture",o=[];e!==null;){var i=e,l=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||l===null||(i=Gd(e,a),i!=null&&o.unshift(ap(e,i,l)),i=Gd(e,t),i!=null&&o.push(ap(e,i,l))),e.tag===3)return o;e=e.return}return[]}function yN(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _1(e,t,a,o,i){for(var l=t._reactName,r=[];a!==null&&a!==o;){var s=a,p=s.alternate,n=s.stateNode;if(s=s.tag,p!==null&&p===o)break;s!==5&&s!==26&&s!==27||n===null||(p=n,i?(n=Gd(a,l),n!=null&&r.unshift(ap(a,n,p))):i||(n=Gd(a,l),n!=null&&r.push(ap(a,n,p)))),a=a.return}r.length!==0&&e.push({event:t,listeners:r})}var bN=/\r\n?/g,vN=/\u0000|\uFFFD/g;function O1(e){return(typeof e=="string"?e:""+e).replace(bN,`
|
|
9
|
+
`).replace(vN,"")}function M2(e,t){return t=O1(t),O1(e)===t}function Ye(e,t,a,o,i,l){switch(a){case"children":if(typeof o=="string")t==="body"||t==="textarea"&&o===""||Rs(e,o);else if(typeof o=="number"||typeof o=="bigint")t!=="body"&&Rs(e,""+o);else return;break;case"className":gc(e,"class",o);break;case"tabIndex":gc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":gc(e,a,o);break;case"style":Tw(e,o,l);return;case"data":if(t!=="object"){gc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Ic(o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(a==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Ic(o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=mo);return;case"onScroll":o!=null&&Ne("scroll",e);return;case"onScrollEnd":o!=null&&Ne("scrollend",e);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(H(61));if(a=o.__html,a!=null){if(i.children!=null)throw Error(H(60));l?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Ic(o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Ec(e,"popover",o);break;case"xlinkActuate":Do(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Do(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Do(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Do(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Do(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Do(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Do(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Do(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Do(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ec(e,"is",o);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=H5.get(a)||a,Ec(e,a,o);else return}He=!0}function pg(e,t,a,o,i,l){switch(a){case"style":Tw(e,o,l);return;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(H(61));if(a=o.__html,a!=null){if(i.children!=null)throw Error(H(60));l?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof o=="string")Rs(e,o);else if(typeof o=="number"||typeof o=="bigint")Rs(e,""+o);else return;break;case"onScroll":o!=null&&Ne("scroll",e);return;case"onScrollEnd":o!=null&&Ne("scrollend",e);return;case"onClick":o!=null&&(e.onclick=mo);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Cw.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),l=a.slice(2,i?a.length-7:void 0),t=e[Gr]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(l,t,i),typeof o=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(l,o,i);break e}He=!0,a in e?e[a]=o:o===!0?e.setAttribute(a,""):Ec(e,a,o)}return}He=!0}function ur(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var o=!1,i=!1,l;for(l in a)if(a.hasOwnProperty(l)){var r=a[l];if(r!=null)switch(l){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Ye(e,t,l,r,a,null)}}i&&Ye(e,t,"srcSet",a.srcSet,a,null),o&&Ye(e,t,"src",a.src,a,null);return;case"input":Ne("invalid",e);var s=l=r=i=null,p=null,n=null;for(o in a)if(a.hasOwnProperty(o)){var d=a[o];if(d!=null)switch(o){case"name":i=d;break;case"type":r=d;break;case"checked":p=d;break;case"defaultChecked":n=d;break;case"value":l=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:Ye(e,t,o,d,a,null)}}Rw(e,l,s,p,n,r,i,!1);return;case"select":Ne("invalid",e),o=r=l=null;for(i in a)if(a.hasOwnProperty(i)&&(s=a[i],s!=null))switch(i){case"value":l=s;break;case"defaultValue":r=s;break;case"multiple":o=s;default:Ye(e,t,i,s,a,null)}t=l,a=r,e.multiple=!!o,t!=null?ys(e,!!o,t,!1):a!=null&&ys(e,!!o,a,!0);return;case"textarea":Ne("invalid",e),l=i=o=null;for(r in a)if(a.hasOwnProperty(r)&&(s=a[r],s!=null))switch(r){case"value":o=s;break;case"defaultValue":i=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(H(91));break;default:Ye(e,t,r,s,a,null)}Dw(e,o,i,l);return;case"option":for(p in a)a.hasOwnProperty(p)&&(o=a[p],o!=null)&&(p==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Ye(e,t,p,o,a,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(o=0;o<rp.length;o++)Ne(rp[o],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(n in a)if(a.hasOwnProperty(n)&&(o=a[n],o!=null))switch(n){case"children":case"dangerouslySetInnerHTML":throw Error(H(137,t));default:Ye(e,t,n,o,a,null)}return;default:if(Cg(t)){for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!==void 0&&pg(e,t,d,o,a,void 0));return}}for(s in a)a.hasOwnProperty(s)&&(o=a[s],o!=null&&Ye(e,t,s,o,a,null))}var wN={};function kN(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,l=null,r=null,s=null,p=null,n=null,d=null;for(f in a){var c=a[f];if(a.hasOwnProperty(f)&&c!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":p=c;default:o.hasOwnProperty(f)||Ye(e,t,f,null,o,c)}}for(var u in o){var f=o[u];if(c=a[u],o.hasOwnProperty(u)&&(f!=null||c!=null))switch(u){case"type":f!==c&&(He=!0),l=f;break;case"name":f!==c&&(He=!0),i=f;break;case"checked":f!==c&&(He=!0),n=f;break;case"defaultChecked":f!==c&&(He=!0),d=f;break;case"value":f!==c&&(He=!0),r=f;break;case"defaultValue":f!==c&&(He=!0),s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(H(137,t));break;default:f!==c&&Ye(e,t,u,f,o,c)}}kx(e,r,s,p,n,d,l,i);return;case"select":f=r=s=u=null;for(l in a)if(p=a[l],a.hasOwnProperty(l)&&p!=null)switch(l){case"value":break;case"multiple":f=p;default:o.hasOwnProperty(l)||Ye(e,t,l,null,o,p)}for(i in o)if(l=o[i],p=a[i],o.hasOwnProperty(i)&&(l!=null||p!=null))switch(i){case"value":l!==p&&(He=!0),u=l;break;case"defaultValue":l!==p&&(He=!0),s=l;break;case"multiple":l!==p&&(He=!0),r=l;default:l!==p&&Ye(e,t,i,l,o,p)}t=s,a=r,o=f,u!=null?ys(e,!!a,u,!1):!!o!=!!a&&(t!=null?ys(e,!!a,t,!0):ys(e,!!a,a?[]:"",!1));return;case"textarea":f=u=null;for(s in a)if(i=a[s],a.hasOwnProperty(s)&&i!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Ye(e,t,s,null,o,i)}for(r in o)if(i=o[r],l=a[r],o.hasOwnProperty(r)&&(i!=null||l!=null))switch(r){case"value":i!==l&&(He=!0),u=i;break;case"defaultValue":i!==l&&(He=!0),f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(H(91));break;default:i!==l&&Ye(e,t,r,i,o,l)}Nw(e,u,f);return;case"option":for(var m in a)u=a[m],a.hasOwnProperty(m)&&u!=null&&!o.hasOwnProperty(m)&&(m==="selected"?e.selected=!1:Ye(e,t,m,null,o,u));for(p in o)u=o[p],f=a[p],o.hasOwnProperty(p)&&u!==f&&(u!=null||f!=null)&&(p==="selected"?(u!==f&&(He=!0),e.selected=u&&typeof u!="function"&&typeof u!="symbol"):Ye(e,t,p,u,o,f));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var h in a)u=a[h],a.hasOwnProperty(h)&&u!=null&&!o.hasOwnProperty(h)&&Ye(e,t,h,null,o,u);for(n in o)if(u=o[n],f=a[n],o.hasOwnProperty(n)&&u!==f&&(u!=null||f!=null))switch(n){case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(H(137,t));break;default:Ye(e,t,n,u,o,f)}return;default:if(Cg(t)){for(var b in a)u=a[b],a.hasOwnProperty(b)&&u!==void 0&&!o.hasOwnProperty(b)&&pg(e,t,b,void 0,o,u);for(d in o)u=o[d],f=a[d],!o.hasOwnProperty(d)||u===f||u===void 0&&f===void 0||pg(e,t,d,u,o,f);return}}for(var x in a)u=a[x],a.hasOwnProperty(x)&&u!=null&&!o.hasOwnProperty(x)&&Ye(e,t,x,null,o,u);for(c in o)u=o[c],f=a[c],!o.hasOwnProperty(c)||u===f||u==null&&f==null||Ye(e,t,c,u,o,f)}function q1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $N(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var i=a[o],l=i.transferSize,r=i.initiatorType,s=i.duration;if(l&&s&&q1(r)){for(r=0,s=i.responseEnd,o+=1;o<a.length;o++){var p=a[o],n=p.startTime;if(n>s)break;var d=p.transferSize,c=p.initiatorType;d&&q1(c)&&(p=p.responseEnd,r+=d*(p<s?1:(s-n)/(p-n)))}if(--o,t+=8*(l+r)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cg=null,ug=null;function op(e){return e.nodeType===9?e:e.ownerDocument}function j1(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function O2(e,t,a,o){return a=op(a).createElement(e),a[lr]=o,a[Gr]=t,ur(a,e,t),er(a),a}function fg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sx=null;function SN(){var e=window.event;return e&&e.type==="popstate"?e===sx?!1:(sx=e,!0):(sx=null,!1)}var uh=typeof setTimeout=="function"?setTimeout:void 0,PN=typeof clearTimeout=="function"?clearTimeout:void 0,B1=typeof Promise=="function"?Promise:void 0,H1=typeof requestAnimationFrame=="function"?requestAnimationFrame:uh,CN=typeof queueMicrotask=="function"?queueMicrotask:typeof B1<"u"?function(e){return B1.resolve(null).then(e).catch(zN)}:uh;function zN(e){setTimeout(function(){throw e})}function Un(e){return e==="head"}function U1(e,t){var a=t,o=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(i),js(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")dx(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,dx(a);for(var l=a.firstChild;l;){var r=l.nextSibling,s=l.nodeName;l[fp]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=r}}else a==="body"&&dx(e.ownerDocument.body);a=i}while(a);js(t)}function L1(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function q2(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var o=1;else for(var i=o=0;i<t.length;i++){var l=t[i];0<l.width&&0<l.height&&o++}o===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function j2(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function B2(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function mg(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return B2(t,a,e)}function AN(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return B2(t,a,e)}function RN(e){return e.documentElement.clientHeight}function NN(e){this.addEventListener("load",e),this.addEventListener("error",e)}function DN(e,t,a,o,i,l,r,s,p){var n=t.nodeType===9?t:t.ownerDocument;try{var d=n.startViewTransition({update:function(){var u=n.defaultView,f=u.navigation&&u.navigation.transition,m=n.fonts.status;o();var h=[];if(m==="loaded"&&(RN(n),n.fonts.status==="loading"&&h.push(n.fonts.ready)),m=h.length,e!==null)for(var b=e.suspenseyImages,x=0,g=0;g<b.length;g++){var y=b[g];if(!y.complete){var v=y.getBoundingClientRect();if(0<v.bottom&&0<v.right&&v.top<u.innerHeight&&v.left<u.innerWidth){if(x+=J2(y),x>Yc){h.length=m;break}y=new Promise(NN.bind(y)),h.push(y)}}}if(0<h.length)return u=Promise.race([Promise.all(h),new Promise(function(S){return setTimeout(S,500)})]).then(i,i),(f?Promise.allSettled([f.finished,u]):u).then(l,l);if(i(),f)return f.finished.then(l,l);l()},types:a});n.__reactViewTransition=d;var c=[];return d.ready.then(function(){for(var u=n.documentElement.getAnimations({subtree:!0}),f=0;f<u.length;f++){var m=u[f],h=m.effect,b=h.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){c.push(m),m=h.getKeyframes();for(var x=b=void 0,g=!0,y=0;y<m.length;y++){var v=m[y],S=v.width;if(b===void 0)b=S;else if(b!==S){g=!1;break}if(S=v.height,x===void 0)x=S;else if(x!==S){g=!1;break}delete v.width,delete v.height,v.transform==="none"&&delete v.transform}g&&b!==void 0&&x!==void 0&&(h.setKeyframes(m),g=getComputedStyle(h.target,h.pseudoElement),g.width!==b||g.height!==x)&&(g=m[0],g.width=b,g.height=x,g=m[m.length-1],g.width=b,g.height=x,h.setKeyframes(m))}}r()},function(u){n.__reactViewTransition===d&&(n.__reactViewTransition=null);try{typeof u=="object"&&u!==null&&u.name==="InvalidStateError"&&(u.message==="View transition was skipped because document visibility state is hidden."||u.message==="Skipping view transition because document visibility state has become hidden."||u.message==="Skipping view transition because viewport size changed."||u.message==="Transition was aborted because of invalid state")&&(u=null),u!==null&&p(u)}finally{o(),i(),r()}}),d.finished.finally(function(){for(var u=0;u<c.length;u++)c[u].cancel();n.__reactViewTransition===d&&(n.__reactViewTransition=null),s()}),d}catch{return o(),i(),r(),null}}function li(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}li.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:nt({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};li.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),o=[],i=0;i<a.length;i++){var l=a[i].effect;l!==null&&l.target===e&&l.pseudoElement===t&&o.push(a[i])}return o};li.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function H2(e){return{name:e,group:new li("group",e),imagePair:new li("image-pair",e),old:new li("old",e),new:new li("new",e)}}function ca(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}ca.prototype.addEventListener=function(e,t,a){var o=null,i=null;if(!(a!=null&&typeof a!="boolean"&&(o=a.signal||null,o!==null&&o.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var l=this._eventListeners;if(U2(l,e,t,a)===-1){var r=this,s=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(s=function(p){r.removeEventListener(e,t,a),typeof t=="function"?t.call(this,p):t.handleEvent(p)}),o!==null&&(i=r.removeEventListener.bind(r,e,t,a),o.addEventListener("abort",i,{once:!0}),i=o.removeEventListener.bind(o,"abort",i)),o=Ms(a),l.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:s,cleanup:i}),Kr(this._fragmentFiber.child,!1,TN,e,s,o)}this._eventListeners=l}};function TN(e,t,a,o){return Zt(e).addEventListener(t,a,o),!1}ca.prototype.removeEventListener=function(e,t,a){var o=this._eventListeners;if(o!==null&&(t=U2(o,e,t,a),t!==-1)){var i=o[t];a=i.attachedListener;var l=i.cleanup;i=Ms(i.optionsOrUseCapture),Kr(this._fragmentFiber.child,!1,EN,e,a,i),o.splice(t,1),l!==null&&l()}};function EN(e,t,a,o){return Zt(e).removeEventListener(t,a,o),!1}function Ms(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function F1(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function U2(e,t,a,o){if(e.length===0)return-1;o=F1(o);for(var i=0;i<e.length;i++){var l=e[i];if(l.type===t&&l.listener===a&&F1(l.optionsOrUseCapture)===o)return i}return-1}ca.prototype.dispatchEvent=function(e){var t=ki(this._fragmentFiber);if(t===null)return!0;t=Zt(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var o=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var i=0;i<a.length;i++){var l=a[i];o.addEventListener(l.type,l.attachedListener,Ms(l.optionsOrUseCapture))}if(t.appendChild(o),e=o.dispatchEvent(e),a)for(i=0;i<a.length;i++)l=a[i],o.removeEventListener(l.type,l.attachedListener,Ms(l.optionsOrUseCapture));return t.removeChild(o),e}return t.dispatchEvent(e)};ca.prototype.focus=function(e){Kr(this._fragmentFiber.child,!0,L2,e,void 0,void 0)};function L2(e,t){return e.tag===6?!1:(e=Zt(e),VN(e,t))}ca.prototype.focusLast=function(e){var t=[];Kr(this._fragmentFiber.child,!0,fh,t,void 0,void 0);for(var a=t.length-1;0<=a&&!L2(t[a],e);a--);};function fh(e,t){return t.push(e),!1}ca.prototype.blur=function(){var e=ki(this._fragmentFiber);e!==null&&(e=Zt(e),e=op(e).activeElement,e!==null&&Kr(this._fragmentFiber.child,!1,IN,e,void 0,void 0))};function IN(e,t){return e.tag===6?!1:(e=Zt(e),e===t||e.contains(t)?(t.blur(),!0):!1)}ca.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Kr(this._fragmentFiber.child,!1,MN,e,void 0,void 0)};function MN(e,t){return e.tag===6||(e=Zt(e),t.observe(e)),!1}ca.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Kr(this._fragmentFiber.child,!1,_N,e,void 0,void 0);for(var a=t=0;a<Oa.length;a++){var o=Oa[a];o.fragmentInstance===this&&o.observer===e?e.unobserve(o.instance):Oa[t++]=o}Oa.length=t}};function _N(e,t){return e.tag===6||(e=Zt(e),t.unobserve(e)),!1}var Oa=[],lx=!1;function ON(e,t,a){Oa.push({fragmentInstance:e,observer:t,instance:a}),lx||(lx=!0,ZN(function(){lx=!1;var o=Oa;Oa=[];for(var i=0;i<o.length;i++){var l=o[i];l.observer.unobserve(l.instance)}}))}ca.prototype.getClientRects=function(){var e=[];return Kr(this._fragmentFiber.child,!1,qN,e,void 0,void 0),e};function qN(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=Zt(e),t.push.apply(t,e.getClientRects());return!1}ca.prototype.getRootNode=function(e){var t=ki(this._fragmentFiber);return t===null?this:Zt(t).getRootNode(e)};ca.prototype.compareDocumentPosition=function(e){var t=ki(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];Kr(this._fragmentFiber.child,!1,fh,a,void 0,void 0);var o=Zt(t);if(a.length===0){if(a=o,$0(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var i=o=a.compareDocumentPosition(e);return a===e?i=Node.DOCUMENT_POSITION_CONTAINS:o&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=cw(t)[1],a===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=Zt(a).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Zt(a[0]),i=Zt(a[a.length-1]);var l=$0(this._fragmentFiber)?t.parentElement:o;if(l==null)return Node.DOCUMENT_POSITION_DISCONNECTED;o=l.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,l=l.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var r=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),p=r&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=o&&l&&r&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=o&&t===e||l&&i===e||p||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!o&&t===e||!l&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:r,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||jN(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function jN(e,t,a,o,i){var l=si(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!l)e:{for(;l!==null;){if(l.tag===7&&(l===t||l.alternate===t)){a=!0;break e}l=l.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(l===null)return l=i.ownerDocument,i===l||i===l.documentElement||i===l.body;e:{for(l=t,t=ki(t);l!==null;){if(!(l.tag!==5&&l.tag!==3&&l.tag!==27||l!==t&&l.alternate!==t)){l=!0;break e}l=l.return}l=!1}return l}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!l)&&!(t=l===a)&&(t=cx(a,l,S0),t===null?t=!1:(Kr(t,!0,x5,l,a),l=ns,ns=null,t=l!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!l)&&!(t=l===o)&&(t=cx(o,l,S0),t===null?t=!1:(Kr(t,!0,g5,l,o),l=ns,px=ns=null,t=l!==null)),t):!1}function V1(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}ca.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(H(566));var t=[];Kr(this._fragmentFiber.child,!1,fh,t,void 0,void 0);var a=e!==!1;if(t.length===0){var o=cw(this._fragmentFiber);if(o=a?o[1]||o[0]||ki(this._fragmentFiber):o[0]||o[1],o===null)return;if(o.tag===6){e=Zt(o),V1(e,a);return}if(o=Zt(o),o.nodeType!==9){if(o.nodeType===11){a="host"in o?o.host:null,a!==null&&a.scrollIntoView(e);return}o.scrollIntoView(e)}}for(o=a?t.length-1:0;o!==(a?-1:t.length);){var i=t[o];i.tag===6?(i=Zt(i),V1(i,a)):Zt(i).scrollIntoView(e),o+=a?-1:1}};function BN(e,t){return e=Zt(e),F2(e,t),!1}function F2(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function V2(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var i=a[o];e.addEventListener(i.type,i.attachedListener,Ms(i.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(l){for(var r=0,s=0;s<Oa.length;s++){var p=Oa[s];(p.fragmentInstance!==t||p.observer!==l||p.instance!==e)&&(Oa[r++]=p)}Oa.length=r,l.observe(e)}),F2(e,t))}function HN(e,t){var a=t._eventListeners;if(a!==null)for(var o=0;o<a.length;o++){var i=a[o];e.removeEventListener(i.type,i.attachedListener,Ms(i.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(l){typeof l.rootMargin=="string"?ON(t,l,e):l.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function xg(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":xg(a),Au(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function UN(e,t,a,o){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[fp])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=$a(e.nextSibling),e===null)break}return null}function LN(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=$a(e.nextSibling),e===null))return null;return e}function Z2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$a(e.nextSibling),e===null))return null;return e}function gg(e){return e.data==="$?"||e.data==="$~"}function mh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function FN(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function $a(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hg=null;function Z1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return $a(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function K1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function VN(e,t){function a(){o=!0}if(e.ownerDocument.activeElement===e)return!0;var o=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return o}function ZN(e){H1(function(){H1(function(t){return e(t)})})}function K2(e,t,a){switch(t=op(a),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function G2(e,t,a){for(var o in a){var i=a[o];a.hasOwnProperty(o)&&i!=null&&Ye(e,t,o,null,wN,i)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===mo&&(e.onclick=null),Au(e)}function dx(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Au(e)}var Sa=new Map,G1=new Set;function np(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Vo=Fe.d;Fe.d={f:KN,r:GN,D:YN,C:XN,L:QN,m:JN,X:e3,S:WN,M:t3};function KN(){var e=Vo.f(),t=Uu();return e||t}function GN(e){var t=Hs(e);t!==null&&t.tag===5&&t.type==="form"?Tk(t):Vo.r(e)}var Vs=typeof document>"u"?null:document;function Y2(e,t,a){var o=Vs;if(o&&typeof t=="string"&&t){var i=va(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),G1.has(i)||(G1.add(i),e={rel:e,crossOrigin:a,href:t},o.querySelector(i)===null&&(t=o.createElement("link"),ur(t,"link",e),er(t),o.head.appendChild(t)))}}function YN(e){Vo.D(e),Y2("dns-prefetch",e,null)}function XN(e,t){Vo.C(e,t),Y2("preconnect",e,t)}function QN(e,t,a){Vo.L(e,t,a);var o=Vs;if(o&&e&&t){var i='link[rel="preload"][as="'+va(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+va(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+va(a.imageSizes)+'"]')):i+='[href="'+va(e)+'"]';var l=i;switch(t){case"style":l=_s(e);break;case"script":l=Zs(e)}if(!(Sa.has(l)||(e=nt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Sa.set(l,e),o.querySelector(i)!==null||t==="style"&&o.querySelector(bp(l))||t==="script"&&o.querySelector(vp(l))))){var r=o.createElement("link");ur(r,"link",e),t==="style"&&(r[ru]=!0,r.onload=r.onerror=function(){Sw(r)}),er(r),o.head.appendChild(r)}}}function JN(e,t){Vo.m(e,t);var a=Vs;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+va(o)+'"][href="'+va(e)+'"]',l=i;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Zs(e)}if(!Sa.has(l)&&(e=nt({rel:"modulepreload",href:e},t),Sa.set(l,e),a.querySelector(i)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vp(l)))return}o=a.createElement("link"),ur(o,"link",e),er(o),a.head.appendChild(o)}}}function WN(e,t,a){Vo.S(e,t,a);var o=Vs;if(o&&e){var i=hs(o).hoistableStyles,l=_s(e);t=t||"default";var r=i.get(l);if(!r){var s={loading:0,preload:null};if(r=o.querySelector(bp(l)))s.loading=5;else{e=nt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Sa.get(l))&&xh(e,a);var p=r=o.createElement("link");er(p),ur(p,"link",e),p._p=new Promise(function(n,d){p.onload=n,p.onerror=d}),p.addEventListener("load",function(){s.loading|=1}),p.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Kc(r,t,o)}r={type:"stylesheet",instance:r,count:1,state:s},i.set(l,r)}}}function e3(e,t){Vo.X(e,t);var a=Vs;if(a&&e){var o=hs(a).hoistableScripts,i=Zs(e),l=o.get(i);l||(l=a.querySelector(vp(i)),l||(e=nt({src:e,async:!0},t),(t=Sa.get(i))&&gh(e,t),l=a.createElement("script"),er(l),ur(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(i,l))}}function t3(e,t){Vo.M(e,t);var a=Vs;if(a&&e){var o=hs(a).hoistableScripts,i=Zs(e),l=o.get(i);l||(l=a.querySelector(vp(i)),l||(e=nt({src:e,async:!0,type:"module"},t),(t=Sa.get(i))&&gh(e,t),l=a.createElement("script"),er(l),ur(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(i,l))}}function Y1(e,t,a,o){var i=(i=Cn.current)?np(i):null;if(!i)throw Error(H(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=_s(a.href),t=hs(i).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=_s(a.href);var l=hs(i).hoistableStyles,r=l.get(e);if(r||(i=i.ownerDocument||i,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,r),(l=i.querySelector(bp(e)))?l._p||(r.instance=l,r.state.loading=5):(l=Sa.get(e),l||(l={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Sa.set(e,l)),r3(i,e,l,r.state))),t&&o===null)throw Error(H(528,""));return r}if(t&&o!==null)throw Error(H(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Zs(a),t=hs(i).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(H(444,e))}}function _s(e){return'href="'+va(e)+'"'}function bp(e){return'link[rel="stylesheet"]['+e+"]"}function X2(e){return nt({},e,{"data-precedence":e.precedence,precedence:null})}function r3(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[ru]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[ru]=!0,t.onload=t.onerror=Sw.bind(null,t),ur(t,"link",a),er(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Zs(e){return'[src="'+va(e)+'"]'}function vp(e){return"script[async]"+e}function X1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+va(a.href)+'"]');if(o)return t.instance=o,er(o),o;var i=nt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),er(o),ur(o,"style",i),Kc(o,a.precedence,e),t.instance=o;case"stylesheet":i=_s(a.href);var l=e.querySelector(bp(i));if(l)return t.state.loading|=4,t.instance=l,er(l),l;o=X2(a),(i=Sa.get(i))&&xh(o,i),l=(e.ownerDocument||e).createElement("link"),er(l);var r=l;return r._p=new Promise(function(s,p){r.onload=s,r.onerror=p}),ur(l,"link",o),t.state.loading|=4,Kc(l,a.precedence,e),t.instance=l;case"script":return l=Zs(a.src),(i=e.querySelector(vp(l)))?(t.instance=i,er(i),i):(o=a,(i=Sa.get(l))&&(o=nt({},a),gh(o,i)),e=e.ownerDocument||e,i=e.createElement("script"),er(i),ur(i,"link",o),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Kc(o,a.precedence,e));return t.instance}function Kc(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=o.length?o[o.length-1]:null,l=i,r=0;r<o.length;r++){var s=o[r];if(s.dataset.precedence===t)l=s;else if(l!==i)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function xh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gc=null;function Q1(e,t,a){if(Gc===null){var o=new Map,i=Gc=new Map;i.set(a,o)}else i=Gc,o=i.get(a),o||(o=new Map,i.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var l=a[i];if(!(l[fp]||l[lr]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var r=l.getAttribute(t)||"";r=e+r;var s=o.get(r);s?s.push(l):o.set(r,[l])}}return o}function yg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a3(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function J1(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Q2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function J2(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function W1(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=J2(t),e.suspenseyImages.push(t)),e=i3.bind(e),t.decode().then(e,e))}function o3(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=_s(o.href),l=t.querySelector(bp(i));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ip.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=l,er(l);return}l=t.ownerDocument||t,o=X2(o),(i=Sa.get(i))&&xh(o,i),l=l.createElement("link"),er(l);var r=l;r._p=new Promise(function(s,p){r.onload=s,r.onerror=p}),ur(l,"link",o),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ip.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Yc=0;function n3(e,t){return e.stylesheets&&e.count===0&&Xc(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Xc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4+t);0<e.imgBytes&&Yc===0&&(Yc=62500*$N());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xc(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>Yc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(i)}}:null}function W2(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Xc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ip(){this.count--,W2(this)}function i3(){this.imgCount--,W2(this)}var Pu=null;function Xc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pu=new Map,t.forEach(s3,e),Pu=null,ip.call(e))}function s3(e,t){if(!(t.state.loading&4)){var a=Pu.get(e);if(a)var o=a.get(null);else{a=new Map,Pu.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<i.length;l++){var r=i[l];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(a.set(r.dataset.precedence,r),o=r)}o&&a.set(null,o)}i=t.instance,r=i.getAttribute("data-precedence"),l=a.get(r)||o,l===o&&a.set(null,i),a.set(r,i),this.count++,o=ip.bind(this),i.addEventListener("load",o),i.addEventListener("error",o),l?l.parentNode.insertBefore(i,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Os={$$typeof:fo,Provider:null,Consumer:null,_currentValue:di,_currentValue2:di,_threadCount:0};function l3(e,t,a,o,i,l,r,s,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Om(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Om(0),this.hiddenUpdates=Om(null),this.identifierPrefix=o,this.onUncaughtError=i,this.onCaughtError=l,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.transitionTypes=null,this.incompleteTransitions=new Map}function e$(e,t,a,o,i,l,r,s,p,n,d,c){return e=new l3(e,t,a,r,p,n,d,c,s),t=1,l===!0&&(t|=24),l=Vr(3,null,null,t),e.current=l,l.stateNode=e,t=_g(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:o,isDehydrated:a,cache:t},jg(l),e}function t$(e){return e?(e=fs,e):fs}function r$(e,t,a,o,i,l){i=t$(i),o.context===null?o.context=i:o.pendingContext=i,o=An(t),o.payload={element:a},l=l===void 0?null:l,l!==null&&(o.callback=l),a=Rn(e,o,t),a!==null&&(Zr(a,e,t),qd(a,e,t))}function ew(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hh(e,t){ew(e,t),(e=e.alternate)&&ew(e,t)}function a$(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Zr(t,e,67108864),hh(e,67108864)}}function tw(e){if(e.tag===13||e.tag===31){var t=da();t=Sg(t);var a=Pi(e,t);a!==null&&Zr(a,e,t),hh(e,t)}}var qs=!0;function d3(e,t,a,o){var i=ve.T;ve.T=null;var l=Fe.p;try{Fe.p=2,yh(e,t,a,o)}finally{Fe.p=l,ve.T=i}}function p3(e,t,a,o){var i=ve.T;ve.T=null;var l=Fe.p;try{Fe.p=8,yh(e,t,a,o)}finally{Fe.p=l,ve.T=i}}function yh(e,t,a,o){if(qs){var i=bg(o);if(i===null)ix(e,t,o,Cu,a),rw(e,o);else if(u3(i,e,t,a,o))o.stopPropagation();else if(rw(e,o),t&4&&-1<c3.indexOf(e)){for(;i!==null;){var l=Hs(i);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=oi(l.pendingLanes);if(r!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;r;){var p=1<<31-la(r);s.entanglements[1]|=p,r&=~p}wo(l),(Le&6)===0&&(vu=ia()+500,yp(0,!1))}}break;case 31:case 13:s=Pi(l,2),s!==null&&Zr(s,l,2),Uu(),hh(l,2)}if(l=bg(o),l===null&&ix(e,t,o,Cu,a),l===i)break;i=l}i!==null&&o.stopPropagation()}else ix(e,t,o,null,a)}}function bg(e){return e=zg(e),bh(e)}var Cu=null;function bh(e){if(Cu=null,e=si(e),e!==null){var t=dp(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=lw(t),e!==null)return e;e=null}else if(a===31){if(e=dw(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cu=e,null}function o$(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(P5()){case xw:return 2;case gw:return 8;case tu:case C5:return 32;case hw:return 268435456;default:return 32}default:return 32}}var vg=!1,En=null,In=null,Mn=null,sp=new Map,lp=new Map,bn=[],c3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rw(e,t){switch(e){case"focusin":case"focusout":En=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":sp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lp.delete(t.pointerId)}}function zd(e,t,a,o,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Hs(t),t!==null&&a$(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function u3(e,t,a,o,i){switch(t){case"focusin":return En=zd(En,e,t,a,o,i),!0;case"dragenter":return In=zd(In,e,t,a,o,i),!0;case"mouseover":return Mn=zd(Mn,e,t,a,o,i),!0;case"pointerover":var l=i.pointerId;return sp.set(l,zd(sp.get(l)||null,e,t,a,o,i)),!0;case"gotpointercapture":return l=i.pointerId,lp.set(l,zd(lp.get(l)||null,e,t,a,o,i)),!0}return!1}function n$(e){var t=si(e.target);if(t!==null){var a=dp(t);if(a!==null){if(t=a.tag,t===13){if(t=lw(a),t!==null){e.blockedOn=t,A0(e.priority,function(){tw(a)});return}}else if(t===31){if(t=dw(a),t!==null){e.blockedOn=t,A0(e.priority,function(){tw(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=bg(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);$x=o,a.target.dispatchEvent(o),$x=null}else return t=Hs(a),t!==null&&a$(t),e.blockedOn=a,!1;t.shift()}return!0}function aw(e,t,a){Qc(e)&&a.delete(t)}function f3(){vg=!1,En!==null&&Qc(En)&&(En=null),In!==null&&Qc(In)&&(In=null),Mn!==null&&Qc(Mn)&&(Mn=null),sp.forEach(aw),lp.forEach(aw)}function Dc(e,t){e.blockedOn===t&&(e.blockedOn=null,vg||(vg=!0,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,f3)))}var Tc=null;function ow(e){Tc!==e&&(Tc=e,Kt.unstable_scheduleCallback(Kt.unstable_NormalPriority,function(){Tc===e&&(Tc=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],i=e[t+2];if(typeof o!="function"){if(bh(o||a)===null)continue;break}var l=Hs(a);l!==null&&(e.splice(t,3),t-=3,jx(l,{pending:!0,data:i,method:a.method,action:o},o,i))}}))}function js(e){function t(p){return Dc(p,e)}En!==null&&Dc(En,e),In!==null&&Dc(In,e),Mn!==null&&Dc(Mn,e),sp.forEach(t),lp.forEach(t);for(var a=0;a<bn.length;a++){var o=bn[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<bn.length&&(a=bn[0],a.blockedOn===null);)n$(a),a.blockedOn===null&&bn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var i=a[o],l=a[o+1],r=i[Gr]||null;if(typeof l=="function")r||ow(a);else if(r){var s=null;if(l&&l.hasAttribute("formAction")){if(i=l,r=l[Gr]||null)s=r.formAction;else if(bh(i)!==null)continue}else s=r.action;typeof s=="function"?a[o+1]=s:(a.splice(o,3),o-=3),ow(a)}}}function i$(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(r){return i=r})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function vh(e){this._internalRoot=e}Vu.prototype.render=vh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var a=t.current,o=da();r$(a,o,e,t,null,null)};Vu.prototype.unmount=vh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;r$(e.current,2,null,e,null,null),Uu(),t[Bs]=null}};function Vu(e){this._internalRoot=e}Vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=$w();e={blockedOn:null,target:e,priority:t};for(var a=0;a<bn.length&&t!==0&&t<bn[a].priority;a++);bn.splice(a,0,e),a===0&&n$(e)}};var nw=iw.version;if(nw!=="19.3.0")throw Error(H(527,nw,"19.3.0"));Fe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=m5(t),e=e!==null?pw(e):null,e=e===null?null:e.stateNode,e};var m3={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ve,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ad=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ad.isDisabled&&Ad.supportsFiber))try{pp=Ad.inject(m3),sa=Ad}catch{}var Ad;Zu.createRoot=function(e,t){if(!sw(e))throw Error(H(299));var a=!1,o="",i=Bk,l=Hk,r=Uk;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=e$(e,1,!1,null,null,a,o,null,i,l,r,i$),e[Bs]=t.current,ch(e),new vh(t)};Zu.hydrateRoot=function(e,t,a){if(!sw(e))throw Error(H(299));var o=!1,i="",l=Bk,r=Hk,s=Uk,p=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(l=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(s=a.onRecoverableError),a.formState!==void 0&&(p=a.formState)),t=e$(e,1,!0,t,a??null,o,i,p,l,r,s,i$),t.context=t$(null),a=t.current,o=da(),o=Sg(o),i=An(o),i.callback=null,Rn(a,i,o),a=o,t.current.lanes=a,up(t,a),wo(t),e[Bs]=t.current,ch(e),new Vu(t)};Zu.version="19.3.0"});var p$=no((K_,d$)=>{"use strict";function l$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l$)}catch(e){console.error(e)}}l$(),d$.exports=s$()});var R$=no(sf=>{"use strict";var M3=Symbol.for("react.transitional.element"),_3=Symbol.for("react.fragment");function A$(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var i in t)i!=="key"&&(a[i]=t[i])}else a=t;return t=a.ref,{$$typeof:M3,type:e,key:o,ref:t!==void 0?t:null,props:a}}sf.Fragment=_3;sf.jsx=A$;sf.jsxs=A$});var oe=no((PO,N$)=>{"use strict";N$.exports=R$()});var q_={};ma(q_,{default:()=>O_});var Uv=j(J()),Lv=j(p$());var Hr=j(J(),1);var $o=j(J(),1);var Ln={pointer:""},c$=e=>e.replace(/~1/g,"/").replace(/~0/g,"~"),x3=e=>e.replace(/~/g,"~0").replace(/\//g,"~1"),zi=e=>!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.path=="string";function he(e,t){return e.startsWith("/")?e:`${t.pointer}/${e}`}function pt(e,t){return`${e}/${x3(String(t))}`}function we(e,t){if(t==="")return e;let a=e;for(let o of t.slice(1).split("/").map(c$)){if(a===null||typeof a!="object")return;a=a[o]}return a}function Zo(e,t,a){let o=t.slice(1).split("/").map(c$),i=(l,r)=>{let s=o[r],p=Array.isArray(l)?[...l]:{...l??{}};return r===o.length-1?p[s]=a:p[s]=i(l?.[s]??(/^\d+$/.test(o[r+1])?[]:{}),r+1),p};return i(e,0)}var kt=e=>Array.isArray(e)?e:[];function ht(e,t,a){return zi(e)?we(t,he(e.path,a)):e}function Ai(e,t,a){return Object.fromEntries(Object.entries(e??{}).map(([o,i])=>[o,ht(i,t,a)]))}function Ks(e,t,a){return zi(e)?ht(e,t,a):Array.isArray(e)?e.map(o=>Ks(o,t,a)):e&&typeof e=="object"?Object.fromEntries(Object.entries(e).map(([o,i])=>[o,Ks(i,t,a)])):e}function Ee(e,t,a,o=Date.now()){if(e==null||e==="")return"\u2014";if(!t||t.type==="text")return Array.isArray(e)?e.join(", "):String(e);let i=typeof e=="number"?e:Number(e),l=t.precision===void 0?{}:{minimumFractionDigits:t.precision,maximumFractionDigits:t.precision};try{switch(t.type){case"number":return new Intl.NumberFormat(a,l).format(i);case"currency":return new Intl.NumberFormat(a,{style:"currency",currency:typeof t.currency=="string"?t.currency:"USD",...l}).format(i);case"percent":return new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:t.precision??1}).format(i);case"date":return new Intl.DateTimeFormat(a,{dateStyle:"medium",timeZone:"UTC"}).format(new Date(String(e)));case"time":return new Intl.DateTimeFormat(a,{timeStyle:"short",timeZone:"UTC"}).format(new Date(String(e)));case"datetime":return new Intl.DateTimeFormat(a,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(new Date(String(e)));case"relativeTime":{let r=(new Date(String(e)).getTime()-o)/1e3,s=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]],p=new Intl.RelativeTimeFormat(a,{numeric:"auto"});for(let[n,d]of s)if(Math.abs(r)>=d)return p.format(Math.round(r/d),n);return p.format(Math.round(r),"second")}case"duration":{let r=Math.round(i/60);return r>=60?`${Math.floor(r/60)} h ${r%60} min`:`${r} min`}case"color":return String(e).trim();case"bytes":{let r=["byte","kilobyte","megabyte","gigabyte","terabyte"],s=0,p=Math.abs(i);for(;p>=1e3&&s<r.length-1;)p/=1e3,s++;return s===0?`${new Intl.NumberFormat(a,{maximumFractionDigits:0}).format(i)} B`:new Intl.NumberFormat(a,{style:"unit",unit:r[s],unitDisplay:"short",maximumFractionDigits:t.precision??1}).format(i<0?-p:p)}}}catch{return String(e)}}function Fn(e){let t=String(e??"").trim();return/^(#[0-9a-f]{3,8}|[a-z]{3,20}|(rgb|rgba|hsl|hsla|oklch|oklab|lab|lch|hwb)\([\d.,%\s\/-]+\))$/i.test(t)?t:void 0}function wp(e,t){try{return new Intl.NumberFormat(t,{style:"currency",currency:e}).formatToParts(0).find(a=>a.type==="currency")?.value??e}catch{return e}}function et(e,t,a){return!e?.currency||typeof e.currency=="string"?e:{...e,currency:ht(e.currency,t,a)}}function Vn(e,t,a,o){let i=e.options;if(Array.isArray(i))return i.map(s=>({value:s.value,label:o(s.label),description:s.description!==void 0?o(s.description):void 0}));let l=he(i.path,a);return kt(we(t,l)).map((s,p)=>{let n={pointer:pt(l,p)},d=c=>c?we(t,he(c,n)):void 0;return{value:d(i.valuePath),label:String(d(i.labelPath)??""),description:i.descriptionPath&&String(d(i.descriptionPath)??"")||void 0,avatar:i.avatarPath||i.imagePath?d(i.avatarPath??i.imagePath)??"":void 0,recent:i.recentPath?!!d(i.recentPath):!1}})}function wh(e,t){let a=e.some(l=>l.avatar!==void 0),o=e.length>10||a&&e.length>6;return{control:!a&&e.length<=6&&e.every(l=>l.label.length<=24&&!l.description)?"chips":a?"people":"list",multiple:t==="multiple",searchable:o,withFaces:a}}var Gs={todo:{label:"Not started",tone:"neutral"},inProgress:{label:"In progress",tone:"info"},done:{label:"Completed",tone:"success"},blocked:{label:"Cannot start yet",tone:"neutral"}};var kh=640,Ku={narrow:33.333,balanced:50,wide:66.667},kp=20,$p=80;var $h=e=>Math.min($p,Math.max(kp,e));var Sh=(e,t,a,o,i)=>a?we(o,he(a,{pointer:i})):e&&typeof e=="object"&&"id"in e?e.id:t;function Ph(e,t,a,o){let i=ht(e.selected,a,o),l=i!=null&&i!=="",r=t.get(e.primary),s=r?.component==="Table"?r.rows?.path:r?.items?.path,p=typeof s=="string"?he(s,o):void 0,n=p?kt(we(a,p)):[],d=p?n.findIndex((b,x)=>Sh(b,x,r?.rowValuePath,a,pt(p,x))===i):-1,c=p&&d>=0?{pointer:pt(p,d)}:void 0,u=r?.items?.componentId?t.get(r.items.componentId):void 0,f=d>=0?n[d]:void 0,m=c&&u?.title!==void 0?ht(u.title,a,c):void 0,h=l?String(m??f?.name??f?.title??f?.label??i):void 0;return{has:l,index:d,scope:c,name:h}}var u$={"multi-step-form":"form","filter-and-browse":"list","undo-over-confirm":"list","compare-and-choose":"compare","confirm-destructive":"dialog","review-and-submit":"detail"},Ch=(e,t)=>t??(e?u$[e]:void 0)??"detail",$t=(e,t)=>({block:e,size:t}),Yr=(e,t)=>({group:e,parts:t}),Ys=(e,t)=>Array.from({length:e},(a,o)=>t(o)),zh={list:[$t("field","full"),...Ys(5,e=>Yr("row",[$t("square"),Yr("lines",[$t("line",e%2?"medium":"long"),$t("small","short")])]))],form:[...Ys(4,e=>Yr("lines",[$t("small","short"),$t("field",e===1?"medium":"long")])),Yr("actions",[$t("button"),$t("button")])],detail:[Yr("row",[$t("circle"),Yr("lines",[Yr("row",[$t("line","medium"),$t("badge")]),$t("small","short")])]),Yr("dl",Ys(6,e=>Yr("row",[$t("small","short"),$t("line",e%3===2?"medium":"long")])))],dashboard:[Yr("cards",Ys(3,()=>Yr("card",[$t("small","short"),$t("value","medium")]))),$t("chart","full")],dialog:[$t("line","long"),$t("line","medium"),Yr("actions",[$t("button"),$t("button")])],compare:[Yr("cards",Ys(3,()=>Yr("card",[$t("line","medium"),...Ys(5,e=>$t("small",e%2?"short":"long"))])))]},Ah={row:"pxd-skeleton-row",lines:"pxd-skeleton-lines",actions:"pxd-skeleton-actions",dl:"pxd-skeleton-dl",cards:"pxd-skeleton-cards",card:"pxd-skeleton-card"},Rh=e=>e?`Preparing ${e}`:"Preparing";var Nh=720,Gu=[10,25,50,100],g3=new Set(["number","currency","percent","duration"]),Yu=e=>e.align==="end"||e.align!=="start"&&(e.kind==="number"||e.kind==="currency"||g3.has(e.format?.type));function Dh(e){let[t,...a]=e;return{first:t,status:a.find(o=>o.kind==="status"),details:a.filter(o=>o.kind!=="status").slice(0,3)}}function Th(e,t,a,o){let i=typeof e=="number"?e:1,l=typeof t=="number"?t:o,r=typeof a=="number"?a:o,s=Math.max(1,Math.ceil(r/(l||1)));return{index:i,size:l,total:r,pages:s,from:r===0?0:(i-1)*l+1,to:Math.min(i*l,r),sizes:[...new Set([...Gu,l])].sort((p,n)=>p-n)}}function Xu(e,t,a,o,i){if(!e)return;let{name:l,context:r}=e.event;if(l==="ui.dismiss")return i.onDismiss?.();i.onAction?.({name:l,context:Ai(r,o,t),source:a})}function Sp(e,t,a,o){let i=he(e.value.path,a);return Object.fromEntries(Object.entries(e.action?.event?.context??{}).map(([l,r])=>[l,zi(r)&&he(r.path,a)===i?o:ht(r,t,a)]))}var Qu={ctrl:["\u2303","Ctrl","Control","ctrlKey"],alt:["\u2325","Alt","Alt","altKey"],shift:["\u21E7","Shift","Shift","shiftKey"],enter:["\u21B5","Enter","Enter","enter"],escape:["\u238B","Esc","Escape","escape"],space:["Space","Space","Space"," "],tab:["\u21E5","Tab","Tab","tab"],backspace:["\u232B","Backspace","Backspace","backspace"],delete:["\u2326","Del","Delete","delete"],arrowup:["\u2191","\u2191","ArrowUp","arrowup"],arrowdown:["\u2193","\u2193","ArrowDown","arrowdown"],arrowleft:["\u2190","\u2190","ArrowLeft","arrowleft"],arrowright:["\u2192","\u2192","ArrowRight","arrowright"],home:["Home","Home","Home","home"],end:["End","End","End","end"],slash:["/","/","/","/"],comma:[",",",",",",","],period:[".",".",".","."]},f$=["metaKey","ctrlKey","altKey","shiftKey"];function Eh(e,t){let a=e.toLowerCase().split("+"),o=a.pop(),i=[],l=[],r=new Set;for(let p of a){let[n,d,c,u]=p==="mod"?t?["\u2318","Ctrl","Meta","metaKey"]:Qu.ctrl:Qu[p];i.push(t?n:d),l.push(c),r.add(u)}let s=Qu[o];return i.push(s?t?s[0]:s[1]:o.toUpperCase()),l.push(s?s[2]:o.toUpperCase()),{hint:i,aria:l.join("+"),flags:r,key:s?s[3]:o}}function Ih(e,t){if(!f$.every(o=>t[o]===e.flags.has(o)))return!1;let a=/^[a-z0-9]$/.test(e.key)&&t.code.toLowerCase()===(/\d/.test(e.key)?`digit${e.key}`:`key${e.key}`);return t.key.toLowerCase()===e.key||a}var Mh=e=>!e.flags.has("metaKey")&&!e.flags.has("ctrlKey")&&!e.flags.has("altKey"),_h=e=>/mac|iphone|ipad|ipod/i.test(e);var Oh=e=>e>=1024?"wide":e>=640?"medium":"compact";function qh(e,t,a){let o=a<=5;return e==="bar"?o?"bar":"drawer":e==="drawer"?"drawer":t==="compact"?o?"bar":"drawer":e==="side"||e==="rail"?e:t==="wide"?"side":"rail"}var jh=(e,t,a)=>t&&a?a:e;var y3=/^(https?:|mailto:|tel:|\/|#)/i;function Xs(e){let t=[],a="",o=0,i=()=>{a&&t.push(a),a=""};for(;o<e.length;){if(e[o]==="`"){let l=e.indexOf("`",o+1);if(l>o+1){i(),t.push({kind:"code",text:e.slice(o+1,l)}),o=l+1;continue}}if(e.startsWith("**",o)){let l=e.indexOf("**",o+2);if(l>o+2){i(),t.push({kind:"strong",children:Xs(e.slice(o+2,l))}),o=l+2;continue}}if(e[o]==="*"){let l=e.indexOf("*",o+1);if(l>o+1){i(),t.push({kind:"em",children:Xs(e.slice(o+1,l))}),o=l+1;continue}}if(e[o]==="["){let l=/^\[([^\]]+)\]\(([^)\s]+)\)/.exec(e.slice(o));if(l){i(),t.push({kind:"link",href:y3.test(l[2])?l[2]:void 0,children:Xs(l[1])}),o+=l[0].length;continue}}a+=e[o++]}return i(),t}function Bh(e,t,a=!1){let o=t.replace(/[^A-Za-z0-9]/g,"").split(""),i="",l=0;for(let r of e){if(l>=o.length)break;if(r==="#"||r==="A"||r==="*"){let s=r==="#"?/\d/:r==="A"?/[A-Za-z]/:/./;for(;l<o.length&&!s.test(o[l]);)l++;if(l>=o.length)break;i+=o[l++]}else i+=r}if(a)for(;i.length&&!/[#A*]/.test(e[i.length-1]);)i=i.slice(0,-1);return i}var Ba=(e,t,a)=>Math.min(a,Math.max(t,e)),Ri=e=>Ba(Math.round(e),0,255).toString(16).padStart(2,"0"),b3=e=>e===void 0?1:Ba(e.endsWith("%")?parseFloat(e)/100:parseFloat(e),0,1),v3=e=>e.endsWith("%")?parseFloat(e)/100*255:parseFloat(e);function m$(e,t,a){let o=(e%360+360)%360/360;if(t===0)return[a*255,a*255,a*255];let i=a<.5?a*(1+t):a+t-a*t,l=2*a-i,r=s=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?l+(i-l)*6*s:s<1/2?i:s<2/3?l+(i-l)*(2/3-s)*6:l);return[r(o+1/3)*255,r(o)*255,r(o-1/3)*255]}function x$(e,t,a){let o=e/255,i=t/255,l=a/255,r=Math.max(o,i,l),s=Math.min(o,i,l),p=(r+s)/2;if(r===s)return[0,0,p];let n=r-s,d=p>.5?n/(2-r-s):n/(r+s),c=r===o?(i-l)/n+(i<l?6:0):r===i?(l-o)/n+2:(o-i)/n+4;return c/=6,[c*360,d,p]}function Zn(e){if(typeof e!="string")return null;let t=e.trim(),a=/^#([0-9a-f]{3,8})$/i.exec(t);if(a){let u=a[1];if(u.length===3||u.length===4){let[f,m,h,b]=u.split("").map(x=>parseInt(x+x,16));return{r:f,g:m,b:h,a:u.length===4?b/255:1}}if(u.length===6||u.length===8){let f=m=>parseInt(u.slice(m,m+2),16);return{r:f(0),g:f(2),b:f(4),a:u.length===8?f(6)/255:1}}return null}let o=/^(rgba?|hsla?)\(\s*([^)]+?)\s*\)$/i.exec(t);if(!o)return null;let i=o[2].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(i.length<3||i.length>4)return null;let l=b3(i[3]);if(Number.isNaN(l))return null;if(o[1].toLowerCase().startsWith("rgb")){let[u,f,m]=i.slice(0,3).map(v3);return[u,f,m].some(Number.isNaN)?null:{r:Ba(u,0,255),g:Ba(f,0,255),b:Ba(m,0,255),a:l}}let r=parseFloat(i[0]),s=parseFloat(i[1])/100,p=parseFloat(i[2])/100;if([r,s,p].some(Number.isNaN))return null;let[n,d,c]=m$(r,Ba(s,0,1),Ba(p,0,1));return{r:n,g:d,b:c,a:l}}function Ju(e,t,a){let o=a?Math.round(e.a*100)/100:1,i=Math.round(e.r),l=Math.round(e.g),r=Math.round(e.b);if(t==="rgb")return o<1?`rgba(${i}, ${l}, ${r}, ${o})`:`rgb(${i}, ${l}, ${r})`;if(t==="hsl"){let[s,p,n]=x$(i,l,r),d=Math.round(s),c=Math.round(p*100),u=Math.round(n*100);return o<1?`hsla(${d}, ${c}%, ${u}%, ${o})`:`hsl(${d}, ${c}%, ${u}%)`}return`#${Ri(i)}${Ri(l)}${Ri(r)}${o<1?Ri(o*255):""}`}var Hh=e=>e?`#${Ri(e.r)}${Ri(e.g)}${Ri(e.b)}`:"#000000",Uh=(e,t,a)=>!!(e&&t&&Math.round(e.r)===Math.round(t.r)&&Math.round(e.g)===Math.round(t.g)&&Math.round(e.b)===Math.round(t.b)&&(!a||Math.abs(e.a-t.a)<.005)),Lh=e=>e==="hex"?"#000000":e==="rgb"?"rgb(0, 0, 0)":"hsl(0, 0%, 0%)";var g$=["byte","kilobyte","megabyte","gigabyte"];function Qs(e,t){let a=0,o=e;for(;o>=1024&&a<g$.length-1;)o/=1024,a++;try{return new Intl.NumberFormat(t,{style:"unit",unit:g$[a],unitDisplay:"short",maximumFractionDigits:o<10?1:0}).format(o)}catch{return`${Math.round(o*10)/10} ${["B","KB","MB","GB"][a]}`}}function Fh(e){let t=e.trim().toLowerCase();if(t.startsWith("."))return t.slice(1).toUpperCase();let a={"image/*":"images","video/*":"videos","audio/*":"audio","text/*":"text files"};if(a[t])return a[t];if(t==="application/pdf")return"PDF";let o=t.split("/")[1];return o?o.replace(/^(x-|vnd\.)/,"").toUpperCase():e}function Vh(e){return e.length<=1?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function h$(e,t){if(t.length===0)return!0;let a=e.name.toLowerCase(),o=e.type.toLowerCase();return t.some(i=>{let l=i.trim().toLowerCase();return l.startsWith(".")?a.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function Zh(e,t,a,o){let i=e.length?Vh(e.map(Fh)):"";return[i&&`Accepts ${i}.`,t&&`Up to ${Qs(t,o)}${a?" each":""}.`].filter(Boolean).join(" ")}function Kh(e,t,a,o){if(a&&e.size>a)return`${e.name} is ${Qs(e.size,o)}; the limit is ${Qs(a,o)}.`;let i=t.length?Vh(t.map(Fh)):"";if(!h$(e,t))return`${e.name} isn't an accepted type${i?` (${i})`:""}.`}function Gh(e,t){return e>=1?{tone:"danger",hint:"full"}:t?.danger!==void 0&&e>=t.danger?{tone:"danger",hint:"nearly full"}:t?.warning!==void 0&&e>=t.warning?{tone:"warning",hint:"getting full"}:{}}var Yh=e=>`${e} ${e===1?"star":"stars"}`,Xh=(e,t)=>e!==void 0?`${e} out of ${t}`:"not yet rated",Qh=e=>e.replace(/[^\s]/g,"\u2022"),Wu={small:24,default:40,large:64};function Jh(e,t){let a=l=>l.split(/\s+/)[0]||l,o=e.slice(0,t),i=e.slice(t);return i.length?`${o.map(l=>a(l.name)).join(", ")} and ${i.length} more`:o.map(l=>a(l.name)).join(", ")}var y$=["primary","secondary","tertiary","success","warning"];function ey(e){return y$[[...e].reduce((t,a)=>t*31+a.charCodeAt(0)>>>0,7)%y$.length]}function ty(e,t){return(e&&e.length<=3?e:t.split(/\s+/).map(a=>a[0]).join("").slice(0,2)).toUpperCase()}var ry=e=>e.length>3,Wh={search:"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM21 21l-4.3-4.3",check:"M20 6 9 17l-5-5",info:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 16v-4M12 8h.01",lock:"M5 11h14v10H5zM8 11V7a4 4 0 0 1 8 0v4",trash:"M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6",clock:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3 2",tag:"M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z",alert:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h16.9a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01",mail:"M3 5h18v14H3zM3 7l9 6 9-6",shield:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",book:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z",inbox:"M22 12h-6l-2 3h-4l-2-3H2M5.5 5h13L22 12v7H2v-7z",filter:"M3 5h18l-7 8v6l-4 2v-8z",close:"M18 6 6 18M6 6l12 12",dash:"M6 12h12",menu:"M4 6h16M4 12h16M4 18h16",home:"M4 11 12 4l8 7M6 10v10h12V10",settings:"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM19.4 15a1.7 1.7 0 0 0 .3 1.8 2 2 0 1 1-2.8 2.8 1.7 1.7 0 0 0-2.9 1.2 2 2 0 1 1-4 0 1.7 1.7 0 0 0-2.9-1.2 2 2 0 1 1-2.8-2.8A1.7 1.7 0 0 0 2.1 14a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.2-2.9 2 2 0 1 1 2.8-2.8A1.7 1.7 0 0 0 9 3.1a2 2 0 1 1 4 0 1.7 1.7 0 0 0 2.9 1.2 2 2 0 1 1 2.8 2.8A1.7 1.7 0 0 0 21 10a2 2 0 1 1 0 4 1.7 1.7 0 0 0-1.6 1z",chart:"M4 20V10M10 20V4M16 20v-7M22 20H2",people:"M9 4.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6.5 6.5 0 0 1 3.5 6",card:"M2 6h20v13H2zM2 10h20",file:"M6 3h8l4 4v14H6zM14 3v4h4",dots:"M12 5h.01M12 12h.01M12 19h.01",sort:"M8 9l4-4 4 4M8 15l4 4 4-4",sortUp:"M12 19V5M6 11l6-6 6 6",sortDown:"M12 5v14M6 13l6 6 6-6",chevronLeft:"M15 5l-7 7 7 7",chevronRight:"M9 5l7 7-7 7",chevronDown:"m6 9 6 6 6-6",orders:"M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6",products:"M12 3 3 7.5v9L12 21l9-4.5v-9zM3 7.5l9 4.5 9-4.5M12 12v9",customers:"M12 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM4 21a8 8 0 0 1 16 0",discounts:"M19 5 5 19M7.5 6a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM16.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",analytics:"M3 17l5-6 4 3 5-7 4 4M3 21h18",calendar:"M4 6h16v14H4zM4 10h16M8 3v4M16 3v4",bell:"M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 21h4",help:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01",folder:"M3 6h6l2 2h10v11H3z",star:"m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z",grid:"M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z",layers:"m12 3 9 5-9 5-9-5zM3 13l9 5 9-5M3 17l9 5 9-5"},ay=e=>Wh[e]??Wh.info,oy={info:"info",success:"check",warning:"alert",error:"alert",empty:"inbox",undo:"check"},ef="M12 2.5l2.9 6.2 6.8.8-5 4.7 1.3 6.8L12 17.6 6 21l1.3-6.8-5-4.7 6.8-.8z";var ny=(e,t)=>e&&typeof e=="object"&&"id"in e?e.id:t;function iy(e,t){let a=e.layout??"auto";return{grid:a==="grid"||a==="auto"&&t?.component==="Card"&&!!t.media,timeline:a==="timeline",carousel:a==="carousel",calendar:a==="calendar"}}function sy(e,t){let a=e.map((i,l)=>l);if(!Array.isArray(t))return a;let o=i=>{let l=t.indexOf(e[i]);return l<0?t.length+i:l};return a.sort((i,l)=>o(i)-o(l))}function ly(e,t,a,o){if(o<0||o>=e.length||a===o)return;let i=[...e];return i.splice(o,0,...i.splice(a,1)),i.map(l=>t[l])}function dy(e){if(e==null||e==="")return;let t=new Date(String(e));return Number.isNaN(t.getTime())?void 0:{y:t.getUTCFullYear(),m:t.getUTCMonth(),d:t.getUTCDate()}}var py=(e,t,a=new Date)=>e??(t?{y:t.y,m:t.m}:{y:a.getUTCFullYear(),m:a.getUTCMonth()});function cy(e,t){let a=new Date(Date.UTC(e.y,e.m+t,1));return{y:a.getUTCFullYear(),m:a.getUTCMonth()}}function uy(e,t){let a=new Intl.DateTimeFormat(t,{month:"long",year:"numeric",timeZone:"UTC"}).format(new Date(Date.UTC(e.y,e.m,1))),o=Array.from({length:7},(p,n)=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(Date.UTC(2024,0,1+n)))),i=(new Date(Date.UTC(e.y,e.m,1)).getUTCDay()+6)%7,l=new Date(Date.UTC(e.y,e.m+1,0)).getUTCDate(),r=[...Array(i).fill(null),...Array.from({length:l},(p,n)=>n+1)];for(;r.length%7;)r.push(null);let s=Array.from({length:r.length/7},(p,n)=>r.slice(n*7,n*7+7));return{...e,monthName:a,weekdays:o,weeks:s}}function fy(e,t){let a=0;return e.forEach((o,i)=>{Math.abs(o-t)<Math.abs(e[a]-t)&&(a=i)}),a}function my(e,t,a){let o=new Map;for(let i of e){if(!i.better||i.better==="none")continue;let l=Array.from({length:t},(s,p)=>Number(a(i.path,p))),r=i.better==="higher"?Math.max(...l):Math.min(...l);l.filter(s=>s===r).length===1&&o.set(i.key,l.indexOf(r))}return o}function xy(e,t){let a=[];for(let o of e){let i=o.group!==void 0?t(o.group):void 0,l=a.find(r=>r.label===i);l?l.attributes.push(o):a.push({label:i,attributes:[o]})}return a}function gy(e,t){let a=e.map((i,l)=>l),o=a.findIndex(i=>e[i]===t);return o>0&&a.unshift(...a.splice(o,1)),a}function hy(e,t){let a=[];for(let o of e){let i=o.group!==void 0?t(o.group):void 0,l=a.find(r=>r.label===i);l?l.items.push(o):a.push({label:i,items:[o]})}return a}var yy=e=>e==="breadcrumb"?"Breadcrumb":e==="toc"?"On this page":"Main";var Rt={top:16,right:16,bottom:32,left:56},Js=["circle","square","diamond","triangle","circle","square"],by=e=>`var(--pxd-color-data-categorical-${e%6+1})`;function Ws(e){if(e<=0)return 1;let t=10**Math.floor(Math.log10(e));return Math.ceil(e/t)*t}function tf(e,t,a){if(t==="date"||t==="datetime"){let o=new Date(String(e));if(!Number.isNaN(o.getTime())){let i=o.getUTCDate()===1?{month:"short",timeZone:"UTC"}:{month:"short",day:"numeric",timeZone:"UTC"};return new Intl.DateTimeFormat(a,i).format(o)}}return String(e??"").slice(0,12)}function vy(e,t,a){let o=e.reduce((u,f)=>u+f,0),i=e.map(()=>null);if(o<=0)return i;let l=e.map((u,f)=>f).filter(u=>e[u]>0).sort((u,f)=>e[f]-e[u]),r=u=>e[u]/o*t*a,s=0,p=0,n=t,d=a,c=0;for(;c<l.length&&n>0&&d>0;){let u=n>=d,f=u?d:n,m=[],h=0,b=1/0;for(;c<l.length;){let y=[...m,l[c]],v=h+r(l[c]),S=v/f,R=Math.max(...y.map(w=>{let $=r(w)/S;return Math.max($/S,S/$)}));if(R>b&&m.length)break;m=y,h=v,b=R,c++}let x=h/f,g=0;for(let y of m){let v=r(y)/x;i[y]=u?{x:s,y:p+g,w:x,h:v}:{x:s+g,y:p,w:v,h:x},g+=v}u?(s+=x,n-=x):(p+=x,d-=x)}return i}function wy(e,t){let a=Ws(Math.max(0,...e)),o=t?Math.min(0,...e):0,i=t&&e.length?Math.max(o,Math.min(...e)-(Math.max(...e)-Math.min(...e))*.2):o,l=t?Math.floor(i):0;return{lo:l,max:a,ticks:[0,.5,1].map(r=>l+(a-l)*r)}}function ky(e,t,a){let o=e.map(u=>u.reduce((f,m)=>f+m,0)),i=Array.from({length:t},(u,f)=>e.reduce((m,h)=>m+h[f],0)),l=o.reduce((u,f)=>u+f,0)||1,r=6,p=(a-r*(Math.max(e.length,t)-1))/l,n=[],d=[],c=0;return o.forEach(u=>(n.push(c),c+=u*p+r)),c=0,i.forEach(u=>(d.push(c),c+=u*p+r)),{leftY:n,rightY:d,leftTotals:o,rightTotals:i,scale:p}}var $y=200,rf=10,Sy=500,w3=e=>e==null?"":String(e);function Py(e,t,a,o){let i=[],l=new Map,r=[],s=(d,c)=>o?o.has(d):c===1,p=(d,c,u,f)=>{d.forEach((m,h)=>{let b={pointer:pt(c,h)},x=w3(we(t,he(e.labelPath,b))),g=e.valuePath?we(t,he(e.valuePath,b)):x,y=g??(x||b.pointer),v=e.detailPath?we(t,he(e.detailPath,b)):void 0,S=v==null||v===""?void 0:String(v),R=kt(we(t,he(e.childrenPath,b)));u===1&&r.push(y);let w=R.length>0,$=w&&s(y,u),z=i.length;l.set(b.pointer,z),i.push({key:b.pointer,scope:b,level:u,setsize:d.length,posinset:h+1,label:x,value:y,detail:S,hasChildren:w,expanded:$,parent:f}),$&&p(R,he(e.childrenPath,b),u+1,z)})},n=he(e.items.path,a);return p(kt(we(t,n)),n,1,-1),{rows:i,indexByKey:l,topValues:r}}function Cy(e,t,a){let o=r=>{for(let s=1;s<=e.length;s++){let p=(t+s)%e.length;if(e[p].label.toLowerCase().startsWith(r))return p}return-1},i=a.length>1&&[...a].every(r=>r===a[0]),l=o(i?a[0]:a);return l<0&&a.length>1&&(l=o(a[0])),l}var b$=[[10,[[1,16]]],[16,[[1,28]]],[26,[[1,44]]],[18,[[2,32]]],[24,[[2,43]]],[16,[[4,27]]],[18,[[4,31]]],[22,[[2,38],[2,39]]],[22,[[3,36],[2,37]]],[26,[[4,43],[1,44]]]],k3=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50]];function zy(e,t){let a=0;for(let o=7;o>=0;o--)a=a<<1^(a>>>7)*285,a^=(t>>>o&1)*e;return a&255}function $3(e,t){let a=new Array(t).fill(0);a[t-1]=1;let o=1;for(let l=0;l<t;l++){for(let r=0;r<t;r++)a[r]=zy(a[r],o),r+1<t&&(a[r]^=a[r+1]);o=zy(o,2)}let i=new Array(t).fill(0);for(let l of e){let r=l^i.shift();i.push(0),a.forEach((s,p)=>i[p]^=zy(s,r))}return i}var S3=[(e,t)=>(e+t)%2===0,(e,t)=>t%2===0,e=>e%3===0,(e,t)=>(e+t)%3===0,(e,t)=>(Math.floor(e/3)+Math.floor(t/2))%2===0,(e,t)=>e*t%2+e*t%3===0,(e,t)=>(e*t%2+e*t%3)%2===0,(e,t)=>((e+t)%2+e*t%3)%2===0];function Ay(e){let t=Array.from(new TextEncoder().encode(e)),a=0,o=0;for(let A=1;A<=10&&!a;A++){let C=b$[A-1][1].reduce((N,[M,T])=>N+M*T,0);4+(A<10?8:16)+t.length*8<=C*8&&(a=A,o=C)}if(!a)return;let[i,l]=b$[a-1],r=[],s=(A,C)=>{for(let N=C-1;N>=0;N--)r.push(A>>>N&1)};s(4,4),s(t.length,a<10?8:16);for(let A of t)s(A,8);let p=o*8;for(s(0,Math.min(4,p-r.length));r.length%8;)r.push(0);for(let A=236;r.length<p;A^=253)s(A,8);let n=[];for(let A=0;A<r.length;A+=8)n.push(r.slice(A,A+8).reduce((C,N)=>C<<1|N,0));let d=[],c=0;for(let[A,C]of l)for(let N=0;N<A;N++){let M=n.slice(c,c+C);d.push({d:M,e:$3(M,i)}),c+=C}let u=[],f=Math.max(...d.map(A=>A.d.length));for(let A=0;A<f;A++)for(let C of d)A<C.d.length&&u.push(C.d[A]);for(let A=0;A<i;A++)for(let C of d)u.push(C.e[A]);let m=a*4+17,h=Array.from({length:m},()=>new Array(m).fill(!1)),b=Array.from({length:m},()=>new Array(m).fill(!1)),x=(A,C,N)=>{A>=0&&C>=0&&A<m&&C<m&&(h[C][A]=N,b[C][A]=!0)};for(let A=0;A<m;A++)x(6,A,A%2===0),x(A,6,A%2===0);let g=(A,C)=>{for(let N=-4;N<=4;N++)for(let M=-4;M<=4;M++){let T=Math.max(Math.abs(M),Math.abs(N));x(A+M,C+N,T!==2&&T!==4)}};g(3,3),g(m-4,3),g(3,m-4);let y=k3[a-1],v=y.length-1;y.forEach((A,C)=>y.forEach((N,M)=>{if(!(C===0&&M===0||C===0&&M===v||C===v&&M===0))for(let T=-2;T<=2;T++)for(let D=-2;D<=2;D++)x(A+D,N+T,Math.max(Math.abs(D),Math.abs(T))!==1)}));let S=A=>{let C=A,N=C;for(let D=0;D<10;D++)N=N<<1^(N>>>9)*1335;let M=(C<<10|N)^21522,T=D=>(M>>>D&1)===1;for(let D=0;D<=5;D++)x(8,D,T(D));x(8,7,T(6)),x(8,8,T(7)),x(7,8,T(8));for(let D=9;D<15;D++)x(14-D,8,T(D));for(let D=0;D<8;D++)x(m-1-D,8,T(D));for(let D=8;D<15;D++)x(8,m-15+D,T(D));x(8,m-8,!0)};if(S(0),a>=7){let A=a;for(let N=0;N<12;N++)A=A<<1^(A>>>11)*7973;let C=a<<12|A;for(let N=0;N<18;N++){let M=(C>>>N&1)===1,T=m-11+N%3,D=Math.floor(N/3);x(T,D,M),x(D,T,M)}}let R=0;for(let A=m-1;A>=1;A-=2){A===6&&(A=5);for(let C=0;C<m;C++)for(let N=0;N<2;N++){let M=A-N,T=(A+1&2)===0?m-1-C:C;!b[T][M]&&R<u.length*8&&(h[T][M]=(u[R>>>3]>>>7-(R&7)&1)===1,R++)}}let w=A=>{for(let C=0;C<m;C++)for(let N=0;N<m;N++)!b[C][N]&&S3[A](N,C)&&(h[C][N]=!h[C][N])},$=()=>{let A=0,C=T=>{let D=0,B=null;T.forEach((U,Z)=>{if(U===B?(D++,D===5?A+=3:D>5&&(A+=1)):(B=U,D=1),Z+7<=T.length){let G=T.slice(Z,Z+7),_e=G[0]&&!G[1]&&G[2]&&G[3]&&G[4]&&!G[5]&&G[6],re=Z>=4&&T.slice(Z-4,Z).every(be=>!be),te=Z+11<=T.length&&T.slice(Z+7,Z+11).every(be=>!be);_e&&(re||te)&&(A+=40)}})};for(let T=0;T<m;T++)C(h[T]),C(h.map(D=>D[T]));for(let T=0;T<m-1;T++)for(let D=0;D<m-1;D++)h[T][D]===h[T][D+1]&&h[T][D]===h[T+1][D]&&h[T][D]===h[T+1][D+1]&&(A+=3);let N=h.flat().filter(Boolean).length,M=m*m;return A+=(Math.ceil(Math.abs(N*20-M*10)/M)-1)*10,A},z=0,P=1/0;for(let A=0;A<8;A++){S(A),w(A);let C=$();w(A),C<P&&(P=C,z=A)}return S(z),w(z),h}var Ny=(0,$o.createContext)(null),Ni=(0,$o.createContext)({pointer:""}),Ha=(0,$o.createContext)(2),af=(0,$o.createContext)(null),of=(0,$o.createContext)(null),Di=(0,$o.createContext)(null);function W(){let e=(0,$o.useContext)(Ny);if(!e)throw new Error("Polyxd components must be rendered inside <PolyxdSurface>");return e}function ae(){let e=W(),t=(0,$o.useContext)(Ni);return{scope:t,value:a=>ht(a,e.data,t),text:(a,o)=>{let i=ht(a,e.data,t);return o?Ee(i,et(o,e.data,t),e.locale):i==null?"":String(i)},pointer:a=>he(a.path,t),write:(a,o)=>e.setValue(he(a.path,t),o),context:a=>Ai(a,e.data,t)}}var ao=j(J(),1);var D$=j(J(),1),T$=j(kd(),1);var mr=j(J(),1);var w$=j(J(),1),A3=Object.defineProperty,Ty=(e,t)=>A3(e,"name",{value:t,configurable:!0});function Dy(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ty(Dy,"setRef");function k$(...e){return t=>{let a=!1,o=e.map(i=>{let l=Dy(i,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let i=0;i<o.length;i++){let l=o[i];typeof l=="function"?l():Dy(e[i],null)}}}}Ty(k$,"composeRefs");function le(...e){return w$.useCallback(k$(...e),e)}Ty(le,"useComposedRefs");var R3=Object.defineProperty,Ua=(e,t)=>R3(e,"name",{value:t,configurable:!0});function Ir(e){let t=mr.forwardRef((a,o)=>{let{children:i,...l}=a,r=null,s=!1,p=[];Ey(i)&&typeof nf=="function"&&(i=nf(i._payload)),mr.Children.forEach(i,u=>{if(C$(u)){s=!0;let f=u,m="child"in f.props?f.props.child:f.props.children;Ey(m)&&typeof nf=="function"&&(m=nf(m._payload)),r=D3(f,m),p.push(r?.props?.children)}else p.push(u)}),r?r=mr.cloneElement(r,void 0,p):!s&&mr.Children.count(i)===1&&mr.isValidElement(i)&&(r=i);let n=r?P$(r):void 0,d=le(o,n);if(!r){if(i||i===0)throw new Error(s?I3(e):E3(e));return i}let c=S$(l,r.props??{});return r.type!==mr.Fragment&&(c.ref=o?d:n),mr.cloneElement(r,c)});return t.displayName=`${e}.Slot`,t}Ua(Ir,"createSlot");var $$=Symbol.for("radix.slottable");function N3(e){let t=Ua(a=>"child"in a?a.children(a.child):a.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=$$,t}Ua(N3,"createSlottable");var D3=Ua((e,t)=>{if("child"in e.props){let a=e.props.child;return mr.isValidElement(a)?mr.cloneElement(a,void 0,e.props.children(a.props.children)):null}return mr.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function S$(e,t){let a={...t};for(let o in t){let i=e[o],l=t[o];/^on[A-Z]/.test(o)?i&&l?a[o]=(...s)=>{let p=l(...s);return i(...s),p}:i&&(a[o]=i):o==="style"?a[o]={...i,...l}:o==="className"&&(a[o]=[i,l].filter(Boolean).join(" "))}return{...e,...a}}Ua(S$,"mergeProps");function P$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Ua(P$,"getElementRef");function C$(e){return mr.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$$}Ua(C$,"isSlottable");var T3=Symbol.for("react.lazy");function Ey(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===T3&&"_payload"in e&&z$(e._payload)}Ua(Ey,"isLazyComponent");function z$(e){return typeof e=="object"&&e!==null&&"then"in e}Ua(z$,"isPromiseLike");var E3=Ua(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),I3=Ua(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),nf=mr[" use ".trim().toString()];var E$=j(oe(),1),O3=Object.defineProperty,q3=(e,t)=>O3(e,"name",{value:t,configurable:!0}),j3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=j3.reduce((e,t)=>{let a=Ir(`Primitive.${t}`),o=D$.forwardRef((i,l)=>{let{asChild:r,...s}=i,p=r?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,E$.jsx)(p,{...s,ref:l})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Pp(e,t){e&&T$.flushSync(()=>e.dispatchEvent(t))}q3(Pp,"dispatchDiscreteCustomEvent");var Ca=j(J(),1),Iy=j(oe(),1),B3=Object.defineProperty,Pa=(e,t)=>B3(e,"name",{value:t,configurable:!0});function H3(e,t){let a=Ca.createContext(t);a.displayName=e+"Context";let o=Pa(l=>{let{children:r,...s}=l,p=Ca.useMemo(()=>s,Object.values(s));return(0,Iy.jsx)(a.Provider,{value:p,children:r})},"Provider");o.displayName=e+"Provider";function i(l,r={}){let{optional:s=!1}=r,p=Ca.useContext(a);if(p)return p;if(t!==void 0)return t;if(!s)throw new Error(`\`${l}\` must be used within \`${e}\``)}return Pa(i,"useContext"),[o,i]}Pa(H3,"createContext");function Oe(e,t=[]){let a=[];function o(l,r){let s=Ca.createContext(r);s.displayName=l+"Context";let p=a.length;a=[...a,r];let n=Pa(c=>{let{scope:u,children:f,...m}=c,h=u?.[e]?.[p]||s,b=Ca.useMemo(()=>m,Object.values(m));return(0,Iy.jsx)(h.Provider,{value:b,children:f})},"Provider");n.displayName=l+"Provider";function d(c,u,f={}){let{optional:m=!1}=f,h=u?.[e]?.[p]||s,b=Ca.useContext(h);if(b)return b;if(r!==void 0)return r;if(!m)throw new Error(`\`${c}\` must be used within \`${l}\``)}return Pa(d,"useContext"),[n,d]}Pa(o,"createContext");let i=Pa(()=>{let l=a.map(r=>Ca.createContext(r));return Pa(function(s){let p=s?.[e]||l;return Ca.useMemo(()=>({[`__scope${e}`]:{...s,[e]:p}}),[s,p])},"useScope")},"createScope");return i.scopeName=e,[o,I$(i,...t)]}Pa(Oe,"createContextScope");function I$(...e){let t=e[0];if(e.length===1)return t;let a=Pa(()=>{let o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return Pa(function(l){let r=o.reduce((s,{useScope:p,scopeName:n})=>{let c=p(l)[`__scope${n}`];return{...s,...c}},{});return Ca.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return a.scopeName=t.scopeName,a}Pa(I$,"composeContextScopes");var La=j(J(),1);var lf=j(oe(),1),Qr=j(J(),1);var Ti=j(oe(),1),U3=Object.defineProperty,rr=(e,t)=>U3(e,"name",{value:t,configurable:!0});function Ei(e){let t=e+"CollectionProvider",[a,o]=Oe(t),[i,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),r=rr(h=>{let{scope:b,children:x}=h,g=La.useRef(null),y=La.useRef(new Map).current;return(0,lf.jsx)(i,{scope:b,itemMap:y,collectionRef:g,children:x})},"CollectionProvider");r.displayName=t;let s=e+"CollectionSlot",p=Ir(s),n=La.forwardRef((h,b)=>{let{scope:x,children:g}=h,y=l(s,x),v=le(b,y.collectionRef);return(0,lf.jsx)(p,{ref:v,children:g})});n.displayName=s;let d=e+"CollectionItemSlot",c="data-radix-collection-item",u=Ir(d),f=La.forwardRef((h,b)=>{let{scope:x,children:g,...y}=h,v=La.useRef(null),S=le(b,v),R=l(d,x);return La.useEffect(()=>(R.itemMap.set(v,{ref:v,...y}),()=>{R.itemMap.delete(v)})),(0,lf.jsx)(u,{[c]:"",ref:S,children:g})});f.displayName=d;function m(h){let b=l(e+"CollectionConsumer",h);return La.useCallback(()=>{let g=b.collectionRef.current;if(!g)return[];let y=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((R,w)=>y.indexOf(R.ref.current)-y.indexOf(w.ref.current))},[b.collectionRef,b.itemMap])}return rr(m,"useCollection"),[{Provider:r,Slot:n,ItemSlot:f},m,o]}rr(Ei,"createCollection");var M$=new WeakMap,My=class Kn extends Map{static{rr(this,"OrderedDict")}#e;constructor(t){super(t),this.#e=[...super.keys()],M$.set(this,!0)}set(t,a){return M$.get(this)&&(this.has(t)?this.#e[this.#e.indexOf(t)]=t:this.#e.push(t)),super.set(t,a),this}insert(t,a,o){let i=this.has(a),l=this.#e.length,r=Oy(t),s=r>=0?r:l+r,p=s<0||s>=l?-1:s;if(p===this.size||i&&p===this.size-1||p===-1)return this.set(a,o),this;let n=this.size+(i?0:1);r<0&&s++;let d=[...this.#e],c,u=!1;for(let f=s;f<n;f++)if(s===f){let m=d[f];d[f]===a&&(m=d[f+1]),i&&this.delete(a),c=this.get(m),this.set(a,o)}else{!u&&d[f-1]===a&&(u=!0);let m=d[u?f:f-1],h=c;c=this.get(m),this.delete(m),this.set(m,h)}return this}with(t,a,o){let i=new Kn(this);return i.insert(t,a,o),i}before(t){let a=this.#e.indexOf(t)-1;if(!(a<0))return this.entryAt(a)}setBefore(t,a,o){let i=this.#e.indexOf(t);return i===-1?this:this.insert(i,a,o)}after(t){let a=this.#e.indexOf(t);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(t,a,o){let i=this.#e.indexOf(t);return i===-1?this:this.insert(i+1,a,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(t){let a=super.delete(t);return a&&this.#e.splice(this.#e.indexOf(t),1),a}deleteAt(t){let a=this.keyAt(t);return a!==void 0?this.delete(a):!1}at(t){let a=df(this.#e,t);if(a!==void 0)return this.get(a)}entryAt(t){let a=df(this.#e,t);if(a!==void 0)return[a,this.get(a)]}indexOf(t){return this.#e.indexOf(t)}keyAt(t){return df(this.#e,t)}from(t,a){let o=this.indexOf(t);if(o===-1)return;let i=o+a;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(t,a){let o=this.indexOf(t);if(o===-1)return;let i=o+a;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(t,a){let o=0;for(let i of this){if(Reflect.apply(t,a,[i,o,this]))return i;o++}}findIndex(t,a){let o=0;for(let i of this){if(Reflect.apply(t,a,[i,o,this]))return o;o++}return-1}filter(t,a){let o=[],i=0;for(let l of this)Reflect.apply(t,a,[l,i,this])&&o.push(l),i++;return new Kn(o)}map(t,a){let o=[],i=0;for(let l of this)o.push([l[0],Reflect.apply(t,a,[l,i,this])]),i++;return new Kn(o)}reduce(...t){let[a,o]=t,i=0,l=o??this.at(0);for(let r of this)i===0&&t.length===1?l=r:l=Reflect.apply(a,this,[l,r,i,this]),i++;return l}reduceRight(...t){let[a,o]=t,i=o??this.at(-1);for(let l=this.size-1;l>=0;l--){let r=this.at(l);l===this.size-1&&t.length===1?i=r:i=Reflect.apply(a,this,[i,r,l,this])}return i}toSorted(t){let a=[...this.entries()].sort(t);return new Kn(a)}toReversed(){let t=new Kn;for(let a=this.size-1;a>=0;a--){let o=this.keyAt(a),i=this.get(o);t.set(o,i)}return t}toSpliced(...t){let a=[...this.entries()];return a.splice(...t),new Kn(a)}slice(t,a){let o=new Kn,i=this.size-1;if(t===void 0)return o;t<0&&(t=t+this.size),a!==void 0&&a>0&&(i=a-1);for(let l=t;l<=i;l++){let r=this.keyAt(l),s=this.get(r);o.set(r,s)}return o}every(t,a){let o=0;for(let i of this){if(!Reflect.apply(t,a,[i,o,this]))return!1;o++}return!0}some(t,a){let o=0;for(let i of this){if(Reflect.apply(t,a,[i,o,this]))return!0;o++}return!1}};function df(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=_$(e,t);return a===-1?void 0:e[a]}rr(df,"at");function _$(e,t){let a=e.length,o=Oy(t),i=o>=0?o:a+o;return i<0||i>=a?-1:i}rr(_$,"toSafeIndex");function Oy(e){return e!==e||e===0?0:Math.trunc(e)}rr(Oy,"toSafeInteger");function L3(e){let t=e+"CollectionProvider",[a,o]=Oe(t),[i,l]=a(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new My,setItemMap:rr(()=>{},"setItemMap")}),r=rr(({state:y,...v})=>y?(0,Ti.jsx)(p,{...v,state:y}):(0,Ti.jsx)(s,{...v}),"CollectionProvider");r.displayName=t;let s=rr(y=>{let v=b();return(0,Ti.jsx)(p,{...y,state:v})},"CollectionInit");s.displayName=t+"Init";let p=rr(y=>{let{scope:v,children:S,state:R}=y,w=Qr.useRef(null),[$,z]=Qr.useState(null),P=le(w,z),[A,C]=R;return Qr.useEffect(()=>{if(!$)return;let N=j$(()=>{});return N.observe($,{childList:!0,subtree:!0}),()=>{N.disconnect()}},[$]),(0,Ti.jsx)(i,{scope:v,itemMap:A,setItemMap:C,collectionRef:P,collectionRefObject:w,collectionElement:$,children:S})},"CollectionProviderImpl");p.displayName=t+"Impl";let n=e+"CollectionSlot",d=Ir(n),c=Qr.forwardRef((y,v)=>{let{scope:S,children:R}=y,w=l(n,S),$=le(v,w.collectionRef);return(0,Ti.jsx)(d,{ref:$,children:R})});c.displayName=n;let u=e+"CollectionItemSlot",f="data-radix-collection-item",m=Ir(u),h=Qr.forwardRef((y,v)=>{let{scope:S,children:R,...w}=y,$=Qr.useRef(null),[z,P]=Qr.useState(null),A=le(v,$,P),C=l(u,S),{setItemMap:N}=C,M=Qr.useRef(w);O$(M.current,w)||(M.current=w);let T=M.current;return Qr.useEffect(()=>{let D=T;return N(B=>z?B.has(z)?B.set(z,{...D,element:z}).toSorted(_y):(B.set(z,{...D,element:z}),B.toSorted(_y)):B),()=>{N(B=>!z||!B.has(z)?B:(B.delete(z),new My(B)))}},[z,T,N]),(0,Ti.jsx)(m,{[f]:"",ref:A,children:R})});h.displayName=u;function b(){return Qr.useState(new My)}rr(b,"useInitCollection");function x(y){let{itemMap:v}=l(e+"CollectionConsumer",y);return v}return rr(x,"useCollection"),[{Provider:r,Slot:c,ItemSlot:h},{createCollectionScope:o,useCollection:x,useInitCollection:b}]}rr(L3,"createCollection");function O$(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(let i of a)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}rr(O$,"shallowEqual");function q$(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}rr(q$,"isElementPreceding");function _y(e,t){return!e[1].element||!t[1].element?0:q$(e[1].element,t[1].element)?-1:1}rr(_y,"sortByDocumentPosition");function j$(e){return new MutationObserver(a=>{for(let o of a)if(o.type==="childList"){e();return}})}rr(j$,"getChildListObserver");var F3=Object.defineProperty,el=(e,t)=>F3(e,"name",{value:t,configurable:!0}),B$=!!(typeof window<"u"&&window.document&&window.document.createElement);function K(e,t,{checkForDefaultPrevented:a=!0}={}){return el(function(i){if(e?.(i),a===!1||!i||!i.defaultPrevented)return t?.(i)},"handleEvent")}el(K,"composeEventHandlers");function V3(e){if(!B$)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}el(V3,"getOwnerWindow");function qy(e){if(!B$)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}el(qy,"getOwnerDocument");function H$(e,t=!1){let{activeElement:a}=qy(e);if(!a?.nodeName)return null;if(U$(a)&&a.contentDocument)return H$(a.contentDocument.body,t);if(t){let o=a.getAttribute("aria-activedescendant");if(o){let i=qy(a).getElementById(o);if(i)return i}}return a}el(H$,"getActiveElement");function U$(e){return e.tagName==="IFRAME"}el(U$,"isFrame");var za=j(J(),1);var tl=!1;var L$=j(J(),1),yt=globalThis?.document?L$.useLayoutEffect:()=>{};var Fa=j(J(),1);var rl=j(J(),1),Z3=Object.defineProperty,K3=(e,t)=>Z3(e,"name",{value:t,configurable:!0}),F$=rl[" useEffectEvent ".trim().toString()],V$=rl[" useInsertionEffect ".trim().toString()];function jy(e){if(typeof F$=="function")return F$(e);let t=rl.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof V$=="function"?V$(()=>{t.current=e}):yt(()=>{t.current=e}),rl.useMemo(()=>((...a)=>t.current?.(...a)),[])}K3(jy,"useEffectEvent");var G3=Object.defineProperty,Cp=(e,t)=>G3(e,"name",{value:t,configurable:!0}),Y3=za[" useInsertionEffect ".trim().toString()]||yt;function ft({prop:e,defaultProp:t,onChange:a=Cp(()=>{},"onChange"),caller:o}){let[i,l,r]=K$({defaultProp:t,onChange:a}),s=e!==void 0,p=s?e:i;if(tl){let d=za.useRef(e!==void 0);za.useEffect(()=>{let c=d.current;c!==s&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,o])}let n=za.useCallback(d=>{if(s){let c=G$(d)?d(e):d;c!==e&&r.current?.(c)}else l(d)},[s,e,l,r]);return[p,n]}Cp(ft,"useControllableState");function K$({defaultProp:e,onChange:t}){let[a,o]=za.useState(e),i=za.useRef(a),l=za.useRef(t);return Y3(()=>{l.current=t},[t]),za.useEffect(()=>{i.current!==a&&(l.current?.(a),i.current=a)},[a,i]),[a,o,l]}Cp(K$,"useUncontrolledState");function G$(e){return typeof e=="function"}Cp(G$,"isFunction");var Z$=Symbol("RADIX:SYNC_STATE");function X3(e,t,a,o){let{prop:i,defaultProp:l,onChange:r,caller:s}=t,p=i!==void 0,n=jy(r);if(tl){let b=Fa.useRef(i!==void 0);Fa.useEffect(()=>{let x=b.current;x!==p&&console.warn(`${s} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=p},[p,s])}let d=[{...a,state:l}];o&&d.push(o);let[c,u]=Fa.useReducer((b,x)=>{if(x.type===Z$)return{...b,state:x.state};let g=e(b,x);return p&&!Object.is(g.state,b.state)&&n(g.state),g},...d),f=c.state,m=Fa.useRef(f);Fa.useEffect(()=>{m.current!==f&&(m.current=f,p||n(f))},[f,m,p]);let h=Fa.useMemo(()=>i!==void 0?{...c,state:i}:c,[c,i]);return Fa.useEffect(()=>{p&&!Object.is(i,c.state)&&u({type:Z$,state:i})},[i,c.state,p]),[h,u]}Cp(X3,"useControllableStateReducer");var ol={};ma(ol,{Collapsible:()=>eS,CollapsibleContent:()=>aS,CollapsibleTrigger:()=>tS,Content:()=>p6,Root:()=>l6,Trigger:()=>d6,createCollapsibleScope:()=>o6});var gr=j(J(),1);var xr=j(J(),1);var Y$=j(J(),1),Q3=Object.defineProperty,Ko=(e,t)=>Q3(e,"name",{value:t,configurable:!0});function X$(e,t){return Y$.useReducer((a,o)=>t[a][o]??a,e)}Ko(X$,"useStateMachine");var _t=Ko(e=>{let{present:t,children:a}=e,o=Q$(t),i=typeof a=="function"?a({present:o.isPresent}):xr.Children.only(a),l=J$(o.ref,W$(i));return typeof a=="function"||o.isPresent?xr.cloneElement(i,{ref:l}):null},"Presence");function Q$(e){let[t,a]=xr.useState(),o=xr.useRef(null),i=xr.useRef(e),l=xr.useRef("none"),r=xr.useRef(void 0),s=e?"mounted":"unmounted",[p,n]=X$(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return xr.useEffect(()=>{p==="mounted"?(l.current=r.current??al(o.current),r.current=void 0):l.current="none"},[p]),yt(()=>{let d=o.current,c=i.current;if(c!==e){let f=l.current,m=al(d);e?(r.current=m,n("MOUNT")):m==="none"||d?.display==="none"?n("UNMOUNT"):n(c&&f!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,n]),yt(()=>{if(t){let d,c=t.ownerDocument.defaultView??window,u=Ko(m=>{let b=al(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&b&&(n("ANIMATION_END"),!i.current)){let x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},"handleAnimationEnd"),f=Ko(m=>{m.target===t&&(l.current=al(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{c.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else n("ANIMATION_END")},[t,n]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:xr.useCallback(d=>{if(d){let c=getComputedStyle(d);o.current=c,r.current=al(c)}else o.current=null;a(d)},[])}}Ko(Q$,"usePresence");function By(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ko(By,"setRef");function J$(...e){let t=xr.useRef(e);return t.current=e,xr.useCallback(a=>{let o=t.current,i=!1,l=o.map(r=>{let s=By(r,a);return!i&&typeof s=="function"&&(i=!0),s});if(i)return()=>{for(let r=0;r<l.length;r++){let s=l[r];typeof s=="function"?s():By(o[r],null)}}},[])}Ko(J$,"useStableComposedRefs");function al(e){return e?.animationName||"none"}Ko(al,"getAnimationName");function W$(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}Ko(W$,"getElementRef");var Hy=j(J(),1);var J3=Object.defineProperty,W3=(e,t)=>J3(e,"name",{value:t,configurable:!0}),e6=Hy[" useId ".trim().toString()]||(()=>{}),t6=0;function Gt(e){let[t,a]=Hy.useState(e6());return yt(()=>{e||a(o=>o??String(t6++))},[e]),e||(t?`radix-${t}`:"")}W3(Gt,"useId");var Ii=j(oe(),1),r6=Object.defineProperty,zp=(e,t)=>r6(e,"name",{value:t,configurable:!0}),Uy="Collapsible",[a6,o6]=Oe(Uy),[n6,Ly]=a6(Uy),eS=gr.forwardRef(zp(function(t,a){let{__scopeCollapsible:o,open:i,defaultOpen:l,disabled:r,onOpenChange:s,...p}=t,[n,d]=ft({prop:i,defaultProp:l??!1,onChange:s,caller:Uy});return(0,Ii.jsx)(n6,{scope:o,disabled:r,contentId:Gt(),open:n,onOpenToggle:gr.useCallback(()=>d(c=>!c),[d]),children:(0,Ii.jsx)(ne.div,{"data-state":pf(n),"data-disabled":r?"":void 0,...p,ref:a})})},"Collapsible")),i6="CollapsibleTrigger",tS=gr.forwardRef(zp(function(t,a){let{__scopeCollapsible:o,...i}=t,l=Ly(i6,o);return(0,Ii.jsx)(ne.button,{type:"button","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open||!1,"data-state":pf(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...i,ref:a,onClick:K(t.onClick,l.onOpenToggle)})},"CollapsibleTrigger")),rS="CollapsibleContent",aS=gr.forwardRef(zp(function(t,a){let{forceMount:o,...i}=t,l=Ly(rS,t.__scopeCollapsible);return(0,Ii.jsx)(_t,{present:o||l.open,children:({present:r})=>(0,Ii.jsx)(s6,{...i,ref:a,present:r})})},"CollapsibleContent")),s6=gr.forwardRef(zp(function(t,a){let{__scopeCollapsible:o,present:i,children:l,...r}=t,s=Ly(rS,o),[p,n]=gr.useState(i),d=gr.useRef(null),c=le(a,d),u=gr.useRef(0),f=u.current,m=gr.useRef(0),h=m.current,b=s.open||p,x=gr.useRef(b),g=gr.useRef(void 0);return gr.useEffect(()=>{let y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),yt(()=>{let y=d.current;if(y){g.current=g.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";let v=y.getBoundingClientRect();u.current=v.height,m.current=v.width,x.current||(y.style.transitionDuration=g.current.transitionDuration,y.style.animationName=g.current.animationName),n(i)}},[s.open,i]),(0,Ii.jsx)(ne.div,{"data-state":pf(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!b,...r,ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...t.style},children:b&&l})},"CollapsibleContentImpl"));function pf(e){return e?"open":"closed"}zp(pf,"getState");var l6=eS,d6=tS,p6=aS;var cf=j(J(),1),f6=j(oe(),1),c6=Object.defineProperty,u6=(e,t)=>c6(e,"name",{value:t,configurable:!0}),m6=cf.createContext(void 0);function Va(e){let t=cf.useContext(m6);return e||t||"ltr"}u6(Va,"useDirection");var Ya={};ma(Ya,{Action:()=>wD,AlertDialog:()=>VS,AlertDialogAction:()=>JS,AlertDialogCancel:()=>WS,AlertDialogContent:()=>YS,AlertDialogDescription:()=>QS,AlertDialogOverlay:()=>GS,AlertDialogPortal:()=>KS,AlertDialogTitle:()=>XS,AlertDialogTrigger:()=>ZS,Cancel:()=>kD,Content:()=>vD,Description:()=>SD,Overlay:()=>bD,Portal:()=>yD,Root:()=>gD,Title:()=>$D,Trigger:()=>hD,createAlertDialogScope:()=>cD});var Ka=j(J(),1);var Ce={};ma(Ce,{Close:()=>$f,Content:()=>wb,Description:()=>$b,Dialog:()=>hb,DialogClose:()=>$f,DialogContent:()=>wb,DialogDescription:()=>$b,DialogOverlay:()=>vb,DialogPortal:()=>bb,DialogTitle:()=>kb,DialogTrigger:()=>yb,Overlay:()=>vb,Portal:()=>bb,Root:()=>hb,Title:()=>kb,Trigger:()=>yb,WarningProvider:()=>sD,createDialogScope:()=>kf});var ct=j(J(),1);var tt=j(J(),1);var nl=j(J(),1),x6=Object.defineProperty,g6=(e,t)=>x6(e,"name",{value:t,configurable:!0});function kr(e){let t=nl.useRef(e);return nl.useEffect(()=>{t.current=e}),nl.useMemo(()=>((...a)=>t.current?.(...a)),[])}g6(kr,"useCallbackRef");var nS=j(oe(),1),h6=Object.defineProperty,ar=(e,t)=>h6(e,"name",{value:t,configurable:!0}),Fy="dismissableLayer.update",y6="dismissableLayer.pointerDownOutside",b6="dismissableLayer.focusOutside",oS,iS=tt.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),il=tt.forwardRef(ar(function(t,a){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:l,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:p,onDismiss:n,...d}=t,c=tt.useContext(iS),[u,f]=tt.useState(null),m=u?.ownerDocument??globalThis?.document,[,h]=tt.useState({}),b=le(a,f),x=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g?x.indexOf(g):-1,v=u?x.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,R=v>=y,w=tt.useRef(!1),$=sS(C=>{r?.(C),p?.(C),C.defaultPrevented||n?.()},{ownerDocument:m,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:tt.useCallback(C=>{if(!(C instanceof Node))return!1;let N=[...c.branches].some(M=>M.contains(C));return R&&!N},[c.branches,R])}),z=lS(C=>{if(i&&w.current)return;let N=C.target;[...c.branches].some(T=>T.contains(N))||(s?.(C),p?.(C),C.defaultPrevented||n?.())},m),P=u?v===x.length-1:!1,A=kr(C=>{C.key==="Escape"&&(l?.(C),!C.defaultPrevented&&n&&(C.preventDefault(),n()))});return tt.useEffect(()=>{if(P)return m.addEventListener("keydown",A,{capture:!0}),()=>m.removeEventListener("keydown",A,{capture:!0})},[m,P,A]),tt.useEffect(()=>{if(u)return o&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(oS=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Vy(),()=>{o&&(c.layersWithOutsidePointerEventsDisabled.delete(u),c.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=oS))}},[u,m,o,c]),tt.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Vy())},[u,c]),tt.useEffect(()=>{let C=ar(()=>h({}),"handleUpdate");return document.addEventListener(Fy,C),()=>document.removeEventListener(Fy,C)},[]),(0,nS.jsx)(ne.div,{...d,ref:b,style:{pointerEvents:S?R?"auto":"none":void 0,...t.style},onFocusCapture:K(t.onFocusCapture,z.onFocusCapture),onBlurCapture:K(t.onBlurCapture,z.onBlurCapture),onPointerDownCapture:K(t.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));function Zy(){let e=tt.useContext(iS),[t,a]=tt.useState(null);return tt.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),a}ar(Zy,"useDismissableLayerSurface");var v6=ar(()=>!0,"IS_TRUE");function sS(e,t){let{ownerDocument:a=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:l,shouldHandlePointerDownOutside:r=v6}=t,s=kr(e),p=tt.useRef(!1),n=tt.useRef(!1),d=tt.useRef(new Map),c=tt.useRef(()=>{});return tt.useEffect(()=>{function u(){n.current=!1,i.current=!1,d.current.clear()}ar(u,"resetOutsideInteraction");function f(){return Array.from(d.current.values()).some(Boolean)}ar(f,"isOutsideInteractionIntercepted");function m(y){if(!n.current)return;let v=y.target;v instanceof Node&&[...l].some(R=>R.contains(v))||d.current.set(y.type,!0),y.type==="click"&&window.setTimeout(()=>{n.current&&c.current()},0)}ar(m,"handleInteractionCapture");function h(y){n.current&&d.current.set(y.type,!1)}ar(h,"handleInteractionBubble");let b=ar(y=>{if(y.target&&!p.current){let S=function(){a.removeEventListener("click",c.current);let w=f();u(),w||Ky(y6,s,R,{discrete:!0})};var v=S;if(ar(S,"handleAndDispatchPointerDownOutsideEvent"),!r(y.target)){a.removeEventListener("click",c.current),u(),p.current=!1;return}let R={originalEvent:y};n.current=!0,i.current=o&&y.button===0,d.current.clear(),!o||y.button!==0?S():(a.removeEventListener("click",c.current),c.current=S,a.addEventListener("click",c.current,{once:!0}))}else a.removeEventListener("click",c.current),u();p.current=!1},"handlePointerDown"),x=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let y of x)a.addEventListener(y,m,!0),a.addEventListener(y,h);let g=window.setTimeout(()=>{a.addEventListener("pointerdown",b)},0);return()=>{window.clearTimeout(g),a.removeEventListener("pointerdown",b),a.removeEventListener("click",c.current);for(let y of x)a.removeEventListener(y,m,!0),a.removeEventListener(y,h)}},[a,s,o,i,l,r]),{onPointerDownCapture:ar(()=>p.current=!0,"onPointerDownCapture")}}ar(sS,"usePointerDownOutside");function lS(e,t=globalThis?.document){let a=kr(e),o=tt.useRef(!1);return tt.useEffect(()=>{let i=ar(l=>{l.target&&!o.current&&Ky(b6,a,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,a]),{onFocusCapture:ar(()=>o.current=!0,"onFocusCapture"),onBlurCapture:ar(()=>o.current=!1,"onBlurCapture")}}ar(lS,"useFocusOutside");function Vy(){let e=new CustomEvent(Fy);document.dispatchEvent(e)}ar(Vy,"dispatchUpdate");function Ky(e,t,a,{discrete:o}){let i=a.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&i.addEventListener(e,t,{once:!0}),o?Pp(i,l):i.dispatchEvent(l)}ar(Ky,"handleAndDispatchCustomEvent");var Aa=j(J(),1);var cS=j(oe(),1),w6=Object.defineProperty,Mr=(e,t)=>w6(e,"name",{value:t,configurable:!0}),Gy="focusScope.autoFocusOnMount",Yy="focusScope.autoFocusOnUnmount",dS={bubbles:!1,cancelable:!0},sl=Aa.forwardRef(Mr(function(t,a){let{loop:o=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:r,...s}=t,[p,n]=Aa.useState(null),d=kr(l),c=kr(r),u=Aa.useRef(null),f=le(a,n),m=Aa.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Aa.useEffect(()=>{if(i){let y=function(w){if(m.paused||!p)return;let $=w.target;p.contains($)?u.current=$:Go(u.current,{select:!0})},v=function(w){if(m.paused||!p)return;let $=w.relatedTarget;$!==null&&(p.contains($)||Go(u.current,{select:!0}))},S=function(w){if(document.activeElement===document.body)for(let z of w)z.removedNodes.length>0&&Go(p)};var b=y,x=v,g=S;Mr(y,"handleFocusIn"),Mr(v,"handleFocusOut"),Mr(S,"handleMutations"),document.addEventListener("focusin",y),document.addEventListener("focusout",v);let R=new MutationObserver(S);return p&&R.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),R.disconnect()}}},[i,p,m.paused]),Aa.useEffect(()=>{if(p){pS.add(m);let b=document.activeElement;if(!p.contains(b)){let g=new CustomEvent(Gy,dS);p.addEventListener(Gy,d),p.dispatchEvent(g),g.defaultPrevented||(uS(hS(Jy(p)),{select:!0}),document.activeElement===b&&Go(p))}return()=>{p.removeEventListener(Gy,d),setTimeout(()=>{let g=new CustomEvent(Yy,dS);p.addEventListener(Yy,c),p.dispatchEvent(g),g.defaultPrevented||Go(b??document.body,{select:!0}),p.removeEventListener(Yy,c),pS.remove(m)},0)}}},[p,d,c,m]);let h=Aa.useCallback(b=>{if(!o&&!i||m.paused)return;let x=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,g=document.activeElement;if(x&&g){let y=b.currentTarget,[v,S]=fS(y);v&&S?!b.shiftKey&&g===S?(b.preventDefault(),o&&Go(v,{select:!0})):b.shiftKey&&g===v&&(b.preventDefault(),o&&Go(S,{select:!0})):g===y&&b.preventDefault()}},[o,i,m.paused]);return(0,cS.jsx)(ne.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})},"FocusScope"));function uS(e,{select:t=!1}={}){let a=document.activeElement;for(let o of e)if(Go(o,{select:t}),document.activeElement!==a)return}Mr(uS,"focusFirst");function fS(e){let t=Jy(e),a=Xy(t,e),o=Xy(t.reverse(),e);return[a,o]}Mr(fS,"getTabbableEdges");function Jy(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Mr(o=>{let i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}Mr(Jy,"getTabbableCandidates");function Xy(e,t){let a=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(let o of e)if(!(a?!o.checkVisibility({checkVisibilityCSS:!0}):mS(o,{upTo:t})))return o}Mr(Xy,"findVisible");function mS(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Mr(mS,"isHidden");function xS(e){return e instanceof HTMLInputElement&&"select"in e}Mr(xS,"isSelectableInput");function Go(e,{select:t=!1}={}){if(e&&e.focus){let a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&xS(e)&&t&&e.select()}}Mr(Go,"focus");var pS=gS();function gS(){let e=[];return{add(t){let a=e[0];t!==a&&a?.pause(),e=Qy(e,t),e.unshift(t)},remove(t){e=Qy(e,t),e[0]?.resume()}}}Mr(gS,"createFocusScopesStack");function Qy(e,t){let a=[...e],o=a.indexOf(t);return o!==-1&&a.splice(o,1),a}Mr(Qy,"arrayRemove");function hS(e){return e.filter(t=>t.tagName!=="A")}Mr(hS,"removeLinks");var uf=j(J(),1),yS=j(kd(),1);var bS=j(oe(),1),k6=Object.defineProperty,$6=(e,t)=>k6(e,"name",{value:t,configurable:!0}),ll=uf.forwardRef($6(function(t,a){let{container:o,...i}=t,[l,r]=uf.useState(!1);yt(()=>r(!0),[]);let s=o||l&&globalThis?.document?.body;return s?yS.createPortal((0,bS.jsx)(ne.div,{...i,ref:a}),s):null},"Portal"));var vS=j(J(),1),S6=Object.defineProperty,eb=(e,t)=>S6(e,"name",{value:t,configurable:!0}),ff=0,dl=null;function P6(e){return Gn(),e.children}eb(P6,"FocusGuards");function Gn(){vS.useEffect(()=>{dl||(dl={start:Wy(),end:Wy()});let{start:e,end:t}=dl;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ff++,()=>{ff===1&&(dl?.start.remove(),dl?.end.remove(),dl=null),ff=Math.max(0,ff-1)}},[])}eb(Gn,"useFocusGuards");function Wy(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}eb(Wy,"createFocusGuard");var Jr=function(){return Jr=Object.assign||function(t){for(var a,o=1,i=arguments.length;o<i;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},Jr.apply(this,arguments)};function mf(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(a[o[i]]=e[o[i]]);return a}function wS(e,t,a){if(a||arguments.length===2)for(var o=0,i=t.length,l;o<i;o++)(l||!(o in t))&&(l||(l=Array.prototype.slice.call(t,0,o)),l[o]=t[o]);return e.concat(l||Array.prototype.slice.call(t))}var bf=j(J());var $r=j(J());var Mi="right-scroll-bar-position",_i="width-before-scroll-bar",tb="with-scroll-bars-hidden",rb="--removed-body-scroll-bar-size";function xf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var kS=j(J());function $S(e,t){var a=(0,kS.useState)(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(o){var i=a.value;i!==o&&(a.value=o,a.callback(o,i))}}}})[0];return a.callback=t,a.facade}var gf=j(J());var C6=typeof window<"u"?gf.useLayoutEffect:gf.useEffect,SS=new WeakMap;function ab(e,t){var a=$S(t||null,function(o){return e.forEach(function(i){return xf(i,o)})});return C6(function(){var o=SS.get(a);if(o){var i=new Set(o),l=new Set(e),r=a.current;i.forEach(function(s){l.has(s)||xf(s,null)}),l.forEach(function(s){i.has(s)||xf(s,r)})}SS.set(a,e)},[e]),a}function z6(e){return e}function A6(e,t){t===void 0&&(t=z6);var a=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(l){var r=t(l,o);return a.push(r),function(){a=a.filter(function(s){return s!==r})}},assignSyncMedium:function(l){for(o=!0;a.length;){var r=a;a=[],r.forEach(l)}a={push:function(s){return l(s)},filter:function(){return a}}},assignMedium:function(l){o=!0;var r=[];if(a.length){var s=a;a=[],s.forEach(l),r=a}var p=function(){var d=r;r=[],d.forEach(l)},n=function(){return Promise.resolve().then(p)};n(),a={push:function(d){r.push(d),n()},filter:function(d){return r=r.filter(d),a}}}};return i}function ob(e){e===void 0&&(e={});var t=A6(null);return t.options=Jr({async:!0,ssr:!1},e),t}var PS=j(J()),CS=function(e){var t=e.sideCar,a=mf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return PS.createElement(o,Jr({},a))};CS.isSideCarExport=!0;function nb(e,t){return e.useMedium(t),CS}var hf=ob();var ib=function(){},Ap=$r.forwardRef(function(e,t){var a=$r.useRef(null),o=$r.useState({onScrollCapture:ib,onWheelCapture:ib,onTouchMoveCapture:ib}),i=o[0],l=o[1],r=e.forwardProps,s=e.children,p=e.className,n=e.removeScrollBar,d=e.enabled,c=e.shards,u=e.sideCar,f=e.noRelative,m=e.noIsolation,h=e.inert,b=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,y=e.gapMode,v=mf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=u,R=ab([a,t]),w=Jr(Jr({},v),i);return $r.createElement($r.Fragment,null,d&&$r.createElement(S,{sideCar:hf,removeScrollBar:n,shards:c,noRelative:f,noIsolation:m,inert:h,setCallbacks:l,allowPinchZoom:!!b,lockRef:a,gapMode:y}),r?$r.cloneElement($r.Children.only(s),Jr(Jr({},w),{ref:R})):$r.createElement(g,Jr({},w,{className:p,ref:R}),s))});Ap.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ap.classNames={fullWidth:_i,zeroRight:Mi};var mt=j(J());var cl=j(J());var RS=j(J());var zS;var AS=function(){if(zS)return zS;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function R6(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AS();return t&&e.setAttribute("nonce",t),e}function N6(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D6(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var sb=function(){var e=0,t=null;return{add:function(a){e==0&&(t=R6())&&(N6(t,a),D6(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var lb=function(){var e=sb();return function(t,a){RS.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}};var Rp=function(){var e=lb(),t=function(a){var o=a.styles,i=a.dynamic;return e(o,i),null};return t};var T6={left:0,top:0,right:0,gap:0},db=function(e){return parseInt(e||"",10)||0},E6=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[db(a),db(o),db(i)]},pb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T6;var t=E6(e),a=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-a+t[2]-t[0])}};var I6=Rp(),pl="data-scroll-locked",M6=function(e,t,a,o){var i=e.left,l=e.top,r=e.right,s=e.gap;return a===void 0&&(a="margin"),`
|
|
10
|
+
.`.concat(tb,` {
|
|
11
|
+
overflow: hidden `).concat(o,`;
|
|
12
|
+
padding-right: `).concat(s,"px ").concat(o,`;
|
|
13
|
+
}
|
|
14
|
+
body[`).concat(pl,`] {
|
|
15
|
+
overflow: hidden `).concat(o,`;
|
|
16
|
+
overscroll-behavior: contain;
|
|
17
|
+
`).concat([t&&"position: relative ".concat(o,";"),a==="margin"&&`
|
|
18
|
+
padding-left: `.concat(i,`px;
|
|
19
|
+
padding-top: `).concat(l,`px;
|
|
20
|
+
padding-right: `).concat(r,`px;
|
|
21
|
+
margin-left:0;
|
|
22
|
+
margin-top:0;
|
|
23
|
+
margin-right: `).concat(s,"px ").concat(o,`;
|
|
24
|
+
`),a==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.`).concat(Mi,` {
|
|
28
|
+
right: `).concat(s,"px ").concat(o,`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.`).concat(_i,` {
|
|
32
|
+
margin-right: `).concat(s,"px ").concat(o,`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.`).concat(Mi," .").concat(Mi,` {
|
|
36
|
+
right: 0 `).concat(o,`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.`).concat(_i," .").concat(_i,` {
|
|
40
|
+
margin-right: 0 `).concat(o,`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
body[`).concat(pl,`] {
|
|
44
|
+
`).concat(rb,": ").concat(s,`px;
|
|
45
|
+
}
|
|
46
|
+
`)},NS=function(){var e=parseInt(document.body.getAttribute(pl)||"0",10);return isFinite(e)?e:0},_6=function(){cl.useEffect(function(){return document.body.setAttribute(pl,(NS()+1).toString()),function(){var e=NS()-1;e<=0?document.body.removeAttribute(pl):document.body.setAttribute(pl,e.toString())}},[])},cb=function(e){var t=e.noRelative,a=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;_6();var l=cl.useMemo(function(){return pb(i)},[i]);return cl.createElement(I6,{styles:M6(l,!t,i,a?"":"!important")})};var ub=!1;if(typeof window<"u")try{Np=Object.defineProperty({},"passive",{get:function(){return ub=!0,!0}}),window.addEventListener("test",Np,Np),window.removeEventListener("test",Np,Np)}catch{ub=!1}var Np,Oi=ub?{passive:!1}:!1;var O6=function(e){return e.tagName==="TEXTAREA"},DS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!O6(e)&&a[t]==="visible")},q6=function(e){return DS(e,"overflowY")},j6=function(e){return DS(e,"overflowX")},fb=function(e,t){var a=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=TS(e,o);if(i){var l=ES(e,o),r=l[1],s=l[2];if(r>s)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},B6=function(e){var t=e.scrollTop,a=e.scrollHeight,o=e.clientHeight;return[t,a,o]},H6=function(e){var t=e.scrollLeft,a=e.scrollWidth,o=e.clientWidth;return[t,a,o]},TS=function(e,t){return e==="v"?q6(t):j6(t)},ES=function(e,t){return e==="v"?B6(t):H6(t)},U6=function(e,t){return e==="h"&&t==="rtl"?-1:1},IS=function(e,t,a,o,i){var l=U6(e,window.getComputedStyle(t).direction),r=l*o,s=a.target,p=t.contains(s),n=!1,d=r>0,c=0,u=0;do{if(!s)break;var f=ES(e,s),m=f[0],h=f[1],b=f[2],x=h-b-l*m;(m||x)&&TS(e,s)&&(c+=x,u+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!p&&s!==document.body||p&&(t.contains(s)||t===s));return(d&&(i&&Math.abs(c)<1||!i&&r>c)||!d&&(i&&Math.abs(u)<1||!i&&-r>u))&&(n=!0),n};var yf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},MS=function(e){return[e.deltaX,e.deltaY]},_S=function(e){return e&&"current"in e?e.current:e},L6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},F6=function(e){return`
|
|
47
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
48
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
49
|
+
`)},V6=0,ul=[];function OS(e){var t=mt.useRef([]),a=mt.useRef([0,0]),o=mt.useRef(),i=mt.useState(V6++)[0],l=mt.useState(Rp)[0],r=mt.useRef(e);mt.useEffect(function(){r.current=e},[e]),mt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var h=wS([e.lockRef.current],(e.shards||[]).map(_S),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=mt.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!r.current.allowPinchZoom;var x=yf(h),g=a.current,y="deltaX"in h?h.deltaX:g[0]-x[0],v="deltaY"in h?h.deltaY:g[1]-x[1],S,R=h.target,w=Math.abs(y)>Math.abs(v)?"h":"v";if("touches"in h&&w==="h"&&R.type==="range")return!1;var $=window.getSelection(),z=$&&$.anchorNode,P=z?z===R||z.contains(R):!1;if(P)return!1;var A=fb(w,R);if(!A)return!0;if(A?S=w:(S=w==="v"?"h":"v",A=fb(w,R)),!A)return!1;if(!o.current&&"changedTouches"in h&&(y||v)&&(o.current=S),!S)return!0;var C=o.current||S;return IS(C,b,h,C==="h"?y:v,!0)},[]),p=mt.useCallback(function(h){var b=h;if(!(!ul.length||ul[ul.length-1]!==l)){var x="deltaY"in b?MS(b):yf(b),g=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&L6(S.delta,x)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var y=(r.current.shards||[]).map(_S).filter(Boolean).filter(function(S){return S.contains(b.target)}),v=y.length>0?s(b,y[0]):!r.current.noIsolation;v&&b.cancelable&&b.preventDefault()}}},[]),n=mt.useCallback(function(h,b,x,g){var y={name:h,delta:b,target:x,should:g,shadowParent:Z6(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(v){return v!==y})},1)},[]),d=mt.useCallback(function(h){a.current=yf(h),o.current=void 0},[]),c=mt.useCallback(function(h){n(h.type,MS(h),h.target,s(h,e.lockRef.current))},[]),u=mt.useCallback(function(h){n(h.type,yf(h),h.target,s(h,e.lockRef.current))},[]);mt.useEffect(function(){return ul.push(l),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:u}),document.addEventListener("wheel",p,Oi),document.addEventListener("touchmove",p,Oi),document.addEventListener("touchstart",d,Oi),function(){ul=ul.filter(function(h){return h!==l}),document.removeEventListener("wheel",p,Oi),document.removeEventListener("touchmove",p,Oi),document.removeEventListener("touchstart",d,Oi)}},[]);var f=e.removeScrollBar,m=e.inert;return mt.createElement(mt.Fragment,null,m?mt.createElement(l,{styles:F6(i)}):null,f?mt.createElement(cb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Z6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var qS=nb(hf,OS);var jS=bf.forwardRef(function(e,t){return bf.createElement(Ap,Jr({},e,{ref:t,sideCar:qS}))});jS.classNames=Ap.classNames;var qi=jS;var K6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fl=new WeakMap,vf=new WeakMap,wf={},mb=0,BS=function(e){return e&&(e.host||BS(e.parentNode))},G6=function(e,t){return t.map(function(a){if(e.contains(a))return a;var o=BS(a);return o&&e.contains(o)?o:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},Y6=function(e,t,a,o){var i=G6(t,Array.isArray(e)?e:[e]);wf[a]||(wf[a]=new WeakMap);var l=wf[a],r=[],s=new Set,p=new Set(i),n=function(c){!c||s.has(c)||(s.add(c),n(c.parentNode))};i.forEach(n);var d=function(c){!c||p.has(c)||Array.prototype.forEach.call(c.children,function(u){if(s.has(u))d(u);else try{var f=u.getAttribute(o),m=f!==null&&f!=="false",h=(fl.get(u)||0)+1,b=(l.get(u)||0)+1;fl.set(u,h),l.set(u,b),r.push(u),h===1&&m&&vf.set(u,!0),b===1&&u.setAttribute(a,"true"),m||u.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",u,x)}})};return d(t),s.clear(),mb++,function(){r.forEach(function(c){var u=fl.get(c)-1,f=l.get(c)-1;fl.set(c,u),l.set(c,f),u||(vf.has(c)||c.removeAttribute(o),vf.delete(c)),f||c.removeAttribute(a)}),mb--,mb||(fl=new WeakMap,fl=new WeakMap,vf=new WeakMap,wf={})}},ml=function(e,t,a){a===void 0&&(a="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||K6(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),Y6(o,i,a,"aria-hidden")):function(){return null}};var St=j(oe(),1),X6=Object.defineProperty,Wr=(e,t)=>X6(e,"name",{value:t,configurable:!0}),gb="Dialog",[HS,kf]=Oe(gb),[Q6,Za]=HS(gb),hb=Wr(e=>{let{__scopeDialog:t,children:a,open:o,defaultOpen:i,onOpenChange:l,modal:r=!0}=e,s=ct.useRef(null),p=ct.useRef(null),[n,d]=ft({prop:o,defaultProp:i??!1,onChange:l,caller:gb}),[c,u]=ct.useState(0),[f,m]=ct.useState(0);return(0,St.jsx)(Q6,{scope:t,triggerRef:s,contentRef:p,contentId:Gt(),titleId:Gt(),descriptionId:Gt(),titlePresent:c>0,descriptionPresent:f>0,setTitleCount:u,setDescriptionCount:m,open:n,onOpenChange:d,onOpenToggle:ct.useCallback(()=>d(h=>!h),[d]),modal:r,children:a})},"Dialog"),J6="DialogTrigger",yb=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,...i}=t,l=Za(J6,o),r=le(a,l.triggerRef);return(0,St.jsx)(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":Sf(l.open),...i,ref:r,onClick:K(t.onClick,l.onOpenToggle)})},"DialogTrigger")),US="DialogPortal",[W6,LS]=HS(US,{forceMount:void 0}),bb=Wr(e=>{let{__scopeDialog:t,forceMount:a,children:o,container:i}=e,l=Za(US,t);return(0,St.jsx)(W6,{scope:t,forceMount:a,children:ct.Children.map(o,r=>(0,St.jsx)(_t,{present:a||l.open,children:(0,St.jsx)(ll,{asChild:!0,container:i,children:r})}))})},"DialogPortal"),xb="DialogOverlay",vb=ct.forwardRef(Wr(function(t,a){let o=LS(xb,t.__scopeDialog),{forceMount:i=o.forceMount,...l}=t,r=Za(xb,t.__scopeDialog);return r.modal?(0,St.jsx)(_t,{present:i||r.open,children:(0,St.jsx)(tD,{...l,ref:a})}):null},"DialogOverlay")),eD=Ir("DialogOverlay.RemoveScroll"),tD=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,...i}=t,l=Za(xb,o),r=Zy(),s=le(a,r);return(0,St.jsx)(qi,{as:eD,allowPinchZoom:!0,shards:[l.contentRef],children:(0,St.jsx)(ne.div,{"data-state":Sf(l.open),...i,ref:s,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),Dp="DialogContent",wb=ct.forwardRef(Wr(function(t,a){let o=LS(Dp,t.__scopeDialog),{forceMount:i=o.forceMount,...l}=t,r=Za(Dp,t.__scopeDialog);return(0,St.jsx)(_t,{present:i||r.open,children:r.modal?(0,St.jsx)(rD,{...l,ref:a}):(0,St.jsx)(aD,{...l,ref:a})})},"DialogContent")),rD=ct.forwardRef(Wr(function(t,a){let o=Za(Dp,t.__scopeDialog),i=ct.useRef(null),l=le(a,o.contentRef,i);return ct.useEffect(()=>{let r=i.current;if(r)return ml(r)},[]),(0,St.jsx)(FS,{...t,ref:l,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:K(t.onCloseAutoFocus,r=>{r.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:K(t.onPointerDownOutside,r=>{let s=r.detail.originalEvent,p=s.button===0&&s.ctrlKey===!0;(s.button===2||p)&&r.preventDefault()}),onFocusOutside:K(t.onFocusOutside,r=>r.preventDefault())})},"DialogContentModal")),aD=ct.forwardRef(Wr(function(t,a){let o=Za(Dp,t.__scopeDialog),i=ct.useRef(!1),l=ct.useRef(!1);return(0,St.jsx)(FS,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(i.current||o.triggerRef.current?.focus(),r.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(i.current=!0,r.detail.originalEvent.type==="pointerdown"&&(l.current=!0));let s=r.target;o.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&l.current&&r.preventDefault()}})},"DialogContentNonModal")),FS=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:r,...s}=t,p=Za(Dp,o);return Gn(),(0,St.jsx)(St.Fragment,{children:(0,St.jsx)(sl,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:r,children:(0,St.jsx)(il,{role:"dialog",id:p.contentId,"aria-describedby":p.descriptionPresent?p.descriptionId:void 0,"aria-labelledby":p.titlePresent?p.titleId:void 0,"data-state":Sf(p.open),...s,ref:a,deferPointerDownOutside:!0,onDismiss:()=>p.onOpenChange(!1)})})})},"DialogContentImpl")),oD="DialogTitle",kb=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,...i}=t,l=Za(oD,o),{setTitleCount:r}=l;return yt(()=>(r(s=>s+1),()=>r(s=>s-1)),[r]),(0,St.jsx)(ne.h2,{id:l.titleId,...i,ref:a})},"DialogTitle")),nD="DialogDescription",$b=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,...i}=t,l=Za(nD,o),{setDescriptionCount:r}=l;return yt(()=>(r(s=>s+1),()=>r(s=>s-1)),[r]),(0,St.jsx)(ne.p,{id:l.descriptionId,...i,ref:a})},"DialogDescription")),iD="DialogClose",$f=ct.forwardRef(Wr(function(t,a){let{__scopeDialog:o,...i}=t,l=Za(iD,o);return(0,St.jsx)(ne.button,{type:"button",...i,ref:a,onClick:K(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose")),sD=Wr(e=>e.children,"WarningProvider");function Sf(e){return e?"open":"closed"}Wr(Sf,"getState");var Ga=j(oe(),1),lD=Object.defineProperty,Yo=(e,t)=>lD(e,"name",{value:t,configurable:!0}),dD="AlertDialog",[pD,cD]=Oe(dD,[kf]),Xo=kf(),VS=Yo(e=>{let{__scopeAlertDialog:t,...a}=e,o=Xo(t);return(0,Ga.jsx)(hb,{...o,...a,modal:!0})},"AlertDialog"),ZS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,l=Xo(o);return(0,Ga.jsx)(yb,{...l,...i,ref:a})},"AlertDialogTrigger")),KS=Yo(e=>{let{__scopeAlertDialog:t,...a}=e,o=Xo(t);return(0,Ga.jsx)(bb,{...o,...a})},"AlertDialogPortal"),GS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,l=Xo(o);return(0,Ga.jsx)(vb,{...l,...i,ref:a})},"AlertDialogOverlay")),uD="AlertDialogContent",[fD,mD]=pD(uD),YS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,children:i,...l}=t,r=Xo(o),s=Ka.useRef(null),p=le(a,s),n=Ka.useRef(null);return(0,Ga.jsx)(fD,{scope:o,cancelRef:n,children:(0,Ga.jsx)(wb,{role:"alertdialog",...r,...l,ref:p,onOpenAutoFocus:K(l.onOpenAutoFocus,d=>{d.preventDefault(),n.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:i})})},"AlertDialogContent")),XS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,l=Xo(o);return(0,Ga.jsx)(kb,{...l,...i,ref:a})},"AlertDialogTitle")),QS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,l=Xo(o);return(0,Ga.jsx)($b,{...l,...i,ref:a})},"AlertDialogDescription")),JS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,l=Xo(o);return(0,Ga.jsx)($f,{...l,...i,ref:a})},"AlertDialogAction")),xD="AlertDialogCancel",WS=Ka.forwardRef(Yo(function(t,a){let{__scopeAlertDialog:o,...i}=t,{cancelRef:l}=mD(xD,o),r=Xo(o),s=le(a,l);return(0,Ga.jsx)($f,{...r,...i,ref:s})},"AlertDialogCancel")),gD=VS,hD=ZS,yD=KS,bD=GS,vD=YS,wD=JS,kD=WS,$D=XS,SD=QS;var qt={};ma(qt,{Checkbox:()=>TD,CheckboxIndicator:()=>ID,Indicator:()=>ID,Root:()=>TD,createCheckboxScope:()=>RD,unstable_BubbleInput:()=>rP,unstable_CheckboxBubbleInput:()=>rP,unstable_CheckboxProvider:()=>Cb,unstable_CheckboxTrigger:()=>tP,unstable_Provider:()=>Cb,unstable_Trigger:()=>tP});var Ot=j(J(),1);var eP=j(J(),1);var PD=Object.defineProperty,CD=(e,t)=>PD(e,"name",{value:t,configurable:!0});function Xa(e){let[t,a]=eP.useState(void 0);return yt(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;let l=i[0],r,s;if("borderBoxSize"in l){let p=l.borderBoxSize,n=Array.isArray(p)?p[0]:p;r=n.inlineSize,s=n.blockSize}else r=e.offsetWidth,s=e.offsetHeight;a({width:r,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else a(void 0)},[e]),t}CD(Xa,"useSize");var ua=j(oe(),1),zD=Object.defineProperty,Jo=(e,t)=>zD(e,"name",{value:t,configurable:!0}),Sb="Checkbox",[AD,RD]=Oe(Sb),[ND,Pb]=AD(Sb);function Cb(e){let{__scopeCheckbox:t,checked:a,children:o,defaultChecked:i,disabled:l,form:r,name:s,onCheckedChange:p,required:n,value:d="on",internal_do_not_use_render:c}=e,[u,f]=ft({prop:a,defaultProp:i??!1,onChange:p,caller:Sb}),[m,h]=Ot.useState(null),[b,x]=Ot.useState(null),g=Ot.useRef(!1),[y,v]=Ot.useReducer(w=>w+1,0),S=m?!!r||!!m.closest("form"):!0,R={checked:u,disabled:l,setChecked:f,control:m,setControl:h,name:s,form:r,value:d,hasConsumerStoppedPropagationRef:g,userInteractionCount:y,onUserInteraction:v,required:n,defaultChecked:Qo(i)?!1:i,isFormControl:S,bubbleInput:b,setBubbleInput:x};return(0,ua.jsx)(ND,{scope:t,...R,children:aP(c)?c(R):o})}Jo(Cb,"CheckboxProvider");var DD="CheckboxTrigger",tP=Ot.forwardRef(Jo(function({__scopeCheckbox:t,onKeyDown:a,onClick:o,...i},l){let{control:r,value:s,disabled:p,checked:n,required:d,setControl:c,setChecked:u,hasConsumerStoppedPropagationRef:f,onUserInteraction:m,isFormControl:h,bubbleInput:b}=Pb(DD,t),x=le(l,c),g=Ot.useRef(n);return Ot.useEffect(()=>{let y=r?.form;if(y){let v=Jo(()=>u(g.current),"reset");return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[r,u]),(0,ua.jsx)(ne.button,{type:"button",role:"checkbox","aria-checked":Qo(n)?"mixed":n,"aria-required":d,"data-state":zb(n),"data-disabled":p?"":void 0,disabled:p,value:s,...i,ref:x,onKeyDown:K(a,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:K(o,y=>{m(),u(v=>Qo(v)?!0:!v),b&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})},"CheckboxTrigger")),TD=Ot.forwardRef(Jo(function(t,a){let{__scopeCheckbox:o,name:i,checked:l,defaultChecked:r,required:s,disabled:p,value:n,onCheckedChange:d,form:c,...u}=t;return(0,ua.jsx)(Cb,{__scopeCheckbox:o,checked:l,defaultChecked:r,disabled:p,required:s,onCheckedChange:d,name:i,form:c,value:n,internal_do_not_use_render:({isFormControl:f})=>(0,ua.jsxs)(ua.Fragment,{children:[(0,ua.jsx)(tP,{...u,ref:a,__scopeCheckbox:o}),f&&(0,ua.jsx)(rP,{__scopeCheckbox:o})]})})},"Checkbox")),ED="CheckboxIndicator",ID=Ot.forwardRef(Jo(function(t,a){let{__scopeCheckbox:o,forceMount:i,...l}=t,r=Pb(ED,o);return(0,ua.jsx)(_t,{present:i||Qo(r.checked)||r.checked===!0,children:(0,ua.jsx)(ne.span,{"data-state":zb(r.checked),"data-disabled":r.disabled?"":void 0,...l,ref:a,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),MD="CheckboxBubbleInput",rP=Ot.forwardRef(Jo(function({__scopeCheckbox:t,onClick:a,...o},i){let{control:l,hasConsumerStoppedPropagationRef:r,userInteractionCount:s,checked:p,defaultChecked:n,required:d,disabled:c,name:u,value:f,form:m,bubbleInput:h,setBubbleInput:b}=Pb(MD,t),x=le(i,b),g=Xa(l),y=Ot.useRef(!1),v=Ot.useRef(p),S=Ot.useRef(s);Ot.useEffect(()=>{let w=h;if(!w)return;let $=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor($,"checked").set,A=s!==S.current;S.current=s;let C=v.current!==p;v.current=p;let N=!(A&&r.current);if(C&&P){y.current=!A;let M=new Event("click",{bubbles:N});w.indeterminate=Qo(p),P.call(w,Qo(p)?!1:p),w.dispatchEvent(M),y.current=!1}},[h,p,r,s]);let R=Ot.useRef(Qo(p)?!1:p);return(0,ua.jsx)(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:n??R.current,required:d,disabled:c,name:u,value:f,form:m,...o,tabIndex:-1,ref:x,onClick:K(a,w=>{y.current&&w.stopPropagation()}),style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function aP(e){return typeof e=="function"}Jo(aP,"isFunction");function Qo(e){return e==="indeterminate"}Jo(Qo,"isIndeterminate");function zb(e){return Qo(e)?"indeterminate":e?"checked":"unchecked"}Jo(zb,"getState");var Wn={};ma(Wn,{Arrow:()=>_E,CheckboxItem:()=>DE,Content:()=>zE,ContextMenu:()=>OC,ContextMenuArrow:()=>YC,ContextMenuCheckboxItem:()=>FC,ContextMenuContent:()=>BC,ContextMenuGroup:()=>HC,ContextMenuItem:()=>LC,ContextMenuItemIndicator:()=>KC,ContextMenuLabel:()=>UC,ContextMenuPortal:()=>jC,ContextMenuRadioGroup:()=>VC,ContextMenuRadioItem:()=>ZC,ContextMenuSeparator:()=>GC,ContextMenuSub:()=>XC,ContextMenuSubContent:()=>JC,ContextMenuSubTrigger:()=>QC,ContextMenuTrigger:()=>qC,Group:()=>AE,Item:()=>NE,ItemIndicator:()=>IE,Label:()=>RE,Portal:()=>CE,RadioGroup:()=>TE,RadioItem:()=>EE,Root:()=>SE,Separator:()=>ME,Sub:()=>OE,SubContent:()=>jE,SubTrigger:()=>qE,Trigger:()=>PE,createContextMenuScope:()=>bE});var Qe=j(J(),1);var de=j(J(),1);var hr=j(J(),1);var iP=["top","right","bottom","left"];var So=Math.min,Qa=Math.max,Ep=Math.round,Ip=Math.floor,Po=e=>({x:e,y:e}),_D={left:"right",right:"left",bottom:"top",top:"bottom"};function Ab(e,t,a){return Qa(e,So(t,a))}function Co(e,t){return typeof e=="function"?e(t):e}function Wo(e){return e.split("-")[0]}function ji(e){return e.split("-")[1]}function Cf(e){return e==="x"?"y":"x"}function zf(e){return e==="y"?"height":"width"}function Ja(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function Af(e){return Cf(Ja(e))}function sP(e,t,a){a===void 0&&(a=!1);let o=ji(e),i=Af(e),l=zf(i),r=i==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=Tp(r)),[r,Tp(r)]}function lP(e){let t=Tp(e);return[Pf(e),t,Pf(t)]}function Pf(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var oP=["left","right"],nP=["right","left"],OD=["top","bottom"],qD=["bottom","top"];function jD(e,t,a){switch(e){case"top":case"bottom":return a?t?nP:oP:t?oP:nP;case"left":case"right":return t?OD:qD;default:return[]}}function dP(e,t,a,o){let i=ji(e),l=jD(Wo(e),a==="start",o);return i&&(l=l.map(r=>r+"-"+i),t&&(l=l.concat(l.map(Pf)))),l}function Tp(e){let t=Wo(e);return _D[t]+e.slice(t.length)}function BD(e){var t,a,o,i;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(i=e.left)!=null?i:0}}function Rb(e){return typeof e!="number"?BD(e):{top:e,right:e,bottom:e,left:e}}function Bi(e){let{x:t,y:a,width:o,height:i}=e;return{width:o,height:i,top:a,left:t,right:t+o,bottom:a+i,x:t,y:a}}function pP(e,t,a){let{reference:o,floating:i}=e,l=Ja(t),r=Af(t),s=zf(r),p=Wo(t),n=l==="y",d=o.x+o.width/2-i.width/2,c=o.y+o.height/2-i.height/2,u=o[s]/2-i[s]/2,f;switch(p){case"top":f={x:d,y:o.y-i.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:c};break;case"left":f={x:o.x-i.width,y:c};break;default:f={x:o.x,y:o.y}}let m=ji(t);return m&&(f[r]+=u*(m==="end"?1:-1)*(a&&n?-1:1)),f}async function fP(e,t){var a;t===void 0&&(t={});let{x:o,y:i,platform:l,rects:r,elements:s,strategy:p}=e,{boundary:n="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:u=!1,padding:f=0}=Co(t,e),m=Rb(f),b=s[u?c==="floating"?"reference":"floating":c],x=Bi(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(b)))==null||a?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:n,rootBoundary:d,strategy:p})),g=c==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,y=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),v=await(l.isElement==null?void 0:l.isElement(y))&&await(l.getScale==null?void 0:l.getScale(y))||{x:1,y:1},S=Bi(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:p}):g);return{top:(x.top-S.top+m.top)/v.y,bottom:(S.bottom-x.bottom+m.bottom)/v.y,left:(x.left-S.left+m.left)/v.x,right:(S.right-x.right+m.right)/v.x}}var HD=50,mP=async(e,t,a)=>{let{placement:o="bottom",strategy:i="absolute",middleware:l=[],platform:r}=a,s=r.detectOverflow?r:{...r,detectOverflow:fP},p=await(r.isRTL==null?void 0:r.isRTL(t)),n=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=pP(n,o,p),u=o,f=0,m={};for(let h=0;h<l.length;h++){let b=l[h];if(!b)continue;let{name:x,fn:g}=b,{x:y,y:v,data:S,reset:R}=await g({x:d,y:c,initialPlacement:o,placement:u,strategy:i,middlewareData:m,rects:n,platform:s,elements:{reference:e,floating:t}});d=y??d,c=v??c,m[x]={...m[x],...S},R&&f<HD&&(f++,typeof R=="object"&&(R.placement&&(u=R.placement),R.rects&&(n=R.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:d,y:c}=pP(n,u,p)),h=-1)}return{x:d,y:c,placement:u,strategy:i,middlewareData:m}},xP=e=>({name:"arrow",options:e,async fn(t){let{x:a,y:o,placement:i,rects:l,platform:r,elements:s,middlewareData:p}=t,{element:n,padding:d=0}=Co(e,t)||{};if(n==null)return{};let c=Rb(d),u={x:a,y:o},f=Af(i),m=zf(f),h=await r.getDimensions(n),b=f==="y",x=b?"top":"left",g=b?"bottom":"right",y=b?"clientHeight":"clientWidth",v=l.reference[m]+l.reference[f]-u[f]-l.floating[m],S=u[f]-l.reference[f],R=await(r.getOffsetParent==null?void 0:r.getOffsetParent(n)),w=R?R[y]:0;(!w||!await(r.isElement==null?void 0:r.isElement(R)))&&(w=s.floating[y]||l.floating[m]);let $=v/2-S/2,z=w/2-h[m]/2-1,P=So(c[x],z),A=So(c[g],z),C=w-h[m]-A,N=w/2-h[m]/2+$,M=Ab(P,N,C),T=!p.arrow&&ji(i)!=null&&N!==M&&l.reference[m]/2-(N<P?P:A)-h[m]/2<0,D=T?N<P?N-P:N-C:0;return{[f]:u[f]+D,data:{[f]:M,centerOffset:N-M-D,...T&&{alignmentOffset:D}},reset:T}}});var gP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,o;let{placement:i,middlewareData:l,rects:r,initialPlacement:s,platform:p,elements:n}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...b}=Co(e,t);if((a=l.arrow)!=null&&a.alignmentOffset)return{};let x=Wo(i),g=Ja(s),y=Wo(s)===s,v=await(p.isRTL==null?void 0:p.isRTL(n.floating)),S=u||(y||!h?[Tp(s)]:lP(s)),R=m!=="none";!u&&R&&S.push(...dP(s,h,m,v));let w=[s,...S],$=await p.detectOverflow(t,b),z=[],P=((o=l.flip)==null?void 0:o.overflows)||[];if(d&&z.push($[x]),c){let M=sP(i,r,v);z.push($[M[0]],$[M[1]])}if(P=[...P,{placement:i,overflows:z}],!z.every(M=>M<=0)){var A,C;let M=(((A=l.flip)==null?void 0:A.index)||0)+1,T=w[M];if(T&&(!(c==="alignment"?g!==Ja(T):!1)||P.every(U=>Ja(U.placement)===g?U.overflows[0]>0:!0)))return{data:{index:M,overflows:P},reset:{placement:T}};let D=(C=P.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:C.placement;if(!D)switch(f){case"bestFit":{var N;let B=(N=P.filter(U=>{if(R){let Z=Ja(U.placement);return Z===g||Z==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(Z=>Z>0).reduce((Z,G)=>Z+G,0)]).sort((U,Z)=>U[1]-Z[1])[0])==null?void 0:N[0];B&&(D=B);break}case"initialPlacement":D=s;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function cP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uP(e){return iP.some(t=>e[t]>=0)}var hP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:a,platform:o}=t,{strategy:i="referenceHidden",...l}=Co(e,t);switch(i){case"referenceHidden":{let r=await o.detectOverflow(t,{...l,elementContext:"reference"}),s=cP(r,a.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:uP(s)}}}case"escaped":{let r=await o.detectOverflow(t,{...l,altBoundary:!0}),s=cP(r,a.floating);return{data:{escapedOffsets:s,escaped:uP(s)}}}default:return{}}}}};var yP=new Set(["left","top"]);async function UD(e,t){let{placement:a,platform:o,elements:i}=e,l=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=Wo(a),s=ji(a),p=Ja(a)==="y",n=yP.has(r)?-1:1,d=l&&p?-1:1,c=Co(t,e),{mainAxis:u,crossAxis:f,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof m=="number"&&(f=s==="end"?m*-1:m),p?{x:f*d,y:u*n}:{x:u*n,y:f*d}}var bP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,o;let{x:i,y:l,placement:r,middlewareData:s}=t,p=await UD(t,e);return r===((a=s.offset)==null?void 0:a.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:i+p.x,y:l+p.y,data:{...p,placement:r}}}}},vP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:i,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:p={fn:g=>{let{x:y,y:v}=g;return{x:y,y:v}}},...n}=Co(e,t),d={x:a,y:o},c=await l.detectOverflow(t,n),u=Ja(i),f=Cf(u),m=d[f],h=d[u],b=(g,y)=>Ab(y+c[g==="y"?"top":"left"],y,y-c[g==="y"?"bottom":"right"]);r&&(m=b(f,m)),s&&(h=b(u,h));let x=p.fn({...t,[f]:m,[u]:h});return{...x,data:{x:x.x-a,y:x.y-o,enabled:{[f]:r,[u]:s}}}}}},wP=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,o;let{x:i,y:l,placement:r,rects:s,middlewareData:p}=t,{offset:n=0,mainAxis:d=!0,crossAxis:c=!0}=Co(e,t),u={x:i,y:l},f=Ja(r),m=Cf(f),h=u[m],b=u[f],x=Co(n,t),g=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:(a=x.mainAxis)!=null?a:0,crossAxis:(o=x.crossAxis)!=null?o:0};if(d){let S=m==="y"?"height":"width",R=s.reference[m]-s.floating[S]+g.mainAxis,w=s.reference[m]+s.reference[S]-g.mainAxis;h<R?h=R:h>w&&(h=w)}if(c){var y,v;let S=m==="y"?"width":"height",R=yP.has(Wo(r)),w=s.reference[f]-s.floating[S]+(R&&((y=p.offset)==null?void 0:y[f])||0)+(R?0:g.crossAxis),$=s.reference[f]+s.reference[S]+(R?0:((v=p.offset)==null?void 0:v[f])||0)-(R?g.crossAxis:0);b<w?b=w:b>$&&(b=$)}return{[m]:h,[f]:b}}}},kP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:i,elements:l}=t,{apply:r=()=>{},...s}=Co(e,t),p=await i.detectOverflow(t,s),n=Wo(a),d=ji(a),c=Ja(a)==="y",{width:u,height:f}=o.floating,m,h;n==="top"||n==="bottom"?(m=n,h=d===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(h=n,m=d==="end"?"top":"bottom");let b=f-p.top-p.bottom,x=u-p.left-p.right,g=So(f-p[m],b),y=So(u-p[h],x),v=t.middlewareData.shift,S=!v,R=g,w=y;v!=null&&v.enabled.x&&(w=x),v!=null&&v.enabled.y&&(R=b),S&&!d&&(c?w=u-2*Qa(p.left,p.right):R=f-2*Qa(p.top,p.bottom)),await r({...t,availableWidth:w,availableHeight:R});let $=await i.getDimensions(l.floating);return u!==$.width||f!==$.height?{reset:{rects:!0}}:{}}}};function Rf(){return typeof window<"u"}function Li(e){return SP(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zo(e){var t;return(t=(SP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function SP(e){return Rf()?e instanceof Node||e instanceof _r(e).Node:!1}function Wa(e){return Rf()?e instanceof Element||e instanceof _r(e).Element:!1}function en(e){return Rf()?e instanceof HTMLElement||e instanceof _r(e).HTMLElement:!1}function $P(e){return!Rf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot}function Mp(e){let{overflow:t,overflowX:a,overflowY:o,display:i}=eo(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&i!=="inline"&&i!=="contents"}function PP(e){return/^(table|td|th)$/.test(Li(e))}function _p(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var LD=/transform|translate|scale|rotate|perspective|filter/,FD=/paint|layout|strict|content/,Hi=e=>!!e&&e!=="none",Nb;function Nf(e){let t=Wa(e)?eo(e):e;return Hi(t.transform)||Hi(t.translate)||Hi(t.scale)||Hi(t.rotate)||Hi(t.perspective)||!Df()&&(Hi(t.backdropFilter)||Hi(t.filter))||LD.test(t.willChange||"")||FD.test(t.contain||"")}function CP(e){let t=Yn(e);for(;en(t)&&!xl(t);){if(Nf(t))return t;if(_p(t))return null;t=Yn(t)}return null}function Df(){return Nb==null&&(Nb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nb}function xl(e){return/^(html|body|#document)$/.test(Li(e))}function eo(e){return _r(e).getComputedStyle(e)}function Op(e){return Wa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yn(e){if(Li(e)==="html")return e;let t=e.assignedSlot||e.parentNode||$P(e)&&e.host||zo(e);return $P(t)?t.host:t}function zP(e){let t=Yn(e);return xl(t)?(e.ownerDocument||e).body:en(t)&&Mp(t)?t:zP(t)}function Ui(e,t,a){var o;t===void 0&&(t=[]),a===void 0&&(a=!0);let i=zP(e),l=i===((o=e.ownerDocument)==null?void 0:o.body),r=_r(i);if(l){let s=Tf(r);return t.concat(r,r.visualViewport||[],Mp(i)?i:[],s&&a?Ui(s):[])}else return t.concat(i,Ui(i,[],a))}function Tf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NP(e){let t=eo(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=en(e),l=i?e.offsetWidth:a,r=i?e.offsetHeight:o,s=Ep(a)!==l||Ep(o)!==r;return s&&(a=l,o=r),{width:a,height:o,$:s}}function Tb(e){return Wa(e)?e:e.contextElement}function gl(e){let t=Tb(e);if(!en(t))return Po(1);let a=t.getBoundingClientRect(),{width:o,height:i,$:l}=NP(t),r=(l?Ep(a.width):a.width)/o,s=(l?Ep(a.height):a.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}var VD=Po(0);function DP(e){let t=_r(e);return!Df()||!t.visualViewport?VD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZD(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===_r(e)}function Fi(e,t,a,o){t===void 0&&(t=!1),a===void 0&&(a=!1);let i=e.getBoundingClientRect(),l=Tb(e),r=Po(1);t&&(o?Wa(o)&&(r=gl(o)):r=gl(e));let s=ZD(l,a,o)?DP(l):Po(0),p=(i.left+s.x)/r.x,n=(i.top+s.y)/r.y,d=i.width/r.x,c=i.height/r.y;if(l&&o){let u=_r(l),f=Wa(o)?_r(o):o,m=u,h=Tf(m);for(;h&&f!==m;){let b=gl(h),x=h.getBoundingClientRect(),g=eo(h),y=x.left+(h.clientLeft+parseFloat(g.paddingLeft))*b.x,v=x.top+(h.clientTop+parseFloat(g.paddingTop))*b.y;p*=b.x,n*=b.y,d*=b.x,c*=b.y,p+=y,n+=v,m=_r(h),h=Tf(m)}}return Bi({width:d,height:c,x:p,y:n})}function Ef(e,t){let a=Op(e).scrollLeft;return t?t.left+a:Fi(zo(e)).left+a}function TP(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-Ef(e,a),i=a.top+t.scrollTop;return{x:o,y:i}}function KD(e){let{elements:t,rect:a,offsetParent:o,strategy:i}=e,l=i==="fixed",r=zo(o),s=t?_p(t.floating):!1;if(o===r||s&&l)return a;let p={scrollLeft:0,scrollTop:0},n=Po(1),d=Po(0),c=en(o);if((c||!l)&&((Li(o)!=="body"||Mp(r))&&(p=Op(o)),c)){let f=Fi(o);n=gl(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}let u=r&&!c&&!l?TP(r,p):Po(0);return{width:a.width*n.x,height:a.height*n.y,x:a.x*n.x-p.scrollLeft*n.x+d.x+u.x,y:a.y*n.y-p.scrollTop*n.y+d.y+u.y}}function GD(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function YD(e){let t=Op(e),a=e.ownerDocument.body,o=Qa(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),i=Qa(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),l=-t.scrollLeft+Ef(e),r=-t.scrollTop;return eo(a).direction==="rtl"&&(l+=Qa(e.clientWidth,a.clientWidth)-o),{width:o,height:i,x:l,y:r}}var XD=25;function QD(e,t,a){a===void 0&&(a="viewport");let o=a==="layoutViewport",i=_r(e),l=zo(e),r=i.visualViewport,s=l.clientWidth,p=l.clientHeight,n=0,d=0;if(r){let u=!Df()||t==="fixed";o?u||(n=-r.offsetLeft,d=-r.offsetTop):(s=r.width,p=r.height,u&&(n=r.offsetLeft,d=r.offsetTop))}if(Ef(l)<=0){let u=l.ownerDocument,f=u.body,m=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(l.clientWidth-f.clientWidth-h),x=getComputedStyle(l).scrollbarGutter==="stable both-edges"?b/2:b;x<=XD&&(s-=x)}return{width:s,height:p,x:n,y:d}}function JD(e,t){let a=Fi(e,!0,t==="fixed"),o=a.top+e.clientTop,i=a.left+e.clientLeft,l=gl(e),r=e.clientWidth*l.x,s=e.clientHeight*l.y,p=i*l.x,n=o*l.y;return{width:r,height:s,x:p,y:n}}function AP(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=QD(e,a,t);else if(t==="document")o=YD(zo(e));else if(Wa(t))o=JD(t,a);else{let i=DP(e);o={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bi(o)}function WD(e,t){let a=t.get(e);if(a)return a;let o=Ui(e,[],!1).filter(s=>Wa(s)&&Li(s)!=="body"),i=null,l=eo(e).position==="fixed",r=l?Yn(e):e;for(;Wa(r)&&!xl(r);){let s=eo(r),p=Nf(r),n=i?i.position:l?"fixed":"";!p&&(n==="fixed"||n==="absolute"&&s.position==="static")?o=o.filter(c=>c!==r):i=s,r=Yn(r)}return t.set(e,o),o}function eT(e){let{element:t,boundary:a,rootBoundary:o,strategy:i}=e,r=[...a==="clippingAncestors"?_p(t)?[]:WD(t,this._c):[].concat(a),o],s=AP(t,r[0],i),p=s.top,n=s.right,d=s.bottom,c=s.left;for(let u=1;u<r.length;u++){let f=AP(t,r[u],i);p=Qa(f.top,p),n=So(f.right,n),d=So(f.bottom,d),c=Qa(f.left,c)}return{width:n-c,height:d-p,x:c,y:p}}function tT(e){let{width:t,height:a}=NP(e);return{width:t,height:a}}function rT(e,t,a){let o=en(t),i=zo(t),l=a==="fixed",r=Fi(e,!0,l,t),s={scrollLeft:0,scrollTop:0},p=Po(0);if((o||!l)&&((Li(t)!=="body"||Mp(i))&&(s=Op(t)),o)){let u=Fi(t,!0,l,t);p.x=u.x+t.clientLeft,p.y=u.y+t.clientTop}!o&&i&&(p.x=Ef(i));let n=i&&!o&&!l?TP(i,s):Po(0),d=r.left+s.scrollLeft-p.x-n.x,c=r.top+s.scrollTop-p.y-n.y;return{x:d,y:c,width:r.width,height:r.height}}function Db(e){return eo(e).position==="static"}function RP(e,t){if(!en(e)||eo(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return zo(e)===a&&(a=a.ownerDocument.body),a}function EP(e,t){let a=_r(e);if(_p(e))return a;if(!en(e)){let i=Yn(e);for(;i&&!xl(i);){if(Wa(i)&&!Db(i))return i;i=Yn(i)}return a}let o=RP(e,t);for(;o&&PP(o)&&Db(o);)o=RP(o,t);return o&&xl(o)&&Db(o)&&!Nf(o)?a:o||CP(e)||a}var aT=async function(e){let t=this.getOffsetParent||EP,a=this.getDimensions,o=await a(e.floating);return{reference:rT(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oT(e){return eo(e).direction==="rtl"}var IP={convertOffsetParentRelativeRectToViewportRelativeRect:KD,getDocumentElement:zo,getClippingRect:eT,getOffsetParent:EP,getElementRects:aT,getClientRects:GD,getDimensions:tT,getScale:gl,isElement:Wa,isRTL:oT};function MP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nT(e,t,a){let o=null,i,l=zo(e);function r(){var d;clearTimeout(i),(d=o)==null||d.disconnect(),o=null}function s(d,c){d===void 0&&(d=!1),c===void 0&&(c=1),r();let u=e.getBoundingClientRect(),{left:f,top:m,width:h,height:b}=u;if(d||t(),!h||!b)return;let x=Ip(m),g=Ip(l.clientWidth-(f+h)),y=Ip(l.clientHeight-(m+b)),v=Ip(f),R={rootMargin:-x+"px "+-g+"px "+-y+"px "+-v+"px",threshold:Qa(0,So(1,c))||1},w=!0;function $(z){let P=z[0].intersectionRatio;if(!MP(u,e.getBoundingClientRect()))return s();if(P!==c){if(!w)return s();P?s(!1,P):i=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver($,{...R,root:l.ownerDocument})}catch{o=new IntersectionObserver($,R)}o.observe(e)}let p=_r(e),n=()=>s(a);return p.addEventListener("resize",n),s(!0),()=>{p.removeEventListener("resize",n),r()}}function Eb(e,t,a,o){o===void 0&&(o={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,n=Tb(e),d=i||l?[...n?Ui(n):[],...t?Ui(t):[]]:[];d.forEach(x=>{i&&x.addEventListener("scroll",a),l&&x.addEventListener("resize",a)});let c=n&&s?nT(n,a,l):null,u=-1,f=null;r&&(f=new ResizeObserver(x=>{let[g]=x;g&&g.target===n&&f&&t&&(f.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),a()}),n&&!p&&f.observe(n),t&&f.observe(t));let m,h=p?Fi(e):null;p&&b();function b(){let x=Fi(e);h&&!MP(h,x)&&a(),h=x,m=requestAnimationFrame(b)}return a(),()=>{var x;d.forEach(g=>{i&&g.removeEventListener("scroll",a),l&&g.removeEventListener("resize",a)}),c?.(),(x=f)==null||x.disconnect(),f=null,p&&cancelAnimationFrame(m)}}var _P=bP;var OP=vP,qP=gP,jP=kP,BP=hP,Ib=xP;var HP=wP,Mb=(e,t,a)=>{let o=new Map,i=a??{},l={...IP,...i.platform,_c:o};return mP(e,t,{...i,platform:l})};var jt=j(J(),1),LP=j(J(),1),FP=j(kd(),1),iT=typeof document<"u",sT=function(){},If=iT?LP.useLayoutEffect:sT;function Mf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,o,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(o=a;o--!==0;)if(!Mf(e[o],t[o]))return!1;return!0}if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!{}.hasOwnProperty.call(t,i[o]))return!1;for(o=a;o--!==0;){let l=i[o];if(!(l==="_owner"&&e.$$typeof)&&!Mf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function VP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UP(e,t){let a=VP(e);return Math.round(t*a)/a}function _b(e){let t=jt.useRef(e);return If(()=>{t.current=e}),t}function ZP(e){e===void 0&&(e={});let{placement:t="bottom",strategy:a="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:r}={},transform:s=!0,whileElementsMounted:p,open:n}=e,[d,c]=jt.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[u,f]=jt.useState(o);Mf(u,o)||f(o);let[m,h]=jt.useState(null),[b,x]=jt.useState(null),g=jt.useCallback(U=>{U!==R.current&&(R.current=U,h(U))},[]),y=jt.useCallback(U=>{U!==w.current&&(w.current=U,x(U))},[]),v=l||m,S=r||b,R=jt.useRef(null),w=jt.useRef(null),$=jt.useRef(d),z=p!=null,P=_b(p),A=_b(i),C=_b(n),N=jt.useCallback(()=>{if(!R.current||!w.current)return;let U={placement:t,strategy:a,middleware:u};A.current&&(U.platform=A.current),Mb(R.current,w.current,U).then(Z=>{let G={...Z,isPositioned:C.current!==!1};M.current&&!Mf($.current,G)&&($.current=G,FP.flushSync(()=>{c(G)}))})},[u,t,a,A,C]);If(()=>{n===!1&&$.current.isPositioned&&($.current.isPositioned=!1,c(U=>({...U,isPositioned:!1})))},[n]);let M=jt.useRef(!1);If(()=>(M.current=!0,()=>{M.current=!1}),[]),If(()=>{if(v&&(R.current=v),S&&(w.current=S),v&&S){if(P.current)return P.current(v,S,N);N()}},[v,S,N,P,z]);let T=jt.useMemo(()=>({reference:R,floating:w,setReference:g,setFloating:y}),[g,y]),D=jt.useMemo(()=>({reference:v,floating:S}),[v,S]),B=jt.useMemo(()=>{let U={position:a,left:0,top:0};if(!D.floating)return U;let Z=UP(D.floating,d.x),G=UP(D.floating,d.y);return s?{...U,transform:"translate("+Z+"px, "+G+"px)",...VP(D.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:Z,top:G}},[a,s,D.floating,d.x,d.y]);return jt.useMemo(()=>({...d,update:N,refs:T,elements:D,floatingStyles:B}),[d,N,T,D,B])}var lT=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){let{element:o,padding:i}=typeof e=="function"?e(a):e;return o&&t(o)?o.current!=null?Ib({element:o.current,padding:i}).fn(a):{}:o?Ib({element:o,padding:i}).fn(a):{}}}},KP=(e,t)=>{let a=_P(e);return{name:a.name,fn:a.fn,options:[e,t]}},GP=(e,t)=>{let a=OP(e);return{name:a.name,fn:a.fn,options:[e,t]}},YP=(e,t)=>({fn:HP(e).fn,options:[e,t]}),XP=(e,t)=>{let a=qP(e);return{name:a.name,fn:a.fn,options:[e,t]}},QP=(e,t)=>{let a=jP(e);return{name:a.name,fn:a.fn,options:[e,t]}};var JP=(e,t)=>{let a=BP(e);return{name:a.name,fn:a.fn,options:[e,t]}};var WP=(e,t)=>{let a=lT(e);return{name:a.name,fn:a.fn,options:[e,t]}};var eC=j(J(),1);var Ob=j(oe(),1),dT=Object.defineProperty,pT=(e,t)=>dT(e,"name",{value:t,configurable:!0}),cT=eC.forwardRef(pT(function(t,a){let{children:o,width:i=10,height:l=5,...r}=t;return(0,Ob.jsx)(ne.svg,{...r,ref:a,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:(0,Ob.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),tC=cT;var Xn=j(oe(),1),fT=Object.defineProperty,tn=(e,t)=>fT(e,"name",{value:t,configurable:!0});var rC="Popper",[aC,hl]=Oe(rC),[mT,oC]=aC(rC),xT=tn(e=>{let{__scopePopper:t,children:a}=e,[o,i]=hr.useState(null),[l,r]=hr.useState(void 0);return(0,Xn.jsx)(mT,{scope:t,anchor:o,onAnchorChange:i,placementState:l,setPlacementState:r,children:a})},"Popper"),gT="PopperAnchor",hT=hr.forwardRef(tn(function(t,a){let{__scopePopper:o,virtualRef:i,...l}=t,r=oC(gT,o),s=hr.useRef(null),p=r.onAnchorChange,n=hr.useCallback(h=>{s.current=h,h&&p(h)},[p]),d=le(a,n),c=hr.useRef(null);hr.useEffect(()=>{if(!i)return;let h=c.current;c.current=i.current,h!==c.current&&p(c.current)});let u=r.placementState&&_f(r.placementState),f=u?.[0],m=u?.[1];return i?null:(0,Xn.jsx)(ne.div,{"data-radix-popper-side":f,"data-radix-popper-align":m,...l,ref:d})},"PopperAnchor")),nC="PopperContent",[yT,bT]=aC(nC),vT=hr.forwardRef(tn(function(t,a){let{__scopePopper:o,side:i="bottom",sideOffset:l=0,align:r="center",alignOffset:s=0,arrowPadding:p=0,avoidCollisions:n=!0,collisionBoundary:d=[],collisionPadding:c=0,sticky:u="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...b}=t,x=oC(nC,o),[g,y]=hr.useState(null),v=le(a,y),[S,R]=hr.useState(null),w=Xa(S),$=w?.width??0,z=w?.height??0,P=i+(r!=="center"?"-"+r:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(d)?d:[d],N=C.length>0,M={padding:A,boundary:C.filter(iC),altBoundary:N},{refs:T,floatingStyles:D,placement:B,isPositioned:U,middlewareData:Z}=ZP({strategy:"fixed",placement:P,whileElementsMounted:tn((...Re)=>Eb(...Re,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:x.anchor},middleware:[KP({mainAxis:l+z,alignmentAxis:s}),n&&GP({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?YP():void 0,...M}),n&&XP({...M}),QP({...M,apply:tn(({elements:Re,rects:Ze,availableWidth:M4,availableHeight:_4})=>{let{width:O4,height:q4}=Ze.reference,nc=Re.floating.style;nc.setProperty("--radix-popper-available-width",`${M4}px`),nc.setProperty("--radix-popper-available-height",`${_4}px`),nc.setProperty("--radix-popper-anchor-width",`${O4}px`),nc.setProperty("--radix-popper-anchor-height",`${q4}px`)},"apply")}),S&&WP({element:S,padding:p}),ST({arrowWidth:$,arrowHeight:z}),f&&JP({strategy:"referenceHidden",...M,boundary:N?M.boundary:void 0})]}),G=x.setPlacementState;yt(()=>(G(B),()=>{G(void 0)}),[B,G]);let[_e,re]=_f(B),te=kr(h);yt(()=>{U&&te?.()},[U,te]);let be=Z.arrow?.x,Ct=Z.arrow?.y,Y=Z.arrow?.centerOffset!==0,[fe,me]=hr.useState();return yt(()=>{g&&me(window.getComputedStyle(g).zIndex)},[g]),(0,Xn.jsx)("div",{ref:T.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:U?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:fe,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,Xn.jsx)(yT,{scope:o,placedSide:_e,placedAlign:re,onArrowChange:R,arrowX:be,arrowY:Ct,shouldHideArrow:Y,children:(0,Xn.jsx)(ne.div,{"data-side":_e,"data-align":re,...b,ref:v,style:{...b.style,animation:U?b.style?.animation:"none"}})})})},"PopperContent")),wT="PopperArrow",kT={top:"bottom",right:"left",bottom:"top",left:"right"},$T=hr.forwardRef(tn(function(t,a){let{__scopePopper:o,...i}=t,l=bT(wT,o),r=kT[l.placedSide];return(0,Xn.jsx)("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:(0,Xn.jsx)(tC,{...i,ref:a,style:{...i.style,display:"block"}})})},"PopperArrow"));function iC(e){return e!==null}tn(iC,"isNotNull");var ST=tn(e=>({name:"transformOrigin",options:e,fn(t){let{placement:a,rects:o,middlewareData:i}=t,r=i.arrow?.centerOffset!==0,s=r?0:e.arrowWidth,p=r?0:e.arrowHeight,[n,d]=_f(a),c={start:"0%",center:"50%",end:"100%"}[d],u=(i.arrow?.x??0)+s/2,f=(i.arrow?.y??0)+p/2,m="",h="";return n==="bottom"?(m=r?c:`${u}px`,h=`${-p}px`):n==="top"?(m=r?c:`${u}px`,h=`${o.floating.height+p}px`):n==="right"?(m=`${-p}px`,h=r?c:`${f}px`):n==="left"&&(m=`${o.floating.width+p}px`,h=r?c:`${f}px`),{data:{x:m,y:h}}}}),"transformOrigin");function _f(e){let[t,a="center"]=e.split("-");return[t,a]}tn(_f,"getSideAndAlignFromPlacement");var qp=xT,jp=hT,Of=vT,qf=$T;var or=j(J(),1);var CT=j(J(),1),jf=j(J(),1),PT=Object.defineProperty,jb=(e,t)=>PT(e,"name",{value:t,configurable:!0}),qb=!1;function lC(){let[e,t]=jf.useState(qb);return jf.useEffect(()=>{qb||(qb=!0,t(!0))},[]),e}jb(lC,"useIsHydrated");var dC=CT[" useSyncExternalStore ".trim().toString()];function pC(){return()=>{}}jb(pC,"subscribe");function cC(){return dC(pC,()=>!0,()=>!1)}jb(cC,"useIsHydratedModern");var uC=typeof dC=="function"?cC:lC;var Qn=j(oe(),1),zT=Object.defineProperty,Vi=(e,t)=>zT(e,"name",{value:t,configurable:!0}),Bb="rovingFocusGroup.onEntryFocus",AT={bubbles:!1,cancelable:!0},Bf="RovingFocusGroup",[Hb,fC,RT]=Ei(Bf),[NT,rn]=Oe(Bf,[RT]),[DT,TT]=NT(Bf),ET=or.forwardRef(Vi(function(t,a){return(0,Qn.jsx)(Hb.Provider,{scope:t.__scopeRovingFocusGroup,children:(0,Qn.jsx)(Hb.Slot,{scope:t.__scopeRovingFocusGroup,children:(0,Qn.jsx)(IT,{...t,ref:a})})})},"RovingFocusGroup")),IT=or.forwardRef(Vi(function(t,a){let{__scopeRovingFocusGroup:o,orientation:i,loop:l=!1,dir:r,currentTabStopId:s,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:n,onEntryFocus:d,preventScrollOnEntryFocus:c=!1,...u}=t,f=or.useRef(null),m=le(a,f),h=Va(r),[b,x]=ft({prop:s,defaultProp:p??null,onChange:n,caller:Bf}),[g,y]=or.useState(!1),v=kr(d),S=fC(o),R=or.useRef(!1),[w,$]=or.useState(0);return or.useEffect(()=>{let z=f.current;if(z)return z.addEventListener(Bb,v),()=>z.removeEventListener(Bb,v)},[v]),(0,Qn.jsx)(DT,{scope:o,orientation:i,dir:h,loop:l,currentTabStopId:b,onItemFocus:or.useCallback(z=>x(z),[x]),onItemShiftTab:or.useCallback(()=>y(!0),[]),onFocusableItemAdd:or.useCallback(()=>$(z=>z+1),[]),onFocusableItemRemove:or.useCallback(()=>$(z=>z-1),[]),children:(0,Qn.jsx)(ne.div,{tabIndex:g||w===0?-1:0,"data-orientation":i,...u,ref:m,style:{outline:"none",...t.style},onMouseDown:K(t.onMouseDown,()=>{R.current=!0}),onFocus:K(t.onFocus,z=>{let P=!R.current;if(z.target===z.currentTarget&&P&&!g){let A=new CustomEvent(Bb,AT);if(z.currentTarget.dispatchEvent(A),!A.defaultPrevented){let C=S().filter(B=>B.focusable),N=C.find(B=>B.active),M=C.find(B=>B.id===b),D=[N,M,...C].filter(Boolean).map(B=>B.ref.current);Ub(D,c)}}R.current=!1}),onBlur:K(t.onBlur,()=>y(!1))})})},"RovingFocusGroupImpl")),MT="RovingFocusGroupItem",_T=or.forwardRef(Vi(function(t,a){let{__scopeRovingFocusGroup:o,focusable:i=!0,active:l=!1,tabStopId:r,children:s,...p}=t,n=Gt(),d=r||n,c=TT(MT,o),u=c.currentTabStopId===d,f=fC(o),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:b}=c,x=uC();return yt(()=>{if(!(!x||!i))return m(),()=>h()},[x,i,m,h]),or.useEffect(()=>{if(!(x||!i))return m(),()=>h()},[x,i,m,h]),(0,Qn.jsx)(Hb.ItemSlot,{scope:o,id:d,focusable:i,active:l,children:(0,Qn.jsx)(ne.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...p,ref:a,onMouseDown:K(t.onMouseDown,g=>{i?c.onItemFocus(d):g.preventDefault()}),onFocus:K(t.onFocus,()=>c.onItemFocus(d)),onKeyDown:K(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;let y=xC(g,c.orientation,c.dir);if(y!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let S=f().filter(R=>R.focusable).map(R=>R.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();let R=S.indexOf(g.currentTarget);S=c.loop?gC(S,R+1):S.slice(R+1)}setTimeout(()=>Ub(S))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:b!=null}):s})})},"RovingFocusGroupItem")),OT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mC(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Vi(mC,"getDirectionAwareKey");function xC(e,t,a){let o=mC(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return OT[o]}Vi(xC,"getFocusIntent");function Ub(e,t=!1){let a=document.activeElement;for(let o of e)if(o===a||(o.focus({preventScroll:t}),document.activeElement!==a))return}Vi(Ub,"focusFirst");function gC(e,t){return e.map((a,o)=>e[(t+o)%e.length])}Vi(gC,"wrapArray");var yl=ET,bl=_T;var ke=j(oe(),1),qT=Object.defineProperty,Ie=(e,t)=>qT(e,"name",{value:t,configurable:!0}),Fb=["Enter"," "],jT=["ArrowDown","PageUp","Home"],yC=["ArrowUp","PageDown","End"],BT=[...jT,...yC],HT={ltr:[...Fb,"ArrowRight"],rtl:[...Fb,"ArrowLeft"]},UT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Uf="Menu",[Bp,LT,FT]=Ei(Uf),[Zi,wl]=Oe(Uf,[FT,hl,rn]),Up=hl(),bC=rn(),[vC,Jn]=Zi(Uf),[VT,Lp]=Zi(Uf),ZT=Ie(e=>{let{__scopeMenu:t,open:a=!1,children:o,dir:i,onOpenChange:l,modal:r=!0}=e,s=Up(t),[p,n]=de.useState(null),d=de.useRef(!1),c=kr(l),u=Va(i);return de.useEffect(()=>{let f=Ie(()=>{d.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},"handleKeyDown"),m=Ie(()=>d.current=!1,"handlePointer");return document.addEventListener("keydown",f,{capture:!0}),()=>{document.removeEventListener("keydown",f,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),de.useEffect(()=>{if(!a)return;let f=Ie(()=>c(!1),"handleBlur");return window.addEventListener("blur",f),()=>window.removeEventListener("blur",f)},[a,c]),(0,ke.jsx)(qp,{...s,children:(0,ke.jsx)(vC,{scope:t,open:a,onOpenChange:c,content:p,onContentChange:n,children:(0,ke.jsx)(VT,{scope:t,onClose:de.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:u,modal:r,children:o})})})},"Menu"),wC=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,...i}=t,l=Up(o);return(0,ke.jsx)(jp,{...l,...i,ref:a})},"MenuAnchor")),kC="MenuPortal",[KT,$C]=Zi(kC,{forceMount:void 0}),GT=Ie(e=>{let{__scopeMenu:t,forceMount:a,children:o,container:i}=e,l=Jn(kC,t);return(0,ke.jsx)(KT,{scope:t,forceMount:a,children:(0,ke.jsx)(_t,{present:a||l.open,children:(0,ke.jsx)(ll,{asChild:!0,container:i,children:o})})})},"MenuPortal"),to="MenuContent",[YT,Zb]=Zi(to),XT=de.forwardRef(Ie(function(t,a){let o=$C(to,t.__scopeMenu),{forceMount:i=o.forceMount,...l}=t,r=Jn(to,t.__scopeMenu),s=Lp(to,t.__scopeMenu);return(0,ke.jsx)(Bp.Provider,{scope:t.__scopeMenu,children:(0,ke.jsx)(_t,{present:i||r.open,children:(0,ke.jsx)(Bp.Slot,{scope:t.__scopeMenu,children:s.modal?(0,ke.jsx)(QT,{...l,ref:a}):(0,ke.jsx)(JT,{...l,ref:a})})})})},"MenuContent")),QT=de.forwardRef(Ie(function(t,a){let o=Jn(to,t.__scopeMenu),i=de.useRef(null),l=le(a,i);return de.useEffect(()=>{let r=i.current;if(r)return ml(r)},[]),(0,ke.jsx)(Kb,{...t,ref:l,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:K(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),JT=de.forwardRef(Ie(function(t,a){let o=Jn(to,t.__scopeMenu);return(0,ke.jsx)(Kb,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),WT=Ir("MenuContent.ScrollLock"),Kb=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,loop:i=!1,trapFocus:l,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:p,onEntryFocus:n,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,onDismiss:m,disableOutsideScroll:h,...b}=t,x=Jn(to,o),g=Lp(to,o),y=Up(o),v=bC(o),S=LT(o),[R,w]=de.useState(null),$=de.useRef(null),z=le(a,$,x.onContentChange),P=de.useRef(0),A=de.useRef(""),C=de.useRef(0),N=de.useRef(null),M=de.useRef("right"),T=de.useRef(0),D=h?qi:de.Fragment,B=h?{as:WT,allowPinchZoom:!0}:void 0,U=Ie(G=>{let _e=A.current+G,re=S().filter(me=>!me.disabled),te=document.activeElement,be=re.find(me=>me.ref.current===te)?.textValue,Ct=re.map(me=>me.textValue),Y=TC(Ct,_e,be),fe=re.find(me=>me.textValue===Y)?.ref.current;Ie((function me(Re){A.current=Re,window.clearTimeout(P.current),Re!==""&&(P.current=window.setTimeout(()=>me(""),1e3))}),"updateSearch")(_e),fe&&setTimeout(()=>fe.focus())},"handleTypeaheadSearch");de.useEffect(()=>()=>window.clearTimeout(P.current),[]),Gn();let Z=de.useCallback(G=>M.current===N.current?.side&&IC(G,N.current?.area),[]);return(0,ke.jsx)(YT,{scope:o,searchRef:A,onItemEnter:de.useCallback(G=>{Z(G)&&G.preventDefault()},[Z]),onItemLeave:de.useCallback(G=>{Z(G)||($.current?.focus(),w(null))},[Z]),onTriggerLeave:de.useCallback(G=>{Z(G)&&G.preventDefault()},[Z]),pointerGraceTimerRef:C,onPointerGraceIntentChange:de.useCallback(G=>{N.current=G},[]),children:(0,ke.jsx)(D,{...B,children:(0,ke.jsx)(sl,{asChild:!0,trapped:l,onMountAutoFocus:K(r,G=>{G.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,ke.jsx)(il,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:d,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,onDismiss:m,children:(0,ke.jsx)(yl,{asChild:!0,...v,dir:g.dir,orientation:"vertical",loop:i,currentTabStopId:R,onCurrentTabStopIdChange:w,onEntryFocus:K(n,G=>{g.isUsingKeyboardRef.current||G.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ke.jsx)(Of,{role:"menu","aria-orientation":"vertical","data-state":Yb(x.open),"data-radix-menu-content":"",dir:g.dir,...y,...b,ref:z,style:{outline:"none",...b.style},onKeyDown:K(b.onKeyDown,G=>{let re=G.target.closest("[data-radix-menu-content]")===G.currentTarget,te=G.ctrlKey||G.altKey||G.metaKey,be=G.key.length===1;re&&(G.key==="Tab"&&G.preventDefault(),!te&&be&&U(G.key));let Ct=$.current;if(G.target!==Ct||!BT.includes(G.key))return;G.preventDefault();let fe=S().filter(me=>!me.disabled).map(me=>me.ref.current);yC.includes(G.key)&&fe.reverse(),NC(fe)}),onBlur:K(t.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(P.current),A.current="")}),onPointerMove:K(t.onPointerMove,vl(G=>{let _e=G.target,re=T.current!==G.clientX;if(G.currentTarget.contains(_e)&&re){let te=G.clientX>T.current?"right":"left";M.current=te,T.current=G.clientX}}))})})})})})})},"MenuContentImpl")),SC=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,...i}=t;return(0,ke.jsx)(ne.div,{role:"group",...i,ref:a})},"MenuGroup")),eE=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,...i}=t;return(0,ke.jsx)(ne.div,{...i,ref:a})},"MenuLabel")),Vb="MenuItem",hC="menu.itemSelect",Gb=de.forwardRef(Ie(function(t,a){let{disabled:o=!1,onSelect:i,...l}=t,r=de.useRef(null),s=Lp(Vb,t.__scopeMenu),p=Zb(Vb,t.__scopeMenu),n=le(a,r),d=de.useRef(!1),c=Ie(()=>{let u=r.current;if(!o&&u){let f=new CustomEvent(hC,{bubbles:!0,cancelable:!0});u.addEventListener(hC,m=>i?.(m),{once:!0}),Pp(u,f),f.defaultPrevented?d.current=!1:s.onClose()}},"handleSelect");return(0,ke.jsx)(PC,{...l,ref:n,disabled:o,onClick:K(t.onClick,c),onPointerDown:u=>{t.onPointerDown?.(u),d.current=!0},onPointerUp:K(t.onPointerUp,u=>{d.current||u.currentTarget?.click()}),onKeyDown:K(t.onKeyDown,u=>{o||u.target!==u.currentTarget||p.searchRef.current!==""&&u.key===" "||Fb.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})},"MenuItem")),PC=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,disabled:i=!1,textValue:l,...r}=t,s=Zb(Vb,o),p=bC(o),n=de.useRef(null),d=le(a,n),[c,u]=de.useState(!1),[f,m]=de.useState("");return de.useEffect(()=>{let h=n.current;h&&m((h.textContent??"").trim())},[r.children]),(0,ke.jsx)(Bp.ItemSlot,{scope:o,disabled:i,textValue:l??f,children:(0,ke.jsx)(bl,{asChild:!0,...p,focusable:!i,children:(0,ke.jsx)(ne.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...r,ref:d,onPointerMove:K(t.onPointerMove,vl(h=>{i?s.onItemLeave(h):(s.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(t.onPointerLeave,vl(h=>s.onItemLeave(h))),onFocus:K(t.onFocus,()=>u(!0)),onBlur:K(t.onBlur,()=>u(!1))})})})},"MenuItemImpl")),tE=de.forwardRef(Ie(function(t,a){let{checked:o=!1,onCheckedChange:i,...l}=t;return(0,ke.jsx)(zC,{scope:t.__scopeMenu,checked:o,children:(0,ke.jsx)(Gb,{role:"menuitemcheckbox","aria-checked":Hp(o)?"mixed":o,...l,ref:a,"data-state":Lf(o),onSelect:K(l.onSelect,()=>i?.(Hp(o)?!0:!o),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),rE="MenuRadioGroup",[aE,oE]=Zi(rE,{value:void 0,onValueChange:Ie(()=>{},"onValueChange")}),nE=de.forwardRef(Ie(function(t,a){let{value:o,onValueChange:i,...l}=t,r=kr(i);return(0,ke.jsx)(aE,{scope:t.__scopeMenu,value:o,onValueChange:r,children:(0,ke.jsx)(SC,{...l,ref:a})})},"MenuRadioGroup")),iE="MenuRadioItem",sE=de.forwardRef(Ie(function(t,a){let{value:o,...i}=t,l=oE(iE,t.__scopeMenu),r=o===l.value;return(0,ke.jsx)(zC,{scope:t.__scopeMenu,checked:r,children:(0,ke.jsx)(Gb,{role:"menuitemradio","aria-checked":r,...i,ref:a,"data-state":Lf(r),onSelect:K(i.onSelect,()=>l.onValueChange?.(o),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),CC="MenuItemIndicator",[zC,lE]=Zi(CC,{checked:!1}),dE=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,forceMount:i,...l}=t,r=lE(CC,o);return(0,ke.jsx)(_t,{present:i||Hp(r.checked)||r.checked===!0,children:(0,ke.jsx)(ne.span,{...l,ref:a,"data-state":Lf(r.checked)})})},"MenuItemIndicator")),pE=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,...i}=t;return(0,ke.jsx)(ne.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})},"MenuSeparator")),cE=de.forwardRef(Ie(function(t,a){let{__scopeMenu:o,...i}=t,l=Up(o);return(0,ke.jsx)(qf,{...l,...i,ref:a})},"MenuArrow")),AC="MenuSub",[uE,RC]=Zi(AC),fE=Ie(e=>{let{__scopeMenu:t,children:a,open:o=!1,onOpenChange:i}=e,l=Jn(AC,t),r=Up(t),[s,p]=de.useState(null),[n,d]=de.useState(null),c=kr(i);return de.useEffect(()=>(l.open===!1&&c(!1),()=>c(!1)),[l.open,c]),(0,ke.jsx)(qp,{...r,children:(0,ke.jsx)(vC,{scope:t,open:o,onOpenChange:c,content:n,onContentChange:d,children:(0,ke.jsx)(uE,{scope:t,contentId:Gt(),triggerId:Gt(),trigger:s,onTriggerChange:p,children:a})})})},"MenuSub"),Hf="MenuSubTrigger",mE=de.forwardRef(Ie(function(t,a){let o=Jn(Hf,t.__scopeMenu),i=Lp(Hf,t.__scopeMenu),l=RC(Hf,t.__scopeMenu),r=Zb(Hf,t.__scopeMenu),s=de.useRef(null),{pointerGraceTimerRef:p,onPointerGraceIntentChange:n}=r,d={__scopeMenu:t.__scopeMenu},c=de.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);de.useEffect(()=>c,[c]),de.useEffect(()=>{let f=p.current;return()=>{window.clearTimeout(f),n(null)}},[p,n]);let u=le(a,l.onTriggerChange);return(0,ke.jsx)(wC,{asChild:!0,...d,children:(0,ke.jsx)(PC,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?l.contentId:void 0,"data-state":Yb(o.open),...t,ref:u,onClick:f=>{t.onClick?.(f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:K(t.onPointerMove,vl(f=>{r.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!o.open&&!s.current&&(r.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{o.onOpenChange(!0),c()},100))})),onPointerLeave:K(t.onPointerLeave,vl(f=>{c();let m=o.content?.getBoundingClientRect();if(m){let h=o.content?.dataset.side,b=h==="right",x=b?-5:5,g=m[b?"left":"right"],y=m[b?"right":"left"];r.onPointerGraceIntentChange({area:[{x:f.clientX+x,y:f.clientY},{x:g,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:g,y:m.bottom}],side:h}),window.clearTimeout(p.current),p.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(f),f.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:K(t.onKeyDown,f=>{t.disabled||f.target!==f.currentTarget||r.searchRef.current!==""&&f.key===" "||HT[i.dir].includes(f.key)&&(o.onOpenChange(!0),o.content?.focus(),f.preventDefault())})})})},"MenuSubTrigger")),xE="MenuSubContent",gE=de.forwardRef(Ie(function(t,a){let o=$C(to,t.__scopeMenu),{forceMount:i=o.forceMount,align:l="start",...r}=t,s=Jn(to,t.__scopeMenu),p=Lp(to,t.__scopeMenu),n=RC(xE,t.__scopeMenu),d=de.useRef(null),c=le(a,d);return(0,ke.jsx)(Bp.Provider,{scope:t.__scopeMenu,children:(0,ke.jsx)(_t,{present:i||s.open,children:(0,ke.jsx)(Bp.Slot,{scope:t.__scopeMenu,children:(0,ke.jsx)(Kb,{id:n.contentId,"aria-labelledby":n.triggerId,...r,ref:c,align:l,side:p.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{p.isUsingKeyboardRef.current&&d.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:K(t.onFocusOutside,u=>{u.target!==n.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:K(t.onEscapeKeyDown,u=>{p.onClose(),u.preventDefault()}),onKeyDown:K(t.onKeyDown,u=>{let f=u.currentTarget.contains(u.target),m=UT[p.dir].includes(u.key);f&&m&&(s.onOpenChange(!1),n.trigger?.focus(),u.preventDefault())})})})})})},"MenuSubContent"));function Yb(e){return e?"open":"closed"}Ie(Yb,"getOpenState");function Hp(e){return e==="indeterminate"}Ie(Hp,"isIndeterminate");function Lf(e){return Hp(e)?"indeterminate":e?"checked":"unchecked"}Ie(Lf,"getCheckedState");function NC(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}Ie(NC,"focusFirst");function DC(e,t){return e.map((a,o)=>e[(t+o)%e.length])}Ie(DC,"wrapArray");function TC(e,t,a){let i=t.length>1&&Array.from(t).every(n=>n===t[0])?t[0]:t,l=a?e.indexOf(a):-1,r=DC(e,Math.max(l,0));i.length===1&&(r=r.filter(n=>n!==a));let p=r.find(n=>n.toLowerCase().startsWith(i.toLowerCase()));return p!==a?p:void 0}Ie(TC,"getNextMatch");function EC(e,t){let{x:a,y:o}=e,i=!1;for(let l=0,r=t.length-1;l<t.length;r=l++){let s=t[l],p=t[r],n=s.x,d=s.y,c=p.x,u=p.y;d>o!=u>o&&a<(c-n)*(o-d)/(u-d)+n&&(i=!i)}return i}Ie(EC,"isPointInPolygon");function IC(e,t){if(!t)return!1;let a={x:e.clientX,y:e.clientY};return EC(a,t)}Ie(IC,"isPointerInGraceArea");function vl(e){return t=>t.pointerType==="mouse"?e(t):void 0}Ie(vl,"whenMouse");var Ff=ZT,Vf=wC,Zf=GT,Kf=XT,Gf=SC,Yf=eE,Xf=Gb,Qf=tE,Jf=nE,Wf=sE,em=dE,tm=pE,rm=cE,am=fE,om=mE,nm=gE;var Pt=j(oe(),1),hE=Object.defineProperty,Yt=(e,t)=>hE(e,"name",{value:t,configurable:!0}),Xb="ContextMenu",[yE,bE]=Oe(Xb,[wl]),Sr=wl(),[vE,_C]=yE(Xb),OC=Yt(e=>{let{__scopeContextMenu:t,children:a,onOpenChange:o,open:i,dir:l,modal:r=!0}=e,s=Qe.useRef(!1);if(tl){let c=Qe.useRef(!1);Qe.useEffect(()=>{i===!0&&!s.current&&!c.current&&(c.current=!0,console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."))},[i])}let[p,n]=ft({prop:i,defaultProp:!1,onChange:o,caller:Xb}),d=Sr(t);return(0,Pt.jsx)(vE,{scope:t,open:p,onOpenChange:n,modal:r,hasInteractedRef:s,children:(0,Pt.jsx)(Ff,{...d,dir:l,open:p,onOpenChange:n,modal:r,children:a})})},"ContextMenu"),wE="ContextMenuTrigger",qC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,disabled:i=!1,...l}=t,r=_C(wE,o),s=Sr(o),[p,n]=Qe.useState({x:0,y:0}),d=Qe.useMemo(()=>({current:{getBoundingClientRect:Yt(()=>DOMRect.fromRect({width:0,height:0,...p}),"getBoundingClientRect")}}),[p]),c=Qe.useRef(0),u=Qe.useCallback(()=>window.clearTimeout(c.current),[]),f=Yt(m=>{r.hasInteractedRef.current=!0,n({x:m.clientX,y:m.clientY}),r.onOpenChange(!0)},"handleOpen");return Qe.useEffect(()=>u,[u]),Qe.useEffect(()=>{i&&u()},[i,u]),(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(Vf,{...s,virtualRef:d}),(0,Pt.jsx)(ne.span,{"data-state":r.open?"open":"closed","data-disabled":i?"":void 0,...l,ref:a,style:{WebkitTouchCallout:"none",...t.style},onContextMenu:i?t.onContextMenu:K(t.onContextMenu,m=>{u(),f(m),m.preventDefault()}),onPointerDown:i?t.onPointerDown:K(t.onPointerDown,Fp(m=>{u(),r.open&&r.onOpenChange(!1),c.current=window.setTimeout(()=>f(m),700)})),onPointerMove:i?t.onPointerMove:K(t.onPointerMove,Fp(u)),onPointerCancel:i?t.onPointerCancel:K(t.onPointerCancel,Fp(u)),onPointerUp:i?t.onPointerUp:K(t.onPointerUp,Fp(u))})]})},"ContextMenuTrigger")),jC=Yt(e=>{let{__scopeContextMenu:t,...a}=e,o=Sr(t);return(0,Pt.jsx)(Zf,{...o,...a})},"ContextMenuPortal"),kE="ContextMenuContent",BC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=_C(kE,o),r=Sr(o),s=Qe.useRef(!1);return(0,Pt.jsx)(Kf,{...r,...i,ref:a,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{t.onCloseAutoFocus?.(p),!p.defaultPrevented&&s.current&&p.preventDefault(),s.current=!1},onInteractOutside:p=>{t.onInteractOutside?.(p),!p.defaultPrevented&&!l.modal&&(s.current=!0)},style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuContent")),HC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Gf,{...l,...i,ref:a})},"ContextMenuGroup")),UC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Yf,{...l,...i,ref:a})},"ContextMenuLabel")),LC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Xf,{...l,...i,ref:a})},"ContextMenuItem")),FC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Qf,{...l,...i,ref:a})},"ContextMenuCheckboxItem")),VC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Jf,{...l,...i,ref:a})},"ContextMenuRadioGroup")),ZC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(Wf,{...l,...i,ref:a})},"ContextMenuRadioItem")),KC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(em,{...l,...i,ref:a})},"ContextMenuItemIndicator")),GC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(tm,{...l,...i,ref:a})},"ContextMenuSeparator")),YC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(rm,{...l,...i,ref:a})},"ContextMenuArrow")),$E="ContextMenuSub",XC=Yt(e=>{let{__scopeContextMenu:t,children:a,onOpenChange:o,open:i,defaultOpen:l}=e,r=Sr(t),[s,p]=ft({prop:i,defaultProp:l??!1,onChange:o,caller:$E});return(0,Pt.jsx)(am,{...r,open:s,onOpenChange:p,children:a})},"ContextMenuSub"),QC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(om,{...l,...i,ref:a})},"ContextMenuSubTrigger")),JC=Qe.forwardRef(Yt(function(t,a){let{__scopeContextMenu:o,...i}=t,l=Sr(o);return(0,Pt.jsx)(nm,{...l,...i,ref:a,style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"ContextMenuSubContent"));function Fp(e){return t=>t.pointerType!=="mouse"?e(t):void 0}Yt(Fp,"whenTouchOrPen");var SE=OC,PE=qC,CE=jC,zE=BC,AE=HC,RE=UC,NE=LC,DE=FC,TE=VC,EE=ZC,IE=KC,ME=GC,_E=YC,OE=XC,qE=QC,jE=JC;var ut={};ma(ut,{Arrow:()=>oI,CheckboxItem:()=>WE,Content:()=>YE,DropdownMenu:()=>ez,DropdownMenuArrow:()=>uz,DropdownMenuCheckboxItem:()=>sz,DropdownMenuContent:()=>az,DropdownMenuGroup:()=>oz,DropdownMenuItem:()=>iz,DropdownMenuItemIndicator:()=>pz,DropdownMenuLabel:()=>nz,DropdownMenuPortal:()=>rz,DropdownMenuRadioGroup:()=>lz,DropdownMenuRadioItem:()=>dz,DropdownMenuSeparator:()=>cz,DropdownMenuSub:()=>fz,DropdownMenuSubContent:()=>xz,DropdownMenuSubTrigger:()=>mz,DropdownMenuTrigger:()=>tz,Group:()=>XE,Item:()=>JE,ItemIndicator:()=>rI,Label:()=>QE,Portal:()=>GE,RadioGroup:()=>eI,RadioItem:()=>tI,Root:()=>ZE,Separator:()=>aI,Sub:()=>nI,SubContent:()=>sI,SubTrigger:()=>iI,Trigger:()=>KE,createDropdownMenuScope:()=>UE});var Qt=j(J(),1);var Xt=j(oe(),1),BE=Object.defineProperty,Pr=(e,t)=>BE(e,"name",{value:t,configurable:!0}),Qb="DropdownMenu",[HE,UE]=Oe(Qb,[wl]),Cr=wl(),[LE,WC]=HE(Qb),ez=Pr(e=>{let{__scopeDropdownMenu:t,children:a,dir:o,open:i,defaultOpen:l,onOpenChange:r,modal:s=!0}=e,p=Cr(t),n=Qt.useRef(null),[d,c]=ft({prop:i,defaultProp:l??!1,onChange:r,caller:Qb});return(0,Xt.jsx)(LE,{scope:t,triggerId:Gt(),triggerRef:n,contentId:Gt(),open:d,onOpenChange:c,onOpenToggle:Qt.useCallback(()=>c(u=>!u),[c]),modal:s,children:(0,Xt.jsx)(Ff,{...p,open:d,onOpenChange:c,dir:o,modal:s,children:a})})},"DropdownMenu"),FE="DropdownMenuTrigger",tz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,disabled:i=!1,...l}=t,r=WC(FE,o),s=Cr(o),p=le(a,r.triggerRef);return(0,Xt.jsx)(Vf,{asChild:!0,...s,children:(0,Xt.jsx)(ne.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:p,onPointerDown:K(t.onPointerDown,n=>{!i&&n.button===0&&n.ctrlKey===!1&&(r.onOpenToggle(),r.open||n.preventDefault())}),onKeyDown:K(t.onKeyDown,n=>{i||(["Enter"," "].includes(n.key)&&r.onOpenToggle(),n.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(n.key)&&n.preventDefault())})})})},"DropdownMenuTrigger")),rz=Pr(e=>{let{__scopeDropdownMenu:t,...a}=e,o=Cr(t);return(0,Xt.jsx)(Zf,{...o,...a})},"DropdownMenuPortal"),VE="DropdownMenuContent",az=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=WC(VE,o),r=Cr(o),s=Qt.useRef(!1);return(0,Xt.jsx)(Kf,{id:l.contentId,"aria-labelledby":l.triggerId,...r,...i,ref:a,onCloseAutoFocus:K(t.onCloseAutoFocus,p=>{s.current||l.triggerRef.current?.focus(),s.current=!1,p.preventDefault()}),onInteractOutside:K(t.onInteractOutside,p=>{let n=p.detail.originalEvent,d=n.button===0&&n.ctrlKey===!0,c=n.button===2||d;(!l.modal||c)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),oz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Gf,{...l,...i,ref:a})},"DropdownMenuGroup")),nz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Yf,{...l,...i,ref:a})},"DropdownMenuLabel")),iz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Xf,{...l,...i,ref:a})},"DropdownMenuItem")),sz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Qf,{...l,...i,ref:a})},"DropdownMenuCheckboxItem")),lz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Jf,{...l,...i,ref:a})},"DropdownMenuRadioGroup")),dz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(Wf,{...l,...i,ref:a})},"DropdownMenuRadioItem")),pz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(em,{...l,...i,ref:a})},"DropdownMenuItemIndicator")),cz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(tm,{...l,...i,ref:a})},"DropdownMenuSeparator")),uz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(rm,{...l,...i,ref:a})},"DropdownMenuArrow")),fz=Pr(e=>{let{__scopeDropdownMenu:t,children:a,open:o,onOpenChange:i,defaultOpen:l}=e,r=Cr(t),[s,p]=ft({prop:o,defaultProp:l??!1,onChange:i,caller:"DropdownMenuSub"});return(0,Xt.jsx)(am,{...r,open:s,onOpenChange:p,children:a})},"DropdownMenuSub"),mz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(om,{...l,...i,ref:a})},"DropdownMenuSubTrigger")),xz=Qt.forwardRef(Pr(function(t,a){let{__scopeDropdownMenu:o,...i}=t,l=Cr(o);return(0,Xt.jsx)(nm,{...l,...i,ref:a,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),ZE=ez,KE=tz,GE=rz,YE=az,XE=oz,QE=nz,JE=iz,WE=sz,eI=lz,tI=dz,rI=pz,aI=cz,oI=uz,nI=fz,iI=mz,sI=xz;var im=j(J(),1),lI=Object.defineProperty,dI=(e,t)=>lI(e,"name",{value:t,configurable:!0});function Jb(e){let t=im.useRef({value:e,previous:e});return im.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}dI(Jb,"usePrevious");var pI=Object.defineProperty,cI=(e,t)=>pI(e,"name",{value:t,configurable:!0});function sm(e,[t,a]){return Math.min(a,Math.max(t,e))}cI(sm,"clamp");var an={};ma(an,{Anchor:()=>SI,Arrow:()=>RI,Close:()=>AI,Content:()=>zI,Popover:()=>hz,PopoverAnchor:()=>yz,PopoverArrow:()=>Pz,PopoverClose:()=>Sz,PopoverContent:()=>kz,PopoverPortal:()=>wz,PopoverTrigger:()=>bz,Portal:()=>CI,Root:()=>$I,Trigger:()=>PI,createPopoverScope:()=>fI});var bt=j(J(),1);var Bt=j(oe(),1),uI=Object.defineProperty,ro=(e,t)=>uI(e,"name",{value:t,configurable:!0}),Wb="Popover",[gz,fI]=Oe(Wb,[hl]),Zp=hl(),[mI,ei]=gz(Wb),hz=ro(e=>{let{__scopePopover:t,children:a,open:o,defaultOpen:i,onOpenChange:l,modal:r=!1}=e,s=Zp(t),p=bt.useRef(null),[n,d]=bt.useState(!1),[c,u]=ft({prop:o,defaultProp:i??!1,onChange:l,caller:Wb});return(0,Bt.jsx)(qp,{...s,children:(0,Bt.jsx)(mI,{scope:t,contentId:Gt(),triggerRef:p,open:c,onOpenChange:u,onOpenToggle:bt.useCallback(()=>u(f=>!f),[u]),hasCustomAnchor:n,onCustomAnchorAdd:bt.useCallback(()=>d(!0),[]),onCustomAnchorRemove:bt.useCallback(()=>d(!1),[]),modal:r,children:a})})},"Popover"),xI="PopoverAnchor",yz=bt.forwardRef(ro(function(t,a){let{__scopePopover:o,...i}=t,l=ei(xI,o),r=Zp(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=l;return bt.useEffect(()=>(s(),()=>p()),[s,p]),(0,Bt.jsx)(jp,{...r,...i,ref:a})},"PopoverAnchor")),gI="PopoverTrigger",bz=bt.forwardRef(ro(function(t,a){let{__scopePopover:o,...i}=t,l=ei(gI,o),r=Zp(o),s=le(a,l.triggerRef),p=(0,Bt.jsx)(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":ev(l.open),...i,ref:s,onClick:K(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?p:(0,Bt.jsx)(jp,{asChild:!0,...r,children:p})},"PopoverTrigger")),vz="PopoverPortal",[hI,yI]=gz(vz,{forceMount:void 0}),wz=ro(e=>{let{__scopePopover:t,forceMount:a,children:o,container:i}=e,l=ei(vz,t);return(0,Bt.jsx)(hI,{scope:t,forceMount:a,children:(0,Bt.jsx)(_t,{present:a||l.open,children:(0,Bt.jsx)(ll,{asChild:!0,container:i,children:o})})})},"PopoverPortal"),Vp="PopoverContent",kz=bt.forwardRef(ro(function(t,a){let o=yI(Vp,t.__scopePopover),{forceMount:i=o.forceMount,...l}=t,r=ei(Vp,t.__scopePopover);return(0,Bt.jsx)(_t,{present:i||r.open,children:r.modal?(0,Bt.jsx)(vI,{...l,ref:a}):(0,Bt.jsx)(wI,{...l,ref:a})})},"PopoverContent")),bI=Ir("PopoverContent.RemoveScroll"),vI=bt.forwardRef(ro(function(t,a){let o=ei(Vp,t.__scopePopover),i=bt.useRef(null),l=le(a,i),r=bt.useRef(!1);return bt.useEffect(()=>{let s=i.current;if(s)return ml(s)},[]),(0,Bt.jsx)(qi,{as:bI,allowPinchZoom:!0,children:(0,Bt.jsx)($z,{...t,ref:l,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(t.onCloseAutoFocus,s=>{s.preventDefault(),r.current||o.triggerRef.current?.focus()}),onPointerDownOutside:K(t.onPointerDownOutside,s=>{let p=s.detail.originalEvent,n=p.button===0&&p.ctrlKey===!0,d=p.button===2||n;r.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:K(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),wI=bt.forwardRef(ro(function(t,a){let o=ei(Vp,t.__scopePopover),i=bt.useRef(!1),l=bt.useRef(!1);return(0,Bt.jsx)($z,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(i.current||o.triggerRef.current?.focus(),r.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(i.current=!0,r.detail.originalEvent.type==="pointerdown"&&(l.current=!0));let s=r.target;o.triggerRef.current?.contains(s)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&l.current&&r.preventDefault()}})},"PopoverContentNonModal")),$z=bt.forwardRef(ro(function(t,a){let{__scopePopover:o,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:n,onFocusOutside:d,onInteractOutside:c,...u}=t,f=ei(Vp,o),m=Zp(o);return Gn(),(0,Bt.jsx)(sl,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:r,children:(0,Bt.jsx)(il,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:p,onPointerDownOutside:n,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,Bt.jsx)(Of,{"data-state":ev(f.open),role:"dialog",id:f.contentId,...m,...u,ref:a,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),kI="PopoverClose",Sz=bt.forwardRef(ro(function(t,a){let{__scopePopover:o,...i}=t,l=ei(kI,o);return(0,Bt.jsx)(ne.button,{type:"button",...i,ref:a,onClick:K(t.onClick,()=>l.onOpenChange(!1))})},"PopoverClose")),Pz=bt.forwardRef(ro(function(t,a){let{__scopePopover:o,...i}=t,l=Zp(o);return(0,Bt.jsx)(qf,{...l,...i,ref:a})},"PopoverArrow"));function ev(e){return e?"open":"closed"}ro(ev,"getState");var $I=hz,SI=yz,PI=bz,CI=wz,zI=kz,AI=Sz,RI=Pz;var Ht={};ma(Ht,{Indicator:()=>GI,Item:()=>KI,RadioGroup:()=>FI,RadioGroupIndicator:()=>GI,RadioGroupItem:()=>KI,Root:()=>FI,createRadioGroupScope:()=>HI,unstable_ItemBubbleInput:()=>Tz,unstable_ItemProvider:()=>av,unstable_ItemTrigger:()=>Dz,unstable_RadioGroupItemBubbleInput:()=>Tz,unstable_RadioGroupItemProvider:()=>av,unstable_RadioGroupItemTrigger:()=>Dz});var Or=j(J(),1);var yr=j(J(),1);var kl=j(oe(),1),Ar=j(oe(),1),NI=Object.defineProperty,zr=(e,t)=>NI(e,"name",{value:t,configurable:!0}),Cz="Radio",[DI,zz]=Oe(Cz),[TI,lm]=DI(Cz);function Az(e){let{__scopeRadio:t,checked:a=!1,children:o,disabled:i,form:l,name:r,onCheck:s,required:p,value:n="on",internal_do_not_use_render:d}=e,[c,u]=yr.useState(null),[f,m]=yr.useState(null),h=yr.useRef(!1),[b,x]=yr.useReducer(v=>v+1,0),g=c?!!l||!!c.closest("form"):!0,y={checked:a,disabled:i,required:p,name:r,form:l,value:n,control:c,setControl:u,hasConsumerStoppedPropagationRef:h,userInteractionCount:b,onUserInteraction:x,isFormControl:g,bubbleInput:f,setBubbleInput:m,onCheck:zr(()=>s?.(),"onCheck")};return(0,kl.jsx)(TI,{scope:t,...y,children:Rz(d)?d(y):o})}zr(Az,"RadioProvider");var EI="RadioTrigger",II=yr.forwardRef(zr(function({__scopeRadio:t,onClick:a,...o},i){let{checked:l,disabled:r,value:s,setControl:p,onCheck:n,hasConsumerStoppedPropagationRef:d,onUserInteraction:c,isFormControl:u,bubbleInput:f}=lm(EI,t),m=le(i,p);return(0,kl.jsx)(ne.button,{type:"button",role:"radio","aria-checked":l,"data-state":tv(l),"data-disabled":r?"":void 0,disabled:r,value:s,...o,ref:m,onClick:K(a,h=>{l||(c(),n()),f&&u&&(d.current=h.isPropagationStopped(),d.current||h.stopPropagation())})})},"RadioTrigger")),MI="RadioIndicator",_I=yr.forwardRef(zr(function(t,a){let{__scopeRadio:o,forceMount:i,...l}=t,r=lm(MI,o);return(0,kl.jsx)(_t,{present:i||r.checked,children:(0,kl.jsx)(ne.span,{"data-state":tv(r.checked),"data-disabled":r.disabled?"":void 0,...l,ref:a})})},"RadioIndicator")),OI="RadioBubbleInput",qI=yr.forwardRef(zr(function({__scopeRadio:t,onClick:a,...o},i){let{control:l,checked:r,required:s,disabled:p,name:n,value:d,form:c,bubbleInput:u,setBubbleInput:f,hasConsumerStoppedPropagationRef:m,userInteractionCount:h}=lm(OI,t),b=le(i,f),x=Xa(l),g=yr.useRef(!1),y=yr.useRef(r),v=yr.useRef(h);yr.useEffect(()=>{let R=u;if(!R)return;let w=window.HTMLInputElement.prototype,z=Object.getOwnPropertyDescriptor(w,"checked").set,P=h!==v.current;v.current=h;let A=y.current!==r;y.current=r;let C=!(P&&m.current);if(A&&z){g.current=!P;let N=new Event("click",{bubbles:C});z.call(R,r),R.dispatchEvent(N),g.current=!1}},[u,r,m,h]);let S=yr.useRef(r);return(0,kl.jsx)(ne.input,{type:"radio","aria-hidden":!0,defaultChecked:S.current,required:s,disabled:p,name:n,value:d,form:c,...o,tabIndex:-1,ref:b,onClick:K(a,R=>{g.current&&R.stopPropagation()}),style:{...o.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function Rz(e){return typeof e=="function"}zr(Rz,"isFunction");function tv(e){return e?"checked":"unchecked"}zr(tv,"getState");var jI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rv="RadioGroup",[BI,HI]=Oe(rv,[rn,zz]),Nz=rn(),dm=zz(),[UI,LI]=BI(rv),FI=Or.forwardRef(zr(function(t,a){let{__scopeRadioGroup:o,name:i,form:l,defaultValue:r,value:s,required:p=!1,disabled:n=!1,orientation:d,dir:c,loop:u=!0,onValueChange:f,...m}=t,h=Nz(o),b=Va(c),[x,g]=ft({prop:s,defaultProp:r??null,onChange:f,caller:rv}),[y,v]=Or.useState(null),S=le(a,v),R=Or.useRef(x);return Or.useEffect(()=>{let w=l?y?.ownerDocument.getElementById(l):y?.closest("form");if(w instanceof HTMLFormElement){let $=zr(()=>g(R.current),"reset");return w.addEventListener("reset",$),()=>w.removeEventListener("reset",$)}},[y,l,g]),(0,Ar.jsx)(UI,{scope:o,name:i,form:l,required:p,disabled:n,value:x,onValueChange:g,children:(0,Ar.jsx)(yl,{asChild:!0,...h,orientation:d,dir:b,loop:u,children:(0,Ar.jsx)(ne.div,{role:"radiogroup","aria-required":p,"aria-orientation":d,"data-disabled":n?"":void 0,dir:b,...m,ref:S})})})},"RadioGroup")),VI="RadioGroupItemProvider",ZI="RadioGroupItemTrigger";function av(e){let{__scopeRadioGroup:t,value:a,disabled:o,children:i,internal_do_not_use_render:l}=e,r=LI(VI,t),s=dm(t),p=r.disabled||o;return(0,Ar.jsx)(Az,{...s,checked:r.value===a,disabled:p,required:r.required,name:r.name,form:r.form,value:a,onCheck:()=>r.onValueChange(a),internal_do_not_use_render:l,children:i})}zr(av,"RadioGroupItemProvider");var Dz=Or.forwardRef(zr(function(t,a){let{__scopeRadioGroup:o,...i}=t,l=Nz(o),r=dm(o),{checked:s,disabled:p}=lm(ZI,r.__scopeRadio),n=Or.useRef(null),d=le(a,n),c=Or.useRef(!1);return Or.useEffect(()=>{let u=zr(m=>{jI.includes(m.key)&&(c.current=!0)},"handleKeyDown"),f=zr(()=>c.current=!1,"handleKeyUp");return document.addEventListener("keydown",u),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",u),document.removeEventListener("keyup",f)}},[]),(0,Ar.jsx)(bl,{asChild:!0,...l,focusable:!p,active:s,children:(0,Ar.jsx)(II,{...r,...i,ref:d,onKeyDown:K(i.onKeyDown,u=>{u.key==="Enter"&&u.preventDefault()}),onFocus:K(i.onFocus,()=>{c.current&&n.current?.click()})})})},"RadioGroupItemTrigger")),KI=Or.forwardRef(zr(function(t,a){let{__scopeRadioGroup:o,value:i,disabled:l,...r}=t;return(0,Ar.jsx)(av,{__scopeRadioGroup:o,value:i,disabled:l,internal_do_not_use_render:({isFormControl:s})=>(0,Ar.jsxs)(Ar.Fragment,{children:[(0,Ar.jsx)(Dz,{...r,ref:a,__scopeRadioGroup:o}),s&&(0,Ar.jsx)(Tz,{__scopeRadioGroup:o})]})})},"RadioGroupItem")),Tz=Or.forwardRef(zr(function(t,a){let{__scopeRadioGroup:o,...i}=t,l=dm(o);return(0,Ar.jsx)(qI,{...l,...i,ref:a})},"RadioGroupItemBubbleInput")),GI=Or.forwardRef(zr(function(t,a){let{__scopeRadioGroup:o,...i}=t,l=dm(o);return(0,Ar.jsx)(_I,{...l,...i,ref:a})},"RadioGroupIndicator"));var Ra={};ma(Ra,{Range:()=>nM,Root:()=>eM,Slider:()=>eM,SliderRange:()=>nM,SliderThumb:()=>dM,SliderTrack:()=>oM,Thumb:()=>dM,Track:()=>oM,createSliderScope:()=>JI,unstable_BubbleInput:()=>Uz,unstable_SliderBubbleInput:()=>Uz,unstable_SliderThumbProvider:()=>sv,unstable_SliderThumbTrigger:()=>Hz,unstable_ThumbProvider:()=>sv,unstable_ThumbTrigger:()=>Hz});var Ve=j(J(),1);var vt=j(oe(),1),YI=Object.defineProperty,Ue=(e,t)=>YI(e,"name",{value:t,configurable:!0}),Iz=["PageUp","PageDown"],Mz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],_z={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Gp="Slider",[nv,XI,QI]=Ei(Gp),[iv,JI]=Oe(Gp,[QI]),[WI,Yp]=iv(Gp),eM=Ve.forwardRef(Ue(function(t,a){let{name:o,min:i=0,max:l=100,step:r=1,orientation:s="horizontal",disabled:p=!1,minStepsBetweenThumbs:n=0,defaultValue:d=[i],value:c,onValueChange:u=Ue(()=>{},"onValueChange"),onValueCommit:f=Ue(()=>{},"onValueCommit"),inverted:m=!1,form:h,...b}=t,x=Ve.useRef(new Set),g=Ve.useRef(0),y=Ve.useRef(!1),S=s==="horizontal"?tM:rM,[R,w]=Ve.useState(null),$=le(a,w),[z=[],P]=ft({prop:c,defaultProp:d,onChange:Ue(B=>{[...x.current][g.current]?.focus({preventScroll:!0,focusVisible:y.current}),y.current=!1,u(B)},"onChange")}),A=Ve.useRef(z),C=Ve.useRef(z);Ve.useEffect(()=>{let B=h?R?.ownerDocument.getElementById(h):R?.closest("form");if(B instanceof HTMLFormElement){let U=Ue(()=>P(C.current),"reset");return B.addEventListener("reset",U),()=>B.removeEventListener("reset",U)}},[R,h,P]);function N(B){let U=Vz(z,B);D(B,U)}Ue(N,"handleSlideStart");function M(B){D(B,g.current)}Ue(M,"handleSlideMove");function T(){String(z)!==String(A.current)&&f(z)}Ue(T,"handleSlideEnd");function D(B,U,{commit:Z}={commit:!1}){let G=dv(r),_e=Kp(Math.round((B-i)/r)*r+i,G),re=sm(_e,[i,l]);P((te=[])=>{let be=Lz(te,re,U);if(Gz(be,n*r)){g.current=be.indexOf(re);let Ct=String(be)!==String(te);return Ct&&Z&&f(be),Ct?be:te}else return te})}return Ue(D,"updateValues"),(0,vt.jsx)(WI,{scope:t.__scopeSlider,name:o,disabled:p,min:i,max:l,valueIndexToChangeRef:g,thumbs:x.current,values:z,orientation:s,form:h,children:(0,vt.jsx)(nv.Provider,{scope:t.__scopeSlider,children:(0,vt.jsx)(nv.Slot,{scope:t.__scopeSlider,children:(0,vt.jsx)(S,{"aria-disabled":p,"data-disabled":p?"":void 0,...b,ref:$,onPointerDown:K(b.onPointerDown,()=>{p||(A.current=z,y.current=!1)}),min:i,max:l,inverted:m,onSlideStart:p?void 0:N,onSlideMove:p?void 0:M,onSlideEnd:p?void 0:T,onHomeKeyDown:()=>{p||(y.current=!0,D(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(y.current=!0,D(l,z.length-1,{commit:!0}))},onStepKeyDown:({event:B,direction:U})=>{if(!p){y.current=!0;let _e=Iz.includes(B.key)||B.shiftKey&&Mz.includes(B.key)?10:1,re=g.current,te=z[re],be=Yz(te,{min:i,step:r,direction:U,multiplier:_e});D(be,re,{commit:!0})}}})})})})},"Slider")),[Oz,qz]=iv(Gp,{startEdge:"left",endEdge:"right",size:"width",direction:1}),tM=Ve.forwardRef(Ue(function(t,a){let{min:o,max:i,dir:l,inverted:r,onSlideStart:s,onSlideMove:p,onSlideEnd:n,onStepKeyDown:d,...c}=t,[u,f]=Ve.useState(null),m=le(a,f),h=Ve.useRef(void 0),b=Va(l),x=b==="ltr",g=x&&!r||!x&&r;function y(v){let S=h.current||u.getBoundingClientRect(),R=[0,S.width],$=pm(R,g?[o,i]:[i,o]);return h.current=S,$(v-S.left)}return Ue(y,"getValueFromPointer"),(0,vt.jsx)(Oz,{scope:t.__scopeSlider,startEdge:g?"left":"right",endEdge:g?"right":"left",direction:g?1:-1,size:"width",children:(0,vt.jsx)(jz,{dir:b,"data-orientation":"horizontal",...c,ref:m,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{let S=y(v.clientX);s?.(S)},onSlideMove:v=>{let S=y(v.clientX);p?.(S)},onSlideEnd:()=>{h.current=void 0,n?.()},onStepKeyDown:v=>{let R=_z[g?"from-left":"from-right"].includes(v.key);d?.({event:v,direction:R?-1:1})}})})},"SliderHorizontal")),rM=Ve.forwardRef(Ue(function(t,a){let{min:o,max:i,inverted:l,onSlideStart:r,onSlideMove:s,onSlideEnd:p,onStepKeyDown:n,...d}=t,c=Ve.useRef(null),u=le(a,c),f=Ve.useRef(void 0),m=!l;function h(b){let x=f.current||c.current.getBoundingClientRect(),g=[0,x.height],v=pm(g,m?[i,o]:[o,i]);return f.current=x,v(b-x.top)}return Ue(h,"getValueFromPointer"),(0,vt.jsx)(Oz,{scope:t.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,vt.jsx)(jz,{"data-orientation":"vertical",...d,ref:u,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:b=>{let x=h(b.clientY);r?.(x)},onSlideMove:b=>{let x=h(b.clientY);s?.(x)},onSlideEnd:()=>{f.current=void 0,p?.()},onStepKeyDown:b=>{let g=_z[m?"from-bottom":"from-top"].includes(b.key);n?.({event:b,direction:g?-1:1})}})})},"SliderVertical")),jz=Ve.forwardRef(Ue(function(t,a){let{__scopeSlider:o,onSlideStart:i,onSlideMove:l,onSlideEnd:r,onHomeKeyDown:s,onEndKeyDown:p,onStepKeyDown:n,...d}=t,c=Yp(Gp,o);return(0,vt.jsx)(ne.span,{...d,ref:a,onKeyDown:K(t.onKeyDown,u=>{u.key==="Home"?(s(u),u.preventDefault()):u.key==="End"?(p(u),u.preventDefault()):Iz.concat(Mz).includes(u.key)&&(n(u),u.preventDefault())}),onPointerDown:K(t.onPointerDown,u=>{let f=u.target;f.setPointerCapture(u.pointerId),u.preventDefault(),c.thumbs.has(f)?f.focus({preventScroll:!0,focusVisible:!1}):i(u)}),onPointerMove:K(t.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&l(u)}),onPointerUp:K(t.onPointerUp,u=>{let f=u.target;f.hasPointerCapture(u.pointerId)&&(f.releasePointerCapture(u.pointerId),r(u))})})},"SliderImpl")),aM="SliderTrack",oM=Ve.forwardRef(Ue(function(t,a){let{__scopeSlider:o,...i}=t,l=Yp(aM,o);return(0,vt.jsx)(ne.span,{"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,...i,ref:a})},"SliderTrack")),Ez="SliderRange",nM=Ve.forwardRef(Ue(function(t,a){let{__scopeSlider:o,...i}=t,l=Yp(Ez,o),r=qz(Ez,o),s=Ve.useRef(null),p=le(a,s),n=l.values.length,d=l.values.map(f=>lv(f,l.min,l.max)),c=n>1?Math.min(...d):0,u=100-Math.max(...d);return(0,vt.jsx)(ne.span,{"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,...i,ref:p,style:{...t.style,[r.startEdge]:c+"%",[r.endEdge]:u+"%"}})},"SliderRange")),iM="SliderThumb",[sM,Bz]=iv(iM),lM="SliderThumbProvider";function sv(e){let{__scopeSlider:t,name:a,children:o,internal_do_not_use_render:i}=e,l=Yp(lM,t),r=XI(t),[s,p]=Ve.useState(null),n=Ve.useMemo(()=>s?r().findIndex(b=>b.ref.current===s):-1,[r,s]),d=Xa(s),c=s?!!l.form||!!s.closest("form"):!0,u=l.values[n],f=a??(l.name?l.name+(l.values.length>1?"[]":""):void 0),m=u===void 0?0:lv(u,l.min,l.max);Ve.useEffect(()=>{if(s)return l.thumbs.add(s),()=>{l.thumbs.delete(s)}},[s,l.thumbs]);let h={value:u,name:f,form:l.form,isFormControl:c,index:n,thumb:s,onThumbChange:p,percent:m,size:d};return(0,vt.jsx)(sM,{scope:t,...h,children:Xz(i)?i(h):o})}Ue(sv,"SliderThumbProvider");var ov="SliderThumbTrigger",Hz=Ve.forwardRef(Ue(function(t,a){let{__scopeSlider:o,...i}=t,l=Yp(ov,o),r=qz(ov,o),{index:s,value:p,percent:n,size:d,onThumbChange:c}=Bz(ov,o),u=le(a,c),f=Fz(s,l.values.length),m=d?.[r.size],h=m?Zz(m,n,r.direction):0;return(0,vt.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[r.startEdge]:`calc(${n}% + ${h}px)`},children:(0,vt.jsx)(nv.ItemSlot,{scope:o,children:(0,vt.jsx)(ne.span,{role:"slider","aria-label":t["aria-label"]||f,"aria-valuemin":l.min,"aria-valuenow":p,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:u,style:p===void 0?{display:"none"}:t.style,onFocus:K(t.onFocus,()=>{l.valueIndexToChangeRef.current=s})})})})},"SliderThumbTrigger")),dM=Ve.forwardRef(Ue(function(t,a){let{__scopeSlider:o,name:i,...l}=t;return(0,vt.jsx)(sv,{__scopeSlider:o,name:i,internal_do_not_use_render:({index:r,isFormControl:s})=>(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsx)(Hz,{...l,ref:a,__scopeSlider:o}),s?(0,vt.jsx)(Uz,{__scopeSlider:o},r):null]})})},"SliderThumb")),pM="SliderBubbleInput",Uz=Ve.forwardRef(Ue(function({__scopeSlider:t,...a},o){let{value:i,name:l,form:r}=Bz(pM,t),s=Ve.useRef(null),p=le(s,o),n=Jb(i);return Ve.useEffect(()=>{let d=s.current;if(!d)return;let c=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(n!==i&&f){let m=new Event("input",{bubbles:!0});f.call(d,i),d.dispatchEvent(m)}},[n,i]),(0,vt.jsx)(ne.input,{style:{display:"none"},name:l,form:r,...a,ref:p,defaultValue:i})},"SliderBubbleInput"));function Lz(e=[],t,a){let o=[...e];return o[a]=t,o.sort((i,l)=>i-l)}Ue(Lz,"getNextSortedValues");function lv(e,t,a){let l=100/(a-t)*(e-t);return sm(l,[0,100])}Ue(lv,"convertValueToPercentage");function Fz(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}Ue(Fz,"getLabel");function Vz(e,t){if(e.length===1)return 0;let a=e.map(i=>Math.abs(i-t)),o=Math.min(...a);return a.indexOf(o)}Ue(Vz,"getClosestValueIndex");function Zz(e,t,a){let o=e/2,l=pm([0,50],[0,o]);return(o-l(t)*a)*a}Ue(Zz,"getThumbInBoundsOffset");function Kz(e){return e.slice(0,-1).map((t,a)=>e[a+1]-t)}Ue(Kz,"getStepsBetweenValues");function Gz(e,t){if(t>0){let a=Kz(e);return Math.min(...a)>=t}return!0}Ue(Gz,"hasMinStepsBetweenValues");function pm(e,t){return a=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(a-e[0])}}Ue(pm,"linearScale");function dv(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[o,i]=t.split("e"),l=o.split(".")[1]||"",r=Number(i);return Math.max(0,l.length-r)}let a=t.split(".")[1];return a?a.length:0}Ue(dv,"getDecimalCount");function Kp(e,t){let a=Math.pow(10,t);return Math.round(e*a)/a}Ue(Kp,"roundValue");function Yz(e,{min:t,step:a,direction:o,multiplier:i}){let l=dv(a),r=(e-t)/a,s=Math.round(r),p=Kp(s*a+t,l)===Kp(e,l),n;return p?n=s+i*o:o>0?n=Math.ceil(r):n=Math.floor(r),Kp(n*a+t,l)}Ue(Yz,"getNextStepValue");function Xz(e){return typeof e=="function"}Ue(Xz,"isFunction");var Xp={};ma(Xp,{Root:()=>gM,Switch:()=>gM,SwitchThumb:()=>yM,Thumb:()=>yM,createSwitchScope:()=>fM,unstable_BubbleInput:()=>Jz,unstable_Provider:()=>uv,unstable_SwitchBubbleInput:()=>Jz,unstable_SwitchProvider:()=>uv,unstable_SwitchTrigger:()=>Qz,unstable_Trigger:()=>Qz});var Ut=j(J(),1);var Na=j(oe(),1),cM=Object.defineProperty,ti=(e,t)=>cM(e,"name",{value:t,configurable:!0}),pv="Switch",[uM,fM]=Oe(pv),[mM,cv]=uM(pv);function uv(e){let{__scopeSwitch:t,checked:a,children:o,defaultChecked:i,disabled:l,form:r,name:s,onCheckedChange:p,required:n,value:d="on",internal_do_not_use_render:c}=e,[u,f]=ft({prop:a,defaultProp:i??!1,onChange:p,caller:pv}),[m,h]=Ut.useState(null),[b,x]=Ut.useState(null),g=Ut.useRef(!1),[y,v]=Ut.useReducer(w=>w+1,0),S=m?!!r||!!m.closest("form"):!0,R={checked:u,setChecked:f,disabled:l,control:m,setControl:h,name:s,form:r,value:d,hasConsumerStoppedPropagationRef:g,userInteractionCount:y,onUserInteraction:v,required:n,defaultChecked:i,isFormControl:S,bubbleInput:b,setBubbleInput:x};return(0,Na.jsx)(mM,{scope:t,...R,children:Wz(c)?c(R):o})}ti(uv,"SwitchProvider");var xM="SwitchTrigger",Qz=Ut.forwardRef(ti(function({__scopeSwitch:t,onClick:a,...o},i){let{control:l,form:r,value:s,disabled:p,checked:n,required:d,setControl:c,setChecked:u,hasConsumerStoppedPropagationRef:f,onUserInteraction:m,isFormControl:h,bubbleInput:b}=cv(xM,t),x=le(i,c),g=Ut.useRef(n);return Ut.useEffect(()=>{let y=r?l?.ownerDocument.getElementById(r):l?.form;if(y instanceof HTMLFormElement){let v=ti(()=>u(g.current),"reset");return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[l,r,u]),(0,Na.jsx)(ne.button,{type:"button",role:"switch","aria-checked":n,"aria-required":d,"data-state":fv(n),"data-disabled":p?"":void 0,disabled:p,value:s,...o,ref:x,onClick:K(a,y=>{m(),u(v=>!v),b&&h&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})},"SwitchTrigger")),gM=Ut.forwardRef(ti(function(t,a){let{__scopeSwitch:o,name:i,checked:l,defaultChecked:r,required:s,disabled:p,value:n,onCheckedChange:d,form:c,...u}=t;return(0,Na.jsx)(uv,{__scopeSwitch:o,checked:l,defaultChecked:r,disabled:p,required:s,onCheckedChange:d,name:i,form:c,value:n,internal_do_not_use_render:({isFormControl:f})=>(0,Na.jsxs)(Na.Fragment,{children:[(0,Na.jsx)(Qz,{...u,ref:a,__scopeSwitch:o}),f&&(0,Na.jsx)(Jz,{__scopeSwitch:o})]})})},"Switch")),hM="SwitchThumb",yM=Ut.forwardRef(ti(function(t,a){let{__scopeSwitch:o,...i}=t,l=cv(hM,o);return(0,Na.jsx)(ne.span,{"data-state":fv(l.checked),"data-disabled":l.disabled?"":void 0,...i,ref:a})},"SwitchThumb")),bM="SwitchBubbleInput",Jz=Ut.forwardRef(ti(function({__scopeSwitch:t,onClick:a,...o},i){let{control:l,hasConsumerStoppedPropagationRef:r,userInteractionCount:s,checked:p,defaultChecked:n,required:d,disabled:c,name:u,value:f,form:m,bubbleInput:h,setBubbleInput:b}=cv(bM,t),x=le(i,b),g=Xa(l),y=Ut.useRef(!1),v=Ut.useRef(p),S=Ut.useRef(s);Ut.useEffect(()=>{let w=h;if(!w)return;let $=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor($,"checked").set,A=s!==S.current;S.current=s;let C=v.current!==p;v.current=p;let N=!(A&&r.current);if(C&&P){y.current=!A;let M=new Event("click",{bubbles:N});P.call(w,p),w.dispatchEvent(M),y.current=!1}},[h,p,r,s]);let R=Ut.useRef(p);return(0,Na.jsx)(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:n??R.current,required:d,disabled:c,name:u,value:f,form:m,...o,tabIndex:-1,ref:x,onClick:K(a,w=>{y.current&&w.stopPropagation()}),style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function Wz(e){return typeof e=="function"}ti(Wz,"isFunction");function fv(e){return e?"checked":"unchecked"}ti(fv,"getState");var Ki={};ma(Ki,{Content:()=>NM,List:()=>AM,Root:()=>zM,Tabs:()=>tA,TabsContent:()=>oA,TabsList:()=>rA,TabsTrigger:()=>aA,Trigger:()=>RM,createTabsScope:()=>kM});var nn=j(J(),1);var on=j(oe(),1),vM=Object.defineProperty,$l=(e,t)=>vM(e,"name",{value:t,configurable:!0}),mv="Tabs",[wM,kM]=Oe(mv,[rn]),eA=rn(),[$M,xv]=wM(mv),tA=nn.forwardRef($l(function(t,a){let{__scopeTabs:o,value:i,onValueChange:l,defaultValue:r,orientation:s="horizontal",dir:p,activationMode:n="automatic",...d}=t,c=Va(p),[u,f]=ft({prop:i,onChange:l,defaultProp:r??"",caller:mv});return(0,on.jsx)($M,{scope:o,baseId:Gt(),value:u,onValueChange:f,orientation:s,dir:c,activationMode:n,children:(0,on.jsx)(ne.div,{dir:c,"data-orientation":s,...d,ref:a})})},"Tabs")),SM="TabsList",rA=nn.forwardRef($l(function(t,a){let{__scopeTabs:o,loop:i=!0,...l}=t,r=xv(SM,o),s=eA(o);return(0,on.jsx)(yl,{asChild:!0,...s,orientation:r.orientation,dir:r.dir,loop:i,children:(0,on.jsx)(ne.div,{role:"tablist","aria-orientation":r.orientation,...l,ref:a})})},"TabsList")),PM="TabsTrigger",aA=nn.forwardRef($l(function(t,a){let{__scopeTabs:o,value:i,disabled:l=!1,...r}=t,s=xv(PM,o),p=eA(o),n=gv(s.baseId,i),d=hv(s.baseId,i),c=i===s.value;return(0,on.jsx)(bl,{asChild:!0,...p,focusable:!l,active:c,children:(0,on.jsx)(ne.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:n,...r,ref:a,onMouseDown:K(t.onMouseDown,u=>{!l&&u.button===0&&u.ctrlKey===!1?s.onValueChange(i):u.preventDefault()}),onKeyDown:K(t.onKeyDown,u=>{l||u.target!==u.currentTarget||[" ","Enter"].includes(u.key)&&s.onValueChange(i)}),onFocus:K(t.onFocus,()=>{let u=s.activationMode!=="manual";!c&&!l&&u&&s.onValueChange(i)})})})},"TabsTrigger")),CM="TabsContent",oA=nn.forwardRef($l(function(t,a){let{__scopeTabs:o,value:i,forceMount:l,children:r,...s}=t,p=xv(CM,o),n=gv(p.baseId,i),d=hv(p.baseId,i),c=i===p.value,u=nn.useRef(c);return nn.useEffect(()=>{let f=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(f)},[]),(0,on.jsx)(_t,{present:l||c,children:({present:f})=>(0,on.jsx)(ne.div,{"data-state":c?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":n,hidden:!f,id:d,tabIndex:0,...s,ref:a,style:{...t.style,animationDuration:u.current?"0s":void 0},children:f&&r})})},"TabsContent"));function gv(e,t){return`${e}-trigger-${t}`}$l(gv,"makeTriggerId");function hv(e,t){return`${e}-content-${t}`}$l(hv,"makeContentId");var zM=tA,AM=rA,RM=aA,NM=oA;var Se=j(oe(),1);function sn({ids:e}){return(0,Se.jsx)(Se.Fragment,{children:e?.map(t=>(0,Se.jsx)(pe,{id:t},t))})}function ln({children:e,className:t}){let a=Math.min((0,ao.useContext)(Ha),6);return(0,ao.createElement)(`h${a}`,{className:t},e)}function nA({node:e}){let t=ae(),a=(0,ao.useContext)(Ha),o=(0,ao.useId)();return(0,Se.jsxs)("section",{className:"pxd-section","aria-labelledby":o,...ie(e),children:[(0,Se.jsxs)("div",{className:"pxd-section-header",children:[(0,ao.createElement)(`h${Math.min(a,6)}`,{id:o,className:"pxd-section-title"},t.text(e.title)),e.description!==void 0&&(0,Se.jsx)("p",{className:"pxd-section-description",children:t.text(e.description)})]}),(0,Se.jsx)(Ha.Provider,{value:a+1,children:(0,Se.jsx)("div",{className:"pxd-stack",children:(0,Se.jsx)(sn,{ids:e.children})})})]})}function iA({node:e}){let t=W(),a=(e.children??[]).map(r=>t.byId.get(r)),o=a.length>1&&a.every(r=>r?.component==="Metric"),i=e.arrangement??"auto";return(0,Se.jsx)("div",{className:`pxd-group pxd-stack${i==="inline"?" pxd-group-inline":i==="grid"?" pxd-group-grid":o?" pxd-metric-row":""}`,...ie(e),children:(0,Se.jsx)(sn,{ids:e.children})})}function sA({node:e}){return(0,Se.jsx)("div",{className:`pxd-columns pxd-columns-${e.layout??"two-thirds"} pxd-columns-collapse-${e.collapse??"compact"} pxd-columns-align-${e.align??"stretch"}`,...ie(e),children:(0,Se.jsx)(sn,{ids:e.children})})}function lA({node:e}){let t=ae(),a=W(),o=t.text(e.title),i=e.badge?.tone??"neutral";return(0,Se.jsxs)("article",{className:`pxd-card${e.action?" pxd-card-actionable":""}`,...ie(e),children:[e.media&&(0,Se.jsx)("div",{className:"pxd-card-media",children:(0,Se.jsx)(pe,{id:e.media})}),(0,Se.jsxs)("div",{className:"pxd-card-body",children:[(0,Se.jsxs)("div",{className:"pxd-card-header",children:[(0,Se.jsx)(ln,{className:"pxd-card-title",children:e.action?(0,Se.jsx)("button",{type:"button",className:"pxd-card-link",onClick:()=>a.dispatch(e.action,t.scope,e.id),children:o}):o}),e.badge&&(0,Se.jsx)("span",{className:`pxd-badge pxd-tone-${i}`,children:t.text(e.badge.text)})]}),e.subtitle!==void 0&&(0,Se.jsx)("p",{className:"pxd-card-subtitle",children:t.text(e.subtitle)}),e.progress&&(0,Se.jsx)(DM,{value:t.value(e.progress.value),label:e.progress.label!==void 0&&t.text(e.progress.label)||void 0,name:o,locale:a.locale}),e.children&&(0,Se.jsx)("div",{className:"pxd-stack pxd-stack-tight pxd-card-children",children:(0,Se.jsx)(sn,{ids:e.children})})]})]})}function DM({value:e,label:t,name:a,locale:o}){let i=Math.max(0,Math.min(1,Number(e)||0)),l=new Intl.NumberFormat(o,{style:"percent",maximumFractionDigits:0}).format(i);return(0,Se.jsxs)("div",{className:"pxd-progress",children:[(0,Se.jsx)("div",{className:"pxd-progress-track",role:"progressbar","aria-label":`Progress: ${a}`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(i*100),"aria-valuetext":t??l,children:(0,Se.jsx)("div",{className:"pxd-progress-fill",style:{width:`${i*100}%`}})}),(0,Se.jsx)("span",{className:"pxd-progress-label",children:t??l})]})}function dA({node:e}){let t=ae(),a=W(),[o,i]=(0,ao.useState)(e.open??a.disclosure==="show-everything");return(0,Se.jsxs)(ol.Root,{className:"pxd-disclosure",open:o,onOpenChange:i,...ie(e),children:[(0,Se.jsxs)(ol.Trigger,{className:"pxd-disclosure-trigger",children:[(0,Se.jsx)("span",{className:"pxd-disclosure-icon","aria-hidden":"true",children:o?"\u25BE":"\u25B8"}),t.text(e.summary)]}),(0,Se.jsx)(ol.Content,{className:"pxd-disclosure-content",children:(0,Se.jsx)("div",{className:"pxd-stack",children:(0,Se.jsx)(sn,{ids:e.children})})})]})}function pA({node:e}){let t=ae(),a=W(),o=e.selected?t.value(e.selected):void 0,[i,l]=(0,ao.useState)(o??e.views[0].key),r=o??i,s=p=>e.selected?t.write(e.selected,p):l(p);return(0,Se.jsxs)(Ki.Root,{className:`pxd-views pxd-views-${e.variant??"tabs"}`,value:r,onValueChange:s,...ie(e),children:[(0,Se.jsx)(Ki.List,{className:"pxd-views-list",children:e.views.map(p=>{let n=p.count!==void 0?t.value(p.count):void 0;return(0,Se.jsxs)(Ki.Trigger,{value:p.key,className:"pxd-views-tab",children:[t.text(p.label),n!==void 0&&(0,Se.jsx)("span",{className:"pxd-views-count",children:new Intl.NumberFormat(a.locale).format(n)})]},p.key)})}),e.views.map(p=>(0,Se.jsx)(Ki.Content,{value:p.key,className:"pxd-views-panel",children:(0,Se.jsx)(pe,{id:p.content})},p.key))]})}var Da=j(J(),1);var Qp=j(oe(),1);function qr({value:e,name:t,size:a=40}){let o=W(),i=typeof e=="string"?e:"",l=ry(i)?o.resolveMedia?.(i):void 0,r=ty(i,t),s=ey(t);return l?(0,Qp.jsx)("img",{className:"pxd-avatar",src:l,alt:"",width:a,height:a,style:{width:a,height:a}}):(0,Qp.jsx)("span",{className:`pxd-avatar pxd-avatar-${s}`,"aria-hidden":"true",style:{width:a,height:a,fontSize:Math.round(a*.38)},children:r})}function ee({name:e,size:t=20}){return(0,Qp.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,Qp.jsx)("path",{d:ay(e)})})}var fa=j(oe(),1);function cA({node:e}){let t=ae(),a=W(),o=ie(e),i=(0,Da.useRef)(null),l=(0,Da.useRef)(null),[r,s]=(0,Da.useState)(!1),[p,n]=(0,Da.useState)(!1),[d,c]=(0,Da.useState)(Ku[e.ratio??"narrow"]??Ku.narrow);(0,Da.useLayoutEffect)(()=>{let $=i.current?.closest(".pxd-surface")??i.current;if(!$||typeof ResizeObserver>"u")return;let z=()=>s($.getBoundingClientRect().width<kh);z();let P=new ResizeObserver(z);return P.observe($),()=>P.disconnect()},[]);let u=t.value(e.selected),{has:f,scope:m,name:h}=Ph(e,a.byId,a.data,t.scope),b=(0,Da.useRef)(u);(0,Da.useEffect)(()=>{u!==b.current&&(b.current=u,n(!1),r&&f&&l.current?.focus())},[u,r,f]);let x=!r||f&&!p,g=!r||!x,y=$h,v=$=>{let z=$.shiftKey?10:5,P=$.key==="ArrowLeft"?d-z:$.key==="ArrowRight"?d+z:$.key==="Home"?kp:$.key==="End"?$p:void 0;P!==void 0&&($.preventDefault(),c(y(P)))},S=$=>{if($.pointerType==="mouse"&&$.button!==0)return;let z=i.current;if(!z)return;$.currentTarget.setPointerCapture($.pointerId);let P=z.getBoundingClientRect(),A=getComputedStyle(z).direction==="rtl",C=M=>{let T=A?P.right-M.clientX:M.clientX-P.left;c(y(T/P.width*100))},N=()=>{z.removeEventListener("pointermove",C),z.removeEventListener("pointerup",N),z.removeEventListener("pointercancel",N)};z.addEventListener("pointermove",C),z.addEventListener("pointerup",N),z.addEventListener("pointercancel",N)},R=!!e.resizable&&!r,w=R?{"--polyxd-split-share":`${d}%`}:void 0;return(0,fa.jsxs)("div",{ref:i,className:`pxd-split pxd-split-${e.ratio??"narrow"}${r?" pxd-split-compact":""}${R?" pxd-split-resizable":""}`,style:w,...o,children:[(0,fa.jsx)("div",{className:"pxd-split-primary",hidden:!g,children:(0,fa.jsx)(pe,{id:e.primary})}),R&&(0,fa.jsx)("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize the list","aria-valuenow":Math.round(d),"aria-valuemin":kp,"aria-valuemax":$p,tabIndex:0,className:"pxd-split-handle",onKeyDown:v,onPointerDown:S,children:(0,fa.jsx)("span",{className:"pxd-split-handle-line","aria-hidden":"true"})}),x&&(0,fa.jsxs)("div",{ref:l,className:"pxd-split-detail",tabIndex:-1,"aria-label":h,children:[r&&(0,fa.jsxs)("button",{type:"button",className:"pxd-button pxd-button-tertiary pxd-split-back",onClick:()=>n(!0),children:[(0,fa.jsx)(ee,{name:"chevronLeft",size:18}),"Back"]}),f?(0,fa.jsx)(pe,{id:e.detail,scope:m}):e.empty?(0,fa.jsx)(pe,{id:e.empty}):null]}),(0,fa.jsx)("span",{className:"pxd-sr-only","aria-live":"polite",children:r&&f&&!p?h:""})]})}var Je=j(J(),1);var Ao=j(oe(),1);function yv({part:e}){return"block"in e?(0,Ao.jsx)("span",{className:`pxd-skeleton-block pxd-skeleton-${e.block}${e.size?` pxd-skeleton-${e.size}`:""}`}):(0,Ao.jsx)("div",{className:Ah[e.group],children:e.parts.map((t,a)=>(0,Ao.jsx)(yv,{part:t},a))})}function Jp({title:e,pattern:t,shape:a,theme:o,mode:i,density:l,locale:r="en-GB",className:s}){let p=Ch(t,a);return(0,Ao.jsxs)("div",{className:["pxd-surface","pxd-skeleton",`pxd-skeleton-${p}`,s].filter(Boolean).join(" "),"data-pxd-theme":o,"data-pxd-mode":i,"data-pxd-density":l,lang:r,role:"status","aria-busy":"true",children:[(0,Ao.jsx)("span",{className:"pxd-sr-only",children:Rh(e)}),(0,Ao.jsxs)("div",{className:"pxd-skeleton-body","aria-hidden":"true",children:[(0,Ao.jsx)(yv,{part:{block:"title",size:p==="dialog"?"short":"medium"}}),zh[p].map((n,d)=>(0,Ao.jsx)(yv,{part:n},d))]})]})}var ce=j(oe(),1);function fA({node:e}){let t=W(),a=(0,Je.useContext)(of),o=(0,Je.useRef)(null),i=(0,Je.useId)(),[l,r]=(0,Je.useState)("wide"),[s,p]=(0,Je.useState)(!1),n=ie(e);(0,Je.useLayoutEffect)(()=>{let x=o.current;if(!x||typeof ResizeObserver>"u")return;let g=()=>r(Oh(x.getBoundingClientRect().width));g();let y=new ResizeObserver(g);return y.observe(x),()=>y.disconnect()},[]);let d=e.navigation?t.byId.get(e.navigation):void 0,c=qh(d?.placement,l,d?.items?.length??0),u=x=>String(ht(x,t.data,Ln)??"");(0,Je.useEffect)(()=>{c!=="drawer"&&p(!1)},[c]);let f={navigation:c,compact:l==="compact",mainId:i,navigationId:d?.id,navigationLabel:d?d.label!==void 0?u(d.label):"Main":void 0,current:a?.current,drawerOpen:s,setDrawerOpen:p},m=e.header?t.byId.get(e.header):void 0,h=e.aside?t.byId.get(e.aside):void 0,b=x=>{x.preventDefault(),document.getElementById(i)?.focus()};return(0,ce.jsx)(Di.Provider,{value:f,children:(0,ce.jsxs)("div",{ref:o,className:`pxd-frame pxd-frame-width-${e.width??"contained"}`,"data-pxd-layout":l,"data-pxd-nav":c,"data-pxd-appbar":m?.component==="AppBar"&&m.sticky!==!1?m.variant??"standard":void 0,...n,children:[e.skipTarget!==!1&&(0,ce.jsx)("a",{className:"pxd-skip-link",href:`#${i}`,onClick:b,children:"Skip to main content"}),e.banner&&(0,ce.jsx)("div",{className:"pxd-frame-banner",children:(0,ce.jsx)(pe,{id:e.banner})}),e.header&&(0,ce.jsx)(pe,{id:e.header}),(0,ce.jsxs)("div",{className:"pxd-frame-body",children:[d&&(0,ce.jsx)("div",{className:"pxd-frame-nav",children:(0,ce.jsx)(pe,{id:d.id})}),(0,ce.jsx)("div",{className:"pxd-frame-main",children:(0,ce.jsx)(pe,{id:e.main})}),h&&(0,ce.jsx)("aside",{className:"pxd-frame-aside","aria-label":h.title!==void 0?u(h.title):"Aside",children:(0,ce.jsx)(pe,{id:h.id})})]}),e.footer&&(0,ce.jsx)(pe,{id:e.footer})]})})}function TM({value:e,name:t}){let a=W(),o=typeof e=="string"?e:"",i=o.length>3?a.resolveMedia?.(o):void 0;if(i)return(0,ce.jsx)("img",{className:"pxd-appbar-logo",src:i,alt:""});let l=(o&&o.length<=3?o:t.split(/\s+/).map(r=>r[0]).join("").slice(0,2)).toUpperCase();return(0,ce.jsx)("span",{className:"pxd-appbar-mark","aria-hidden":"true",children:l})}function mA({node:e}){let t=ae(),a=(0,Je.useContext)(Di),o=ie(e),i=(0,Je.useRef)(null),l=(0,Je.useRef)(null),[r,s]=(0,Je.useState)(!1),[p,n]=(0,Je.useState)(!1),d=e.variant??"standard",c=e.sticky!==!1,u=a?.compact??!1,f=t.text(e.title),m=jh(f,u,a?.current?.title),h=a?.navigation==="drawer";(0,Je.useEffect)(()=>{let x=i.current;if(!c||!x||typeof IntersectionObserver>"u")return;let g=new IntersectionObserver(([y])=>s(!y.isIntersecting));return g.observe(x),()=>g.disconnect()},[c]),(0,Je.useEffect)(()=>{p&&l.current?.querySelector("input, button")?.focus()},[p]);let b=(0,ce.jsx)("div",{ref:l,className:`pxd-appbar-search${u?" pxd-appbar-search-row":""}`,role:"search","aria-label":"Search",children:(0,ce.jsx)(pe,{id:e.search})});return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("div",{ref:i,className:"pxd-appbar-sentinel","aria-hidden":"true"}),(0,ce.jsxs)("header",{className:`pxd-appbar pxd-appbar-${d}${c?" pxd-appbar-sticky":""}`,"data-pxd-scrolled":r||void 0,...o,children:[(0,ce.jsxs)("div",{className:"pxd-appbar-row",children:[h?(0,ce.jsx)("button",{type:"button",className:"pxd-icon-button pxd-appbar-menu","aria-label":`${a.navigationLabel??"Main"} menu`,"aria-expanded":a.drawerOpen,onClick:()=>a.setDrawerOpen(!0),children:(0,ce.jsx)(ee,{name:"menu"})}):e.leading&&(0,ce.jsx)("div",{className:"pxd-appbar-leading",children:(0,ce.jsx)(pe,{id:e.leading})}),(0,ce.jsxs)("div",{className:"pxd-appbar-brand",children:[e.brand!==void 0&&(0,ce.jsx)(TM,{value:t.value(e.brand),name:f}),(d!=="large"||u)&&(0,ce.jsx)("span",{className:"pxd-appbar-title",children:m})]}),e.search&&(u?(0,ce.jsx)("button",{type:"button",className:"pxd-icon-button pxd-appbar-search-toggle","aria-label":p?"Close search":"Search","aria-expanded":p,onClick:()=>n(x=>!x),children:(0,ce.jsx)(ee,{name:p?"close":"search"})}):b),(e.actions||e.account)&&(0,ce.jsxs)("div",{className:"pxd-appbar-end",children:[e.actions&&(0,ce.jsx)("div",{className:"pxd-appbar-actions",children:(0,ce.jsx)(pe,{id:e.actions})}),e.account&&(0,ce.jsx)("div",{className:"pxd-appbar-account",children:(0,ce.jsx)(pe,{id:e.account})})]})]}),e.search&&u&&p&&b,d==="large"&&!u&&(0,ce.jsx)("div",{className:"pxd-appbar-headline",children:m})]})]})}function xA({node:e}){let t=ae(),a=W(),o=Math.min((0,Je.useContext)(Ha),6),i=(0,Je.useId)(),l=e.groups??[];return(0,ce.jsxs)("footer",{className:"pxd-footer",...ie(e),children:[l.length>0&&(0,ce.jsx)("div",{className:"pxd-footer-groups",children:l.map(r=>{let s=`${i}-${r.key}`;return(0,ce.jsxs)("nav",{className:"pxd-footer-group","aria-labelledby":s,children:[(0,Je.createElement)(`h${o}`,{id:s,className:"pxd-footer-heading"},t.text(r.label)),(0,ce.jsx)("ul",{children:r.items.map(p=>(0,ce.jsx)("li",{children:(0,ce.jsx)("button",{type:"button",className:"pxd-link pxd-footer-link",onClick:()=>a.dispatch(p.action,t.scope,e.id),children:t.text(p.label)})},p.key))})]},r.key)})}),(0,ce.jsxs)("div",{className:"pxd-footer-legal",children:[(0,ce.jsx)("p",{className:"pxd-footer-legal-text",children:t.text(e.legal)}),e.aside&&(0,ce.jsx)("div",{className:"pxd-footer-aside",children:(0,ce.jsx)(pe,{id:e.aside})})]})]})}function gA({node:e}){let t=ae(),a=(0,Je.useContext)(of),o=(0,Je.useContext)(Di),i=ie(e),l=(0,Je.useRef)(null),r=!!a?.loading,s=`${a?.current?.key??""}\0${a?.current?.title??""}`,p=(0,Je.useRef)(s);(0,Je.useEffect)(()=>{if(p.current===s)return;p.current=s;let d=l.current;if(r||!d)return;let c=d.querySelector("h1");c&&!c.hasAttribute("tabindex")&&(c.tabIndex=-1),(c??d).focus()},[s,r]);let n=o?{...o,navigationId:void 0}:null;return(0,ce.jsx)("main",{ref:l,id:o?.mainId,className:"pxd-outlet",tabIndex:-1,"aria-label":e.label!==void 0?t.text(e.label):void 0,...i,children:r?e.loading?(0,ce.jsx)(pe,{id:e.loading}):(0,ce.jsx)(Jp,{title:a?.current?.title,className:"pxd-outlet-skeleton"}):(0,ce.jsx)(Di.Provider,{value:n,children:a?.outlet})})}var EM=(()=>{try{return!1}catch{return!0}})(),uA=new Set;function hA({node:e}){let t=ae(),a=W(),o=ie(e),i=a.components[e.name];if(!i)return EM&&!uA.has(e.name)&&(uA.add(e.name),console.warn(`[polyxd] No host component named "${e.name}"; rendering its fallback. Pass one in PolyxdSurface's components.`)),e.fallback?(0,ce.jsx)(pe,{id:e.fallback}):null;let l=Ks(e.props??{},a.data,t.scope)??{},r=(0,ce.jsx)(i,{...l,node:e});return e.label===void 0?r:(0,ce.jsx)("div",{className:"pxd-custom",role:"group","aria-label":t.text(e.label),...o,children:r})}var nr=j(J(),1);var dn=j(J(),1);var F=j(oe(),1);function yA({node:e}){let t=ae(),a=W(),o=(0,dn.useRef)(null),[i,l]=(0,dn.useState)(!1),r=he(e.rows.path,t.scope),s=kt(we(a.data,r)),p=t.text(e.caption),n=!!e.detail&&e.expandable!==!1,[d,c]=(0,dn.useState)([]),u=T=>d.includes(T),f=T=>c(D=>D.includes(T)?D.filter(B=>B!==T):[...D,T]),m=(T,D)=>(0,F.jsx)("button",{type:"button",className:"pxd-icon-button pxd-table-expander","aria-expanded":u(T),"aria-label":`${u(T)?"Hide":"Show"} details for ${D}`,onClick:()=>f(T),children:(0,F.jsx)(ee,{name:u(T)?"sortUp":"sortDown",size:16})});(0,dn.useLayoutEffect)(()=>{let T=o.current;if(!T||typeof ResizeObserver>"u")return;let D=()=>l(T.getBoundingClientRect().width<Nh);D();let B=new ResizeObserver(D);return B.observe(T),()=>B.disconnect()},[]);let h=e.selection==="multiple",b=h&&e.selected?t.value(e.selected)??[]:[],x=(T,D)=>e.rowValuePath?we(a.data,he(e.rowValuePath,T)):s[D]?.id??D,g=T=>t.write(e.selected,b.includes(T)?b.filter(D=>D!==T):[...b,T]),y=s.map((T,D)=>x({pointer:pt(r,D)},D)),v=s.length>0&&y.every(T=>b.includes(T)),S=()=>t.write(e.selected,v?[]:y),R=e.sort?.column?t.value(e.sort.column):void 0,w=e.sort?.direction?t.value(e.sort.direction):"ascending",$=T=>{let D=T===R&&w==="ascending"?"descending":"ascending";e.sort?.column&&t.write(e.sort.column,T),e.sort?.direction&&t.write(e.sort.direction,D),e.sort?.action&&a.dispatch(e.sort.action,t.scope,e.id)},z=(T,D)=>{let B=we(a.data,he(T.path,D)),U=Ee(B,et(T.format,a.data,t.scope),a.locale);if(T.kind==="status")return(0,F.jsx)("span",{className:`pxd-badge pxd-tone-${T.tones?.[String(B)]??"neutral"}`,children:U});if(T.format?.type==="color")return(0,F.jsxs)("span",{className:"pxd-color-value",children:[(0,F.jsx)("span",{className:`pxd-swatch${Fn(U)?"":" pxd-swatch-unknown"}`,style:Fn(U)?{background:Fn(U)}:void 0,"aria-hidden":"true"}),U]});if(T.kind==="entity"){let Z=T.secondaryPath?String(we(a.data,he(T.secondaryPath,D))??""):"";return(0,F.jsxs)("span",{className:"pxd-entity",children:[T.avatarPath&&(0,F.jsx)(qr,{value:we(a.data,he(T.avatarPath,D)),name:U,size:28}),(0,F.jsxs)("span",{className:"pxd-entity-text",children:[e.rowAction?(0,F.jsx)("button",{type:"button",className:"pxd-link",onClick:()=>a.dispatch(e.rowAction,D,e.id),children:U}):(0,F.jsx)("span",{className:"pxd-entity-name",children:U}),Z&&(0,F.jsx)("span",{className:"pxd-entity-secondary",children:Z})]})]})}return T.kind==="link"&&e.rowAction?(0,F.jsx)("button",{type:"button",className:"pxd-link",onClick:()=>a.dispatch(e.rowAction,D,e.id),children:U}):U},P=(T,D)=>{let U=(a.byId.get(e.rowActions)?.children??[]).map(Z=>a.byId.get(Z)).filter(Z=>!!Z&&(Z.visible===void 0||ht(Z.visible,a.data,T)!==!1));return U.length?(0,F.jsxs)(ut.Root,{children:[(0,F.jsx)(ut.Trigger,{className:"pxd-icon-button","aria-label":`Actions for ${D}`,children:(0,F.jsx)(ee,{name:"dots",size:18})}),(0,F.jsx)(ut.Portal,{container:a.portal,children:(0,F.jsx)(ut.Content,{className:"pxd-menu",align:"end",children:U.map(Z=>(0,F.jsx)(ut.Item,{className:`pxd-menu-item${Z.tone==="danger"?" pxd-menu-item-danger":""}`,onSelect:()=>a.dispatch(Z.action,T,Z.id),children:t.text(Z.label)},Z.id))})})]}):null},A=(0,F.jsxs)(F.Fragment,{children:[e.views&&(0,F.jsx)(IM,{node:e}),(e.search||e.toolbar||h&&b.length>0)&&(0,F.jsx)("div",{className:`pxd-table-toolbar${b.length>0?" pxd-table-bulk":""}`,role:"toolbar","aria-label":b.length>0?`Actions for ${b.length} selected`:"Table tools",children:b.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("p",{className:"pxd-bulk-count","aria-live":"polite",children:[b.length," selected"]}),e.bulkActions&&(0,F.jsx)(pe,{id:e.bulkActions}),(0,F.jsx)("button",{type:"button",className:"pxd-button pxd-button-tertiary",onClick:()=>t.write(e.selected,[]),children:"Cancel"})]}):(0,F.jsxs)(F.Fragment,{children:[e.search&&(0,F.jsx)(pe,{id:e.search}),(0,F.jsx)("span",{className:"pxd-table-toolbar-spacer"}),e.toolbar&&(0,F.jsx)(pe,{id:e.toolbar})]})})]}),C=!s.length&&e.empty?(0,F.jsx)(pe,{id:e.empty}):i?(0,F.jsx)(N,{}):(0,F.jsx)(M,{});function N(){return(0,F.jsx)("ul",{className:"pxd-row-list","aria-label":p,children:s.map((T,D)=>{let B={pointer:pt(r,D)},{first:U,status:Z,details:G}=Dh(e.columns),_e=Ee(we(a.data,he(U.path,B)),et(U.format,a.data,t.scope),a.locale);return(0,F.jsxs)("li",{className:"pxd-row-item",children:[h&&e.selected&&(0,F.jsx)(qt.Root,{className:"pxd-checkbox",checked:b.includes(x(B,D)),onCheckedChange:()=>g(x(B,D)),"aria-label":`Select ${_e}`,children:(0,F.jsx)(qt.Indicator,{children:(0,F.jsx)(ee,{name:"check",size:14})})}),n&&m(x(B,D),_e),(0,F.jsxs)("div",{className:"pxd-row-main",children:[(0,F.jsx)("div",{className:"pxd-row-title",children:z(U,B)}),(0,F.jsx)("p",{className:"pxd-row-details",children:G.map((re,te)=>(0,F.jsxs)("span",{children:[te>0&&(0,F.jsx)("span",{"aria-hidden":"true",children:" \xB7 "}),(0,F.jsxs)("span",{className:"pxd-sr-only",children:[t.text(re.label),": "]}),Ee(we(a.data,he(re.path,B)),et(re.format,a.data,t.scope),a.locale)]},re.key))})]}),Z&&z(Z,B),e.rowActions?P(B,_e):e.rowAction&&!e.columns[0].kind?(0,F.jsxs)("button",{type:"button",className:"pxd-button pxd-button-tertiary",onClick:()=>a.dispatch(e.rowAction,B,e.id),children:["Select",(0,F.jsxs)("span",{className:"pxd-sr-only",children:[" ",_e]})]}):null,n&&u(x(B,D))&&(0,F.jsx)("div",{className:"pxd-row-detail",children:(0,F.jsx)(pe,{id:e.detail,scope:B})})]},String(x(B,D)))})})}function M(){return(0,F.jsx)("div",{className:"pxd-table-scroll",children:(0,F.jsxs)("table",{className:"pxd-table",children:[(0,F.jsx)("caption",{className:e.views||e.search?"pxd-sr-only":void 0,children:p}),(0,F.jsx)("thead",{children:(0,F.jsxs)("tr",{children:[n&&(0,F.jsx)("th",{scope:"col",className:"pxd-table-expand",children:(0,F.jsx)("span",{className:"pxd-sr-only",children:"Details"})}),h&&e.selected&&(0,F.jsx)("th",{scope:"col",className:"pxd-table-select",children:(0,F.jsx)(qt.Root,{className:"pxd-checkbox",checked:v?!0:b.length>0?"indeterminate":!1,onCheckedChange:S,"aria-label":"Select all rows",children:(0,F.jsx)(qt.Indicator,{children:(0,F.jsx)(ee,{name:v?"check":"dash",size:14})})})}),e.columns.map(T=>{let D=T.key===R;return(0,F.jsx)("th",{scope:"col",className:Yu(T)?"pxd-num":void 0,"aria-sort":T.sortable?D?w:"none":void 0,children:T.sortable?(0,F.jsxs)("button",{type:"button",className:"pxd-sort",onClick:()=>$(T.key),children:[t.text(T.label),(0,F.jsx)(ee,{name:D?w==="descending"?"sortDown":"sortUp":"sort",size:16})]}):t.text(T.label)},T.key)}),(e.rowActions||e.rowAction)&&(0,F.jsx)("th",{scope:"col",children:(0,F.jsx)("span",{className:"pxd-sr-only",children:"Actions"})})]})}),(0,F.jsx)("tbody",{children:s.map((T,D)=>{let B={pointer:pt(r,D)},U=x(B,D),Z=Ee(we(a.data,he(e.columns[0].path,B)),et(e.columns[0].format,a.data,t.scope),a.locale),G=e.columns.length+(n?1:0)+(h&&e.selected?1:0)+(e.rowActions||e.rowAction?1:0);return(0,F.jsxs)(dn.Fragment,{children:[(0,F.jsxs)("tr",{className:b.includes(U)?"pxd-row-selected":void 0,"aria-selected":h?b.includes(U):void 0,children:[n&&(0,F.jsx)("td",{className:"pxd-table-expand",children:m(U,Z)}),h&&e.selected&&(0,F.jsx)("td",{className:"pxd-table-select",children:(0,F.jsx)(qt.Root,{className:"pxd-checkbox",checked:b.includes(U),onCheckedChange:()=>g(U),"aria-label":`Select ${Z}`,children:(0,F.jsx)(qt.Indicator,{children:(0,F.jsx)(ee,{name:"check",size:14})})})}),e.columns.map((_e,re)=>(0,F.jsx)(re===0?"th":"td",{scope:re===0?"row":void 0,"data-label":t.text(_e.label),className:Yu(_e)?"pxd-num":void 0,children:z(_e,B)},_e.key)),(e.rowActions||e.rowAction)&&(0,F.jsx)("td",{className:"pxd-table-action",children:e.rowActions?P(B,Z):(0,F.jsxs)("button",{type:"button",className:"pxd-button pxd-button-tertiary",onClick:()=>a.dispatch(e.rowAction,B,e.id),children:["Select",(0,F.jsxs)("span",{className:"pxd-sr-only",children:[" ",Z]})]})})]}),n&&u(U)&&(0,F.jsx)("tr",{className:"pxd-table-detail",children:(0,F.jsx)("td",{colSpan:G,children:(0,F.jsx)(pe,{id:e.detail,scope:B})})})]},String(U))})})]})})}return(0,F.jsxs)("div",{ref:o,className:"pxd-table-wrap",...ie(e),children:[A,C,e.page&&(0,F.jsx)(bv,{node:e,rows:s.length})]})}function IM({node:e}){let t=ae(),a=W(),o=e.view?t.value(e.view):e.views[0].key;return(0,F.jsx)("div",{className:"pxd-table-views",role:"tablist","aria-label":"Saved views",children:e.views.map(i=>{let l=i.count!==void 0?t.value(i.count):void 0,r=i.key===o;return(0,F.jsxs)("button",{type:"button",role:"tab","aria-selected":r,className:`pxd-table-view${r?" pxd-table-view-current":""}`,onClick:()=>{e.view&&t.write(e.view,i.key),a.dispatch(i.action,t.scope,e.id)},children:[t.text(i.label),l!==void 0&&(0,F.jsx)("span",{className:"pxd-views-count",children:new Intl.NumberFormat(a.locale).format(l)})]},i.key)})})}function bv({node:e,rows:t}){let a=ae(),o=W(),i=e.page,{index:l,size:r,total:s,pages:p,from:n,to:d,sizes:c}=Th(i.index?a.value(i.index):void 0,i.size?a.value(i.size):void 0,i.total?a.value(i.total):void 0,t),u=m=>new Intl.NumberFormat(o.locale).format(m),f=m=>{i.index&&a.write(i.index,m),o.dispatch(i.action,a.scope,e.id)};return(0,F.jsxs)("div",{className:"pxd-paging",children:[i.size&&(0,F.jsxs)("label",{className:"pxd-paging-size",children:["Rows per page",(0,F.jsx)("select",{value:r,onChange:m=>{a.write(i.size,Number(m.target.value)),i.index&&a.write(i.index,1),o.dispatch(i.action,a.scope,e.id)},children:c.map(m=>(0,F.jsx)("option",{value:m,children:m},m))})]}),(0,F.jsxs)("p",{className:"pxd-paging-range","aria-live":"polite",children:[u(n),"\u2013",u(d)," of ",u(s)]}),(0,F.jsxs)("div",{className:"pxd-paging-controls",children:[(0,F.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Previous page",disabled:l<=1,onClick:()=>f(l-1),children:(0,F.jsx)(ee,{name:"chevronLeft",size:18})}),(0,F.jsxs)("span",{className:"pxd-paging-page",children:["Page ",u(l)," of ",u(p)]}),(0,F.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Next page",disabled:l>=p,onClick:()=>f(l+1),children:(0,F.jsx)(ee,{name:"chevronRight",size:18})})]})]})}var _=j(oe(),1);function vA({value:e}){let t=Fn(e);return(0,_.jsx)("span",{className:`pxd-swatch${t?"":" pxd-swatch-unknown"}`,style:t?{background:t}:void 0,"aria-hidden":"true"})}function Wp(e){return e.map((t,a)=>typeof t=="string"?t:t.kind==="code"?(0,_.jsx)("code",{children:t.text},a):t.kind==="strong"?(0,_.jsx)("strong",{children:Wp(t.children)},a):t.kind==="em"?(0,_.jsx)("em",{children:Wp(t.children)},a):t.kind!=="link"?null:t.href?(0,_.jsx)("a",{href:t.href,rel:"noopener noreferrer",children:Wp(t.children)},a):(0,_.jsx)("span",{children:Wp(t.children)},a))}function wA({node:e}){let t=ae(),a=W(),o=ie(e),i=e.variant??"body",l=e.format?.type==="color",r=(s,p=e.format)=>{let n=t.text(s,p);return p?.type==="color"?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(vA,{value:n}),n]}):n};if(i==="rich")return(0,_.jsx)("p",{className:"pxd-text pxd-text-body pxd-text-rich",...o,children:Wp(Xs(t.text(e.text)))});if(i==="quote")return(0,_.jsxs)("figure",{className:"pxd-text-quote",...o,children:[(0,_.jsx)("blockquote",{children:(0,_.jsx)("p",{className:"pxd-text pxd-text-body",children:r(e.text)})}),e.cite!==void 0&&(0,_.jsx)("figcaption",{className:"pxd-text-cite",children:t.text(e.cite)})]});if(i==="list"){let s=e.items?he(e.items.path,t.scope):void 0,p=s?kt(we(a.data,s)):[],n=e.ordered?"ol":"ul",d=t.text(e.text);return(0,_.jsxs)("div",{className:"pxd-text-list",...o,children:[d&&(0,_.jsx)("p",{className:"pxd-text pxd-text-body",children:d}),(0,_.jsx)(n,{className:`pxd-text-list-items${e.ordered?" pxd-text-list-ordered":""}`,children:p.map((c,u)=>{let f=e.itemPath&&s?we(a.data,he(e.itemPath,{pointer:pt(s,u)})):c;return(0,_.jsx)("li",{children:r(f)},u)})})]})}return(0,_.jsx)("p",{className:`pxd-text pxd-text-${i}${l?" pxd-text-color":""}`,...o,children:r(e.text)})}function kA({node:e}){let t=ae(),a=W(),o=t.text(e.label),i=t.text(e.value,e.format),l;if(e.change){let s=t.value(e.change.value);if(typeof s=="number"){let p=e.change.favorable??"increase",n=s>0?"up":s<0?"down":"unchanged",d=p==="none"||s===0?"neutral":s>0==(p==="increase")?"positive":"negative",c=Ee(Math.abs(s),et(e.change.format,a.data,t.scope),a.locale);l={text:`${s>0?"\u25B2":s<0?"\u25BC":"\u25A0"} ${c}`,spoken:n==="unchanged"?"unchanged":`${n} ${c}`,tone:d}}}let r=e.caption!==void 0?t.text(e.caption):void 0;return(0,_.jsxs)("div",{className:"pxd-metric",role:"group","aria-label":o,...ie(e),children:[(0,_.jsx)("div",{className:"pxd-metric-label",children:o}),(0,_.jsx)("div",{className:"pxd-metric-value",children:i}),l&&(0,_.jsxs)("div",{className:`pxd-metric-change pxd-data-${l.tone}`,children:[(0,_.jsx)("span",{"aria-hidden":"true",children:l.text}),(0,_.jsx)("span",{className:"pxd-sr-only",children:l.spoken})]}),r&&(0,_.jsx)("div",{className:"pxd-metric-caption",children:r})]})}function $A({node:e}){let t=ae(),a=W(),o=e.variant==="receipt",i=p=>{let n=t.value(p.value);return o&&p.format?.type==="currency"&&n===0&&!p.total?{text:"Free",free:!0,color:!1}:{text:t.text(p.value,p.format),free:!1,color:p.format?.type==="color"}},l=(p,n)=>e.rowAction?(0,_.jsxs)("button",{type:"button",className:"pxd-link pxd-detail-change",onClick:()=>a.dispatch({event:{name:e.rowAction.event.name,context:{key:p.key??n,...e.rowAction.event.context??{}}}},t.scope,e.id),children:["Change",(0,_.jsxs)("span",{className:"pxd-sr-only",children:[" ",n]})]}):null,r=e.items.filter(p=>!p.total),s=e.items.filter(p=>p.total);return(0,_.jsxs)("div",{className:`pxd-detail-list${o?" pxd-receipt":""}${e.layout==="grid"?" pxd-detail-grid":""}${e.rowAction?" pxd-detail-actions":""}`,...ie(e),children:[e.title!==void 0&&(0,_.jsx)(ln,{className:"pxd-detail-title",children:t.text(e.title)}),(0,_.jsxs)("dl",{children:[r.map((p,n)=>{let d=i(p),c=t.text(p.label);return(0,_.jsxs)("div",{className:"pxd-detail-row",children:[(0,_.jsx)("dt",{children:c}),(0,_.jsxs)("dd",{className:d.free?"pxd-free":void 0,children:[d.color&&(0,_.jsx)(vA,{value:d.text}),d.text]}),e.rowAction&&(0,_.jsx)("dd",{className:"pxd-detail-row-action",children:l(p,c)})]},p.key??n)}),s.map((p,n)=>(0,_.jsxs)("div",{className:"pxd-detail-row pxd-total",children:[(0,_.jsx)("dt",{children:t.text(p.label)}),(0,_.jsx)("dd",{children:i(p).text}),e.rowAction&&(0,_.jsx)("dd",{className:"pxd-detail-row-action"})]},p.key??`t${n}`))]})]})}var MM=ny;function SA({node:e}){let t=ae(),a=W(),o=(0,nr.useId)(),i=he(e.items.path,t.scope),l=kt(we(a.data,i)),r=e.selection??"none",s=r!=="none"&&e.selected?t.value(e.selected):void 0,p=re=>Array.isArray(s)?s.includes(re):s===re,n=re=>{if(!e.selected)return;if(r==="single")return t.write(e.selected,re);let te=Array.isArray(s)?s:[];t.write(e.selected,te.includes(re)?te.filter(be=>be!==re):[...te,re])},d=Array.isArray(s)?s.length:0,c=t.text(e.label),u=a.byId.get(e.items.componentId),{grid:f,timeline:m,carousel:h,calendar:b}=iy(e,u),x=e.reorderable===!0,g=x&&e.order?t.value(e.order):void 0,y=l.map((re,te)=>MM(re,te)),v=sy(y,g),S=(re,te)=>{let be=e.order?ly(v,y,re,te):void 0;be&&t.write(e.order,be)},[R,w]=(0,nr.useState)(null),$=(0,nr.useRef)(null),[z,P]=(0,nr.useState)(0),A=()=>Array.from($.current?.children??[]),C=()=>{let re=$.current;re&&P(fy(A().map(te=>te.offsetLeft-re.offsetLeft),re.scrollLeft))},N=re=>{let te=$.current,be=A()[Math.max(0,Math.min(l.length-1,re))];te&&be&&te.scrollTo({left:be.offsetLeft-te.offsetLeft,behavior:"smooth"})},M=b?l.map((re,te)=>dy(e.datePath?we(a.data,he(e.datePath,{pointer:pt(i,te)})):void 0)):[],[T,D]=(0,nr.useState)(null),B=py(T,M.find(Boolean)),U=re=>D(cy(B,re));if(!l.length&&e.empty)return(0,_.jsx)(pe,{id:e.empty});let Z=(re,te)=>{let be=l[re],Ct=y[re],Y={pointer:pt(i,re)};return(0,_.jsxs)("li",{className:`pxd-collection-item${R===te?" pxd-collection-dragging":""}`,draggable:x||void 0,onDragStart:x?()=>w(te):void 0,onDragOver:x?fe=>fe.preventDefault():void 0,onDrop:x?()=>{R!==null&&S(R,te),w(null)}:void 0,onDragEnd:x?()=>w(null):void 0,children:[x&&(0,_.jsxs)("div",{className:"pxd-collection-reorder",children:[(0,_.jsx)("span",{className:"pxd-collection-handle","aria-hidden":"true",children:(0,_.jsx)(ee,{name:"menu",size:16})}),(0,_.jsx)("button",{type:"button",className:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${te+1} up`,disabled:te===0,onClick:()=>S(te,te-1),children:(0,_.jsx)(ee,{name:"sortUp",size:16})}),(0,_.jsx)("button",{type:"button",className:"pxd-icon-button pxd-collection-move","aria-label":`Move item ${te+1} down`,disabled:te===l.length-1,onClick:()=>S(te,te+1),children:(0,_.jsx)(ee,{name:"sortDown",size:16})})]}),r!=="none"&&(0,_.jsx)("input",{type:r==="single"?"radio":"checkbox",className:"pxd-collection-select",name:r==="single"?`${e.id}-selection`:void 0,checked:p(Ct),onChange:()=>n(Ct),"aria-label":`Select item ${te+1} of ${l.length}`}),(0,_.jsx)("div",{className:"pxd-collection-content",children:(0,_.jsx)(pe,{id:e.items.componentId,scope:Y})})]},String(Ct))},G=r==="multiple"&&d>0&&(0,_.jsxs)("div",{className:"pxd-table-toolbar pxd-table-bulk",role:"toolbar","aria-label":`Actions for ${d} selected`,children:[(0,_.jsxs)("p",{className:"pxd-bulk-count","aria-live":"polite",children:[d," selected"]}),e.bulkActions&&(0,_.jsx)(pe,{id:e.bulkActions}),(0,_.jsx)("button",{type:"button",className:"pxd-button pxd-button-tertiary",onClick:()=>t.write(e.selected,[]),children:"Cancel"})]}),_e;if(h)_e=(0,_.jsxs)("div",{className:"pxd-carousel",role:"group","aria-roledescription":"carousel","aria-labelledby":o,children:[(0,_.jsx)("ul",{className:"pxd-collection-list pxd-carousel-track","aria-labelledby":o,ref:$,onScroll:C,children:v.map((re,te)=>Z(re,te))}),(0,_.jsxs)("div",{className:"pxd-carousel-controls",children:[(0,_.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Previous item",disabled:z<=0,onClick:()=>N(z-1),children:(0,_.jsx)(ee,{name:"chevronLeft",size:18})}),(0,_.jsxs)("p",{className:"pxd-carousel-position","aria-live":"polite",children:[z+1," of ",l.length]}),(0,_.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Next item",disabled:z>=l.length-1,onClick:()=>N(z+1),children:(0,_.jsx)(ee,{name:"chevronRight",size:18})})]})]});else if(b){let{monthName:re,weekdays:te,weeks:be}=uy(B,a.locale),Ct=Y=>v.filter(fe=>M[fe]&&M[fe].y===B.y&&M[fe].m===B.m&&M[fe].d===Y);_e=(0,_.jsxs)("div",{className:"pxd-calendar",children:[(0,_.jsxs)("div",{className:"pxd-calendar-header",children:[(0,_.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Previous month",onClick:()=>U(-1),children:(0,_.jsx)(ee,{name:"chevronLeft",size:18})}),(0,_.jsx)("p",{className:"pxd-calendar-month","aria-live":"polite",children:re}),(0,_.jsx)("button",{type:"button",className:"pxd-icon-button","aria-label":"Next month",onClick:()=>U(1),children:(0,_.jsx)(ee,{name:"chevronRight",size:18})})]}),(0,_.jsxs)("table",{className:"pxd-calendar-grid",children:[(0,_.jsxs)("caption",{className:"pxd-sr-only",children:[c,", ",re]}),(0,_.jsx)("thead",{children:(0,_.jsx)("tr",{children:te.map(Y=>(0,_.jsx)("th",{scope:"col",children:Y},Y))})}),(0,_.jsx)("tbody",{children:be.map((Y,fe)=>(0,_.jsx)("tr",{children:Y.map((me,Re)=>me===null?(0,_.jsx)("td",{className:"pxd-calendar-empty"},Re):(0,_.jsxs)("td",{className:`pxd-calendar-day${Ct(me).length?" pxd-calendar-has-items":""}`,children:[(0,_.jsx)("span",{className:"pxd-calendar-date",children:me}),Ct(me).length>0&&(0,_.jsx)("ul",{className:"pxd-calendar-items",children:Ct(me).map(Ze=>(0,_.jsxs)("li",{className:"pxd-collection-item",children:[r!=="none"&&(0,_.jsx)("input",{type:r==="single"?"radio":"checkbox",className:"pxd-collection-select",name:r==="single"?`${e.id}-selection`:void 0,checked:p(y[Ze]),onChange:()=>n(y[Ze]),"aria-label":`Select item on ${me}`}),(0,_.jsx)("div",{className:"pxd-collection-content",children:(0,_.jsx)(pe,{id:e.items.componentId,scope:{pointer:pt(i,Ze)}})})]},String(y[Ze])))})]},Re))},fe))})]})]})}else _e=(0,_.jsx)("ul",{className:`pxd-collection-list${f?" pxd-collection-grid":""}${m?" pxd-timeline":""}${x?" pxd-collection-reorderable":""}`,"aria-labelledby":o,children:v.map((re,te)=>Z(re,te))});return(0,_.jsxs)("div",{className:"pxd-collection",...ie(e),children:[(0,_.jsxs)("div",{className:"pxd-collection-label",id:o,children:[c," ",(0,_.jsxs)("span",{className:"pxd-count",children:["(",l.length,")"]})]}),G,_e,e.page&&(0,_.jsx)(bv,{node:e,rows:l.length})]})}function PA({node:e}){let t=ae(),a=W(),o=ie(e),[i,l]=(0,nr.useState)(null),r=(0,nr.useRef)(null),s=e.kind??"image",p=e.src?t.value(e.src):void 0,n=p?a.resolveMedia?.(p):void 0,d=e.decorative?"":t.text(e.alt),c=`pxd-media pxd-media-${e.aspect??"auto"}`;if(s==="qr")return(0,_.jsx)(OM,{text:t.text(e.value),alt:d,a11y:o});if(s==="gallery"){let u=e.items?he(e.items.path,t.scope):void 0,m=(u?kt(we(a.data,u)):[]).map((b,x)=>{let g={pointer:pt(u,x)},y=e.imagePath?we(a.data,he(e.imagePath,g)):void 0,v=y?a.resolveMedia?.(String(y)):void 0,S=e.altPath?String(we(a.data,he(e.altPath,g))??""):"";return{src:v,alt:S}}),h=m.filter(b=>!!b.src);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("ul",{className:"pxd-gallery","aria-label":d||void 0,...o,children:m.map((b,x)=>{let g=h.indexOf(b);return(0,_.jsx)("li",{children:g>=0?(0,_.jsx)("button",{type:"button",className:"pxd-gallery-item","aria-label":b.alt?`Open ${b.alt}`:`Open image ${g+1} of ${h.length}`,onClick:y=>{r.current=y.currentTarget,l(g)},children:(0,_.jsx)("img",{className:`${c} pxd-gallery-image`,src:b.src,alt:b.alt})}):(0,_.jsx)("div",{className:`${c} pxd-media-placeholder pxd-gallery-image`,role:"img","aria-label":b.alt||void 0})},x)})}),i!==null&&h[i]&&(0,_.jsx)(_M,{name:d,pictures:h,index:i,onIndex:l,onClose:()=>l(null),returnTo:r})]})}if(s==="video"||s==="audio"){let u=e.transcript!==void 0?t.text(e.transcript):void 0,f=e.poster!==void 0?t.text(e.poster):void 0,m=f?a.resolveMedia?.(f):void 0;return(0,_.jsxs)("figure",{className:`pxd-media-player pxd-media-${s}`,...o,children:[s==="video"?n?(0,_.jsx)("video",{className:c,controls:!0,src:n,poster:m,"aria-label":d||void 0}):(0,_.jsx)("div",{className:`${c} pxd-media-placeholder`,role:"img","aria-label":d||void 0}):n?(0,_.jsx)("audio",{className:"pxd-media-audio-player",controls:!0,src:n,"aria-label":d||void 0}):(0,_.jsx)("div",{className:"pxd-media-placeholder pxd-media-audio-placeholder",role:"img","aria-label":d||void 0}),d&&(0,_.jsx)("figcaption",{className:"pxd-media-caption",children:d}),u&&(0,_.jsxs)("details",{className:"pxd-media-transcript",children:[(0,_.jsx)("summary",{children:"Transcript"}),(0,_.jsx)("p",{className:"pxd-text pxd-text-body",children:u})]})]})}return n?(0,_.jsx)("img",{className:c,src:n,alt:d,...o}):(0,_.jsx)("div",{className:`${c} pxd-media-placeholder`,role:e.decorative?"presentation":"img","aria-label":d||void 0})}function bA({dir:e}){return(0,_.jsx)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,_.jsx)("path",{d:e==="left"?"m15 6-6 6 6 6":"m9 6 6 6-6 6"})})}function _M({name:e,pictures:t,index:a,onIndex:o,onClose:i,returnTo:l}){let r=W(),s=(0,nr.useRef)(null),p=(0,nr.useRef)(null),n=t.length,{src:d,alt:c}=t[a],u=f=>o(Math.max(0,Math.min(n-1,f)));return(0,nr.useEffect)(()=>{let f=s.current?.ownerDocument.activeElement;f?.disabled&&(f===s.current?p:s).current?.focus()},[a]),(0,_.jsx)(Ce.Root,{open:!0,onOpenChange:f=>!f&&i(),children:(0,_.jsxs)(Ce.Portal,{container:r.portal,children:[(0,_.jsx)(Ce.Overlay,{className:"pxd-overlay"}),(0,_.jsxs)(Ce.Content,{className:"pxd-viewer","aria-describedby":void 0,onCloseAutoFocus:f=>{f.preventDefault(),l.current?.focus()},onKeyDown:f=>{f.key==="ArrowLeft"?u(a-1):f.key==="ArrowRight"&&u(a+1)},children:[(0,_.jsx)(Ce.Title,{className:"pxd-sr-only",children:e||"Pictures"}),(0,_.jsxs)("div",{className:"pxd-viewer-bar",children:[(0,_.jsx)("span",{className:"pxd-viewer-counter","aria-live":"polite",children:`${a+1} of ${n}`}),(0,_.jsx)(Ce.Close,{className:"pxd-icon-button pxd-viewer-close","aria-label":"Close",children:(0,_.jsx)(ee,{name:"close"})})]}),(0,_.jsxs)("figure",{className:"pxd-viewer-figure",children:[(0,_.jsx)("img",{className:"pxd-viewer-image",src:d,alt:c}),c&&(0,_.jsx)("figcaption",{className:"pxd-viewer-caption",children:c})]}),(0,_.jsxs)("div",{className:"pxd-viewer-bar pxd-viewer-nav",children:[(0,_.jsx)("button",{ref:s,type:"button",className:"pxd-icon-button pxd-viewer-step","aria-label":"Previous picture",disabled:a===0,onClick:()=>u(a-1),children:(0,_.jsx)(bA,{dir:"left"})}),(0,_.jsx)("button",{ref:p,type:"button",className:"pxd-icon-button pxd-viewer-step","aria-label":"Next picture",disabled:a===n-1,onClick:()=>u(a+1),children:(0,_.jsx)(bA,{dir:"right"})})]})]})]})})}function OM({text:e,alt:t,a11y:a}){let o=(0,nr.useRef)(null),i=(0,nr.useMemo)(()=>e?Ay(e):void 0,[e]);return(0,nr.useEffect)(()=>{let l=o.current;if(!l||!i)return;let r=4,s=4,p=i.length;l.width=l.height=(p+s*2)*r;let n=l.getContext("2d");if(!n)return;let d=getComputedStyle(l),c=d.getPropertyValue("--pxd-color-text-default").trim()||"#000",u=d.getPropertyValue("--pxd-color-surface-default").trim()||"#fff";n.fillStyle=u,n.fillRect(0,0,l.width,l.height),n.fillStyle=c,i.forEach((f,m)=>f.forEach((h,b)=>h&&n.fillRect((b+s)*r,(m+s)*r,r,r)))},[i]),i?(0,_.jsx)("canvas",{ref:o,className:"pxd-qr",role:"img","aria-label":t||`QR code: ${e}`,...a}):(0,_.jsxs)("div",{className:"pxd-qr pxd-qr-placeholder",role:"img","aria-label":t||`QR code: ${e}`,...a,children:[(0,_.jsx)("span",{className:"pxd-qr-mark","aria-hidden":"true",children:"QR"}),(0,_.jsx)("span",{className:"pxd-qr-text",children:e})]})}function CA({node:e}){let t=ae(),a=e.kind==="error",o=ie(e);return e.kind==="undo"?(0,_.jsxs)("div",{className:"pxd-snackbar",role:"status",...o,children:[(0,_.jsxs)("p",{className:"pxd-snackbar-text",children:[t.text(e.title),e.message!==void 0&&(0,_.jsxs)("span",{className:"pxd-snackbar-message",children:[" ",t.text(e.message)]})]}),e.action&&(0,_.jsx)(pe,{id:e.action})]}):(0,_.jsxs)("div",{className:`pxd-status pxd-status-${e.kind}${e.variant==="inline"?" pxd-status-notice":""}`,role:a?"alert":"status",...o,children:[e.kind==="loading"?(0,_.jsx)("span",{className:"pxd-spinner","aria-hidden":"true"}):(0,_.jsx)("span",{className:"pxd-status-icon","aria-hidden":"true",children:(0,_.jsx)(ee,{name:e.icon??oy[e.kind],size:e.kind==="empty"?28:16})}),(0,_.jsxs)("div",{className:"pxd-status-body",children:[(0,_.jsx)("p",{className:"pxd-status-title",children:t.text(e.title)}),e.message!==void 0&&(0,_.jsx)("p",{className:"pxd-status-message",children:t.text(e.message)}),e.action&&e.variant!=="inline"&&(0,_.jsx)("div",{className:"pxd-status-action",children:(0,_.jsx)(pe,{id:e.action})})]}),e.action&&e.variant==="inline"&&(0,_.jsx)("div",{className:"pxd-status-action",children:(0,_.jsx)(pe,{id:e.action})})]})}var wv=j(J(),1);var L=j(oe(),1);function cm({kind:e,x:t,y:a,color:o}){return e==="square"?(0,L.jsx)("rect",{x:t-4,y:a-4,width:8,height:8,fill:o}):e==="diamond"?(0,L.jsx)("path",{d:`M${t} ${a-5}L${t+5} ${a}L${t} ${a+5}L${t-5} ${a}Z`,fill:o}):e==="triangle"?(0,L.jsx)("path",{d:`M${t} ${a-5}L${t+5} ${a+4}L${t-5} ${a+4}Z`,fill:o}):(0,L.jsx)("circle",{cx:t,cy:a,r:4,fill:o})}function zA({node:e}){let t=ae(),a=W(),o=(0,wv.useId)(),i=(0,wv.useId)(),l=he(e.data.path,t.scope),r=kt(we(a.data,l)).map((P,A)=>pt(l,A)),s=P=>we(a.data,he(e.x.path,{pointer:P})),p=(P,A)=>Number(we(a.data,he(A.path,{pointer:P})))||0,n=by,d=e.series,c=ie(e),u=(P,A)=>Ee(P,et(A,a.data,t.scope),a.locale),f=P=>u(s(P),e.x.format),m=600-Rt.left-Rt.right,h=240-Rt.top-Rt.bottom,b=null,x=(P,A)=>(0,L.jsxs)("figure",{className:"pxd-chart","aria-labelledby":o,"aria-describedby":i,...c,children:[(0,L.jsxs)("figcaption",{children:[(0,L.jsx)("span",{className:"pxd-chart-title",id:o,children:t.text(e.title)}),(0,L.jsx)("span",{className:"pxd-chart-summary",id:i,children:t.text(e.summary)})]}),P,A,(0,L.jsx)(vv,{node:e,points:r,x:s,y:p})]}),g=d.length>1&&(0,L.jsx)("ul",{className:"pxd-chart-legend",children:d.map((P,A)=>(0,L.jsxs)("li",{children:[(0,L.jsx)("svg",{width:"12",height:"12","aria-hidden":"true",children:(0,L.jsx)(cm,{kind:Js[A],x:6,y:6,color:n(A)})}),t.text(P.label)]},A))});if(e.intent==="relationship"){let P=r.map(D=>Number(s(D))||0),A=r.flatMap(D=>d.map(B=>p(D,B))),C=Ws(Math.max(0,...P)),N=Ws(Math.max(0,...A)),M=D=>Rt.left+D/(C||1)*m,T=D=>Rt.top+h-D/(N||1)*h;return x((0,L.jsxs)("svg",{viewBox:`0 0 ${600} ${240}`,className:"pxd-chart-svg","aria-hidden":"true",children:[(0,L.jsxs)("g",{className:"pxd-chart-axis",children:[[0,.5,1].map(D=>(0,L.jsxs)("g",{children:[(0,L.jsx)("line",{x1:Rt.left,x2:600-Rt.right,y1:T(N*D),y2:T(N*D),className:"pxd-chart-grid"}),(0,L.jsx)("text",{x:Rt.left-8,y:T(N*D)+4,textAnchor:"end",children:u(N*D,{...d[0].format??{type:"number"},precision:0})})]},D)),[0,.5,1].map(D=>(0,L.jsx)("text",{x:M(C*D),y:230,textAnchor:D===0?"start":D===1?"end":"middle",children:u(C*D,{...e.x.format??{type:"number"},precision:0})},D))]}),d.map((D,B)=>(0,L.jsx)("g",{children:r.map((U,Z)=>(0,L.jsx)(cm,{kind:Js[B],x:M(P[Z]),y:T(p(U,D)),color:n(B)},Z))},B))]}),g)}if(e.intent==="range"){let A=Rt.top+r.length*28+24,C=r.map(U=>p(U,d[0])),N=r.map(U=>p(U,d[1]??d[0])),M=Math.min(0,...C),T=Ws(Math.max(...N,1)),D=120,B=U=>D+(U-M)/(T-M||1)*(600-D-Rt.right);return x((0,L.jsxs)("svg",{viewBox:`0 0 ${600} ${A}`,className:"pxd-chart-svg","aria-hidden":"true",children:[(0,L.jsx)("g",{className:"pxd-chart-axis",children:[0,.5,1].map(U=>{let Z=M+(T-M)*U;return(0,L.jsxs)("g",{children:[(0,L.jsx)("line",{x1:B(Z),x2:B(Z),y1:Rt.top,y2:A-20,className:"pxd-chart-grid"}),(0,L.jsx)("text",{x:B(Z),y:A-4,textAnchor:"middle",children:u(Z,{...d[0].format??{type:"number"},precision:0})})]},U)})}),r.map((U,Z)=>{let G=Rt.top+Z*28;return(0,L.jsxs)("g",{children:[(0,L.jsx)("text",{x:D-8,y:G+28/2+4,textAnchor:"end",className:"pxd-chart-range-label",children:tf(s(U),e.x.format?.type,a.locale)}),(0,L.jsx)("line",{x1:B(C[Z]),x2:B(N[Z]),y1:G+28/2,y2:G+28/2,stroke:n(0),strokeWidth:10,strokeLinecap:"round"}),(0,L.jsx)("circle",{cx:B(C[Z]),cy:G+28/2,r:4,fill:n(1)}),(0,L.jsx)("circle",{cx:B(N[Z]),cy:G+28/2,r:4,fill:n(2)})]},U)})]}),(0,L.jsxs)("ul",{className:"pxd-chart-legend",children:[(0,L.jsxs)("li",{children:[(0,L.jsx)("span",{className:"pxd-chart-swatch",style:{background:n(1)},"aria-hidden":"true"}),t.text(d[0].label)]}),d[1]&&(0,L.jsxs)("li",{children:[(0,L.jsx)("span",{className:"pxd-chart-swatch",style:{background:n(2)},"aria-hidden":"true"}),t.text(d[1].label)]})]}))}if(e.intent==="matrix"){let P=r.map(C=>d.map(N=>p(C,N))),A=Math.max(1,...P.flat());return x((0,L.jsx)("div",{className:"pxd-heatmap-scroll","aria-hidden":"true",children:(0,L.jsxs)("table",{className:"pxd-heatmap",children:[(0,L.jsx)("thead",{children:(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{}),d.map((C,N)=>(0,L.jsx)("th",{scope:"col",children:t.text(C.label)},N))]})}),(0,L.jsx)("tbody",{children:r.map((C,N)=>(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{scope:"row",children:f(C)}),d.map((M,T)=>{let D=Math.round(P[N][T]/A*100);return(0,L.jsx)("td",{className:`pxd-heatmap-cell${D>=60?" pxd-heatmap-strong":""}`,style:{background:`color-mix(in srgb, var(--pxd-color-data-categorical-1) ${D}%, var(--pxd-color-surface-subtle))`},children:u(P[N][T],M.format)},T)})]},C))})]})}))}if(e.intent==="hierarchy"){let P=r.map(C=>Math.max(0,p(C,d[0]))),A=vy(P,600,240);return x((0,L.jsx)("svg",{viewBox:`0 0 ${600} ${240}`,className:"pxd-chart-svg pxd-chart-treemap","aria-hidden":"true",children:A.map((C,N)=>C?(0,L.jsxs)("g",{children:[(0,L.jsx)("rect",{x:C.x+1,y:C.y+1,width:Math.max(C.w-2,0),height:Math.max(C.h-2,0),fill:n(N),rx:2}),C.w>48&&C.h>24&&(0,L.jsx)("text",{x:C.x+8,y:C.y+18,className:"pxd-chart-tile-label",children:f(r[N]).slice(0,Math.floor(C.w/8))})]},N):null)}),(0,L.jsx)("ul",{className:"pxd-chart-legend",children:r.map((C,N)=>(0,L.jsxs)("li",{children:[(0,L.jsx)("span",{className:"pxd-chart-swatch",style:{background:n(N)},"aria-hidden":"true"}),f(C),": ",u(P[N],d[0].format)]},C))}))}if(e.intent==="flow"){let P=r.map(te=>d.map(be=>Math.max(0,p(te,be)))),{leftY:A,rightY:C,leftTotals:N,rightTotals:M,scale:T}=ky(P,d.length,240),D=12,B=110,U=B,Z=600-B,G=[...A],_e=[...C],re=(U+Z)/2;return x((0,L.jsxs)("svg",{viewBox:`0 0 ${600} ${240}`,className:"pxd-chart-svg pxd-chart-flow","aria-hidden":"true",children:[P.map((te,be)=>te.map((Ct,Y)=>{if(Ct<=0)return null;let fe=Ct*T,me=G[be],Re=_e[Y];G[be]+=fe,_e[Y]+=fe;let Ze=`M${U+D} ${me} C${re} ${me}, ${re} ${Re}, ${Z-D} ${Re} L${Z-D} ${Re+fe} C${re} ${Re+fe}, ${re} ${me+fe}, ${U+D} ${me+fe} Z`;return(0,L.jsx)("path",{d:Ze,fill:n(Y),opacity:.45},`${be}-${Y}`)})),r.map((te,be)=>(0,L.jsxs)("g",{children:[(0,L.jsx)("rect",{x:U,y:A[be],width:D,height:Math.max(N[be]*T,1),fill:"var(--pxd-color-border-strong)"}),(0,L.jsx)("text",{x:U-8,y:A[be]+N[be]*T/2+4,textAnchor:"end",className:"pxd-chart-flow-label",children:f(te)})]},te)),d.map((te,be)=>(0,L.jsxs)("g",{children:[(0,L.jsx)("rect",{x:Z-D,y:C[be],width:D,height:Math.max(M[be]*T,1),fill:n(be)}),(0,L.jsx)("text",{x:Z+8,y:C[be]+M[be]*T/2+4,className:"pxd-chart-flow-label",children:t.text(te.label)})]},be))]}),g)}if(e.intent==="composition"){let P=r.map(M=>p(M,d[0])),A=P.reduce((M,T)=>M+T,0)||1,C=0;b=(0,L.jsx)("g",{children:P.map((M,T)=>{let D=M/A*598,B=(0,L.jsx)("rect",{x:1+C,y:4,width:Math.max(D-2,0),height:40,fill:n(T),rx:2},T);return C+=D,B})});let N=r.map((M,T)=>({label:Ee(s(M),et(e.x.format,a.data,t.scope),a.locale),value:P[T],color:n(T),share:P[T]/A}));return(0,L.jsxs)("figure",{className:"pxd-chart","aria-labelledby":o,"aria-describedby":i,...c,children:[(0,L.jsxs)("figcaption",{children:[(0,L.jsx)("span",{className:"pxd-chart-title",id:o,children:t.text(e.title)}),(0,L.jsx)("span",{className:"pxd-chart-summary",id:i,children:t.text(e.summary)})]}),(0,L.jsx)("svg",{viewBox:`0 0 ${600} 48`,className:"pxd-chart-svg pxd-chart-bar","aria-hidden":"true",preserveAspectRatio:"none",children:b}),(0,L.jsx)("ul",{className:"pxd-chart-legend",children:N.map(M=>(0,L.jsxs)("li",{children:[(0,L.jsx)("span",{className:"pxd-chart-swatch",style:{background:M.color},"aria-hidden":"true"}),M.label,": ",Ee(M.value,et(d[0].format,a.data,t.scope),a.locale)," (",Ee(M.share,{type:"percent",precision:0},a.locale),")"]},M.label))}),(0,L.jsx)(vv,{node:e,points:r,x:s,y:p})]})}let y=r.flatMap(P=>d.map(A=>p(P,A))),{lo:v,max:S,ticks:R}=wy(y,e.intent==="trend"),w=P=>Rt.top+h-(P-v)/(S-v||1)*h,$=m/Math.max(r.length,1),z=(0,L.jsxs)("g",{className:"pxd-chart-axis",children:[R.map(P=>(0,L.jsxs)("g",{children:[(0,L.jsx)("line",{x1:Rt.left,x2:600-Rt.right,y1:w(P),y2:w(P),className:"pxd-chart-grid"}),(0,L.jsx)("text",{x:Rt.left-8,y:w(P)+4,textAnchor:"end",children:Ee(P,{...et(d[0].format,a.data,t.scope)??{type:"number"},precision:0},a.locale)})]},P)),r.map((P,A)=>(0,L.jsx)("text",{x:Rt.left+$*A+$/2,y:230,textAnchor:"middle",children:tf(s(P),e.x.format?.type,a.locale)},P))]});if(e.intent==="trend")b=d.map((P,A)=>{let C=r.map((N,M)=>[Rt.left+$*M+$/2,w(p(N,P))]);return(0,L.jsxs)("g",{children:[(0,L.jsx)("polyline",{points:C.map(([N,M])=>`${N},${M}`).join(" "),fill:"none",stroke:n(A),strokeWidth:2.5}),C.map(([N,M],T)=>(0,L.jsx)(cm,{kind:Js[A],x:N,y:M,color:n(A)},T))]},A)});else{let P=e.intent==="distribution",A=P?1:.7,C=$*A/d.length;b=r.flatMap((N,M)=>d.map((T,D)=>{let B=p(N,T),U=w(Math.max(B,0));return(0,L.jsx)("rect",{x:Rt.left+$*M+$*((1-A)/2)+C*D,y:U,width:C-(P?1:2),height:Math.max(w(0)-U,1),fill:n(D),rx:P?0:2},`${M}-${D}`)}))}return(0,L.jsxs)("figure",{className:"pxd-chart","aria-labelledby":o,"aria-describedby":i,...c,children:[(0,L.jsxs)("figcaption",{children:[(0,L.jsx)("span",{className:"pxd-chart-title",id:o,children:t.text(e.title)}),(0,L.jsx)("span",{className:"pxd-chart-summary",id:i,children:t.text(e.summary)})]}),(0,L.jsxs)("svg",{viewBox:`0 0 ${600} ${240}`,className:"pxd-chart-svg","aria-hidden":"true",children:[z,b]}),d.length>1&&(0,L.jsx)("ul",{className:"pxd-chart-legend",children:d.map((P,A)=>(0,L.jsxs)("li",{children:[(0,L.jsx)("svg",{width:"12",height:"12","aria-hidden":"true",children:(0,L.jsx)(cm,{kind:Js[A],x:6,y:6,color:n(A)})}),t.text(P.label)]},A))}),(0,L.jsx)(vv,{node:e,points:r,x:s,y:p})]})}function vv({node:e,points:t,x:a,y:o}){let i=ae(),l=W();return(0,L.jsxs)("details",{className:"pxd-chart-data",children:[(0,L.jsx)("summary",{children:"Show data"}),(0,L.jsxs)("table",{className:"pxd-table",children:[(0,L.jsx)("thead",{children:(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{scope:"col",children:i.text(e.x.label)}),e.series.map((r,s)=>(0,L.jsx)("th",{scope:"col",className:"pxd-num",children:i.text(r.label)},s))]})}),(0,L.jsx)("tbody",{children:t.map(r=>(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{scope:"row",children:Ee(a(r),et(e.x.format,l.data,i.scope),l.locale)}),e.series.map((s,p)=>(0,L.jsx)("td",{className:"pxd-num",children:Ee(o(r,s),et(s.format,l.data,i.scope),l.locale)},p))]},r))})]})]})}var je=j(J(),1);var E=j(oe(),1),kv=()=>(0,E.jsx)("span",{className:"pxd-required","aria-hidden":"true",children:"*"});function pn({label:e,help:t,required:a,children:o,id:i,helpId:l}){return(0,E.jsxs)("div",{className:"pxd-field",children:[(0,E.jsxs)("label",{className:"pxd-field-label",htmlFor:i,children:[e,a&&(0,E.jsx)(kv,{})]}),t&&(0,E.jsx)("p",{className:"pxd-field-help",id:l,children:t}),o]})}var qM={email:"email",phone:"tel",url:"url",search:"search",number:"text",currency:"text",text:"text"};function DA({node:e}){let t=ae(),a=W(),o=(0,je.useId)(),i=(0,je.useId)(),l=e.kind??"text",r=t.value(e.value),s=l==="number"||l==="currency",[p,n]=(0,je.useState)(null),d=r==null?"":l==="currency"&&typeof r=="number"?r.toFixed(2):String(r),c=p??d,u=e.validation??{},f=e.help!==void 0?t.text(e.help):void 0,m={id:o,className:"pxd-input","aria-describedby":f?i:void 0,required:e.required,autoComplete:e.autocomplete,...ie(e)},h=S=>{if(!s)return t.write(e.value,S);n(S);let R=Number(S.replace(/[^\d.-]/g,""));t.write(e.value,S.trim()===""||Number.isNaN(R)?null:R)},b=S=>{u.message&&S.currentTarget.setCustomValidity(t.text(u.message))},x=S=>S.currentTarget.setCustomValidity(""),g=t.text(e.label),y={label:g,help:f,required:e.required,id:o,helpId:i};if(l==="suggestions"||l==="mentions")return(0,E.jsx)(BM,{node:e,field:y,common:m,mentions:l==="mentions"});if(l==="tags")return(0,E.jsx)(HM,{node:e,field:y,common:m});if(l==="richtext")return(0,E.jsx)(LM,{node:e,field:y,common:m});if(l==="inline")return(0,E.jsx)(FM,{node:e,field:y,common:m});if(l==="masked"){let S=typeof e.mask=="string"?e.mask:"";return(0,E.jsx)(pn,{...y,children:(0,E.jsx)("input",{...m,className:"pxd-input pxd-input-masked",type:"text",inputMode:/[A*]/.test(S)?void 0:"numeric",placeholder:S||void 0,value:d,maxLength:S.length||void 0,onChange:R=>t.write(e.value,Bh(S,R.target.value,R.target.value.length<d.length)),onInvalid:b,onInput:x})})}if(l==="code")return(0,E.jsx)(pn,{...y,children:(0,E.jsx)("textarea",{...m,className:"pxd-input pxd-input-code",rows:4,spellCheck:!1,autoCorrect:"off",autoCapitalize:"off",value:c,maxLength:u.maxLength,minLength:u.minLength,onChange:S=>h(S.target.value),onInvalid:b,onInput:x})});if(l==="search"){let S=e.placeholder!==void 0?t.text(e.placeholder):void 0;return(0,E.jsxs)("div",{className:"pxd-search",children:[(0,E.jsx)("label",{className:"pxd-sr-only",htmlFor:o,children:t.text(e.label)}),(0,E.jsx)(ee,{name:"search"}),(0,E.jsx)("input",{...m,className:"pxd-search-input",type:"search",placeholder:S,value:c,onChange:R=>h(R.target.value)})]})}if(e.size==="hero"&&s)return(0,E.jsxs)("div",{className:"pxd-hero-field",children:[(0,E.jsx)("label",{className:"pxd-hero-label",htmlFor:o,children:t.text(e.label)}),(0,E.jsxs)("div",{className:"pxd-hero-input",children:[l==="currency"&&(0,E.jsx)("span",{className:"pxd-hero-symbol","aria-hidden":"true",children:wp(t.text(e.currency)||"USD",a.locale)}),(0,E.jsx)("input",{...m,className:"pxd-hero-value",type:"text",inputMode:l==="currency"?"decimal":"numeric",pattern:"-?[0-9]*[.,]?[0-9]*",placeholder:"0",size:Math.max(1,c.length||1),value:c,onChange:S=>h(S.target.value),onBlur:()=>n(null),onInvalid:b,onInput:x})]}),f&&(0,E.jsx)("p",{className:"pxd-field-help pxd-hero-help",id:i,children:f})]});let v=l==="multiline"?(0,E.jsx)("textarea",{...m,rows:3,value:c,maxLength:u.maxLength,minLength:u.minLength,onChange:S=>h(S.target.value),onInvalid:b,onInput:x}):(0,E.jsxs)("div",{className:l==="currency"?"pxd-input-adorned":void 0,children:[l==="currency"&&(0,E.jsx)("span",{className:"pxd-input-prefix","aria-hidden":"true",children:wp(t.text(e.currency)||"USD",a.locale)}),(0,E.jsx)("input",{...m,type:qM[l]??"text",inputMode:l==="currency"?"decimal":l==="number"?"numeric":void 0,pattern:s?"-?[0-9]*[.,]?[0-9]*":void 0,value:c,maxLength:u.maxLength,minLength:u.minLength,onChange:S=>h(S.target.value),onBlur:()=>n(null),onInvalid:b,onInput:x})]});return(0,E.jsx)(pn,{label:g,help:f,required:e.required,id:o,helpId:i,children:v})}function jM(e,t){let a=(0,je.useId)(),[o,i]=(0,je.useState)(!1),[l,r]=(0,je.useState)(-1),s=o&&e.length>0,p=c=>{if(!s){c.key==="ArrowDown"&&e.length&&(i(!0),r(0),c.preventDefault());return}c.key==="ArrowDown"?(r(u=>(u+1)%e.length),c.preventDefault()):c.key==="ArrowUp"?(r(u=>(u-1+e.length)%e.length),c.preventDefault()):c.key==="Enter"&&l>=0?(t(e[l]),i(!1),c.preventDefault()):c.key==="Escape"&&i(!1)},n={role:"combobox","aria-expanded":s,"aria-controls":a,"aria-autocomplete":"list","aria-activedescendant":s&&l>=0?`${a}-${l}`:void 0,autoComplete:"off",onKeyDown:p,onBlur:()=>i(!1)};return{list:s?(0,E.jsx)("ul",{id:a,role:"listbox",className:"pxd-combobox-list",children:e.map((c,u)=>(0,E.jsxs)("li",{id:`${a}-${u}`,role:"option","aria-selected":u===l,className:`pxd-combobox-option${u===l?" pxd-combobox-active":""}`,onMouseDown:f=>(f.preventDefault(),t(c),i(!1)),children:[c.label,c.description&&(0,E.jsx)("span",{className:"pxd-option-description",children:c.description})]},String(c.value)))}):null,inputProps:n,show:c=>(i(c),r(-1))}}function BM({node:e,field:t,common:a,mentions:o}){let i=ae(),l=EA(e),r=String(i.value(e.value)??""),s=o?/@([^\s@]*)$/.exec(r):null,p=o?s?s[1]:null:r,n=p===null?[]:l.filter(c=>c.label.toLowerCase().includes(p.toLowerCase())).slice(0,8),d=jM(n,c=>i.write(e.value,o&&s?`${r.slice(0,s.index)}@${c.label} `:c.label));return(0,E.jsx)(pn,{...t,children:(0,E.jsxs)("div",{className:"pxd-combobox",children:[(0,E.jsx)("input",{...a,...d.inputProps,type:"text",value:r,onChange:c=>{i.write(e.value,c.target.value),d.show(o?/@[^\s@]*$/.test(c.target.value):c.target.value.length>0)},onFocus:()=>d.show(!o&&r.length>0)}),d.list]})})}function HM({node:e,field:t,common:a}){let o=ae(),i=o.value(e.value),l=Array.isArray(i)?i.map(String):[],[r,s]=(0,je.useState)(""),p=()=>{let d=r.trim().replace(/,$/,"").trim();d&&!l.includes(d)&&o.write(e.value,[...l,d]),s("")},n=d=>o.write(e.value,l.filter((c,u)=>u!==d));return(0,E.jsx)(pn,{...t,children:(0,E.jsxs)("div",{className:"pxd-tags",role:"group","aria-label":t.label,children:[(0,E.jsx)("ul",{className:"pxd-tags-list",children:l.map((d,c)=>(0,E.jsxs)("li",{className:"pxd-tag-chip",children:[d,(0,E.jsx)("button",{type:"button",className:"pxd-tag-remove","aria-label":`Remove ${d}`,onClick:()=>n(c),children:(0,E.jsx)(ee,{name:"close",size:14})})]},`${d}-${c}`))}),(0,E.jsx)("input",{...a,className:"pxd-tags-input",type:"text",value:r,onChange:d=>d.target.value.endsWith(",")?(s(d.target.value),p()):s(d.target.value),onKeyDown:d=>{d.key==="Enter"?(d.preventDefault(),p()):d.key==="Backspace"&&r===""&&l.length&&n(l.length-1)},onBlur:p})]})})}function TA(e){if(e.nodeType===3)return e.textContent??"";if(e.nodeType!==1)return"";let t=e,a=(o=t)=>Array.from(o.childNodes).map(TA).join("");switch(t.tagName.toLowerCase()){case"b":case"strong":return`**${a()}**`;case"i":case"em":return`*${a()}*`;case"br":return`
|
|
50
|
+
`;case"ul":return Array.from(t.children).map(o=>`- ${a(o)}`).join(`
|
|
51
|
+
`)+`
|
|
52
|
+
`;case"ol":return Array.from(t.children).map((o,i)=>`${i+1}. ${a(o)}`).join(`
|
|
53
|
+
`)+`
|
|
54
|
+
`;case"div":case"p":case"li":return a()+`
|
|
55
|
+
`;default:return a()}}function AA(e){let t=[],a=/\*\*([^*]+)\*\*|\*([^*]+)\*/g,o=0;for(let i=a.exec(e);i;i=a.exec(e)){i.index>o&&t.push(document.createTextNode(e.slice(o,i.index)));let l=document.createElement(i[1]?"strong":"em");l.textContent=i[1]??i[2],t.push(l),o=i.index+i[0].length}return o<e.length&&t.push(document.createTextNode(e.slice(o))),t}function UM(e){let t=[],a=null;for(let o of e.split(`
|
|
56
|
+
`)){let i=/^(-|\d+\.)\s+(.*)$/.exec(o);if(i){let r=i[1]==="-"?"ul":"ol";(!a||a.tagName.toLowerCase()!==r)&&(a=document.createElement(r),t.push(a));let s=document.createElement("li");s.append(...AA(i[2])),a.append(s);continue}a=null;let l=document.createElement("div");o?l.append(...AA(o)):l.append(document.createElement("br")),t.push(l)}return t}function LM({node:e,field:t,common:a}){let o=ae(),i=(0,je.useRef)(null),l=String(o.value(e.value)??"");(0,je.useEffect)(()=>{let f=i.current;!f||f.dataset.ready||(f.dataset.ready="1",f.replaceChildren(...UM(l)))},[l]);let r=()=>i.current&&o.write(e.value,TA(i.current).replace(/\n+$/,"")),s=f=>m=>{m.preventDefault(),i.current?.focus(),document.execCommand(f),r()},{id:p,className:n,required:d,autoComplete:c,...u}=a;return(0,E.jsx)(pn,{...t,children:(0,E.jsxs)("div",{className:"pxd-richtext",children:[(0,E.jsxs)("div",{className:"pxd-richtext-toolbar",role:"toolbar","aria-label":"Formatting",children:[(0,E.jsx)("button",{type:"button",className:"pxd-richtext-control","aria-label":"Bold",onMouseDown:s("bold"),children:(0,E.jsx)("strong",{children:"B"})}),(0,E.jsx)("button",{type:"button",className:"pxd-richtext-control","aria-label":"Italic",onMouseDown:s("italic"),children:(0,E.jsx)("em",{children:"I"})}),(0,E.jsx)("button",{type:"button",className:"pxd-richtext-control","aria-label":"Bulleted list",onMouseDown:s("insertUnorderedList"),children:(0,E.jsx)(ee,{name:"menu",size:16})})]}),(0,E.jsx)("div",{...u,id:p,ref:i,className:"pxd-input pxd-richtext-area",contentEditable:!0,role:"textbox","aria-multiline":"true","aria-label":t.label,onInput:r,onBlur:r})]})})}function FM({node:e,field:t,common:a}){let o=ae(),i=String(o.value(e.value)??""),[l,r]=(0,je.useState)(null),s=()=>{l!==null&&o.write(e.value,l),r(null)};return l===null?(0,E.jsxs)("div",{className:"pxd-inline-edit",children:[(0,E.jsx)("span",{className:"pxd-field-label",children:t.label}),(0,E.jsxs)("button",{type:"button",className:"pxd-inline-value","aria-label":`Edit ${t.label}`,onClick:()=>r(i),children:[(0,E.jsx)("span",{className:i?void 0:"pxd-inline-empty",children:i||"Not set"}),(0,E.jsx)("span",{className:"pxd-inline-hint","aria-hidden":"true",children:"Edit"})]})]}):(0,E.jsx)(pn,{...t,children:(0,E.jsx)("input",{...a,type:"text",autoFocus:!0,value:l,onChange:p=>r(p.target.value),onBlur:s,onKeyDown:p=>{p.key==="Enter"?(p.preventDefault(),s()):p.key==="Escape"&&r(null)}})})}function EA(e){let t=ae(),a=W();return Vn(e,a.data,t.scope,t.text)}function RA({id:e,label:t,description:a}){return(0,E.jsxs)("div",{className:"pxd-option-text",children:[(0,E.jsx)("label",{htmlFor:e,children:t}),a&&(0,E.jsx)("span",{className:"pxd-option-description",id:`${e}-desc`,children:a})]})}function IA({node:e}){let t=ae(),a=(0,je.useId)(),o=(0,je.useId)(),i=EA(e),[l,r]=(0,je.useState)(""),s=e.mode==="multiple",p=t.value(e.value),n=w=>JSON.stringify(w),d=w=>`${a}-${encodeURIComponent(n(w)).replace(/%/g,"_")}`,c=e.help!==void 0?t.text(e.help):void 0,u=wh(i,e.mode),{withFaces:f,searchable:m}=u,h=u.control==="chips",b=w=>!l||`${w.label} ${w.description??""}`.toLowerCase().includes(l.toLowerCase()),x=ie(e),g=t.text(e.label),y=(0,E.jsxs)("div",{className:"pxd-field-label",id:a,children:[g,e.required&&(0,E.jsx)(kv,{})]}),v=m&&(0,E.jsxs)("div",{className:"pxd-search pxd-search-compact",children:[(0,E.jsx)(ee,{name:"search"}),(0,E.jsx)("input",{type:"search",className:"pxd-search-input",placeholder:f?"Search by name":"Filter options","aria-label":`Search ${g}`,value:l,onChange:w=>r(w.target.value)})]});if(s){let w=Array.isArray(p)?p:[],$=P=>w.some(A=>n(A)===n(P)),z=P=>t.write(e.value,$(P)?w.filter(A=>n(A)!==n(P)):[...w,P]);if(h)return(0,E.jsxs)("div",{className:"pxd-field pxd-choice",role:"group","aria-labelledby":a,"aria-describedby":c?o:void 0,...x,children:[y,c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),(0,E.jsx)("div",{className:"pxd-chips",children:i.map(P=>(0,E.jsxs)(qt.Root,{className:"pxd-chip",checked:$(P.value),onCheckedChange:()=>z(P.value),children:[(0,E.jsx)(qt.Indicator,{className:"pxd-chip-check",children:(0,E.jsx)(ee,{name:"check",size:18})}),P.label]},n(P.value)))})]});if(f){let P=l?[]:i.filter(C=>C.recent),A=i.filter(C=>l?b(C):!C.recent);return(0,E.jsxs)("fieldset",{className:"pxd-field pxd-choice pxd-people","aria-describedby":c?o:void 0,...x,children:[(0,E.jsx)("legend",{className:"pxd-field-label",id:a,children:g}),c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),v,(0,E.jsxs)("div",{className:"pxd-people-group",children:[P.length>0&&(0,E.jsx)("div",{className:"pxd-people-recent",children:P.map(C=>(0,E.jsxs)(qt.Root,{className:"pxd-person-tile",checked:$(C.value),onCheckedChange:()=>z(C.value),"aria-label":C.label,children:[(0,E.jsxs)("span",{className:"pxd-person-face",children:[(0,E.jsx)(qr,{value:C.avatar,name:C.label,size:56}),(0,E.jsx)(qt.Indicator,{className:"pxd-person-tick",children:(0,E.jsx)(ee,{name:"check",size:14})})]}),(0,E.jsx)("span",{className:"pxd-person-name","aria-hidden":"true",children:C.label.split(" ")[0]})]},n(C.value)))}),(0,E.jsx)("div",{className:"pxd-people-list",children:A.map(C=>{let N=d(C.value);return(0,E.jsxs)(qt.Root,{id:N,className:"pxd-person-row",checked:$(C.value),onCheckedChange:()=>z(C.value),"aria-labelledby":`${N}-name`,"aria-describedby":C.description?`${N}-desc`:void 0,children:[(0,E.jsx)(qr,{value:C.avatar,name:C.label}),(0,E.jsxs)("span",{className:"pxd-person-text",children:[(0,E.jsx)("span",{id:`${N}-name`,children:C.label}),C.description&&(0,E.jsx)("span",{className:"pxd-option-description",id:`${N}-desc`,children:C.description})]}),(0,E.jsx)(qt.Indicator,{className:"pxd-person-check",children:(0,E.jsx)(ee,{name:"check"})})]},n(C.value))})})]})]})}return(0,E.jsxs)("fieldset",{className:"pxd-field pxd-choice","aria-describedby":c?o:void 0,...x,children:[(0,E.jsx)("legend",{className:"pxd-field-label",id:a,children:g}),c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),v,(0,E.jsx)("div",{className:`pxd-choice-list${m?" pxd-choice-scroll":""}`,children:i.filter(b).map(P=>{let A=d(P.value);return(0,E.jsxs)("div",{className:"pxd-choice-option",children:[P.avatar!==void 0&&(0,E.jsx)(qr,{value:P.avatar,name:P.label,size:32}),(0,E.jsx)(qt.Root,{id:A,className:"pxd-checkbox",checked:$(P.value),onCheckedChange:()=>z(P.value),"aria-describedby":P.description?`${A}-desc`:void 0,children:(0,E.jsx)(qt.Indicator,{className:"pxd-checkbox-indicator",children:"\u2713"})}),(0,E.jsx)(RA,{id:A,label:P.label,description:P.description})]},n(P.value))})})]})}let S=p==null?"":n(p),R=w=>t.write(e.value,i.find($=>n($.value)===w)?.value);if(h)return(0,E.jsxs)("div",{className:"pxd-field pxd-choice",...x,children:[y,c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),(0,E.jsx)(Ht.Root,{className:"pxd-chips","aria-labelledby":a,"aria-describedby":c?o:void 0,"aria-required":e.required||void 0,value:S,onValueChange:R,orientation:"horizontal",children:i.map(w=>(0,E.jsxs)(Ht.Item,{value:n(w.value),className:"pxd-chip",children:[(0,E.jsx)(Ht.Indicator,{className:"pxd-chip-check",children:(0,E.jsx)(ee,{name:"check",size:18})}),w.label]},n(w.value)))})]});if(f){let w=l?[]:i.filter(z=>z.recent),$=i.filter(z=>l?b(z):!z.recent);return(0,E.jsxs)("div",{className:"pxd-field pxd-choice pxd-people",...x,children:[y,c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),v,(0,E.jsxs)(Ht.Root,{"aria-labelledby":a,"aria-describedby":c?o:void 0,"aria-required":e.required||void 0,value:S,onValueChange:R,className:"pxd-people-group",children:[w.length>0&&(0,E.jsx)("div",{className:"pxd-people-recent",role:"presentation",children:w.map(z=>(0,E.jsxs)(Ht.Item,{value:n(z.value),className:"pxd-person-tile","aria-label":z.label,children:[(0,E.jsx)(qr,{value:z.avatar,name:z.label,size:56}),(0,E.jsx)("span",{className:"pxd-person-name","aria-hidden":"true",children:z.label.split(" ")[0]})]},n(z.value)))}),(0,E.jsx)("div",{className:"pxd-people-list",role:"presentation",children:$.map(z=>{let P=d(z.value);return(0,E.jsxs)(Ht.Item,{id:P,value:n(z.value),className:"pxd-person-row","aria-labelledby":`${P}-name`,"aria-describedby":z.description?`${P}-desc`:void 0,children:[(0,E.jsx)(qr,{value:z.avatar,name:z.label}),(0,E.jsxs)("span",{className:"pxd-person-text",children:[(0,E.jsx)("span",{id:`${P}-name`,children:z.label}),z.description&&(0,E.jsx)("span",{className:"pxd-option-description",id:`${P}-desc`,children:z.description})]}),(0,E.jsx)(Ht.Indicator,{className:"pxd-person-check",children:(0,E.jsx)(ee,{name:"check"})})]},n(z.value))})})]})]})}return(0,E.jsxs)("div",{className:"pxd-field pxd-choice",...x,children:[y,c&&(0,E.jsx)("p",{className:"pxd-field-help",id:o,children:c}),v,(0,E.jsx)(Ht.Root,{className:`pxd-choice-list${m?" pxd-choice-scroll":""}`,"aria-labelledby":a,"aria-describedby":c?o:void 0,"aria-required":e.required||void 0,value:S,onValueChange:R,orientation:"vertical",children:i.filter(b).map(w=>{let $=d(w.value);return(0,E.jsxs)("div",{className:"pxd-choice-option",children:[(0,E.jsx)(Ht.Item,{id:$,value:n(w.value),className:"pxd-radio","aria-describedby":w.description?`${$}-desc`:void 0,children:(0,E.jsx)(Ht.Indicator,{className:"pxd-radio-indicator"})}),(0,E.jsx)(RA,{id:$,label:w.label,description:w.description})]},n(w.value))})})]})}function MA({node:e}){let t=ae(),a=W(),o=(0,je.useId)(),i=(0,je.useId)(),l=!!t.value(e.value),r=e.description!==void 0?t.text(e.description):void 0,s=n=>{if(t.write(e.value,n),e.action){let d=t.pointer(e.value),c=Object.fromEntries(Object.entries(e.action.event.context??{}).map(([u,f])=>[u,f&&typeof f=="object"&&"path"in f&&he(f.path,t.scope)===d?n:t.value(f)]));a.dispatch({event:{name:e.action.event.name,context:c}},{pointer:""},e.id)}},p=ie(e);return(0,E.jsxs)("div",{className:"pxd-toggle",children:[e.action?(0,E.jsx)(Xp.Root,{id:o,className:"pxd-switch",checked:l,onCheckedChange:s,"aria-describedby":r?i:void 0,...p,children:(0,E.jsx)(Xp.Thumb,{className:"pxd-switch-thumb"})}):(0,E.jsx)(qt.Root,{id:o,className:"pxd-checkbox",checked:l,onCheckedChange:n=>s(n===!0),"aria-describedby":r?i:void 0,...p,children:(0,E.jsx)(qt.Indicator,{className:"pxd-checkbox-indicator",children:"\u2713"})}),(0,E.jsxs)("div",{className:"pxd-toggle-text",children:[(0,E.jsx)("label",{htmlFor:o,className:"pxd-toggle-label",children:t.text(e.label)}),r&&(0,E.jsx)("p",{className:"pxd-field-help",id:i,children:r})]})]})}var NA={date:"date",time:"time",datetime:"datetime-local",month:"month"};function _A({node:e}){let t=ae(),a=W(),o=(0,je.useId)(),i=(0,je.useId)(),l=e.kind??"date",r=e.help!==void 0?t.text(e.help):void 0,s=t.value(e.value),p=e.min!==void 0?t.text(e.min):void 0,n=e.max!==void 0?t.text(e.max):void 0,d=ie(e);if(e.multiple&&l!=="dateRange"){let c=Array.isArray(s)?s.map(String):[],u=m=>Ee(m,{type:l==="month"?"date":l==="time"?"time":l==="datetime"?"datetime":"date"},a.locale),f=m=>m&&!c.includes(m)&&t.write(e.value,[...c,m].sort());return(0,E.jsxs)("fieldset",{className:"pxd-field pxd-date-multiple",...d,children:[(0,E.jsxs)("legend",{className:"pxd-field-label",children:[t.text(e.label),e.required&&(0,E.jsx)(kv,{})]}),r&&(0,E.jsx)("p",{className:"pxd-field-help",id:i,children:r}),c.length>0&&(0,E.jsx)("ul",{className:"pxd-tags-list","aria-label":`Chosen ${t.text(e.label)}`,children:c.map(m=>(0,E.jsxs)("li",{className:"pxd-tag-chip",children:[l==="year"||l==="month"?m:u(m),(0,E.jsx)("button",{type:"button",className:"pxd-tag-remove","aria-label":`Remove ${m}`,onClick:()=>t.write(e.value,c.filter(h=>h!==m)),children:(0,E.jsx)(ee,{name:"close",size:14})})]},m))}),(0,E.jsxs)("label",{className:"pxd-date-add",htmlFor:o,children:[(0,E.jsx)("span",{className:"pxd-sr-only",children:"Add a date"}),l==="year"?(0,E.jsx)("input",{id:o,className:"pxd-input pxd-input-year",inputMode:"numeric",pattern:"[0-9]{4}",maxLength:4,placeholder:"YYYY","aria-describedby":r?i:void 0,onKeyDown:m=>m.key==="Enter"&&(m.preventDefault(),f(m.currentTarget.value),m.currentTarget.value=""),onBlur:m=>(f(m.currentTarget.value),m.currentTarget.value="")}):(0,E.jsx)("input",{id:o,className:"pxd-input pxd-input-date",type:NA[l],min:p,max:n,"aria-describedby":r?i:void 0,onChange:m=>(f(m.target.value),m.target.value="")})]})]})}if(l==="year")return(0,E.jsx)(pn,{label:t.text(e.label),help:r,required:e.required,id:o,helpId:i,children:(0,E.jsx)("input",{id:o,className:"pxd-input pxd-input-year",inputMode:"numeric",pattern:"[0-9]{4}",maxLength:4,placeholder:"YYYY",value:s??"",min:p,max:n,required:e.required,"aria-describedby":r?i:void 0,onChange:c=>t.write(e.value,c.target.value.replace(/\D/g,"").slice(0,4)||null),...d})});if(l==="dateRange"){let[c,u]=Array.isArray(s)?s:[],f=(m,h)=>{let b=[c??null,u??null];b[m]=h||null,t.write(e.value,b)};return(0,E.jsxs)("fieldset",{className:"pxd-field",...d,children:[(0,E.jsx)("legend",{className:"pxd-field-label",children:t.text(e.label)}),r&&(0,E.jsx)("p",{className:"pxd-field-help",children:r}),(0,E.jsxs)("div",{className:"pxd-date-range",children:[(0,E.jsxs)("label",{children:["From",(0,E.jsx)("input",{className:"pxd-input",type:"date",value:c??"",min:p,max:n,required:e.required,onChange:m=>f(0,m.target.value)})]}),(0,E.jsxs)("label",{children:["To",(0,E.jsx)("input",{className:"pxd-input",type:"date",value:u??"",min:c??p,max:n,required:e.required,onChange:m=>f(1,m.target.value)})]})]})]})}return(0,E.jsx)(pn,{label:t.text(e.label),help:r,required:e.required,id:o,helpId:i,children:(0,E.jsx)("input",{id:o,className:`pxd-input pxd-input-date${l==="month"?" pxd-input-month":""}`,type:NA[l],value:s??"",min:p,max:n,required:e.required,"aria-describedby":r?i:void 0,onChange:c=>t.write(e.value,c.target.value||null),...d})})}function OA({node:e}){let t=ae(),a=W(),o=(0,je.useId)(),i=(0,je.useId)(),l=(0,je.useId)(),r=n=>Ee(n,et(e.format??{type:"number"},a.data,t.scope),a.locale),s=ie(e);if(e.mode==="range"){let n=t.value(e.value),[d,c]=Array.isArray(n)?n.map(Number):[e.min,e.max],u=(f,m)=>t.write(e.value,[Math.max(e.min,Math.min(f,m)),Math.min(e.max,Math.max(f,m))]);return(0,E.jsxs)("div",{className:"pxd-field pxd-range",role:"group","aria-labelledby":o,...s,children:[(0,E.jsxs)("div",{className:"pxd-range-header",children:[(0,E.jsx)("span",{className:"pxd-field-label",id:o,children:t.text(e.label)}),(0,E.jsxs)("output",{className:"pxd-range-value","aria-live":"polite",children:[r(d)," \u2013 ",r(c)]})]}),(0,E.jsxs)(Ra.Root,{className:"pxd-slider",min:e.min,max:e.max,step:e.step??1,value:[d,c],minStepsBetweenThumbs:1,onValueChange:([f,m])=>u(f,m),children:[(0,E.jsx)(Ra.Track,{className:"pxd-slider-track",children:(0,E.jsx)(Ra.Range,{className:"pxd-slider-range"})}),(0,E.jsx)(Ra.Thumb,{className:"pxd-slider-thumb","aria-label":"Minimum","aria-valuetext":r(d)}),(0,E.jsx)(Ra.Thumb,{className:"pxd-slider-thumb","aria-label":"Maximum","aria-valuetext":r(c)})]}),(0,E.jsxs)("div",{className:"pxd-range-fields",children:[(0,E.jsxs)("label",{htmlFor:i,children:[(0,E.jsx)("span",{children:"Minimum"}),(0,E.jsx)("input",{id:i,className:"pxd-input",inputMode:"numeric",value:d,onChange:f=>u(Number(f.target.value)||e.min,c)})]}),(0,E.jsx)("span",{"aria-hidden":"true",children:"\u2013"}),(0,E.jsxs)("label",{htmlFor:l,children:[(0,E.jsx)("span",{children:"Maximum"}),(0,E.jsx)("input",{id:l,className:"pxd-input",inputMode:"numeric",value:c,onChange:f=>u(d,Number(f.target.value)||e.max)})]})]})]})}let p=Number(t.value(e.value)??e.min);return(0,E.jsxs)("div",{className:"pxd-field pxd-range",...s,children:[(0,E.jsxs)("div",{className:"pxd-range-header",children:[(0,E.jsx)("span",{className:"pxd-field-label",id:o,children:t.text(e.label)}),(0,E.jsx)("output",{className:"pxd-range-value","aria-live":"polite",children:r(p)})]}),(0,E.jsxs)(Ra.Root,{className:"pxd-slider",min:e.min,max:e.max,step:e.step??1,value:[p],onValueChange:([n])=>t.write(e.value,n),children:[(0,E.jsx)(Ra.Track,{className:"pxd-slider-track",children:(0,E.jsx)(Ra.Range,{className:"pxd-slider-range"})}),(0,E.jsx)(Ra.Thumb,{className:"pxd-slider-thumb","aria-labelledby":o,"aria-valuetext":r(p)})]}),(0,E.jsxs)("div",{className:"pxd-range-bounds","aria-hidden":"true",children:[(0,E.jsx)("span",{children:r(e.min)}),(0,E.jsx)("span",{children:r(e.max)})]})]})}function VM(e){return(e.labels?.[0]?.textContent??e.getAttribute("aria-label")??e.closest(".pxd-field")?.querySelector(".pxd-field-label, legend")?.textContent??"").replace(/\*\s*$/,"").trim()}function ZM(e,t){let a=new Set,o=[];for(let i of Array.from(e.elements))if(!(!i.willValidate||i.validity.valid)){if(i.type==="radio"&&i.name){if(a.has(i.name))continue;a.add(i.name)}i.id||(i.id=`${t}-${o.length}`),o.push(i)}return o}function qA({node:e}){let t=ae(),a=W(),o=Math.min((0,je.useContext)(Ha),6),i=(0,je.useId)(),l=(0,je.useRef)(null),r=(0,je.useRef)([]),[s,p]=(0,je.useState)([]),n=(e.children??[]).some(f=>a.byId.get(f)?.required);(0,je.useEffect)(()=>{s.length&&l.current?.focus()},[s]);let d=()=>{for(let f of r.current)f.removeAttribute("aria-invalid"),f.pxdDescribed?f.setAttribute("aria-describedby",f.pxdDescribed):f.removeAttribute("aria-describedby"),f.pxdNote?.remove(),f.pxdNote=void 0;r.current=[]},c=f=>{for(let m of f){m.setAttribute("aria-invalid","true");let h=m.closest(".pxd-field");if(h&&!h.querySelector(".pxd-field-error")){let b=h.ownerDocument.createElement("p");b.className="pxd-field-error",b.id=`${m.id}-error`,b.textContent=m.validationMessage,h.append(b),m.pxdNote=b,m.pxdDescribed=m.getAttribute("aria-describedby"),m.setAttribute("aria-describedby",[m.pxdDescribed,b.id].filter(Boolean).join(" "))}}r.current=f},u=f=>{let m=l.current?.ownerDocument.getElementById(f);m&&(m.scrollIntoView({block:"center"}),m.focus(),m.ownerDocument.activeElement!==m&&m.closest(".pxd-field")?.querySelector("[role='radio'], button, input:not([aria-hidden]), textarea, select")?.focus())};return(0,E.jsxs)("form",{className:`pxd-form${e.aside?" pxd-form-with-aside":""}${e.layout==="horizontal"?" pxd-form-horizontal":""}`,noValidate:!0,onSubmit:f=>{f.preventDefault();let m=f.currentTarget;if(d(),!m.checkValidity()){let h=ZM(m,i);return c(h),p(h.map(b=>({id:b.id,label:VM(b),message:b.validationMessage})))}p([]),a.dispatch(e.submit.action,t.scope,e.id)},...ie(e),children:[e.aside&&(0,E.jsx)("aside",{className:"pxd-form-aside",children:(0,E.jsx)(pe,{id:e.aside})}),(0,E.jsxs)("div",{className:"pxd-stack pxd-form-fields",children:[s.length>0&&(0,E.jsxs)("section",{ref:l,className:"pxd-error-summary",role:"alert",tabIndex:-1,"aria-labelledby":i,children:[(0,je.createElement)(`h${o}`,{id:i,className:"pxd-error-summary-title"},"Check these fields before continuing"),(0,E.jsx)("ul",{className:"pxd-error-summary-list",children:s.map(f=>(0,E.jsx)("li",{children:(0,E.jsx)("a",{href:`#${f.id}`,className:"pxd-link",onClick:m=>{m.preventDefault(),u(f.id)},children:f.label?`${f.label}: ${f.message}`:f.message})},f.id))})]}),n&&(0,E.jsxs)("p",{className:"pxd-required-legend",children:[(0,E.jsx)("span",{className:"pxd-required","aria-hidden":"true",children:"*"})," ","Required"]}),(0,E.jsx)(sn,{ids:e.children})]}),(0,E.jsxs)("div",{className:"pxd-action-bar",children:[(0,E.jsx)("button",{type:"submit",className:"pxd-button pxd-button-primary",children:t.text(e.submit.label)}),e.cancel&&(0,E.jsx)("button",{type:"button",className:"pxd-button pxd-button-secondary",onClick:()=>a.dispatch(e.cancel.action,t.scope,e.id),children:t.text(e.cancel.label)})]})]})}var Lt=j(J(),1);var V=j(oe(),1),KM=()=>_h(navigator.userAgentData?.platform??navigator.platform??""),GM=()=>()=>{},YM=()=>(0,Lt.useSyncExternalStore)(GM,KM,()=>!1);function XM(e){return e instanceof HTMLElement?e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName):!1}function jA({node:e}){let t=ae(),a=W(),o=(0,Lt.useContext)(af),i=(0,Lt.useId)(),[l,r]=(0,Lt.useState)(!1),s=e.disabled!==void 0?!!t.value(e.disabled):!1,p=e.tone==="danger"?" pxd-button-danger":"",n=e.description!==void 0?t.text(e.description):void 0,d=YM(),c=typeof e.shortcut=="string"&&e.shortcut?Eh(e.shortcut,d):void 0,u=()=>{let b=e.action.event.name;if(b==="ui.back"&&o)return o.back();if(b==="ui.next"&&o)return o.next();if(b==="ui.copy"){let x=e.copy!==void 0?t.text(e.copy):String(t.context(e.action.event.context).text??""),g=()=>{r(!0),setTimeout(()=>r(!1),2e3)};typeof navigator<"u"&&navigator.clipboard?.writeText?navigator.clipboard.writeText(x).then(g,()=>{}):g()}a.dispatch(e.action,t.scope,e.id)},f=(0,Lt.useRef)(u);f.current=u;let m=a.root,h=a.doc.surface.kind==="shell";return(0,Lt.useEffect)(()=>{if(!c||s||!m)return;let b=x=>{x.defaultPrevented||x.repeat||!h&&!m.contains(document.activeElement)&&!(x.target instanceof HTMLElement&&m.contains(x.target))||Ih(c,x)&&(Mh(c)&&XM(x.target)||(x.preventDefault(),f.current()))};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[e.shortcut,d,s,m,h]),(0,V.jsxs)("button",{type:"button",className:`pxd-button pxd-button-${e.emphasis??"secondary"}${p}${n?" pxd-button-described":""}`,disabled:s,"aria-describedby":n?i:void 0,"aria-keyshortcuts":c?.aria,onClick:u,...ie(e),children:[(0,V.jsx)("span",{className:"pxd-button-label",children:l?"Copied":t.text(e.label)}),c&&(0,V.jsx)("span",{className:"pxd-kbd-hint","aria-hidden":"true",children:c.hint.map((b,x)=>(0,V.jsx)("kbd",{className:"pxd-kbd",children:b},x))}),n&&(0,V.jsx)("span",{className:"pxd-button-description",id:i,children:n}),e.action.event.name==="ui.copy"&&(0,V.jsx)("span",{className:"pxd-sr-only","aria-live":"polite",children:l?"Copied":""})]})}function BA({node:e}){let t=ae(),a=W(),[o,i]=(0,Lt.useState)(null),l=e.current!==void 0?t.value(e.current):void 0,[r,s]=(0,Lt.useState)(typeof l=="number"?l:0),p=e.kind??"wizard",n=(0,V.jsx)("div",{className:"pxd-action-bar",children:(0,V.jsx)("button",{type:"button",className:"pxd-button pxd-button-primary",onClick:()=>a.dispatch(e.finish.action,t.scope,e.id),children:t.text(e.finish.label)})});if(p==="guide")return(0,V.jsxs)("div",{className:"pxd-steps pxd-guide",...ie(e),children:[(0,V.jsx)("ol",{className:"pxd-guide-list",children:e.steps.map((h,b)=>(0,V.jsxs)("li",{className:"pxd-guide-step",children:[(0,V.jsx)("span",{className:"pxd-guide-number","aria-hidden":"true",children:b+1}),(0,V.jsxs)("div",{className:"pxd-guide-body",children:[(0,V.jsx)(ln,{className:"pxd-guide-title",children:t.text(h.title)}),(0,V.jsx)(pe,{id:h.content})]})]},h.key))}),n]});if(p==="tasklist"){let h=x=>Gs[x.status!==void 0?t.text(x.status):"todo"]??Gs.todo,b=e.steps.filter(x=>h(x)===Gs.done).length;return(0,V.jsxs)("div",{className:"pxd-steps pxd-tasklist",...ie(e),children:[(0,V.jsx)("p",{className:"pxd-steps-progress",children:`${b} of ${e.steps.length} tasks completed`}),(0,V.jsx)("ul",{className:"pxd-tasklist-list",children:e.steps.map(x=>{let g=o===x.key,{label:y,tone:v}=h(x),S=v==="neutral"&&y===Gs.blocked.label;return(0,V.jsxs)("li",{className:`pxd-task${g?" pxd-task-open":""}`,children:[(0,V.jsxs)("div",{className:"pxd-task-row",children:[(0,V.jsx)("button",{type:"button",className:"pxd-task-title","aria-expanded":g,disabled:S,onClick:()=>i(g?null:x.key),children:t.text(x.title)}),(0,V.jsx)("span",{className:`pxd-badge pxd-tone-${v} pxd-task-status`,children:y})]}),g&&(0,V.jsx)("div",{className:"pxd-task-content",children:(0,V.jsx)(pe,{id:x.content})})]},x.key)})}),n]})}let d=typeof l=="number"&&e.current?.path?l:r,c=e.steps.length,u=h=>{let b=Math.max(0,Math.min(c-1,h));e.current?.path?t.write(e.current,b):s(b)},f=e.steps[d],m=d===c-1;return(0,V.jsx)(af.Provider,{value:{back:()=>u(d-1),next:()=>u(d+1)},children:(0,V.jsxs)("div",{className:"pxd-steps",...ie(e),children:[(0,V.jsx)("p",{className:"pxd-steps-progress",children:`Step ${d+1} of ${c}`}),(0,V.jsx)("ol",{className:"pxd-steps-list",children:e.steps.map((h,b)=>(0,V.jsx)("li",{"aria-current":b===d?"step":void 0,className:b<d?"pxd-step-done":b===d?"pxd-step-current":void 0,children:t.text(h.title)},h.key))}),(0,V.jsxs)("form",{className:"pxd-steps-content",onSubmit:h=>{h.preventDefault(),m?a.dispatch(e.finish.action,t.scope,e.id):u(d+1)},children:[(0,V.jsx)(ln,{className:"pxd-steps-title",children:t.text(f.title)}),(0,V.jsx)(pe,{id:f.content},f.key),(0,V.jsxs)("div",{className:"pxd-action-bar",children:[(0,V.jsx)("button",{type:"submit",className:"pxd-button pxd-button-primary",children:m?t.text(e.finish.label):"Continue"}),d>0&&(0,V.jsx)("button",{type:"button",className:"pxd-button pxd-button-secondary",onClick:()=>u(d-1),children:"Back"})]})]})]})})}function HA({node:e}){let t=ae(),a=W(),o=a.doc.root===e.id,[i,l]=(0,Lt.useState)(!0),[r,s]=(0,Lt.useState)(""),p=(0,Lt.useId)(),n=(0,Lt.useId)(),d=e.typeToConfirm!==void 0?t.text(e.typeToConfirm):void 0,c=!d||r.trim()===d,u=e.severity==="destructive",f=ie(e),m=(0,Lt.useRef)(null);(0,Lt.useEffect)(()=>{o&&m.current?.focus({preventScroll:!0})},[o]);let h=()=>{o||l(!1),a.dispatch(e.cancel?.action??{event:{name:"ui.dismiss"}},t.scope,e.id)},b=()=>c&&a.dispatch(e.confirm.action,t.scope,e.id),x=e.subject&&(0,V.jsxs)("div",{className:"pxd-dialog-subject",children:[(0,V.jsx)(qr,{value:e.subject.avatar!==void 0?t.value(e.subject.avatar):void 0,name:t.text(e.subject.title),size:56}),(0,V.jsxs)("div",{children:[(0,V.jsx)("div",{className:"pxd-dialog-subject-title",children:t.text(e.subject.title)}),e.subject.subtitle!==void 0&&(0,V.jsx)("div",{className:"pxd-dialog-subject-sub",children:t.text(e.subject.subtitle)})]})]}),g=e.amount&&(0,V.jsx)("div",{className:"pxd-dialog-amount",children:t.text(e.amount.value,e.amount.format)}),y=Array.isArray(e.consequences)&&(0,V.jsx)("ul",{className:"pxd-consequences",children:e.consequences.map((z,P)=>(0,V.jsxs)("li",{children:[(0,V.jsx)("span",{className:"pxd-consequence-icon",children:(0,V.jsx)(ee,{name:z.icon??"info"})}),(0,V.jsxs)("span",{children:[(0,V.jsx)("span",{className:"pxd-consequence-title",children:t.text(z.title)}),z.detail!==void 0&&(0,V.jsx)("span",{className:"pxd-consequence-detail",children:t.text(z.detail)})]})]},P))}),v=(0,V.jsx)("div",{className:"pxd-dialog-description",id:n,children:e.message!==void 0&&(0,V.jsx)("p",{children:t.text(e.message)})}),S=e.consequence!==void 0&&(0,V.jsxs)("p",{className:"pxd-dialog-consequence",id:`${n}-consequence`,children:[(0,V.jsx)(ee,{name:"info",size:18}),(0,V.jsx)("span",{children:t.text(e.consequence)})]}),R=(z,P)=>(0,V.jsxs)(V.Fragment,{children:[y,e.summary&&(0,V.jsx)(pe,{id:e.summary}),d&&(0,V.jsxs)("div",{className:"pxd-field",children:[(0,V.jsxs)("label",{className:"pxd-field-label",htmlFor:`${e.id}-type`,children:["Type ",(0,V.jsx)("strong",{children:d})," to confirm"]}),(0,V.jsx)("input",{id:`${e.id}-type`,className:"pxd-input",autoComplete:"off",value:r,onChange:A=>s(A.target.value)})]}),S,(0,V.jsxs)("div",{className:"pxd-action-bar",children:[z,P]})]}),w=(0,V.jsx)("button",{type:"button",className:`pxd-button pxd-button-primary${u?" pxd-button-danger":""}`,disabled:!c,onClick:b,children:t.text(e.confirm.label)}),$=e.cancel?t.text(e.cancel.label):"Cancel";return o?(0,V.jsxs)("div",{role:"alertdialog","aria-modal":"false","aria-labelledby":p,"aria-describedby":e.consequence!==void 0?`${n} ${n}-consequence`:n,className:`pxd-dialog pxd-dialog-inline${u?" pxd-dialog-destructive":""}`,onKeyDown:z=>z.key==="Escape"&&h(),...f,children:[(0,V.jsx)("h1",{className:"pxd-dialog-title",id:p,children:t.text(e.title)}),g,x,v,R(w,(0,V.jsx)("button",{type:"button",ref:m,className:"pxd-button pxd-button-secondary",onClick:h,children:$}))]}):(0,V.jsx)(Ya.Root,{open:i,onOpenChange:z=>z?l(!0):h(),children:(0,V.jsxs)(Ya.Portal,{container:a.portal,children:[(0,V.jsx)(Ya.Overlay,{className:"pxd-overlay"}),(0,V.jsxs)(Ya.Content,{className:`pxd-dialog${u?" pxd-dialog-destructive":""}`,"aria-describedby":e.consequence!==void 0?`${n} ${n}-consequence`:n,...f,children:[(0,V.jsx)(Ya.Title,{className:"pxd-dialog-title",children:t.text(e.title)}),g,x,(0,V.jsx)(Ya.Description,{asChild:!0,children:v}),R((0,V.jsx)(Ya.Action,{asChild:!0,onClick:z=>(z.preventDefault(),b()),children:w}),(0,V.jsx)(Ya.Cancel,{asChild:!0,children:(0,V.jsx)("button",{type:"button",className:"pxd-button pxd-button-secondary",autoFocus:!0,children:$})}))]})]})})}function UA({node:e}){let t=ae(),a=W(),o=he(e.items.path,t.scope),i=kt(we(a.data,o)),l=i.map((f,m)=>({pointer:pt(o,m)})),r=(f,m)=>we(a.data,he(f,l[m])),s=e.recommended!==void 0?t.text(e.recommended):void 0,p=e.recommendedReason!==void 0?t.text(e.recommendedReason):void 0,n=my(e.attributes,i.length,r),d=xy(e.attributes,t.text),c=gy(i.map((f,m)=>String(r(e.itemTitle,m)??"")),s),u=(f,m)=>{let h=r(f.path,m);return typeof h=="boolean"?h?(0,V.jsxs)("span",{className:"pxd-yes",children:[(0,V.jsx)(ee,{name:"check",size:18}),(0,V.jsx)("span",{className:"pxd-sr-only",children:"Included"})]}):(0,V.jsxs)("span",{className:"pxd-no",children:[(0,V.jsx)(ee,{name:"dash",size:18}),(0,V.jsx)("span",{className:"pxd-sr-only",children:"Not included"})]}):Ee(h,et(f.format,a.data,t.scope),a.locale)};return(0,V.jsxs)("div",{className:"pxd-comparison",...ie(e),children:[e.summary!==void 0&&(0,V.jsx)("p",{className:"pxd-comparison-summary",children:t.text(e.summary)}),(0,V.jsx)("ul",{className:"pxd-comparison-items",children:c.map(f=>{let m=String(r(e.itemTitle,f)??""),h=s===m;return(0,V.jsxs)("li",{className:`pxd-comparison-item${h?" pxd-recommended":""}`,children:[h&&(0,V.jsxs)("p",{className:"pxd-recommendation",children:[(0,V.jsx)("span",{className:"pxd-badge pxd-tone-info",children:"Recommended"}),p&&(0,V.jsx)("span",{className:"pxd-recommendation-reason",children:p})]}),(0,V.jsx)(ln,{className:"pxd-comparison-title",children:m}),d.map((b,x)=>(0,V.jsxs)("div",{className:"pxd-comparison-group",children:[b.label&&(0,V.jsx)("p",{className:"pxd-comparison-group-label",children:b.label}),(0,V.jsx)("dl",{children:b.attributes.map(g=>(0,V.jsxs)("div",{className:"pxd-detail-row",children:[(0,V.jsx)("dt",{children:t.text(g.label)}),(0,V.jsxs)("dd",{children:[u(g,f),n.get(g.key)===f&&(0,V.jsx)("span",{className:"pxd-best",children:" Best"})]})]},g.key))})]},x)),e.choose&&(0,V.jsxs)("button",{type:"button",className:`pxd-button ${h?"pxd-button-primary":"pxd-button-secondary"}`,onClick:()=>a.dispatch(e.choose.action,l[f],e.id),children:[t.text(e.choose.label)," ",(0,V.jsx)("span",{className:"pxd-sr-only",children:m})]})]},f)})})]})}var oo=j(J(),1);var jr=j(oe(),1),QM="More actions",JM=44;function LA({node:e}){let t=W(),a=e.children??[],o=(0,oo.useRef)(null),i=(0,oo.useRef)(null),l=(0,oo.useRef)(new Map),r=(0,oo.useRef)(JM),s=(0,oo.useRef)(-1),[p,n]=(0,oo.useState)(a.length),d=h=>t.byId.get(h)?.component==="Action",c=1;for(let h=a.length-1;h>0;h--)if(!d(a[h])){c=h+1;break}let u=()=>{let h=o.current;if(!h)return;if(a.length<=2||getComputedStyle(h).flexDirection==="column")return n(a.length);for(let S of h.querySelectorAll(":scope > [data-pxd-id]"))S.offsetWidth&&l.current.set(S.dataset.pxdId,S.offsetWidth);i.current?.offsetWidth&&(r.current=i.current.offsetWidth);let b=parseFloat(getComputedStyle(h).columnGap)||0,x=h.clientWidth,g=S=>l.current.get(S)??0,y=0,v=0;for(;v<a.length&&y+(v?b:0)+g(a[v])<=x;)y+=(v?b:0)+g(a[v++]);if(v<a.length){for(;v>c&&y+b+r.current>x;)y-=b+g(a[--v]);v=Math.max(v,c)}n(v)};(0,oo.useLayoutEffect)(u),(0,oo.useLayoutEffect)(()=>{let h=o.current;if(!h||typeof ResizeObserver>"u")return;let b=new ResizeObserver(([x])=>{let g=x.contentRect.width;g!==s.current&&(s.current=g,u())});return b.observe(h),()=>b.disconnect()});let f=a.slice(0,Math.min(p,a.length)),m=a.slice(f.length);return(0,jr.jsxs)("div",{ref:o,className:"pxd-action-bar",role:"group","aria-label":"Actions",...ie(e),children:[f.map(h=>(0,jr.jsx)(pe,{id:h},h)),m.length>0&&(0,jr.jsxs)(ut.Root,{children:[(0,jr.jsx)(ut.Trigger,{ref:i,className:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow pxd-action-bar-more","aria-label":QM,children:(0,jr.jsx)(ee,{name:"dots",size:18})}),(0,jr.jsx)(ut.Portal,{container:t.portal,children:(0,jr.jsx)(ut.Content,{className:"pxd-menu pxd-action-menu",align:"start",sideOffset:4,children:(0,jr.jsx)(WM,{ids:m})})})]})]})}function WM({ids:e}){let t=ae(),a=W(),o=e.map(s=>a.byId.get(s)).filter(s=>!!s&&s.component==="Action"&&(s.visible===void 0||t.value(s.visible)!==!1)),i=o.filter(s=>s.tone!=="danger"),l=o.filter(s=>s.tone==="danger"),r=s=>(0,jr.jsx)(ut.Item,{className:`pxd-menu-item${s.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:s.disabled!==void 0?!!t.value(s.disabled):void 0,onSelect:()=>a.dispatch(s.action,t.scope,s.id),"data-pxd-id":s.id,"data-pxd-component":s.component,children:t.text(s.label)},s.id);return(0,jr.jsxs)(jr.Fragment,{children:[i.map(r),l.length>0&&i.length>0&&(0,jr.jsx)(ut.Separator,{className:"pxd-menu-separator"}),l.map(r)]})}var Gi=j(J(),1);var qe=j(oe(),1),e_=640;function FA({node:e}){let t=ae(),a=W(),o=(0,Gi.useRef)(null),[i,l]=(0,Gi.useState)(!1),[r,s]=(0,Gi.useState)(!1),p=ie(e);(0,Gi.useLayoutEffect)(()=>{let y=o.current;if(!y||typeof ResizeObserver>"u")return;let v=()=>l(y.getBoundingClientRect().width<e_);v();let S=new ResizeObserver(v);return S.observe(y),()=>S.disconnect()},[]);let n=e.label!==void 0?t.text(e.label):"Filters",d=(e.children??[]).map(y=>a.byId.get(y)).filter(Boolean),c=d.filter(y=>y.component==="TextInput"&&y.kind==="search"),u=d.filter(y=>!c.includes(y)),f=t_(u,a,t),m=e.resultCount!==void 0?t.value(e.resultCount):void 0,h=m===void 0?void 0:`${Ee(m,{type:"number"},a.locale)} ${m===1?"result":"results"}`,b=()=>{for(let y of f)y.remove();e.clear&&a.dispatch(e.clear,t.scope,e.id)},x=u.map(y=>(0,qe.jsx)(pe,{id:y.id},y.id)),g=(0,qe.jsxs)("div",{className:"pxd-filter-results",children:[c.map(y=>(0,qe.jsx)(pe,{id:y.id},y.id)),(0,qe.jsxs)("div",{className:"pxd-filter-status",children:[i&&(0,qe.jsxs)(Ce.Trigger,{className:"pxd-chip pxd-filter-trigger",children:[(0,qe.jsx)(ee,{name:"filter",size:18}),n,f.length>0&&(0,qe.jsxs)("span",{"aria-hidden":"true",children:[" \xB7 ",f.length]}),f.length>0&&(0,qe.jsxs)("span",{className:"pxd-sr-only",children:[", ",f.length," active"]})]}),h&&(0,qe.jsx)("p",{className:"pxd-filter-count","aria-live":"polite",children:h})]}),f.length>0&&(0,qe.jsxs)("ul",{className:"pxd-filter-chips","aria-label":"Active filters",children:[f.map(y=>(0,qe.jsx)("li",{children:(0,qe.jsxs)("button",{type:"button",className:"pxd-chip pxd-filter-chip",onClick:y.remove,"aria-label":`Remove filter: ${y.label}`,children:[y.label,(0,qe.jsx)(ee,{name:"close",size:16})]})},y.key)),(0,qe.jsx)("li",{children:(0,qe.jsx)("button",{type:"button",className:"pxd-button pxd-button-tertiary pxd-filter-clear",onClick:b,children:"Clear all"})})]}),(0,qe.jsx)(pe,{id:e.results})]});return(0,qe.jsx)("div",{ref:o,className:`pxd-filter-panel${i?" pxd-filter-compact":""}`,...p,children:i?(0,qe.jsxs)(Ce.Root,{open:r,onOpenChange:s,children:[g,(0,qe.jsxs)(Ce.Portal,{container:a.portal,children:[(0,qe.jsx)(Ce.Overlay,{className:"pxd-overlay"}),(0,qe.jsxs)(Ce.Content,{className:"pxd-sheet","aria-describedby":void 0,children:[(0,qe.jsxs)("div",{className:"pxd-sheet-header",children:[(0,qe.jsx)(Ce.Title,{className:"pxd-sheet-title",children:n}),(0,qe.jsx)(Ce.Close,{className:"pxd-icon-button","aria-label":"Close",children:(0,qe.jsx)(ee,{name:"close"})})]}),(0,qe.jsx)("div",{className:"pxd-sheet-body pxd-stack",children:x}),(0,qe.jsxs)("div",{className:"pxd-sheet-footer",children:[f.length>0&&(0,qe.jsx)("button",{type:"button",className:"pxd-button pxd-button-secondary",onClick:b,children:"Clear all"}),(0,qe.jsx)(Ce.Close,{className:"pxd-button pxd-button-primary",children:h?`Show ${h}`:"Show results"})]})]})]})]}):(0,qe.jsxs)("div",{className:"pxd-filter-layout",children:[(0,qe.jsxs)("section",{className:"pxd-filter-sidebar","aria-label":n,children:[(0,qe.jsx)(ln,{className:"pxd-filter-title",children:n}),(0,qe.jsx)("div",{className:"pxd-stack",children:x})]}),g]})})}function t_(e,t,a){let o=[];for(let i of e){if(!i.value||typeof i.value!="object"||!("path"in i.value))continue;let l=a.value(i.value),r=a.text(i.label),s=p=>Ee(p,et(i.format??{type:"number"},t.data,a.scope),t.locale);switch(i.component){case"Choice":{let p=Vn(i,t.data,a.scope,a.text),n=d=>p.find(c=>c.value===d)?.label??String(d);if(Array.isArray(l))for(let d of l)o.push({key:`${i.id}:${d}`,label:n(d),remove:()=>a.write(i.value,l.filter(c=>c!==d))});else l!=null&&l!==""&&o.push({key:i.id,label:n(l),remove:()=>a.write(i.value,null)});break}case"RangeInput":{if(i.mode==="range"&&Array.isArray(l)){let[p,n]=l.map(Number);(p>i.min||n<i.max)&&o.push({key:i.id,label:`${r}: ${s(p)} \u2013 ${s(n)}`,remove:()=>a.write(i.value,[i.min,i.max])})}else typeof l=="number"&&l<i.max&&o.push({key:i.id,label:`${r}: ${s(l)}`,remove:()=>a.write(i.value,i.max)});break}case"Toggle":l===!0&&o.push({key:i.id,label:r,remove:()=>a.write(i.value,!1)});break;case"TextInput":typeof l=="string"&&l.trim()&&o.push({key:i.id,label:`${r}: ${l}`,remove:()=>a.write(i.value,"")});break;case"DateInput":l&&o.push({key:i.id,label:`${r}: ${String(l)}`,remove:()=>a.write(i.value,null)});break}}return o}var Ro=j(J(),1);var ue=j(oe(),1);function VA({node:e}){let t=ae(),a=W(),o=(0,Ro.useContext)(Di),i=(0,Ro.useRef)(null),[l,r]=(0,Ro.useState)(!1),[s,p]=(0,Ro.useState)(!1),[n,d]=(0,Ro.useState)({}),c=e.kind??"main",u=o&&o.navigationId===e.id&&c==="main"?o.navigation:void 0,f=t.value(e.current),m=u&&o?.current?.key!==void 0?o.current.key:f,h=e.label!==void 0?t.text(e.label):yy(c),b=ie(e);(0,Ro.useLayoutEffect)(()=>{if(c!=="main"||u)return;let $=i.current?.closest(".pxd-surface")??i.current;if(!$||typeof ResizeObserver>"u")return;let z=()=>r($.getBoundingClientRect().width<900);z();let P=new ResizeObserver(z);return P.observe($),()=>P.disconnect()},[c,u]);let x=$=>{p(!1),o?.setDrawerOpen(!1),a.dispatch($.action,t.scope,e.id)},g=$=>{let z=$.badge!==void 0?t.value($.badge):void 0;return z?(0,ue.jsxs)("span",{className:"pxd-nav-badge",children:[z,(0,ue.jsx)("span",{className:"pxd-sr-only",children:" needing attention"})]}):null};if(c==="breadcrumb")return(0,ue.jsx)("nav",{className:"pxd-nav-breadcrumb","aria-label":h,...b,children:(0,ue.jsx)("ol",{children:e.items.map(($,z)=>{let P=z===e.items.length-1,A=$.key===m||m===void 0&&P;return(0,ue.jsx)("li",{children:A?(0,ue.jsx)("span",{className:"pxd-nav-breadcrumb-current","aria-current":"page",children:t.text($.label)}):(0,ue.jsx)("button",{type:"button",className:"pxd-link",onClick:()=>x($),children:t.text($.label)})},$.key)})})});if(c==="toc")return(0,ue.jsxs)("nav",{className:"pxd-nav-toc","aria-label":h,...b,children:[(0,ue.jsx)("p",{className:"pxd-nav-toc-label","aria-hidden":"true",children:h}),(0,ue.jsx)("ol",{children:e.items.map($=>{let z=$.key===m;return(0,ue.jsx)("li",{children:(0,ue.jsx)("a",{href:`#${$.key}`,className:`pxd-nav-toc-link${z?" pxd-nav-current":""}`,"aria-current":z?"true":void 0,onClick:()=>a.dispatch($.action,t.scope,e.id),children:t.text($.label)})},$.key)})})]});if(c==="local")return(0,ue.jsx)("nav",{className:"pxd-nav-local","aria-label":h,...b,children:(0,ue.jsx)("ul",{children:e.items.map($=>{let z=$.key===m;return(0,ue.jsx)("li",{children:(0,ue.jsxs)("button",{type:"button",className:`pxd-nav-local-item${z?" pxd-nav-current":""}`,"aria-current":z?"page":void 0,onClick:()=>x($),children:[$.icon&&(0,ue.jsx)(ee,{name:$.icon,size:16}),(0,ue.jsx)("span",{className:"pxd-nav-label",children:t.text($.label)}),g($)]})},$.key)})})});let y=hy(e.items,t.text),v=c==="nested",S=$=>$.label&&$.label in n?n[$.label]:!$.label||$.items.some(z=>z.key===m),R=$=>(0,ue.jsx)("ul",{children:$.map(z=>{let P=z.key===m;return(0,ue.jsx)("li",{children:(0,ue.jsxs)("button",{type:"button",className:`pxd-nav-item${P?" pxd-nav-current":""}`,"aria-current":P?"page":void 0,onClick:()=>x(z),children:[z.icon&&(0,ue.jsx)(ee,{name:z.icon,size:18}),(0,ue.jsx)("span",{className:"pxd-nav-label",children:t.text(z.label)}),g(z)]})},z.key)})}),w=(0,ue.jsx)("nav",{className:`pxd-nav${v?" pxd-nav-nested":""}${u==="side"?" pxd-nav-side":""}`,"aria-label":h,...u==="side"?b:{},children:y.map(($,z)=>(0,ue.jsxs)("div",{className:"pxd-nav-group",children:[$.label&&(v?(0,ue.jsxs)("button",{type:"button",className:"pxd-nav-group-toggle","aria-expanded":S($),onClick:()=>d(P=>({...P,[$.label]:!S($)})),children:[(0,ue.jsx)(ee,{name:S($)?"sortUp":"sortDown",size:16}),(0,ue.jsx)("span",{className:"pxd-nav-group-label",children:$.label})]}):(0,ue.jsx)("p",{className:"pxd-nav-group-label",children:$.label})),(!v||S($))&&R($.items)]},z))});if(u==="side")return w;if(u==="rail"||u==="bar"){let $=u==="bar"?e.items.slice(0,5):e.items;return(0,ue.jsx)("nav",{className:`pxd-nav-${u}`,"aria-label":h,...b,children:(0,ue.jsx)("ul",{children:$.map(z=>{let P=z.key===m,A=t.text(z.label);return(0,ue.jsx)("li",{children:(0,ue.jsxs)("button",{type:"button",className:`pxd-nav-${u}-item${P?" pxd-nav-current":""}`,"aria-current":P?"page":void 0,onClick:()=>x(z),children:[(0,ue.jsxs)("span",{className:`pxd-nav-${u}-icon`,children:[z.icon?(0,ue.jsx)(ee,{name:z.icon,size:24}):(0,ue.jsx)("span",{className:"pxd-nav-glyph","aria-hidden":"true",children:A.slice(0,1)}),g(z)]}),(0,ue.jsx)("span",{className:"pxd-nav-label",children:A})]})},z.key)})})})}return u==="drawer"&&o?(0,ue.jsx)(Ce.Root,{open:o.drawerOpen,onOpenChange:o.setDrawerOpen,children:(0,ue.jsxs)(Ce.Portal,{container:a.portal,children:[(0,ue.jsx)(Ce.Overlay,{className:"pxd-overlay"}),(0,ue.jsxs)(Ce.Content,{className:"pxd-nav-drawer","aria-describedby":void 0,...b,children:[(0,ue.jsxs)("div",{className:"pxd-sheet-header",children:[(0,ue.jsx)(Ce.Title,{className:"pxd-sheet-title",children:h}),(0,ue.jsx)(Ce.Close,{className:"pxd-icon-button","aria-label":"Close",children:(0,ue.jsx)(ee,{name:"close"})})]}),w]})]})}):(0,ue.jsx)("div",{ref:i,className:"pxd-nav-wrap",...b,children:l?(0,ue.jsxs)(Ce.Root,{open:s,onOpenChange:p,children:[(0,ue.jsx)(Ce.Trigger,{className:"pxd-icon-button pxd-nav-menu","aria-label":`${h} menu`,children:(0,ue.jsx)(ee,{name:"menu"})}),(0,ue.jsxs)(Ce.Portal,{container:a.portal,children:[(0,ue.jsx)(Ce.Overlay,{className:"pxd-overlay"}),(0,ue.jsxs)(Ce.Content,{className:"pxd-nav-drawer","aria-describedby":void 0,children:[(0,ue.jsxs)("div",{className:"pxd-sheet-header",children:[(0,ue.jsx)(Ce.Title,{className:"pxd-sheet-title",children:h}),(0,ue.jsx)(Ce.Close,{className:"pxd-icon-button","aria-label":"Close",children:(0,ue.jsx)(ee,{name:"close"})})]}),w]})]})]}):w})}var Br=j(J(),1);var Q=j(oe(),1);function r_(e,t,a,o){a.action&&e.dispatch({event:{name:a.action.event.name,context:Sp(a,e.data,t.scope,o)}},{pointer:""},a.id)}function KA({node:e}){let t=ae(),a=W(),o=t.text(e.label),i=e.kind??"label",l=i==="status"?e.tone??"neutral":"neutral",r=ie(e),s=`pxd-tag pxd-tag-${i} pxd-tag-${l}${e.remove?" pxd-tag-removable":""}`;if(i==="count"){let p=t.text(e.count,{type:"number"});return(0,Q.jsxs)("span",{className:s,title:o,...r,children:[(0,Q.jsxs)("span",{className:"pxd-sr-only",children:[o,": "]}),(0,Q.jsx)("span",{className:"pxd-tag-number",children:p})]})}return(0,Q.jsxs)("span",{className:s,title:o,...r,children:[(0,Q.jsx)("span",{className:"pxd-tag-text",children:o}),e.remove&&(0,Q.jsx)("button",{type:"button",className:"pxd-tag-remove","aria-label":`Remove ${o}`,onClick:()=>a.dispatch(e.remove,t.scope,e.id),children:(0,Q.jsx)(ee,{name:"close",size:12})})]})}function GA({node:e}){let t=ae(),a=W(),o=(0,Br.useId)(),i=(0,Br.useId)(),l=ie(e),r=e.kind??"person",s=e.size??"default",p=Wu[s]??Wu.default,n=t.text(e.name),d=e.detail!==void 0?t.text(e.detail):void 0,c={"--polyxd-identity-size":`${p}px`},u=`pxd-identity pxd-identity-${s} pxd-identity-${r}${e.group?" pxd-identity-group":""}`,f,m=n;if(e.group){let b=he(e.group.path,t.scope),x=kt(we(a.data,b)).map((S,R)=>{let w={pointer:pt(b,R)},$=z=>z?we(a.data,he(z,w)):void 0;return{name:String($(e.group.namePath)??""),image:$(e.group.imagePath)}}),g=e.group.max??4,y=x.slice(0,g),v=x.slice(g);m||(m=Jh(x,g)),f=(0,Q.jsxs)("span",{className:"pxd-identity-faces",children:[y.map((S,R)=>(0,Q.jsxs)("span",{className:"pxd-identity-face",children:[(0,Q.jsx)(qr,{value:S.image,name:S.name,size:p}),(0,Q.jsx)("span",{className:"pxd-sr-only",children:S.name})]},R)),v.length>0&&(0,Q.jsx)("span",{className:"pxd-identity-face pxd-identity-more",role:"img",title:v.map(S=>S.name).join(", "),"aria-label":`${v.length} more: ${v.map(S=>S.name).join(", ")}`,children:(0,Q.jsxs)("span",{"aria-hidden":"true",children:["+",v.length]})})]})}else f=(0,Q.jsx)(qr,{value:t.value(e.image),name:n,size:p});let h=(0,Q.jsxs)(Q.Fragment,{children:[f,(0,Q.jsxs)("span",{className:"pxd-identity-text",children:[(0,Q.jsx)("span",{className:"pxd-identity-name",id:o,children:m}),d&&(0,Q.jsx)("span",{className:"pxd-identity-detail",id:i,children:d})]})]});return e.action?(0,Q.jsx)("button",{type:"button",className:`${u} pxd-identity-button`,style:c,"aria-labelledby":o,"aria-describedby":d?i:void 0,onClick:()=>a.dispatch(e.action,t.scope,e.id),...l,children:h}):(0,Q.jsx)("div",{className:u,style:c,role:"group","aria-labelledby":o,"aria-describedby":d?i:void 0,...l,children:h})}function YA({node:e}){let t=ae(),a=W(),o=(0,Br.useId)(),i=ie(e),l=e.kind??"bar",r=t.text(e.label),s=!!t.value(e.indeterminate),p=t.value(e.value),n=typeof p=="number"?p:Number(p),d=e.max!==void 0?Number(t.value(e.max)):void 0,c=d!==void 0&&Number.isFinite(d)&&d>0?d:void 0,u=Number.isFinite(n)?Math.max(0,Math.min(1,c!==void 0?n/c:n)):0,f=e.format?Ee(p,et(e.format,a.data,t.scope),a.locale):Ee(u,{type:"percent",precision:0},a.locale),m=e.caption!==void 0?t.text(e.caption):void 0,h=l==="meter",b=h?Gh(u,e.thresholds):{},x=e.tone??b.tone,g=h?b.hint:void 0,y=[f,m,g].filter(Boolean).join(", "),v=Math.round(u*100),S=s?{"aria-busy":!0}:c!==void 0?{"aria-valuemin":0,"aria-valuemax":c,"aria-valuenow":Number.isFinite(n)?n:0,"aria-valuetext":y}:{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":v,"aria-valuetext":y},R=h?"meter":"progressbar",w=`pxd-gauge pxd-gauge-${l}${x&&x!=="neutral"?` pxd-gauge-${x}`:""}${s?" pxd-gauge-indeterminate":""}`,$=(0,Q.jsxs)("div",{className:"pxd-gauge-header",children:[(0,Q.jsx)("span",{className:"pxd-gauge-label",id:o,children:r}),(0,Q.jsxs)("span",{className:"pxd-gauge-readout",children:[!s&&(0,Q.jsx)("span",{className:"pxd-gauge-value",children:f}),m&&(0,Q.jsx)("span",{className:"pxd-gauge-caption",children:m}),g&&(0,Q.jsx)("span",{className:"pxd-gauge-hint",children:g})]})]});return l==="ring"?(0,Q.jsxs)("div",{className:w,...i,children:[(0,Q.jsx)("div",{className:"pxd-gauge-ring-graphic",role:R,"aria-labelledby":o,...S,children:(0,Q.jsxs)("svg",{className:"pxd-gauge-ring-svg",viewBox:"0 0 36 36","aria-hidden":"true",focusable:"false",children:[(0,Q.jsx)("circle",{className:"pxd-gauge-ring-track",cx:"18",cy:"18",r:"16",fill:"none",strokeWidth:"4"}),(0,Q.jsx)("circle",{className:"pxd-gauge-ring-fill",cx:"18",cy:"18",r:"16",fill:"none",strokeWidth:"4",pathLength:100,strokeDasharray:s?"25 100":`${v} 100`,strokeLinecap:"round"})]})}),$]}):(0,Q.jsxs)("div",{className:w,...i,children:[$,(0,Q.jsx)("div",{className:"pxd-gauge-track",role:R,"aria-labelledby":o,...S,children:(0,Q.jsx)("div",{className:"pxd-gauge-fill",style:s?void 0:{width:`${v}%`}})})]})}function ZA({fill:e}){let t=Math.round(Math.max(0,Math.min(1,e))*100);return(0,Q.jsxs)("span",{className:"pxd-rating-star-shape","aria-hidden":"true",children:[(0,Q.jsx)("svg",{className:"pxd-rating-star-empty",viewBox:"0 0 24 24",focusable:"false",children:(0,Q.jsx)("path",{d:ef})}),(0,Q.jsx)("span",{className:"pxd-rating-star-fill",style:{width:`${t}%`},children:(0,Q.jsx)("svg",{viewBox:"0 0 24 24",focusable:"false",children:(0,Q.jsx)("path",{d:ef})})})]})}function XA({node:e}){let t=ae(),a=W(),o=(0,Br.useId)(),i=(0,Br.useId)(),[l,r]=(0,Br.useState)(null),s=ie(e),p=e.max??5,n=t.text(e.label),d=t.value(e.value),c=d==null||d===""?void 0:Number(d),u=c!==void 0&&Number.isFinite(c)?Math.max(0,Math.min(p,c)):void 0,f=!!t.value(e.readOnly),m=e.count!==void 0?t.value(e.count):void 0,h=m!=null?Ee(m,{type:"number"},a.locale):void 0,b=e.help!==void 0?t.text(e.help):void 0,x=u!==void 0?Ee(u,{type:"number",precision:Number.isInteger(u)?0:1},a.locale):void 0,g=m!=null?`from ${h} ${Number(m)===1?"rating":"ratings"}`:void 0;if(f){let R=Xh(x,p);return(0,Q.jsxs)("div",{className:"pxd-rating pxd-rating-readonly",...s,children:[(0,Q.jsx)("span",{className:"pxd-rating-label",children:n}),(0,Q.jsx)("span",{className:"pxd-rating-stars",role:"img","aria-label":R,children:Array.from({length:p},(w,$)=>(0,Q.jsx)(ZA,{fill:(u??0)-$},$))}),(0,Q.jsxs)("span",{className:"pxd-rating-readout",children:[x&&(0,Q.jsx)("span",{className:"pxd-rating-value","aria-hidden":"true",children:x}),h&&(0,Q.jsxs)("span",{className:"pxd-rating-count",children:[(0,Q.jsxs)("span",{"aria-hidden":"true",children:["(",h,")"]}),(0,Q.jsx)("span",{className:"pxd-sr-only",children:g})]})]})]})}let y=u!==void 0?Math.round(u):0,v=l??y,S=R=>{let w=Number(R);t.write(e.value,w),r_(a,t,e,w)};return(0,Q.jsxs)("div",{className:"pxd-field pxd-rating",...s,children:[(0,Q.jsxs)("div",{className:"pxd-field-label",id:o,children:[n,e.required&&(0,Q.jsx)("span",{className:"pxd-required","aria-hidden":"true",children:"*"})]}),b&&(0,Q.jsx)("p",{className:"pxd-field-help",id:i,children:b}),(0,Q.jsxs)("div",{className:"pxd-rating-row",children:[(0,Q.jsx)(Ht.Root,{className:"pxd-rating-stars",orientation:"horizontal","aria-labelledby":o,"aria-describedby":b?i:void 0,"aria-required":e.required||void 0,value:y?String(y):"",onValueChange:S,onMouseLeave:()=>r(null),children:Array.from({length:p},(R,w)=>w+1).map(R=>(0,Q.jsx)(Ht.Item,{value:String(R),className:`pxd-rating-star${R<=v?" pxd-rating-star-on":""}`,"aria-label":Yh(R),onMouseEnter:()=>r(R),onFocus:()=>r(null),children:(0,Q.jsx)(ZA,{fill:R<=v?1:0})},R))}),(0,Q.jsxs)("span",{className:"pxd-rating-readout","aria-hidden":"true",children:[x&&(0,Q.jsx)("span",{className:"pxd-rating-value",children:x}),h&&(0,Q.jsxs)("span",{className:"pxd-rating-count",children:["(",h,")"]})]}),g&&(0,Q.jsx)("span",{className:"pxd-sr-only",children:g})]})]})}var a_=2e3;function QA({node:e}){let t=ae(),a=(0,Br.useId)(),o=ie(e),i=t.text(e.text),l=e.label!==void 0?t.text(e.label):void 0,r=!!t.value(e.secret),s=e.copyable!==!1,[p,n]=(0,Br.useState)(!1),[d,c]=(0,Br.useState)(""),u=(0,Br.useRef)(null);(0,Br.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]);let f=y=>{c(y),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>c(""),a_)},m=()=>{let y=typeof navigator<"u"?navigator.clipboard:void 0;if(!y?.writeText)return f("Couldn't copy");y.writeText(i).then(()=>f("Copied"),()=>f("Couldn't copy"))},h=r&&!p,b=h?Qh(i):i,x=l??"code",g=l??(e.language?`${e.language} code`:"Code");return(0,Q.jsxs)("section",{className:`pxd-code${e.wrap?" pxd-code-wrap":""}${r?" pxd-code-secret":""}`,"aria-labelledby":l!==void 0?a:void 0,"aria-label":l===void 0?g:void 0,...o,children:[(0,Q.jsxs)("div",{className:"pxd-code-header",children:[l!==void 0&&(0,Q.jsx)("span",{className:"pxd-code-label",id:a,children:l}),(0,Q.jsxs)("div",{className:"pxd-code-controls",children:[r&&(0,Q.jsx)("button",{type:"button",className:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`${p?"Hide":"Show"} ${x}`,onClick:()=>n(y=>!y),children:p?"Hide":"Show"}),s&&(0,Q.jsxs)("button",{type:"button",className:"pxd-button pxd-button-tertiary pxd-code-control","aria-label":`Copy ${x}`,onClick:m,children:[d==="Copied"&&(0,Q.jsx)(ee,{name:"check",size:16}),d==="Copied"?"Copied":"Copy"]}),(0,Q.jsx)("span",{className:"pxd-sr-only",role:"status","aria-live":"polite",children:d})]})]}),(0,Q.jsx)("pre",{className:"pxd-code-pre",tabIndex:0,"data-language":e.language,"data-masked":h||void 0,children:(0,Q.jsx)("code",{className:e.language?`language-${e.language}`:void 0,translate:"no",children:b})})]})}var Ta=j(J(),1);var ye=j(oe(),1),o_=e=>typeof e=="object"&&e!==null&&typeof e.path=="string";function JA(){return(0,ye.jsx)("svg",{className:"pxd-action-menu-chevron",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,ye.jsx)("path",{d:"m6 9 6 6 6-6"})})}function WA({node:e}){let t=ae(),a=W(),o=ie(e),i=e.kind??"overflow",l=t.text(e.label),r=o["aria-label"]??l,s=(e.children??[]).map(f=>a.byId.get(f)).filter(f=>!!f&&(f.visible===void 0||t.value(f.visible)!==!1)),p=s.filter(f=>f.tone!=="danger"),n=s.filter(f=>f.tone==="danger"),d=f=>{let m=h=>(0,ye.jsx)(f.Item,{className:`pxd-menu-item${h.tone==="danger"?" pxd-menu-item-danger":""}`,disabled:h.disabled!==void 0?!!t.value(h.disabled):void 0,onSelect:()=>a.dispatch(h.action,t.scope,h.id),"data-pxd-id":h.id,"data-pxd-component":h.component,children:t.text(h.label)},h.id);return(0,ye.jsxs)(ye.Fragment,{children:[p.map(m),n.length>0&&p.length>0&&(0,ye.jsx)(f.Separator,{className:"pxd-menu-separator"}),n.map(m)]})},c=(0,ye.jsx)(ut.Trigger,{className:"pxd-icon-button pxd-action-menu-trigger pxd-action-menu-overflow",...o,"aria-label":r,children:(0,ye.jsx)(ee,{name:"dots",size:18})}),u=(0,ye.jsx)(ut.Portal,{container:a.portal,children:(0,ye.jsx)(ut.Content,{className:"pxd-menu pxd-action-menu",align:"end",sideOffset:4,children:d(ut)})});if(i==="dropdown")return(0,ye.jsxs)(ut.Root,{children:[(0,ye.jsxs)(ut.Trigger,{className:"pxd-button pxd-button-secondary pxd-action-menu-trigger pxd-action-menu-dropdown",...o,"aria-label":o["aria-label"],children:[l,(0,ye.jsx)(JA,{})]}),u]});if(i==="split"){let m=(e.primary?a.byId.get(e.primary):void 0)?.emphasis??"secondary";return(0,ye.jsxs)(ut.Root,{children:[(0,ye.jsxs)("div",{className:"pxd-split",role:"group",...o,"aria-label":r,children:[e.primary&&(0,ye.jsx)(pe,{id:e.primary}),(0,ye.jsx)(ut.Trigger,{className:`pxd-button pxd-button-${m} pxd-action-menu-trigger pxd-split-menu`,"aria-label":`${l}: more options`,children:(0,ye.jsx)(JA,{})})]}),u]})}return i==="context"?(0,ye.jsxs)(Wn.Root,{children:[(0,ye.jsx)(Wn.Trigger,{asChild:!0,children:(0,ye.jsx)("span",{className:"pxd-context-target",children:(0,ye.jsxs)(ut.Root,{children:[c,u]})})}),(0,ye.jsx)(Wn.Portal,{container:a.portal,children:(0,ye.jsx)(Wn.Content,{className:"pxd-menu pxd-action-menu","aria-label":r,children:d(Wn)})})]}):(0,ye.jsxs)(ut.Root,{children:[c,u]})}function n_(e,t,a){let o=(0,Ta.useRef)(null),i=()=>{o.current=null,t.current&&(t.current.style.transform="",t.current.style.transition="")};return e?{onPointerDown:l=>{l.pointerType==="mouse"&&l.button!==0||(o.current=l.clientY,l.currentTarget.setPointerCapture(l.pointerId))},onPointerMove:l=>{if(o.current===null||!t.current)return;let r=Math.max(0,l.clientY-o.current);t.current.style.transition="none",t.current.style.transform=`translateY(${r}px)`},onPointerUp:l=>{if(o.current===null)return;let r=l.clientY-o.current;i(),r>80&&a()},onPointerCancel:i}:{}}function e4({node:e}){let t=ae(),a=W(),o=ie(e),i=Math.min((0,Ta.useContext)(Ha),6),l=(0,Ta.useId)(),r=(0,Ta.useRef)(null),s=e.kind??"dialog",p=e.size??"default",n=e.dismissible!==!1,d=o_(e.open),[c,u]=(0,Ta.useState)(!0),f=d?!!t.value(e.open):c&&e.open!==!1,m=()=>{d?t.write(e.open,!1):u(!1),a.dispatch({event:{name:"ui.dismiss"}},t.scope,e.id)},h=R=>{R||m()},b=n?{}:{onEscapeKeyDown:R=>R.preventDefault(),onInteractOutside:R=>R.preventDefault()},x=n_(s==="sheet"&&n,r,m),g=t.text(e.title),y=`pxd-panel pxd-panel-${s} pxd-panel-size-${p}`,v=(0,ye.jsx)(Ha.Provider,{value:i+1,children:(0,ye.jsx)("div",{className:"pxd-panel-body pxd-stack",children:(0,ye.jsx)(sn,{ids:e.children})})}),S=e.actions&&(0,ye.jsx)("div",{className:"pxd-panel-footer",children:(0,ye.jsx)(pe,{id:e.actions})});return s==="popover"?(0,ye.jsxs)(an.Root,{open:f,onOpenChange:h,children:[(0,ye.jsx)(an.Anchor,{className:"pxd-panel-anchor"}),(0,ye.jsx)(an.Portal,{container:a.portal,children:(0,ye.jsxs)(an.Content,{className:y,"aria-labelledby":l,sideOffset:8,collisionPadding:8,...b,...o,children:[(0,ye.jsxs)("div",{className:"pxd-panel-header",children:[(0,Ta.createElement)(`h${i}`,{id:l,className:"pxd-panel-title"},g),n&&(0,ye.jsx)(an.Close,{className:"pxd-icon-button pxd-panel-close","aria-label":"Close",children:(0,ye.jsx)(ee,{name:"close"})})]}),v,S,(0,ye.jsx)(an.Arrow,{className:"pxd-panel-arrow",width:16,height:8})]})})]}):(0,ye.jsx)(Ce.Root,{open:f,onOpenChange:h,children:(0,ye.jsxs)(Ce.Portal,{container:a.portal,children:[(0,ye.jsx)(Ce.Overlay,{className:"pxd-overlay pxd-panel-backdrop"}),(0,ye.jsxs)(Ce.Content,{ref:r,className:y,"aria-describedby":void 0,...b,...o,children:[(0,ye.jsxs)("div",{className:"pxd-panel-header",...x,children:[s==="sheet"&&(0,ye.jsx)("span",{className:"pxd-panel-grip","aria-hidden":"true"}),(0,ye.jsx)(Ce.Title,{asChild:!0,children:(0,Ta.createElement)(`h${i}`,{className:"pxd-panel-title"},g)}),n&&(0,ye.jsx)(Ce.Close,{className:"pxd-icon-button pxd-panel-close","aria-label":"Close",children:(0,ye.jsx)(ee,{name:"close"})})]}),v,S]})]})})}var Dt=j(J(),1);var ge=j(oe(),1),um=()=>(0,ge.jsx)("span",{className:"pxd-required","aria-hidden":"true",children:"*"});function i_(e,t,a,o){e.dispatch({event:{name:a.action.event.name,context:Sp(a,e.data,t.scope,o)}},{pointer:""},a.id)}var Pl=(...e)=>e.filter(Boolean).join(" ")||void 0,$v=e=>{typeof e.ref=="string"&&e.ref.startsWith("blob:")&&URL.revokeObjectURL(e.ref)};function r4({node:e}){let t=ae(),a=W(),o=(0,Dt.useId)(),i=(0,Dt.useId)(),l=(0,Dt.useId)(),[r,s]=(0,Dt.useState)(null),[p,n]=(0,Dt.useState)(!1),d=t.value(e.value),c=Array.isArray(d)?d:[],u=Array.isArray(e.accept)?e.accept:[],f=e.maxSize,m=!!e.multiple,h=t.text(e.label),b=Zh(u,f,m,a.locale),x=[e.help!==void 0?t.text(e.help):"",b].filter(Boolean).join(" ")||void 0,g=w=>{if(!w)return;let $=Array.from(w),z=[],P=[];for(let A of m?$:$.slice(0,1)){let C=Kh(A,u,f,a.locale);C?P.push(C):z.push({name:A.name,size:A.size,type:A.type,ref:URL.createObjectURL(A)})}if(s(P.length?P.join(" "):null),z.length!==0)if(m){let A=z.filter(C=>!c.some(N=>N.name===C.name&&N.size===C.size));z.filter(C=>!A.includes(C)).forEach($v),A.length&&t.write(e.value,[...c,...A])}else c.forEach($v),t.write(e.value,z)},y=w=>{$v(c[w]),t.write(e.value,c.filter(($,z)=>z!==w)),s(null)},v=w=>{w.preventDefault(),n(!1),g(w.dataTransfer.files)},S=w=>{w.preventDefault(),p||n(!0)},R=w=>{w.currentTarget.contains(w.relatedTarget)||n(!1)};return(0,ge.jsxs)("div",{className:"pxd-field pxd-file",children:[(0,ge.jsxs)("label",{className:"pxd-field-label",htmlFor:o,children:[h,e.required&&(0,ge.jsx)(um,{})]}),x&&(0,ge.jsx)("p",{className:"pxd-field-help",id:i,children:x}),(0,ge.jsxs)("div",{className:"pxd-dropzone","data-dragging":p||void 0,onDrop:v,onDragOver:S,onDragLeave:R,children:[(0,ge.jsx)("input",{id:o,className:"pxd-dropzone-input",type:"file",accept:u.length?u.join(","):void 0,multiple:m,required:e.required&&c.length===0,"aria-describedby":Pl(x&&i,r&&l),"aria-invalid":r?!0:void 0,onChange:w=>{g(w.target.files),w.target.value=""},...ie(e)}),(0,ge.jsx)("span",{className:"pxd-dropzone-icon","aria-hidden":"true",children:(0,ge.jsx)(ee,{name:"file",size:24})}),(0,ge.jsxs)("span",{className:"pxd-dropzone-text",children:[(0,ge.jsx)("span",{className:"pxd-dropzone-action",children:m?"Choose files":"Choose a file"}),(0,ge.jsx)("span",{className:"pxd-dropzone-hint",children:m?"or drop them here":"or drop it here"})]})]}),r&&(0,ge.jsx)("p",{className:"pxd-field-error",id:l,role:"alert",children:r}),c.length>0&&(0,ge.jsx)("ul",{className:"pxd-file-list",children:c.map((w,$)=>(0,ge.jsxs)("li",{className:"pxd-file-item",children:[(0,ge.jsx)("span",{className:"pxd-file-icon","aria-hidden":"true",children:(0,ge.jsx)(ee,{name:"file",size:18})}),(0,ge.jsxs)("span",{className:"pxd-file-text",children:[(0,ge.jsx)("span",{className:"pxd-file-name",children:w.name}),(0,ge.jsx)("span",{className:"pxd-file-size",children:Qs(w.size,a.locale)}),typeof w.progress=="number"&&w.progress<1&&(0,ge.jsx)("progress",{className:"pxd-file-progress",value:w.progress,max:1,"aria-label":`Uploading ${w.name}`})]}),(0,ge.jsx)("button",{type:"button",className:"pxd-file-remove","aria-label":`Remove ${w.name}`,onClick:()=>y($),children:(0,ge.jsx)(ee,{name:"close",size:18})})]},`${w.name}-${w.size}-${$}`))})]})}var Sl="__other";function a4({node:e}){let t=ae(),a=W(),o=(0,Dt.useId)(),i=(0,Dt.useId)(),l=(0,Dt.useId)(),r=(0,Dt.useId)(),s=(0,Dt.useId)(),p=e.format??"hex",n=!!e.alpha,d=t.text(e.label),c=e.help!==void 0?t.text(e.help):void 0,u=t.value(e.value),f=u==null?"":String(u),m=Zn(f),[h,b]=(0,Dt.useState)(null),[x,g]=(0,Dt.useState)(!1),y=ie(e),v=e.swatches?Vn({...e,options:e.swatches},a.data,t.scope,t.text):[],S=v.length>0,R=C=>t.write(e.value,Ju(C,p,n)),w=C=>{b(C);let N=Zn(C);N&&R(N)},$=v.findIndex(C=>m?Uh(Zn(C.value),m,n):String(C.value)===f&&f!==""),z=x?Sl:$>=0?String($):f?Sl:"",P=!S||z===Sl,A=(0,ge.jsxs)("div",{className:"pxd-color-picker",children:[(0,ge.jsx)("input",{id:l,className:"pxd-color-native",type:"color",value:Hh(m),"aria-label":`${d}: pick`,"aria-describedby":Pl(c&&i),onChange:C=>{let N=Zn(C.target.value);N&&(b(null),R({...N,a:m?.a??1}))}}),(0,ge.jsx)("input",{id:r,className:"pxd-input pxd-input-mono pxd-color-text",type:"text",inputMode:"text",autoComplete:"off",spellCheck:!1,placeholder:Lh(p),value:h??f,"aria-label":`${d}: value`,"aria-describedby":Pl(c&&i),"aria-invalid":h!==null&&h!==""&&!Zn(h)?!0:void 0,required:!S&&e.required,onChange:C=>w(C.target.value),onBlur:()=>b(null)}),n&&(0,ge.jsxs)("label",{className:"pxd-color-alpha",htmlFor:s,children:[(0,ge.jsx)("span",{className:"pxd-color-alpha-label",children:"Opacity"}),(0,ge.jsx)("input",{id:s,type:"range",min:0,max:100,step:1,value:Math.round((m?.a??1)*100),disabled:!m,"aria-valuetext":`${Math.round((m?.a??1)*100)}%`,onChange:C=>{m&&(b(null),R({...m,a:Number(C.target.value)/100}))}}),(0,ge.jsxs)("output",{className:"pxd-color-alpha-value",htmlFor:s,"aria-hidden":"true",children:[Math.round((m?.a??1)*100),"%"]})]})]});return S?(0,ge.jsxs)("div",{className:"pxd-field pxd-color",...y,children:[(0,ge.jsxs)("div",{className:"pxd-field-label",id:o,children:[d,e.required&&(0,ge.jsx)(um,{})]}),c&&(0,ge.jsx)("p",{className:"pxd-field-help",id:i,children:c}),(0,ge.jsxs)(Ht.Root,{className:"pxd-swatches","aria-labelledby":o,"aria-describedby":Pl(c&&i),"aria-required":e.required||void 0,value:z,orientation:"horizontal",onValueChange:C=>{if(C===Sl)return g(!0);g(!1),b(null);let N=v[Number(C)],M=Zn(N.value);t.write(e.value,M?Ju(M,p,n):N.value)},children:[v.map((C,N)=>(0,ge.jsxs)(Ht.Item,{value:String(N),className:"pxd-swatch",title:C.label,children:[(0,ge.jsx)("span",{className:"pxd-swatch-color",style:{background:String(C.value)},"aria-hidden":"true"}),(0,ge.jsx)("span",{className:"pxd-swatch-name",children:C.label})]},String(N))),(0,ge.jsxs)(Ht.Item,{value:Sl,className:"pxd-swatch pxd-swatch-other",title:"Other",children:[(0,ge.jsx)("span",{className:"pxd-swatch-color",style:z===Sl&&m?{background:f}:void 0,"aria-hidden":"true"}),(0,ge.jsx)("span",{className:"pxd-swatch-name",children:"Other"})]})]}),P&&A]}):(0,ge.jsxs)("div",{className:"pxd-field pxd-color",role:"group","aria-labelledby":o,"aria-describedby":Pl(c&&i),...y,children:[(0,ge.jsxs)("div",{className:"pxd-field-label",id:o,children:[d,e.required&&(0,ge.jsx)(um,{})]}),c&&(0,ge.jsx)("p",{className:"pxd-field-help",id:i,children:c}),A]})}var t4=(e,t)=>Array.from({length:t},(a,o)=>e[o]??"");function o4({node:e}){let t=ae(),a=W(),o=(0,Dt.useId)(),i=(0,Dt.useId)(),l=Ba(Number(e.length)||6,4,12),r=(e.kind??"numeric")==="numeric",s=e.required??!0,p=t.text(e.label),n=e.help!==void 0?t.text(e.help):void 0,d=t.value(e.value),c=d==null?"":String(d),[u,f]=(0,Dt.useState)(()=>t4(c,l)),[m,h]=(0,Dt.useState)(c);c!==m&&(h(c),c!==u.join("")&&f(t4(c,l)));let[b,x]=(0,Dt.useState)(null),g=(0,Dt.useRef)([]),y=ie(e),v=N=>N.replace(r?/[^0-9]/g:/[^0-9a-zA-Z]/g,""),S=N=>g.current[Ba(N,0,l-1)]?.focus(),R=N=>{f(N);let M=N.join("");h(M),t.write(e.value,M),e.action&&N.every(Boolean)&&M!==b&&(x(M),i_(a,t,e,M))},w=(N,M)=>{let T=v(M);if(!T)return;let D=[...u],B=N;for(let U of T){if(B>=l)break;D[B++]=U}R(D),S(B)},$=(N,M)=>{let T=u[N],D=M.target.value;if(T&&D.length>1&&(D=D.startsWith(T)?D.slice(T.length):D.endsWith(T)?D.slice(0,-T.length):D),D===""){let B=[...u];return B[N]="",R(B)}w(v(D).length>=l?0:N,D)},z=(N,M)=>{if(M.key==="Backspace"&&!u[N]&&N>0){M.preventDefault();let T=[...u];T[N-1]="",R(T),S(N-1)}else M.key==="ArrowLeft"?(M.preventDefault(),S(N-1)):M.key==="ArrowRight"&&(M.preventDefault(),S(N+1))},P=(N,M)=>{M.preventDefault();let T=M.clipboardData.getData("text");w(v(T).length>=l?0:N,T)},A=l>6?l%4===0?4:3:l,C=[];for(let N=0;N<l;N+=A)C.push(Array.from({length:Math.min(A,l-N)},(M,T)=>N+T));return(0,ge.jsxs)("div",{className:"pxd-field pxd-code",role:"group","aria-labelledby":o,"aria-describedby":Pl(n&&i),...y,children:[(0,ge.jsxs)("div",{className:"pxd-field-label",id:o,children:[p,s&&(0,ge.jsx)(um,{})]}),n&&(0,ge.jsx)("p",{className:"pxd-field-help",id:i,children:n}),(0,ge.jsx)("div",{className:"pxd-code-boxes",children:C.map((N,M)=>(0,ge.jsx)("div",{className:"pxd-code-group",children:N.map(T=>(0,ge.jsx)("input",{ref:D=>{g.current[T]=D},className:"pxd-code-box",type:"text",inputMode:r?"numeric":"text",pattern:r?"[0-9]*":"[0-9A-Za-z]*",autoComplete:T===0?"one-time-code":"off",autoCapitalize:r?void 0:"characters",spellCheck:!1,"aria-label":`Digit ${T+1} of ${l}`,value:u[T],"data-filled":u[T]?"":void 0,required:s,onFocus:D=>D.target.select(),onChange:D=>$(T,D),onKeyDown:D=>z(T,D),onPaste:D=>P(T,D)},T))},M))})]})}var Ft=j(J(),1);var ea=j(oe(),1),Sv=40;function n4({node:e}){let t=ae(),a=W(),o=(0,Ft.useId)(),i=(0,Ft.useRef)(null),l=(0,Ft.useRef)(null),r=e.selection??"none",s=r!=="none"&&!!e.selected,p=e.expanded?kt(t.value(e.expanded)):void 0,[n,d]=(0,Ft.useState)(null),c=(0,Ft.useMemo)(()=>p?new Set(p):n,[p,n]),u=s?t.value(e.selected):void 0,f=Y=>Array.isArray(u)?u.includes(Y):u!==void 0&&u===Y,{rows:m,indexByKey:h,topValues:b}=(0,Ft.useMemo)(()=>Py(e,a.data,t.scope,c),[e,a.data,t.scope,c]),[x,g]=(0,Ft.useState)(null),y=(x!==null?h.get(x):void 0)??0,v=(0,Ft.useRef)(null),S=m.length>$y,[R,w]=(0,Ft.useState)(Sv),[$,z]=(0,Ft.useState)(Sv*12),[P,A]=(0,Ft.useState)(0),C=S?Math.max(0,Math.floor(P/R)-rf):0,N=S?Math.min(m.length,Math.ceil((P+$)/R)+rf):m.length;(0,Ft.useLayoutEffect)(()=>{if(!S)return;let Y=l.current,fe=i.current?.querySelector(".pxd-tree-item");if(fe&&fe.offsetHeight>0&&w(fe.offsetHeight),!Y)return;let me=()=>z(Y.clientHeight||Sv*12);if(me(),typeof ResizeObserver>"u")return;let Re=new ResizeObserver(me);return Re.observe(Y),()=>Re.disconnect()},[S]);let M=Y=>{S&&A(Y.currentTarget.scrollTop)},T=Y=>{if(!m.length)return;let fe=Math.max(0,Math.min(m.length-1,Y));g(m[fe].key);let me=i.current?.querySelector(`[data-index="${fe}"]`);if(me){me.focus();return}v.current=fe;let Re=l.current;if(S&&Re){let Ze=Math.max(0,fe*R-($-R)/2);Re.scrollTop=Ze,A(Ze)}};(0,Ft.useEffect)(()=>{if(v.current===null)return;let Y=i.current?.querySelector(`[data-index="${v.current}"]`);Y&&(v.current=null,Y.focus())});let D=(Y,fe)=>{if(e.expanded){let me=p??[],Re=fe?[...me,...Y.filter(Ze=>!me.includes(Ze))]:me.filter(Ze=>!Y.includes(Ze));t.write(e.expanded,Re);return}d(me=>{let Re=new Set(me??b);for(let Ze of Y)fe?Re.add(Ze):Re.delete(Ze);return Re})},B=Y=>D([Y.value],!Y.expanded),U=Y=>{if(!s)return;if(r==="single"){t.write(e.selected,Y.value);return}let fe=Array.isArray(u)?u:[];t.write(e.selected,fe.includes(Y.value)?fe.filter(me=>me!==Y.value):[...fe,Y.value])},Z=Y=>{U(Y),e.action&&a.dispatch(e.action,Y.scope,e.id)},G=(0,Ft.useRef)({buffer:"",at:0}),_e=Y=>{let fe=Date.now(),me=G.current;me.buffer=fe-me.at<Sy?me.buffer+Y.toLowerCase():Y.toLowerCase(),me.at=fe;let Re=Cy(m,y,me.buffer);Re>=0&&T(Re)},re=Y=>{let fe=m[y];if(!fe)return;let me=!0;switch(Y.key){case"ArrowDown":T(y+1);break;case"ArrowUp":T(y-1);break;case"ArrowRight":fe.hasChildren&&!fe.expanded?B(fe):fe.expanded&&T(y+1);break;case"ArrowLeft":fe.expanded?B(fe):fe.parent>=0&&T(fe.parent);break;case"Home":T(0);break;case"End":T(m.length-1);break;case"Enter":Z(fe);break;case" ":U(fe);break;case"*":D(m.filter(Re=>Re.parent===fe.parent&&Re.hasChildren).map(Re=>Re.value),!0);break;default:Y.key.length===1&&!Y.ctrlKey&&!Y.metaKey&&!Y.altKey?_e(Y.key):me=!1}me&&(Y.preventDefault(),Y.stopPropagation())},te=t.text(e.label),be=S?{paddingTop:C*R,paddingBottom:(m.length-N)*R}:void 0,Ct=(0,ea.jsx)("ul",{ref:i,role:"tree",className:"pxd-tree-list","aria-labelledby":o,"aria-multiselectable":r==="multiple"?!0:void 0,style:be,onKeyDown:re,children:m.slice(C,N).map((Y,fe)=>{let me=C+fe,Re=s?f(Y.value):void 0;return(0,ea.jsx)("li",{role:"treeitem",className:`pxd-tree-item${Re?" pxd-tree-item-selected":""}`,style:{"--polyxd-tree-depth":Y.level-1},"data-index":me,tabIndex:me===y?0:-1,"aria-level":Y.level,"aria-setsize":Y.setsize,"aria-posinset":Y.posinset,"aria-expanded":Y.hasChildren?Y.expanded:void 0,"aria-selected":Re,onFocus:Ze=>{Ze.target===Ze.currentTarget&&g(Y.key)},onClick:Ze=>{Ze.stopPropagation(),T(me),s?U(Y):Y.hasChildren&&B(Y)},onDoubleClick:Ze=>{Ze.stopPropagation(),e.action?a.dispatch(e.action,Y.scope,e.id):Y.hasChildren&&B(Y)},children:(0,ea.jsx)(Ni.Provider,{value:Y.scope,children:(0,ea.jsxs)("div",{className:"pxd-tree-row",children:[Y.hasChildren?(0,ea.jsx)("button",{type:"button",className:`pxd-tree-expander${Y.expanded?" pxd-tree-expander-open":""}`,tabIndex:-1,"aria-hidden":"true",onClick:Ze=>{Ze.stopPropagation(),T(me),B(Y)},onDoubleClick:Ze=>Ze.stopPropagation(),children:(0,ea.jsx)(ee,{name:"chevronRight",size:16})}):(0,ea.jsx)("span",{className:"pxd-tree-expander pxd-tree-expander-leaf","aria-hidden":"true"}),(0,ea.jsx)("span",{className:"pxd-tree-text",children:Y.label}),Y.detail!==void 0&&(0,ea.jsx)("span",{className:"pxd-tree-detail",children:Y.detail})]})})},Y.key)})});return(0,ea.jsxs)("div",{className:"pxd-tree",...ie(e),children:[(0,ea.jsx)("div",{className:"pxd-tree-caption",id:o,children:te}),S?(0,ea.jsx)("div",{ref:l,className:"pxd-tree-viewport",onScroll:M,children:Ct}):Ct]})}var Pv={Section:nA,Group:iA,Card:lA,Disclosure:dA,Views:pA,Navigation:VA,Text:wA,Metric:kA,DetailList:$A,Collection:SA,Table:yA,Chart:zA,Media:PA,Status:CA,TextInput:DA,Choice:IA,Toggle:MA,DateInput:_A,RangeInput:OA,Form:qA,Action:jA,ActionBar:LA,Steps:BA,Confirm:HA,Comparison:UA,FilterPanel:FA,Tag:KA,Identity:GA,Progress:YA,Rating:XA,Code:QA,Tree:n4,ActionMenu:WA,Panel:e4,FileInput:r4,ColorInput:a4,CodeInput:o4,Columns:sA,Split:cA,Frame:fA,AppBar:mA,Footer:xA,Outlet:gA,Custom:hA};var rt=j(oe(),1);function ec({document:e,data:t,onAction:a,onDataChange:o,derive:i,onDismiss:l,theme:r,mode:s,density:p,disclosure:n="progressive",locale:d="en-GB",resolveMedia:c,components:u,className:f}){let[m,h]=(0,Hr.useState)(()=>t??e.data??{}),[b,x]=(0,Hr.useState)(null),[g,y]=(0,Hr.useState)(null),v=(0,Hr.useMemo)(()=>new Map(e.components.map(C=>[C.id,C])),[e]),S=(0,Hr.useMemo)(()=>({...Pv,...u}),[u]),R=(0,Hr.useCallback)((C,N)=>h(M=>{let T=Zo(M,C,N),D=i?.(T)??T;return o?.(D),D}),[o,i]),w=(0,Hr.useCallback)((C,N,M)=>Xu(C,N,M,m,{onAction:a,onDismiss:l}),[m,a,l]),$={doc:e,byId:v,data:m,setValue:R,dispatch:w,locale:d,resolveMedia:c,portal:b,root:g,components:S,disclosure:n},z=v.get(e.root)?.component==="Confirm",P=e.surface.kind==="shell";(0,Hr.useEffect)(()=>{P&&t&&h(t)},[P,t]);let A=P?void 0:e.components.find(C=>C.component==="Navigation"&&(!C.kind||C.kind==="main"));return(0,rt.jsx)(Ny.Provider,{value:$,children:(0,rt.jsxs)("div",{ref:y,className:["pxd-surface",P?"pxd-surface-shell":null,e.surface.presentation==="panel"?"pxd-surface-panel":null,A?"pxd-surface-with-nav":null,f].filter(Boolean).join(" "),"data-pxd-theme":r,"data-pxd-mode":s,"data-pxd-density":p,"data-pxd-surface":e.surface.id,lang:d,children:[A&&(0,rt.jsx)(pe,{id:A.id}),P?(0,rt.jsx)(pe,{id:e.root}):(0,rt.jsxs)("div",{className:"pxd-surface-main",children:[!z&&(0,rt.jsx)(s_,{}),(0,rt.jsx)(pe,{id:e.root})]}),(0,rt.jsx)("div",{ref:x,className:"pxd-portal"})]})})}function s_(){let e=W(),{title:t,subtitle:a,breadcrumbs:o,badge:i,avatar:l,actions:r}=e.doc.surface,s=n=>String(ht(n,e.data,Ln)??"");return!a&&!o&&!i&&!l&&!r?(0,rt.jsx)("h1",{className:"pxd-surface-title",children:t}):(0,rt.jsxs)("header",{className:"pxd-page-header",children:[o&&(0,rt.jsx)("nav",{className:"pxd-breadcrumbs","aria-label":"Breadcrumb",children:(0,rt.jsx)("ol",{children:o.map((n,d)=>(0,rt.jsx)("li",{children:n.action?(0,rt.jsx)("button",{type:"button",className:"pxd-link",onClick:()=>e.dispatch(n.action,Ln,e.doc.surface.id),children:s(n.label)}):s(n.label)},d))})}),(0,rt.jsxs)("div",{className:"pxd-page-header-main",children:[l!==void 0&&(0,rt.jsx)(qr,{value:s(l),name:t,size:48}),(0,rt.jsxs)("div",{className:"pxd-page-header-text",children:[(0,rt.jsxs)("h1",{className:"pxd-surface-title",children:[t,i&&(0,rt.jsx)("span",{className:`pxd-badge pxd-tone-${i.tone??"neutral"}`,children:s(i.text)})]}),a!==void 0&&(0,rt.jsx)("p",{className:"pxd-surface-subtitle",children:s(a)})]}),r&&(0,rt.jsx)("div",{className:"pxd-page-header-actions",children:(0,rt.jsx)(pe,{id:r})})]})]})}function pe({id:e,scope:t}){let a=W(),o=(0,Hr.useContext)(Ni),i=a.byId.get(e);if(!i)return null;let l=t??o;if(i.visible!==void 0&&ht(i.visible,a.data,l)===!1)return null;let r=a.components[i.component],s=r?(0,rt.jsx)(r,{node:i}):(0,rt.jsx)(l_,{node:i});return t?(0,rt.jsx)(Ni.Provider,{value:t,children:s}):s}function l_({node:e}){return(0,rt.jsxs)("div",{className:"pxd-unknown",role:"note",children:["Unsupported component \u201C",e.component,"\u201D"]})}function ie(e){let t=W(),a=(0,Hr.useContext)(Ni),o=e.accessibility,i={"data-pxd-id":e.id,"data-pxd-component":e.component};if(!o)return i;let l=r=>{let s=ht(r,t.data,a);return s===void 0?void 0:String(s)};return{...i,"aria-label":o.label!==void 0?l(o.label):void 0,"aria-description":o.description!==void 0?l(o.description):void 0,"aria-live":o.live,"aria-hidden":o.hidden||void 0}}var i4=j(J(),1);var d_=j(oe(),1);var Cv="0.3.0";var zv={"Card.media":["Media"],"Card.children":["Text","Metric","DetailList","Group","Media","Status","Toggle","Action","ActionBar","Tag","Identity","Progress","Rating","Code","ActionMenu"],"Collection.empty":["Status"],"Table.empty":["Status"],"Status.action":["Action","ActionBar"],"Form.aside":["DetailList","Card","Group"],"FilterPanel.children":["Choice","RangeInput","Toggle","DateInput","TextInput","Rating","ColorInput"],"FilterPanel.results":["Collection","Table"],"ActionBar.children":["Action"],"Confirm.summary":["DetailList"],"Table.toolbar":["ActionBar"],"Table.bulkActions":["ActionBar"],"Table.rowActions":["ActionBar"],"Table.detail":["DetailList","Group","Card","Text","Metric","Status","Media","Collection"],"Collection.bulkActions":["ActionBar"],"Table.search":["TextInput"],"Surface.actions":["ActionBar"],"Panel.children":["Section","Group","Text","Metric","DetailList","Media","Status","Form","Choice","TextInput","Toggle","DateInput","RangeInput","Collection","Table","Tree","Tag","Identity","Progress","Rating","Code","FileInput","ColorInput","CodeInput","Disclosure","Views","Card"],"Panel.actions":["ActionBar"],"ActionMenu.children":["Action"],"ActionMenu.primary":["Action"],"Frame.header":["AppBar"],"Frame.navigation":["Navigation"],"Frame.main":["Outlet","Group"],"Frame.aside":["Group","Section","Card","Status","Text","DetailList","Collection","Disclosure","Navigation","Custom"],"Frame.footer":["Footer"],"Frame.banner":["Status"],"AppBar.leading":["Action"],"AppBar.search":["TextInput","Action"],"AppBar.actions":["ActionBar"],"AppBar.account":["Identity","ActionMenu"],"Footer.aside":["Choice","Tag","Text"],"Outlet.loading":["Status","Progress","Text","Group"],"Custom.fallback":["Text","Media","Status","Metric","Tag","Identity","Code","Progress","Group","Card"],"Columns.children":["Section","Group","Card","Text","Metric","DetailList","Media","Status","Form","Collection","Table","Tree","Chart","Disclosure","Views","Steps","Comparison","FilterPanel","Navigation","Tag","Identity","Progress","Code","Custom"],"Split.primary":["Collection","Table","Tree"],"Split.detail":["Group","Section","Card","DetailList","Text","Form","Views","Table","Collection","Media","Code"],"Split.empty":["Status"]};var s4={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}},l4=["AppBar","Custom","Footer","Frame","Outlet"];var _v=hm,fm={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://polyxd.com/schema/0.3/ui.schema.json",title:"Polyxd UI document",description:"A just-in-time interface: a flat list of semantic components (A2UI-style adjacency list) plus the surface it belongs to. Data comes from the host via bindings; actions are declared capability intents. Generated file: edit components/*.json and schema/common.defs.json instead.",type:"object",required:["specVersion","surface","root","components"],properties:{$schema:{type:"string",description:"The schema this document follows, so editors validate and complete it: https://polyxd.com/schema/0.3/ui.schema.json"},specVersion:{type:"string",pattern:"^0\\.[123]\\.[0-9]+$"},surface:{type:"object",required:["id","title"],properties:{id:{$ref:"#/$defs/Id"},title:{type:"string",description:"Short title for the surface (page title / dialog title)"},intent:{$ref:"#/$defs/Key",description:"What the user is trying to do, as a stable key (e.g. 'money.send'); memory is organised by intent"},pattern:{type:"string",description:"Id of the pattern this surface follows, when one applies"},journey:{type:"string",description:"Id of the journey this surface is a step of, when one applies"},subtitle:{$ref:"#/$defs/DynamicString",description:"One line under the title: what this record or page is; may be bound to data"},breadcrumbs:{type:"array",maxItems:4,items:{type:"object",required:["label"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Where this surface sits, ending with its parent (the title is the last step)"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1,description:"Status of the thing this surface is about, e.g. 'Past due'"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials or a media reference for the entity this surface is about"},actions:{$ref:"#/$defs/Id",description:"ActionBar in the header: what you can do to this record"},presentation:{enum:["page","panel"],default:"page",description:"'panel' opens beside what it came from (a side sheet over a list) and is full screen on compact surfaces"},dismissible:{type:"boolean",default:!0},kind:{enum:["surface","shell"],default:"surface",description:"'shell' is the product's frame (a Frame at the root with an Outlet for screens); it is always authored. 'surface' is a screen, panel or dialog that lives inside a shell"},origin:{enum:["generated","authored"],description:"How the document came to be: written by a generator for a request, or authored by a person as a screen of the product. Both are verified the same way; the mark a renderer shows can say which"}},additionalProperties:!1},root:{$ref:"#/$defs/Id",description:"Id of the top-level component"},components:{type:"array",minItems:1,items:{$ref:"#/$defs/Component"}},data:{type:"object",description:"Host data snapshot. Supplied by the host (or a test fixture), never by the model."}},additionalProperties:!1,$defs:{Id:{type:"string",pattern:"^[A-Za-z][A-Za-z0-9_-]*$",description:"Component id, unique within the document"},Key:{type:"string",pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$",description:"Stable semantic key (e.g. 'fee', 'recipient.name'). The same thing gets the same key across generations; interface memory uses it to keep placement, order and labels consistent."},Path:{type:"string",pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$",description:"RFC 6901 JSON Pointer into host-provided data. Absolute ('/account/balance') or, inside a template, relative to the current item ('amount')."},Binding:{type:"object",required:["path"],properties:{path:{$ref:"#/$defs/Path"}},additionalProperties:!1,description:"A value read from (and, for inputs, written to) host data. Data always comes from the host; the model never invents it."},DynamicString:{oneOf:[{type:"string"},{$ref:"#/$defs/Binding"}]},DynamicNumber:{oneOf:[{type:"number"},{$ref:"#/$defs/Binding"}]},DynamicBoolean:{oneOf:[{type:"boolean"},{$ref:"#/$defs/Binding"}]},DynamicValue:{oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]},Format:{type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."},Tone:{enum:["neutral","info","success","warning","danger"]},Accessibility:{type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."},Capability:{type:"string",pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$",description:"Name of a host-registered capability (e.g. 'transfer.confirm'). The 'ui.' namespace is reserved for renderer-handled actions: ui.dismiss, ui.back, ui.next."},Action:{type:"object",required:["event"],properties:{event:{type:"object",required:["name"],properties:{name:{$ref:"#/$defs/Capability"},context:{type:"object",additionalProperties:{$ref:"#/$defs/DynamicValue"},description:"Values sent with the event, usually bindings to inputs or to the current template item"}},additionalProperties:!1}},additionalProperties:!1,description:"A declared intent. The host binds it to a handler; generated UI never runs code. Same shape as A2UI 'action.event'."},ActionSpec:{type:"object",required:["label","action"],properties:{label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},ChildList:{type:"array",items:{$ref:"#/$defs/Id"},minItems:1,description:"Ordered child component ids"},Template:{type:"object",required:["path","componentId"],properties:{path:{$ref:"#/$defs/Path",description:"Array in host data to repeat over"},componentId:{$ref:"#/$defs/Id",description:"Component rendered once per item; relative paths inside it resolve against the item"}},additionalProperties:!1,description:"Same shape as A2UI templated children"},Options:{oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"},ComponentAction:{type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},ComponentActionBar:{type:"object",description:"The set of actions for a surface or section; the renderer places it where that platform expects.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"Action component ids, in order of importance"}},additionalProperties:!1},ComponentActionMenu:{type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1},ComponentAppBar:{type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1},ComponentCard:{type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1},ComponentChart:{type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},ComponentChoice:{type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentCode:{type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1},ComponentCodeInput:{type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1},ComponentCollection:{type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1},ComponentColorInput:{type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentColumns:{type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1},ComponentComparison:{type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1},ComponentConfirm:{type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1},ComponentCustom:{type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},ComponentDateInput:{type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},ComponentDetailList:{type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1},ComponentDisclosure:{type:"object",description:"Progressive disclosure: secondary content hidden behind a toggle.",required:["id","component","summary","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Disclosure"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},summary:{$ref:"#/$defs/DynamicString",description:"Always-visible label describing what is hidden"},children:{$ref:"#/$defs/ChildList"},open:{type:"boolean",default:!1}},additionalProperties:!1},ComponentFileInput:{type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1},ComponentFilterPanel:{type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1},ComponentFooter:{type:"object",description:"The bar at the bottom of the product: link groups, the legal line, locale or status.",required:["id","component","legal"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Footer"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},groups:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["key","label","items"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},items:{type:"array",minItems:1,maxItems:12,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}}},additionalProperties:!1},description:"Columns of links, each under a heading"},legal:{$ref:"#/$defs/DynamicString",description:"The line at the very bottom: copyright, licence, company details"},aside:{$ref:"#/$defs/Id",description:"Something at the end of the legal row: a locale Choice, a status Tag, a Text"}},additionalProperties:!1},ComponentForm:{type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1},ComponentFrame:{type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1},ComponentGroup:{type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1},ComponentIdentity:{type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1},ComponentMedia:{type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1},ComponentMetric:{type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1},ComponentNavigation:{type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1},ComponentOutlet:{type:"object",description:"Where the current screen renders inside a Frame: the host fills it with a screen document or a generated surface.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Outlet"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the region for assistive tech when the screen has no title yet"},loading:{$ref:"#/$defs/Id",description:"What shows while a screen is on its way; the renderer's skeleton when absent"}},additionalProperties:!1},ComponentPanel:{type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1},ComponentProgress:{type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1},ComponentRangeInput:{type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1},ComponentRating:{type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1},ComponentSection:{type:"object",description:"A titled region of the surface that groups related content under a heading.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Section"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Heading for the section"},description:{$ref:"#/$defs/DynamicString",description:"Optional one-line explanation under the heading"},children:{$ref:"#/$defs/ChildList"}},additionalProperties:!1},ComponentSplit:{type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1},ComponentStatus:{type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1},ComponentSteps:{type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1},ComponentTable:{type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1},ComponentTag:{type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1},ComponentText:{type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1},ComponentTextInput:{type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1},ComponentToggle:{type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1},ComponentTree:{type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1},ComponentViews:{type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1},Component:{type:"object",required:["component"],discriminator:{propertyName:"component"},oneOf:[{$ref:"#/$defs/ComponentAction"},{$ref:"#/$defs/ComponentActionBar"},{$ref:"#/$defs/ComponentActionMenu"},{$ref:"#/$defs/ComponentAppBar"},{$ref:"#/$defs/ComponentCard"},{$ref:"#/$defs/ComponentChart"},{$ref:"#/$defs/ComponentChoice"},{$ref:"#/$defs/ComponentCode"},{$ref:"#/$defs/ComponentCodeInput"},{$ref:"#/$defs/ComponentCollection"},{$ref:"#/$defs/ComponentColorInput"},{$ref:"#/$defs/ComponentColumns"},{$ref:"#/$defs/ComponentComparison"},{$ref:"#/$defs/ComponentConfirm"},{$ref:"#/$defs/ComponentCustom"},{$ref:"#/$defs/ComponentDateInput"},{$ref:"#/$defs/ComponentDetailList"},{$ref:"#/$defs/ComponentDisclosure"},{$ref:"#/$defs/ComponentFileInput"},{$ref:"#/$defs/ComponentFilterPanel"},{$ref:"#/$defs/ComponentFooter"},{$ref:"#/$defs/ComponentForm"},{$ref:"#/$defs/ComponentFrame"},{$ref:"#/$defs/ComponentGroup"},{$ref:"#/$defs/ComponentIdentity"},{$ref:"#/$defs/ComponentMedia"},{$ref:"#/$defs/ComponentMetric"},{$ref:"#/$defs/ComponentNavigation"},{$ref:"#/$defs/ComponentOutlet"},{$ref:"#/$defs/ComponentPanel"},{$ref:"#/$defs/ComponentProgress"},{$ref:"#/$defs/ComponentRangeInput"},{$ref:"#/$defs/ComponentRating"},{$ref:"#/$defs/ComponentSection"},{$ref:"#/$defs/ComponentSplit"},{$ref:"#/$defs/ComponentStatus"},{$ref:"#/$defs/ComponentSteps"},{$ref:"#/$defs/ComponentTable"},{$ref:"#/$defs/ComponentTag"},{$ref:"#/$defs/ComponentText"},{$ref:"#/$defs/ComponentTextInput"},{$ref:"#/$defs/ComponentToggle"},{$ref:"#/$defs/ComponentTree"},{$ref:"#/$defs/ComponentViews"}]}}};var rc={enum:["neutral","info","success","warning","danger"]},p_=new RegExp("^0\\.[123]\\.[0-9]+$","u"),X=new RegExp("^[A-Za-z][A-Za-z0-9_-]*$","u"),xe=new RegExp("^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$","u"),Ae=Object.prototype.hasOwnProperty;var at=new RegExp("^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$","u");function O(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=O.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.path===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(n!=="path"){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.path!==void 0){let n=e.path;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return O.errors=r,s===0}O.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function k(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=k.evaluated;p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0);let n=s,d=!1,c=null,u=s;if(typeof e!="string"){let b={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[b]:r.push(b),s++}var m=u===s;m&&(d=!0,c=0);let f=s;O(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length);var m=f===s;if(m&&d)d=!1,c=[c,1];else if(m){d=!0,c=1;var h=!0}if(d)s=n,r!==null&&(n?r.length=n:r=null);else{let b={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}return k.errors=r,p.props=h,s===0}k.evaluated={dynamicProps:!0,dynamicItems:!1};var c_=new RegExp("^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$","u"),u_={oneOf:[{type:["string","number","boolean"]},{$ref:"#/$defs/Binding"}]};function cn(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=cn.evaluated;p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0);let n=s,d=!1,c=null,u=s;if(typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"){let b={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:u_.oneOf[0].type},message:"must be string,number,boolean"};r===null?r=[b]:r.push(b),s++}var m=u===s;m&&(d=!0,c=0);let f=s;O(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length);var m=f===s;if(m&&d)d=!1,c=[c,1];else if(m){d=!0,c=1;var h=!0}if(d)s=n,r!==null&&(n?r.length=n:r=null);else{let b={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}return cn.errors=r,p.props=h,s===0}cn.evaluated={dynamicProps:!0,dynamicItems:!1};function se(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=se.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.event===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"event"},message:"must have required property 'event'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(n!=="event"){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.event!==void 0){let n=e.event;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.name===void 0){let d={instancePath:t+"/event",schemaPath:"#/properties/event/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="name"||d==="context")){let c={instancePath:t+"/event",schemaPath:"#/properties/event/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.name!==void 0){let d=n.name;if(typeof d=="string"){if(!c_.test(d)){let c={instancePath:t+"/event/name",schemaPath:"#/$defs/Capability/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"},message:'must match pattern "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)+$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/event/name",schemaPath:"#/$defs/Capability/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.context!==void 0){let d=n.context;if(d&&typeof d=="object"&&!Array.isArray(d))for(let c in d)cn(d[c],{instancePath:t+"/event/context/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:d,parentDataProperty:c,rootData:i,dynamicAnchors:l})||(r=r===null?cn.errors:r.concat(cn.errors),s=r.length);else{let c={instancePath:t+"/event/context",schemaPath:"#/properties/event/properties/context/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[c]:r.push(c),s++}}}else{let d={instancePath:t+"/event",schemaPath:"#/properties/event/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return se.errors=r,s===0}se.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Av={type:"object",description:"A button that triggers a host capability.",required:["id","component","label","action"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Action"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Verb-first label saying what happens ('Send \xA320', not 'OK')"},action:{$ref:"#/$defs/Action"},emphasis:{enum:["primary","secondary","tertiary"],default:"secondary"},tone:{enum:["default","danger"],default:"default"},disabled:{$ref:"#/$defs/DynamicBoolean"},description:{$ref:"#/$defs/DynamicString",description:"A second line under the label saying what the action does, for menu-like actions"},copy:{$ref:"#/$defs/DynamicString",description:"For the renderer action ui.copy: the text put on the clipboard; otherwise the action context's 'text' is copied"},shortcut:{type:"string",pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$",description:`Keyboard shortcut that triggers the action while the surface has focus, e.g. "mod+enter" or "shift+d". 'mod' is Command on Apple platforms and Control elsewhere. The renderer shows the hint beside the label and never binds it outside the surface.`}},additionalProperties:!1},f_=new RegExp("^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$","u"),m_={type:"object",properties:{label:{$ref:"#/$defs/DynamicString",description:"Accessible name, when the visible label is absent or insufficient"},description:{$ref:"#/$defs/DynamicString"},live:{enum:["off","polite","assertive"]},hidden:{type:"boolean",description:"Hide from assistive technology (decorative only)"}},additionalProperties:!1,description:"Same fields as A2UI v1.0 'accessibility'. Components already carry roles and names from their semantics; use this only to add to them."};function q(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=q.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){for(let n in e)if(!(n==="label"||n==="description"||n==="live"||n==="hidden")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.description!==void 0&&(k(e.description,{instancePath:t+"/description",parentData:e,parentDataProperty:"description",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.live!==void 0){let n=e.live;if(!(n==="off"||n==="polite"||n==="assertive")){let d={instancePath:t+"/live",schemaPath:"#/properties/live/enum",keyword:"enum",params:{allowedValues:m_.properties.live.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.hidden!==void 0&&typeof e.hidden!="boolean"){let n={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return q.errors=r,s===0}q.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function I(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=I.evaluated;p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0);let n=s,d=!1,c=null,u=s;if(typeof e!="boolean"){let b={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[b]:r.push(b),s++}var m=u===s;m&&(d=!0,c=0);let f=s;O(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length);var m=f===s;if(m&&d)d=!1,c=[c,1];else if(m){d=!0,c=1;var h=!0}if(d)s=n,r!==null&&(n?r.length=n:r=null);else{let b={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}return I.errors=r,p.props=h,s===0}I.evaluated={dynamicProps:!0,dynamicItems:!1};function Cl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Cl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.action===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Av.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Action"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Action"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length)),e.emphasis!==void 0){let n=e.emphasis;if(!(n==="primary"||n==="secondary"||n==="tertiary")){let d={instancePath:t+"/emphasis",schemaPath:"#/properties/emphasis/enum",keyword:"enum",params:{allowedValues:Av.properties.emphasis.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.tone!==void 0){let n=e.tone;if(!(n==="default"||n==="danger")){let d={instancePath:t+"/tone",schemaPath:"#/properties/tone/enum",keyword:"enum",params:{allowedValues:Av.properties.tone.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.disabled!==void 0&&(I(e.disabled,{instancePath:t+"/disabled",parentData:e,parentDataProperty:"disabled",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.description!==void 0&&(k(e.description,{instancePath:t+"/description",parentData:e,parentDataProperty:"description",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.copy!==void 0&&(k(e.copy,{instancePath:t+"/copy",parentData:e,parentDataProperty:"copy",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.shortcut!==void 0){let n=e.shortcut;if(typeof n=="string"){if(!f_.test(n)){let d={instancePath:t+"/shortcut",schemaPath:"#/properties/shortcut/pattern",keyword:"pattern",params:{pattern:"^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"},message:'must match pattern "^((mod|ctrl|alt|shift)\\+){0,3}([a-z0-9]|enter|escape|space|tab|backspace|delete|arrowup|arrowdown|arrowleft|arrowright|home|end|f[1-9]|f1[0-2]|slash|comma|period)$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/shortcut",schemaPath:"#/properties/shortcut/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Cl.errors=r,s===0}Cl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Be(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Be.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),Array.isArray(e)){if(e.length<1){let d={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[d]:r.push(d),s++}let n=e.length;for(let d=0;d<n;d++){let c=e[d];if(typeof c=="string"){if(!X.test(c)){let u={instancePath:t+"/"+d,schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[u]:r.push(u),s++}}else{let u={instancePath:t+"/"+d,schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[n]:r.push(n),s++}return Be.errors=r,s===0}Be.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function zl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=zl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="children")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="ActionBar"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionBar"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return zl.errors=r,s===0}zl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var d4={type:"object",description:"Secondary actions behind one control: an overflow menu, a dropdown, a split button or a context menu.",required:["id","component","label","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ActionMenu"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The control's name: 'More actions' for an overflow, or the verb for a dropdown ('Export')"},kind:{enum:["overflow","dropdown","split","context"],default:"overflow",description:"'overflow' is the '\u2026' control; 'dropdown' is a labelled button that opens the menu; 'split' pairs a primary action with a menu of alternatives; 'context' opens on right-click or long-press of the component it belongs to"},children:{$ref:"#/$defs/ChildList",description:"The Actions in the menu, in order; a danger-toned one goes last and is separated"},primary:{$ref:"#/$defs/Id",description:"For 'split': the Action that runs when the main part is pressed"}},additionalProperties:!1};function Al(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Al.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(d4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="ActionMenu"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ActionMenu"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="overflow"||n==="dropdown"||n==="split"||n==="context")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:d4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.primary!==void 0){let n=e.primary;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Al.errors=r,s===0}Al.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var p4={type:"object",description:"The bar at the top of the product: brand or title, a leading action, search, trailing actions and the account.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"AppBar"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"The product's name, or the current screen's title on compact layouts"},brand:{$ref:"#/$defs/DynamicString",description:"A media reference for the logo, or initials; rendered before the title"},leading:{$ref:"#/$defs/Id",description:"An Action at the start: back, or the menu button the renderer adds itself when the navigation is a drawer"},search:{$ref:"#/$defs/Id",description:"A TextInput of kind 'search' (or a command palette opener: an Action with a shortcut)"},actions:{$ref:"#/$defs/Id",description:"An ActionBar at the end: notifications, help, the primary action of the product"},account:{$ref:"#/$defs/Id",description:"An Identity (the signed-in person) or an ActionMenu opened from it"},variant:{enum:["standard","large","compact"],default:"standard",description:"'large' puts the title under the bar on its own line on wide screens; 'compact' is 48px for dense tools"},sticky:{type:"boolean",default:!0}},additionalProperties:!1};function Rl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Rl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(p4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="AppBar"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"AppBar"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.brand!==void 0&&(k(e.brand,{instancePath:t+"/brand",parentData:e,parentDataProperty:"brand",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.leading!==void 0){let n=e.leading;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/leading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/leading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.search!==void 0){let n=e.search;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.actions!==void 0){let n=e.actions;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.account!==void 0){let n=e.account;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/account",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/account",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.variant!==void 0){let n=e.variant;if(!(n==="standard"||n==="large"||n==="compact")){let d={instancePath:t+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:p4.properties.variant.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.sticky!==void 0&&typeof e.sticky!="boolean"){let n={instancePath:t+"/sticky",schemaPath:"#/properties/sticky/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Rl.errors=r,s===0}Rl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var x_={type:"object",description:"One self-contained entity (an account, an order, a place), optionally actionable as a whole.",required:["id","component","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Card"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Name of the entity"},subtitle:{$ref:"#/$defs/DynamicString"},media:{$ref:"#/$defs/Id",description:"Optional Media component id"},badge:{type:"object",required:["text"],properties:{text:{$ref:"#/$defs/DynamicString"},tone:{$ref:"#/$defs/Tone"}},additionalProperties:!1},children:{$ref:"#/$defs/ChildList"},action:{$ref:"#/$defs/Action",description:"Activating the card as a whole (e.g. open details)"},progress:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding",description:"Number from 0 to 1 in host data"},label:{$ref:"#/$defs/DynamicString",description:"Optional text, e.g. '120 of 320 pages'; the percentage is shown otherwise"}},additionalProperties:!1,description:"Progress through the entity (reading, a course, a goal)"}},additionalProperties:!1};function Nl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Nl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(x_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Card"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Card"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.subtitle!==void 0&&(k(e.subtitle,{instancePath:t+"/subtitle",parentData:e,parentDataProperty:"subtitle",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.media!==void 0){let n=e.media;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/media",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/media",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.badge!==void 0){let n=e.badge;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.text===void 0){let d={instancePath:t+"/badge",schemaPath:"#/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="text"||d==="tone")){let c={instancePath:t+"/badge",schemaPath:"#/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.text!==void 0&&(k(n.text,{instancePath:t+"/badge/text",parentData:n,parentDataProperty:"text",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.tone!==void 0){let d=n.tone;if(!(d==="neutral"||d==="info"||d==="success"||d==="warning"||d==="danger")){let c={instancePath:t+"/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:rc.enum},message:"must be equal to one of the allowed values"};r===null?r=[c]:r.push(c),s++}}}else{let d={instancePath:t+"/badge",schemaPath:"#/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length)),e.progress!==void 0){let n=e.progress;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.value===void 0){let d={instancePath:t+"/progress",schemaPath:"#/properties/progress/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="value"||d==="label")){let c={instancePath:t+"/progress",schemaPath:"#/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.value!==void 0&&(O(n.value,{instancePath:t+"/progress/value",parentData:n,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.label!==void 0&&(k(n.label,{instancePath:t+"/progress/label",parentData:n,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let d={instancePath:t+"/progress",schemaPath:"#/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Nl.errors=r,s===0}Nl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var c4={type:"object",description:"A visual summary of data, always paired with a text summary.",required:["id","component","intent","data","title","summary","x","series"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Chart"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},intent:{enum:["trend","comparison","composition","distribution","relationship","flow","hierarchy","matrix","range"],description:"What the chart should communicate; the renderer picks the chart type. 'relationship' between two measures; 'flow' of amounts from each x value into the series; 'hierarchy' of parts by size; 'matrix' of x values against series; 'range' from the first series to the second"},data:{$ref:"#/$defs/Binding",description:"Array of data points in host data"},title:{$ref:"#/$defs/DynamicString"},summary:{$ref:"#/$defs/DynamicString",description:"Text alternative stating the takeaway (required)"},x:{type:"object",required:["path","label"],properties:{path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1},series:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["path","label"],properties:{key:{$ref:"#/$defs/Key"},path:{$ref:"#/$defs/Path"},label:{$ref:"#/$defs/DynamicString"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1}}},additionalProperties:!1},g_={type:"object",required:["type"],properties:{type:{enum:["text","number","currency","percent","date","time","datetime","relativeTime","duration","color","bytes"]},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code, required for type 'currency'"},precision:{type:"integer",minimum:0,maximum:6}},additionalProperties:!1,description:"How to present a value. The renderer localizes it; the model never pre-formats numbers or dates into strings."};function Me(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Me.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.type===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="type"||n==="currency"||n==="precision")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.type!==void 0){let n=e.type;if(!(n==="text"||n==="number"||n==="currency"||n==="percent"||n==="date"||n==="time"||n==="datetime"||n==="relativeTime"||n==="duration"||n==="color"||n==="bytes")){let d={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:g_.properties.type.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.currency!==void 0&&(k(e.currency,{instancePath:t+"/currency",parentData:e,parentDataProperty:"currency",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.precision!==void 0){let n=e.precision;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){let d={instancePath:t+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[d]:r.push(d),s++}if(typeof n=="number"){if(n>6||isNaN(n)){let d={instancePath:t+"/precision",schemaPath:"#/properties/precision/maximum",keyword:"maximum",params:{comparison:"<=",limit:6},message:"must be <= 6"};r===null?r=[d]:r.push(d),s++}if(n<0||isNaN(n)){let d={instancePath:t+"/precision",schemaPath:"#/properties/precision/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[d]:r.push(d),s++}}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Me.errors=r,s===0}Me.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Dl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Dl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.intent===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"intent"},message:"must have required property 'intent'"};r===null?r=[n]:r.push(n),s++}if(e.data===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"data"},message:"must have required property 'data'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}if(e.summary===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};r===null?r=[n]:r.push(n),s++}if(e.x===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"x"},message:"must have required property 'x'"};r===null?r=[n]:r.push(n),s++}if(e.series===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"series"},message:"must have required property 'series'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(c4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Chart"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Chart"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.intent!==void 0){let n=e.intent;if(!(n==="trend"||n==="comparison"||n==="composition"||n==="distribution"||n==="relationship"||n==="flow"||n==="hierarchy"||n==="matrix"||n==="range")){let d={instancePath:t+"/intent",schemaPath:"#/properties/intent/enum",keyword:"enum",params:{allowedValues:c4.properties.intent.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.data!==void 0&&(O(e.data,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.summary!==void 0&&(k(e.summary,{instancePath:t+"/summary",parentData:e,parentDataProperty:"summary",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.x!==void 0){let n=e.x;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.path===void 0){let d={instancePath:t+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[d]:r.push(d),s++}if(n.label===void 0){let d={instancePath:t+"/x",schemaPath:"#/properties/x/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="path"||d==="label"||d==="format")){let c={instancePath:t+"/x",schemaPath:"#/properties/x/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.path!==void 0){let d=n.path;if(typeof d=="string"){if(!at.test(d)){let c={instancePath:t+"/x/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/x/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}n.label!==void 0&&(k(n.label,{instancePath:t+"/x/label",parentData:n,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.format!==void 0&&(Me(n.format,{instancePath:t+"/x/format",parentData:n,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length))}else{let d={instancePath:t+"/x",schemaPath:"#/properties/x/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.series!==void 0){let n=e.series;if(Array.isArray(n)){if(n.length>6){let c={instancePath:t+"/series",schemaPath:"#/properties/series/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};r===null?r=[c]:r.push(c),s++}if(n.length<1){let c={instancePath:t+"/series",schemaPath:"#/properties/series/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.path===void 0){let f={instancePath:t+"/series/"+c,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/series/"+c,schemaPath:"#/properties/series/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="path"||f==="label"||f==="format")){let m={instancePath:t+"/series/"+c,schemaPath:"#/properties/series/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/series/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/series/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.path!==void 0){let f=u.path;if(typeof f=="string"){if(!at.test(f)){let m={instancePath:t+"/series/"+c+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/series/"+c+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}u.label!==void 0&&(k(u.label,{instancePath:t+"/series/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.format!==void 0&&(Me(u.format,{instancePath:t+"/series/"+c+"/format",parentData:u,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length))}else{let f={instancePath:t+"/series/"+c,schemaPath:"#/properties/series/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/series",schemaPath:"#/properties/series/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Dl.errors=r,s===0}Dl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var u4={type:"object",description:"Pick one or several options from a known set. The renderer chooses the control.",required:["id","component","label","options","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Choice"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},options:{$ref:"#/$defs/Options"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},mode:{enum:["single","multiple"],default:"single"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1},h_={oneOf:[{type:"array",minItems:2,items:{type:"object",required:["value","label"],properties:{value:{type:["string","number","boolean"]},label:{$ref:"#/$defs/DynamicString"},description:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1}},{type:"object",required:["path","valuePath","labelPath"],properties:{path:{$ref:"#/$defs/Path"},valuePath:{$ref:"#/$defs/Path"},labelPath:{$ref:"#/$defs/Path"},descriptionPath:{$ref:"#/$defs/Path"},avatarPath:{$ref:"#/$defs/Path",description:"Initials or a media reference per option: renders people and places with a face"},imagePath:{$ref:"#/$defs/Path"},recentPath:{$ref:"#/$defs/Path",description:"Boolean per option: shown in a 'Recent' row above the full list"}},additionalProperties:!1}],description:"Either a fixed list, or options read from host data"};function Ea(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ea.evaluated;p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0);let n=s,d=!1,c=null,u=s;if(Array.isArray(e)){if(e.length<2){let g={instancePath:t,schemaPath:"#/oneOf/0/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};r===null?r=[g]:r.push(g),s++}let x=e.length;for(let g=0;g<x;g++){let y=e[g];if(y&&typeof y=="object"&&!Array.isArray(y)){if(y.value===void 0){let v={instancePath:t+"/"+g,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[v]:r.push(v),s++}if(y.label===void 0){let v={instancePath:t+"/"+g,schemaPath:"#/oneOf/0/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[v]:r.push(v),s++}for(let v in y)if(!(v==="value"||v==="label"||v==="description")){let S={instancePath:t+"/"+g,schemaPath:"#/oneOf/0/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"};r===null?r=[S]:r.push(S),s++}if(y.value!==void 0){let v=y.value;if(typeof v!="string"&&typeof v!="number"&&typeof v!="boolean"){let S={instancePath:t+"/"+g+"/value",schemaPath:"#/oneOf/0/items/properties/value/type",keyword:"type",params:{type:h_.oneOf[0].items.properties.value.type},message:"must be string,number,boolean"};r===null?r=[S]:r.push(S),s++}}y.label!==void 0&&(k(y.label,{instancePath:t+"/"+g+"/label",parentData:y,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),y.description!==void 0&&(k(y.description,{instancePath:t+"/"+g+"/description",parentData:y,parentDataProperty:"description",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let v={instancePath:t+"/"+g,schemaPath:"#/oneOf/0/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[v]:r.push(v),s++}}}else{let x={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[x]:r.push(x),s++}var h=u===s;if(h){d=!0,c=0;var f=!0}let m=s;if(e&&typeof e=="object"&&!Array.isArray(e)){if(e.path===void 0){let x={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[x]:r.push(x),s++}if(e.valuePath===void 0){let x={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"valuePath"},message:"must have required property 'valuePath'"};r===null?r=[x]:r.push(x),s++}if(e.labelPath===void 0){let x={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};r===null?r=[x]:r.push(x),s++}for(let x in e)if(!(x==="path"||x==="valuePath"||x==="labelPath"||x==="descriptionPath"||x==="avatarPath"||x==="imagePath"||x==="recentPath")){let g={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};r===null?r=[g]:r.push(g),s++}if(e.path!==void 0){let x=e.path;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.valuePath!==void 0){let x=e.valuePath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.labelPath!==void 0){let x=e.labelPath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.descriptionPath!==void 0){let x=e.descriptionPath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/descriptionPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/descriptionPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.avatarPath!==void 0){let x=e.avatarPath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.imagePath!==void 0){let x=e.imagePath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}if(e.recentPath!==void 0){let x=e.recentPath;if(typeof x=="string"){if(!at.test(x)){let g={instancePath:t+"/recentPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/recentPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}}else{let x={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[x]:r.push(x),s++}var h=m===s;if(h&&d)d=!1,c=[c,1];else if(h){d=!0,c=1;var b=!0}if(d)s=n,r!==null&&(n?r.length=n:r=null);else{let x={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[x]:r.push(x),s++}return Ea.errors=r,p.props=b,p.items=f,s===0}Ea.evaluated={dynamicProps:!0,dynamicItems:!0};function Tl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Tl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.options===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"options"},message:"must have required property 'options'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(u4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Choice"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Choice"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.options!==void 0&&(Ea(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:i,dynamicAnchors:l})||(r=r===null?Ea.errors:r.concat(Ea.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.mode!==void 0){let n=e.mode;if(!(n==="single"||n==="multiple")){let d={instancePath:t+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:u4.properties.mode.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&typeof e.required!="boolean"){let n={instancePath:t+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Tl.errors=r,s===0}Tl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var y_={type:"object",description:"Code, a command or preformatted text, shown as written and copyable.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Code"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString",description:"The code itself, usually bound to host data (an API key, a command, a snippet)"},label:{$ref:"#/$defs/DynamicString",description:"What it is, shown above: 'Install', 'Your API key'"},language:{type:"string",description:"A language name for highlighting, when the renderer has it: 'bash', 'json', 'ts'"},copyable:{type:"boolean",default:!0,description:"A Copy control beside it"},wrap:{type:"boolean",default:!1,description:"Wrap long lines instead of scrolling sideways"},secret:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Masked until revealed: a key shown once"}},additionalProperties:!1};function El(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=El.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.text===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(y_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Code"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Code"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.text!==void 0&&(k(e.text,{instancePath:t+"/text",parentData:e,parentDataProperty:"text",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.language!==void 0&&typeof e.language!="string"){let n={instancePath:t+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[n]:r.push(n),s++}if(e.copyable!==void 0&&typeof e.copyable!="boolean"){let n={instancePath:t+"/copyable",schemaPath:"#/properties/copyable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.wrap!==void 0&&typeof e.wrap!="boolean"){let n={instancePath:t+"/wrap",schemaPath:"#/properties/wrap/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}e.secret!==void 0&&(I(e.secret,{instancePath:t+"/secret",parentData:e,parentDataProperty:"secret",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return El.errors=r,s===0}El.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var f4={type:"object",description:"A one-time code or PIN, typed into one box per character.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"CodeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"'Enter the code we emailed you'"},value:{$ref:"#/$defs/Binding",description:"The code so far in host data, as a string"},length:{type:"integer",minimum:4,maximum:12,default:6},kind:{enum:["numeric","alphanumeric"],default:"numeric"},help:{$ref:"#/$defs/DynamicString",description:"Where the code came from and how long it lasts"},required:{$ref:"#/$defs/DynamicBoolean",default:!0},action:{$ref:"#/$defs/Action",description:"Runs when every character is in, so the person needn't press a button; context binds to value"}},additionalProperties:!1};function Il(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Il.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(f4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="CodeInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"CodeInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.length!==void 0){let n=e.length;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){let d={instancePath:t+"/length",schemaPath:"#/properties/length/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[d]:r.push(d),s++}if(typeof n=="number"){if(n>12||isNaN(n)){let d={instancePath:t+"/length",schemaPath:"#/properties/length/maximum",keyword:"maximum",params:{comparison:"<=",limit:12},message:"must be <= 12"};r===null?r=[d]:r.push(d),s++}if(n<4||isNaN(n)){let d={instancePath:t+"/length",schemaPath:"#/properties/length/minimum",keyword:"minimum",params:{comparison:">=",limit:4},message:"must be >= 4"};r===null?r=[d]:r.push(d),s++}}}if(e.kind!==void 0){let n=e.kind;if(!(n==="numeric"||n==="alphanumeric")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:f4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&(I(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Il.errors=r,s===0}Il.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Rv={type:"object",description:"A list of items from host data, each rendered with the same template.",required:["id","component","items","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Collection"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Template"},label:{$ref:"#/$defs/DynamicString",description:"What the list contains, e.g. 'Recent payments'"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no items"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected item value(s) in host data when selection is not 'none'"},layout:{enum:["auto","list","grid","timeline","carousel","calendar"],default:"auto",description:"'grid' for visual items (products, books); 'list' for rows; 'timeline' for dated activity; 'carousel' for a row people page through; 'calendar' places items on a month grid by 'datePath'; 'auto' lets the renderer choose from the item template"},datePath:{$ref:"#/$defs/Path",description:"For 'calendar': relative path in each item to the ISO date that places it"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of items, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown while items are selected (selection 'multiple')"},reorderable:{type:"boolean",default:!1,description:"People can drag items, or move them with the keyboard, into a new order"},order:{$ref:"#/$defs/Binding",description:"Item values (ids) in the order people put them, written when reorderable"}},additionalProperties:!1};function Ml(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ml.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.path===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[n]:r.push(n),s++}if(e.componentId===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"componentId"},message:"must have required property 'componentId'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="path"||n==="componentId")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.path!==void 0){let n=e.path;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.componentId!==void 0){let n=e.componentId;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/componentId",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/componentId",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Ml.errors=r,s===0}Ml.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function _l(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=_l.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.items===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Rv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Collection"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Collection"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.items!==void 0&&(Ml(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i,dynamicAnchors:l})||(r=r===null?Ml.errors:r.concat(Ml.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.empty!==void 0){let n=e.empty;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.selection!==void 0){let n=e.selection;if(!(n==="none"||n==="single"||n==="multiple")){let d={instancePath:t+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:Rv.properties.selection.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.selected!==void 0&&(O(e.selected,{instancePath:t+"/selected",parentData:e,parentDataProperty:"selected",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.layout!==void 0){let n=e.layout;if(!(n==="auto"||n==="list"||n==="grid"||n==="timeline"||n==="carousel"||n==="calendar")){let d={instancePath:t+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Rv.properties.layout.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.datePath!==void 0){let n=e.datePath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/datePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/datePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.page!==void 0){let n=e.page;if(n&&typeof n=="object"&&!Array.isArray(n)){for(let d in n)if(!(d==="index"||d==="size"||d==="total"||d==="action")){let c={instancePath:t+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.index!==void 0&&(O(n.index,{instancePath:t+"/page/index",parentData:n,parentDataProperty:"index",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.size!==void 0&&(O(n.size,{instancePath:t+"/page/size",parentData:n,parentDataProperty:"size",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.total!==void 0&&(O(n.total,{instancePath:t+"/page/total",parentData:n,parentDataProperty:"total",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.action!==void 0&&(se(n.action,{instancePath:t+"/page/action",parentData:n,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let d={instancePath:t+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.bulkActions!==void 0){let n=e.bulkActions;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.reorderable!==void 0&&typeof e.reorderable!="boolean"){let n={instancePath:t+"/reorderable",schemaPath:"#/properties/reorderable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}e.order!==void 0&&(O(e.order,{instancePath:t+"/order",parentData:e,parentDataProperty:"order",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return _l.errors=r,s===0}_l.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var m4={type:"object",description:"Pick a colour: from swatches the host offers, or any colour.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"ColorInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The colour in host data, as CSS text in the chosen format"},swatches:{$ref:"#/$defs/Options",description:"Named colours to pick from (value is the colour, label its name); without them the full picker shows"},format:{enum:["hex","rgb","hsl"],default:"hex"},alpha:{type:"boolean",default:!1,description:"Let the person set opacity too"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function Ol(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ol.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(m4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="ColorInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"ColorInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.swatches!==void 0&&(Ea(e.swatches,{instancePath:t+"/swatches",parentData:e,parentDataProperty:"swatches",rootData:i,dynamicAnchors:l})||(r=r===null?Ea.errors:r.concat(Ea.errors),s=r.length)),e.format!==void 0){let n=e.format;if(!(n==="hex"||n==="rgb"||n==="hsl")){let d={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:m4.properties.format.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.alpha!==void 0&&typeof e.alpha!="boolean"){let n={instancePath:t+"/alpha",schemaPath:"#/properties/alpha/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&(I(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Ol.errors=r,s===0}Ol.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var mm={type:"object",description:"Side-by-side columns that collapse to a stack on compact layouts: a main column with a narrower one beside it, or equal halves.",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Columns"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList",description:"One component per column, in reading order"},layout:{enum:["two-thirds","one-third","halves","thirds","sidebar-start","sidebar-end"],default:"two-thirds",description:"'two-thirds' is a wide first column (GOV.UK's default); 'one-third' the reverse; 'halves' and 'thirds' equal; 'sidebar-*' a fixed 18rem column at that edge"},collapse:{enum:["compact","medium","never"],default:"compact",description:"The width below which the columns stack"},align:{enum:["start","center","stretch"],default:"stretch"}},additionalProperties:!1};function ql(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ql.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(mm.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Columns"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Columns"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.layout!==void 0){let n=e.layout;if(!(n==="two-thirds"||n==="one-third"||n==="halves"||n==="thirds"||n==="sidebar-start"||n==="sidebar-end")){let d={instancePath:t+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:mm.properties.layout.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.collapse!==void 0){let n=e.collapse;if(!(n==="compact"||n==="medium"||n==="never")){let d={instancePath:t+"/collapse",schemaPath:"#/properties/collapse/enum",keyword:"enum",params:{allowedValues:mm.properties.collapse.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.align!==void 0){let n=e.align;if(!(n==="start"||n==="center"||n==="stretch")){let d={instancePath:t+"/align",schemaPath:"#/properties/align/enum",keyword:"enum",params:{allowedValues:mm.properties.align.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return ql.errors=r,s===0}ql.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var x4={type:"object",description:"Compare a few options across the same attributes, and choose one.",required:["id","component","items","itemTitle","attributes"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Comparison"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{$ref:"#/$defs/Binding",description:"Array of options in host data (2\u20134 recommended)"},itemTitle:{$ref:"#/$defs/Path",description:"Relative path to each item's name"},attributes:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path"},format:{$ref:"#/$defs/Format"},better:{enum:["higher","lower","none"],default:"none"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups related attributes (e.g. 'Storage', 'Support')"}},additionalProperties:!1}},choose:{$ref:"#/$defs/ActionSpec",description:"Action per item; context bindings resolve against the item"},recommended:{$ref:"#/$defs/DynamicString",description:"Optional value of the recommended item's title, with a reason in 'summary'"},summary:{$ref:"#/$defs/DynamicString"},recommendedReason:{$ref:"#/$defs/DynamicString",description:"Why the recommended item fits, shown on its badge (one short sentence)"}},additionalProperties:!1};function Tt(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Tt.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.action===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="label"||n==="action")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Tt.errors=r,s===0}Tt.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function jl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=jl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.items===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[n]:r.push(n),s++}if(e.itemTitle===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"itemTitle"},message:"must have required property 'itemTitle'"};r===null?r=[n]:r.push(n),s++}if(e.attributes===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"attributes"},message:"must have required property 'attributes'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(x4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Comparison"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Comparison"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.items!==void 0&&(O(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.itemTitle!==void 0){let n=e.itemTitle;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/itemTitle",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/itemTitle",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.attributes!==void 0){let n=e.attributes;if(Array.isArray(n)){if(n.length>8){let c={instancePath:t+"/attributes",schemaPath:"#/properties/attributes/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};r===null?r=[c]:r.push(c),s++}if(n.length<1){let c={instancePath:t+"/attributes",schemaPath:"#/properties/attributes/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/attributes/"+c,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/attributes/"+c,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.path===void 0){let f={instancePath:t+"/attributes/"+c,schemaPath:"#/properties/attributes/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="path"||f==="format"||f==="better"||f==="group")){let m={instancePath:t+"/attributes/"+c,schemaPath:"#/properties/attributes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/attributes/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/attributes/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/attributes/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.path!==void 0){let f=u.path;if(typeof f=="string"){if(!at.test(f)){let m={instancePath:t+"/attributes/"+c+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/attributes/"+c+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.format!==void 0&&(Me(u.format,{instancePath:t+"/attributes/"+c+"/format",parentData:u,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),u.better!==void 0){let f=u.better;if(!(f==="higher"||f==="lower"||f==="none")){let m={instancePath:t+"/attributes/"+c+"/better",schemaPath:"#/properties/attributes/items/properties/better/enum",keyword:"enum",params:{allowedValues:x4.properties.attributes.items.properties.better.enum},message:"must be equal to one of the allowed values"};r===null?r=[m]:r.push(m),s++}}u.group!==void 0&&(k(u.group,{instancePath:t+"/attributes/"+c+"/group",parentData:u,parentDataProperty:"group",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let f={instancePath:t+"/attributes/"+c,schemaPath:"#/properties/attributes/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}e.choose!==void 0&&(Tt(e.choose,{instancePath:t+"/choose",parentData:e,parentDataProperty:"choose",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length)),e.recommended!==void 0&&(k(e.recommended,{instancePath:t+"/recommended",parentData:e,parentDataProperty:"recommended",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.summary!==void 0&&(k(e.summary,{instancePath:t+"/summary",parentData:e,parentDataProperty:"summary",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.recommendedReason!==void 0&&(k(e.recommendedReason,{instancePath:t+"/recommendedReason",parentData:e,parentDataProperty:"recommendedReason",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return jl.errors=r,s===0}jl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Nv={type:"object",description:"Asks the user to confirm a consequential or destructive action, showing what will happen.",required:["id","component","title","severity","confirm"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Confirm"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},title:{$ref:"#/$defs/DynamicString",description:"Question naming the action ('Send \xA3250 to Alex?')"},message:{$ref:"#/$defs/DynamicString"},consequence:{$ref:"#/$defs/DynamicString",description:"What happens and whether it can be undone"},summary:{$ref:"#/$defs/Id",description:"Optional DetailList summarising what is being confirmed"},severity:{enum:["consequential","destructive"]},confirm:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Defaults to 'Cancel' \u2192 ui.dismiss"},typeToConfirm:{$ref:"#/$defs/DynamicString",description:"Text the user must type before confirming (for irreversible, high-impact actions)"},amount:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"}},additionalProperties:!1,description:"The amount being committed, shown large at the top"},subject:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},subtitle:{$ref:"#/$defs/DynamicString"},avatar:{$ref:"#/$defs/DynamicString",description:"Initials, or a media reference in host data"}},additionalProperties:!1,description:"Who or what the action is for, shown with a face or picture"},consequences:{type:"array",minItems:1,maxItems:6,items:{type:"object",required:["title"],properties:{title:{$ref:"#/$defs/DynamicString"},detail:{$ref:"#/$defs/DynamicString"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield"]}},additionalProperties:!1},description:"What will happen, as a short list (for destructive actions)"}},additionalProperties:!1};function Bl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Bl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}if(e.severity===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"severity"},message:"must have required property 'severity'"};r===null?r=[n]:r.push(n),s++}if(e.confirm===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"confirm"},message:"must have required property 'confirm'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Nv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Confirm"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Confirm"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.message!==void 0&&(k(e.message,{instancePath:t+"/message",parentData:e,parentDataProperty:"message",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.consequence!==void 0&&(k(e.consequence,{instancePath:t+"/consequence",parentData:e,parentDataProperty:"consequence",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.summary!==void 0){let n=e.summary;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/summary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/summary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.severity!==void 0){let n=e.severity;if(!(n==="consequential"||n==="destructive")){let d={instancePath:t+"/severity",schemaPath:"#/properties/severity/enum",keyword:"enum",params:{allowedValues:Nv.properties.severity.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.confirm!==void 0&&(Tt(e.confirm,{instancePath:t+"/confirm",parentData:e,parentDataProperty:"confirm",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length)),e.cancel!==void 0&&(Tt(e.cancel,{instancePath:t+"/cancel",parentData:e,parentDataProperty:"cancel",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length)),e.typeToConfirm!==void 0&&(k(e.typeToConfirm,{instancePath:t+"/typeToConfirm",parentData:e,parentDataProperty:"typeToConfirm",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.amount!==void 0){let n=e.amount;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.value===void 0){let d={instancePath:t+"/amount",schemaPath:"#/properties/amount/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="value"||d==="format")){let c={instancePath:t+"/amount",schemaPath:"#/properties/amount/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.value!==void 0&&(O(n.value,{instancePath:t+"/amount/value",parentData:n,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.format!==void 0&&(Me(n.format,{instancePath:t+"/amount/format",parentData:n,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length))}else{let d={instancePath:t+"/amount",schemaPath:"#/properties/amount/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.subject!==void 0){let n=e.subject;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.title===void 0){let d={instancePath:t+"/subject",schemaPath:"#/properties/subject/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="title"||d==="subtitle"||d==="avatar")){let c={instancePath:t+"/subject",schemaPath:"#/properties/subject/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.title!==void 0&&(k(n.title,{instancePath:t+"/subject/title",parentData:n,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.subtitle!==void 0&&(k(n.subtitle,{instancePath:t+"/subject/subtitle",parentData:n,parentDataProperty:"subtitle",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.avatar!==void 0&&(k(n.avatar,{instancePath:t+"/subject/avatar",parentData:n,parentDataProperty:"avatar",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let d={instancePath:t+"/subject",schemaPath:"#/properties/subject/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.consequences!==void 0){let n=e.consequences;if(Array.isArray(n)){if(n.length>6){let c={instancePath:t+"/consequences",schemaPath:"#/properties/consequences/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};r===null?r=[c]:r.push(c),s++}if(n.length<1){let c={instancePath:t+"/consequences",schemaPath:"#/properties/consequences/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.title===void 0){let f={instancePath:t+"/consequences/"+c,schemaPath:"#/properties/consequences/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="title"||f==="detail"||f==="icon")){let m={instancePath:t+"/consequences/"+c,schemaPath:"#/properties/consequences/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.title!==void 0&&(k(u.title,{instancePath:t+"/consequences/"+c+"/title",parentData:u,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.detail!==void 0&&(k(u.detail,{instancePath:t+"/consequences/"+c+"/detail",parentData:u,parentDataProperty:"detail",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.icon!==void 0){let f=u.icon;if(!(f==="lock"||f==="trash"||f==="clock"||f==="tag"||f==="info"||f==="alert"||f==="mail"||f==="shield")){let m={instancePath:t+"/consequences/"+c+"/icon",schemaPath:"#/properties/consequences/items/properties/icon/enum",keyword:"enum",params:{allowedValues:Nv.properties.consequences.items.properties.icon.enum},message:"must be equal to one of the allowed values"};r===null?r=[m]:r.push(m),s++}}}else{let f={instancePath:t+"/consequences/"+c,schemaPath:"#/properties/consequences/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/consequences",schemaPath:"#/properties/consequences/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Bl.errors=r,s===0}Bl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var b_={type:"object",description:"A slot for a component the host implements itself: a logo, a brand moment, a bespoke widget. The document names it and gives it props; the product renders it, and a fallback stands in when it can't.",required:["id","component","name","fallback"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Custom"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{type:"string",pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$",description:"The host's name for the component, namespaced: 'brand.logo', 'store.map'"},props:{type:"object",description:"What the host component takes; values may be bindings",additionalProperties:!0},fallback:{$ref:"#/$defs/Id",description:"What renders when the host has no component of that name: a Text, a Media, a Status. Required, so the document stands on its own"},label:{$ref:"#/$defs/DynamicString",description:"An accessible name for the slot when the host component is decorative or complex"}},additionalProperties:!1},v_=new RegExp("^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$","u");function Hl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Hl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.name===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[n]:r.push(n),s++}if(e.fallback===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"fallback"},message:"must have required property 'fallback'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(b_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Custom"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Custom"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.name!==void 0){let n=e.name;if(typeof n=="string"){if(!v_.test(n)){let d={instancePath:t+"/name",schemaPath:"#/properties/name/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"},message:'must match pattern "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.props!==void 0){let n=e.props;if(!(n&&typeof n=="object"&&!Array.isArray(n))){let d={instancePath:t+"/props",schemaPath:"#/properties/props/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.fallback!==void 0){let n=e.fallback;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/fallback",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/fallback",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Hl.errors=r,s===0}Hl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var g4={type:"object",description:"A date, time, date-time or date range.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DateInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"ISO 8601 value(s) in host data"},kind:{enum:["date","time","datetime","dateRange","month","year"],default:"date",description:"'month' stores YYYY-MM and 'year' stores YYYY"},multiple:{type:"boolean",default:!1,description:"Several dates rather than one; the value is a list"},min:{$ref:"#/$defs/DynamicString"},max:{$ref:"#/$defs/DynamicString"},help:{$ref:"#/$defs/DynamicString"},required:{type:"boolean",default:!1}},additionalProperties:!1};function Ul(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ul.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(g4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="DateInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DateInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="date"||n==="time"||n==="datetime"||n==="dateRange"||n==="month"||n==="year")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:g4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.multiple!==void 0&&typeof e.multiple!="boolean"){let n={instancePath:t+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.min!==void 0&&(k(e.min,{instancePath:t+"/min",parentData:e,parentDataProperty:"min",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.max!==void 0&&(k(e.max,{instancePath:t+"/max",parentData:e,parentDataProperty:"max",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&typeof e.required!="boolean"){let n={instancePath:t+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Ul.errors=r,s===0}Ul.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Dv={type:"object",description:"Label/value pairs describing one thing (a summary, a receipt, a review step).",required:["id","component","items"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"DetailList"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},items:{type:"array",minItems:1,items:{type:"object",required:["label","value"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/DynamicValue"},format:{$ref:"#/$defs/Format"},total:{type:"boolean",description:"The total row of a receipt, shown emphasised after a divider"}},additionalProperties:!1}},title:{$ref:"#/$defs/DynamicString"},variant:{enum:["default","receipt"],default:"default",description:"'receipt' for money: values right-aligned in tabular figures, with an optional total row"},layout:{enum:["rows","grid"],default:"rows",description:"'grid' packs many short fields into columns (record pages); 'rows' keeps one per line"},rowAction:{$ref:"#/$defs/Action",description:"Offered per row as a 'Change' link named after the row (GOV.UK summary list); the row's key is sent as 'key' with the context"}},additionalProperties:!1};function Ll(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ll.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.items===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Dv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="DetailList"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"DetailList"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.items!==void 0){let n=e.items;if(Array.isArray(n)){if(n.length<1){let c={instancePath:t+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.label===void 0){let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.value===void 0){let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="value"||f==="format"||f==="total")){let m={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/items/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/items/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/items/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.value!==void 0&&(cn(u.value,{instancePath:t+"/items/"+c+"/value",parentData:u,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?cn.errors:r.concat(cn.errors),s=r.length)),u.format!==void 0&&(Me(u.format,{instancePath:t+"/items/"+c+"/format",parentData:u,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),u.total!==void 0&&typeof u.total!="boolean"){let f={instancePath:t+"/items/"+c+"/total",schemaPath:"#/properties/items/items/properties/total/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}}else{let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.variant!==void 0){let n=e.variant;if(!(n==="default"||n==="receipt")){let d={instancePath:t+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:Dv.properties.variant.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.layout!==void 0){let n=e.layout;if(!(n==="rows"||n==="grid")){let d={instancePath:t+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:Dv.properties.layout.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}e.rowAction!==void 0&&(se(e.rowAction,{instancePath:t+"/rowAction",parentData:e,parentDataProperty:"rowAction",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Ll.errors=r,s===0}Ll.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Fl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Fl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.summary===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"summary"},message:"must have required property 'summary'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="summary"||n==="children"||n==="open")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Disclosure"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Disclosure"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.summary!==void 0&&(k(e.summary,{instancePath:t+"/summary",parentData:e,parentDataProperty:"summary",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.open!==void 0&&typeof e.open!="boolean"){let n={instancePath:t+"/open",schemaPath:"#/properties/open/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Fl.errors=r,s===0}Fl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var w_={type:"object",description:"Choose or drop files to attach or upload.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FileInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"The chosen files in host data: a list of { name, size, type, ref }, written by the renderer; the host uploads them"},accept:{type:"array",items:{type:"string"},description:"Allowed types as extensions or MIME types: ['.pdf', 'image/*']"},multiple:{type:"boolean",default:!1},maxSize:{type:"integer",minimum:1,description:"Largest file, in bytes; the renderer refuses larger ones with a message"},help:{$ref:"#/$defs/DynamicString",description:"What to attach and why; the accepted types and size are said by the renderer"},required:{$ref:"#/$defs/DynamicBoolean",default:!1}},additionalProperties:!1};function Vl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Vl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(w_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="FileInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FileInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.accept!==void 0){let n=e.accept;if(Array.isArray(n)){let d=n.length;for(let c=0;c<d;c++)if(typeof n[c]!="string"){let u={instancePath:t+"/accept/"+c,schemaPath:"#/properties/accept/items/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[u]:r.push(u),s++}}else{let d={instancePath:t+"/accept",schemaPath:"#/properties/accept/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.multiple!==void 0&&typeof e.multiple!="boolean"){let n={instancePath:t+"/multiple",schemaPath:"#/properties/multiple/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.maxSize!==void 0){let n=e.maxSize;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){let d={instancePath:t+"/maxSize",schemaPath:"#/properties/maxSize/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[d]:r.push(d),s++}if(typeof n=="number"&&(n<1||isNaN(n))){let d={instancePath:t+"/maxSize",schemaPath:"#/properties/maxSize/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};r===null?r=[d]:r.push(d),s++}}e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&(I(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Vl.errors=r,s===0}Vl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var k_={type:"object",description:"Filters for a list of results, with the result count.",required:["id","component","children","results"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"FilterPanel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Defaults to 'Filters'"},children:{$ref:"#/$defs/ChildList",description:"The filter inputs (Choice, RangeInput, Toggle, DateInput, TextInput)"},results:{$ref:"#/$defs/Id",description:"The Collection or Table the filters narrow"},resultCount:{$ref:"#/$defs/Binding",description:"Number of results with the current filters, from host data"},clear:{$ref:"#/$defs/Action",description:"Optional action that resets the filters on the host"}},additionalProperties:!1};function Zl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Zl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}if(e.results===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"results"},message:"must have required property 'results'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(k_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="FilterPanel"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"FilterPanel"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.results!==void 0){let n=e.results;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/results",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/results",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.resultCount!==void 0&&(O(e.resultCount,{instancePath:t+"/resultCount",parentData:e,parentDataProperty:"resultCount",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.clear!==void 0&&(se(e.clear,{instancePath:t+"/clear",parentData:e,parentDataProperty:"clear",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Zl.errors=r,s===0}Zl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Kl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Kl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.legal===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"legal"},message:"must have required property 'legal'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="groups"||n==="legal"||n==="aside")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Footer"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Footer"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.groups!==void 0){let n=e.groups;if(Array.isArray(n)){if(n.length>6){let c={instancePath:t+"/groups",schemaPath:"#/properties/groups/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};r===null?r=[c]:r.push(c),s++}if(n.length<1){let c={instancePath:t+"/groups",schemaPath:"#/properties/groups/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/groups/"+c,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/groups/"+c,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.items===void 0){let f={instancePath:t+"/groups/"+c,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="items")){let m={instancePath:t+"/groups/"+c,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/groups/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/groups/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/groups/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.items!==void 0){let f=u.items;if(Array.isArray(f)){if(f.length>12){let h={instancePath:t+"/groups/"+c+"/items",schemaPath:"#/properties/groups/items/properties/items/maxItems",keyword:"maxItems",params:{limit:12},message:"must NOT have more than 12 items"};r===null?r=[h]:r.push(h),s++}if(f.length<1){let h={instancePath:t+"/groups/"+c+"/items",schemaPath:"#/properties/groups/items/properties/items/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[h]:r.push(h),s++}let m=f.length;for(let h=0;h<m;h++){let b=f[h];if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.key===void 0){let x={instancePath:t+"/groups/"+c+"/items/"+h,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[x]:r.push(x),s++}if(b.label===void 0){let x={instancePath:t+"/groups/"+c+"/items/"+h,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[x]:r.push(x),s++}if(b.action===void 0){let x={instancePath:t+"/groups/"+c+"/items/"+h,schemaPath:"#/properties/groups/items/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};r===null?r=[x]:r.push(x),s++}for(let x in b)if(!(x==="key"||x==="label"||x==="action")){let g={instancePath:t+"/groups/"+c+"/items/"+h,schemaPath:"#/properties/groups/items/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};r===null?r=[g]:r.push(g),s++}if(b.key!==void 0){let x=b.key;if(typeof x=="string"){if(!xe.test(x)){let g={instancePath:t+"/groups/"+c+"/items/"+h+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[g]:r.push(g),s++}}else{let g={instancePath:t+"/groups/"+c+"/items/"+h+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[g]:r.push(g),s++}}b.label!==void 0&&(k(b.label,{instancePath:t+"/groups/"+c+"/items/"+h+"/label",parentData:b,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),b.action!==void 0&&(se(b.action,{instancePath:t+"/groups/"+c+"/items/"+h+"/action",parentData:b,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let x={instancePath:t+"/groups/"+c+"/items/"+h,schemaPath:"#/properties/groups/items/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[x]:r.push(x),s++}}}else{let m={instancePath:t+"/groups/"+c+"/items",schemaPath:"#/properties/groups/items/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[m]:r.push(m),s++}}}else{let f={instancePath:t+"/groups/"+c,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.legal!==void 0&&(k(e.legal,{instancePath:t+"/legal",parentData:e,parentDataProperty:"legal",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.aside!==void 0){let n=e.aside;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Kl.errors=r,s===0}Kl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var h4={type:"object",description:"Collects inputs and submits them together.",required:["id","component","children","submit"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Form"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},submit:{$ref:"#/$defs/ActionSpec"},cancel:{$ref:"#/$defs/ActionSpec",description:"Optional; defaults to ui.dismiss when omitted and the surface is dismissible"},aside:{$ref:"#/$defs/Id",description:"Optional summary (DetailList, Card or Group) kept beside the form, e.g. the running total"},layout:{enum:["stacked","horizontal"],default:"stacked",description:"'horizontal' puts label and help on the left and the control on the right (settings pages), on wide surfaces"}},additionalProperties:!1};function Gl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Gl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}if(e.submit===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"submit"},message:"must have required property 'submit'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(h4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Form"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Form"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.submit!==void 0&&(Tt(e.submit,{instancePath:t+"/submit",parentData:e,parentDataProperty:"submit",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length)),e.cancel!==void 0&&(Tt(e.cancel,{instancePath:t+"/cancel",parentData:e,parentDataProperty:"cancel",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length)),e.aside!==void 0){let n=e.aside;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.layout!==void 0){let n=e.layout;if(!(n==="stacked"||n==="horizontal")){let d={instancePath:t+"/layout",schemaPath:"#/properties/layout/enum",keyword:"enum",params:{allowedValues:h4.properties.layout.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Gl.errors=r,s===0}Gl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var y4={type:"object",description:"The product's frame: the regions around its screens (header, navigation, main, aside, footer, banner), with an outlet where screens and generated surfaces appear.",required:["id","component","main"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Frame"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},header:{$ref:"#/$defs/Id",description:"An AppBar"},navigation:{$ref:"#/$defs/Id",description:"A Navigation of kind 'main'; its placement decides rail, bar, drawer or side"},main:{$ref:"#/$defs/Id",description:"The outlet: a component the host replaces with the current screen. Usually an Outlet; may be a Group holding a fixed screen"},aside:{$ref:"#/$defs/Id",description:"A secondary column beside main on wide layouts (help, context, activity)"},footer:{$ref:"#/$defs/Id",description:"A Footer"},banner:{$ref:"#/$defs/Id",description:"A Status shown above everything (a phase banner, an outage, a trial ending)"},skipTarget:{type:"boolean",default:!0,description:"The renderer adds a skip link to main"},width:{enum:["full","contained"],default:"contained",description:"'contained' centres main at measure.max \xD7 1.6; 'full' lets dense tools use the whole viewport"}},additionalProperties:!1};function Yl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Yl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.main===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"main"},message:"must have required property 'main'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(y4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Frame"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Frame"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.header!==void 0){let n=e.header;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/header",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/header",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.navigation!==void 0){let n=e.navigation;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/navigation",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/navigation",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.main!==void 0){let n=e.main;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/main",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/main",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.aside!==void 0){let n=e.aside;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/aside",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.footer!==void 0){let n=e.footer;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/footer",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/footer",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.banner!==void 0){let n=e.banner;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/banner",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/banner",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.skipTarget!==void 0&&typeof e.skipTarget!="boolean"){let n={instancePath:t+"/skipTarget",schemaPath:"#/properties/skipTarget/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.width!==void 0){let n=e.width;if(!(n==="full"||n==="contained")){let d={instancePath:t+"/width",schemaPath:"#/properties/width/enum",keyword:"enum",params:{allowedValues:y4.properties.width.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Yl.errors=r,s===0}Yl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var $_={type:"object",description:"Visually groups closely related items without a heading (proximity).",required:["id","component","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Group"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},children:{$ref:"#/$defs/ChildList"},label:{$ref:"#/$defs/DynamicString",description:"Accessible name for the group when it isn't obvious from its content"},arrangement:{enum:["auto","inline","grid"],default:"auto",description:"Hint only. 'inline' for a few short peers (e.g. metrics); renderers stack on narrow screens."}},additionalProperties:!1};function Xl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Xl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="children"||n==="label"||n==="arrangement")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Group"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Group"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.arrangement!==void 0){let n=e.arrangement;if(!(n==="auto"||n==="inline"||n==="grid")){let d={instancePath:t+"/arrangement",schemaPath:"#/properties/arrangement/enum",keyword:"enum",params:{allowedValues:$_.properties.arrangement.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Xl.errors=r,s===0}Xl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Tv={type:"object",description:"A person, team or organisation: picture, name and details, or several of them together.",required:["id","component","name"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Identity"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},name:{$ref:"#/$defs/DynamicString",description:"Always bound to host data: a name is never invented"},detail:{$ref:"#/$defs/DynamicString",description:"One line under the name: a role, an email, a team, a status"},image:{$ref:"#/$defs/DynamicString",description:"A media reference from host data, resolved by the host as Media's is; initials from the name are shown without one"},kind:{enum:["person","team","organization"],default:"person",description:"A person's picture is round; a team's or organisation's is square"},size:{enum:["small","default","large"],default:"default"},action:{$ref:"#/$defs/Action",description:"Activating the identity as a whole, e.g. open the person's record"},group:{type:"object",required:["path","namePath"],properties:{path:{$ref:"#/$defs/Path",description:"A list of people in host data, shown as overlapping pictures with a '+N' for the rest"},namePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},imagePath:{$ref:"#/$defs/Path",description:"Relative to each entry"},max:{type:"integer",minimum:1,maximum:8,default:4,description:"Pictures shown before '+N'"}},additionalProperties:!1,description:"Several identities as one element ('Rhea, Tom and 3 others'). name is then the group's accessible summary"}},additionalProperties:!1};function Ql(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Ql.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.name===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Tv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Identity"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Identity"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.name!==void 0&&(k(e.name,{instancePath:t+"/name",parentData:e,parentDataProperty:"name",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.detail!==void 0&&(k(e.detail,{instancePath:t+"/detail",parentData:e,parentDataProperty:"detail",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.image!==void 0&&(k(e.image,{instancePath:t+"/image",parentData:e,parentDataProperty:"image",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="person"||n==="team"||n==="organization")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Tv.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.size!==void 0){let n=e.size;if(!(n==="small"||n==="default"||n==="large")){let d={instancePath:t+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Tv.properties.size.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length)),e.group!==void 0){let n=e.group;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.path===void 0){let d={instancePath:t+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[d]:r.push(d),s++}if(n.namePath===void 0){let d={instancePath:t+"/group",schemaPath:"#/properties/group/required",keyword:"required",params:{missingProperty:"namePath"},message:"must have required property 'namePath'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="path"||d==="namePath"||d==="imagePath"||d==="max")){let c={instancePath:t+"/group",schemaPath:"#/properties/group/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.path!==void 0){let d=n.path;if(typeof d=="string"){if(!at.test(d)){let c={instancePath:t+"/group/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/group/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.namePath!==void 0){let d=n.namePath;if(typeof d=="string"){if(!at.test(d)){let c={instancePath:t+"/group/namePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/group/namePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.imagePath!==void 0){let d=n.imagePath;if(typeof d=="string"){if(!at.test(d)){let c={instancePath:t+"/group/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/group/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.max!==void 0){let d=n.max;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d))){let c={instancePath:t+"/group/max",schemaPath:"#/properties/group/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[c]:r.push(c),s++}if(typeof d=="number"){if(d>8||isNaN(d)){let c={instancePath:t+"/group/max",schemaPath:"#/properties/group/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:8},message:"must be <= 8"};r===null?r=[c]:r.push(c),s++}if(d<1||isNaN(d)){let c={instancePath:t+"/group/max",schemaPath:"#/properties/group/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};r===null?r=[c]:r.push(c),s++}}}}else{let d={instancePath:t+"/group",schemaPath:"#/properties/group/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Ql.errors=r,s===0}Ql.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Ev={type:"object",description:"An image, video, audio clip, gallery or QR code supplied by the host.",required:["id","component"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Media"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},src:{$ref:"#/$defs/Binding",description:"Image, video or audio reference in host data; generated UI never contains URLs"},alt:{$ref:"#/$defs/DynamicString",description:"Required unless decorative. For a gallery it names the set; for a QR code it says what the code opens"},decorative:{type:"boolean",default:!1},aspect:{enum:["square","landscape","portrait","auto"],default:"auto"},kind:{enum:["image","video","audio","gallery","qr"],default:"image",description:"'video' and 'audio' play with native controls; 'gallery' is several images from 'items'; 'qr' encodes 'value' as a QR code"},poster:{$ref:"#/$defs/DynamicString",description:"For 'video': media reference for the frame shown before play"},transcript:{$ref:"#/$defs/DynamicString",description:"For 'video' and 'audio': the words, offered under the player"},items:{$ref:"#/$defs/Binding",description:"For 'gallery': array of images in host data"},imagePath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its image reference"},altPath:{$ref:"#/$defs/Path",description:"For 'gallery': relative path in each item to its alt text"},value:{$ref:"#/$defs/DynamicString",description:"For 'qr': the text encoded, e.g. a payment link from host data"}},additionalProperties:!1};function Jl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Jl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Ev.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Media"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Media"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.src!==void 0&&(O(e.src,{instancePath:t+"/src",parentData:e,parentDataProperty:"src",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.alt!==void 0&&(k(e.alt,{instancePath:t+"/alt",parentData:e,parentDataProperty:"alt",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.decorative!==void 0&&typeof e.decorative!="boolean"){let n={instancePath:t+"/decorative",schemaPath:"#/properties/decorative/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.aspect!==void 0){let n=e.aspect;if(!(n==="square"||n==="landscape"||n==="portrait"||n==="auto")){let d={instancePath:t+"/aspect",schemaPath:"#/properties/aspect/enum",keyword:"enum",params:{allowedValues:Ev.properties.aspect.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.kind!==void 0){let n=e.kind;if(!(n==="image"||n==="video"||n==="audio"||n==="gallery"||n==="qr")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Ev.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.poster!==void 0&&(k(e.poster,{instancePath:t+"/poster",parentData:e,parentDataProperty:"poster",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.transcript!==void 0&&(k(e.transcript,{instancePath:t+"/transcript",parentData:e,parentDataProperty:"transcript",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.items!==void 0&&(O(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.imagePath!==void 0){let n=e.imagePath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/imagePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/imagePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.altPath!==void 0){let n=e.altPath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/altPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/altPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.value!==void 0&&(k(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Jl.errors=r,s===0}Jl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var b4={type:"object",description:"A key figure with a label, and optionally its change.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Metric"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Always bound to host data"},format:{$ref:"#/$defs/Format"},change:{type:"object",required:["value"],properties:{value:{$ref:"#/$defs/Binding"},format:{$ref:"#/$defs/Format"},favorable:{enum:["increase","decrease","none"],default:"increase",description:"Which direction is good, so color follows meaning, not sign"}},additionalProperties:!1},caption:{$ref:"#/$defs/DynamicString"}},additionalProperties:!1};function Wl(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=Wl.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(b4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Metric"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Metric"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.format!==void 0&&(Me(e.format,{instancePath:t+"/format",parentData:e,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),e.change!==void 0){let n=e.change;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.value===void 0){let d={instancePath:t+"/change",schemaPath:"#/properties/change/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="value"||d==="format"||d==="favorable")){let c={instancePath:t+"/change",schemaPath:"#/properties/change/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.value!==void 0&&(O(n.value,{instancePath:t+"/change/value",parentData:n,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.format!==void 0&&(Me(n.format,{instancePath:t+"/change/format",parentData:n,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),n.favorable!==void 0){let d=n.favorable;if(!(d==="increase"||d==="decrease"||d==="none")){let c={instancePath:t+"/change/favorable",schemaPath:"#/properties/change/properties/favorable/enum",keyword:"enum",params:{allowedValues:b4.properties.change.properties.favorable.enum},message:"must be equal to one of the allowed values"};r===null?r=[c]:r.push(c),s++}}}else{let d={instancePath:t+"/change",schemaPath:"#/properties/change/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}e.caption!==void 0&&(k(e.caption,{instancePath:t+"/caption",parentData:e,parentDataProperty:"caption",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return Wl.errors=r,s===0}Wl.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var xm={type:"object",description:"The product's main navigation.",required:["id","component","items","current"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Navigation"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"Names the navigation, e.g. 'Main'"},items:{type:"array",minItems:2,maxItems:20,items:{type:"object",required:["key","label","action"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},group:{$ref:"#/$defs/DynamicString",description:"Heading that groups items (e.g. 'Billing')"},icon:{enum:["home","search","inbox","book","tag","clock","shield","lock","mail","settings","chart","people","card","file","orders","products","customers","discounts","analytics","calendar","bell","help","folder","star","grid","layers"]},badge:{$ref:"#/$defs/Binding",description:"Count needing attention, e.g. overdue invoices"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1}},current:{$ref:"#/$defs/Binding",description:"Key of the current item in host data"},kind:{enum:["main","breadcrumb","nested","toc","local"],default:"main",description:"'main' is the product's sections; 'breadcrumb' the ordered trail to here; 'nested' groups that expand; 'toc' the sections of this page (items link to anchors named by their keys); 'local' the sections of one area, as tabs"},placement:{enum:["auto","side","rail","bar","drawer"],default:"auto",description:"For kind 'main' inside a Frame: where it lives. 'auto' is a side column on wide layouts, a rail on medium and a bottom bar (\u2264 5 items) or a drawer on compact; the others fix it"}},additionalProperties:!1};function ed(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ed.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.items===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[n]:r.push(n),s++}if(e.current===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"current"},message:"must have required property 'current'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(xm.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Navigation"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Navigation"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.items!==void 0){let n=e.items;if(Array.isArray(n)){if(n.length>20){let c={instancePath:t+"/items",schemaPath:"#/properties/items/maxItems",keyword:"maxItems",params:{limit:20},message:"must NOT have more than 20 items"};r===null?r=[c]:r.push(c),s++}if(n.length<2){let c={instancePath:t+"/items",schemaPath:"#/properties/items/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.action===void 0){let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="group"||f==="icon"||f==="badge"||f==="action")){let m={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/items/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/items/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/items/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.group!==void 0&&(k(u.group,{instancePath:t+"/items/"+c+"/group",parentData:u,parentDataProperty:"group",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.icon!==void 0){let f=u.icon;if(!(f==="home"||f==="search"||f==="inbox"||f==="book"||f==="tag"||f==="clock"||f==="shield"||f==="lock"||f==="mail"||f==="settings"||f==="chart"||f==="people"||f==="card"||f==="file"||f==="orders"||f==="products"||f==="customers"||f==="discounts"||f==="analytics"||f==="calendar"||f==="bell"||f==="help"||f==="folder"||f==="star"||f==="grid"||f==="layers")){let m={instancePath:t+"/items/"+c+"/icon",schemaPath:"#/properties/items/items/properties/icon/enum",keyword:"enum",params:{allowedValues:xm.properties.items.items.properties.icon.enum},message:"must be equal to one of the allowed values"};r===null?r=[m]:r.push(m),s++}}u.badge!==void 0&&(O(u.badge,{instancePath:t+"/items/"+c+"/badge",parentData:u,parentDataProperty:"badge",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),u.action!==void 0&&(se(u.action,{instancePath:t+"/items/"+c+"/action",parentData:u,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let f={instancePath:t+"/items/"+c,schemaPath:"#/properties/items/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.current!==void 0&&(O(e.current,{instancePath:t+"/current",parentData:e,parentDataProperty:"current",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="main"||n==="breadcrumb"||n==="nested"||n==="toc"||n==="local")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:xm.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.placement!==void 0){let n=e.placement;if(!(n==="auto"||n==="side"||n==="rail"||n==="bar"||n==="drawer")){let d={instancePath:t+"/placement",schemaPath:"#/properties/placement/enum",keyword:"enum",params:{allowedValues:xm.properties.placement.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return ed.errors=r,s===0}ed.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function td(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=td.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="label"||n==="loading")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Outlet"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Outlet"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.loading!==void 0){let n=e.loading;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/loading",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/loading",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return td.errors=r,s===0}td.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Iv={type:"object",description:"Content over the current view: a dialog, a drawer, a bottom sheet or a popover, opened from an action and dismissed to return.",required:["id","component","title","children"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Panel"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["dialog","drawer","sheet","popover"],default:"dialog",description:"'dialog' centres and blocks; 'drawer' slides from the side for a form or a record; 'sheet' rises from the bottom on phones; 'popover' floats by its opener for a small choice"},title:{$ref:"#/$defs/DynamicString"},children:{$ref:"#/$defs/ChildList",description:"What the panel holds"},actions:{$ref:"#/$defs/Id",description:"An ActionBar in the panel's footer: its primary action and a Cancel"},open:{$ref:"#/$defs/DynamicBoolean",description:"Bound to host data: true shows the panel; the renderer writes false on dismiss. Open when absent"},dismissible:{type:"boolean",default:!0,description:"Escape, the close control and the backdrop dismiss it; false for a panel that must be completed"},size:{enum:["small","default","large"],default:"default"}},additionalProperties:!1};function rd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=rd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Iv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Panel"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Panel"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="dialog"||n==="drawer"||n==="sheet"||n==="popover")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Iv.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length)),e.actions!==void 0){let n=e.actions;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.open!==void 0&&(I(e.open,{instancePath:t+"/open",parentData:e,parentDataProperty:"open",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.dismissible!==void 0&&typeof e.dismissible!="boolean"){let n={instancePath:t+"/dismissible",schemaPath:"#/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.size!==void 0){let n=e.size;if(!(n==="small"||n==="default"||n==="large")){let d={instancePath:t+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Iv.properties.size.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return rd.errors=r,s===0}rd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var v4={type:"object",description:"How far along something is, or how much of a bounded amount is used: a bar, a ring or a meter.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Progress"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is being measured: 'Storage used', 'Upload', 'Goal'"},value:{$ref:"#/$defs/DynamicNumber",description:"Bound to host data. A fraction from 0 to 1, or an amount when max is given"},max:{$ref:"#/$defs/DynamicNumber",description:"The whole, when value is an amount rather than a fraction: 200 for '180 of 200 GB'"},kind:{enum:["bar","ring","meter"],default:"bar",description:"'bar' and 'ring' show progress towards done; 'meter' shows a measured amount within bounds, with tone by threshold"},caption:{$ref:"#/$defs/DynamicString",description:"Text beside the readout: '180 of 200 GB', '3 days left'. The readout itself is derived from value"},format:{$ref:"#/$defs/Format",description:"How the readout is shown; percent without it"},tone:{$ref:"#/$defs/Tone",description:"Fixed tone; a meter without one takes warning past thresholds.warning and danger past thresholds.danger"},thresholds:{type:"object",properties:{warning:{type:"number",minimum:0,maximum:1},danger:{type:"number",minimum:0,maximum:1}},additionalProperties:!1,description:"Fractions at which a meter changes tone"},indeterminate:{$ref:"#/$defs/DynamicBoolean",description:"The task is running and how far along isn't known"}},additionalProperties:!1};function ir(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ir.evaluated;p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0);let n=s,d=!1,c=null,u=s;if(typeof e!="number"){let b={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[b]:r.push(b),s++}var m=u===s;m&&(d=!0,c=0);let f=s;O(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length);var m=f===s;if(m&&d)d=!1,c=[c,1];else if(m){d=!0,c=1;var h=!0}if(d)s=n,r!==null&&(n?r.length=n:r=null);else{let b={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};r===null?r=[b]:r.push(b),s++}return ir.errors=r,p.props=h,s===0}ir.evaluated={dynamicProps:!0,dynamicItems:!1};function ad(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ad.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(v4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Progress"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Progress"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(ir(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?ir.errors:r.concat(ir.errors),s=r.length)),e.max!==void 0&&(ir(e.max,{instancePath:t+"/max",parentData:e,parentDataProperty:"max",rootData:i,dynamicAnchors:l})||(r=r===null?ir.errors:r.concat(ir.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="bar"||n==="ring"||n==="meter")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:v4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.caption!==void 0&&(k(e.caption,{instancePath:t+"/caption",parentData:e,parentDataProperty:"caption",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.format!==void 0&&(Me(e.format,{instancePath:t+"/format",parentData:e,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),e.tone!==void 0){let n=e.tone;if(!(n==="neutral"||n==="info"||n==="success"||n==="warning"||n==="danger")){let d={instancePath:t+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:rc.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.thresholds!==void 0){let n=e.thresholds;if(n&&typeof n=="object"&&!Array.isArray(n)){for(let d in n)if(!(d==="warning"||d==="danger")){let c={instancePath:t+"/thresholds",schemaPath:"#/properties/thresholds/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.warning!==void 0){let d=n.warning;if(typeof d=="number"){if(d>1||isNaN(d)){let c={instancePath:t+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};r===null?r=[c]:r.push(c),s++}if(d<0||isNaN(d)){let c={instancePath:t+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/thresholds/warning",schemaPath:"#/properties/thresholds/properties/warning/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[c]:r.push(c),s++}}if(n.danger!==void 0){let d=n.danger;if(typeof d=="number"){if(d>1||isNaN(d)){let c={instancePath:t+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/maximum",keyword:"maximum",params:{comparison:"<=",limit:1},message:"must be <= 1"};r===null?r=[c]:r.push(c),s++}if(d<0||isNaN(d)){let c={instancePath:t+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/thresholds/danger",schemaPath:"#/properties/thresholds/properties/danger/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[c]:r.push(c),s++}}}else{let d={instancePath:t+"/thresholds",schemaPath:"#/properties/thresholds/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}e.indeterminate!==void 0&&(I(e.indeterminate,{instancePath:t+"/indeterminate",parentData:e,parentDataProperty:"indeterminate",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return ad.errors=r,s===0}ad.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var w4={type:"object",description:"A number, or a range between two numbers, within known bounds.",required:["id","component","label","value","min","max"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"RangeInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Number in host data, or [min, max] when mode is 'range'"},min:{type:"number"},max:{type:"number"},step:{type:"number",exclusiveMinimum:0},format:{$ref:"#/$defs/Format"},mode:{enum:["single","range"],default:"single",description:"'range' picks a lower and upper bound; value is then [min, max]"}},additionalProperties:!1};function od(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=od.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}if(e.min===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"min"},message:"must have required property 'min'"};r===null?r=[n]:r.push(n),s++}if(e.max===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"max"},message:"must have required property 'max'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(w4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="RangeInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"RangeInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.min!==void 0&&typeof e.min!="number"){let n={instancePath:t+"/min",schemaPath:"#/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[n]:r.push(n),s++}if(e.max!==void 0&&typeof e.max!="number"){let n={instancePath:t+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[n]:r.push(n),s++}if(e.step!==void 0){let n=e.step;if(typeof n=="number"){if(n<=0||isNaN(n)){let d={instancePath:t+"/step",schemaPath:"#/properties/step/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0},message:"must be > 0"};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/step",schemaPath:"#/properties/step/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[d]:r.push(d),s++}}if(e.format!==void 0&&(Me(e.format,{instancePath:t+"/format",parentData:e,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),e.mode!==void 0){let n=e.mode;if(!(n==="single"||n==="range")){let d={instancePath:t+"/mode",schemaPath:"#/properties/mode/enum",keyword:"enum",params:{allowedValues:w4.properties.mode.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return od.errors=r,s===0}od.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var S_={type:"object",description:"A score out of N: given by the person, or shown as others gave it.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Rating"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What is rated: 'Your rating', 'Average rating'"},value:{$ref:"#/$defs/Binding",description:"The score in host data; written when the person can rate"},max:{type:"integer",minimum:2,maximum:10,default:5},readOnly:{$ref:"#/$defs/DynamicBoolean",default:!1,description:"Show a score rather than take one"},count:{$ref:"#/$defs/DynamicNumber",description:"How many ratings the score is from, shown after it: '4.6 (212)'"},help:{$ref:"#/$defs/DynamicString"},required:{$ref:"#/$defs/DynamicBoolean",default:!1},action:{$ref:"#/$defs/Action",description:"Runs when a rating is given, with context bound to value"}},additionalProperties:!1};function nd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=nd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(S_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Rating"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Rating"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.max!==void 0){let n=e.max;if(!(typeof n=="number"&&!(n%1)&&!isNaN(n))){let d={instancePath:t+"/max",schemaPath:"#/properties/max/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[d]:r.push(d),s++}if(typeof n=="number"){if(n>10||isNaN(n)){let d={instancePath:t+"/max",schemaPath:"#/properties/max/maximum",keyword:"maximum",params:{comparison:"<=",limit:10},message:"must be <= 10"};r===null?r=[d]:r.push(d),s++}if(n<2||isNaN(n)){let d={instancePath:t+"/max",schemaPath:"#/properties/max/minimum",keyword:"minimum",params:{comparison:">=",limit:2},message:"must be >= 2"};r===null?r=[d]:r.push(d),s++}}}e.readOnly!==void 0&&(I(e.readOnly,{instancePath:t+"/readOnly",parentData:e,parentDataProperty:"readOnly",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.count!==void 0&&(ir(e.count,{instancePath:t+"/count",parentData:e,parentDataProperty:"count",rootData:i,dynamicAnchors:l})||(r=r===null?ir.errors:r.concat(ir.errors),s=r.length)),e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&(I(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return nd.errors=r,s===0}nd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function id(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=id.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}if(e.children===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"children"},message:"must have required property 'children'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="title"||n==="description"||n==="children")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Section"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Section"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.description!==void 0&&(k(e.description,{instancePath:t+"/description",parentData:e,parentDataProperty:"description",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.children!==void 0&&(Be(e.children,{instancePath:t+"/children",parentData:e,parentDataProperty:"children",rootData:i,dynamicAnchors:l})||(r=r===null?Be.errors:r.concat(Be.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return id.errors=r,s===0}id.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var k4={type:"object",description:"Master and detail side by side: a list that stays while the chosen item's detail shows beside it; on compact layouts the detail replaces the list.",required:["id","component","primary","detail","selected"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Split"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},primary:{$ref:"#/$defs/Id",description:"The list: a Collection or a Table with selection 'single'"},detail:{$ref:"#/$defs/Id",description:"What shows for the selected item; its bindings resolve against the selected item's scope"},selected:{$ref:"#/$defs/Binding",description:"The selected item's value in host data, shared with the primary's 'selected'"},empty:{$ref:"#/$defs/Id",description:"A Status shown in the detail pane while nothing is selected"},ratio:{enum:["narrow","balanced","wide"],default:"narrow",description:"The list's share: about a third, half, or two thirds"},resizable:{type:"boolean",default:!1}},additionalProperties:!1};function sd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=sd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.primary===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"primary"},message:"must have required property 'primary'"};r===null?r=[n]:r.push(n),s++}if(e.detail===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"detail"},message:"must have required property 'detail'"};r===null?r=[n]:r.push(n),s++}if(e.selected===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"selected"},message:"must have required property 'selected'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(k4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Split"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Split"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.primary!==void 0){let n=e.primary;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/primary",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/primary",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.detail!==void 0){let n=e.detail;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.selected!==void 0&&(O(e.selected,{instancePath:t+"/selected",parentData:e,parentDataProperty:"selected",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.empty!==void 0){let n=e.empty;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.ratio!==void 0){let n=e.ratio;if(!(n==="narrow"||n==="balanced"||n==="wide")){let d={instancePath:t+"/ratio",schemaPath:"#/properties/ratio/enum",keyword:"enum",params:{allowedValues:k4.properties.ratio.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.resizable!==void 0&&typeof e.resizable!="boolean"){let n={instancePath:t+"/resizable",schemaPath:"#/properties/resizable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return sd.errors=r,s===0}sd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var gm={type:"object",description:"Feedback about state: info, success, warning, error, empty or loading.",required:["id","component","kind","title"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Status"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},kind:{enum:["info","success","warning","error","empty","loading","undo"]},title:{$ref:"#/$defs/DynamicString"},message:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Id",description:"Optional Action (or ActionBar for a primary and a secondary) to recover or continue, e.g. 'Try again'; for 'undo', the Undo action"},icon:{enum:["lock","trash","clock","tag","info","alert","mail","shield","search","book","inbox","check"],description:"Optional icon for empty states; the renderer picks one by kind otherwise"},variant:{enum:["default","inline"],default:"default",description:"'inline' is a notice inside a page (a warning above a record) rather than a block of its own"}},additionalProperties:!1};function ld(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ld.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.kind===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"kind"},message:"must have required property 'kind'"};r===null?r=[n]:r.push(n),s++}if(e.title===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(gm.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Status"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Status"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="info"||n==="success"||n==="warning"||n==="error"||n==="empty"||n==="loading"||n==="undo")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:gm.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.title!==void 0&&(k(e.title,{instancePath:t+"/title",parentData:e,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.message!==void 0&&(k(e.message,{instancePath:t+"/message",parentData:e,parentDataProperty:"message",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.action!==void 0){let n=e.action;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/action",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/action",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.icon!==void 0){let n=e.icon;if(!(n==="lock"||n==="trash"||n==="clock"||n==="tag"||n==="info"||n==="alert"||n==="mail"||n==="shield"||n==="search"||n==="book"||n==="inbox"||n==="check")){let d={instancePath:t+"/icon",schemaPath:"#/properties/icon/enum",keyword:"enum",params:{allowedValues:gm.properties.icon.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.variant!==void 0){let n=e.variant;if(!(n==="default"||n==="inline")){let d={instancePath:t+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:gm.properties.variant.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return ld.errors=r,s===0}ld.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var $4={type:"object",description:"A task split into ordered steps with visible progress.",required:["id","component","steps","finish"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Steps"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},steps:{type:"array",minItems:2,maxItems:7,items:{type:"object",required:["key","title","content"],properties:{key:{$ref:"#/$defs/Key"},title:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},status:{$ref:"#/$defs/DynamicString",description:"For 'tasklist': 'todo', 'inProgress', 'done' or 'blocked', usually bound to host data"}},additionalProperties:!1}},kind:{enum:["wizard","tasklist","guide"],default:"wizard",description:"'wizard' shows one step at a time in order; 'tasklist' lists tasks people do in any order, each with its status; 'guide' is numbered instructions with no state"},current:{$ref:"#/$defs/DynamicNumber",description:"Index of the current step (default 0)"},finish:{$ref:"#/$defs/ActionSpec"}},additionalProperties:!1};function dd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=dd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.steps===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"steps"},message:"must have required property 'steps'"};r===null?r=[n]:r.push(n),s++}if(e.finish===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"finish"},message:"must have required property 'finish'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call($4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Steps"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Steps"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.steps!==void 0){let n=e.steps;if(Array.isArray(n)){if(n.length>7){let c={instancePath:t+"/steps",schemaPath:"#/properties/steps/maxItems",keyword:"maxItems",params:{limit:7},message:"must NOT have more than 7 items"};r===null?r=[c]:r.push(c),s++}if(n.length<2){let c={instancePath:t+"/steps",schemaPath:"#/properties/steps/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/steps/"+c,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.title===void 0){let f={instancePath:t+"/steps/"+c,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[f]:r.push(f),s++}if(u.content===void 0){let f={instancePath:t+"/steps/"+c,schemaPath:"#/properties/steps/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="title"||f==="content"||f==="status")){let m={instancePath:t+"/steps/"+c,schemaPath:"#/properties/steps/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/steps/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/steps/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.title!==void 0&&(k(u.title,{instancePath:t+"/steps/"+c+"/title",parentData:u,parentDataProperty:"title",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.content!==void 0){let f=u.content;if(typeof f=="string"){if(!X.test(f)){let m={instancePath:t+"/steps/"+c+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/steps/"+c+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}u.status!==void 0&&(k(u.status,{instancePath:t+"/steps/"+c+"/status",parentData:u,parentDataProperty:"status",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let f={instancePath:t+"/steps/"+c,schemaPath:"#/properties/steps/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.kind!==void 0){let n=e.kind;if(!(n==="wizard"||n==="tasklist"||n==="guide")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:$4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}e.current!==void 0&&(ir(e.current,{instancePath:t+"/current",parentData:e,parentDataProperty:"current",rootData:i,dynamicAnchors:l})||(r=r===null?ir.errors:r.concat(ir.errors),s=r.length)),e.finish!==void 0&&(Tt(e.finish,{instancePath:t+"/finish",parentData:e,parentDataProperty:"finish",rootData:i,dynamicAnchors:l})||(r=r===null?Tt.errors:r.concat(Tt.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return dd.errors=r,s===0}dd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var tc={type:"object",description:"Tabular data: many items sharing the same attributes.",required:["id","component","rows","caption","columns"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Table"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},rows:{$ref:"#/$defs/Binding",description:"Array of row objects in host data"},caption:{$ref:"#/$defs/DynamicString",description:"What the table shows (required for accessibility)"},columns:{type:"array",minItems:1,maxItems:8,items:{type:"object",required:["key","label","path"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},path:{$ref:"#/$defs/Path",description:"Relative to the row"},format:{$ref:"#/$defs/Format"},kind:{enum:["text","number","currency","date","status","entity","link"],default:"text",description:"What the cell holds; drives alignment, tabular figures and status tags"},align:{enum:["start","end"],description:"Overrides the alignment the kind implies"},tones:{type:"object",additionalProperties:{$ref:"#/$defs/Tone"},description:`For 'status': value \u2192 tone, e.g. {"Past due": "danger"}`},sortable:{type:"boolean",description:"Whether people can sort by this column"},avatarPath:{$ref:"#/$defs/Path",description:"For 'entity': relative path to the picture or initials"},secondaryPath:{$ref:"#/$defs/Path",description:"For 'entity': a second line, e.g. an email address"}},additionalProperties:!1}},rowAction:{$ref:"#/$defs/Action",description:"Activated per row; context bindings resolve against the row"},empty:{$ref:"#/$defs/Id",description:"Status component shown when there are no rows"},sort:{type:"object",required:["column"],properties:{column:{$ref:"#/$defs/Binding",description:"Key of the sorted column in host data"},direction:{$ref:"#/$defs/Binding",description:"'ascending' or 'descending' in host data"},action:{$ref:"#/$defs/Action",description:"Sent when someone sorts, so the host can re-query"}},additionalProperties:!1,description:"Sorting state, owned by the host"},selection:{enum:["none","multiple"],default:"none",description:"'multiple' adds a checkbox column and a select-all"},selected:{$ref:"#/$defs/Binding",description:"Array of selected row values in host data"},rowValuePath:{$ref:"#/$defs/Path",description:"Relative path to each row's id, used for selection"},bulkActions:{$ref:"#/$defs/Id",description:"ActionBar shown instead of the toolbar while rows are selected"},rowActions:{$ref:"#/$defs/Id",description:"ActionBar offered per row, in a menu named after the row"},expandable:{type:"boolean",default:!1,description:"Rows open to show 'detail' beneath them"},detail:{$ref:"#/$defs/Id",description:"Component rendered under an expanded row; relative paths inside it resolve against the row"},toolbar:{$ref:"#/$defs/Id",description:"ActionBar above the table (e.g. New, Import, Export)"},search:{$ref:"#/$defs/Id",description:"TextInput (kind 'search') above the table"},views:{type:"array",minItems:2,maxItems:8,items:{type:"object",required:["key","label"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},count:{$ref:"#/$defs/Binding"},action:{$ref:"#/$defs/Action"}},additionalProperties:!1},description:"Saved views (All, Mine, Past due\u2026), shown as tabs with counts"},view:{$ref:"#/$defs/Binding",description:"Key of the selected saved view in host data"},page:{type:"object",properties:{index:{$ref:"#/$defs/Binding",description:"1-based page number in host data"},size:{$ref:"#/$defs/Binding"},total:{$ref:"#/$defs/Binding",description:"Total number of rows, all pages"},action:{$ref:"#/$defs/Action",description:"Sent when someone changes page or page size"}},additionalProperties:!1,description:"Paging state, owned by the host"}},additionalProperties:!1};function pd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=pd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.rows===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rows"},message:"must have required property 'rows'"};r===null?r=[n]:r.push(n),s++}if(e.caption===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"caption"},message:"must have required property 'caption'"};r===null?r=[n]:r.push(n),s++}if(e.columns===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columns"},message:"must have required property 'columns'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(tc.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Table"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Table"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.rows!==void 0&&(O(e.rows,{instancePath:t+"/rows",parentData:e,parentDataProperty:"rows",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.caption!==void 0&&(k(e.caption,{instancePath:t+"/caption",parentData:e,parentDataProperty:"caption",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.columns!==void 0){let n=e.columns;if(Array.isArray(n)){if(n.length>8){let c={instancePath:t+"/columns",schemaPath:"#/properties/columns/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};r===null?r=[c]:r.push(c),s++}if(n.length<1){let c={instancePath:t+"/columns",schemaPath:"#/properties/columns/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/columns/"+c,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/columns/"+c,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.path===void 0){let f={instancePath:t+"/columns/"+c,schemaPath:"#/properties/columns/items/required",keyword:"required",params:{missingProperty:"path"},message:"must have required property 'path'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!Ae.call(tc.properties.columns.items.properties,f)){let m={instancePath:t+"/columns/"+c,schemaPath:"#/properties/columns/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/columns/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/columns/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/columns/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.path!==void 0){let f=u.path;if(typeof f=="string"){if(!at.test(f)){let m={instancePath:t+"/columns/"+c+"/path",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/columns/"+c+"/path",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.format!==void 0&&(Me(u.format,{instancePath:t+"/columns/"+c+"/format",parentData:u,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),u.kind!==void 0){let f=u.kind;if(!(f==="text"||f==="number"||f==="currency"||f==="date"||f==="status"||f==="entity"||f==="link")){let m={instancePath:t+"/columns/"+c+"/kind",schemaPath:"#/properties/columns/items/properties/kind/enum",keyword:"enum",params:{allowedValues:tc.properties.columns.items.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[m]:r.push(m),s++}}if(u.align!==void 0){let f=u.align;if(!(f==="start"||f==="end")){let m={instancePath:t+"/columns/"+c+"/align",schemaPath:"#/properties/columns/items/properties/align/enum",keyword:"enum",params:{allowedValues:tc.properties.columns.items.properties.align.enum},message:"must be equal to one of the allowed values"};r===null?r=[m]:r.push(m),s++}}if(u.tones!==void 0){let f=u.tones;if(f&&typeof f=="object"&&!Array.isArray(f))for(let m in f){let h=f[m];if(!(h==="neutral"||h==="info"||h==="success"||h==="warning"||h==="danger")){let b={instancePath:t+"/columns/"+c+"/tones/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:rc.enum},message:"must be equal to one of the allowed values"};r===null?r=[b]:r.push(b),s++}}else{let m={instancePath:t+"/columns/"+c+"/tones",schemaPath:"#/properties/columns/items/properties/tones/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}if(u.sortable!==void 0&&typeof u.sortable!="boolean"){let f={instancePath:t+"/columns/"+c+"/sortable",schemaPath:"#/properties/columns/items/properties/sortable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[f]:r.push(f),s++}if(u.avatarPath!==void 0){let f=u.avatarPath;if(typeof f=="string"){if(!at.test(f)){let m={instancePath:t+"/columns/"+c+"/avatarPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/columns/"+c+"/avatarPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.secondaryPath!==void 0){let f=u.secondaryPath;if(typeof f=="string"){if(!at.test(f)){let m={instancePath:t+"/columns/"+c+"/secondaryPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/columns/"+c+"/secondaryPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}}else{let f={instancePath:t+"/columns/"+c,schemaPath:"#/properties/columns/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/columns",schemaPath:"#/properties/columns/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.rowAction!==void 0&&(se(e.rowAction,{instancePath:t+"/rowAction",parentData:e,parentDataProperty:"rowAction",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length)),e.empty!==void 0){let n=e.empty;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/empty",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.sort!==void 0){let n=e.sort;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.column===void 0){let d={instancePath:t+"/sort",schemaPath:"#/properties/sort/required",keyword:"required",params:{missingProperty:"column"},message:"must have required property 'column'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!(d==="column"||d==="direction"||d==="action")){let c={instancePath:t+"/sort",schemaPath:"#/properties/sort/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.column!==void 0&&(O(n.column,{instancePath:t+"/sort/column",parentData:n,parentDataProperty:"column",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.direction!==void 0&&(O(n.direction,{instancePath:t+"/sort/direction",parentData:n,parentDataProperty:"direction",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.action!==void 0&&(se(n.action,{instancePath:t+"/sort/action",parentData:n,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let d={instancePath:t+"/sort",schemaPath:"#/properties/sort/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.selection!==void 0){let n=e.selection;if(!(n==="none"||n==="multiple")){let d={instancePath:t+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:tc.properties.selection.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.selected!==void 0&&(O(e.selected,{instancePath:t+"/selected",parentData:e,parentDataProperty:"selected",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.rowValuePath!==void 0){let n=e.rowValuePath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/rowValuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/rowValuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.bulkActions!==void 0){let n=e.bulkActions;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/bulkActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/bulkActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.rowActions!==void 0){let n=e.rowActions;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/rowActions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/rowActions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.expandable!==void 0&&typeof e.expandable!="boolean"){let n={instancePath:t+"/expandable",schemaPath:"#/properties/expandable/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.detail!==void 0){let n=e.detail;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/detail",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/detail",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.toolbar!==void 0){let n=e.toolbar;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/toolbar",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/toolbar",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.search!==void 0){let n=e.search;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/search",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/search",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.views!==void 0){let n=e.views;if(Array.isArray(n)){if(n.length>8){let c={instancePath:t+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:8},message:"must NOT have more than 8 items"};r===null?r=[c]:r.push(c),s++}if(n.length<2){let c={instancePath:t+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="count"||f==="action")){let m={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/views/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/views/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}u.label!==void 0&&(k(u.label,{instancePath:t+"/views/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.count!==void 0&&(O(u.count,{instancePath:t+"/views/"+c+"/count",parentData:u,parentDataProperty:"count",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),u.action!==void 0&&(se(u.action,{instancePath:t+"/views/"+c+"/action",parentData:u,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.view!==void 0&&(O(e.view,{instancePath:t+"/view",parentData:e,parentDataProperty:"view",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.page!==void 0){let n=e.page;if(n&&typeof n=="object"&&!Array.isArray(n)){for(let d in n)if(!(d==="index"||d==="size"||d==="total"||d==="action")){let c={instancePath:t+"/page",schemaPath:"#/properties/page/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}n.index!==void 0&&(O(n.index,{instancePath:t+"/page/index",parentData:n,parentDataProperty:"index",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.size!==void 0&&(O(n.size,{instancePath:t+"/page/size",parentData:n,parentDataProperty:"size",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.total!==void 0&&(O(n.total,{instancePath:t+"/page/total",parentData:n,parentDataProperty:"total",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),n.action!==void 0&&(se(n.action,{instancePath:t+"/page/action",parentData:n,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let d={instancePath:t+"/page",schemaPath:"#/properties/page/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return pd.errors=r,s===0}pd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var S4={type:"object",description:"A short label, status or count attached to something else.",required:["id","component","label"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tag"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"The word or two it shows: 'Past due', 'Beta', 'Design'"},kind:{enum:["label","status","count"],default:"label",description:"'status' is the state of the thing it sits on and is coloured by tone; 'count' is a number, with the label as its accessible name"},tone:{$ref:"#/$defs/Tone",default:"neutral",description:"Meaning, not decoration: a status tag's tone says whether the state is fine, a warning or a problem"},count:{$ref:"#/$defs/DynamicNumber",description:"For kind 'count': the number, bound to host data"},remove:{$ref:"#/$defs/Action",description:"Present when the person can take the tag off (a filter chip, a chosen recipient): the capability that removes it"}},additionalProperties:!1};function cd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=cd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(S4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Tag"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tag"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="label"||n==="status"||n==="count")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:S4.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.tone!==void 0){let n=e.tone;if(!(n==="neutral"||n==="info"||n==="success"||n==="warning"||n==="danger")){let d={instancePath:t+"/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:rc.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}e.count!==void 0&&(ir(e.count,{instancePath:t+"/count",parentData:e,parentDataProperty:"count",rootData:i,dynamicAnchors:l})||(r=r===null?ir.errors:r.concat(ir.errors),s=r.length)),e.remove!==void 0&&(se(e.remove,{instancePath:t+"/remove",parentData:e,parentDataProperty:"remove",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return cd.errors=r,s===0}cd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var P4={type:"object",description:"A run of text.",required:["id","component","text"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Text"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},text:{$ref:"#/$defs/DynamicString"},variant:{enum:["body","supporting","caption","rich","list","quote"],default:"body",description:"'rich' allows **bold**, *italic*, `code` and [links](href) in the text; 'list' is a bulleted or numbered list of 'items'; 'quote' is a quotation with an optional 'cite'"},format:{$ref:"#/$defs/Format",description:"Only when 'text' is bound to a non-string value"},items:{$ref:"#/$defs/Binding",description:"For 'list': array in host data, one entry per item; 'text' introduces the list"},itemPath:{$ref:"#/$defs/Path",description:"For 'list': relative path in each entry to the text shown, when the entries are objects"},ordered:{type:"boolean",default:!1,description:"For 'list': numbered rather than bulleted"},cite:{$ref:"#/$defs/DynamicString",description:"For 'quote': who or what is quoted"}},additionalProperties:!1};function ud(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=ud.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.text===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(P4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Text"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Text"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.text!==void 0&&(k(e.text,{instancePath:t+"/text",parentData:e,parentDataProperty:"text",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.variant!==void 0){let n=e.variant;if(!(n==="body"||n==="supporting"||n==="caption"||n==="rich"||n==="list"||n==="quote")){let d={instancePath:t+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:P4.properties.variant.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.format!==void 0&&(Me(e.format,{instancePath:t+"/format",parentData:e,parentDataProperty:"format",rootData:i,dynamicAnchors:l})||(r=r===null?Me.errors:r.concat(Me.errors),s=r.length)),e.items!==void 0&&(O(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.itemPath!==void 0){let n=e.itemPath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/itemPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/itemPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.ordered!==void 0&&typeof e.ordered!="boolean"){let n={instancePath:t+"/ordered",schemaPath:"#/properties/ordered/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}e.cite!==void 0&&(k(e.cite,{instancePath:t+"/cite",parentData:e,parentDataProperty:"cite",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return ud.errors=r,s===0}ud.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Mv={type:"object",description:"A single text-like value: text, number, email, phone, currency, search or long text.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"TextInput"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Two-way binding into host data"},kind:{enum:["text","multiline","number","currency","email","phone","url","search","suggestions","richtext","tags","mentions","code","masked","inline"],default:"text",description:"'suggestions' offers completions from 'options' while leaving any text allowed; 'richtext' is short formatted text (bold, italic, lists) stored as markdown-ish text; 'tags' is a list of short values entered one at a time; 'mentions' offers 'options' after an @; 'code' is monospace with no autocorrection; 'masked' follows 'mask'; 'inline' reads as text until it is clicked"},options:{$ref:"#/$defs/Options",description:"For 'suggestions' and 'mentions': the completions offered"},mask:{type:"string",description:"For 'masked': # for a digit, A for a letter, * for either, anything else typed for you, e.g. '#### #### #### ####'"},currency:{$ref:"#/$defs/DynamicString",description:"ISO 4217 code when kind is 'currency'"},help:{$ref:"#/$defs/DynamicString",description:"Hint shown below the label (not a placeholder)"},required:{type:"boolean",default:!1},validation:{type:"object",properties:{min:{type:"number"},max:{type:"number"},minLength:{type:"integer",minimum:0},maxLength:{type:"integer",minimum:1},message:{$ref:"#/$defs/DynamicString",description:"Error message shown when validation fails"}},additionalProperties:!1},autocomplete:{type:"string",description:"HTML autocomplete token hint (e.g. 'email', 'postal-code')"},placeholder:{$ref:"#/$defs/DynamicString",description:"Only for kind 'search', shown inside the field. Never a substitute for the label."},size:{enum:["default","hero"],default:"default",description:"'hero' for the one number a surface is about (an amount to send): large and centred"}},additionalProperties:!1};function fd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=fd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(Mv.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="TextInput"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"TextInput"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.kind!==void 0){let n=e.kind;if(!(n==="text"||n==="multiline"||n==="number"||n==="currency"||n==="email"||n==="phone"||n==="url"||n==="search"||n==="suggestions"||n==="richtext"||n==="tags"||n==="mentions"||n==="code"||n==="masked"||n==="inline")){let d={instancePath:t+"/kind",schemaPath:"#/properties/kind/enum",keyword:"enum",params:{allowedValues:Mv.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}if(e.options!==void 0&&(Ea(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:i,dynamicAnchors:l})||(r=r===null?Ea.errors:r.concat(Ea.errors),s=r.length)),e.mask!==void 0&&typeof e.mask!="string"){let n={instancePath:t+"/mask",schemaPath:"#/properties/mask/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[n]:r.push(n),s++}if(e.currency!==void 0&&(k(e.currency,{instancePath:t+"/currency",parentData:e,parentDataProperty:"currency",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.help!==void 0&&(k(e.help,{instancePath:t+"/help",parentData:e,parentDataProperty:"help",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.required!==void 0&&typeof e.required!="boolean"){let n={instancePath:t+"/required",schemaPath:"#/properties/required/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[n]:r.push(n),s++}if(e.validation!==void 0){let n=e.validation;if(n&&typeof n=="object"&&!Array.isArray(n)){for(let d in n)if(!(d==="min"||d==="max"||d==="minLength"||d==="maxLength"||d==="message")){let c={instancePath:t+"/validation",schemaPath:"#/properties/validation/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.min!==void 0&&typeof n.min!="number"){let d={instancePath:t+"/validation/min",schemaPath:"#/properties/validation/properties/min/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[d]:r.push(d),s++}if(n.max!==void 0&&typeof n.max!="number"){let d={instancePath:t+"/validation/max",schemaPath:"#/properties/validation/properties/max/type",keyword:"type",params:{type:"number"},message:"must be number"};r===null?r=[d]:r.push(d),s++}if(n.minLength!==void 0){let d=n.minLength;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d))){let c={instancePath:t+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[c]:r.push(c),s++}if(typeof d=="number"&&(d<0||isNaN(d))){let c={instancePath:t+"/validation/minLength",schemaPath:"#/properties/validation/properties/minLength/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};r===null?r=[c]:r.push(c),s++}}if(n.maxLength!==void 0){let d=n.maxLength;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d))){let c={instancePath:t+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};r===null?r=[c]:r.push(c),s++}if(typeof d=="number"&&(d<1||isNaN(d))){let c={instancePath:t+"/validation/maxLength",schemaPath:"#/properties/validation/properties/maxLength/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};r===null?r=[c]:r.push(c),s++}}n.message!==void 0&&(k(n.message,{instancePath:t+"/validation/message",parentData:n,parentDataProperty:"message",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length))}else{let d={instancePath:t+"/validation",schemaPath:"#/properties/validation/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.autocomplete!==void 0&&typeof e.autocomplete!="string"){let n={instancePath:t+"/autocomplete",schemaPath:"#/properties/autocomplete/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[n]:r.push(n),s++}if(e.placeholder!==void 0&&(k(e.placeholder,{instancePath:t+"/placeholder",parentData:e,parentDataProperty:"placeholder",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.size!==void 0){let n=e.size;if(!(n==="default"||n==="hero")){let d={instancePath:t+"/size",schemaPath:"#/properties/size/enum",keyword:"enum",params:{allowedValues:Mv.properties.size.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return fd.errors=r,s===0}fd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var P_={type:"object",description:"An on/off setting.",required:["id","component","label","value"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Toggle"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString"},value:{$ref:"#/$defs/Binding",description:"Boolean in host data"},description:{$ref:"#/$defs/DynamicString"},action:{$ref:"#/$defs/Action",description:"Set when the change applies immediately (a setting); omit inside a Form"}},additionalProperties:!1};function md(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=md.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.value===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"value"},message:"must have required property 'value'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(P_.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Toggle"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Toggle"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.value!==void 0&&(O(e.value,{instancePath:t+"/value",parentData:e,parentDataProperty:"value",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.description!==void 0&&(k(e.description,{instancePath:t+"/description",parentData:e,parentDataProperty:"description",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return md.errors=r,s===0}md.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var C4={type:"object",description:"A hierarchy people expand, browse and pick from: folders, an org chart, nested categories.",required:["id","component","label","items","labelPath","childrenPath"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Tree"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},label:{$ref:"#/$defs/DynamicString",description:"What the tree holds, e.g. 'Folders'"},items:{$ref:"#/$defs/Binding",description:"The top-level nodes in host data: a list"},labelPath:{$ref:"#/$defs/Path",description:"Relative to each node: the text shown"},childrenPath:{$ref:"#/$defs/Path",description:"Relative to each node: its list of child nodes, absent or empty for a leaf"},valuePath:{$ref:"#/$defs/Path",description:"Relative to each node: what selection writes; the label when absent"},detailPath:{$ref:"#/$defs/Path",description:"Relative to each node: a count or note shown after the label"},selection:{enum:["none","single","multiple"],default:"none"},selected:{$ref:"#/$defs/Binding",description:"Selected node value(s) in host data when selection is not 'none'"},expanded:{$ref:"#/$defs/Binding",description:"Values of the nodes shown open; the first level is open without it"},action:{$ref:"#/$defs/Action",description:"Activating a node, e.g. open that folder; context may bind to the node's fields"}},additionalProperties:!1};function xd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=xd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.label===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[n]:r.push(n),s++}if(e.items===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};r===null?r=[n]:r.push(n),s++}if(e.labelPath===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"labelPath"},message:"must have required property 'labelPath'"};r===null?r=[n]:r.push(n),s++}if(e.childrenPath===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"childrenPath"},message:"must have required property 'childrenPath'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!Ae.call(C4.properties,n)){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Tree"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Tree"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.label!==void 0&&(k(e.label,{instancePath:t+"/label",parentData:e,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),e.items!==void 0&&(O(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.labelPath!==void 0){let n=e.labelPath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/labelPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/labelPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.childrenPath!==void 0){let n=e.childrenPath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/childrenPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/childrenPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.valuePath!==void 0){let n=e.valuePath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/valuePath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/valuePath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.detailPath!==void 0){let n=e.detailPath;if(typeof n=="string"){if(!at.test(n)){let d={instancePath:t+"/detailPath",schemaPath:"#/$defs/Path/pattern",keyword:"pattern",params:{pattern:"^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"},message:'must match pattern "^(/([^/~]|~[01])*)+$|^[A-Za-z0-9_]([^/~]|~[01])*(/([^/~]|~[01])*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/detailPath",schemaPath:"#/$defs/Path/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.selection!==void 0){let n=e.selection;if(!(n==="none"||n==="single"||n==="multiple")){let d={instancePath:t+"/selection",schemaPath:"#/properties/selection/enum",keyword:"enum",params:{allowedValues:C4.properties.selection.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}e.selected!==void 0&&(O(e.selected,{instancePath:t+"/selected",parentData:e,parentDataProperty:"selected",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.expanded!==void 0&&(O(e.expanded,{instancePath:t+"/expanded",parentData:e,parentDataProperty:"expanded",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.action!==void 0&&(se(e.action,{instancePath:t+"/action",parentData:e,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return xd.errors=r,s===0}xd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var C_={type:"object",description:"Switch between alternative views of the same subject (tabs).",required:["id","component","views"],properties:{id:{$ref:"#/$defs/Id"},component:{const:"Views"},key:{$ref:"#/$defs/Key"},accessibility:{$ref:"#/$defs/Accessibility"},visible:{$ref:"#/$defs/DynamicBoolean",description:"Hide the component when false"},views:{type:"array",minItems:2,maxItems:6,items:{type:"object",required:["key","label","content"],properties:{key:{$ref:"#/$defs/Key"},label:{$ref:"#/$defs/DynamicString"},content:{$ref:"#/$defs/Id"},count:{$ref:"#/$defs/Binding",description:"How many items the view holds, shown beside its label"}},additionalProperties:!1}},selected:{$ref:"#/$defs/Binding",description:"Key of the selected view in host data"},variant:{enum:["tabs","segmented"],default:"tabs",description:"'tabs' for sections of a record; 'segmented' for switching how the same thing is shown"}},additionalProperties:!1};function gd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=gd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.id===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[n]:r.push(n),s++}if(e.component===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[n]:r.push(n),s++}if(e.views===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"views"},message:"must have required property 'views'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="id"||n==="component"||n==="key"||n==="accessibility"||n==="visible"||n==="views"||n==="selected"||n==="variant")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.id!==void 0){let n=e.id;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.component!==void 0&&e.component!=="Views"){let n={instancePath:t+"/component",schemaPath:"#/properties/component/const",keyword:"const",params:{allowedValue:"Views"},message:"must be equal to constant"};r===null?r=[n]:r.push(n),s++}if(e.key!==void 0){let n=e.key;if(typeof n=="string"){if(!xe.test(n)){let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.accessibility!==void 0&&(q(e.accessibility,{instancePath:t+"/accessibility",parentData:e,parentDataProperty:"accessibility",rootData:i,dynamicAnchors:l})||(r=r===null?q.errors:r.concat(q.errors),s=r.length)),e.visible!==void 0&&(I(e.visible,{instancePath:t+"/visible",parentData:e,parentDataProperty:"visible",rootData:i,dynamicAnchors:l})||(r=r===null?I.errors:r.concat(I.errors),s=r.length)),e.views!==void 0){let n=e.views;if(Array.isArray(n)){if(n.length>6){let c={instancePath:t+"/views",schemaPath:"#/properties/views/maxItems",keyword:"maxItems",params:{limit:6},message:"must NOT have more than 6 items"};r===null?r=[c]:r.push(c),s++}if(n.length<2){let c={instancePath:t+"/views",schemaPath:"#/properties/views/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++){let u=n[c];if(u&&typeof u=="object"&&!Array.isArray(u)){if(u.key===void 0){let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"key"},message:"must have required property 'key'"};r===null?r=[f]:r.push(f),s++}if(u.label===void 0){let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[f]:r.push(f),s++}if(u.content===void 0){let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};r===null?r=[f]:r.push(f),s++}for(let f in u)if(!(f==="key"||f==="label"||f==="content"||f==="count")){let m={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};r===null?r=[m]:r.push(m),s++}if(u.key!==void 0){let f=u.key;if(typeof f=="string"){if(!xe.test(f)){let m={instancePath:t+"/views/"+c+"/key",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/views/"+c+"/key",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}if(u.label!==void 0&&(k(u.label,{instancePath:t+"/views/"+c+"/label",parentData:u,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),u.content!==void 0){let f=u.content;if(typeof f=="string"){if(!X.test(f)){let m={instancePath:t+"/views/"+c+"/content",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[m]:r.push(m),s++}}else{let m={instancePath:t+"/views/"+c+"/content",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[m]:r.push(m),s++}}u.count!==void 0&&(O(u.count,{instancePath:t+"/views/"+c+"/count",parentData:u,parentDataProperty:"count",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length))}else{let f={instancePath:t+"/views/"+c,schemaPath:"#/properties/views/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[f]:r.push(f),s++}}}else{let d={instancePath:t+"/views",schemaPath:"#/properties/views/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.selected!==void 0&&(O(e.selected,{instancePath:t+"/selected",parentData:e,parentDataProperty:"selected",rootData:i,dynamicAnchors:l})||(r=r===null?O.errors:r.concat(O.errors),s=r.length)),e.variant!==void 0){let n=e.variant;if(!(n==="tabs"||n==="segmented")){let d={instancePath:t+"/variant",schemaPath:"#/properties/variant/enum",keyword:"enum",params:{allowedValues:C_.properties.variant.enum},message:"must be equal to one of the allowed values"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return gd.errors=r,s===0}gd.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function hd(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=hd.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.component===void 0){let c={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"component"},message:"must have required property 'component'"};r===null?r=[c]:r.push(c),s++}let d=e.component;if(typeof d=="string")if(d==="Action"){Cl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Cl.errors:r.concat(Cl.errors),s=r.length);var n=!0}else if(d==="ActionBar")zl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?zl.errors:r.concat(zl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="ActionMenu")Al(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Al.errors:r.concat(Al.errors),s=r.length),n!==!0&&(n=!0);else if(d==="AppBar")Rl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Rl.errors:r.concat(Rl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Card")Nl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Nl.errors:r.concat(Nl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Chart")Dl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Dl.errors:r.concat(Dl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Choice")Tl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Tl.errors:r.concat(Tl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Code")El(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?El.errors:r.concat(El.errors),s=r.length),n!==!0&&(n=!0);else if(d==="CodeInput")Il(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Il.errors:r.concat(Il.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Collection")_l(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?_l.errors:r.concat(_l.errors),s=r.length),n!==!0&&(n=!0);else if(d==="ColorInput")Ol(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Ol.errors:r.concat(Ol.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Columns")ql(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?ql.errors:r.concat(ql.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Comparison")jl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?jl.errors:r.concat(jl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Confirm")Bl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Bl.errors:r.concat(Bl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Custom")Hl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Hl.errors:r.concat(Hl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="DateInput")Ul(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Ul.errors:r.concat(Ul.errors),s=r.length),n!==!0&&(n=!0);else if(d==="DetailList")Ll(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Ll.errors:r.concat(Ll.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Disclosure")Fl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Fl.errors:r.concat(Fl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="FileInput")Vl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Vl.errors:r.concat(Vl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="FilterPanel")Zl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Zl.errors:r.concat(Zl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Footer")Kl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Kl.errors:r.concat(Kl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Form")Gl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Gl.errors:r.concat(Gl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Frame")Yl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Yl.errors:r.concat(Yl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Group")Xl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Xl.errors:r.concat(Xl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Identity")Ql(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Ql.errors:r.concat(Ql.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Media")Jl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Jl.errors:r.concat(Jl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Metric")Wl(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?Wl.errors:r.concat(Wl.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Navigation")ed(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?ed.errors:r.concat(ed.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Outlet")td(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?td.errors:r.concat(td.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Panel")rd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?rd.errors:r.concat(rd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Progress")ad(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?ad.errors:r.concat(ad.errors),s=r.length),n!==!0&&(n=!0);else if(d==="RangeInput")od(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?od.errors:r.concat(od.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Rating")nd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?nd.errors:r.concat(nd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Section")id(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?id.errors:r.concat(id.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Split")sd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?sd.errors:r.concat(sd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Status")ld(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?ld.errors:r.concat(ld.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Steps")dd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?dd.errors:r.concat(dd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Table")pd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?pd.errors:r.concat(pd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Tag")cd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?cd.errors:r.concat(cd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Text")ud(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?ud.errors:r.concat(ud.errors),s=r.length),n!==!0&&(n=!0);else if(d==="TextInput")fd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?fd.errors:r.concat(fd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Toggle")md(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?md.errors:r.concat(md.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Tree")xd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?xd.errors:r.concat(xd.errors),s=r.length),n!==!0&&(n=!0);else if(d==="Views")gd(e,{instancePath:t,parentData:a,parentDataProperty:o,rootData:i,dynamicAnchors:l})||(r=r===null?gd.errors:r.concat(gd.errors),s=r.length),n!==!0&&(n=!0);else{let c={instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"component",tagValue:d},message:'value of tag "component" must be in oneOf'};r===null?r=[c]:r.push(c),s++}else{let c={instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"component",tagValue:d},message:'tag "component" must be string'};r===null?r=[c]:r.push(c),s++}}else{let d={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}return hd.errors=r,p.props=n,s===0}hd.evaluated={dynamicProps:!0,dynamicItems:!1};function hm(e,{instancePath:t="",parentData:a,parentDataProperty:o,rootData:i=e,dynamicAnchors:l={}}={}){let r=null,s=0,p=hm.evaluated;if(p.dynamicProps&&(p.props=void 0),p.dynamicItems&&(p.items=void 0),e&&typeof e=="object"&&!Array.isArray(e)){if(e.specVersion===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"specVersion"},message:"must have required property 'specVersion'"};r===null?r=[n]:r.push(n),s++}if(e.surface===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"surface"},message:"must have required property 'surface'"};r===null?r=[n]:r.push(n),s++}if(e.root===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"root"},message:"must have required property 'root'"};r===null?r=[n]:r.push(n),s++}if(e.components===void 0){let n={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"components"},message:"must have required property 'components'"};r===null?r=[n]:r.push(n),s++}for(let n in e)if(!(n==="$schema"||n==="specVersion"||n==="surface"||n==="root"||n==="components"||n==="data")){let d={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"};r===null?r=[d]:r.push(d),s++}if(e.$schema!==void 0&&typeof e.$schema!="string"){let n={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[n]:r.push(n),s++}if(e.specVersion!==void 0){let n=e.specVersion;if(typeof n=="string"){if(!p_.test(n)){let d={instancePath:t+"/specVersion",schemaPath:"#/properties/specVersion/pattern",keyword:"pattern",params:{pattern:"^0\\.[123]\\.[0-9]+$"},message:'must match pattern "^0\\.[123]\\.[0-9]+$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/specVersion",schemaPath:"#/properties/specVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.surface!==void 0){let n=e.surface;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.id===void 0){let d={instancePath:t+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};r===null?r=[d]:r.push(d),s++}if(n.title===void 0){let d={instancePath:t+"/surface",schemaPath:"#/properties/surface/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};r===null?r=[d]:r.push(d),s++}for(let d in n)if(!Ae.call(fm.properties.surface.properties,d)){let c={instancePath:t+"/surface",schemaPath:"#/properties/surface/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};r===null?r=[c]:r.push(c),s++}if(n.id!==void 0){let d=n.id;if(typeof d=="string"){if(!X.test(d)){let c={instancePath:t+"/surface/id",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/surface/id",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.title!==void 0&&typeof n.title!="string"){let d={instancePath:t+"/surface/title",schemaPath:"#/properties/surface/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(n.intent!==void 0){let d=n.intent;if(typeof d=="string"){if(!xe.test(d)){let c={instancePath:t+"/surface/intent",schemaPath:"#/$defs/Key/pattern",keyword:"pattern",params:{pattern:"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"},message:'must match pattern "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/surface/intent",schemaPath:"#/$defs/Key/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.pattern!==void 0&&typeof n.pattern!="string"){let d={instancePath:t+"/surface/pattern",schemaPath:"#/properties/surface/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(n.journey!==void 0&&typeof n.journey!="string"){let d={instancePath:t+"/surface/journey",schemaPath:"#/properties/surface/properties/journey/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}if(n.subtitle!==void 0&&(k(n.subtitle,{instancePath:t+"/surface/subtitle",parentData:n,parentDataProperty:"subtitle",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.breadcrumbs!==void 0){let d=n.breadcrumbs;if(Array.isArray(d)){if(d.length>4){let u={instancePath:t+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/maxItems",keyword:"maxItems",params:{limit:4},message:"must NOT have more than 4 items"};r===null?r=[u]:r.push(u),s++}let c=d.length;for(let u=0;u<c;u++){let f=d[u];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.label===void 0){let m={instancePath:t+"/surface/breadcrumbs/"+u,schemaPath:"#/properties/surface/properties/breadcrumbs/items/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};r===null?r=[m]:r.push(m),s++}for(let m in f)if(!(m==="label"||m==="action")){let h={instancePath:t+"/surface/breadcrumbs/"+u,schemaPath:"#/properties/surface/properties/breadcrumbs/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};r===null?r=[h]:r.push(h),s++}f.label!==void 0&&(k(f.label,{instancePath:t+"/surface/breadcrumbs/"+u+"/label",parentData:f,parentDataProperty:"label",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),f.action!==void 0&&(se(f.action,{instancePath:t+"/surface/breadcrumbs/"+u+"/action",parentData:f,parentDataProperty:"action",rootData:i,dynamicAnchors:l})||(r=r===null?se.errors:r.concat(se.errors),s=r.length))}else{let m={instancePath:t+"/surface/breadcrumbs/"+u,schemaPath:"#/properties/surface/properties/breadcrumbs/items/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[m]:r.push(m),s++}}}else{let c={instancePath:t+"/surface/breadcrumbs",schemaPath:"#/properties/surface/properties/breadcrumbs/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[c]:r.push(c),s++}}if(n.badge!==void 0){let d=n.badge;if(d&&typeof d=="object"&&!Array.isArray(d)){if(d.text===void 0){let c={instancePath:t+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/required",keyword:"required",params:{missingProperty:"text"},message:"must have required property 'text'"};r===null?r=[c]:r.push(c),s++}for(let c in d)if(!(c==="text"||c==="tone")){let u={instancePath:t+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"};r===null?r=[u]:r.push(u),s++}if(d.text!==void 0&&(k(d.text,{instancePath:t+"/surface/badge/text",parentData:d,parentDataProperty:"text",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),d.tone!==void 0){let c=d.tone;if(!(c==="neutral"||c==="info"||c==="success"||c==="warning"||c==="danger")){let u={instancePath:t+"/surface/badge/tone",schemaPath:"#/$defs/Tone/enum",keyword:"enum",params:{allowedValues:rc.enum},message:"must be equal to one of the allowed values"};r===null?r=[u]:r.push(u),s++}}}else{let c={instancePath:t+"/surface/badge",schemaPath:"#/properties/surface/properties/badge/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[c]:r.push(c),s++}}if(n.avatar!==void 0&&(k(n.avatar,{instancePath:t+"/surface/avatar",parentData:n,parentDataProperty:"avatar",rootData:i,dynamicAnchors:l})||(r=r===null?k.errors:r.concat(k.errors),s=r.length)),n.actions!==void 0){let d=n.actions;if(typeof d=="string"){if(!X.test(d)){let c={instancePath:t+"/surface/actions",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[c]:r.push(c),s++}}else{let c={instancePath:t+"/surface/actions",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[c]:r.push(c),s++}}if(n.presentation!==void 0){let d=n.presentation;if(!(d==="page"||d==="panel")){let c={instancePath:t+"/surface/presentation",schemaPath:"#/properties/surface/properties/presentation/enum",keyword:"enum",params:{allowedValues:fm.properties.surface.properties.presentation.enum},message:"must be equal to one of the allowed values"};r===null?r=[c]:r.push(c),s++}}if(n.dismissible!==void 0&&typeof n.dismissible!="boolean"){let d={instancePath:t+"/surface/dismissible",schemaPath:"#/properties/surface/properties/dismissible/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};r===null?r=[d]:r.push(d),s++}if(n.kind!==void 0){let d=n.kind;if(!(d==="surface"||d==="shell")){let c={instancePath:t+"/surface/kind",schemaPath:"#/properties/surface/properties/kind/enum",keyword:"enum",params:{allowedValues:fm.properties.surface.properties.kind.enum},message:"must be equal to one of the allowed values"};r===null?r=[c]:r.push(c),s++}}if(n.origin!==void 0){let d=n.origin;if(!(d==="generated"||d==="authored")){let c={instancePath:t+"/surface/origin",schemaPath:"#/properties/surface/properties/origin/enum",keyword:"enum",params:{allowedValues:fm.properties.surface.properties.origin.enum},message:"must be equal to one of the allowed values"};r===null?r=[c]:r.push(c),s++}}}else{let d={instancePath:t+"/surface",schemaPath:"#/properties/surface/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}if(e.root!==void 0){let n=e.root;if(typeof n=="string"){if(!X.test(n)){let d={instancePath:t+"/root",schemaPath:"#/$defs/Id/pattern",keyword:"pattern",params:{pattern:"^[A-Za-z][A-Za-z0-9_-]*$"},message:'must match pattern "^[A-Za-z][A-Za-z0-9_-]*$"'};r===null?r=[d]:r.push(d),s++}}else{let d={instancePath:t+"/root",schemaPath:"#/$defs/Id/type",keyword:"type",params:{type:"string"},message:"must be string"};r===null?r=[d]:r.push(d),s++}}if(e.components!==void 0){let n=e.components;if(Array.isArray(n)){if(n.length<1){let c={instancePath:t+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};r===null?r=[c]:r.push(c),s++}let d=n.length;for(let c=0;c<d;c++)hd(n[c],{instancePath:t+"/components/"+c,parentData:n,parentDataProperty:c,rootData:i,dynamicAnchors:l})||(r=r===null?hd.errors:r.concat(hd.errors),s=r.length)}else{let d={instancePath:t+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type:"array"},message:"must be array"};r===null?r=[d]:r.push(d),s++}}if(e.data!==void 0){let n=e.data;if(!(n&&typeof n=="object"&&!Array.isArray(n))){let d={instancePath:t+"/data",schemaPath:"#/properties/data/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[d]:r.push(d),s++}}}else{let n={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};r===null?r=[n]:r.push(n),s++}return hm.errors=r,s===0}hm.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var qv=s4,z_={Table:["columns","rowAction","rowValuePath"],Tree:["labelPath","childrenPath","valuePath","detailPath","action"],Chart:["x","series"],Comparison:["itemTitle","attributes","choose"],Collection:["datePath"],Text:["itemPath"],Media:["imagePath","altPath"],DetailList:["rowAction"]},A_={Views:["views"],Steps:["steps"]},z4=new Set(["ui.dismiss","ui.back","ui.next","ui.copy"]),A4={Collection:"items",Table:"rows",Comparison:"items",Chart:"data",Choice:"options",Tree:"items",Text:"items",Media:"items"},R_=new Set(["TextInput","Choice","Toggle","DateInput","RangeInput","Rating","FileInput","ColorInput","CodeInput"]),R4=e=>{let t=e;for(;t?.$ref;)t=qv.$defs[t.$ref.replace("#/$defs/","")];return t},N_=e=>e?.$ref?.replace("#/$defs/","");function oc(e,t,a,o,i){let l=N_(e);if(l==="Id"&&typeof t=="string")return void i.ids.push({id:t,at:a,prop:o.prop,panel:o.panel});if(l==="Path"&&typeof t=="string")return void i.paths.push({path:t,at:a,itemScoped:o.itemScoped,list:o.itemScoped?o.list:void 0});if(l==="Capability"&&typeof t=="string")return void i.actions.push({name:t,at:a});if(o.prop==="group"&&t&&!Array.isArray(t)&&typeof t=="object"&&"path"in t){let s=t;i.paths.push({path:s.path,at:`${a}/path`,itemScoped:o.itemScoped});for(let p of["namePath","imagePath"])s[p]&&i.paths.push({path:s[p],at:`${a}/${p}`,itemScoped:!0,list:{path:s.path}});return}if(l==="Options"&&t&&!Array.isArray(t)&&typeof t=="object"){let s=t;i.paths.push({path:s.path,at:`${a}/path`,itemScoped:o.itemScoped});for(let p of["valuePath","labelPath","descriptionPath","avatarPath","imagePath","recentPath"])s[p]&&i.paths.push({path:s[p],at:`${a}/${p}`,itemScoped:!0,list:{path:s.path}});return}let r=R4(e);if(r){if(r.oneOf){let s=r.oneOf.find(p=>{let n=R4(p);return Array.isArray(t)?n.type==="array":t&&typeof t=="object"?n.type==="object":n.type!=="object"&&n.type!=="array"});s&&oc(s,t,a,o,i);return}if(Array.isArray(t)&&r.items)t.forEach((s,p)=>oc(r.items,s,`${a}/${p}`,o,i));else if(t&&typeof t=="object"&&!Array.isArray(t))for(let[s,p]of Object.entries(t)){let n=r.properties?.[s]??(typeof r.additionalProperties=="object"?r.additionalProperties:void 0);n&&oc(n,p,`${a}/${s}`,o,i)}}}function ac(e,t){if(!t.startsWith("/"))return;let a=e;for(let o of t.slice(1).split("/").map(i=>i.replace(/~1/g,"/").replace(/~0/g,"~"))){if(a===null||typeof a!="object"||!(o in a))return;a=a[o]}return a}function Ov(e,t){let a=t.path.startsWith("/")?[e]:t.parent?Ov(e,t.parent):[],o=t.path.startsWith("/")?t.path:`/${t.path}`;return a.flatMap(i=>{let l=ac(i,o);return Array.isArray(l)?l:[]})}function D4(e,t,a="",o=0){return o>4||!e||typeof e!="object"||Array.isArray(e)?[]:Object.entries(e).flatMap(([i,l])=>[...i===t?[`${a}/${i}`]:[],...D4(l,t,`${a}/${i}`,o+1)])}var N4=e=>e.keyword==="additionalProperties"?`unknown property "${e.params.additionalProperty}"`:e.keyword==="const"&&e.instancePath.endsWith("/component")?`unknown component "${e.data}"`:e.keyword==="discriminator"?"unknown or missing component type":e.message??e.keyword;function jv(e,t={}){let a=[],o=(w,$)=>a.push({severity:"error",at:w,message:$}),i=(w,$)=>a.push({severity:"warning",at:w,message:$});if(!_v(e)){let w=_v.errors??[],$=w.filter(P=>!w.some(A=>A!==P&&A.instancePath.startsWith(P.instancePath+"/"))),z=new Set;for(let P of $){let A=`${P.instancePath||"/"}: ${N4(P)}`;z.has(A)||(z.add(A),o(P.instancePath||"/",N4(P)))}return{valid:!1,issues:a}}let l=e,r=new Map;l.components.forEach((w,$)=>{r.has(w.id)?o(`/components/${$}/id`,`duplicate id "${w.id}"`):r.set(w.id,{c:w,index:$})}),r.has(l.root)||o("/root",`root "${l.root}" is not a component id`);let s=new Map;for(let[w,{c:$,index:z}]of r){let P={ids:[],paths:[],actions:[]},A=qv.$defs[`Component${$.component}`];for(let[C,N]of Object.entries($)){if(C==="id"||C==="component")continue;let M=z_[$.component]?.includes(C)??!1,T=$[A4[$.component]]?.path,D=M&&typeof T=="string"?{path:T}:void 0;A_[$.component]?.includes(C)&&Array.isArray(N)?N.forEach((U,Z)=>oc(A.properties[C].items,U,`/components/${z}/${C}/${Z}`,{prop:C,itemScoped:M,panel:`${w}#${Z}`,list:D},P)):oc(A.properties[C],N,`/components/${z}/${C}`,{prop:C,itemScoped:M,list:D},P)}s.set(w,P)}for(let[w,$]of s){let z=r.get(w).c;for(let P of $.ids){let A=r.get(P.id);if(!A){o(P.at,`references unknown component "${P.id}"`);continue}P.id===w&&o(P.at,"component references itself");let C=zv[`${z.component}.${P.prop}`];C&&!C.includes(A.c.component)&&o(P.at,`${z.component}.${P.prop} must reference ${C.join(" or ")}, not ${A.c.component}`)}for(let P of $.actions)P.name.startsWith("ui.")&&!z4.has(P.name)&&o(P.at,`"${P.name}" is not a renderer action (${[...z4].join(", ")})`)}for(let[,{c:w,index:$}]of r)w.component==="TextInput"&&w.placeholder!==void 0&&w.kind!=="search"&&i(`/components/${$}/placeholder`,"placeholders are only for search fields; use the label and help text"),w.component==="Media"&&!w.decorative&&w.alt===void 0&&o(`/components/${$}`,"Media needs alt text unless it is decorative");let p=new Map,n=new Set,d=new Set,c=new Map,u=[],f=(w,$,z,P,A)=>{let C=r.get(w);if(!C)return;if(P.includes(w))return o(`/components/${C.index}`,`cycle: ${[...P,w].join(" \u2192 ")}`);n.add(w),z&&d.add(w),A&&c.set(w,A);let{c:N,index:M}=C,T=$;N.component==="Confirm"&&(T=[...$,`${w}#dialog`]),N.component==="Action"&&N.emphasis==="primary"&&u.push({at:`/components/${M}`,stack:T}),N.component==="Form"&&u.push({at:`/components/${M}/submit`,stack:T}),N.component==="Steps"&&u.push({at:`/components/${M}/finish`,stack:[...T,`${w}#${N.steps.length-1}`]});for(let D of s.get(w).ids){if(!r.has(D.id)||D.id===w)continue;let B=D.prop==="items"&&N.component==="Collection"||(D.prop==="rowActions"||D.prop==="detail")&&N.component==="Table",U=p.get(D.id);if(U&&U!==w){o(D.at,`"${D.id}" already has parent "${U}"; a component can appear in only one place`);continue}p.set(D.id,w);let Z=B?N[N.component==="Table"?"rows":"items"]?.path:void 0,G=typeof Z=="string"?{path:Z,parent:Z.startsWith("/")?void 0:A}:A;f(D.id,D.panel?[...T,D.panel]:T,z||B,[...P,w],G)}};r.has(l.root)&&f(l.root,[],!1,[]),typeof l.surface?.actions=="string"&&r.has(l.surface.actions)&&f(l.surface.actions,[],!1,[]);for(let[w,{c:$}]of r)$.component==="Navigation"&&!n.has(w)&&f(w,[],!1,[]);for(let[w,{index:$}]of r)n.has(w)||i(`/components/${$}`,`"${w}" is not reachable from root "${l.root}"`);let m=(w,$,z)=>a.push({severity:w,at:$,message:z,code:"shell:structure"}),h=l.surface?.kind==="shell",b=[...r].filter(([,{c:w}])=>l4.includes(w.component));if(h){l.surface?.origin!=="authored"&&m("error","/surface/origin",'a shell is authored; set surface.origin to "authored"');let w=r.get(l.root)?.c.component;w&&w!=="Frame"&&m("error","/root",`a shell's root is a Frame, not ${w}`);let $=[...r].filter(([,{c:C}])=>C.component==="Outlet");$.length===0&&m("error","/components","a shell has exactly one Outlet, reachable from the Frame's main; this one has none");for(let[,{index:C}]of $.slice(1))m("error",`/components/${C}`,"a shell has exactly one Outlet; this is another");let z=new Set,P=w==="Frame"?r.get(l.root).c.main:void 0,A=C=>{if(!(typeof C!="string"||z.has(C)||!r.has(C))){z.add(C);for(let N of s.get(C).ids)A(N.id)}};typeof P=="string"&&A(P);for(let[C,{index:N}]of $.slice(0,1))typeof P=="string"&&!z.has(C)&&m("error",`/components/${N}`,`the Outlet "${C}" is not reachable from the Frame's main "${P}"`)}else for(let[,{c:w,index:$}]of b)m("error",`/components/${$}`,`${w.component} belongs in a shell document: set surface.kind to "shell"`);for(let[w,{c:$,index:z}]of r){if($.component!=="Navigation"||$.placement===void 0)continue;let P=p.get(w);(!P||r.get(P)?.c.component!=="Frame")&&m("warning",`/components/${z}/placement`,"Navigation.placement only applies to a Frame's navigation; here nothing reads it")}let x=Math.max(1,t.emphasisBudget??1),g=(w,$)=>w.every((z,P)=>$[P]===z),y=(w,$)=>g(w.stack,$.stack)||g($.stack,w.stack);for(let w=0;w<u.length;w++){let $=u.filter((z,P)=>P>=w&&y(u[w],z));if($.length>x){let z=$[x];o(z.at,x===1?`more than one primary action visible at once (also ${$[0].at})`:`more than ${x} primary actions visible at once (also ${$.slice(0,x).map(P=>P.at).join(", ")})`);break}}if(l.data!==void 0)for(let[,{c:w,index:$}]of r){let z=A4[w.component],P=z&&w[z]&&typeof w[z]=="object"?w[z].path:void 0;if(typeof P!="string"||!P.startsWith("/"))continue;let A=ac(l.data,P);A!==void 0&&!Array.isArray(A)&&o(`/components/${$}/${z}/path`,`${w.component}.${z} must point at a list; "${P}" is ${A===null?"null":typeof A} in data`)}let v=(w,$)=>a.push({severity:t.missingData??"warning",at:w,message:$,code:"data:missing-path"}),S=[];for(let[,{c:w}]of r)R_.has(w.component)&&typeof w.value?.path=="string"&&w.value.path.startsWith("/")&&S.push(w.value.path);let R=w=>S.some($=>$===w||$.startsWith(`${w}/`)||w.startsWith(`${$}/`));for(let[w,$]of s){let z=d.has(w);for(let P of $.paths)if(P.path.startsWith("/")){if(l.data!==void 0&&ac(l.data,P.path)===void 0&&!R(P.path)){let A=z?c.get(w):void 0,C=P.path.slice(P.path.lastIndexOf("/")+1),N=A&&Ov(l.data,A).some(T=>ac(T,`/${C}`)!==void 0),M=N?void 0:D4(l.data,C).slice(0,1)[0];v(P.at,`path "${P.path}" does not exist in data`+(N?`: inside a repeated item, the item's own field is "${C}", without the slash`:M?` (did you mean "${M}"?)`:""))}}else{if(!P.itemScoped&&!z){o(P.at,`relative path "${P.path}" used outside a repeated item`);continue}let A=P.list??c.get(w);if(l.data===void 0||!A)continue;let C=Ov(l.data,A);if(C.length&&C.every(N=>ac(N,`/${P.path}`)===void 0)){let N=Object.keys(C.find(M=>M&&typeof M=="object")??{});v(P.at,`"${P.path}" is not a field of the items in ${A.path}${N.length?` (they have ${N.join(", ")})`:""}`)}}}return{valid:!a.some(w=>w.severity==="error"),issues:a}}var D_={Section:["children"],Group:["children"],Card:["children"],Disclosure:["children"],Form:["children"],ActionBar:["children"],FilterPanel:["children"],Panel:["children"],ActionMenu:["children"],Columns:["children"]},T_={Card:["media"],Collection:["empty","bulkActions"],Table:["empty","toolbar","bulkActions","rowActions","search","detail"],Status:["action"],Confirm:["summary"],Form:["aside"],FilterPanel:["results"],Panel:["actions"],ActionMenu:["primary"],Split:["primary","detail","empty"],Frame:["banner","header","navigation","main","aside","footer"],AppBar:["leading","search","actions","account"],Footer:["aside"],Outlet:["loading"],Custom:["fallback"]},E_={Views:"views",Steps:"steps"},I_=/^[A-Za-z][A-Za-z0-9_-]*$/,M_=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/^([^a-z])/,"c-$1")||"c";function Bv(e){let t=[],a=new Set,o=u=>{let f=typeof u.id=="string"&&I_.test(u.id)?u.id:M_(u.key??u.component??"c"),m=f;for(let h=2;a.has(m);h++)m=`${f}-${h}`;return a.add(m),m},i=u=>{if(!u||typeof u!="object"||typeof u.component!="string")throw new Error("expected a component object");let f=o(u),m={...u,id:f};t.push(m);for(let b of D_[u.component]??[])Array.isArray(u[b])&&(m[b]=u[b].map(i));for(let b of T_[u.component]??[])u[b]&&typeof u[b]=="object"&&(m[b]=i(u[b]));u.component==="Collection"&&u.items&&typeof u.items=="object"&&"item"in u.items&&(m.items={path:u.items.path,componentId:i(u.items.item)});let h=E_[u.component];return h&&Array.isArray(u[h])&&(m[h]=u[h].map(b=>({...b,content:b.content&&typeof b.content=="object"?i(b.content):b.content}))),f},{root:l,navigation:r,surface:s,...p}=e,n=i(l),d=r?i(r):void 0,c={...p,root:n,components:t};if(s){let u=s.actions&&typeof s.actions=="object"?i(s.actions):s.actions;c.surface=u===void 0?s:{...s,actions:u}}return c}var Hv=e=>!!e&&typeof e.root=="object"&&e.root!==null;var __=["antd","bootstrap","brutalist","carbon","chakra","civic","editorial","finance","fluent","glass","govuk","health","mantine","material3","mono","neon","pastel","polaris","primer","radix","shadcn","sketch","spectrum","terminal","wireframe"],T4=e=>"data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect width="10" height="10" fill="#999"/><title>'+String(e).replace(/[<&]/g,"")+"</title></svg>");function E4(e,t){let a=(0,Lv.createRoot)(e),o=i=>a.render(Uv.createElement(ec,{resolveMedia:T4,...i,key:i.key}));return o(t),{update:o,unmount:()=>a.unmount()}}var I4={React:Uv,createRoot:Lv.createRoot,PolyxdSurface:ec,PolyxdSkeleton:Jp,getPointer:we,setPointer:Zo,validateDocument:jv,flattenTree:Bv,isTree:Hv,mount:E4,themes:__,specVersion:Cv,placeholderMedia:T4};if(typeof window<"u"&&(window.Polyxd=I4,window.__PXD__&&document.getElementById("root"))){window.__pxdActions=[],window.__pxdDismissed=0;let{document:e,theme:t,mode:a}=window.__PXD__;E4(document.getElementById("root"),{document:e,theme:t,mode:a,onAction:o=>window.__pxdActions.push(o),onDismiss:()=>window.__pxdDismissed+=1}),requestAnimationFrame(()=>requestAnimationFrame(()=>window.__pxdReady=!0))}var O_=I4;return F4(q_);})();
|